Describe a Solaris /bin/sh bug w.r.t. for loops.
[autoconf.git] / ChangeLog
blob9f5c879d6f97dd6396ad1a90fca1c2e749d7a82b
1 2010-07-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2         and Eric Blake  <eblake@redhat.com>
4         Describe a Solaris /bin/sh bug w.r.t. for loops.
5         * doc/autoconf.texi (Limitations of Shell Builtins) <for>:
6         Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
7         tokens seeming variable assignment in the list of arguments.
9 2010-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11         Improve VPATH handling in config.status for non-Automake projects.
12         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Be sure not
13         to remove references to a subdir of srcdir.  Fix treatment of
14         multiple colon-separated VPATH entries.
15         * tests/torture.at (VPATH): New test.
16         Report by Keith Marshall.
18         Further improve docs about nested double-quotes and backquotes.
19         * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
20         Move quoting bug example to ...
21         (Shell Substitutions): ... here.  Document which behavior is
22         specified by Posix.
24         Coverage for Fortran compiler macros.
25         * tests/fortran.at (AC_OPENMP and Fortran 77)
26         (AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
27         (AC_F77_DUMMY_MAIN usage, AC_FC_DUMMY_MAIN usage)
28         (AC_F77_MAIN usage, AC_FC_MAIN usage, AC_F77_FUNC usage)
29         (AC_FC_FUNC usage, AC_FC_SRCEXT usage, AC_FC_FREEFORM): New
30         tests.
31         * doc/autoconf.texi (Fortran Compiler): Use GNU coding style
32         on C code snippets.  Add markers for tested examples.
33         Suggest AC_FC_FREEFORM for source file extensions which the
34         compiler might not natively support but which are accepted
35         with help from AC_FC_SRCEXT.  Suggest AC_CONFIG_HEADERS for
36         setups using one of the AC_*MAIN macros.
38         Accept any nonzero exit status upon config.status write failure.
39         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
40         Normalize nonzero status to 1 for writing to /dev/full, for HP-UX
41         11.31 cat which exits 2.
43         Fix testsuite failure with Tru64 preprocessor.
44         * tests/compile.at (Order of user actions and cleanup): Add
45         incomplete comment to provoke failure with Tru64/OSF 5.1 cc
46         preprocessor.
48 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49         and Eric Blake  <eblake@redhat.com>
51         Further clarification on sed -e portability.
52         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Clarify
53         more about sed -e and Posix limitations.
55 2010-06-22  Bruno Haible  <bruno@clisp.org>
57         Document how to use literal newlines in makefile rules.
58         * doc/autoconf.texi (Newlines in Make Rules): New section.
60         Document how to write comments in makefile rules.
61         * doc/autoconf.texi (Comments in Make Rules): Mention a workaround
62         syntax.
64 2010-06-22  Ben Pfaff  <blp@cs.stanford.edu>
66         Document how to propogate variables to submakes.
67         * doc/autoconf.texi: Describe technique used by Automake to
68         propagate variables to submakes in more detail.
70 2010-06-22  Peter Johansson  <trojkan@gmail.com>  (tiny change)
72         Be consistent in doc example.
73         * doc/autoconf.texi: (Polymorphic Variables) be consistent in code
74         example and output
76 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78         Add comments for vim syntax highlighting.
79         * doc/autoconf.texi: Restore font-lock in some examples using
80         $$, for vim.
82         Formatting cleanups for optional arguments.
83         * doc/autoconf.texi (Configuration Actions, Help Formatting)
84         (External Software): Use @r{} for brackets denoting optional
85         arguments, where @ovar is not safe to use.
87         Clarify nested double-quotes and backquotes shell issues.
88         * doc/autoconf.texi (Shellology): New anchor for pdksh.
89         (Shell Substitutions): Link to it for escaped double-quotes
90         within double-quoted backquotes; add ksh example for unescaped
91         inner double-quotes problem.
93         Mention Tru64 5.1 fgrep limitation with emtpy patterns.
94         * doc/autoconf.texi (Limitations of Usual Tools): Update.
96         Overhaul the manual, esp. the Autotest chapter.
97         * doc/autoconf.texi (Installation Directory Variables):
98         Replace some uses of @var with @code.
99         (Special Shell Variables): Fix misordered paragraph about IFS.
100         (Writing Testsuites): Include paragraph following AT_TESTED in
101         the macro definition.
102         (testsuite Invocation): Failed tests are not rerun.
103         (testsuite Scripts, Autotest Logs, testsuite Invocation)
104         (Making testsuite Scripts): Minor edits for consistency and
105         language.
107 2010-06-18  Bruno Haible  <bruno@clisp.org>
109         Document sed -e limitation.
110         * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
111         problem of sed -e option with script fragments.
113 2010-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115         Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
116         * lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
117         hyphens to underscores when turning option names to variables.
118         Avoid macro name concatenation garbage with trailing `dnl'.
119         (AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
120         The OPTIONS are space-separated, not comma-separated.  The
121         negative form of AT_ARG_OPTION is prefixed with `--no-'.
122         * tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
123         New tests.
124         * NEWS: Update.
125         * doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
126         and AT_ARG_OPTION_ARG.
127         (testsuite Invocation): Call the thingies passed to the
128         testsuite options, not arguments.  Note that the testsuite
129         author may add further package-specific options.
131         Autotest: enable colored test results.
132         * lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
133         (HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
134         (AT_INIT): Accept
135         --color and --color=never|auto|always.  If desired, colorize
136         test results and testsuite summary on standard output.
137         [HELP_TUNING]: Divert content instead to ...
138         [HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
139         end, when we know whether AT_COLOR_TESTS has been specified.
140         (AT_COLOR_TESTS): New macro, set the default for color to auto.
141         * doc/autoconf.texi (Writing Testsuites): Document it.
142         (testsuite Invocation): Document --color* options.
143         * tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
144         * tests/autotest.at (color test results): New test, mirroring
145         color.test from Automake.
146         * NEWS: Update.
148 2010-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
150         Avoid texinfo bug with backslashes in macro arguments.
151         * doc/autoconf.texi (Text processing Macros)
152         (Common Shell Constructs): Do not use @dvar with backslashes.
154 2010-06-14  Eric Blake  <eblake@redhat.com>
156         Make CONFIG_SITE handling more robust.
157         * lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
158         search, and check for failure to load.
159         * tests/base.at (AC_CACHE_CHECK): Enhance test.
160         * doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
161         works best as an absolute path.
162         * NEWS: Document the semantic change.
164 2010-03-13  Bruno Haible  <bruno@clisp.org>
165         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
167         Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
168         * doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
169         accepts packages with a + sign in it.
170         (Package Options): Likewise for AC_ARG_ENABLE.
171         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
172         * tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
173         * NEWS: Update.
175 2010-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
177         Autotest: simplify logic to compute test group result.
178         * lib/autotest/general.m4 (AT_INIT): Compactify result
179         computation logic.
181         New Autotest testsuite option --recheck.
182         * lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
183         Escape hyphen in $at_dir early.  Accept command line switch
184         --recheck.  Set $at_suite_log early, based on --directory
185         switch; with --recheck, include the list of FAILed and XPASSed
186         tests from old testsuite.log file in $at_groups.  Document
187         --recheck in --help output.
188         * tests/autotest.at (recheck): New test.
189         * doc/autoconf.texi (testsuite Invocation): Document --recheck.
190         * NEWS: Update.
192 2010-06-14  Karl Berry  <karl@freefriends.org>  (tiny change)
194         Clarify comment about old system.
195         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
196         and note that bug has long since been fixed.
198 2010-06-08  Eric Blake  <eblake@redhat.com>
200         Run libtool test with modern libtool.
201         * tests/foreign.at (Libtool): Request that libtoolize install
202         auxiliary files.  Assume libtool 2.x is modern.
204 2010-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
206         Coverage and doc fixes for AC_LANG_SOURCE and AC_LANG_PROGRAM.
207         * tests/compile.at (AC_LANG_SOURCE, AC_LANG_SOURCE(C++))
208         (AC_LANG_SOURCE example, AC_LANG_PROGRAM example): New tests.
209         * doc/autoconf.texi (Generating Sources): Add markers for tested
210         examples; update quoting, and update AC_INIT usage to also set
211         optional URL arguments.  Mention that the examples require gcc.
212         Prompted by report from Brian J. Murrell.
214         Make AS_SET_CATFILE polymorphic, and add testsuite coverage.
215         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Use AS_VAR_SET to set
216         the variable.
217         * tests/m4sh.at (AS@&t@_SET_CATFILE): New test.
218         * doc/autoconf.texi (Common Shell Constructs): Document that
219         AS_SET_CATFILE is polymorphic in its VAR argument now.
220         * NEWS: Update.
222         Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
223         * tests/autotest.at (AT@&t@_COPYRIGHT): New test.
224         * tests/base.at (AC@&t@_COPYRIGHT): Likewise.
226         Testsuite coverage for __file__ and __line__.
227         * tests/m4sugar.at (__file__ and __line__): New test.
229         Testsuite coverage for AC_CACHE_VAL and caching semantics.
230         * tests/base.at (AC_CACHE_CHECK): Extend test.
231         (AC_CACHE_LOAD): New test.
232         * tests/torture.at (Configuring subdirectories): Also test
233         --config-cache with AC_CONFIG_SUBDIRS.
234         * doc/autoconf.texi (Caching Results): Annotate code snippets
235         which are tested in the test suite.
236         (Cache Files): Documented cache variables may be used on the
237         configure command line to override individual entries in the
238         cache file.
240         Clarify OpenBSD sh errexit issue with compound commands.
241         * doc/autoconf.texi (Limitations of Builtins): Only the last
242         command in a compound list is problematic.
243         Tested on OpenBSD 4.4.
245 2010-06-07  Eric Blake  <eblake@redhat.com>
247         Properly quote AC_PREREQ during autoupdate.
248         * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
249         style for AC_PREREQ.
250         * tests/tools.at (autoupdating AC_PREREQ): Update expected
251         results.
252         Reported by NightStrike.
254 2010-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
256         Documentation and tests for the AC_CHECK_DECL change.
257         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Squash trailing
258         spaces in as_decl_name.
259         (_AC_CHECK_DECLS): Likewise for the define.
260         * tests/semantics.at (AC_CHECK_DECLS): Extend test.
261         * doc/autoconf.texi (Generic Declarations): Update.
262         * NEWS: Update.
264 2010-06-01  Joern Rennecke  <joern.rennecke@embecosm.com>  (tiny change)
266         Generalize AC_CHECK_DECL for C++: allow optional arguments.
267         * general.m4 (_AC_CHECK_DECL_BODY): Process trailing function
268         argument types as arguments to use for C++.
269         (_AC_CHECK_DECLS): Filter out trailing function argument types
270         when generating the HAVE_DECL_* macro.
272 2010-05-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
273             Eric Blake  <eblake@redhat.com>
275         Don't expose AC_{COMPILE,LINK}_IFELSE internals in documentation.
276         * doc/autoconf.texi (Runtime) <AC_LINK_IFELSE>: Suggest to use
277         `conftest$EXEEXT' rather than `conftest$ac_exeext' to acces the
278         just-linked program file.
279         (Runtime) <AC_COMPILE_IFELSE>: Suggest to use `conftest.$OBJEXT'
280         rather than `conftest.$ac_object' to access the just-compiled
281         object file.  Also, refer to the object file as "just-compiled"
282         rather than "just-linked".
284 2010-05-20  Eric Blake  <eblake@redhat.com>
286         Mention another line-counting alternative.
287         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
288         how to use sed to count lines.
289         Suggested by Paolo Bonzini.
291 2010-05-12  Eric Blake  <eblake@redhat.com>
293         Document the grep workaround.
294         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
295         the bug.
297 2010-05-12  Mark Hessling  <mark@rexx.org>  (tiny change)
299         Work around QNX4 grep bug.
300         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Count ^
301         rather than $ to avoid QNX4 grep bug.
302         * THANKS: Update.
304 2010-05-11  David Reiss  <dreiss@facebook.com>  (tiny change)
306         Improve Erlang documentation.
307         * doc/autoconf.texi (Erlang Libraries): Document actual default
308         values.
309         * THANKS: Update.
311 2010-05-11  Eric Blake  <eblake@redhat.com>
313         Fix typo in previous patch.
314         * doc/autoconf.texi (File Descriptors): Add end '.
315         Reported by Ralf Wildenhues.
317         Mention how to silence program probes.
318         * doc/autoconf.texi (File Descriptors): Document how to silence a
319         program probe.
321 2010-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
323         Error and warning message formatting cleanups.
324         * doc/autoconf.texi (Autoconf Language, Generic Structures):
325         Do not capitalize the first word in error messages, do not end
326         them with a period.
327         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE):
328         Likewise.
329         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise.
330         * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare):
331         Likewise.
332         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
333         * tests/base.at (AC_TRY_COMMAND): Likewise.
334         * tests/torture.at (datarootdir workaround): Adjust expected
335         message.
337         Fix placing of ellipses in English text.
338         * lib/autoconf/general.m4 (_AC_INIT_HELP): Be sure to add a
339         space before `...' in natural language text.
340         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY):
341         Likewise.
342         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
343         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
344         * tests/suite.at: Likewise.
345         * tests/torture.at (@%:@define header templates): Likewise.
347         Ensure autotest tests have an atconfig file, for testsuite -v.
348         * tests/autotest.at (AT_CHECK_AT_PREP): Create a default
349         atconfig file in the directory of the testsuite.
350         (AT_CHECK_AT_TITLE): Also check that `./micro-suite -v' output
351         does not contain empty $at_srcdir expansion.
352         (srcdir propagation): Remove the atconfig file generated by
353         AT_CHECK_AT_PREP.  Check each suite invocation for $at_srcdir
354         expansion.
356         Fix autotest testsuite -v output to print test group title.
357         * lib/autotest/general.m4 (AT_CLEANUP): Actually print test
358         title in verbose output.  Fixes AUTOCONF-2.57-101-gc102ed8
359         regression.
360         * tests/autotest.at (AT_CHECK_AT_TITLE): Amend macro to check
361         for test title in -v output.
363 2010-04-26  Eric Blake  <eblake@redhat.com>
365         Clarify octal escapes with tr.
366         * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
367         is portable in octal, but not newline.
369 2010-04-22  Joel James Adamson  <joel@chondestes.bio.unc.edu>  (tiny change)
371         Add a paragraph to FAQ on Debugging configure scripts.
372         * doc/autoconf.texi (Debugging): Mention inspecting config.log.
373         * THANKS: Update.
375 2010-04-21  Mike Frysinger  <vapier@gentoo.org>  (tiny change)
377         Fix typo in doc example.
378         * doc/autoconf.texi (Subdirectories): Fix typo.
380 2010-04-05  Eric Blake  <eblake@redhat.com>
382         Fix m4_cr_all for EBCDIC.
383         * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
384         don't end up with $* in EBCDIC.
385         * NEWS: Document the fix.
386         * THANKS: Update.
387         Reported by Steve Goetze.
389 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
391         Do not use @acronym in the manual.
392         * doc/autoconf.texi: Remove all usage of @acronym.
393         Suggested by Karl Berry.
395         Do not use @sc in the manual.
396         * doc/autoconf.texi: Remove all usage of @sc in the manual.
397         Suggested by Karl Berry.
399 2010-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
401         Fix wrong comment in testsuite.
402         * tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.
404         Formatting cleanups in macro comments.
405         * lib/autoconf/c.m4, lib/autoconf/erlang.m4,
406         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
407         lib/autoconf/general.m4, lib/autoconf/lang.m4,
408         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
409         lib/autoconf/status.m4, lib/autoconf/types.m4,
410         lib/autotest/general.m4, lib/autotest/specific.m4,
411         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
412         tests/autotest.at, tests/local.at, tests/m4sh.at,
413         tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
414         comment format.
416 2010-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
418         manual: index strings containing colon in non-info outputs.
419         * doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
420         index entries for concepts containing a colon in output formats
421         other than info.
423         Update copyright years for files generated by mktests.sh.
424         * tests/mktests.sh: Update copyright years for generated files.
426 2010-03-04  Eric Blake  <eblake@redhat.com>
428         Document AC_LANG_CONFTEST semantic change.
429         * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
430         Enhance documentation, to show that semantic change in 2.63b was
431         intentional.
432         * THANKS: Update.
433         Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.
435 2010-03-04  Peter Johansson  <trojkan@gmail.com>  (tiny change)
437         Autoconf Macro Archive URL has changed.
438         * doc/autoconf.texi (Introduction, Coding Style, Defining
439         Directories): The Autoconf Macro Archive is officially `GNU'.
440         Update URL.
442 2010-03-02  Eric Blake  <eblake@redhat.com>
444         Fix shell code in AS_TR_SH documentation.
445         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
446         example to expand to valid shell code.
447         Reported by Ralf Wildenhues.
449         Improve documentation on AC_{COMPILE,LINK}_IFELSE.
450         * doc/autoconf.texi (Running the Compiler): Mention that the
451         object file is available after a successful compile.
452         (Running the Linker): Likewise for the linker output.
453         Suggested by Paolo Bonzini.
455         Fix typo in docs.
456         * doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
457         typo.
459 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
461         Fix AS_ERROR for FreeBSD sh.
462         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
463         to take additional first argument STATUS instead of transporting
464         $? across shell function entry, which does not work with FreeBSD
465         sh.  Shift all other arguments by one, adjust.
466         (AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
467         Report by Václav Haisman.
469         Fix `autom4te cache creation' testsuite failure on FreeBSD.
470         * tests/tools.at (autom4te cache creation): Normalize exit
471         status of failed redirection to 1, may be 2 with FreeBSD sh.
472         * THANKS: Update.
473         Report by Václav Haisman.
475         Fix Autotest tracing of shell pipelines for FreeBSD sh.
476         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
477         commands that contain [^|]|[^|], a likely shell pipeline.
478         * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
479         grep pipeline.
480         * doc/autoconf.texi (File Descriptors): Document limitation.
481         * tests/autotest.at (Trace output): New test.
483 2010-03-01  Eric Blake  <eblake@redhat.com>
485         Update file flow diagram to mention Automake.
486         * doc/autoconf.texi (Making configure Scripts): Avoid confusion
487         with listing Makefile.in twice on one line.  Add a diagram showing
488         how automake fits into the picture.
489         Reported by santilín.
491 2010-02-26  Eric Blake  <eblake@redhat.com>
493         Optimize AC_REPLACE_FUNCS.
494         * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
495         (AC_REPLACE_FUNCS): Use it to reduce forks when checking for
496         replacements, by using literal rather than shell variable.
498         Document how to safely override CFLAGS default.
499         * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
500         change the default CFLAGS.
501         (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
502         Reported by Monty Taylor; wording suggested by Paolo Bonzini.
504         Document that Autoconf relies on IFS.
505         * doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
506         about use of IFS within configure script.
507         * THANKS: Update.
508         Reported by Arkadiusz Miskiewicz.
510         Recommend latest m4 release.
511         * README: Bump recommendation to m4 1.4.14 (minimum remains
512         1.4.6).
513         * doc/autoconf.texi (Introduction): Likewise.
514         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
516 2010-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
518         Fix testsuite failures due to setting of $U.
519         * tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.
521 2010-02-10  Eric Blake  <ebb9@byu.net>
523         Avoid $U if it is not initialized.
524         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
525         set if automake did not define it.
526         * THANKS: Update.
527         Reported by Heiko Schlichting, via Julien Élie.
529 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
531         Fix substitution of carriage return on Darwin.
532         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
533         ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
534         rather than a literal carriage return, to fix substitution on
535         Darwin.  Regression introduced in 2.63b.
536         Report by Peter O'Gorman.
538 2010-01-21  Dmitry V. Levin <ldv@altlinux.org>
540         Fix test failure when a shell uses $TMPDIR for here-documents.
541         * tests/tools.at (autotools and whitespace in file names): Create
542         $TMPDIR before potential use like in other whitespace tests.
544 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
546         Add recommendation on (not) unsetting IFS.
547         * doc/autoconf.texi (Special shell variables): Explain why it's
548         better not to unset IFS.
550 2010-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
552         config.status: consistent exit status with nonexistent config file input.
553         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
554         exit with status 1 rather than with that of 'false', for
555         reproducibility.
556         (AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
557         * tests/torture.at (Missing templates): Also test code path
558         for $srcdir != '.'.
559         Report by Tim Rice.
561 2010-01-13  Eric Blake  <ebb9@byu.net>
563         Fix previous example.
564         * doc/autoconf.texi (Here-Documents): Touch up the example to
565         match output to sample command line.
567         Document here-doc pitfall.
568         * doc/autoconf.texi (Here-Documents): Mention problem with <<-
569         operator.
570         Reported by Jim Meyering.
572 2010-01-12  Eric Blake  <ebb9@byu.net>
574         Typo fix in earlier commit.
575         * doc/autoconf.texi (Autoconf Language): Fix typo.
577 2010-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
579         Allow AC_FUNC_MKTIME to work with C++.
580         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
581         definitions.  Use `const char*' for character literals; cast them
582         to `char*' for putenv.
584 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
586         Export AUTOM4TE in tests/atlocal.in, for aclocal.
587         * tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
588         Report by Tim Rice.
590 2010-01-08  Eric Blake  <ebb9@byu.net>
592         Make autotest example act better with automake.
593         * doc/autoconf.texi (Making testsuite Scripts): Rely on automake
594         feature for recommended autotest snippet, following our own use.
596         Clarify language on handling of opening parenthesis.
597         * doc/autoconf.texi (Autoconf Language): Give an example of
598         improper argument passing.
599         * THANKS: Update.
600         Reported by Juan Carlos Hurtado.
602 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
604         Don't fail autom4te preselection test due to different Automake.
605         * tests/tools.at (autom4te preselections): If the cache test
606         fails, extract the Automake version from the toplevel
607         Makefile.in file of the source tree; skip, rather than fail
608         the test group if the automake program has a different version.
609         * THANKS: Update.
610         Report by Dieter Jurzitza, fix suggested by Eric Blake.
612 2010-01-06  Peter Breitenlohner  <peb@mppmu.mpg.de>
613             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
615         Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
616         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
617         not $srcdir, for being relative or absolute.
618         * tests/torture.at (AC_CONFIG_LINKS): New test.
619         (AC_CONFIG_LINKS and identical files): Extend test, avoid some
620         forks.
621         Report, patch and testcase example by Peter Breitenlohner.
623 2010-01-05  Eric Blake  <ebb9@byu.net>
625         Improve release automation.
626         * maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
627         (announcement): Copy from latest gnulib maint.mk.
628         * cfg.mk (announce_gen, gpg_key_ID): Delete.
629         (bootstrap-tools): Override the default.
631         Update upstream files.
632         * GNUmakefile: Update via 'make fetch'.
633         * build-aux/announce-gen: Likewise.
634         * build-aux/config.guess: Likewise.
635         * build-aux/config.sub: Likewise.
636         * build-aux/gendocs.sh: Likewise.
637         * build-aux/gnupload: Likewise.
638         * build-aux/move-if-change: Likewise.
639         * build-aux/update-copyright: Likewise.
640         * build-aux/vc-list-files: Likewise.
641         * doc/standards.texi: Likewise.
642         * cfg.mk (update-copyright-env): Enforce wrap column.
644         Update copyright year.
645         All files changed to add 2010, via 'make update-copyright'.
647 2009-12-31  Bruno Haible  <bruno@clisp.org>
649         Improve documentation on Solaris tr bugs.
650         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
651         description of NUL handling by Solaris tr.
653 2009-12-31  Eric Blake  <ebb9@byu.net>
655         Another tr tweak.
656         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
657         previous commit.
658         Reported by Ralf Wildenhues.
660 2009-12-29  Eric Blake  <ebb9@byu.net>
662         Improve documentation on tr portability.
663         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
664         description of NUL handling.  Document set size issue.
665         Reported by Bruno Haible.
667         Fix comment in AC_CHECK_DECLS.
668         * lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
669         argument to the shell function.
671 2009-12-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
673         Add testsuite exposure for shtool usage.
674         * tests/foreign.at (shtool): New test.
675         Report by Dmitry Grebeniuk.
677 2009-12-12  Eric Blake  <ebb9@byu.net>
679         Improve wording about m4 quote characters.
680         * doc/autoconf.texi (Autoconf Language): Autoconf quote characters
681         come from m4sugar, not raw m4.
682         (Active Characters): Mention that it is m4sugar which changes
683         quotes from `' to [].
684         * THANKS: Update.
685         Suggested by Josef Vukovic.
687 2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
689         Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
690         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
691         shtool as install script.  Regression introduced in 2.64.
692         * NEWS, THANKS: Update.
693         Report by Dmitry Grebeniuk.
694         This reverts commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.
696 2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
698         Fix NEWS description for AC_FUNC_MMAP entry.
699         * NEWS: Update.
701         Fix 2.65 AC_TYPE_INT*_T macro body text regression.
702         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
703         definition to prologue section, to avoid syntax error.
704         * NEWS, THANKS: Update.
705         Report by Pierre Ynard.
707 2009-12-09  Paolo Bonzini  <bonzini@gnu.org>
709         Fix `recursion' test failure.
710         * tests/m4sugar.at (recursion): Use empty diversion, not 0.
712 2009-12-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
713             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
715         Document Solaris/Heirloom sh set -e issue with command substitutions.
716         * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
717         in previous example.  Document failure to honor && lists with set -e
718         and a command substitution in the failing command.
719         Report and initial patch by Stefano Lattarini against Automake.
721 2009-12-04  Eric Blake  <ebb9@byu.net>
723         Warn if using unnamed diversion.
724         * lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
725         optional parameter, which controls warning.
726         (m4_divert_pop, m4_cleardivert, m4_divert_require)
727         (_m4_require_call): Adjust callers.
728         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
729         * tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
730         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
731         (m4@&t@_text_wrap, recursion): Likewise.
732         (m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
733         * tests/tools.at (autom4te and whitespace in file names)
734         (autoconf: the empty token): Avoid triggering the warning.
735         (autoconf: AC_PRESERVE_HELP_ORDER): New test.
736         * tests/mktests.sh (ac_exclude_list): Retire prior test.
737         * NEWS: Document the warning.
738         * doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
739         <m4_undivert>: Make even more explicit that using these directly
740         is discouraged.
741         (Diversion support): Further warn against improper diversion
742         changes.
743         <m4_divert_text>: Give an example of proper use.
744         Reported by Mike Frysinger.
746 2009-11-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
748         manual: AC_SEARCH_LIBS also prepends to LIBS.
749         * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
750         prepends to LIBS, just like AC_CHECK_LIB.
752 2009-11-27  Paolo Bonzini  <bonzini@gnu.org>
754         Bump m4.m4 serial number.
755         * m4/m4: Bump serial number to 10.
757 2009-11-27  Harald van Dijk  <truedfx@gentoo.org>
759         Fix m4 detection test on dash.
760         * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
762 2009-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
764         Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
765         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
766         for the constant string.  Cast void* to char* for assignment.
767         * NEWS, THANKS: Update.
768         Report by Michal Čihař.
770         Add pgfortran to list of Fortran 95+ compilers.
771         * lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
772         pgf95.
773         Based on report by Jeff Squyres.
775 2009-11-22  Bruno Haible  <bruno@clisp.org>
777         Fix failure of test 35 when the user has a .autom4te.cfg file.
778         * tests/tools.at (autom4te cache creation): Skip the test if the
779         user has a .autom4te.cfg file.
781 2009-11-21  Eric Blake  <ebb9@byu.net>
783         Release Version 2.65.
784         * NEWS: Mention the release.
786         Prepare for release.
787         * build-aux/announce-gen: Sync from upstream.
788         * build-aux/config.guess: Likewise.
789         * build-aux/config.sub: Likewise.
790         * cfg.mk (gnu_rel_host, url_dir_list): Move...
791         * maint.mk: ...here, copying ideas from gnulib.
792         (major): Rename...
793         (stable): ...to this, copying gnulib.
794         * HACKING (release): Document changes in process.
796         Avoid spurious newline in traced macros.
797         * bin/autoreconf.in (tracing): Drop newline before parsing traced
798         arguments; regression from 2009-11-14.
800 2009-11-20  Eric Blake  <ebb9@byu.net>
802         Allow absolute names in AT_TESTED.
803         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
804         absolute names before path walk.
805         * THANKS: Update.
806         Suggested by Allan Clark.
808 2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
810         Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
811         * bin/autoreconf.in (autoreconf_current_directory): Collapse
812         newlines in the autoconf trace output, similar to how automake
813         invokes autoconf, so that newlines do not matter in the argument
814         to AC_CONFIG_SUBDIRS.
815         * tests/torture.at (Deep Package): Expose this issue in the
816         test.
817         * THANKS: Update.
818         Report by Nathan Schulte.
820 2009-11-09  Eric Blake  <ebb9@byu.net>
822         Fix AC_FUNC_MMAP for cygwin.
823         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
824         portable: Actually check for <sys/param.h>, and only use MAP_FIXED
825         on an address previously returned from mmap.
826         * THANKS: Update.
827         Reported by Corinna Vinschen.
829 2009-11-04  Eric Blake  <ebb9@byu.net>
831         Redocument AS_DIRNAME, even with its flaws.
832         * doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
833         Restore documenatation, since dirname mentions it.
834         Reported by Peter Johansson.
836         Update upstream files.
837         * build-aux/announce-gen: Synchronize from upstream.
838         * build-aux/config.guess: Likewise.
839         * build-aux/config.sub: Likewise.
840         * build-aux/gendocs.sh: Likewise.
841         * build-aux/git-version-gen: Likewise.
842         * build-aux/texinfo.tex: Likewise.
843         * build-aux/update-copyright: Likewise.
844         * doc/standards.texi: Likewise.
845         * lib/Autom4te/Channels.pm: Likewise.
846         * lib/Autom4te/Configure_ac.pm: Likewise.
847         * lib/Autom4te/FileUtils.pm: Likewise.
848         * lib/Autom4te/Struct.pm: Likewise.
849         * lib/Autom4te/XFile.pm: Likewise.
851 2009-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
853         Coverage for autom4te cache creation issues.
854         * tests/tools.at (autom4te cache creation): New test.
856 2009-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
858         Fix testsuite failures with SHELL=zsh.
859         * tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
860         comparing configure variables.
862 2009-11-03  Eric Blake  <ebb9@byu.net>
863         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
865         Update NEWS for recent fixes.
866         * NEWS: Add some entries.
868 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
870         Micro-optimization of config.status substitution.
871         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
872         concatenate an empty second string, when we have exactly 148
873         characters to substitute.
874         * tests/torture.at (Substitute a 2000-byte string): Add test
875         exposure for runs of backslashes near the 148 character limit.
877         Fix testsuite failure on AIX 4.3.3.
878         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
879         also if it is empty.
881         Fix testsuite failure on IRIX and AIX.
882         * tests/torture.at (Substitute and define special characters):
883         Double the backslash before the double-quote in
884         AC_DEFINE_UNQUOTED, as documented for here-documents.
886 2009-10-31  Eric Blake  <ebb9@byu.net>
888         Fix cross-manual link to gcc.
889         * doc/autoconf.texi (Portable C and C++): Provide uref rather than
890         xref when building for html.
891         Reported via Karl Berry.
893         Update authors.
894         * AUTHORS: Document recent copyright assignments.
896 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
898         Fix AC_OPENMP configure message for non-C compilers.
899         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
900         fourth arg the compiler variable name, defined in _AC_CC($1).
901         (_AC_CC): New language dispatch macro.
902         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
903         * lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
904         Likewise.
905         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
906         (AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
907         (AC_OPENMP): Use _AC_CC instead of $CC.
909         Do not fail OpenMP tests on systems without aclocal.
910         * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
911         `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
912         * tests/fortran.at (AC_OPENMP and Fortran 77)
913         (AC_OPENMP and Fortran): Likewise.
915 2009-10-31  Bruno Haible  <bruno@clisp.org>
916             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
918         Improve cache variable documentation.
919         * doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
920         AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
921         AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
922         AC_PATH_PROGS): Don't suggest to use the cache variable, only to
923         override it, or preferably, a non-cache variable associated with
924         the test.
925         (AC_PROG_SED): Likewise. Fix name of cache variable.
926         (AC_FUNC_GETMNTENT): Fix name cache variable.
927         (AC_FUNC_LSTAT): Fix typo.
929 2009-10-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
931         Fix AC_OPENMP for Fortran (F77 and FC).
932         * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
933         * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
934         (AC_OPENMP and C++): New tests.
935         * tests/fortran.at (AC_OPENMP and Fortran 77)
936         (AC_OPENMP and Fortran): New tests.
937         * THANKS: Update.
938         Report by Bart Oldeman.
940         Perl coverage convenience targets.
941         * Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
942         (PERL_COVER): New variables.
943         (check-coverage, check-coverage-run, check-coverage-report)
944         (clean-coverage): New phony targets.
945         (clean-local): Depend on clean-coverage.
947 2009-10-28  Eric Blake  <ebb9@byu.net>
949         Fix corner cases in AS_LITERAL_IF and AS_TR_SH.
950         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
951         parens.  Move guts...
952         (_AS_LITERAL_IF): into new helper.
953         (AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
954         Move guts...
955         (_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
956         (_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
957         (AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
958         (_AS_VAR_PUSHDEF): ...into new helper.
959         * tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.
961         Minor optimizations to m4sh.
962         * lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
963         (AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
964         if-true and if-false arguments only once.
966         Optimize m4_escape for common case.
967         * lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
968         already sane, by copying from AS_LITERAL_IF.  Move guts...
969         (_m4_escape): ...into new helper.
971         Fix m4_text_wrap handling of quoted whitespace.
972         * lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
973         (m4_text_wrap): Use it to avoid issues with embedded [ and ].
974         * tests/m4sugar.at (m4@&t@_text_wrap): Test it.
975         * NEWS: Document this.
976         * doc/autoconf.texi (Text processing Macros) <m4_escape>:
977         Likewise.
978         Reported by Mike Frysinger.
980 2009-10-27  Eric Blake  <ebb9@byu.net>
982         Mention another feature of AC_RUN_IFELSE.
983         * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
984         compiled test program still exists during if-true branch.
985         * THANKS: Update.
986         Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.
988 2009-10-26  Paolo Bonzini  <bonzini@gnu.org>
990         Pass Autom4te path down to programs that autoreconf invokes.
991         * bin/autoreconf.in (autom4te): New variable.  Export its value
992         as $ENV{'AUTOM4TE'}.  Suggested by Peter Johansson.
993         * THANKS: Update.
995 2009-10-20  Eric Blake  <ebb9@byu.net>
997         Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
998         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
999         (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
1000         wider than type.
1001         * NEWS: Document this.
1002         Reported by Rainer Orth.
1004 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1006         Fix a couple of index entries in the manual.
1007         * doc/autoconf.texi (Polymorphic Variables): Fix index entries
1008         for AS_VAR_APPEND, AS_VAR_ARITH.
1010 2009-10-15  Eric Blake  <ebb9@byu.net>
1012         Fix typos in INSTALL.
1013         * doc/install.texi (Basic Installation, Installation Names): Fix
1014         typos in last patch.
1015         Repored by Ralf Wildenhues.
1017         Improve INSTALL wording.
1018         * doc/install.texi (Basic Installation): Clarify installcheck
1019         behavior.
1020         (Installation Names): Mention that --prefix only overrides
1021         directory locations not specified on the command line.  Prefer
1022         /alternate/directory over /path/to.  Remove a sentence targeted to
1023         the developer, not the user.
1024         * THANKS: Update.
1025         Suggested by Alfred M. Szmidt.
1027 2009-10-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1029         Fix typos in documentation.
1030         * doc/autoconf.texi (Cache Variable Index): Fix typo.
1031         (Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.
1033 2009-10-09  Bruno Haible  <bruno@clisp.org>
1034             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1036         Recommend `sh -n' debugging, and public result variables for macros.
1037         * doc/autoconf.texi (Debugging): Recommend to use "bash -n
1038         configure".  Recommend the use of result variables as an
1039         alternative to run-if-true/run-if-false parameters.
1041 2009-10-05  Bruno Haible  <bruno@clisp.org>
1043         * doc/autoconf.texi (Particular Functions): Swap sections about
1044         AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.
1046 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
1048         Unconditionally check for junk ./--version after mkdir search loop.
1049         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
1050         presence of ./--version.  Reported by Eric Blake.
1052 2009-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1054         Clarify documentation about Solaris sed quantifier restriction.
1055         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
1056         not work after subexpressions, \{M,N\} only after one-character
1057         expressions.  From GCC PR 38923.
1059 2009-09-21  Eric Blake  <ebb9@byu.net>
1061         Fit configure output in 80 columns.
1062         * lib/autoconf/functions.m4
1063         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
1065 2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067         Use consistent notation for cache variables.
1068         * doc/autoconf.texi (Generic Programs): Remove `$' before
1069         variable name.
1071         Documentation of specific and general cache variables.
1072         * doc/autoconf.texi (Default Includes, Alternative Programs)
1073         (Particular Programs, Generic Programs, Files, Libraries)
1074         (Function Portability, Particular Functions, Generic Functions)
1075         (Particular Headers, Generic Headers, Declarations)
1076         (Generic Declarations, Particular Structures, Particular Types)
1077         (Specific Compiler Characteristics)
1078         (Generic Compiler Characteristics, C Compiler, System Services):
1079         Document lots of cache variables.
1080         * NEWS: Update.
1081         Suggested by Bruno Haible.
1083         New cache variable index in the manual.
1084         * doc/autoconf.texi: Define new index `CA' for cache variables.
1085         (caindex): New macro.
1086         (Cache Variable Index): New appendix node.
1087         (Top, Indices): Adjust menus.
1088         (Cache Variable Names, Site Defaults): Adjust text.
1089         * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
1091         New FAQ node: Debugging.
1092         * doc/autoconf.texi (Debugging): New node.
1093         (Top, FAQ): Adjust menus.
1094         Report by Bruno Haible.
1096         Document AM_MAKEFLAGS workaround to the macro override problem.
1097         * doc/autoconf.texi (Macros and Submakes): Automake makefiles
1098         provide AM_MAKEFLAGS to help with overriding macros in submake
1099         invocations.
1100         Prompted by bug report from Bruno Haible.
1102 2009-09-15  Peter Breitenlohner  <peb@mppmu.mpg.de>
1104         Implement and document Objective C++ support.
1105         * lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
1106         (AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
1107         (AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
1108         (_AC_PROG_OBJCXX_G): New macros.
1109         (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
1110         (_AC_ARG_VAR_LIBS): Adjusted.
1111         * doc/autoconf.texi (Objective C++ Compiler): New node.
1112         (Preset Output Variables): Document OBJCXXFLAGS.
1113         (Language Choice): Document `Objective C++' language.
1114         * NEWS: Updated.
1115         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
1116         related variables.
1118 2009-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1120         Work around DJGPP shell function return bug with command substitutions.
1121         DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
1122         shell function which also contains a command substitution causes
1123         the shell to barf.  For more details and a fix see:
1124         <http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
1125         Possible workaround include putting the `return' in a subshell
1126         or calling another function to set the status.
1127         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
1128         (_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
1129         (_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
1130         instead of `return'.
1131         * doc/autoconf.texi (Common Shell Constructs, Shell Functions):
1132         Document the issue.
1133         * THANKS: Update.
1134         Report by Rugxulo and Reuben Thomas.
1136         DJGPP fix: Do not redirect standard input in configure scripts.
1137         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
1138         nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
1139         fd 0.
1141 2009-09-14  Eric Blake  <ebb9@byu.net>
1143         Quote result of m4_toupper and m4_tolower.
1144         * lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
1145         * lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
1146         * tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
1147         * NEWS: Document this.
1148         * THANKS: Update.
1149         Reported by Sam Steingold.
1151 2009-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1153         DJGPP fix: remove both conftest and conftest.exe.
1154         The DJGPP compiler may create both `a.out' and `a.exe' without -o,
1155         and both `conftest' and `conftest.exe' with `-o conftest', but not
1156         with `-o conftest.exe'.
1157         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
1158         `conftest' without $ac_exeext suffix.
1160         DJGPP fix: do not try to source /dev/null as cache or site file.
1161         * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
1162         load the cache or site file if it is `/dev/null', as DJGPP treats
1163         it as a regular file, but the shell then warns about it later.
1164         Fixes several test suite failures on DJGPP.
1166         testsuite: pass $configure_options to configure invocations.
1167         * tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
1168         to configure command line.
1169         * tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
1170         Likewise for each configure invocation.
1171         * README-hacking: Document configure_options.
1173         testsuite: improve Erlang tests portability, overridability.
1174         * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
1175         value-if-not-found for Erlang tools.
1176         * tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
1177         exit.
1179 2009-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1181         * bin/autoupdate.in: Fix typos in comments.
1183         Improve autotest testsuite summary message.
1184         * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
1185         only if not $at_debug_p.  Always hint at the per-test output.
1187         Four new autoupdate tests, expected failures.
1188         * tests/tools.at (autoupdating macros recursively)
1189         (autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
1190         (autoupdating with complex quoting): New tests.
1192         Fix description of AC_CHECK_LIB regarding other deplibs.
1193         * doc/autoconf.texi (Libraries): Library linking may not fail
1194         even without missing additional libs.
1196 2009-09-12  Eric Blake  <ebb9@byu.net>
1198         Track recent copyright assignments.
1199         * AUTHORS: Update.
1201         Improve documentation on quoting.
1202         * doc/autoconf.texi (Autoconf Language): Clarify quoting example.
1203         * THANKS: Update.
1204         Reported by santilín.
1206 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1208         New config.status option --config.
1209         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
1210         --config.
1211         * doc/autoconf.texi (config.status Invocation): Document it.
1212         * NEWS: Update.
1213         * tests/torture.at (configure invocation): Test it.
1214         Suggested several times, by several people, in the past.
1216 2009-09-10  Eric Blake  <ebb9@byu.net>
1218         Document that AS_INIT is automatically used.
1219         * doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
1220         to clarify that only bare-bones scripts need a direct AS_INIT.
1221         Suggested by Reuben Thomas.
1223         Clarify portability pitfall of test.
1224         * doc/autoconf.texi (Limitations of Builtins) <test>: Give more
1225         reasons why -a and -o are not portable.
1226         Reported by Reuben Thomas.
1228 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1230         Document sed limitation with escaped metacharacters.
1231         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
1232         rather than `/' as delimiter in an example `s' command.
1233         Document inconsistent treatment of escaped metacharacters.
1234         * THANKS: Update.
1235         Report by Dave Korn, with additional input from Paolo Bonzini
1236         and Eric Blake.
1238         Document temporary directory `$tmp' for use in config.status.
1239         * doc/autoconf.texi (Configuration Actions): Document `$tmp'.
1240         * NEWS: Update.
1242 2009-09-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1244         Update License to GPLv3+ including new Autoconf Exception.
1245         * NEWS, README: Update licensing information.
1246         * COPYING.EXCEPTION: New file.
1247         * Makefile.am (EXTRA_DIST): Distribute it.
1248         * cfg.mk (autom4te-update): Remove copyright change warning.
1249         * lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1250         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1251         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1252         lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
1253         lib/autoconf/functions.m4, lib/autoconf/general.m4,
1254         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
1255         lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
1256         lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1257         lib/autoconf/status.m4, lib/autoconf/types.m4,
1258         lib/autotest/autotest.m4, lib/autotest/general.m4,
1259         lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
1260         lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
1261         statement, bump to GPLv3.
1262         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
1263         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
1264         bin/ifnames.in: Bump to GPLv3+, adjust --version output
1265         to reflect the GPLv3+ and the Autoconf Exception.
1266         * lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1267         lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
1268         lib/autom4te.in, lib/autoscan/autoscan.pre,
1269         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1270         lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
1271         tests/autotest.at, tests/base.at, tests/c.at,
1272         tests/compile.at, tests/erlang.at, tests/foreign.at,
1273         tests/fortran.at, tests/local.at, tests/m4sh.at,
1274         tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
1275         tests/statesave.m4, tests/suite.at, tests/tools.at,
1276         tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
1278         Allow to work on systems without Fcntl::flock implementation.
1279         * configure.ac (PERL_FLOCK): New substitution variable with test
1280         whether Fcntl::flock is implemented by the system.
1281         * bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
1282         * bin/autom4te.in: Call XFile::lock only if flock is
1283         implemented.
1285 2009-09-04  Reuben Thomas <rrt@sc3d.org>  (tiny change)
1287         Mention the Autoconf archive.
1288         * doc/autoconf.texi (Coding Style): Add a link.
1290 2009-08-30  Bruno Haible  <bruno@clisp.org>
1292         Document another Solaris tr pitfall.
1293         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
1294         that Solaris /usr/bin/tr does not only have problems with
1295         replacing NUL bytes but discards all NUL bytes from the input.
1297 2009-09-04  Eric Blake  <ebb9@byu.net>
1299         Improve wording about what goes before AC_INIT.
1300         * doc/autoconf.texi (Initializing configure): Update wording.
1301         (Versioning) <AC_PREREQ>: Remove misleading text, to match
1302         autoscan's behavior.
1303         * THANKS: Update.
1304         Reported by NightStrike, with input from Ralf Wildenhues.
1306 2009-09-04  Thomas Jahns  <jahns@dkrz.de>  (tiny change)
1308         Fix illegal tab character in Fortran source.
1309         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
1310         multiple spaces; regression introduced 2008-10-23.
1311         * NEWS: Mention this.
1312         * THANKS: Update.
1314 2009-08-22  Romain Lenglet  <romain.lenglet@laposte.net>
1316         Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
1317         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
1318         versions of Erlang/OTP with an erlang:stop() function that doesn't
1319         take arguments.
1321 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1323         Drop unneeded line in Eunit test.
1324         * tests/autotest.at (Erlang Eunit unit tests): Do not copy
1325         install-sh.
1327         Fix build dependencies for Erlang macro files.
1328         * lib/freeze.mk (autotest_m4f_dependencies): Add
1329         $(src_libdir)/autotest/specific.m4.
1330         * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
1332 2009-09-19  Paolo Bonzini  <bonzini@gnu.org>
1334         Use a separate program to test whether the compiler works.
1335         * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
1336         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
1337         (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
1338         (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
1339         works", before exiting.
1340         (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
1341         remove the "whether the xyz compiler works" message, use
1342         conftest$ac_cv_exeext instead of $ac_file.
1343         (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
1344         the null program, and clean conftest.out only after
1345         _AC_COMPILER_EXEEXT_CROSS.
1346         (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
1347         (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
1349 2009-08-18  Bruno Haible  <bruno@clisp.org>
1351         Document Solaris tr range and NUL limitations.
1352         * doc/autoconf.texi (Limitations of Usual Tools): Mention that
1353         Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
1354         escape.
1356 2009-08-14  Eric Blake  <ebb9@byu.net>
1358         Simplify version control metadata.
1359         * .cvsignore: Delete.
1360         * bin/.cvsignore: Likewise.
1361         * config/.cvsignore: Likewise.
1362         * doc/.cvsignore: Likewise.
1363         * lib/.cvsignore: Likewise.
1364         * lib/autoconf/.cvsignore: Likewise.
1365         * lib/Autom4te/.cvsignore: Likewise.
1366         * lib/autoscan/.cvsignore: Likewise.
1367         * lib/autotest/.cvsignore: Likewise.
1368         * lib/emacs/.cvsignore: Likewise.
1369         * lib/m4sugar/.cvsignore: Likewise.
1370         * man/.cvsignore: Likewise.
1371         * tests/.cvsignore: Likewise.
1372         * bin/.gitignore: Likewise.
1373         * build-aux/.gitignore: Likewise.
1374         * config/.gitignore: Likewise.
1375         * doc/.gitignore: Likewise.
1376         * lib/.gitignore: Likewise.
1377         * lib/autoconf/.gitignore: Likewise.
1378         * lib/Autom4te/.gitignore: Likewise.
1379         * lib/autoscan/.gitignore: Likewise.
1380         * lib/autotest/.gitignore: Likewise.
1381         * lib/emacs/.gitignore: Likewise.
1382         * lib/m4sugar/.gitignore: Likewise.
1383         * man/.gitignore: Likewise.
1384         * tests/.gitignore: Likewise.
1385         * .gitignore: Consolidate all rules into one file.
1387         Normalize remaining copyright lines.
1388         * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
1389         * NEWS: Likewise.
1390         * README-hacking: Likewise.
1391         * TODO: Likewise.
1392         * lib/Autom4te/ChannelDefs.pm: Likewise.
1393         * lib/autoconf/fortran.m4: Likewise.
1394         * lib/autoconf/general.m4: Likewise.
1395         * lib/autoconf/lang.m4: Likewise.
1396         * lib/autotest/general.m4: Likewise.
1397         * maint.mk: Likewise.
1398         * tests/compile.at: Likewise.
1400         Improve copyright updating.
1401         * build-aux/update-copyright: Resynchronize from upstream.
1402         * maint.mk (update-copyright): Simplify based on gnulib.
1403         (update-copyright-env): New variable.
1404         * cfg.mk (update-copyright-exclude-regexp): Delete.
1405         (update-copyright-env): New override.
1406         * .x-update-copyright: New file.
1407         * lib/Autom4te/Makefile.am: Add copyright.
1408         * lib/Autom4te/Channels.pm: Revert copyright update to upstream
1409         file.
1410         * lib/Autom4te/Configure_ac.pm: Likewise.
1411         * lib/Autom4te/FileUtils.pm: Likewise.
1412         * lib/Autom4te/Struct.pm: Likewise.
1413         * lib/Autom4te/XFile.pm: Likewise.
1415         Update copyright.
1416         * AUTHORS: Include 2009 in copyright.
1417         * lib/Autom4te/C4che.pm: Likewise.
1418         * lib/Autom4te/Channels.pm: Likewise.
1419         * lib/Autom4te/Configure_ac.pm: Likewise.
1420         * lib/Autom4te/FileUtils.pm: Likewise.
1421         * lib/Autom4te/General.pm: Likewise.
1422         * lib/Autom4te/Request.pm: Likewise.
1423         * lib/Autom4te/Struct.pm: Likewise.
1424         * lib/autoconf/Makefile.am: Likewise.
1425         * lib/autoconf/autoconf.m4: Likewise.
1426         * lib/autoconf/autoscan.m4: Likewise.
1427         * lib/autoconf/autoupdate.m4: Likewise.
1428         * lib/autoconf/functions.m4: Likewise.
1429         * lib/autoconf/libs.m4: Likewise.
1430         * lib/autoconf/oldnames.m4: Likewise.
1431         * lib/autoconf/types.m4: Likewise.
1432         * lib/autoscan/Makefile.am: Likewise.
1433         * lib/autoscan/autoscan.pre: Likewise.
1434         * lib/autotest/Makefile.am: Likewise.
1435         * lib/autotest/autotest.m4: Likewise.
1436         * lib/emacs/autoconf-mode.el: Likewise.
1437         * lib/emacs/autotest-mode.el: Likewise.
1438         * lib/freeze.mk: Likewise.
1439         * lib/m4sugar/foreach.m4: Likewise.
1440         * man/Makefile.am: Likewise.
1441         * tests/atlocal.in: Likewise.
1442         * tests/autoscan.at: Likewise.
1443         * tests/foreign.at: Likewise.
1444         * tests/fortran.at: Likewise.
1445         * tests/mktests.sh: Likewise.
1446         * tests/semantics.at: Likewise.
1447         * tests/suite.at: Likewise.
1448         * tests/wrapper.as: Likewise.
1450         Prepare to bulk update copyright years.
1451         * build-aux/update-copyright: New file.
1452         * cfg.mk (gnulib-update): Sync it from gnulib.
1453         (update-copyright-exclude-regexp): New variable.
1454         (web-manual): Move...
1455         * maint.mk (web-manual): ...here, to match gnulib.
1456         (update-copyright): New target, copied from gnulib's
1457         maint.mk (it would be nice to sync this file...).
1458         (build_aux): New macro.
1459         (VC_LIST, emit_upload_commands): Use it.
1460         * build-aux/texinfo.tex: Resynchronize from upstream.
1461         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
1462         expected pattern.
1463         * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
1465 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
1467         Fix testsuite log capturing for tests 183 and 186.
1468         * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
1469         testsuite log file for AT_CAPTURE_FILE.
1471 2009-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1473         Ensure we do not regress with AC_CHECK_MEMBERS.
1474         * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
1475         AC_CHECK_MEMBERS fix.
1476         (AC_CHECK_MEMBER): New test group.
1478 2009-08-10  Jeff Squyres  <jsquyres@cisco.com>  (tiny change)
1480         Fix typo in AC_REQUIRE description.
1481         * doc/autoconf.texi (Prerequisite macros): Fix typo.
1483 2009-08-10  Paolo Bonzini  <bonzini@gnu.org>
1485         Fix description of the macro generated by AC_CHECK_MEMBERS.
1486         * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
1487         replacement.  Reported by Bruno Haible.
1489 2009-08-07  Romain Lenglet  <romain.lenglet@laposte.net>
1491         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
1492         fail if the test module doesn't compile.
1494 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
1496         Use exit code to detect no occurrences with grep.
1497         * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
1499 2009-08-01  Romain Lenglet  <romain.lenglet@laposte.net>
1500             Paolo Bonzini  <bonzini@gnu.org>
1502         * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
1503         * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
1504         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
1505         variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
1506         * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
1507         AT_CHECK_EUNIT.
1508         * doc/autoconf.texi (Writing Testsuites): Document macro
1509         AT_CHECK_EUNIT.
1510         * NEWS: Mention macro AT_CHECK_EUNIT.
1512 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
1513             Joel E. Denny  <jdenny@clemson.edu>
1515         Clarify comparison of echo, printf, and AS_ECHO*.
1516         * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
1517         give a reason why printf is better than echo.  In printf's
1518         entry, cross-reference echo's entry.
1520 2009-07-30  Paolo Bonzini  <bonzini@gnu.org>
1522         Add back AH_CHECK_HEADERS.
1523         * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
1524         * NEWS: Create new section.
1526 2009-07-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1528         testsuite: avoid bogus hostname match from inner test logs.
1529         * tests/autotest.at (Hard fail): Check more restrictively for
1530         passed tests, so that hostnames recorded in the log file do not
1531         wrongly match.
1532         Report by Ludovic Courtès.
1534 2009-07-26  Eric Blake  <ebb9@byu.net>
1536         Release Version 2.64.
1537         * NEWS: Mention the release.
1538         * README: This release is stable.
1539         * HACKING (release): Use dist-xz, not dist-lzma.
1541         Document some optional features in INSTALL.
1542         * doc/install.texi (Basic Installation): Mention that INSTALL is
1543         generic, and that not all packages implement all features.
1544         Mention 'make distcheck' for maintainers, and 'make installcheck'
1545         for users.  Mention the GNU Coding Standards.
1546         (Installation Names): Mention DESTDIR vs. 'make prefix= install'
1547         as ways to alter the configuration, with caveats of each.  Move
1548         --program-prefix discussion...
1549         (Optional Features): ...here.  Mention --enable-silent-rules and
1550         use of make V=0.
1552         Basic improvements to INSTALL.
1553         * doc/install.texi (Basic Installation): Use better markup.
1554         (Multiple Architectures): Introduce the term VPATH.
1555         (Installation Names): Mention that --prefix must be absolute.
1556         * doc/autoconf.texi (Preset Output Variables)
1557         (Installation Directory Variables): Consistently refer to GNU
1558         Coding Standards.
1560         Update some upstream files.
1561         * build-aux/config.guess: Resynchronize from upstream.
1562         * build-aux/config.sub: Likewise.
1563         * build-aux/texinfo.tex: Likewise.
1564         * build-aux/vc-list-files: Likewise.
1565         * doc/standards.texi: Likewise.
1567 2009-07-25  Eric Blake  <ebb9@byu.net>
1569         Recognize new m4sugar keywords.
1570         * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
1571         m4_define_default, m4_defun_init, m4_defun_once.
1572         (autoconf-font-lock-keywords):  Likewise.
1574         Require m4 1.4.6, and fix testsuite to support this version.
1575         * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
1576         regexp it can't handle.
1577         * NEWS: Mention minimum version bump.
1578         * README: Likewise.
1579         * README-hacking: Likewise.
1580         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
1581         * tests/tools.at (autom4te --trace and whitespace): Update test so
1582         still work with older m4 line numbers.
1583         * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
1584         Reported by Ralf Wildenhues.
1586 2009-07-25  Bruno Haible  <bruno@clisp.org>
1588         Clarify autom4te debugging tips.
1589         * doc/autoconf.texi (Debugging via autom4te): Fix example from
1590         previous commit, and add clarification.
1592 2009-07-25  Eric Blake  <ebb9@byu.net>
1594         Document some autom4te debugging tips.
1595         * doc/autoconf.texi (Debugging via autom4te): New node.
1596         Suggested by Bruno Haible.
1598         Fix font-lock.
1599         * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
1601         Let autoheader see through m4 macros in AC_DEFINE.
1602         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
1603         tracing its name.
1604         * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
1605         for using the macro in a template file.
1606         * tests/tools.at (autoheader and macros): New test.
1607         * NEWS: Mention this.
1608         Reported by Bruno Haible.
1610         Improve NEWS wording.
1611         * NEWS: Use more accurate statement.
1612         Suggestedy by Ralf Wildenhues.
1614 2009-07-24  Eric Blake  <ebb9@byu.net>
1616         Fix AS_EXIT for FreeBSD sh.
1617         * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
1618         shell function, since $? is not reliable on function entry.
1619         (_AS_EXIT_PREPARE): Simplify to assume argument.
1620         Reported by Ralf Wildenhues.
1622 2009-07-23  Eric Blake  <ebb9@byu.net>
1624         Run more tests under Solaris.
1625         * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
1626         group when passing over syntax checks.
1628 2009-07-23  Romain Lenglet  <romain.lenglet@laposte.net>
1630         Clean up temporary files generated by Erlang macros.
1631         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
1632         (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
1633         (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
1634         erlang_cv_* cache variables into ac_cv_erlang_*.
1635         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
1636         files generated by Erlang compiler.
1637         * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
1638         Erlang macros.
1639         * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
1640         AT_CHECK_MACRO.
1641         * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
1642         generated Erlang tests; they are all hand-tested.
1644         Add autotests for Erlang macros.
1645         * tests/erlang.at: Added tests for all macros in erlang.m4.
1646         * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
1647         erlang.at.
1648         * tests/suite.at: Likewise.
1649         * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
1650         test for extension of Erlang files.
1651         (Multiple languages): Use correct m4 quoting.
1652         * NEWS: Mention this.
1654 2009-07-22  Eric Blake  <ebb9@byu.net>
1656         Fix test of autom4te from stdin.
1657         * tests/tools.at (autom4te cache locking): Make stdin request
1658         explicit, so that --force is properly used.
1660 2009-07-16  Eric Blake  <ebb9@byu.net>
1662         Don't hide leading space in autom4te --trace output.
1663         * bin/autom4te.in (handle_traces): Don't flatten leading and
1664         trailing space, since tracing spacing bugs can be useful.
1665         * tests/tools.at (autom4te --trace and whitespace): New test.
1667 2009-07-13  Eric Blake  <ebb9@byu.net>
1669         Document that $srcdir can be used during configure.
1670         * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
1671         * THANKS: Update.
1672         Reported by Monty Taylor.
1674 2009-07-13  Eric Blake  <ebb9@byu.net>
1676         Disable asynchronous job notification for parallel tests.
1677         * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
1678         mode, since zsh leaves it on after 'emulate sh'.
1679         * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
1680         job control options are not portable.
1682         Guarantee that exit status trumps output matching.
1683         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
1684         better.
1685         * tests/autotest.at (Skip, parallel skip): Enhance tests.
1687         Fix nits in recent patches.
1688         * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
1689         zsh.
1690         * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
1691         Tweak wording.
1692         (Introduction): Recommend m4 1.4.13.
1693         * README: Likewise.
1694         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.  Use long option --gnu
1695         rather than -g.
1697 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
1699         Introduce AT_SKIP_IF and AT_FAIL_IF
1700         * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
1701         * doc/autoconf.texi (Autotest): Document them.
1702         * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
1703         AT_FAIL_IF, _AT_CHECK_EXIT): New.
1704         (AT_CHECK): Use _AT_LINE_ESCAPED.
1705         * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
1706         Use AT_SKIP_IF.
1707         * tests/local.at: Use AT_SKIP_IF.
1709 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
1711         Use m4 -g when available.
1712         * m4/m4.m4: Unset POSIXLY_CORRECT during first test.  Test for -g.
1713         Warn user if he has POSIXLY_CORRECT set but -g is not supported.
1714         * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
1715         * bin/autom4te.in: Pass @M4_GNU@ to m4.
1717 2009-07-13  Eric Blake  <ebb9@byu.net>
1719         Fix previous patch.
1720         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
1721         proper m4 quoting.
1722         (_AT_DECIDE_TRACEABLE): Likewise.
1724 2009-07-13  Paolo Bonzini  <bonzini@gnu.org>
1726         * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
1727         $at_trace_echo.  Add new REASON argument.
1728         (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
1729         Use $at_check_filter_trace.
1730         (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
1731         (at_traceon): Initialize to ':'.
1732         (at_traceoff): Remove, use 'set +x' instead throughout.
1733         (at_check_filter_trace, at_trace_echo): New shell variables.
1734         Initialize them if tracing is requested.
1735         (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
1737 2009-07-12  Paolo Bonzini  <bonzini@gnu.org>
1739         Move atlocal feature tests to configure
1740         * configure.ac: Test for unsupported characters in files and
1741         directories here...
1742         * tests/atlocal.in: ... and not here.
1744 2009-07-09  Eric Blake  <ebb9@byu.net>
1746         Fix test typo.
1747         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
1748         creating file named -.
1750         Fix testsuite under dash.
1751         * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
1752         (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
1753         (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
1754         (Functions Support, Functions and return Support)
1755         (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
1756         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
1757         (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
1758         (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
1759         (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
1760         (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
1761         options during the testsuite run.
1762         Reported by Ralf Wildenhues.
1764 2009-07-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1766         Ignore messages on stderr when testing for the zsh issue.
1767         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
1769 2009-07-07  Eric Blake  <ebb9@byu.net>
1771         Skip parallel tests when zsh 'set -m' fails.
1772         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
1773         is not supported.
1774         Reported by Ralf Wildenhues.
1776         Make parallel testsuite more portable.
1777         * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
1778         instead open write descriptor in each group and read descriptor in
1779         main driver.
1780         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
1782 2009-07-03  Eric Blake  <ebb9@byu.net>
1784         Avoid syntax error in ash.
1785         * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
1786         errors on shells that don't recognize <>.
1787         * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
1788         tests for this reason.   Skip based on the shell to be tested,
1789         not the shell driving the testsuite.
1790         (parallel syntax error): Rearrange similar to previous patch.
1791         (parallel test execution): Defer skip until after serial tests.
1793 2009-07-02  Eric Blake  <ebb9@byu.net>
1795         Skip test on shells that can't catch syntax failure.
1796         * tests/autotest.at (Syntax error): Skip test if shell aborts on
1797         syntax error (AIX ksh88) or doesn't detect it (zsh).
1798         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
1799         limitations.
1800         Reported by Ralf Wildenhues.
1802 2009-06-30  Jan Madzik  <jmadzik@gmail.com>  (tiny change)
1803             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1805         Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
1806         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
1807         one character is output with `\c'; reset echo output state
1808         if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
1809         * doc/autoconf.texi (Limitations of Builtins): Document it.
1810         * tests/m4sh.at (ECHO_C): New test.
1811         * THANKS: Update.
1813 2009-06-27  William Pursell  <bill.pursell@gmail.com>  (tiny change)
1815         Fix grammaro in documenation.
1816         * doc/autoconf.texi (Guidelines): Fix grammaro.
1818 2009-06-17  Eric Blake  <ebb9@byu.net>
1820         Fix AC_CHECK_HEADER infloop for gcc.
1821         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
1822         (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
1823         about obsoletion, to avoid infinite loop in gcc.
1824         Reported by Ralf Wildenhues.
1826 2009-06-15  Eric Blake  <ebb9@byu.net>
1828         Add m4_copy_force, m4_rename_force.
1829         * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
1830         macros.
1831         * tests/m4sugar.at (m4@&t@_defn): Test them.
1832         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
1833         them.
1834         * NEWS: Likewise.
1835         Suggested by Ralf Wildenhues.
1837         Reinstate _AC_CHECK_HEADER_OLD for gcc.
1838         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
1839         (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
1840         others used these undocumented macros.
1841         Reported by Ralf Wildenhues.
1843 2009-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1845         Fix concurrent autom4te.cache directory creation race.
1846         * bin/autom4te.in: Do not error out if another `autom4te'
1847         instance created the cache directory before we could.
1849 2009-06-11  Steven G. Johnson  <stevenj@alum.mit.edu>
1850         and Eric Blake  <ebb9@byu.net>
1852         Create a file in test program when detecting cross-compilation.
1853         * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
1854         program that creates a file.
1855         (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
1856         and document why it's needed to robustly detect cross-compiling.
1857         (AC_LANG_DEFINE): Copy implementation across similar languages.
1858         * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
1859         * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
1860         Likewise.
1861         * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
1863 2009-06-11  Eric Blake  <ebb9@byu.net>
1865         Simplify AC_LANG(Fortran).
1866         * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
1867         77, which requires reordering portions of the file.
1868         (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
1869         automatically.
1871         Clarify m4_copy semantics.
1872         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
1873         documentation.
1874         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
1876 2009-06-06  Eric Blake  <ebb9@byu.net>
1878         Improve documentation on trap pitfalls.
1879         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
1880         Posix 2008 requirement on trap, and dash bug in implementing it.
1881         Mention various shell bugs with traps defined inside subshells.
1882         Mention older bash limitation with single-command exit trap.
1883         <set>: Mention another 'set -e' limitation.
1884         Reported by Jens Schmidt.
1886 2009-06-06  Jim Meyering  <meyering@redhat.com>
1888         Improve testsuite --help
1889         * lib/autotest/general.m4: Correct the example in ./testsuite --help.
1890         Improve wording.
1892 2009-06-06  Eric Blake  <ebb9@byu.net>
1894         Document fallback behavior of AC_PROG_LEX.
1895         * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
1896         why fallback is :, and that a --version check must be used to
1897         determine whether flex was found.
1898         Reported by Patrick Welche.
1900 2009-05-28  Jim Meyering  <meyering@redhat.com>
1902         Fix syntax errors in autoconf.texi.
1903         * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
1904         in example code.
1906 2009-05-28  Romain Lenglet  <romain.lenglet@laposte.net>
1908         New AC_ERLANG_SUBST_ERTS_VER macro.
1909         * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
1910         * doc/autoconf.texi (Erlang Libraries): Document
1911         AC_ERLANG_SUBST_ERTS_VER.
1912         * NEWS: Likewise.
1913         * AUTHORS: Update Romain Lenglet's email address.
1914         * THANKS: Update.
1915         Suggested by Ruslan Babayev.
1917 2009-05-26  Eric Blake  <ebb9@byu.net>
1919         Sanitize more problematic environment variables.
1920         * doc/autoconf.texi (Environment Variable Index): Add more
1921         entries, particularly for precious variables and known culprit
1922         variables.  Needed to avoid overfull vbox.
1923         (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
1924         variables known to cause misbehavior.
1925         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
1926         known to cause problems.
1927         * THANKS: Update.
1928         Based on reports from Ilya Bobir and Joey Mingrone.
1930 2009-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1932         Document VPATH = $(variable) issue in VPATH chapter.
1933         * doc/autoconf.texi (Variables listed in VPATH): New node.
1934         (Top, VPATH and Make): Adjust menus.
1935         (Build Directories): Refer to it.
1936         Prompted by report from Bruno Haible.
1938 2009-05-19  Eric Blake  <ebb9@byu.net>
1940         Update uses of all-permissive license.
1941         * ChangeLog: Relicense under GPL.
1942         * ChangeLog.0: Likewise.
1943         * ChangeLog.1: Likewise.
1944         * ChangeLog.2: Likewise.
1945         * THANKS: Likewise.
1946         * m4/m4.m4: Use latest wording of FSF all-permissive license.
1947         * m4/make-case.m4: Likewise.
1948         * doc/install.texi: Likewise.
1949         * tests/statesave.m4: Relicense to match rest of testsuite; this
1950         file does not need all-permissive license since it is not designed
1951         for reuse by other packages.
1952         * BUGS: Relicense under all-permissive license.
1953         * HACKING: Likewise.
1954         * NEWS: Likewise.
1955         * README: Likewise.
1956         * README-alpha: Likewise.
1957         * README-hacking: Likewise.
1958         * TODO: Likewise.
1960         Update some upstream files.
1961         * build-aux/config.guess: Resynchronize from upstream.
1962         * build-aux/gnupload: Likewise.
1963         * build-aux/vc-list-files: Likewise.
1964         * build-aux/texinfo.tex: Likewise.
1965         * doc/gendocs_template: Likewise.
1967         Don't mention undocumented interface in NEWS.
1968         * NEWS: Correct earlier entry about AS_FOR.
1970 2009-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1972         New manual section `Parallel Make'.
1973         * doc/autoconf.texi (Parallel Make): New node, document NetBSD
1974         `make -jN' quirks.
1975         (Top, Portable Make): Adjust menus.
1977 2009-05-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1979         testsuite: skip `Multiple languages' test without C++ compiler.
1980         * tests/compile.at (Multiple languages): Skip test on systems
1981         without a C++ compiler.
1982         Report by Jim Meyering.
1984 2009-05-13  Eric Blake  <ebb9@byu.net>
1986         Document zsh bug with empty commands.
1987         * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
1988         more problems with $?.
1990 2009-05-11  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
1992         Also try X11R7 when looking for X11 files, for NetBSD.
1993         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
1994         with X11R7 in the name.
1996 2009-05-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1998         Limit stderr logging for C compiler version.
1999         * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
2000         internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
2001         an optional additional argument to limit the number of lines of
2002         stderr output logged, defaulting to 10.
2003         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
2004         _AC_DO_LIMIT for capturing compiler version output.  Also test
2005         -qversion, for the IBM xlc compiler.
2006         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2007         * THANKS: Update.
2008         Report by Christian Rössel and John R. Cary against Libtool.
2010 2009-04-24  Eric Blake  <ebb9@byu.net>
2012         Fix quoting of m4 macros in AT_CHECK.
2013         * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
2014         escapes, to avoid shell syntax errors caused by late macro
2015         expansion.
2016         * NEWS: Document this change.
2017         * tests/autotest.at (Metacharacters in command from M4 expansion):
2018         New test.
2020         manual: Use consistent spelling of here-document.
2021         * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
2022         (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
2023         spelling.
2024         Reported by Ralf Wildenhues.
2026         Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
2027         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
2028         undocumented semantics, where unbalanced " cannot be used in the
2029         stdout/stderr argument.
2030         (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
2031         the text is used in double-quoted context.
2032         * tests/autotest.at (unquoted output): New test.
2033         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
2034         shell expansions are handled.
2036         Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
2037         * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
2038         of new spelling...
2039         (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
2040         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2041         rename.
2042         * NEWS: Likewise.
2043         * tests/autotest.at (Binary output, Cleanup): Adjust tests.
2044         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2045         Likewise.
2046         Reported by Ralf Wildenhues.
2048 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2050         New test to ensure autom4te cache file locking works.
2051         * tests/tools.at (autom4te cache locking): New test.
2052         Report by Eric Blake.
2054 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2056         manual: another grammar improvement.
2057         * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
2058         pronunciation of `FCFLAGS_f90'.
2060 2009-04-23  Eric Blake  <ebb9@byu.net>
2062         Change FOO placeholder to use @var{text} instead.
2063         * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
2064         to AC_CONFIG_@var{ITEMS}.
2065         * doc/autoconf.texi (config.status Invocation): Likewise.
2066         (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
2067         (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
2069 2009-04-22  Eric Blake  <ebb9@byu.net>
2071         Add m4_argn.
2072         * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
2073         * NEWS: Document it.
2074         * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
2075         <m4_car, m4_cdr>: Improve documentation.
2076         * tests/m4sugar.at (m4 lists): New test.
2078 2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2080         Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
2081         * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
2082         and AC_PROG_CC_C99 prefer extended over strict conformance modes.
2083         Report by Vincent Lefèvre.
2085 2009-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2087         Revert bogus change in last commit.
2088         * doc/autoconf.texi (Initialization Macros): Revert change.
2089         Spotted by Eric Blake.
2091         manual: fix trivial grammar errors.
2092         * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
2093         (Limitations of Usual Tools, Pretty Help Strings)
2094         (config.status Invocation): Fix `a' vs. `an' errors.
2095         Report by Eric Blake.
2097 2009-04-21  Eric Blake  <ebb9@byu.net>
2099         Shuffle maintainer-specific rules.
2100         * Makefile.am (maintainer-check-tests): Delete.
2101         (autom4te-update): Move...
2102         * cfg.mk (autom4te-update): ...here.
2103         (fetch): Depend on autom4te-update.  Split...
2104         (gnulib-update): ...into new rule.  Import move-if-change from
2105         gnulib.
2106         * maint.mk (maintainer-distcheck): Absorb former maintainer-check
2107         rule.
2108         * build-aux/move-if-change: New file, undistributed.
2109         * .gitattributes: Handle new upstream file.
2110         * .gitignore: Ignore maintainer cruft.
2111         * HACKING: Update maintainer instructions.
2112         * build-aux/config.guess: Update from upstream.
2113         * build-aux/config.sub: Likewise.
2114         * build-aux/gendocs.sh: Likewise.
2115         * build-aux/texinfo.tex: Likewise.
2116         * doc/gendocs_template: Likewise.
2117         * doc/standards.texi: Likewise.
2119 2009-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2121         Sync autom4te perl modules from Automake.
2122         * lib/Autom4te/Channels.pm: Sync from Automake.
2123         * lib/Autom4te/FileUtils.pm: Likewise.
2124         * lib/Autom4te/XFile.pm: Likewise.
2126         Adjust channel definitions for new Automake `ordered' flag.
2127         * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
2128         `ordered' flag to zero for channels `fatal', `automake', and
2129         `verb'.  This has currently no effect on actual semantics but
2130         avoids a consistency check needed for Automake's usage of the
2131         Channels.pm code.
2133         manual: clarify m4_if synopsis.
2134         * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
2135         m4_if in the presence of more than three arguments.
2137         Improve and clarify `config.status' usage documentation.
2138         * doc/autoconf.texi (config.status Invocation): Fix markup in
2139         synopsis.  Use `tag' instead of `file' notation for the
2140         non-option arguments, to be consistent with the documentation
2141         of the AC_CONFIG_* macros.
2142         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
2143         use `tag' notation for non-option arguments.
2144         Report by John Calcote.
2146 2009-04-15  Eric Blake  <ebb9@byu.net>
2148         Test that autotest handles binary output.
2149         * tests/autotest.at (Binary output): New test.
2150         Suggested by Ralf Wildenhues.
2152         Add stdout-nolog and ignore-nolog to AT_CHECK.
2153         * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
2154         (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
2155         (AT_DIFF_STDOUT(ignore-nolog)): New macros.
2156         * tests/autotest.at (Logging): New test.
2157         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2158         new logging actions.
2159         * NEWS: Likewise.
2160         Reported by Ralf Wildenhues.
2162         Teach AT_CHECK about hard failures.
2163         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
2164         <at_fn_check_status, at_fn_group_postprocess>: Handle hard
2165         failures.
2166         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
2167         AT_CHECK_NOESCAPE and exit status 99.
2168         * NEWS: Likewise.
2169         * tests/autotest.at (Hard fail, Cleanup): New tests.
2171 2009-04-14  Eric Blake  <ebb9@byu.net>
2173         Fix yesterday's regression in AS_IF.
2174         * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
2175         branch; it is up to the user to avoid syntax errors.
2176         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
2178 2009-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2180         Add traces for AM_SILENT_RULES.
2181         * lib/autom4te.in (Automake-preselections): Trace
2182         AM_SILENT_RULES.
2184 2009-04-13  Eric Blake  <ebb9@byu.net>
2186         Improve documentation related to expanded-before-required.
2187         * doc/autoconf.texi (Expanded Before Required): Add a case study.
2188         (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
2189         running a compile test will AC_REQUIRE the compiler check.
2190         (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
2191         (C Compiler) <AC_PROG_CC>: Mention the fact that only first
2192         invocation of this macro checks for $EXEEXT, and that many other
2193         macros use it via AC_REQUIRE.
2194         Reported by Andreas Schwab.
2196         Mention latest rules about make and set -e.
2197         * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
2198         that make must use set -e.
2199         (Limitations of Builtins) <set>: Clarify more about set -e
2200         behavior.
2202         Improve documentation about if exit status.
2203         * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
2204         exit status bugs don't affect modern targets.
2205         Reported by Andreas Schwab.
2207         Add cross-reference to new macros.
2208         * doc/autoconf.texi (Text processing Macros) <m4_normalize>
2209         <m4_strip>: Reference the new m4_ifblank.
2210         Suggested by Mike Frysinger.
2212         Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
2213         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
2214         (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
2215         including a macro with an empty expansion.
2216         * NEWS: Mention this.
2217         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
2218         tests.
2219         Reported by Mike Frysinger.
2221         Add m4_blank and friends.
2222         * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
2223         (m4_default_nblank_quoted): New macros.
2224         * NEWS: Document them.
2225         * doc/autoconf.texi (Conditional constructs): Likewise.
2226         * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
2227         Suggested by Mike Frysinger.
2229 2009-04-13  Eric Blake  <ebb9@byu.net>
2231         Finish upgrade to GFDL 1.3.
2232         * doc/autoconf.texi (copying): Use correct license; comment change
2233         was missed on 2008-11-04.
2235 2009-04-10  Eric Blake  <ebb9@byu.net>
2237         Test parallel handling of syntax error.
2238         * tests/autotest.at (parallel syntax error): New test.
2239         Suggested by Ralf Wildenhues.
2241 2009-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2243         Document awk and config.status line length limitations.
2244         * doc/autoconf.texi (Configuration Actions): The input to
2245         config.status should have reasonable line length.
2246         (Limitations of Usual Tools): Document IRIX, HP-UX awk input
2247         line length limit.
2248         Report by Bruno Haible.
2250         Skip `Multiple languages' test if CC is a C++ compiler.
2251         * tests/compile.at (Multiple languages): Before starting the
2252         test proper, build and run a configure script that tests the
2253         C compiler only, and skips the test if this is found to be a
2254         C++ compiler.
2255         Report by Eric Blake.
2257         Note that AC_DEFUN is needed for aclocal.
2258         * doc/autoconf.texi (Coding Style): Public third-party macros
2259         should be AC_DEFUN'ed.
2260         Report by John Calcote.
2262 2009-04-10  Eric Blake  <ebb9@byu.net>
2264         Add undocumented _AS_CLEAN_DIR.
2265         * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
2266         in previous patch.
2267         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
2268         macro.
2269         * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
2270         Reported by Ralf Wildenhues.
2272 2009-04-09  Eric Blake  <ebb9@byu.net>
2274         Avoid problems caused by deleting in-use directory.
2275         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
2276         remove the contents of $at_group_dir, not the directory itself.
2278         Fix regression in empty test.
2279         * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
2280         use in empty test.  Fixes regression introduced 2009-04-06.
2281         (_AT_CHECK): Undo fallback when a test is not empty.
2282         (AT_CLEANUP): Expand AT_ingroup before deleting.
2284 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
2286         Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
2287         * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
2288         not crosscompiling to an obsolete system.
2290 2009-04-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2292         Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
2293         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
2294         Automake relies on this macro.
2296 2009-04-06  Eric Blake  <ebb9@byu.net>
2298         Reduce testsuite size.
2299         * tests/statesave.m4: New file.
2300         * tests/Makefile.am (EXTRA_DIST): Distribute it.
2301         * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
2302         repeating inline definition of AC_STATE_SAVE.
2303         (AT_CHECK_ENV): Factor code...
2304         (_AT_CHECK_ENV): ...into shell function.
2305         * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
2307         Handle shell comments in AT_CHECK.
2308         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
2309         test correctly.  Latent bug in handling shell comment was first
2310         fixed 2008-11-20, but regressed two patches later.
2311         * tests/autotest.at (Shell comment in command): New test.
2312         * NEWS: Document the fix.
2314         Hard fail any test with syntax errors.
2315         * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
2316         Guarantee test failure on syntax error, rather than inheriting
2317         status from previous test.
2318         * tests/autotest.at (Syntax error): New test.
2320 2009-03-31  Eric Blake  <ebb9@byu.net>
2322         Beta Release Version 2.63b.
2323         * NEWS: Mention the release.
2324         * README: Clarify that this is a beta release.
2325         * build-aux/texinfo.tex: Synchronize from upstream.
2326         * .x-sc_trailing_blank: Exempt more upstream files.
2328 2009-03-30  Eric Blake  <ebb9@byu.net>
2330         Fix testsuite failures under zsh.
2331         * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
2332         set by zsh -c 'emulate sh'.
2333         Reported by Ralf Wildenhues.
2335         For now, skip parallel tests under less-tested shells.
2336         * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
2337         (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
2338         (Fallacy, Skip, errexit, Long test source lines)
2339         (Debugging a successful test, Debugging script and environment)
2340         (Debugging a failed test, Using atlocal)
2341         (Choosing where testsuite is run): Adjust callers.
2342         (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
2343         under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined.  Makes
2344         it easier to avoid testsuite hangs for users with dash or other
2345         less-tested shell.
2346         (parallel test execution, parallel truth, parallel fallacy)
2347         (parallel skip, parallel errexit)
2348         (parallel autotest and signal handling): Use it.
2349         * BUGS: Mention this.
2351 2009-03-24  Andris Pavenis  <andris.pavenis@iki.fi>  (tiny change)
2353         Fix awk substitution of carriage returns on DJGPP.
2354         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
2355         generation of ac_cs_awk_cr.
2356         * THANKS: Update.
2358 2009-03-24  Aaron W. LaFramboise  <aaronenvelope277@aaronwl.com>  (tiny change)
2360         Work around cygwin bash igncr mode.
2361         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
2362         bash carriage returns if ac_cr lost \r from ``.
2363         * THANKS: Update.
2364         Suggested by Eric Blake.
2366 2009-03-24  Eric Blake  <ebb9@byu.net>
2368         Fix underquoted example in manual.
2369         * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
2370         Properly m4-quote #.
2371         * THANKS: Update spelling.
2372         Reported by Matěj Týč.
2374 2009-03-18  Eric Blake  <ebb9@byu.net>
2376         Manual: mention more expr pitfalls.
2377         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
2378         Mention HP-UX limitation, and $ ambiguity.
2379         * THANKS: Update.
2380         Reported by Jens Schmidt, in http://bugs.debian.org/466990.
2382 2009-03-17  Jim Meyering  <meyering@redhat.com>
2384         Manual: fix a typo.
2385         * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
2387 2009-03-17  Eric Blake  <ebb9@byu.net>
2389         Use test consistently in examples.
2390         * doc/autoconf.texi (Subdirectories, Caching Results)
2391         (Common Shell Constructs, Prerequisite Macros, Coding Style)
2392         (Changed Results, Particular Programs, Defining Symbols):
2393         Protect against arbitrary user strings.
2394         (Multiple Cases): Mention why $fstype does not need protection.
2395         Reported by Reuben Thomas.
2397         Improve confusing section names.
2398         * doc/autoconf.texi (Specifying Names): Rename node...
2399         (Specifying Target Triplets): ...to this.
2400         (Generic Programs): Adjust references.
2401         * doc/install.texi (System Type): Touch up formatting.
2402         * THANKS: Update.
2403         Reported by Tim Freeman, in http://bugs.debian.org/312873.
2405         Remove historical inaccuracy.
2406         * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
2407         #!/bin/sh needing a space.
2408         Reported by Reuben Thomas.
2410         Recommend AS_HELP_STRING more prominently.
2411         * doc/autoconf.texi (External Software): Reduce mention of
2412         hand-written help strings.
2413         Reported by Reuben Thomas.
2415 2009-03-16  Eric Blake  <ebb9@byu.net>
2417         Fix 'make pdf'.
2418         * doc/autoconf.texi (Balancing Parentheses): Fix usage of
2419         @itemize.
2420         Reported by Ralf Wildenhues, fix suggested by Karl Berry.
2422 2009-03-14  Eric Blake  <ebb9@byu.net>
2424         Resync upstream files.
2425         * GNUmakefile: Run 'make fetch'.
2426         * build-aux/announce-gen: Likewise.
2427         * build-aux/config.guess: Likewise.
2428         * build-aux/config.sub: Likewise.
2429         * build-aux/gnupload: Likewise.
2430         * build-aux/texinfo.tex: Likewise.
2431         * build-aux/vc-list-files: Likewise.
2432         * doc/gnu-oids.texi: Likewise.
2433         * doc/standards.texi: Likewise.
2435 2009-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2437         New test for SunStudio `restrict' handling.
2438         * tests/c.at (AC_C_RESTRICT and C++): New test.
2439         Prompted by bug report from Rolf Vandevaart.
2441 2009-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2443         Manual: testsuite depends on package.m4.
2444         * doc/autoconf.texi (Making testsuite Scripts): In the example
2445         makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
2447 2009-03-02  Allan Caffee  <allan.caffee@gmail.com>  (tiny change)
2449         Fix a typo in comment for AS_LITERAL_IF.
2450         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
2451         out of date when this function was moved/renamed in 59ecd766.
2452         * THANKS: Update.
2454 2009-03-02  Eric Blake  <ebb9@byu.net>
2456         Improve wording for AS_ESCAPE.
2457         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
2458         up documentation.
2459         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
2460         Reported by Ralf Wildenhues.
2462 2009-02-24  Eric Blake  <ebb9@byu.net>
2464         Use pkgdatadir consistently.
2465         * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
2466         * lib/Makefile.am (edit): Likewise.
2467         * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
2468         (M4sugar): Use @pkgdatadir@, not @datadir@.
2469         * bin/autoheader.in ($datadir): Likewise.
2470         * bin/autom4te.in ($datadir): Likewise.
2471         * bin/autoreconf.in ($datadir): Likewise.
2472         * bin/autoscan.in ($datadir): Likewise.
2473         * bin/autoupdate.in ($datadir): Likewise.
2474         * bin/ifnames.in ($datadir): Likewise.
2475         * doc/autoconf.texi (Installation Directory Variables): Update
2476         example to be consistent; focus on $(bindir) as an autoconf
2477         variable, and mention that $(pkgdatadir) comes from automake.
2478         Reported by Reuben Thomas.
2480 2009-02-19  Eric Blake  <ebb9@byu.net>
2482         Use m4_translit more efficiently in AS_ESCAPE.
2483         * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
2484         of set separately from rest.
2485         (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
2486         callers.
2487         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
2488         characters in translit request.
2489         * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
2490         Document the macro.
2491         * NEWS: Likewise.
2493         Mention recently documented macros.
2494         * NEWS: Update list of new documentation.
2496 2009-02-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2498         Add index for config.site.
2499         * doc/autoconf.texi (Site Defaults): Add index for config.site.
2500         * THANKS: Update.
2501         Report by Stephen P. Schaefer.
2503 2009-02-12  Eric Blake  <ebb9@byu.net>
2505         Fix m4_set speed regression introduced 2008-12-18.
2506         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
2507         creating larger argument on each iteration.
2508         (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
2509         (_m4_set_contents_2): Adjust all four-argument callers.
2511 2009-02-05  Eric Blake  <ebb9@byu.net>
2513         Mention new AC_DEFUN_ONCE clients.
2514         * NEWS: Mention recent semantic changes.
2515         Reported by Ralf Wildenhues.
2517 2009-02-03  Eric Blake  <ebb9@byu.net>
2519         Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
2520         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
2521         AC_DEFUN_ONCE, since this is a one-shot macro.
2522         (AC_PROG_INSTALL): Likewise.
2524 2009-02-03  Eric Blake  <ebb9@byu.net>
2526         Mention that packagers should not pre-set CFLAGS.
2527         * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
2528         advice given by automake on handling variables reserved by GNU
2529         Coding Standards.
2530         Reported by Karl Berry.
2532         Document lib64 in config.site.
2533         * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
2534         Mention use of lib64.
2535         * THANKS: Update.
2536         Reported by Tom Browder, with help from Peter Breitenlohner.
2538 2009-01-28  Eric Blake  <ebb9@byu.net>
2540         Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
2541         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
2542         AC_DEFUN_ONCE, since this is a one-shot macro.
2543         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2544         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
2545         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
2547 2009-01-28  Eric Blake  <ebb9@byu.net>
2549         Reduce blank lines in AC_DEFUN_ONCE macros.
2550         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
2551         line when a defun_once macro is required.
2552         (_m4_defun_once): New helper macro, for less memory use.
2553         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
2555         Silence another false positive expand-before-require.
2556         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
2557         (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
2558         that caused a diversion change, not just diversion number.
2559         (m4_require): Factor...
2560         (_m4_require_check): ...into new macro, which also checks whether
2561         diversion that performed the expansion has been collected.
2562         * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
2563         Reported by Ralf Wildenhues.
2565 2009-01-28  Eric Blake  <ebb9@byu.net>
2567         Fix AC_C_RESTRICT for Sun Studio 12 C++.
2568         * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
2569         __restrict__ rather than _Restrict, which still trips up Sun
2570         Studio 12 C++.
2571         * THANKS: Update.
2572         Reported by Rolf Vandevaart.
2574 2009-01-28  Eric Blake  <ebb9@byu.net>
2576         Fix years in copyright notices.
2577         * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
2578         undocumented for now.
2579         * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
2580         m4_PACKAGE_URL.
2581         (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
2582         * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
2583         (AC_COPYRIGHT): Add undocumented third parameter.
2584         (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
2585         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
2586         * lib/autotest/general.m4 (AT_INIT): Likewise.
2587         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
2588         (AT_COPYRIGHT): Add undocumented third parameter.
2589         * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
2590         parameter; the generic copyright given by autotest is sufficient
2591         since we are the package that owns autotest.
2593 2009-01-27  Eric Blake  <ebb9@byu.net>
2595         Use URLs in --help output, part 3: testsuite.
2596         * doc/autoconf.texi (Writing Testsuites): Mention autotest
2597         namespace.
2598         (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
2599         (Making testsuite Scripts): Document AT_PACKAGE_URL.
2600         * tests/Makefile.am (package.m4): Follow our own advice.
2601         * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
2602         package.m4.  Enhance --help output.
2603         (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
2605         Use URLs in --help output, part 2: configure.
2606         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
2607         date.
2608         (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
2609         AC_PACKAGE_URL.
2610         (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
2611         (_AC_INIT_HELP): Use it in './configure --help' output.
2612         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
2613         './config.status --help'.  Bump copyright date.
2614         * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
2615         new parameter.
2616         * NEWS: Likewise.
2617         * tests/tools.at (autoheader): Adjust test.
2618         * tests/torture.at (@%:@define header templates)
2619         (Torturing config.status): Likewise.
2621         Use URLs in --help output, part 1: autoconf executables.
2622         * bin/autoconf.as (usage): Make output consistent with recent
2623         change in gnulib version-etc module.
2624         * bin/autoheader.in ($help): Likewise.
2625         * bin/autom4te.in ($help): Likewise.
2626         * bin/autoreconf.in ($help): Likewise.
2627         * bin/autoscan.in ($help): Likewise.
2628         * bin/autoupdate.in ($help): Likewise.
2629         * bin/ifnames.in ($help): Likewise.
2631 2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
2633         Quote traced macros passed from autom4te to M4.
2634         * bin/autom4te (handle_m4): Apply shell_quote to macro names.
2635         * tests/tools.at (autom4te --trace and unusual macro names): New
2636         test.
2637         * THANKS: Update.
2639 2009-01-26  Eric Blake  <ebb9@byu.net>
2641         Improve AC_DEFUN_ONCE semantics.
2642         * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
2643         rather than warning, on second use, and make sure first use never
2644         occurs out of order.
2645         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
2646         Enhance test.
2647         * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
2648         (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
2649         * NEWS: Document this.
2650         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
2651         AC_DEFUN_ONCE.
2652         (Prerequisite Macros) <AC_REQUIRE>: Likewise.
2653         (Expanded Before Required): Likewise.
2654         (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
2655         Reported by Bruno Haible, with suggestion by Paolo Bonzini.
2657 2009-01-24  Eric Blake  <ebb9@byu.net>
2659         Fix typos in recent patches.
2660         * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
2661         * doc/autoconf.texi (Expanded Before Required): Fix typos.
2662         Reported by Ralf Wildenhues.
2664         Revert change to AC_DIR_HEADER.
2665         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
2666         AC_HEADER_DIRENT no longer triggers a warning, and helps the user
2667         who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
2668         Reported by Paolo Bonzini.
2670 2009-01-22  Eric Blake  <ebb9@byu.net>
2672         Silence a false positive expand-before-require case.
2673         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
2674         which a macro was provided.
2675         (m4_require): Compare diversion numbers, rather than m4_require
2676         nesting, when determining direct requires.
2677         * tests/m4sugar.at (m4@&t@_require: nested): Test it.
2678         Reported by Ralf Wildenhues, affecting Libtool.
2680 2009-01-21  Eric Blake  <ebb9@byu.net>
2682         Fix out-of-order expansion with expand-before-require.
2683         * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
2684         required macro when issuing expand-before-require warning.
2685         * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
2686         (Expanded Before Required): New node.
2687         * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
2688         * NEWS: Mention this fix.
2689         Suggested by Bruno Haible.
2691         Warn if macro is provided before indirectly required.
2692         * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
2693         provided since last outermost defun.
2694         (_m4_defun_pro_outer): Empty the set.
2695         (_m4_require_call): Distinguish between direct and indirect
2696         requires, and remove required macros from the set.
2697         (m4_require): Check the set, in order to warn.
2698         * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
2699         test case for direct requires.
2701 2009-01-20  Eric Blake  <ebb9@byu.net>
2703         Clean up some bugs caught by preliminary dependency validation.
2704         * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
2705         AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
2706         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
2707         (_AS_SHELL_SANITIZE): Fix quoting bugs.
2709 2009-01-19  Eric Blake  <ebb9@byu.net>
2711         Improve AC_REQUIRE documentation.
2712         * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
2713         and mention interaction with AC_REQUIRE.
2714         (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
2715         ordering constraint bug, and how to fix it.
2716         * tests/m4sugar.at (m4@&t@_require: nested): New test.
2718         Speed up m4_require.
2719         * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
2720         always be defined, as either empty or a number.
2721         (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
2722         as a stack, rather than a one-shot macro.
2723         (_m4_require_call): Expect third argument to be pre-expanded.
2724         (m4_divert_require, m4_require): Adjust clients accordingly.
2725         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
2727 2009-01-17  Eric Blake  <ebb9@byu.net>
2729         Avoid underfull hbox.
2730         * doc/autoconf.texi (Installation Directory Variables): Reword to
2731         fit on line.
2733 2009-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2735         Ignore `set -e'-related failure of NetBSD sh.
2736         * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
2737         fails to finish EXIT trap after set -e.
2739 2009-01-06  Eric Blake  <ebb9@byu.net>
2741         Maintainer cleanups.
2742         * cfg.mk (web-manual): Use new feature of gendocs.
2743         (fetch): Fetch gendocs.
2744         * Makefile.am (EXTRA_DIST): Distribute new file.
2745         * doc/Makefile.am (EXTRA_DIST): Likewise.
2746         * .gitattributes: Ignore whitespace in upstream files.
2747         * HACKING (Other web updates): Update Free Software Directory
2748         instructions.
2749         (Upload): No longer mention xdelta.
2750         * maint.mk (xd-delta): Likewise.
2751         * build-aux/gendocs.sh: New upstream file.
2752         * doc/gendocs_template: Likewise.
2753         * build-aux/announce-gen: Resync from upstream.
2754         * build-aux/config.guess: Likewise.
2755         * build-aux/config.sub: Likewise.
2756         * build-aux/gnupload: Likewise.
2757         * build-aux/texinfo.tex: Likewise.
2759 2008-12-30  Eric Blake  <ebb9@byu.net>
2761         Make it easier to track diversion bugs.
2762         * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
2763         internal macros, which are easier to trace than m4_builtin.
2764         (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
2765         (m4_undivert): Use them.
2766         (_m4_require_call): Likewise.  Use fewer macros.
2767         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
2769 2008-12-26  Bruno Haible  <bruno@clisp.org>
2771         Improve multiarch detection.
2772         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
2773         indicating a universal build more reliable.
2775 2008-12-28  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2777         Use AS_CASE in documented example.
2778         * doc/autoconf.texi (Using the System Type): Use AS_CASE in
2779         example instead of raw case.
2781 2008-12-23  Eric Blake  <ebb9@byu.net>
2783         Make m4_dumpdef more useful with M4 1.6.
2784         * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
2785         (m4_init): Install it for new enough m4.
2786         * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
2787         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
2788         lack of sorting.
2790 2008-12-24  Bruno Haible  <bruno@clisp.org>
2792         Improve INSTALL for HP-UX.
2793         * doc/install.texi (Particular Systems): For HP-UX, also recommend
2794         -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
2795         HP-UX 11.11.
2797 2008-12-22  Bruno Haible  <bruno@clisp.org>
2799         Improve INSTALL for Haiku.
2800         * doc/install.texi (Particular Systems): Add a recommendation
2801         which prefix to use on Haiku.
2803 2008-12-19  Eric Blake  <ebb9@byu.net>
2805         Fix typo in previous commit.
2806         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
2807         Fix typo.
2809         Document some recently added macros.
2810         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
2811         parameter.
2812         * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
2813         <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
2814         new macros.
2815         (Set manipulation Macros) <m4_set_map_sep>: Likewise.
2816         * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
2817         * NEWS: Document new macros.
2819 2008-12-18  Eric Blake  <ebb9@byu.net>
2821         Fix separator in m4_stack_foreach_sep.
2822         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
2823         from prefix.
2824         * tests/m4sugar.at (m4@&t@_stack): Enhance test.
2826 2008-12-18  Eric Blake  <ebb9@byu.net>
2828         Mention limitation of M4 1.4.x on builtin tokens.
2829         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
2830         ramification of M4 1.4.x's inability to pass builtin tokens
2831         through text macros.
2832         (Evaluation Macros) <m4_curry>: Likewise.
2833         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2834         * NEWS: Mention subtle change in m4_dumpdef semantics.
2836         Document m4_version_prereq.
2837         * doc/autoconf.texi (Number processing Macros)
2838         <m4_version_prereq>: Add documentation.
2839         * NEWS: Mention it.
2840         Reported by Bruno Haible.
2842 2008-12-10  Jim Meyering  <meyering@redhat.com>
2844         AC_HEADER_ASSERT: don't say assertions are disabled when they're not
2845         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
2846         report "checking whether to enable assertions... no", when they are
2847         in fact enabled.  This is solely a bug in the output of configure.
2848         In spite of saying "no", NDEBUG was not defined in that case.
2849         Also, as noted by Eric Blake, leave assertions enabled upon
2850         --enable-assert=INVALID.
2852 2008-12-09  Eric Blake  <ebb9@byu.net>
2854         Fix m4_location inside m4_wrap with m4 1.4.5.
2855         * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
2856         inside wrapped text if older m4 is detected.
2857         Reported by William Pursell.
2859 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2860         and Eric Blake  <ebb9@byu.net>
2862         Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
2863         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
2864         rather than treating it as a synonym for --disable-assert.
2865         * NEWS: Document the fix.
2867 2008-12-06  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2869         Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
2870         treat --enable-assert and --disable-assert equivalently.
2871         * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
2873 2008-12-05  William Pursell  <bill.pursell@gmail.com>  (tiny change)
2875         Fix some typos and grammatical errors in documentation.
2876         * doc/autoconf.texi: Clean up some bad use of English.
2878 2008-12-03  Eric Blake  <ebb9@byu.net>
2880         Improve AC_STATE_SAVE.
2881         * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
2882         process by hoisting the uniqueness check into sed.
2883         * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
2884         MacOS bug.
2886 2008-12-02  Eric Blake  <ebb9@byu.net>
2888         Avoid MacOS readdir bug in testsuite.
2889         * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
2890         duplicated ls entries.
2891         * THANKS: Update.
2892         Reported by Bruce Dugan and others.
2894 2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2896         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
2897         error messages about `set -m'.
2899 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2901         Fix a couple of test failures with dash.
2902         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
2903         exit status of `cd'.
2904         * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
2905         regeneration, to avoid timing effects.
2907 2008-11-25  Eric Blake  <ebb9@byu.net>
2909         Add m4_cleardivert.
2910         * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
2911         * lib/autotest/general.m4 (AT_INIT): Use it.
2912         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
2913         * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
2914         * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
2915         it.
2916         * NEWS: Likewise.
2917         Suggested by Paolo Bonzini.
2919         Add safety check for m4_expand vs. diversions.
2920         * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
2921         diverted text.
2922         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
2923         safety check.
2925 2008-11-24  Eric Blake  <ebb9@byu.net>
2927         Fix typo in AS_MESSAGE_LOG_FD patch.
2928         * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
2930 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2932         More reliable signal handling in Autotest.
2933         * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
2934         Start parallel jobs in their own process group, enabling job
2935         control in the shell if possible, for better signal handling.
2936         Deal with INT, TERM, and HUP in the testsuite driver.  In the
2937         parallel driver, propagate TSTP to jobs either as TSTP or as
2938         STOP (to avoid fork bombs with ksh).
2939         Inside the job processes, add PIPE handler to write back the
2940         job token, so the master process does not hang.
2941         Disable the parallel driver if job control is not provided or if
2942         trap does not understand signal names.
2943         * tests/autotest.at (parallel autotest and signals): New test,
2944         exercises INT, TERM, and PIPE, serial and parallel, with and
2945         without `make' in the loop.
2946         Kudos to Richard Stevens for writing APUE.
2948 2008-11-22  Eric Blake  <ebb9@byu.net>
2950         Fix testsuite failure on Solaris.
2951         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
2952         failure status to 1.
2954 2008-11-21  Eric Blake  <ebb9@byu.net>
2956         Clean up AS_MESSAGE_LOG_FD usage.
2957         * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
2958         (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
2959         (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
2960         usage.
2961         (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
2962         * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
2963         (AS@&t@_MESSAGE_FD): New test.
2964         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
2965         Give more details about fd manipulation.
2966         (File Descriptor Macros): Describe M4sh defaults for the fds.
2968 2008-11-21  Eric Blake  <ebb9@byu.net>
2970         Use shell function for AS_ERROR.
2971         * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
2972         new shell function.
2973         (AS_ERROR): Use it.
2974         (_AS_LINENO_PREPARE): Break circular dependency.
2975         (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
2977 2008-11-21  Eric Blake  <ebb9@byu.net>
2979         Fix typos in recent testsuite improvements.
2980         * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
2981         Fix typo.
2982         * NEWS: Clarify the potential impact to users.
2983         * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
2984         AT_DATA_M4SUGAR.
2985         (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
2986         (unusual file names): Test that the recent echo fix does not
2987         regress.  Fix quoting bug that made the test a no-op.
2988         Reported by Paolo Bonzini and Ralf Wildenhues.
2990 2008-11-21  Eric Blake  <ebb9@byu.net>
2992         Use modern m4sh constructs in autoconf.
2993         * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
2994         than AS_EXIT.
2996         Change the semantics of AS_EXIT without argument.
2997         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
2998         even if it is 0.
2999         (AS_ERROR): Guarantee non-zero status.
3000         * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
3001         we want non-zero status.
3002         * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
3003         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
3004         the documentation.
3005         <AS_SET_STATUS>: Don't overly restrict implementation.
3006         (Printing Messages) <AC_MSG_ERROR>: Describe better default.
3007         Suggestions by Paolo Bonzini and Ralf Wildenhues.
3009 2008-11-21  Eric Blake  <ebb9@byu.net>
3011         Add @anchors within Builtins and Usual Tools lists.
3012         * doc/autoconf.texi (Limitations of Builtins)
3013         (Limitatations of Usual Tools): Add anchors for tools called out
3014         by name.  Adjust callers to narrow in on tool of interest.
3016         Move case statement style discussion to m4 quoting section.
3017         * doc/autoconf.texi (Limitations of Builtins): Move comparison of
3018         quoting styles...
3019         (Balancing Parentheses): ...to this new node.
3020         Suggested by Ralf Wildenhues.
3022 2008-11-20  Eric Blake  <ebb9@byu.net>
3024         Factor more common code out of AT_CHECK into shell function.
3025         * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
3026         starts with -.  Move preparations...
3027         (AT_INIT) <at_fn_check_prepare_trace>
3028         <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
3029         ...into these new shell functions.
3030         <at_fn_check_newline>: Inline into only caller.
3031         (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
3033 2008-11-20  Eric Blake  <ebb9@byu.net>
3035         Handle version numbers as decimal, even if they start with 0.
3036         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
3037         interpreting leading zeros as octal.
3039 2008-11-20  Eric Blake  <ebb9@byu.net>
3041         Speed up AT_CHECK.
3042         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3043         third and fourth arguments once.
3044         (_AT_CHECK): Don't re-expand expected output.  Rearrange code for
3045         fewer scans of arguments.
3046         (AT_CHECK): Update caller.
3047         (AT_INIT) <at_fn_filter_trace>: Drop parameter.
3048         * tests/m4sugar.at (m4@&t@_split): Protect test with
3049         quadrigraphs.
3051         Fix XFAIL related to AT_CHECK.
3052         * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
3053         first argument once.
3054         (_AT_CHECK): Don't re-expand commands.
3055         * tests/autotest.at (Multiline command from M4 expansion): Remove
3056         XFAIL.
3057         * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
3058         * NEWS: Document the fallout.
3060 2008-11-20  Eric Blake  <ebb9@byu.net>
3062         Reduce forks in AC_DEFINE.
3063         * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
3064         (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
3065         AC_DEFINE_UNQUOTED.
3066         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
3067         * tests/torture.at (Substitute and define special characters):
3068         (Define to a 2000-byte string): Enhance tests to cover
3069         AC_DEFINE_UNQUOTED.
3070         (@%:@define header templates): Enhance test to cover #.
3072 2008-11-20  Eric Blake  <ebb9@byu.net>
3074         Improve m4_expand robustness, part 2.
3075         * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
3076         comments, by wrapping old implementation...
3077         (_m4_expand): ...as this, and renaming old core...
3078         (_m4_expand_): ...to this.
3079         (m4_text_box): Use lighter-weight _m4_expand.
3080         * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
3081         (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
3082         * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
3083         * tests/m4sugar.at (m4@&t@_expand): Enhance test.
3084         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
3085         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
3086         functionality.
3088         Improve m4_expand robustness, part 1.
3089         * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
3090         unbalanced `)'.
3091         * tests/m4sugar.at (m4@&t@_expand): New test.
3093 2008-11-20  Eric Blake  <ebb9@byu.net>
3095         Add m4_chomp, m4_esyscmd_s.
3096         * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
3097         New macros.
3098         * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
3099         them.
3100         (Text processing Macros) <m4_chomp>: Likewise.
3101         * NEWS: Likewise.
3102         * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
3104         Remove _m4_index.
3105         * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
3106         to make callers guarantee a match.
3107         (m4_init): Adjust caller.
3108         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3109         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
3111         Describe different hacks for balancing ')' in case statements.
3112         * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
3113         exposition on various quoting styles.
3115 2008-11-20  Eric Blake  <ebb9@byu.net>
3117         Speed up _AS_QUOTE.
3118         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
3119         (_AS_QUOTE): ...here, delete unused second paramenter, and factor
3120         choice into...
3121         (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
3123 2008-11-20  Alfred G. de Wijn  <dwijn@iluvatar.eu.org>  (tiny change)
3125         For consistency, make temporary variable match language name.
3126         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
3127         Match the save/test variables' names to the FFLAGS/FCFLAGS being
3128         saved.
3129         * THANKS: Update.
3131 2008-11-19  Eric Blake  <ebb9@byu.net>
3133         Improve testsuite generation.
3134         * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
3135         (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@.  Use
3136         fewer macros.
3138 2008-11-18  Eric Blake  <ebb9@byu.net>
3140         Use fn for shell functions, func for autoconf CHECK_FUNCS.
3141         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
3142         function names.
3143         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
3144         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
3145         (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
3146         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3147         (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
3148         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
3149         (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
3150         * lib/autotest/general.m4 (AT_INIT): Likewise.
3151         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
3152         (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
3153         (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
3154         (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
3155         * doc/autoconf.texi (Shell Functions): Likewise.
3157 2008-11-18  Eric Blake  <ebb9@byu.net>
3159         Alter default value of AS_EXIT.
3160         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
3161         parameter be optional.
3162         (AS_EXIT): Use it to make better default.
3163         (_AS_DETECT_BETTER_SHELL): Use new default.
3164         * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
3165         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
3166         * tests/m4sh.at (AS@&t@_EXIT): Update test.
3167         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
3168         new default behavior.
3169         (Limitations of Builtins) <trap>: Adjust to use new default.
3170         * NEWS: Mention the semantic change.
3171         Suggested by Ralf Wildenhues.
3173         Update example to match actual Tru64 behavior.
3174         * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
3175         the example.
3176         Reported by Ralf Wildenhues.
3178         Add AS_SET_STATUS, make AS_EXIT more efficient.
3179         * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
3180         macros.
3181         (AS_EXIT): Rewrite to avoid forks.
3182         (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
3183         (AS_PREPARE, _AS_PREPARE): Add new preparation.
3184         * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
3185         Document.
3186         * NEWS: Mention new macro.
3187         * tests/m4sh.at (AS@&t@_EXIT): New test.
3188         (BASENAME_TEST): Sort.
3190         Document Tru64 bug with 'set -e'.
3191         * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
3192         bug in mixing 'set -e' with 'trap .. 0'.
3193         Reported by Ralf Wildenhues.
3195         Document a Solaris /bin/sh bug with 'set -e'.
3196         * doc/autoconf.texi (Shell Functions): Mention the bug.
3198 2008-11-17  Eric Blake  <ebb9@byu.net>
3200         Detect empty list in AS_FOR.
3201         * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
3202         properly.
3203         * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
3204         Reported by Paolo Bonzini.
3206 2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3208         Use a different workaround for an automake quirk.
3209         * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3210         (distclean_generic): New helper variable, to fool automake.
3211         ($(distclean_generic)): Depend on clean-local, to prevent
3212         the race in the two rules with accessing and removing
3213         $(TESTSUITE).
3214         Report by Eric Blake.
3216         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
3217         unbalanced parentheses from last change.
3218         Spotted by Eric Blake, fix suggested by Paolo Bonzini.
3220         Fix exit status of expr version of as_func_arith.
3221         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
3222         status of 1 of expr also as success, to avoid failure if the
3223         computation result is zero.  Fixes test failures with IRIX sh,
3224         where the expr variant of as_func_arith is used.
3226         Do not use read-only variable $status.
3227         * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
3228         $status, for zsh.
3230 2008-11-15  Eric Blake  <ebb9@byu.net>
3232         Use the new AS_FOR function.
3233         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
3234         abstraction for cleaner code.
3235         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3237         Add AS_FOR, undocumented for now.
3238         * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
3239         * tests/m4sh.at (AS@&t@_FOR): New test.
3240         Suggested by Paolo Bonzini.
3242 2008-11-13  Eric Blake  <ebb9@byu.net>
3244         Optimize single-argument loop.
3245         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
3246         loop only has one argument.
3247         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3249 2008-11-13  Eric Blake  <ebb9@byu.net>
3251         Fix AS_ESCAPE usage bugs.
3252         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
3253         (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
3254         escapes.
3255         (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
3256         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
3257         caveat due to conditional AS_ESCAPE.
3258         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
3260 2008-11-12  Eric Blake  <ebb9@byu.net>
3262         Whitespace reduction in configure.
3263         * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
3264         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
3265         Likewise.
3266         (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
3267         depend on it.
3269 2008-11-12  Eric Blake  <ebb9@byu.net>
3271         Make M4sh, not autoconf, guarantee sane $SHELL.
3272         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
3273         SHELL...
3274         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
3275         * doc/autoconf.texi (Initialization Macros): Document the effect
3276         on SHELL.
3277         * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
3278         Reported by Ralf Wildenhues.
3280 2008-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3282         Wrap keywords in `testsuite --list' output.
3283         * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
3284         avoid lint warnings from gawk, wrap keyword lists to stay below
3285         80 characters per line if possible.
3286         * tests/autotest.at (Keyword wrapping): New test.
3288         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3290         * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
3291         typos.
3293 2008-11-10  Eric Blake  <ebb9@byu.net>
3295         Work around <=m4-1.4.9 bug in m4_format.
3296         * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
3297         (m4_init): Only use it in older m4.
3298         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
3299         m4_format bug in older m4.
3300         * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3301         Reported by Bob Proulx.
3303 2008-11-10  Eric Blake  <ebb9@byu.net>
3305         Match upstream standards.texi.
3306         * doc/standards.texi: Resync from upstream.
3307         * doc/fdl-1.3.texi: Rename...
3308         * doc/fdl.texi: ...to this.
3309         * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
3310         users.
3311         * doc/autoconf.texi (GNU Free Documentation License): Likewise.
3312         * cfg.mk (fetch): Likewise.
3314         Yet more FDL 1.3 fallout.
3315         * NEWS: Mention manual license change.
3317 2008-11-10  Eric Blake  <ebb9@byu.net>
3319         Avoid some regex uses.
3320         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
3321         than m4_bpatsubst to grab string prefix.
3322         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
3323         (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
3324         (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
3325         m4_bpatsubst to change bytes.
3326         (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
3327         m4_bmatch to find byte.
3328         (_AC_CONFIG_COMPUTE_DEST): New helper macro.
3330         Use more efficient macros in AC_CONFIG_SUBDIRS.
3331         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
3332         m4_map_args_w.
3333         (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
3334         (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
3336         Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
3337         * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
3338         and avoid typo.
3339         (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
3340         (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
3341         helper macros.
3342         (AC_LIBSOURCES): Use m4_map_args.
3344         Use more efficient macros in AC_CHECK_TYPES.
3345         * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
3346         m4_map_args_sep.
3347         (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
3349         Use more efficient macros in AC_CHECK_HEADERS.
3350         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
3351         (AH_CHECK_HEADERS_DIRENT): Rename...
3352         (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
3353         argument, rather than a list.
3354         (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
3355         Adjust callers to use m4_map_args_w.
3356         (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
3357         (_AC_CHECK_HEADER_ONCE): New helper macro.
3359         Use more efficient macros in AC_CHECK_FUNCS.
3360         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
3361         (_AH_CHECK_FUNC): ...and take only one argument, rather than a
3362         list.
3363         (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
3364         m4_map_args_w.
3365         (_AC_CHECK_FUNC_ONCE): New helper macro.
3366         (AC_REPLACE_FUNCS): Use m4_map_args_w.
3368         Use more efficient macro in AT_INIT.
3369         * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
3371 2008-11-10  Eric Blake  <ebb9@byu.net>
3373         More FDL 1.3 fallout.
3374         * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
3375         * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
3376         dependency changes.
3377         * doc/fdl.texi: Delete.
3378         * doc/gnu-oids.texi: New upstream file.
3379         * doc/standards.texi: Resync from upstream.
3380         * doc/make-stds.texi: Likewise.
3381         * build-aux/announce-gen: Likewise.
3382         * build-aux/texinfo.tex: Likewise.
3384 2008-11-10  Clinton Roy  <clinton.roy@gmail.com>  (tiny change)
3386         Pass autoreconf -I to aclocal -I
3387         * bin/autoreconf.in (parse_args): Pass --include to aclocal.
3388         * doc/autoconf.texi (autoreconf Invocation): Updates for above.
3389         * NEWS: Document it.
3390         * THANKS: Update.
3392 2008-11-10  Eric Blake  <ebb9@byu.net>
3394         Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
3395         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
3396         * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
3397         the print workaround.
3398         Idea by Paolo Bonzini.
3400 2008-11-10  Eric Blake  <ebb9@byu.net>
3402         Provide a section on all tools allowed in GNU Coding Standards.
3403         * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
3404         <wait>: Add section.
3405         (Limitations of Usual Tools) <awk>: Make table entry consistent.
3406         <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
3408 2008-11-09  Paolo Bonzini  <bonzini@gnu.org>
3410         Balance parentheses in _AC_CACHE_DUMP.
3411         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
3412         without introducing \).
3414 2008-11-07  Eric Blake  <ebb9@byu.net>
3416         Further doc updates for AC_CHECK_HEADER change.
3417         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
3418         new default, and make it more obvious that using [-] is generally
3419         broken.
3421 2008-11-07  Eric Blake  <ebb9@byu.net>
3423         * ChangeLog: Enforce UTF-8 encoding.
3425 2008-11-06  Eric Blake  <ebb9@byu.net>
3427         Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
3428         * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
3429         argument to speed up check.
3431 2008-11-06  Eric Blake  <ebb9@byu.net>
3433         Speed up AC_CHECK_TYPE.
3434         * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
3435         regex when enough arguments are present.
3437 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
3439         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
3440         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
3441         sequence when the program's stderr was empty, while providing a
3442         conftest.err file even in that case.
3443         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
3445 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
3447         Change `present but cannot be compiled' behavior to use compiler result.
3448         * NEWS: Document it.
3449         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
3450         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
3451         and adjust warning.
3452         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
3454 2008-11-05  Eric Blake  <ebb9@byu.net>
3456         Add m4_map_args_w.
3457         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
3458         for now.
3459         (_m4_split): Allow user control over separator.
3460         (m4_split): Adjust caller.
3461         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
3462         m4_map_args_w.
3463         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
3464         (M4 loops): Test new interface.
3466         Use m4_set_map_sep in more places.
3467         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
3468         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
3469         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
3470         Enhance documentation.
3471         <m4_set_foreach>: Mention faster alternative.
3472         (Looping constructs) <m4_foreach>: Likewise.
3474         Unify m4_set_foreach and m4_set_map.
3475         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
3476         for now.
3477         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
3478         (m4_set_map): Adjust callers.
3480         Use _m4_foreach in more places.
3481         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
3482         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
3483         m4_foreach.
3484         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
3485         instead of m4_foreach or m4_map_args.
3487         Unify _m4_foreach and _m4_map.
3488         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
3489         (_m4_foreach): ...this.
3490         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
3491         (m4_map_args, m4_map_args_sep): Adjust callers.
3492         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
3493         (_m4_foreach): ...to this, overwriting old definition.
3495 2008-11-04  Eric Blake  <ebb9@byu.net>
3497         Add m4_map_args_sep, undocumented for now.
3498         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
3499         (_m4_map): Change API to cover more of m4_map*.
3500         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
3501         (m4_map_args): Delete.
3502         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
3503         test.
3505         Improve m4_for performance.
3506         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
3507         avoid m4_define by some clients.
3508         (m4_for): Adjust caller.
3509         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
3510         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
3511         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
3512         (_m4_list_cmp): Likewise.
3514 2008-11-04  Eric Blake  <ebb9@byu.net>
3516         Adjust expected output.
3517         * tests/torture.at (Missing templates): Reflect added quoting.
3518         Detected by Bob Proulx's buildbot.
3520         Reject arguments with leading =.
3521         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
3522         missing variable name, with fewer forks.  Quote invalid arguments
3523         in message, in case they include spaces.
3524         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
3525         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
3526         * lib/autotest/general.m4 (AT_INIT): Likewise.
3527         * tests/base.at (configure arguments): Test this.
3528         Reported by Jeff Squyres.
3530 2008-11-04  Eric Blake  <ebb9@byu.net>
3532         Upgrade to FDL 1.3.
3533         * cfg.mk (fetch): Add fdl-1.3.texi.
3534         * .gitattributes: Likewise.
3535         * doc/autoconf.texi (GNU Free Documentation License): Point to new
3536         upstream version.
3537         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
3538         (standards_TEXINFOS): Mention current dependence on older license.
3539         * doc/fdl-1.3.texi: New upstream file.
3540         * GNUmakefile: Resync from upstream.
3541         * build-aux/announce-gen: Likewise.
3542         * build-aux/texinfo.tex: Likewise.
3544 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3546         Point at AM_SUBST_NOTMAKE.
3547         * doc/autoconf.texi (Setting Output Variables): Add cross
3548         reference to new Automake macro AM_SUBST_NOTMAKE.
3550 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
3552         Eliminate a fork per invocation of AC_LANG_CONFTEST.
3553         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
3554         AC_LANG_SOURCE(C).
3555         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
3556         top of confdefs.h, which also works around cpp deficiencies.
3557         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
3558         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
3559         (AC_LANG_CONFTEST()): New.
3561 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
3563         Reorganize definition of languages.
3564         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
3565         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
3566         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
3567         Replace definitions with usage of AC_LANG_DEFINE.
3568         (Sections 2b, 2c): Delete.
3569         (Sections 1b, 1c): Move after section 2a.
3570         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
3571         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
3572         with usage of AC_LANG_DEFINE.
3573         (AC_LANG_ERLANG): Define using AU_DEFUN.
3574         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
3575         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
3576         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
3577         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
3578         definitions with usage of AC_LANG_DEFINE.
3579         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
3581 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
3583         Use preprocessor in cpp tests.
3584         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
3586 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
3588         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
3589         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
3590         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
3591         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
3592         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
3593         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
3594         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
3595         Give better name.
3597 2008-10-31  Eric Blake  <ebb9@byu.net>
3599         Support multiple undiverts and dumpdefs at once.
3600         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
3601         arguments.
3602         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
3603         <m4_undivert>: Document argument list change.
3604         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
3605         them.
3607         Simplify diversion stack handling.
3608         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
3609         avoid extra newlines.
3610         (m4_divert_stack_push): Compute location here, rather than caller.
3611         (m4_divert_push): Update caller.
3612         (m4_divert): Likewise, and also adjust current diversion name.
3613         (m4_divert_pop): Simplify rule that diversion stack must never go
3614         empty.
3615         (_m4_require_call): Bypass diversion stack when collecting
3616         required macro text.
3617         (m4_init): Set current diversion without requiring m4_init.
3618         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
3619         * lib/autotest/general.m4 (AT_INIT): Likewise.
3620         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
3621         text to run prior to m4sugar cleanup.
3622         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
3623         optional argument.
3624         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
3625         * NEWS: Undo blurb about m4_divert.
3626         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
3628         Simplify expansion stack handling.
3629         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
3630         always output 'top level'.
3631         (_m4_expansion_stack_entry): New macro, to format the string only
3632         when needed.
3633         (m4_expansion_stack_push): Only push a macro name.
3634         (m4_warn, _m4_defun_pro): Update callers.
3635         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
3636         (_m4_defun_epi, m4_fatal): Inline the calls.
3637         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
3639 2008-10-30  Eric Blake  <ebb9@byu.net>
3641         Better documentation of AC_CHECK_HEADER's fourth argument.
3642         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
3643         how to suppress compiler or preprocessor header check.
3644         Reported by Jeff Squyres.
3646 2008-10-30  Eric Blake  <ebb9@byu.net>
3648         Fix LINENO testsuite failure.
3649         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
3650         undocumented _AS_PREPARE, and move unset earlier in script.
3652         Update LINENO documentation.
3653         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3654         (Special Shell Variables) <LINENO>: Mention that LINENO support in
3655         child scripts may be broken.  Modernize example.
3657 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
3659         Do not check for $LINENO in generated scripts.
3660         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
3661         and explain why.
3663 2008-10-30  Eric Blake  <ebb9@byu.net>
3665         Don't check for non-POSIX extensions in suggested tests.
3666         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
3667         we still use += if available, but should not reject shells (like
3668         dash) that don't provide it.
3669         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
3670         Reported by Paolo Bonzini.
3672 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
3674         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
3675         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
3676         with a given CONFIG_SHELL, move it to SHELL.
3677         (AS_INIT_GENERATED): Re-export SHELL.
3679 2008-10-30  Eric Blake  <ebb9@byu.net>
3681         Work around Solaris /bin/sh case bug.
3682         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
3683         a non-empty command list.
3684         (AS_CASE): Always guarantee that a case will match.
3685         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
3686         Solaris bug, and mention AS_CASE.
3688 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
3690         Require _AS_CR_PREPARE where appropriate.
3691         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
3692         (AS_PREPARE): Require _AS_CR_PREPARE.
3694         Avoid walking the entire PATH when looking for a better shell.
3695         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
3696         as the PATH is walked.
3698         Add third argument to _AS_PATH_WALK
3699         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
3700         (_AS_PATH_WALK): Add third optional argument.
3702         Trim down the length of the shell function test.
3703         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
3705 2008-10-29  Eric Blake  <ebb9@byu.net>
3707         Fix LINENO detection to work around bash and pdksh limitations.
3708         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
3709         that we can choose which of two tests to trust.
3710         (_AS_RUN): Set flag when alternate shell is running.
3711         (_AS_DETECT_EXPAND): New macro.
3712         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
3714 2008-10-29  Eric Blake  <ebb9@byu.net>
3716         Mention proper fix for zsh users.
3717         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
3718         version known to work.
3719         Suggested by Paolo Bonzini.
3721         Document current beta-quality status.
3722         * configure.ac: Reflect fact that change to git-version-gen
3723         produces -, but not always a letter, on non-release builds.
3724         * BUGS: Mention known issues.
3725         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
3726         debugging platforms with deficient shells.
3728 2008-10-29  Eric Blake  <ebb9@byu.net>
3730         Alter signature of AS_INIT_GENERATED.
3731         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
3732         manage here-doc and chmod in place.  This also allows future
3733         changes for optimizing the child via diversion/m4_wrap magic.
3734         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
3735         caller.
3736         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3737         Update the documentation.
3739 2008-10-29  Eric Blake  <ebb9@byu.net>
3741         Use _m4_stack_reverse in m4_set.
3742         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
3743         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
3744         implementation.
3745         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
3746         (m4_set_map): Adjust callers to new API.
3748         Add m4_stack_foreach_sep.
3749         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
3750         (m4_stack_foreach_sep_lifo): New macros.
3751         (_m4_stack_reverse): Adjust prototype, to support it.
3752         (m4_copy): Use fewer macros.
3753         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
3754         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
3756 2008-10-29  Bruno Haible  <bruno@clisp.org>
3758         Mention Sun WorkShop 6.2 OpenMP bug.
3759         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
3761 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
3763         Rewrite handling of diversion and expansion stack.
3764         * NEWS: Document stricter requirement on m4_init.
3765         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
3766         _m4_divert_n_stack.
3767         (_m4_divert_stack_push): New.
3768         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
3769         m4_popdef.
3770         (m4_divert_push): Use _m4_divert_stack_push.
3771         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
3772         pop _m4_divert_stack instead of m4_divert_stack.
3773         (m4_expansion_stack): New.  Update comment above it.
3774         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
3775         _m4_expansion_stack instead of m4_expansion_stack.
3776         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
3777         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
3778         instead of the definition, and compensate for the trailing newline
3779         in the expansion.
3780         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
3781         _m4_expansion_stack instead of m4_expansion_stack.
3782         (m4_newline): Expand first argument after the newline.
3783         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
3784         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
3785         * tests/tools.at (whitespace in file names, the empty token): Likewise.
3787 2008-10-28  Eric Blake  <ebb9@byu.net>
3789         Reduce forks while searching for better shell.
3790         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
3791         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
3792         already does the job.
3793         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
3794         0 context.
3796         Undo needless efforts to protect $2 in $2_t.
3797         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
3798         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
3800 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3802         Fix parallel test execution output lossage.
3803         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
3804         standard output and standard error before the test, use append
3805         mode for writing.
3806         * THANKS: Update.
3807         Caught by Bob Proulx' build daemons, analysis and suggested fix
3808         by Stéphane Chazelas.
3810 2008-10-28  Eric Blake  <ebb9@byu.net>
3812         Use m4_map_args in more places.
3813         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
3814         (m4_undefine, m4_combine): Use m4_map_args, rather than
3815         m4_foreach.
3817 2008-10-28  Eric Blake  <ebb9@byu.net>
3819         Override m4 1.4.x dumpdef, as it breaks autom4te.
3820         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
3821         (m4_copy): Formatting touchup.
3822         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
3823         semantic differences as well as m4_dumpdefs.
3824         * NEWS: Likewise.
3825         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
3827 2008-10-28  Eric Blake  <ebb9@byu.net>
3829         Allow m4sugar to be used without autom4te, such as in bison.
3830         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
3831         alternate escape sequences can be used.
3832         (m4_text_box): Likewise.  Don't output quadrigraphs.
3833         (m4_qdelta): Delete unused macro.
3835 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
3837         Add m4_stack_foreach and m4_stack_foreach_lifo.
3838         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
3839         (m4_stack_foreach, m4_stack_foreach_lifo): New.
3840         (m4_copy): Use m4_stack_foreach and m4_curry.
3841         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
3842         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
3843         * tests/m4sugar.at (m4_stack_foreach): New test.
3845 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
3847         use a shell function for AC_TYPE_INTx_T
3848         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
3849         New.
3850         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
3852 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
3854         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
3855         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
3856         _AC_CHECK_HEADER_NEW): Likewise.
3857         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
3859 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
3861         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
3862         (AC_CHECK_MEMBER): Define and use a shell function.
3864 2008-10-27  Eric Blake  <ebb9@byu.net>
3866         Prefer m4_fatal over AC_FATAL.
3867         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
3868         (AC_CHECK_MEMBER): Use non-obsolete macro name.
3869         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
3870         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
3871         Likewise.
3872         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
3873         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
3874         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
3876 2008-10-27  Eric Blake  <ebb9@byu.net>
3878         Avoid raw carriage return in scripts.
3879         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
3880         via tr, rather than with literal byte.
3881         * THANKS: Update.
3882         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
3884 2008-10-27  Eric Blake  <ebb9@byu.net>
3886         Use AS_VAR_ARITH.
3887         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
3888         clients with AS_VAR_ARITH instead.
3889         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
3890         macro.
3891         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
3892         * tests/torture.at (Torturing config.status): Likewise.
3893         * tests/tools.at (autom4te --force): Likewise.
3895         Add AS_VAR_ARITH.
3896         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
3897         (AS_VAR_ARITH): New macros.
3898         (_AS_PREPARE, AS_PREPARE): Emit preparation.
3899         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
3900         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
3901         Document new macro.
3902         (Limitations of Usual Tools) <expr>: Mention portability problem
3903         if first argument starts with -.
3904         (Shell Substitutions) <$((expression))>: Mention it.
3905         * NEWS: Likewise.
3907 2008-10-27  Eric Blake  <ebb9@byu.net>
3909         Use read, rather than `cat`, for safe one-line files.
3910         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
3911         known that the file has only one line and no \.
3912         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
3914 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
3916         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
3917         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
3918         (_AC_COMPUTE_INT_BODY): New.
3919         (AC_COMPUTE_INT): Define and use a shell function.
3921 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
3923         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
3924         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
3925         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
3927 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
3929         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
3930         (AC_CHECK_DECL): Use a shell function.
3932 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
3934         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
3935         _AC_CHECK_HEADER_NEW): Use a shell function.
3937 2008-10-25  Eric Blake  <ebb9@byu.net>
3939         Track recent copyright assignments.
3940         * AUTHORS: Update.
3942 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
3943         and Eric Blake  <ebb9@byu.net>
3945         Use a shell function for _AC_CHECK_HEADER_MONGREL.
3946         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
3947         macro.
3948         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
3950 2008-10-25  Eric Blake  <ebb9@byu.net>
3952         Simplify _AS_PREPARE handling of functions.
3953         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
3954         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
3955         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
3956         this task easier.
3957         (_AS_LINENO_PREPARE): Make more efficient.
3958         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
3959         (_AS_UNSET_PREPARE): Avoid blank newline.
3960         (AS_INIT): Emit as_func_unset alongside other functions.
3962 2008-10-25  Eric Blake  <ebb9@byu.net>
3964         Document AS_EXIT.
3965         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
3966         this macro.
3967         (Limitations of Builtins): Mention AS_EXIT.
3968         * NEWS: Mention it.
3970         Use AS_EXIT in autoconf.as.
3971         * bin/autoconf.as: Consistently use AS_EXIT.
3973 2008-10-24  Eric Blake  <ebb9@byu.net>
3975         Fix m4 underquoting in AC_PROG_INSTALL.
3976         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
3977         character ranges.
3979         Speed up AC_CHECK_HEADER.
3980         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
3982 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
3983         and Eric Blake  <ebb9@byu.net>
3985         Use a shell function for AC_CHECK_FUNC.
3986         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
3987         (AC_CHECK_FUNC): Use a shell function.
3988         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
3990 2008-10-24  Eric Blake  <ebb9@byu.net>
3992         Work around fact that gnulib-tool doesn't use m4_copy.
3993         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
3994         define, so that an initial location is present, to account for
3995         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
3997         Make m4_defun_init more robust.
3998         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
3999         names, and correct number of arguments.
4000         (m4_copy): Also set up location of the copy.
4001         (m4_defun): When copied, use current macro name, not original.
4002         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
4003         Update test.
4005         Optimize clients of AS_REQUIRE.
4006         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
4007         argument.
4008         (m4_defun_init): New undocumented macro.
4009         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
4010         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
4011         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
4012         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
4013         simplify these macros once the one-shot initialization is
4014         complete.
4015         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
4016         test.
4018         Improve m4_copy.
4019         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
4020         public use.
4021         (_m4_copy): New macro, which preserves pushdef stacks.
4022         (_m4_defun_pro_outer): Bypass it, for speed.
4023         (m4_init): Bypass new implementation, since it breaks on m4_defn.
4024         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
4025         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
4026         now that m4_copy checks this.
4027         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
4028         this, as well as m4_rename.
4029         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
4030         renaming builtins, since it breaks on m4_ifdef.
4031         * NEWS: Likewise.
4032         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
4034 2008-10-24  Eric Blake  <ebb9@byu.net>
4036         AC_FUNC_GETGROUPS: Revert regression.
4037         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
4038         ac_cv_func_getgroups_works=no when it is not available.
4040 2008-10-23  Eric Blake  <ebb9@byu.net>
4042         Whitespace cleanup.
4043         * lib/autoconf/fortran.m4: Consistently use tabs.
4045 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
4047         For gfortran on sh, ignore -little.
4048         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
4049         list of ignored arguments.
4050         * THANKS: Update.
4052 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4054         Eliminate empty lines after AC_*_IFELSE.
4055         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
4056         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
4058 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4060         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
4061         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
4062         Return a boolean status code based on $ac_status.
4064 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
4066         Ensure actions can look at conftest* files.
4067         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
4068         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
4069         Move rm commands, except IPA files and Apple debug symbols...
4070         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
4071         _AC_RUN_IFELSE): ...in here.
4072         * tests/compile.at: Add regression test.
4074 2008-10-23  Eric Blake  <ebb9@byu.net>
4076         Remove excess dnl from m4sh.
4077         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
4078         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
4079         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
4080         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
4081         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
4082         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
4083         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
4084         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
4085         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
4086         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
4088 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
4089         and Eric Blake  <ebb9@byu.net>
4091         Use a shell function for _AC_RUN_IFELSE.
4092         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
4093         (_AC_RUN_IFELSE): Use a shell function.
4094         (_AC_RUN_LOG): Avoid subshell for logging.
4096 2008-10-23  Eric Blake  <ebb9@byu.net>
4098         Formatting tweak: balance () with m4sh case statements.
4099         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
4100         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
4101         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
4102         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
4103         allow output of strategic shell comments.
4104         (AS_VERSION_COMPARE): Use AS_CASE.
4105         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4107 2008-10-22  Jim Meyering  <meyering@redhat.com>
4109         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
4110         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
4111         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
4112         it is set to "yes" in the environment and configure is run on
4113         a system like mingw that lacks the getgroups function, it would
4114         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
4115         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
4117 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
4118         and Eric Blake  <ebb9@byu.net>
4120         Use a shell function for _AC_LINK_IFELSE.
4121         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
4122         (_AC_LINK_IFELSE): Use a shell function.
4124 2008-10-22  Eric Blake  <ebb9@byu.net>
4126         Fix autoconf logging commands.
4127         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
4128         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
4129         (_AC_DO_ECHO): Likewise, and use fewer dnl.
4130         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
4132 2008-10-22  Eric Blake  <ebb9@byu.net>
4134         Fix testsuite failure.
4135         * tests/mktests.sh (ac_exclude_list): Don't generate test for
4136         AC_REQUIRE_SHELL_FN.
4138 2008-10-21  Eric Blake  <ebb9@byu.net>
4140         Improve wording related to automake and autotest.
4141         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
4142         relation to automake.  Mention dependency on package.m4.
4143         Consolidate examples.  Define AUTOM4TE.
4144         * THANKS: Update.
4145         Reported by William Pursell.
4147 2008-10-21  Eric Blake  <ebb9@byu.net>
4149         Allow AS_VAR_SET_IF in shell lists.
4150         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
4151         line.
4152         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
4153         provided by AS_VAR_SET_IF.
4154         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
4155         clients.
4156         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4157         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4159         Allow AS_VAR_IF in shell lists.
4160         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
4161         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
4162         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4163         Likewise.
4164         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4165         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
4166         (_AC_CHECK_HEADER_DIRENT): Likewise.
4167         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
4168         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4169         Likewise.
4170         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4172         Allow AS_CASE in shell lists.
4173         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
4174         side effects.  Allow continuation of script on same line as esac.
4175         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
4176         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4177         * NEWS: Document the subtle change.
4179         Allow AS_IF in shell lists.
4180         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
4181         side effects.  Allow continuation of script on same line as fi.
4182         (_AS_DETECT_BETTER_SHELL): Adjust clients.
4183         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
4184         given by AS_IF.
4185         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
4186         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
4187         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
4188         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4189         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
4190         (Polymorphic Variables): Move mention of dnl to the only two
4191         AS_VAR functions that need it.
4193 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
4194         and Eric Blake  <ebb9@byu.net>
4196         Use a shell function for _AC_COMPILE_IFELSE.
4197         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
4198         (_AC_COMPILE_IFELSE): Use a shell function.
4200 2008-10-21  Eric Blake  <ebb9@byu.net>
4202         Use AS_VAR_APPEND.
4203         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
4204         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
4205         (_AC_LIBOBJS_NORMALIZE): Likewise.
4206         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
4207         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
4208         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
4209         * lib/autotest/general.m4 (AT_INIT): Likewise.
4211         Add AS_VAR_APPEND.
4212         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
4213         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
4214         (AS_PREPARE, _AS_PREPARE): Emit preparation.
4215         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
4216         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
4217         Document new macro.
4218         <AS_VAR_SET>: Mention ramification of `""` rules.
4219         * NEWS: Mention new macro.
4221 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
4222         and Eric Blake  <ebb9@byu.net>
4224         Use a shell function for _AC_PREPROC_IFELSE.
4225         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
4226         (_AC_PREPROC_IFELSE): Use a shell function.
4227         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
4228         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
4229         been provided.
4231 2008-10-21  Eric Blake  <ebb9@byu.net>
4233         Add banners to generated files.
4234         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
4235         existing banner.
4236         (AS_INIT): Add new banners at strategic points.
4237         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
4238         make consistent with other banners.
4239         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
4241 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
4243         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
4244         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
4245         (m4_divert(SHELL_FN)): New.
4247 2008-10-20  Eric Blake  <ebb9@byu.net>
4249         Avoid unportable use of echo in testsuite.
4250         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
4251         contains backslash.
4253 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
4255         Make sure that nested AS_REQUIRE do not lose the desired diversion.
4256         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
4257         passing it to m4_divert_require, so that its content is not used
4258         anymore.
4259         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
4261 2008-10-18  Eric Blake  <ebb9@byu.net>
4263         Document bugs in { } handling.
4264         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
4265         empty list.
4267         Fix some testsuite failures introduced two days ago.
4268         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
4269         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
4270         API.
4271         Reported by Ralf Wildenhues.
4273 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4275         Show how to extract single substitutions from config.status.
4276         * doc/autoconf.texi (config.status Invocation): Show example
4277         using `--file=-'.
4279 2008-10-17  Eric Blake  <ebb9@byu.net>
4281         Add m4_curry.
4282         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
4283         * tests/m4sugar.at (m4@&t@_map_args): Rename...
4284         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
4285         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4286         currying as a way to add parameters.
4287         (Evaluation Macros) <m4_curry>: Document the new macro.
4288         * NEWS: Likewise.
4290         Improve suggested test filtering.
4291         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
4292         extracted from...
4293         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
4294         check for an empty required set.
4296         Add m4_set_map.
4297         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
4298         * tests/m4sugar.at (m4@&t@_set): Enhance test.
4299         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4300         Document it.
4301         * NEWS: Likewise.
4303         Document m4_map_args.
4304         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
4305         Rename...
4306         (m4_map_args, m4_map_args_pair): ...to these names, and document.
4307         (m4_version_unletter): Use the interface.
4308         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
4309         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
4310         Perform same renames.
4311         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
4312         * tests/m4sugar.at (m4@&t@_map_args): New test.
4313         (recursion): Adjust caller.
4314         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
4315         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4316         this interface.
4317         * NEWS: Mention the new macros.
4319 2008-10-17  Eric Blake  <ebb9@byu.net>
4321         Reduce vertical whitespace in configure.
4322         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
4323         m4 side effect initializations.
4324         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
4326 2008-10-17  Eric Blake  <ebb9@byu.net>
4328         Document AS_VAR interfaces.
4329         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
4330         (Polymorphic Variables): New node.
4331         * NEWS: Update accordingly.
4333         Test AS_VAR interfaces.
4334         * tests/m4sh.at (AS@&t@_VAR): New test.
4335         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
4336         _AS_TR_SH_PREPARE at top level, rather than argument collection.
4337         (AS_TR_SH): Support command substitution.
4339         Add AS_VAR_COPY.
4340         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
4341         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
4342         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
4343         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4344         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
4346         Sort AS_VAR_* interfaces.
4347         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
4348         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
4349         no code changes.
4351 2008-10-16  Eric Blake  <ebb9@byu.net>
4353         Allow comments before functions emitted by m4sh.
4354         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
4355         argument.  Supply closing comment, to ease readability.
4356         (_AS_MKDIR_P_PREPARE): Adjust caller.
4357         (_AS_UNSET_PREPARE): Add comment.
4359         Add AS_FUNCTION_DESCRIBE.
4360         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
4361         * lib/autotest/general.m4 (AT_INIT): Use it.
4363 2008-10-16  Eric Blake  <ebb9@byu.net>
4365         Speed up m4_qlen with caching.
4366         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
4367         (m4_qlen): Cache results for speed.
4369 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
4371         Add a testcase using more then one language.
4372         * tests/compile.at (Multiple languages): New test.
4374 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
4376         Fix Libtool's config.lt test.
4377         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
4378         expanding it.
4380 2008-10-15  Eric Blake  <ebb9@byu.net>
4382         Break circular require chain in _AS_LINENO_PREPARE.
4383         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
4384         disabled when reporting LINENO failure, since logging requires
4385         LINENO.
4386         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
4387         not m4_rename, since the latter is undocumented.
4388         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
4389         m4_rename, as it does not yet handle pushdef stacks.
4390         Reported by Ralf Wildenhues.
4392 2008-10-15  Eric Blake  <ebb9@byu.net>
4394         Cleanups to previous patches.
4395         * doc/autoconf.texi (Portable Shell): Minor edits.
4396         (Limitations of Builtins): Touch up wording.
4397         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
4398         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
4400 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4402         Updates to shell portability documentation.
4403         * doc/autoconf.texi: Updates all references to "Portable Shell" and
4404         "Limitations of Builtins" to use three-argument commands.
4405         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
4406         (Portable Shell): Move here discussion about "Where is the POSIX
4407         shell?"  Mention that M4sh provides a SVR2 shell and takes care
4408         of unsetting variables if necessary.  Talk about M4sh and not only
4409         Autoconf-generated scripts.
4410         (Special Shell Variables): Talk about M4sh and not only
4411         Autoconf-generated scripts.  Don't talk about things that Autoconf
4412         does not do.  Mention problems of $LINENO with shell functions.
4413         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
4414         discussion of eval bugs before discussion on proper use of eval.
4415         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
4416         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
4417         * NEWS: Update list of documented M4sh macros.
4419 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4421         Assume a (possibly buggy) `unset' is present after a
4422         `better shell' was found.
4423         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
4424         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
4425         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
4426         alias for AS_UNSET, for backwards compatibility.
4427         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
4428         the shell does not support unset.
4429         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
4430         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
4431         (AS_UNSET): Assume it is there but it might fail if the variable is
4432         not set.  Use it throughout instead of $as_unset.
4434 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4436         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
4437         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
4438         m4_require of _AS_DETECT_BETTER_SHELL.
4439         (_AS_CLEANUP): Add it here.
4440         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
4441         to _AS_CLEANUP.
4442         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
4443         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
4444         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
4445         (AS_INIT): Add m4_provide of itself.
4447 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4449         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
4450         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
4451         "test x$foo = xyes".
4453 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4455         Trim down the size of the better-shell test.
4456         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
4457         snippets into shell variables.
4458         (_AS_RUN): Rewrite.
4460 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
4462         Support a stack of LINENO values for AS_MESSAGE.
4463         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
4464         the line number emitted to the log file.
4465         (AS_LINENO_PUSH, AS_LINENO_POP): New.
4466         * tests/m4sh.at (LINENO Stack): New test.
4468 2008-10-14  Eric Blake  <ebb9@byu.net>
4470         Correct previous patch.
4471         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
4472         all.
4474         Document shell function environment pitfall.
4475         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
4476         Solaris /bin/sh.
4478 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
4480         Use m4_require to implement AS_REQUIRE.
4481         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
4482         (m4_require): Pass it.
4483         (m4_divert_require): New.
4484         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
4485         Remove comment about differences with m4_require.
4486         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
4487         the expected behavior.
4488         (Nested AS_REQUIRE_SHELL_FN): New test.
4490 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
4492         Test AS_LINENO_PREPARE.
4493         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
4495 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
4497         Test AS_ME_PREPARE.
4498         * tests/m4sh.at (as_me): New test.
4500 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
4502         Add and document AS_INIT_GENERATED.
4503         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
4504         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
4505         * doc/autoconf.texi (Initialization macros): Document it.
4507 2008-10-13  Eric Blake  <ebb9@byu.net>
4509         Use consistent shell function style.
4510         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
4511         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
4512         functions.
4514 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
4516         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
4517         contributors under m4 rather than shell comments.
4519 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
4521         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
4522         * doc/autoconf.texi (Initialization macros): Document them.
4523         (Portable Shell): Refer to AS_LINENO_PREPARE.
4524         * NEWS: Mention them.
4526         * bin/autoconf.as: Invoke AS_ME_PREPARE.
4527         * lib/autotest/general.m4: Likewise.
4529 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
4531         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
4533 2008-10-10  Eric Blake  <ebb9@byu.net>
4535         Fix _AS_MKDIR_P usage.
4536         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
4537         match implementation.
4538         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
4539         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
4540         wording to better match behavior.
4542 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
4544         * doc/autoconf.texi: Be less wary of shell functions.
4545         * NEWS: Document the increased use of shell functions.
4547 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
4549         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
4550         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
4551         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
4552         (_AS_PREPARE): Define shell functions.
4553         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
4554         Define shell functions.
4556 2008-10-09  Eric Blake  <ebb9@byu.net>
4558         Only prepare $as_me if it will be used.
4559         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
4560         preparation.
4561         (_AS_ECHO_LOG): Depend on $LINENO preparation.
4562         (AS_MESSAGE): Depend on $as_me preparation.
4563         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
4565 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4567         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
4568         until the M4SH-INIT diversion using _AS_ME_PREPARE.
4569         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
4570         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
4571         before _AS_LINENO_PREPARE.
4572         (AS_PREPARE): Include all the AS_REQUIREs manually.
4573         (_AS_ME_PREPARE): New.
4574         (_AS_LINENO_PREPARE): Use m4_defun.
4576 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4578         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
4579         require _AS_EXPR_PREPARE.
4580         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
4581         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
4583 2008-10-08  Eric Blake  <ebb9@byu.net>
4585         Resync from gnulib.
4586         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
4587         (fetch): ...into new target.
4588         (executable-update): Delete, now that it is unused.
4589         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
4590         (wget-update, cvs-update): Likewise.
4591         * HACKING (Update the foreign files): Document new procedure.
4592         * GNUmakefile: Resync from upstream, via new 'make fetch'.
4593         * build-aux/config.guess: Likewise.
4595 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
4597         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
4598         (AS_INIT): Do not call it.
4600 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
4602         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
4603         _AS_UNSET_PREPARE in M4SH-SANITIZE.
4605 2008-10-08  Eric Blake  <ebb9@byu.net>
4607         Avoid repeating required shell tests in suggested set.
4608         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
4609         Use m4_set, rather than m4_expand_once/m4_append.
4610         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
4611         required tests out of suggested tests.
4612         Reported by Paolo Bonzini.
4614 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
4616         Add m4sh keyword to all m4sh.at tests.
4617         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
4618         pastos.
4620 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4622         Document AS_VERSION_COMPARE.
4623         * doc/autoconf.texi (Programming in M4sh): Document
4624         AS_VERSION_COMPARE.
4625         * NEWS: Update.
4627         Do not write to testsuite log fd before initialization.
4628         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
4629         Define fds only when initializing the log fd so early error
4630         messages do not try to write to it.
4631         * tests/autotest.at (Startup error messages): New test.
4632         * NEWS: Document this 2.63 regression.
4634 2008-10-07  Eric Blake  <ebb9@byu.net>
4636         Ensure _AS_CLEANUP is defined.
4637         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
4638         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
4640         Improve m4sh maintainability.
4641         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
4642         code change.
4644         Fix m4 quoting in previous patch.
4645         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
4646         name prior to invoking AS_REQUIRE.
4647         Reported by Ralf Wildenhues.
4649 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
4650         and Eric Blake  <ebb9@byu.net>
4652         Add a separate diversion for shell functions.
4653         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
4654         (AS_REQUIRE): Accept diversion parameter.
4655         (AS_REQUIRE_SHELL_FN): Use it.
4657 2008-10-06  Eric Blake  <ebb9@byu.net>
4659         Add m4_default_quoted.
4660         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
4661         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
4662         * doc/autoconf.texi (Conditional constructs): Document it.
4663         * NEWS: Likewise.
4665         Fix build with case-insensitive make, again.
4666         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
4667         Reported via Keith Marshall, originally by newthinker in
4668         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
4670 2008-10-06  Bruno Haible  <bruno@clisp.org>
4672         Warn about /usr/ucb on Solaris.
4673         * doc/install.texi (Particular Systems): Recommend putting
4674         /usr/ucb late in PATH, if at all.
4676 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4678         Fix more testsuite hang corner cases.
4679         * lib/autotest/general.m4: Use the serial code path if no test
4680         is to be run.
4681         * tests/autotest.at (parallel test execution): Test -j and -jN
4682         with `-k notmatched'.
4684 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4686         Fix hang with `testsuite -k notmatched'.
4687         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
4688         to one.  Fixes hang with `-k notmatched'.
4690 2008-10-02  Eric Blake  <ebb9@byu.net>
4692         Document more binary file portability traps.
4693         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
4694         reader that NUL and sed don't always mix.
4695         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
4697 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4699         Implement parallel Autotest test execution: testsuite --jobs.
4700         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
4701         (AT_INIT): <at_jobs>: New variable.
4702         Accept -j, -jN, --jobs[=N], document them in --help output.
4703         Implement parallel driver loop using a FIFO, enabled with --jobs
4704         and if mkfifo works; otherwise, fall back to sequential loop.
4705         (AT_SETUP): Store, do not output summary progress line if
4706         parallel.
4707         * tests/autotest.at (parallel test execution, parallel truth)
4708         (parallel fallacy, parallel skip): New tests.
4709         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
4710         the mkfifo requirement, and that --errexit may cause concurrent
4711         jobs to finish.
4712         * NEWS: Update.
4714 2008-09-20  Eric Blake  <ebb9@byu.net>
4716         Fix sample isinf definition.
4717         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
4718         first.
4719         * THANKS: Update.
4720         Reported by David Cournapeau.
4722 2008-09-16  Eric Blake  <ebb9@byu.net>
4724         Fix Erlang regression, introduced 2006-11-17.
4725         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
4726         caused by underquoting.
4727         * NEWS: Mention this fix.
4728         * THANKS: Update.
4729         Reported by BJ Terry.
4731 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4733         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
4735         Mention Solaris sh ':' redirection bug.
4736         * doc/autoconf.texi (File Descriptors): Redirecting ':'
4737         in a loop causes bogus optimization with Solaris sh.
4739 2008-09-10  Eric Blake  <ebb9@byu.net>
4741         Avoid testsuite bug when autom4te cache is disabled by user.
4742         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
4743         cache, even if user normally disabled it.
4744         Reported by Bruno Haible.
4746         Avoid testsuite bug in presence of verbose config.site.
4747         * tests/base.at (Input/Output): Nullify config.site during test.
4748         Reported by Bob Friesenhahn.
4750 2008-09-09  Eric Blake  <ebb9@byu.net>
4752         Release Version 2.63.
4753         * NEWS: Mention the release.
4755         Formatting tweaks to the manual.
4756         * doc/autoconf.texi (Introduction, Systemology)
4757         (File System Conventions, Portable C and C++)
4758         (Floating Point Portability): Allow URLs to split as needed.
4759         (Indices): Add entries, to work around texinfo bug on indices that
4760         start too close to a page break.
4761         (Particular Functions): Mention ftello.
4762         (Introduction, Language Choice): Use @enddots at sentence end.
4764         Resync from gnulib.
4765         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
4766         although for now, they are still manually sync'd.
4767         * build-aux/gnupload: Update.
4768         * build-aux/config.sub: Likewise.
4769         * GNUmakefile: Likewise.
4771 2008-09-06  Eric Blake  <ebb9@byu.net>
4773         Mention that Automake already supports VPATH.
4774         * doc/autoconf.texi (Build Directories): Details in this section
4775         only apply to users avoiding automake.
4776         * THANKS: Update.
4777         Reported by Matej Tyc.
4779         Relax tone when warning about cross-compiler names.
4780         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
4781         with poorly named tools; the issue has been reported too many
4782         times in the last four years to pull support.
4783         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
4784         documentation accordingly.
4785         * THANKS: Update.
4786         Reported by Josef Tran and others, wording suggested by Ralf
4787         Wildenhues.
4789 2008-09-01  Eric Blake  <ebb9@byu.net>
4791         Improve AC_C_BIGENDIAN.
4792         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
4793         universal builds require a config header.
4794         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
4795         AH_HEADER at the last possible moment, so that users can use
4796         AC_CONFIG_HEADER after this macro.
4797         Reported by Stepan Kasal.
4799         Fix manual date information.
4800         * doc/autoconf.tex: UPDATED refers to the day the manual was
4801         built, not the release date of Autoconf.
4802         Based on a bison patch by Akim Demaille.
4804 2008-08-27  Eric Blake  <ebb9@byu.net>
4806         Fix off-by-one bug in _m4_shiftn.
4807         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
4808         all arguments.
4809         * tests/m4sugar.at (M4 loops): Test it.
4810         Reported by Akim Demaille.
4812 2008-08-26  Eric Blake  <ebb9@byu.net>
4814         Improve INSTALL formatting.
4815         * doc/install.texi [!autoconf]: Ensure first paragraphs are
4816         indented like all others in a plain text rendering.
4817         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
4818         Reported by Bruno Haible.
4820 2008-08-26  Stepan Kasal  <skasal@redhat.com>
4822         Check for case sensitive make.
4823         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
4824         * configure.ac: ... called here.
4825         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
4826         ($(srcdir)/INSTALL): ...this, but enclose the rule in
4827         "if MAKE_CASE_SENSITIVE".
4829 2008-08-26  Eric Blake  <ebb9@byu.net>
4831         Update invocation documentation.
4832         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
4833         (autoreconf Invocation): Mention -v.
4834         (autom4te Invocation): Tie --freeze to -F, not -f.
4835         (autoupdate Invocation): Mention --prepend-include.
4836         * doc/install.texi (configure Invocation): Mention --help=short,
4837         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
4838         * bin/autoscan.in ($help): Omit space before `...'.
4839         * bin/ifnames.in ($help): Likewise.
4840         * bin/autoconf.as (Usage): Likewise.
4841         * bin/autoreconf.in ($help): Likewise.
4842         * bin/autoheader.in ($help): Likewise.
4843         * bin/autom4te.in ($help): Likewise.
4844         * bin/autoupdate.in ($help): Likewise.
4845         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
4846         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
4847         --file correctly.
4849         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
4850         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
4851         (files_to_options): Avoid inheriting __m4_version__ from frozen
4852         file if current M4 does not support it.
4854 2008-08-25  Eric Blake  <ebb9@byu.net>
4856         Adjust to recent m4 1.6 change to support m4_debugmode(d).
4857         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
4858         freeze-time decision of using faster 1.6 implementation...
4859         (m4_init): ...to a runtime decision, and add use of new debugmode
4860         flag.
4862 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
4864         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
4865         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
4866         __APPLE_CC__ with possible -arch flags.
4867         * NEWS: Document it.
4869 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4871         * NEWS: Fix typo.
4873 2008-08-22  Eric Blake  <ebb9@byu.net>
4875         * TODO: Add an item for additional m4sugar looping constructs.
4876         Suggested by Ralf Wildenhues.
4878         Add reminder to keep dual implementations in sync.
4879         * lib/m4sugar/m4sugar.m4: Add comments.
4880         * lib/m4sugar/foreach.m4: Likewise.
4881         Suggested by Ralf Wildenhues.
4883 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
4885         Format warning and error messages to match GCS.
4886         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
4887         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
4888         messages with a lowercase letter, end them without punctuation.
4889         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
4890         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
4891         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
4892         Likewise.
4893         * tests/fortran.at (GNU Fortran): Likewise.
4894         * tests/torture.at (Deep Package): Likewise.
4896 2008-08-21  Eric Blake  <ebb9@byu.net>
4898         Avoid extra side effects in m4sugar list expansion.
4899         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
4900         around...
4901         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
4902         duplicate side effects.
4903         (m4_version_compare): Adjust caller.
4904         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
4905         (_m4_list_cmp_raw): ...to match m4sugar.
4906         * doc/autoconf.texi (Looping constructs): Document the behavior of
4907         side effects.
4908         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
4909         Ensure only one side effect.
4910         (recursion): Fix test typo.
4911         Reported by Ralf Wildenhues.
4913 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4915         * TODO: Add item for compiler default flags.
4916         Suggested by Bruno Haible.
4918         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
4919         back to 1000.
4921 2008-08-21  Eric Blake  <ebb9@byu.net>
4923         Formatting improvements.
4924         * doc/autoconf.texi: Use @file and @command, rather than @code,
4925         where appropriate.
4927         Document another make bug.
4928         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
4929         make, GNU make <= 3.80.
4931         Tweak wording about SHELL in Makefile.
4932         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
4933         the importance of proper SHELL settings.
4934         Reported by Bruno Haible, in
4935         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
4937 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4939         Avoid timestamp races for updated input.
4940         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
4941         second script.
4942         * tests/tools.at (autotools and whitespace in file names): Add
4943         --force for repeated invocations.
4945 2008-08-20  Bruno Haible  <bruno@clisp.org>
4947         Add section to INSTALL about particular systems.
4948         * doc/install.texi (Particular systems): New node.
4949         * doc/autoconf.texi: Adjust menus.
4951 2008-08-19  Bruno Haible  <bruno@clisp.org>
4952         and Peter O'Gorman  <peter@pogma.com>
4954         Mention universal binaries in INSTALL.
4955         * doc/install.texi (Compiling For Multiple Architectures): Explain
4956         how to create universal binaries on MacOS X.
4958 2008-08-19  Jim Meyering  <jim@meyering.net>
4959             Eric Blake  <ebb9@byu.net>
4960             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4962         Avoid shell parse errors after interrupt due to empty ``.
4963         * doc/autoconf.texi (Shell Substitutions): Document the issue.
4964         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
4965         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
4966         "test AS_VAR_GET([...]) = yes"
4967         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
4968         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
4969         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
4970         (_AC_CHECK_HEADER_DIRENT): Likewise.
4971         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
4972         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
4973         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
4974         temporary variable to work around the issue.
4975         * tests/foreign.at (Libtool): Quote result of command
4976         substitution.
4978 2008-08-18  Eric Blake  <ebb9@byu.net>
4980         Test m4_transform without tickling shell bugs.
4981         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
4982         something more manageable.
4983         * tests/m4sugar.at (recursion): Move stress test of
4984         m4_transform_pair here.
4985         Reported by Ralf Wildenhues.
4987         Let 'git diff' give better context for doc updates.
4988         * .gitattributes (*.texi*): Add new entry.
4989         * README-hacking: Mention how to use it.
4990         Inspired by a coreutils patch by Jim Meyering.
4992 2008-08-15  Eric Blake  <ebb9@byu.net>
4994         Fix m4_map regression from 2007-10-16.
4995         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
4996         (m4_map): Ignore empty sublists.  For a list consisting of only an
4997         empty sublist, this restores 2.61 behavior of being a no-op.
4998         (m4_map_sep): Likewise, and expand separator.
4999         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
5000         (_m4_map): Rewrite, to be common base for all four variants.
5001         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
5002         * tests/m4sugar.at (m4@&t@_map): Add tests.
5003         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
5004         macros, and mention ramifications of expanded separator.
5005         * NEWS: Mention the change.
5007 2008-08-14  Eric Blake  <ebb9@byu.net>
5009         Implement m4_transform_pair, to speed up AS_IF.
5010         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
5011         macros, undocumented for now.
5012         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
5013         the m4 1.4.x counterparts.
5014         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
5015         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
5017 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5019         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
5020         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
5021         warn about previous AC_CANONICAL_TARGET.
5022         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
5023         unusable in the non-cross-compiling case.
5024         * NEWS, THANKS: Update.
5025         Report by Dave Erickson.
5027 2008-08-12  Eric Blake  <ebb9@byu.net>
5029         Optimize m4_bmatch.
5030         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
5031         implementation for m4 1.4.x.
5032         * tests/m4sugar.at (m4@&t@_bmatch): New test.
5033         (recursion): Test the linear nature.
5034         * NEWS: Document the fix.
5036         Fix m4_cond corner case.
5037         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
5038         implementation allows concatenation with subsequent text.
5039         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
5041         Add test for m4_cond.
5042         * tests/m4sugar.at (m4@&t@_cond): New test.
5043         Reported by Ralf Wildenhues.
5045 2008-08-06  Eric Blake  <ebb9@byu.net>
5047         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
5048         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
5049         unique key for the AH_VERBATIM.
5050         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
5051         * NEWS: Mention the fix.
5052         Reported by Andreas Schwab, analyzed by Stepan Kasal.
5054         Add linear m4_cond for m4 1.4.x.
5055         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
5056         (_m4_cond): ...this, for fewer macros per iteration.
5057         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
5058         * tests/m4sugar.at (recursion): Test it.
5059         * NEWS: Document the linear guarantee.
5061         Speed up diversion handling.
5062         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
5063         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
5064         expansions.
5066         AC_C_CHAR_UNSIGNED is not strictly necessary.
5067         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
5068         portable alternative to this macro.
5069         * THANKS: Update.
5070         Reported by Hallvard B Furuseth.
5072         Update some files from upstream.
5073         * GNUmakefile: Update.
5074         * build-aux/announce-gen: Likewise.
5075         * build-aux/config.guess: Likewise.
5076         * build-aux/config.sub: Likewise.
5077         * build-aux/git-version-gen: Likewise.
5078         * build-aux/texinfo.tex: Likewise.
5079         * build-aux/vc-list-files: Likewise.
5080         * doc/make-stds.texi: Likewise.
5081         * doc/standards.texi: Likewise.
5083 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5085         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
5086         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
5087         whitespace in $ac_config_files and $ac_config_headers.
5088         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
5089         Report by Andreas Schwab and Per Øyvind Karlsen.
5090         * THANKS: Update.
5092 2008-07-30  Eric Blake  <ebb9@byu.net>
5094         Fix bugs in previous version of m4_bpatsubsts.
5095         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
5096         allow concatenation with subsequent text.
5097         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
5099 2008-07-29  Eric Blake  <ebb9@byu.net>
5101         Add linear m4_bpatsubsts for m4 1.4.x.
5102         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
5103         about anchors, even for only one substitution.
5104         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
5105         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
5106         Clarify behavior with regard to quoting.
5107         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
5108         (m4@&t@_bpatsubsts): New test.
5109         * NEWS: Document the linear guarantee.
5111         Tweak m4_do semantics.
5112         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
5113         subsequent text.
5114         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
5115         arguments, and avoid infinite loop.
5116         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
5117         behavior.
5118         * tests/m4sugar.at (m4@&t@_do): New test.
5120         Optimize m4_for.
5121         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
5122         (_m4_for): Take additional parameter, for fewer m4_indir calls.
5123         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
5124         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
5125         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
5126         semantic change caused by the optimization.
5127         * tests/m4sugar.at (M4 loops): Test the new semantics.
5129         One more m4_list_cmp tweak.
5130         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
5131         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
5132         * tests/m4sugar.at (recursion): Test both directions of list
5133         disparity.
5135         Add m4_reverse, and improve m4_list_cmp.
5136         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
5137         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
5138         m4_reverse'd list.
5139         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
5140         counterpart.
5141         * tests/m4sugar.at (recursion): Test it.
5142         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
5143         it.
5144         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
5145         * NEWS: Mention new macro.
5147 2008-07-28  Eric Blake  <ebb9@byu.net>
5149         Avoid _m4_shiftn for m4 1.6 speedup.
5150         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
5151         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
5152         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
5154         Implement O(n) unique element set creation.
5155         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
5156         (m4_set_contains, m4_set_contents, m4_set_delete)
5157         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
5158         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
5159         (m4_set_size, m4_set_union): New macros.
5160         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
5161         m4 1.4.x.
5162         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
5163         new m4_set API for the set most likely to be large.
5164         * doc/autoconf.texi (Set manipulation Macros): New node.
5165         * NEWS: Mention new macros.
5166         * tests/m4sugar.at (m4@&t@_set): New test.
5168 2008-07-25  Eric Blake  <ebb9@byu.net>
5170         Avoid infinite aclocal loop.
5171         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
5172         that aclocal doesn't insist on finding m4sugar/foreach.m4.
5174         Provide O(n) replacement macros for M4 1.4.x.
5175         * lib/m4sugar/foreach.m4: New file.
5176         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
5177         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
5178         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
5179         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
5180         linear on 1.4.x].
5181         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
5182         older M4 is assumed.
5183         (m4_map_sep): Optimize.
5184         (m4_max, m4_min): Refactor, by adding...
5185         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
5186         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
5187         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
5188         file.
5189         * tests/m4sugar.at (M4 loops): Add a stress test that takes
5190         forever if m4_foreach and friends are quadratic.
5191         * NEWS: Mention this.
5193 2008-07-21  Eric Blake  <ebb9@byu.net>
5195         Ignore undefined macros, necessary with m4 1.6.
5196         * bin/autoupdate.in (_au___undefine): New macro,...
5197         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
5198         Reported by Ralf Wildenhues.
5200         Resync with gnulib.
5201         * GNUmakefile: Grab from upstream, to fix issue where 'make
5202         install' would allow installation of stale version string.
5204 2008-07-19  Eric Blake  <ebb9@byu.net>
5206         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
5207         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
5208         through all variables, per POSIX and newer m4.
5209         (_m4_text_wrap): Exploit the looping capabilities.
5210         * tests/m4sugar.at (m4@&t@_defn): Test this.
5211         * NEWS: Document it.
5212         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
5213         <m4_undefine>: Likewise.
5215         Reduce overhead of m4_builtin([defn]).
5216         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
5217         internal macros, which are slightly more efficient than
5218         m4_builtin([defn]) and company.
5219         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
5220         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
5221         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
5222         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
5223         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
5224         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
5225         (m4_version_prereq): Use them.
5227         Use warnings from m4 when available.
5228         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
5229         define slower wrapper if m4 will warn on our behalf; key off of
5230         __m4_version__, added alongside the new warnings in m4 1.6.
5231         * tests/m4sugar.at (m4@&t@_defn): New test.
5233 2008-07-18  Eric Blake  <ebb9@byu.net>
5235         Add m4_joinall.
5236         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
5237         * tests/m4sugar.at (m4@&t@_join): Test them.
5238         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
5239         m4_joinall.
5240         * NEWS: Likewise.
5242 2008-07-17  Stepan Kasal  <skasal@redhat.com>
5243         and Eric Blake  <ebb9@byu.net>
5245         Improve documentation of config.h.in template rules.
5246         * doc/autoconf.texi (Header Templates): Mention rules on comments
5247         and whitespace, and that the user cannot rely on #undef to survive
5248         through config.status.
5250 2008-07-16  Eric Blake  <ebb9@byu.net>
5252         Revert m4_prepend; it is less efficient, and unused by bison.
5253         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
5254         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
5255         (_m4_grow_uniq_1): Rename back...
5256         (_m4_append_uniq): ...to this.
5257         * NEWS: Revert NEWS blurb.
5258         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
5259         * tests/m4sugar.at (m4@&t@_prepend): Delete.
5261 2008-07-15  Eric Blake  <ebb9@byu.net>
5263         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
5264         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
5265         definition for non-Autoconf clients of m4sugar.
5267 2008-07-14  Eric Blake  <ebb9@byu.net>
5269         Tighten bound of potential speed of m4_append.
5270         * doc/autoconf.texi (Text processing Macros) <m4_append>
5271         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
5272         O(n log n).
5273         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
5274         Analysis by Bruno Haible.
5276 2008-07-11  Eric Blake  <ebb9@byu.net>
5278         Inherit improvements from bison's fork of m4sugar.
5279         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
5280         find version.texi, since bison does not provide it.
5281         (m4_prepend): Add new macro, from bison.
5282         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
5283         completeness.
5284         (_m4_append_uniq): Rename...
5285         (_m4_grow_uniq_1): ...to this to share implementation, and
5286         optimize initial assignment.
5287         (m4_append_uniq_w): Adjust caller.
5288         * NEWS: Document new macros.
5289         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
5290         speed consideration.
5291         <m4_prepend>: Document the new prepend variants.
5292         * tests/m4sugar.at (m4@&t@_prepend): New test.
5294         Work around M4 1.6 warning on undefined macros.
5295         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
5296         not already available as builtins.
5298 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5300         * doc/autoconf.texi (@dvar): Remove trailing newline.
5301         (@ovar): Likewise.  Fix macro documentation.
5303 2008-07-02  Stepan Kasal  <skasal@redhat.com>
5305         Add quotes to the header of autoscan-generated source.
5306         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
5308 2008-06-28  Andreas Schwab  <schwab@suse.de>
5310         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
5311         (autoconf Invocation): Likewise.
5312         (autoreconf Invocation): Likewise.
5313         (autoheader Invocation): Likewise.
5314         (autom4te Invocation): Likewise.
5316 2008-06-19  Eric Blake  <ebb9@byu.net>
5318         Add comment explaining recent patch.
5319         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
5320         of * vs. ? globbing.
5322 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5324         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
5325         linking a file to itself.
5326         Report by Bruno Haible.
5328 2008-06-19  Eric Blake  <ebb9@byu.net>
5330         Resync with gnulib.
5331         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
5332         Reported by Stepan Kasal.
5334 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5336         Reorganize autotest files, factorize for parallel execution.
5337         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
5338         earlier in the file.
5339         (AT_INIT): Create line number cache in
5340         $at_suite_dir/at-source-lines.
5341         <at_helper_dir>: New directory at-groups below $at_suite_dir.
5342         Add comment explaining the new directory structure.
5343         (at_func_group_prepare, at_func_group_postprocess): New shell
5344         functions to factorize per-test group work.  Keep the actual
5345         test execution outside of a shell function in order to avoid
5346         zsh 4.x exit status bugs.
5347         <at_check_line_file, at_status_file, at_stdout, at_stder1>
5348         <at_stderr, at_test_source>: Turn these into per-group files
5349         below $at_helper_dir.  Also store test results there in files
5350         named pass, fail, xpass, xfail, skip.  Let the parent collect
5351         results from $at_helper_dir.  Adjust summary statistics
5352         computation and result output.
5354 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5356         Fix '#undef variable /* comment */' transform in config headers.
5357         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
5358         undefined preprocessor macros that are followed by a comment
5359         in the header template, do not create nested comments in the
5360         output.
5361         * tests/torture.at (@%:@define header templates): Extend test.
5362         * NEWS: Update.
5363         Report by Karsten Hopp <karsten@redhat.com>.
5365 2008-06-09  Eric Blake  <ebb9@byu.net>
5367         Mark AC_TYPE_SIGNAL as obsolete.
5368         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
5369         * doc/autoconf.texi (Function Portability): Update documentation.
5370         (Particular Types): Move AC_TYPE_SIGNAL...
5371         (Obsolete Macros): ...here, and mention why.
5372         * NEWS: Mention the change.
5374         Allow lib64 as a default X library location.
5375         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
5376         * NEWS: Mention the change.
5377         * THANKS: Update.
5378         Reported by Brad Walker.
5380 2008-06-05  Eric Blake  <ebb9@byu.net>
5382         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
5383         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
5384         converting it to lower case.
5385         * tests/autotest.at (Keywords and ranges): Test this.
5386         * NEWS: Document the fix.
5387         * THANKS: Update.
5388         Reported via Karsten Hopp, by Jochen Schmitt in
5389         https://bugzilla.redhat.com/show_bug.cgi?id=449973
5391 2008-06-03  Eric Blake  <ebb9@byu.net>
5393         Fix 'make dist' regression from 2008-05-08.
5394         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
5395         GNUmakefile's _autoconf rule removes INSTALL.
5397 2008-05-27  Eric Blake  <ebb9@byu.net>
5399         Document Solaris /bin/sh redirection pitfall.
5400         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
5402 2008-05-14  Eric Blake  <ebb9@byu.net>
5404         Improve documentation of ! issues.
5405         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
5406         Reported by Noah Misch.
5408         Document some FreeBSD shell bugs.
5409         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
5410         in compound pipe commands.
5411         <export>: Mention difference of exporting an undefined variable.
5412         (Shell Functions): Mention loss of $? in entry to shell functions.
5413         Extracted from the git mailing list.
5415 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
5417         Work around MSYS and Cygwin bugs when dealing with trailing space.
5418         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
5419         even when platform bugs are tickled.
5420         Reported by Keith Marshall and Eric Blake.
5422 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5424         Let AC_MSG_FAILURE report pwd.
5425         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
5426         Output $ac_pwd along with fatal failure.
5427         * tests/torture.at (Deep Package): Extend test.
5428         Reported numerous times against GCC, and probably other packages.
5430 2008-05-12  Eric Blake  <ebb9@byu.net>
5432         Enforce --help and --version compliance.
5433         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
5435 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
5437         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
5438         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
5439         ($(abs_srcdir)/INSTALL): ...with this.
5441 2008-05-06  Eric Blake  <ebb9@byu.net>
5443         Fix typo.
5444         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
5446         Avoid overfull \hbox.
5447         * doc/autoconf.texi (Versioning): Reword to fit line size.
5449         Document $(( )) pitfalls.
5450         * doc/autoconf.texi (Shell Substitutions): Mention octal
5451         vs. decimal.  Mention autotest's at_func_arith.
5453         Improve behavior of './testsuite 01'.
5454         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
5455         Alter usage to eval its arguments, in order to normalize away
5456         leading zero.  All callers updated.
5457         * tests/autotest.at (Keywords and ranges): Test range
5458         normalization with leading 0.
5460 2008-04-26  Eric Blake  <ebb9@byu.net>
5462         Mention Solaris /usr/ucb/tr pitfall.
5463         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
5464         Reported by Bruno Haible and Jim Meyering.
5466 2008-04-24  Eric Blake  <ebb9@byu.net>
5468         Mention m4sugar's internal quote strings.
5469         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
5470         in m4sugar, and how to still output it literally.
5471         * tests/m4sugar.at (m4@&t@_split): And test it.
5472         Reported by Joel E. Denny.
5474 2008-04-23  Eric Blake  <ebb9@byu.net>
5476         Allow unbalanced () in m4_expand.
5477         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
5478         quotes.
5479         (m4_noquote, _m4_split): Use consistent complex quote.
5480         * tests/autotest.at (Left paren, Right paren): Test this.
5481         (Parentheses): Ensure new quadrigraphs still work.
5482         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
5483         * NEWS: Mention the fix.
5484         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
5485         require quadrigraphs for ().
5486         (Evaluation Macros) <m4_expand>: Relax the restriction against
5487         unbalanced ().
5488         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
5489         (Writing Testsuites) <AT_SETUP>: Likewise.
5490         Reported by Joel E. Denny, fix suggested by Noah Misch.
5492 2008-04-22  Eric Blake  <ebb9@byu.net>
5494         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
5495         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
5496         (handle_traces): Likewise.
5497         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
5498         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
5499         * doc/autoconf.texi (Quadrigraphs): Document them.
5500         (Evaluation Macros) <m4_expand>: Enhance documentation.
5501         (Text processing Macros) <m4_text_box>: Document cases where
5502         quadrigraphs can help for problemetic unbalanced parentheses.
5503         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
5504         (Writing Testsuites) <AT_SETUP>: Likewise.
5505         (Limitations of Builtins) <case>: Consolidate text on unbalanced
5506         parentheses, and add an example of creative comments.
5507         * NEWS: Document the addition.
5508         Reported by Joel E. Denny.
5510 2008-04-16  Eric Blake  <ebb9@byu.net>
5512         Document pdksh exec behavior.
5513         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
5514         subsection.
5515         Discovered by Jim Meyering.
5517 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5519         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
5520         arguments to the inner suite.
5521         (errexit, input from stdin): New tests.
5523 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5525         * NEWS: Post-release update.
5527 2008-04-10  Eric Blake  <ebb9@byu.net>
5529         AC_AUTOCONF_VERSION might contain arbitrary macro names.
5530         * doc/autoconf.texi (Versioning): Mention problem with expansion.
5531         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
5533 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
5535         Flush buffered output before exit.
5536         * bin/autom4te.in (handle_output): Explicitly close file.
5537         * THANKS: Update.
5538         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
5540 2008-04-08  Eric Blake  <ebb9@byu.net>
5542         Generate web docs for 2.62.
5543         * doc/autoconf.texi (Evaluation Macros): Fix typo.
5544         (Notices): Use recommended means to escape RCS keyword.
5545         * cfg.mk (gnulib_dir): New macro.
5546         (web-manual): New target.
5548 2008-04-05  Eric Blake  <ebb9@byu.net>
5550         Release Version 2.62.
5551         * NEWS: Mention the release.
5553 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
5554         and Eric Blake  <ebb9@byu.net>
5556         Return back to GPLv2+, until the text of the exceptions is
5557         finalized, reverting the change from 2007-07-03 and the first
5558         part of the change from 2007-07-20.
5559         * COPYING: Revert to GPLv2.
5560         * COPYINGv3: New file, since some auxiliary build tools, used for
5561         building autoconf and not installed, are GPLv3.
5562         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
5563         * NEWS: Remove mention of GPLv3.
5564         * README: Clarify situation regarding GPLv3.
5566 2008-04-05  Eric Blake  <ebb9@byu.net>
5568         Prepare for release.
5569         * maint.mk (announcement): Avoid deleted option.
5570         * cfg.mk (release_archive_dir): Use default.
5571         * build-aux/gnupload: New file, from automake/gnulib.
5572         * Makefile.am (EXTRA_DIST): Distribute it.
5573         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
5574         from syntax check.
5576 2008-04-05  Jim Meyering  <meyering@redhat.com>
5577         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5579         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
5580         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
5581         is the EOL marker, skip a step that would remove and translate
5582         carriage return bytes.
5583         * THANKS: Update.
5584         Reported by Elbert Pol.
5586 2008-04-05  Eric Blake  <ebb9@byu.net>
5588         Avoid some autoreconf -Wall warnings.
5589         * configure.ac: Use proper quoting, to be a good example.
5590         (PACKAGE_NAME): Remove setting covered by autoconf.
5591         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
5592         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
5593         automake.
5594         (html, autoconf_1.html, standards_1.html): Likewise.
5595         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
5596         * Makefile.am (html): Likewise.
5597         * doc/autoconf.texi (Quoting and Parameters): Add missing section
5598         name.
5599         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
5600         warning about our override, until Automake is fixed.
5601         * README-hacking: Document minimum requirements for bootstrap.
5603 2008-04-03  Eric Blake  <ebb9@byu.net>
5605         Fix version number generation in man pages.
5606         * Makefile.am (EXTRA_DIST): Distribute .version.
5607         (.version): New rule.
5608         * man/Makefile.am (common_dep): Depend on .version, not
5609         configure.ac.
5610         (.x.1): Use package name for version string.
5611         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
5612         * build-aux/git-version-gen: Sync from upstream.
5614         More maintainer tweaks: pass 'make maintainer-distcheck'.
5615         * GNUmakefile (_is-dist-target): Sync from upstream.
5616         * build-aux/vc-list-files: Sync from upstream, yet again.
5617         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
5618         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
5619         package.m4.
5620         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
5622         Fix VPATH 'make syntax-check'.
5623         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
5624         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
5625         (author_mark_check): Avoid error message.
5626         * build-aux/vc-list-files: Sync from upstream again.
5627         * build-aux/texinfo.tex: Likewise.
5629         Sync files from upstream, and pass 'make syntax-check'.
5630         * config/announce-gen: Move...
5631         * build-aux/announce-gen: ...here, and sync from gnulib.
5632         * Makefile.am (EXTRA_DIST): Adjust accordingly.
5633         * cfg.mk (announce_gen): Likewise.
5634         (prev_version_file): Delete, relying on default in maint.mk.
5635         (gpg_key_ID): New macro.
5636         (url_dir_list): Rewrite to match coreutils.
5637         * config/prev-version.txt: Move...
5638         * .prev-version: ...here, and adjust to 2.61.
5639         * build-aux/vc-list-files: Sync from coreutils.
5640         * maint.mk: Resynchronize with coreutils, where possible.
5641         (ME): Remove $(srcdir) from definition.
5642         (CVS): Delete.
5643         (GIT, VC, VC-tag): New macros.
5644         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
5645         (VC_LIST, VC_LIST_EXCEPT): ...to this.
5646         (cvs-tag-check): Delete.
5647         (cvs-diff-check): Rename...
5648         (vc-diff-check): ...to this.
5649         (sc_file_system): Allow FHS acronym.
5650         * doc/autoconf.texi (Particular Functions): Recommend
5651         unconditional <config.h>.
5652         * build-aux/config.guess: Sync from upstream (manually).
5653         * build-aux/config.sub: Likewise.
5654         * build-aux/texinfo.tex: Likewise.
5655         * doc/make-stds.texi: Likewise.
5656         * doc/standards.texi: Likewise.
5657         * .gitattributes: Ignore whitespace problems in upstream files.
5659 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5661         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
5662         bug on HP-UX/IA.
5663         Report by Peter O'Gorman.
5665 2008-04-02  Eric Blake  <ebb9@byu.net>
5667         Recommend the just-released M4 1.4.11.
5668         * NEWS: Update recommendation.
5669         * README: Likewise.
5670         * doc/autoconf.texi (Introduction): Likewise.
5671         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
5673 2008-04-01  Eric Blake  <ebb9@byu.net>
5675         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
5676         copyright year.
5678 2008-03-28  Peter O'Gorman  <peter@pogma.com>
5680         Find X11 on Mac OS X too.
5681         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
5682         Check for libX11 with extensions dylib la and dll too.
5683         * THANKS: Update.
5684         Reported by Martin Costabel.
5686 2008-03-28  Eric Blake  <ebb9@byu.net>
5688         Update TODO based on completed tasks.
5689         * TODO (AC_PROG_INSTALL takes multiple files): Done.
5690         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
5691         (AC_COMPILE_IFELSE documentation): Done.
5692         (Tracing builtins): Done, now that we require M4 1.4.5.
5693         (AC_PROG_CC_POSIX suggestion, providing header files)
5694         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
5695         (cache consistency): Done with precious variables.
5697 2008-03-26  Eric Blake  <ebb9@byu.net>
5699         Document --trace=macro:format in --help output.
5700         * bin/autom4te.in (help): Mention optional trace format.
5701         * bin/autoconf.as (usage): Likewise.
5703         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
5704         typos in last patch.
5705         Reported by Ralf Wildenhues.
5707 2008-03-26  Jim Meyering  <meyering@redhat.com>
5709         Fix texinfo syntax error.
5710         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
5712 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5714         Warn, not fail on whitespace-only precious variable differences.
5715         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
5716         precious variable differences less ambiguous with `ugly-quotes'.
5717         If their settings differ only in whitespace, do not fail, but
5718         reuse the old value.
5719         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
5720         an optional status and expected-warning argument.  Fix m4
5721         quotation for initial value.
5722         (AC_ARG_VAR): Also test for whitespace-only differences, and
5723         that the old value is retained in this case.
5724         * doc/autoconf.texi (Setting Output Variables): Document this.
5725         * NEWS: Update.
5726         Report and initial patch by Paolo Bonzini.
5728 2008-03-26  Eric Blake  <ebb9@byu.net>
5730         Document busybox sed bug.
5731         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
5732         restrictions when using back-references.
5733         Reported by Vincent Lefevre:
5734         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
5736         Document Automake interaction with AC_CONFIG_MACRO_DIR.
5737         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
5738         users.
5739         * THANKS: Update.
5740         Reported by Chris Pickett.
5742 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5744         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
5746         * tests/local.at (AT_CHECK_M4): Factorize warning output
5747         normalization.
5748         Suggested by Eric Blake.
5750 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5752         Fix .exe-related test failure on MinGW.
5753         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
5754         for comparing warning output.
5756         Fix Fortran testsuite failures with gfortran 4.3.
5757         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
5758         verbose compiler output, skip lines that set variables; gfortran
5759         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
5760         * THANKS: Update.
5761         Report by Vincent Lefèvre.
5763 2008-03-21  Eric Blake  <ebb9@byu.net>
5765         * GNUmakefile: Resynchronize with gnulib.
5767         Document more uses of $cross_compiling.
5768         * doc/autoconf.texi (Runtime): Document that a temporary override
5769         is permissible.
5770         * THANKS: Update.
5771         Reported by Ineiev, example by Ralf Wildenhues.
5773         Don't swallow $1 in textual local variables.
5774         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
5775         expansion of text arguments, as that swallows $1.
5776         (m4_text_wrap): Likewise, by splitting out...
5777         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
5778         expression for width.
5779         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
5780         (m4@&t@_combine): Likewise.
5782 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5784         Avoid leftover files on Leopard.
5785         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
5786         directory created on darwin.
5787         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
5788         left over from a broken link.
5789         * tests/c.at (AC_NO_EXECUTABLES (working linker))
5790         (AC_NO_EXECUTABLES (broken linker)): New tests.
5791         Report by Gary V. Vaughan.
5793         * lib/autom4te.in (Automake-preselections): Trace
5794         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
5796 2008-03-20  Eric Blake  <ebb9@byu.net>
5798         Kill more CVS references.
5799         * README-cvs: Delete.  See README-hacking instead.
5800         * README-hacking: Update wording, based on older file.
5801         * BUGS: Remove CVS mention.
5803 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5805         * tests/tools.at (autotools and whitespace in file names): Skip
5806         if aclocal is not present.
5808 2008-03-20  Eric Blake  <ebb9@byu.net>
5810         Sync GNUmakefile with gnulib.
5811         * GNUmakefile (Makefile.cfg): Rename...
5812         (cfg.mk): ...to this, and make optional.
5813         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
5814         (Makefile.maint): Rename...
5815         (maint.mk): ...to this.
5816         (all) [!_have-Makefile]: Rename...
5817         (abort-due-to-no-makefile): ...to this, and invoke via
5818         .DEFAULT_GOAL to pick up all targets.
5819         * Makefile.cfg: Rename...
5820         * cfg.mk: ...to this.
5821         * Makefile.maint: Rename...
5822         * maint.mk ...to this.
5823         (ME): Reflect name change.
5824         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
5825         rather than hard-coded name.
5826         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
5827         * Makefile.am (EXTRA_DIST): Reflect file name changes.
5828         * .x-sc_prohibit_atoi_atof: Likewise.
5829         * lib/freeze.mk: Likewise.
5831 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
5833         * doc/autoconf.texi (Introduction): Improve the paraphrase of
5834         Henry Spencer's quotation.
5836 2008-03-19  Eric Blake  <ebb9@byu.net>
5838         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
5839         * bin/autoscan.in (output): Avoid obsolete spelling.
5840         * tests/local.at (AC_STATE_SAVE): Update usage.
5841         * THANKS: Update.
5842         Reported by John Calcote.
5844         Emphasize that ease of configure triumphs over ease of autoconf.
5845         * doc/autoconf.texi (Introduction): Expand on primary
5846         vs. secondary goal of autoconf.
5847         * THANKS: Update.
5848         Inspired by Paul Smith.
5850 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5852         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
5853         $hint, show if the executing program does not exist.
5854         (xsystem_hint): New function, like xsystem but allows to pass
5855         a hint.
5856         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
5857         libtoolize.
5858         Report by Bruce Korb.
5860 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
5862         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
5863         tests/mktests.sh, tests/wrapper.as: Fix typos.
5865 2008-03-12  Eric Blake  <ebb9@byu.net>
5867         Fix yesterday's regression in m4_wrap([$1]).
5868         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
5869         text, since it may contain text that looks like parameters.
5870         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
5872 2008-03-11  Eric Blake  <ebb9@byu.net>
5874         Improve error messages for common testsuite bugs.
5875         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
5876         macros for defining order-enforced macros.
5877         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
5878         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
5879         messages when order violations are detected.
5880         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
5881         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
5882         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
5883         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
5884         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
5885         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
5886         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
5887         (Banner-only test suite): New tests.
5888         Reported by Christopher Hulbert.
5890         Tweak m4_wrap to force FIFO or LIFO semantics.
5891         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
5892         (m4_wrap_lifo, _m4_wrap): New macros.
5893         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
5894         order, prior to m4sugar's.
5895         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
5896         m4_wrap.
5897         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
5898         known order, prior to m4sh's.
5899         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
5900         argument.
5901         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
5902         new behavior.
5903         * tests/m4sh.at (AS_INIT cleanup): New test.
5904         * NEWS: Document the change.
5906 2008-03-10  Eric Blake  <ebb9@byu.net>
5908         Encode nested autotest data.
5909         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
5910         (unusual file names): Likewise.
5911         (m4_pattern_allow): Remove loophole, to make it easier to catch
5912         poorly written tests.
5914         Factor some autotest tests.
5915         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
5916         common initialization.
5917         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
5918         (whitespace in absolute testdir, unusual file names): Use it.
5920 2008-03-06  Eric Blake  <ebb9@byu.net>
5922         Minor documentation fix.
5923         * doc/autoconf.texi (Evaluation Macros): Fix typo.
5925 2008-03-04  Eric Blake  <ebb9@byu.net>
5927         Make AT_CHECK act like a simple command.
5928         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
5929         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
5931 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5933         On MinGW, substitution of CR and 0xFF fails.
5934         * tests/torture.at (Substitute and define special characters):
5935         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
5936         wrong thing for CR.
5938 2008-03-04  Eric Blake  <ebb9@byu.net>
5940         Pull in recent maintainer improvements from coreutils.
5941         * GNUmakefile (_is-dist-target): 'make distclean' should not
5942         trigger autoreconf.
5943         (_dummy): Change directories before removing autom4te.cache.
5944         (check dist distcheck install) [!_have-Makefile]: Provide nicer
5945         diagnostics.
5946         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
5947         builds, after initial bootstrap.
5948         * Makefile.am (distclean-local): Work around current automake bug.
5949         * Makefile.maint (ME): Allow VPATH usage.
5951         Use git-merge-changelog when available.
5952         * .gitattributes: New file.
5953         * README-hacking: Document use of git-merge-changelog.
5955         Work around cygwin bug.
5956         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
5957         "touch 't\'" creates regular file 't'.
5959         Ignore tests that require read-only directories under root.
5960         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
5961         no-write portion if user has root-like privileges.
5963 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5965         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
5967 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5969         autoreconf -m now honors $MAKE.
5970         * bin/autoreconf.in ($run_make): Renamed from ...
5971         ($make): ... this.  Use now as command to run `make',
5972         overridden by $MAKE.  Document this in --help output.
5973         * doc/autoconf.texi (autoreconf Invocation): Document
5974         all environment variables honored by autoreconf.
5975         * NEWS: Update.
5976         Report by Paul Eggert.
5978 2008-03-03  Eric Blake  <ebb9@byu.net>
5980         Documentation improvements.
5981         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
5982         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
5983         that preceeds @dots.  Improve wording.
5984         (Text processing Macros): Drop `1' suffix from metasyntax variable
5985         name that preceeds @dots.
5986         (Number processing Macros): Drop `1' suffix from metasyntax
5987         variable name that preceeds @dots.  Improve wording.
5988         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
5989         Suggested by Ralf Wildenhues.
5991 2008-03-02  Jim Meyering  <meyering@redhat.com>
5993         Don't infloop upon "make dist".
5994         * GNUmakefile: Merge from coreutils.
5995         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
5996         not .version.
5997         * configure.ac (AC_INIT): Use .tarball-version, not .version.
5998         * build-aux/git-version-gen: Update from gnulib.
6000 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6002         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6003         Before using /dev/full, check that it is a writable character
6004         special device.
6005         Report by Benoit Sigoure and Eric Blake.
6007         Actually test that @configure_input@ is expanded correctly.
6008         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6009         Actually check generated file contents for the name of the
6010         generated file, using AC_PROG_FGREP and $FGREP.
6012 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6014         Be nice with file systems that don't handle unusual characters.
6015         * tests/atlocal.in (func_sanitize_file_name)
6016         (func_sanitize_dir_name): New shell functions.
6017         * tests/tools.at (autom4te and whitespace in file names)
6018         (autotools and whitespace in file names): Use them.
6019         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6020         Cover more potentially problemtic file names.  Use the new
6021         functions.
6023         Properly handle funny file names for headers in config.status.
6024         The test suite did not cover this bug because the code was not
6025         quoting properly the arguments of `rm -f' (which "fails" silently)
6026         as well as the arguments of `diff' (whose output was redirected to
6027         /dev/null so we couldn't see its error message).
6028         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
6029         file names passed to `rm' and `diff'.
6030         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6031         Add a regression test.
6033 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
6034         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6036         Properly expand @configure_input@ in config.status.
6037         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
6038         Escape the backslashes and ampersands in $configure_input before
6039         using it in the sed replacement string to expand @configure_input@.
6040         Report by Eric Blake and Patrick Welche.
6042 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6044         Ignore errors from ./run on w32.
6045         * tests/autotest.at (whitespace in absolute testdir):
6046         Ignore stderr for `./run' which fails to remove the
6047         busy test directory on w32.
6049 2008-02-22  Eric Blake  <ebb9@byu.net>
6051         Improve documentation for writing autotest suites.
6052         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
6053         checks must live inside a test group.
6054         Reported by Christopher Hulbert.
6056 2008-02-21  Eric Blake  <ebb9@byu.net>
6058         Sync git-version-gen from upstream.
6059         * build-aux/git-version-gen: Pull from gnulib.
6060         * configure.ac (AC_INIT): Adjust to new calling convention.
6062 2008-02-12  Eric Blake  <ebb9@byu.net>
6064         Avoid trailing space in config.h with AC_DEFINE([var], []).
6065         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
6066         defines with a comment.
6068 2008-02-08  Eric Blake  <ebb9@byu.net>
6070         Fix texinfo typos in previous patch.
6071         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
6072         Reported by Ralf Wildenhues.
6074         Describe a config.site that can be used for FHS compliance.
6075         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
6076         for FHS.
6077         * THANKS: Update.
6078         Reported by Jules Colding and Ralf Wildenhues.
6080 2008-02-02  Eric Blake  <ebb9@byu.net>
6082         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
6084 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6086         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
6087         again, broken since introduction of `-C dir'.
6088         * tests/autotest.at (Choosing where testsuite is run): Test it.
6090 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6092         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
6094 2008-01-29  Eric Blake  <ebb9@byu.net>
6096         Fix more autotest regressions.
6097         * lib/autotest/general.m4 (AT_LINE): Fix regression from
6098         2007-10-04 when file name is `dnl'.
6099         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
6100         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
6101         yesterday in libtool's testsuite.
6102         (_AT_ARG_OPTION): Detect write failure.
6103         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
6104         make libtool's use kosher.  Document m4_init.
6105         (Programming in M4sh): Document AS_INIT.
6106         (Writing Testsuites): Document limitation of AT_DATA file name.
6107         * tests/autotest.at (unusual file names): New test.
6108         (Banners, Keywords and ranges): Use correct shell.
6110         More corner cases in testsuite VAR=VALUE handling.
6111         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
6112         bug.
6113         <PARSE_ARGS_END>: Also detect leading digits in assignments.
6114         * tests/autotest.at (Using atlocal): Enhance test to catch last
6115         bug.
6117         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
6118         bug.
6120 2008-01-28  Eric Blake  <ebb9@byu.net>
6122         Fix regression in handling VAR=VALUE arguments to testsuite.
6123         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
6124         leading = as invalid.  Defer use of command-line variable
6125         assignments...
6126         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
6127         regression in sourcing files.
6128         * tests/autotest.at (Using atlocal): New test to catch this.
6129         (Debugging a successful test, Choosing where testsuite is run):
6130         Use correct shell.
6131         Reported by Ralf Wildenhues.
6133         Document grep peculiarity.
6134         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
6135         BSD behavior on binary input.
6137         Minor testsuite improvements.
6138         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
6139         forks when sanitizing PATH.  Always output machine information,
6140         not just when atconfig was located.
6142         Add 'testsuite -C dir'.
6143         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
6144         detection...
6145         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
6146         argument.
6147         <DEFAULTS>: Delay computation of variables based on $at_dir...
6148         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
6149         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
6150         <PARSE_ARGS>: Parse new option.
6151         <HELP_TUNING>: Document it.
6152         * tests/autotest.at (Choosing where testsuite is run): New test
6153         for this feature.
6154         (Keywords and ranges): Add test for missing -k argument.
6155         * NEWS: Document this.
6156         * doc/autoconf.texi (testsuite Invocation): Likewise.
6158 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6160         * build-aux/config.guess, build-aux/config.sub,
6161         build-aux/texinfo.tex: Sync from gnulib.
6162         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
6163         Likewise.
6165 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6167         * doc/autoconf.texi (Particular Programs): Do not mention the
6168         Autoconf version in which the AC_PROG_INSTALL change was done.
6169         Suggested by Paul Eggert.
6171 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6173         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
6174         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
6175         mode, we change to the source directory, also set $ac_pwd so we
6176         do not go back to the build tree for the next config subdir.
6177         * tests/torture.at (Deep Package): Extend test to contain two
6178         config subdirs on the top level.
6180         Fix parallel `maintainer-check'.
6181         * Makefile.am (maintainer-check-tests): Depend on `all'.
6182         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
6183         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
6184         Likewise.
6185         (maintainer-check): Serialize the testsuite runs.
6187         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
6188         in feature string for --enable/--with.  Convert to underscore
6189         for variable name.
6191         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
6192         `install -c file1 file2 dir' works.
6193         * doc/autoconf.texi (Particular Programs): Document this.
6194         * NEWS: Update.
6196 2008-01-21  Eric Blake  <ebb9@byu.net>
6198         Improve documentation about default include directives.
6199         * doc/autoconf.texi (Generic Headers, Generic Declarations)
6200         (Generic Structures, Generic Types)
6201         (Generic Compiler Characteristics): Add links to
6202         AC_INCLUDES_DEFAULT.
6203         Reported by Reuben Thomas.
6205 2008-01-15  Eric Blake  <ebb9@byu.net>
6207         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
6209 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6211         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
6212         check_SCRIPTS.  Building the wrappers for `all' allows help2man
6213         to use them for the manpages.
6214         Report by Benoit Sigoure.
6216         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
6218 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6220         Fix some write failure cases in Autotest.
6221         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
6222         upon write failures for --help, --version, --list.
6223         Guard against write failures for intermediate created scripts.
6224         <at_func_create_debugging_script>: Do not make the debugging
6225         script executable if it is not complete.
6227 2007-12-12  Eric Blake  <ebb9@byu.net>
6229         Fix thinko in earlier patch - m4_join isn't defined yet.
6230         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6231         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6232         (m4_require): Use m4_do, not m4_join.
6234         Fix some whitespace tests on cygwin.
6235         * tests/tools.at (autom4te and whitespace in file names): Restore
6236         font-lock.  Create $TMPDIR before it might be used.
6238         Fix spurious testsuite failure with M4 1.4.11.
6239         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
6241         Optimize AC_REQUIRE.
6242         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6243         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6244         (m4_require): Avoid extra macro calls.
6246 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6248         * tests/torture.at (srcdir): Fix quoting.
6250         Do not pass top_srcdir to configure scripts in testsuite.
6251         * tests/autotest.at (srcdir propagation): Copy install-sh to
6252         source tree.
6253         (my only test): Drop setting of `top_srcdir'.
6254         * tests/base.at (Input/Output): Likewise.
6255         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
6256         config.guess, and config.sub to test source tree.
6257         Drop AC_CONFIG_AUX_DIR setting.
6258         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
6259         * tests/torture.at (Substitute a 2000-byte string): Drop
6260         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
6261         (Substitute a newline, datarootdir workaround): Likewise.
6262         (Define a newline): Adjust for linenumber changes in configure.ac.
6263         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
6265         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
6266         if `pwd` contains whitespace.
6268         Quote $abs_top_srcdir in tests.
6269         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
6270         * tests/tools.at (Syntax of the shell scripts): Likewise.
6272         * tests/m4sh.at (LINENO): Quote $0.
6274         Fix testsuite program wrapper for whitespace in `pwd`.
6275         The problem here is that the usual mantra is that command
6276         variables can contain arguments, thus we cannot just escape
6277         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
6278         $top_builddir/tests directory early in $PATH, so that the
6279         wrappers are found by their plain name.
6280         * tests/wrapper.as: Put $testdir early in $PATH.
6281         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
6283         Proper config.status --file/--header and $srcdir escaping.
6284         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
6285         characters in $ac_file_inputs.
6286         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
6287         accordingly.
6288         * tests/torture.at (datarootdir workaround): Adjust.
6289         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
6291         Fix Autotest for whitespace in `pwd`.
6292         * lib/autotest/general.m4 (AT_INIT)
6293         <at_func_create_debugging_script, Driver Loop>:
6294         Quote $at_group_dir.
6295         * tests/autotest.at (whitespace in absolute testdir): New test.
6297         * lib/autom4te.in: Quote @datadir@.
6299         Proper file name escaping in Autoconf programs and Perl modules.
6300         This includes escaping of characters special to the shell
6301         as well as special to Perl, e.g., leading `<' or `>'.
6302         For example, when $file starts with `>', `open ">$file"'
6303         wrongly tries to append to a different file.
6304         * bin/autoconf.as: Fix quoting for autom4te options.
6305         * lib/Autom4te/General.pm (shell_quote): New function, taken
6306         from coreutils, written by Jim Meyering.
6307         (mktmpdir): Use it.
6308         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
6309         and open_quote.
6310         * bin/autoreconf.in (parse_args): Likewise.
6311         * bin/autoscan.in (main): Likewise.
6312         * bin/autoupdate.in (main): Likewise.
6313         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
6314         * bin/ifnames.in: Likewise, XFile usage fixes.
6315         * tests/tools.at (autom4te and whitespace in file names): Extend
6316         test.  Test twice, with special characters allowed on w32, and the
6317         rest.  Test leading and trailing whitespace, for `open_quote'.
6318         (autotools and whitespace in file names): New, analogous test.
6319         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
6320         by Russ Allbery and Eric Blake.
6322         Sync from Automake.
6323         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
6324         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
6325         * lib/Autom4te/FileUtils.pm (open_quote): New function.
6326         (update_file, contents): Use it.
6328         * Makefile.am (autom4te-update): Rewrite for git.
6330 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6332         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
6334         Fix copyright years.
6335         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
6336         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
6338 2007-12-04  Eric Blake  <ebb9@byu.net>
6340         Manually resync with gnulib, since 'make cvs-update' no longer works.
6341         * build-aux/config.guess: New upstream version.
6342         * build-aux/config.sub: Likewise.
6344         When using older automake, don't downgrade build-aux/texinfo.tex.
6345         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
6346         * doc/Makefile.am (TEXINFO_TEX): Add.
6348 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6350         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
6351         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
6352         #undef as this runs afoul of our new way of creating config.h.
6353         Problem reported by Jim Meyering in
6354         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
6356 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6358         Fix autom4te for unusual characters in input file names.
6359         * bin/autom4te.in (files_to_options): Quote active characters
6360         for the shell.
6361         * tests/tools.at (autom4te and white space in file names):
6362         New test.
6364         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
6365         Document that Tru64 awk always splits $0.
6367 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
6369         * lib/autotest/general.m4 (AT_INIT): Do not extract the
6370         `#AT_STOP_...' line at the end of each test.
6372 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6374         * lib/autotest/general.m4 (AT_INIT): For awk line number
6375         extraction script, ensure `$at_group' has a defined value
6376         even for the empty set, and properly quote its usage inside
6377         the awk script.
6379 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6381         * doc/autoconf.texi (Shell Functions): New chapter.  Document
6382         IRIX sh $0 issue in functions, move content from ...
6383         (Portable Shell): ... here.
6384         (Shell Script Compiler): Note that shell functions are not
6385         totally unportable any more.
6387 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
6388         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6390         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
6391         extracting the line numbers of the last needed test.
6393 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6395         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
6396         Fix quoting.
6398 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6400         Fix IRIX testsuite debugging failures: $0 in functions.
6401         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
6402         Do not use $0 inside a function, as IRIX sh will set that to the
6403         function name rather than the script invocation name.
6405 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
6406         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6408         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
6409         to extract test scripts.
6410         (AT_INIT): Extract and cache test script line numbers.
6412 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6414         * lib/autotest/general.m4: Revert 2007-11-15 patch and
6415         subsequent fixups; the awk -> here-document conversion trashes
6416         performance too much with AIX sh.
6418 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6420         * tests/local.at: Do not test m4, perl with AT_TESTED.
6422         Diagnose and guard against write errors dealing with config.status.
6423         The general idea is this: all write failures from `configure'
6424         writing `config.status' are indicated by $ac_write_error, which
6425         is only checked at the end.  This is safe because config.status
6426         code is not executed before the file is complete.  Other write
6427         failures, be they inside config.status, or in sub shell/awk
6428         scripts spawned from configure or config.status, typically need
6429         earlier checking, as their results are used right afterwards.
6430         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
6431         before writing config.status, check afterwards.
6432         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
6433         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
6434         Set `ac_write_error' for write failures to config.status.  Barf
6435         upon write failures to temporary files.
6436         Adjust note about closing and reopening the here-document.
6437         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
6438         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
6439         reopening the here-document.
6440         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6441         Ensure `ac_write_error' does not escape into config.status.
6442         Also, add a couple of code paths not yet exercised in the test
6443         suite: a config file with input from stdin, and a config header
6444         output to stdout.
6445         Suggestion for catching write errors by Bruno Haible.
6447 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6449         Avoid error with Tru64 awk and testsuite lines with many words.
6450         * lib/autotest/general.m4 (AT_INIT): In the awk script that
6451         reads the testsuite, set the field separator to an unusual value,
6452         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
6453         even splits the input if $i, i>0, was never accessed in the script.
6455         Revert 2007-10-17 change.
6456         * TODO: Multiline args in config files and headers mean something
6457         different and are not fixed, see
6458         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
6459         Report by Stepan Kasal.
6461         * doc/autoconf.texi (Generic Programs): Fix typo.
6463 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
6465         AC_*_TOOL does not canonicalize the prefix
6466         * doc/autoconf.texi (Generic Programs): Do not say that
6467         the *_TOOL macros canonicalize, they simply use the `host_alias'.
6469 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6471         Diagnose write errors in config.status instantiations.
6472         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
6473         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
6474         on write errors.
6475         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6476         Extend test to also check for some write error failures, using...
6477         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
6478         Report by Bruno Haible.
6480         Indentation fixups.
6481         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
6482         indentation.
6483         (_AT_CHECK): Use less indentation, to save space.
6485 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6487         Add witness macro for @top_build_prefix@ substitution.
6488         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
6489         (_AC_OUTPUT_FILE): Mention it here.
6491 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
6492         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6494         * lib/autotest/general.m4 (at_func_test): Remove.
6495         (AT_INIT): Pre-extract test groups into separate files.
6496         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
6497         Remove at-test-source files together with the $at_group_dir.
6498         * tests/autotest.at (Long test source lines): New test.
6500 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6502         Shell functions and variables may share a namespace.
6503         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
6504         limitation.
6506 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
6508         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
6509         gnulib.
6511 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6513         * lib/autoconf/status.m4: Fix a couple of comment typos.
6515         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
6517 2007-11-13  Jim Meyering  <meyering@redhat.com>
6519         Clean up the rule to create "expr".
6520         * tests/Makefile.am (expr): Don't redirect directly to target.
6521         Redirect just once, not for each echo statement.
6522         Use $@, not literal "expr".
6524 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6526         Don't worry about preprocessor when testing long long.
6527         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
6528         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
6529         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
6530         These no longer check for preprocessor flaws.
6531         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
6532         Do not check for preprocessor flaws.
6534 2007-11-13  Jim Meyering  <meyering@redhat.com>
6536         Adapt dependencies, now that a version change doesn't modify configure.ac
6537         * GNUmakefile: Remove "make clean" kludge.
6538         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
6539         configure.ac.
6540         Don't redirect directly to target.
6541         Use $@, not literal "version.m4".
6543 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6545         * doc/autoconf.texi (Making testsuite Scripts): Document
6546         ":;{" shorthand as in previous patch.
6548 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6550         * doc/autoconf.texi (Limitations of Builtins): Document problem
6551         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
6552         for the workaround.
6553         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
6554         Use ":;{" shorthand.
6555         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
6557 2007-11-12  Jim Meyering  <meyering@redhat.com>
6559         Add more non-srcdir build support.
6560         * GNUmakefile (dummy): Split a long line.
6561         Add -v option to autoreconf invocation.
6563         Remove the autoreconf-provided INSTALL, so that we regenerate it.
6564         * GNUmakefile (dummy): Remove INSTALL.
6566         Remove racy commands to build scripts in bin/ and tests/.
6567         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
6568         are guaranteed to be built, remove the rules that tried to build
6569         them.  Before, with a parallel build, these rules could lead to
6570         two processes writing tests/wrapper.in concurrently.
6572         Build in man/ only *after* building in bin/ and tests/.
6573         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
6574         in both bin/ and tests/.
6576         Accommodate non-srcdir build-from-checkout.
6577         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
6578         Use git's --git-dir=$srcdir/.git option.
6579         Add quotes, in case tarball_version_file contains shell meta-characters.
6580         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
6581         * configure.ac: Pass "." to git-version-gen.
6583         Avoid spurious test failures due to version skew.
6584         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
6586 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6588         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
6589         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
6590         Remove conftest.dSYM directory.
6591         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
6592         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
6593         Remove `conftest.*' recursively.
6594         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
6595         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6596         Likewise.
6597         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
6598         * THANKS: Update.
6599         Report and analysis by Jeff Squyres and Peter O'Gorman.
6601 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
6603         Fix typos in variable names.
6604         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
6606 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
6608         Document that $((expression)) is not portable.
6609         * doc/autoconf.texi (Shell Substitutions): Here.
6611 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6613         Ignore configure --help* errors due to LINENO-impaired shells.
6614         * tests/torture.at (Configuring subdirectories, Deep Package):
6615         In the --help* tests in read-only trees, make `.' temporarily
6616         writable again for the `stderr' file, and ignore errors due to
6617         the attempt to write configure.lineno.
6618         Report by Patrick Welche.
6620 2007-11-10  Jim Meyering  <meyering@redhat.com>
6622         Generate package.m4 in build-dir, not srcdir.
6623         * tests/Makefile.am (package.m4): Adjust target.
6624         Don't redirect directly to $@.
6625         (CLEANFILES): Add package.m4.
6626         ($(TESTSUITE)): Depend on just-built package.m4, not the one
6627         in $(srcdir).
6628         When running $(AUTOTEST), search "." before searching $(srcdir).
6630         Avoid a race condition that would make parallel "distclean" fail.
6631         * tests/Makefile.am (distclean-generic): Replace the default,
6632         automake-provided rule with an identical one, but with an additional
6633         dependency on distclean-local.  Simply adding the dependency would
6634         cause automake not to emit the rule at all.
6635         * BUGS: Building with -jN works, now.
6637         Distribute git-version-gen.
6638         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
6639         since GNUmakefile is distributed, and requires it for dist* rules.
6641         Remove two more generated files from version control.
6642         * INSTALL: Remove generated file.
6643         * lib/autoscan/autoscan.list: Remove generated file.
6645 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6647         * GNUmakefile (PATH): Remove stray apostrophes; they become
6648         part of PATH, which isn't wanted here.
6650 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6652         New config files output variable `top_build_prefix'.
6653         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
6654         `top_build_prefix'.
6655         * doc/autoconf.texi (Preset Output Variables): Document it.
6656         * NEWS: Update.
6657         Report by Bob Friesenhahn.
6659         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
6660         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
6661         function, to parametrize arithmetic with expr vs. the shell.
6662         Use it where possible.
6663         Suggestion by Benoit Sigoure.
6665 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
6667         Adjust the documentation of autotest WRT atlocal.
6668         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
6669         when using Automake, to write a rule to produce atlocal, since it's
6670         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
6671         distributed, not atconfig.in.
6673 2007-11-04  Eric Blake  <ebb9@byu.net>
6675         Update list information.
6676         * README: Mention new autoconf-commit list.
6677         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
6679 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6681         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
6683         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
6685         * build-aux/.gitignore: Ignore mkinstalldirs.
6687         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
6689 2007-11-03  Jim Meyering  <meyering@redhat.com>
6691         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
6692         * build-aux/git-version-gen: This syncs from coreutils.
6694         Adjust the build procedure so "make check" works reliably.
6695         * README-hacking: Include an extra step between "make" and
6696         "make check" to ensure that the latter passes.
6698         Use just-built tools, when possible.
6699         * GNUmakefile (PATH): Set and export here, ...
6700         (dummy): ... rather than here.
6702 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6703         and Andreas Schwab  <schwab@suse.de>
6705         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
6706         exit status bug.
6708 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6710         * configure.ac (AC_PREREQ): Require version 2.60, for
6711         AC_PROG_SED, AC_PROG_GREP.
6713 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
6714         and Jim Meyering  <meyering@redhat.com>
6715         and Andreas Schwab <schwab@suse.de>
6716         and Eric Blake  <ebb9@byu.net>
6718         Document a bug in GNU Bash with compound commands and redirections.
6719         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
6720         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
6721         workaround.
6723 2007-11-03  Eric Blake  <ebb9@byu.net>
6725         Support m4 1.4.5 in testsuite.
6726         * tests/torture.at (Define a newline): Exclude line numbers in
6727         error message.
6728         Reported by Ralf Wildenhues.
6730 2007-11-03  Jim Meyering  <meyering@redhat.com>
6732         Remove automake-provided files from version control.
6733         * build-aux/elisp-comp: Remove file.
6734         * build-aux/install-sh: Remove file.
6735         * build-aux/missing: Remove file.
6736         * build-aux/mdate-sh: Remove file.
6737         * build-aux/.gitignore: New file.
6738         Suggestion from Ralf Wildenhues.
6740 2007-11-03  Eric Blake  <ebb9@byu.net>
6742         Adjust version comparison to account for git snapshot numbers.
6743         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
6744         component separator.
6745         * doc/autoconf.texi (Number processing Macros)
6746         <m4_version_compare>: Document this change.
6747         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
6749 2007-10-30  Bruno Haible  <bruno@clisp.org>
6751         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
6752         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
6753         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
6754         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
6755         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
6756         Suggested by Paul Eggert.
6758 2007-10-28  Jim Meyering  <meyering@redhat.com>
6760         * README-hacking: Autoconf, Automake, and Perl are required to build.
6761         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
6763 2007-10-28  Jim Meyering  <meyering@redhat.com>
6765         README-hacking: Recommend running autoreconf -vi.
6766         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
6767         so that we use just-built tools when they're available.
6768         Suggestions from Ralf Wildenhues.
6770 2007-10-28  Jim Meyering  <meyering@redhat.com>
6772         Make inter-release --version output more useful.
6774         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
6775         which indicates that it is built using the 19th change set
6776         (in _some_ repository) following the "v2.61a" tag, and that 58dd
6777         is a prefix of the commit SHA1.
6778         * build-aux/git-version-gen: New file.
6779         * configure.ac: Run it to set the version.
6780         (AM_INIT_AUTOMAKE): Don't check NEWS here.
6781         * Makefile.am (dist-hook): Arrange so that .version appears only
6782         in distribution tarballs, never in a checked-out repository.
6783         * .gitignore: Add .version here, too.  Just in case.
6784         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
6785         not configure.ac, now that the version number changes automatically.
6787         Ensure that $(VERSION) is up to date for dist-related targets.
6788         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
6789         git-version-gen doesn't match $(VERSION), but only for dist targets.
6791 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6793         Fix `Deep Package' failure with a configure script early in PATH
6794         * tests/torture.at (Deep Package): Add `.' early in PATH.
6795         Report by Jim Meyering.
6797 2007-10-27  Jim Meyering  <meyering@redhat.com>
6799         Remove all generated files from version control.
6800         * aclocal.m4: Remove.
6801         * configure: Remove.
6802         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
6803         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
6804         * README-hacking: New file: how to build from just-checked-out sources.
6806 2007-10-23  Eric Blake  <ebb9@byu.net>
6808         Improve corner case of m4_expand.
6809         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
6810         efficiently.
6811         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
6812         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
6813         documentation.
6815 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6817         * doc/make-stds.texi: Update from gnulib.
6819 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6820         and Eric Blake  <ebb9@byu.net>
6822         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
6823         problem reported by Bruno Haible in
6824         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
6826 2007-10-22  Eric Blake  <ebb9@byu.net>
6828         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
6829         preprocessor.
6831 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6833         Don't check for bug in HP-UX 11.00 cpp.
6834         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6835         Use -1ull rather than -1u, since that causes problems with gnulib; see
6836         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
6838 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6840         * tests/autotest.at (Backquote command substitution)
6841         (Multiline backquote command substitution)
6842         (Parenthetical command substitution)
6843         (Multiline parenthetical command substitution): Fix typos in
6844         test names.
6846 2007-10-21  Eric Blake  <ebb9@byu.net>
6848         * configure: Regenerate.
6850 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6852         Fix config status generation with Tru64 ksh.
6853         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
6854         escaping of backslash in here-documents.
6856         Fix `Deep Package' test failure on FreeBSD.
6857         * tests/torture.at (Deep Package): Do not add `.' to $PATH
6858         unnecessarily.  Do not try running `/bin/sh configure' with a
6859         configure script to be found in $PATH, if the shell does not do
6860         this resolution.  Fixes test failure on FreeBSD.
6862         Fix config header generation with AIX awk.
6863         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
6864         script, use helper array D_is_set, as `" 0"' does not evaluate
6865         to true for AIX awk.
6867 2007-10-21  Eric Blake  <ebb9@byu.net>
6869         * tests/autotest.at (Banners): Reinstate test, with typo
6870         corrected.
6872 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6874         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
6875         <at_func_validate_ranges>: ... using this new function.
6876         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
6877         Test --list with ranges and keywords.
6878         (Banners): Remove one now-failing test.
6880 2007-10-20  Eric Blake  <ebb9@byu.net>
6882         Fix testsuite --list subset.
6883         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
6884         back to spaces, before listing subset of tests.
6885         Reported by Ralf Wildenhues.
6887 2007-10-19  Eric Blake  <ebb9@byu.net>
6889         s/parenthesis/parentheses/ where appropriate.
6890         * doc/autoconf.texi: Fix typos.
6891         * lib/m4sugar/m4sugar.m4: Likewise.
6892         Reported by Ralf Wildenhues.
6894         Document m4_expand limitation.
6895         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
6896         unbalanced parse.
6897         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
6898         (Writing Testsuites): Mention limitations inherited from
6899         m4_expand.
6901         Improve AT_BANNER handling.
6902         * lib/autotest/general.m4 (BANNERS): New named diversion.
6903         (TESTS_END): Diversion no longer used.
6904         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
6905         shell function, which prints only as needed, using an associative
6906         array of banner text from a special diversion.
6907         <PARSE_ARGS_END>: No longer need awk to find banners.
6908         <TESTS>: Banners are no longer processed by main driver loop, so
6909         we no longer need case statement.
6910         (AT_BANNER): Rewrite to populate new diversion.
6911         (AT_SETUP): Each test invokes its own banner.  No output is needed
6912         to the TESTS diversion.
6913         * doc/autoconf.texi (Writing Testsuites): Document slight
6914         semantics change.
6915         * tests/autotest.at (AT_BANNERS): Enhance test.
6916         * NEWS: Document AT_BANNER.
6918         Document and test AT_BANNER.
6919         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
6920         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
6921         (AT_CHECK_BANNERS): New test.
6923         Doc touchups.
6924         * doc/autoconf.texi (Text processing Macros) <m4_strip>
6925         <m4_text_wrap>: Clarify and fix typos.
6927 2007-10-18  Eric Blake  <ebb9@byu.net>
6929         Ignore `make dist' changelogs in testsuite.log.
6930         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
6931         directories matching AT_PACKAGE_TARNAME-*.
6933         Fix AT_TESTED, AT_KEYWORDS.
6934         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
6935         occurs in string, as duplicates may be added.
6936         (_m4_append_uniq): New helper macro.
6937         (m4_append_uniq_w): New macro.
6938         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
6939         duplication bug by using new macro.
6940         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
6941         programs with stdin redirected, so programs that don't
6942         understand --version won't try to behave interactively.
6943         * tests/autotest.at (Tested programs): Catch this bug.
6944         * tests/m4sugar.at (m4@&t@_append): Test new macro.
6945         * tests/local.at (AT_TESTED): Add m4, perl.
6946         * doc/autoconf.texi (Text processing Macros): Document
6947         m4_append_uniq_w, and update text on m4_append.
6948         * NEWS: Document the addition.
6950 2007-10-17  Eric Blake  <ebb9@byu.net>
6952         Function cleanup.
6953         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
6954         from m4 macro...
6955         (AT_INIT) <at_func_create_debugging_script>: ...to shell
6956         function.
6957         (AT_INIT): Defer function declarations until after --help,
6958         --version.  Format functions consistently, trying to fit in 80
6959         columns.
6960         (TEST_FUNCTIONS): Based on recent changes, rename...
6961         (TEST_GROUPS): ...to this.
6963         Reject FreeBSD m4.
6964         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
6965         * configure: Regenerate.
6966         Reported by Bob Friesenhahn.
6968         Test recent additions.
6969         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
6970         (m4@&t_max and m4@&t_min): New tests.
6971         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
6972         description.
6974 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6976         * TODO: multiline args in config files and headers work now.
6978         Autotest: do not use shell functions for individual tests.
6979         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
6980         extract the source test source, do not invoke it.
6981         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
6982         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
6983         expect exit status of 1.
6984         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
6986         * lib/autotest/general.m4 (at_func_test): Fix test extraction
6987         script.
6989 2007-10-17  Eric Blake  <ebb9@byu.net>
6991         Fix m4_combine for empty suffix list.
6992         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
6993         * doc/autoconf.texi (Text processing Macros): Document this.
6995         Add m4_combine, based on Libtool's lt_combine.
6996         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
6997         * doc/autoconf.texi (Text processing Macros): Document it.
6998         * NEWS: Likewise.
7000 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7002         Fix `configure --help=recursive' in unconfigured/read-only trees.
7003         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
7004         is not writable, use 'cp -p' in this case, in the hope that it
7005         will not actually be needed.  Still try removing files, in case
7006         of other write errors.
7007         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
7008         use $as_myself, not $0.
7009         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
7010         exist, try again in the the source tree.  This change assumes
7011         that the subpackage configure script is capable of running
7012         --help=recursive in the source tree.
7013         * tests/torture.at (Configuring subdirectories, Deep Package):
7014         Adjust tests to expose both issues, also try invocation as
7015         `sh configure ...' and plain `configure ...' with PATH adjusted.
7016         * NEWS, THANKS: Update.
7017         Report by Hans Ulrich Niedermann.
7019 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7021         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7022         Problem reported by H.Merijn Brand in
7023         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7024         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7025         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7026         Check that preprocessor handles 64-bit ints, too.
7028 2007-10-16  Eric Blake  <ebb9@byu.net>
7030         m4_map is a looping construct.
7031         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
7033         Fix m4_map, and add some more utility macros.
7034         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
7035         (m4_echo, m4_make_list): New documented macros.
7036         (_m4_quote, _m4_shift2): New helper macros.
7037         (m4_map): Change semantics to allow calling macro without
7038         arguments.
7039         (m4_map_sep): Likewise.  Also change semantics to quote separator,
7040         to match m4_join and m4_append.
7041         (m4_version_unletter): Fix use of m4_map.
7042         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
7043         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
7044         (Text processing Macros): Mention m4_dquote as a faster
7045         alternative to joining with commas.
7046         (Looping constructs): Document m4_map, m4_map_sep.
7047         * NEWS: Mention new macros.
7049         A few more m4sugar improvements, to benefit libtool.
7050         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
7051         of expansion by avoiding extra uses of $@.
7052         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
7053         (_m4_cdr): New helper macro.
7054         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
7055         (_m4_shift3): New helper macro.
7056         (_m4_foreach): Swap argument order, and use new macro to reduce
7057         size of expansion.
7058         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
7059         count must be positive.
7061         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
7062         Reported by Ralf Wildenhues.
7064 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7066         * doc/autoconf.texi (Portable Shell): Improve description of zsh
7067         4.x function subshell bug with exit and trap.
7069 2007-10-15  Eric Blake  <ebb9@byu.net>
7071         Enhance AS_HELP_STRING.
7072         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
7073         and reduce number of expansions.
7074         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
7075         and to take indent and wrap column numbers.
7076         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
7077         * doc/autoconf.texi (Pretty Help Strings): Document details about
7078         arguments.
7079         (Text processing Macros): Minor tweaks.
7080         * NEWS: Document this change.
7082         Fix 2007-10-03 regression with AT_SETUP([a, b]).
7083         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
7084         (m4_text_box): Use it.
7085         * lib/autotest/general.m4 (AT_SETUP): Use it.
7086         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
7087         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
7088         * NEWS: Revert caveat about semantics change on comma.
7089         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
7091 2007-10-13  Eric Blake  <ebb9@byu.net>
7093         Change m4_join to match libtool's ltsugar semantics.
7094         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
7095         Ignore empty arguments, using...
7096         (_m4_join): ...this new helper.
7097         * tests/m4sugar.at (m4@&t@_join): New test.
7098         * doc/autoconf.texi (Text processing Macros): Document new
7099         semantics of m4_join.
7101         Make AC_PREREQ faster and more robust.
7102         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
7103         (m4_version_prereq): Inline constant expansions.
7104         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
7105         Rewrite in terms of [] list, not () list.
7106         (_m4_list_cmp, _m4_version_unletter): New helper macros.
7107         (m4_version_unletter): Write wrapper around new implementation to
7108         preserve old semantics.
7109         (m4_version_compare): Pass correct type of list, and avoid
7110         overhead of flattening expressions too early.
7111         (m4_do): Move to be near other quoting macros.
7112         (m4_max, m4_min): Always result in decimal output.
7113         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
7114         Move m4_do...
7115         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
7116         (Text processing Macros): Move m4_version_compare...
7117         (Number processing Macros): ...to this new node; document m4_cmp,
7118         m4_list_cmp, m4_sign, m4_max, m4_min.
7119         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
7120         up on bugs fixed by this patch.
7121         * NEWS: Document new macros.
7123 2007-10-12  Eric Blake  <ebb9@byu.net>
7125         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
7126         (Reporting Messages): Fix underfull hbox.
7128         Some more m4sugar documentation.
7129         * lib/m4sugar/m4sugar.m4: Clean up macro order.
7130         * doc/autoconf.texi (Programming in M4): Lighten the warning on
7131         using m4sugar; it is stabilizing and useful.
7132         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
7133         m4_divert, m4_undivert, __file__, __line__, __oline__.
7134         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
7135         m4_fatal, m4_location, m4_warn.
7136         (Diversion support): New node, documenting m4_divert_push,
7137         m4_divert_pop, m4_divert_text, m4_divert_once.
7138         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
7139         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
7140         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
7141         as obsolescent.
7142         (Printing Messages): Change cross-reference.
7144         Document interaction of recent m4_append change with Libtool HEAD.
7145         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
7146         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
7147         * tests/m4sugar.at (m4@&t@_append): New test.
7148         * NEWS: Document semantics change.
7149         * doc/autoconf.texi (Text processing Macros): Likewise.
7151         s/AC_VERSION/AC_AUTOCONF_VERSION/.
7152         * doc/autoconf.texi (Versioning): Change the name.
7153         * NEWS: Likewise.
7154         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
7155         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
7156         Suggested by Ralf Wildenhues.
7158         Namespace cleanup.
7159         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
7160         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
7161         autoconf namespace.
7162         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
7163         (Programming in M4sh, Macro Names): Beef up description of
7164         namespaces reserved for autoconf.
7165         * configure: Regenerate.
7167 2007-10-12  Eric Blake  <ebb9@byu.net>
7168         and Paolo Bonzini  <bonzini@gnu.org>
7170         Speed up execution of subset of testsuite.
7171         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
7172         (AT_INIT) <at_func_test>: New shell function.
7173         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
7174         (AT_INIT) <at_test_source> New variable, names file that holds
7175         current test function definition.
7176         (AT_SETUP): Start the shell function at_func_test_#, into the
7177         TEST_FUNCTIONS diversion.
7178         (AT_CLEANUP): End the shell function.  Simplify the TESTS
7179         diversion to invoke the function.
7181 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7183         * .gitignore: Ignore tags and TAGS files.
7185 2007-10-11  Eric Blake  <ebb9@byu.net>
7187         Config header generation followup.
7188         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
7189         which won't work with the preprocessor nor with the awk
7190         implementation.
7191         * tests/torture.at (Define a newline): Test raw newline detection,
7192         removing the XFAIL.
7193         * doc/autoconf.texi (Defining Symbols): Document recent change to
7194         allow backslash-newline.
7195         * THANKS: Update.
7197 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7199         * lib/autotest/general.m4: Put function braces in separate line.
7201 2007-10-10  Eric Blake  <ebb9@byu.net>
7203         Avoid some overhead from m4_defn and m4_popdef.
7204         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
7205         pass on first argument, since we are documented that way.
7206         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
7207         check where it is safe to do so.
7208         (m4_append): Likewise, and quote the separator.
7209         (m4_text_box): Likewise, and avoid regex, also be robust to
7210         expansion and quadrigraphs.
7212         Another AC_DEFINE speedup.
7213         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
7214         elision...
7215         (_AC_DEFINE_Q): ...here, and only do it once.
7216         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
7217         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
7218         introduced 2007-10-05.
7220         Whitespace cleanup.
7221         * lib/autoconf/general.m4: Use consistent indentation.
7222         * configure: Regenerate.
7224         * NEWS: Announce recent round of speed optimizations.
7226 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7228         * NEWS: Announce shell function usage in Autotest.
7230 2007-10-10  Eric Blake  <ebb9@byu.net>
7231         and Paul Eggert  <eggert@cs.ucla.edu>
7233         Reduce number of forks at startup.
7234         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
7235         sanitization.
7236         * configure: Regenerate.
7238 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7239         and Paul Eggert  <eggert@cs.ucla.edu>
7241         Use awk for config header generation.
7242         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
7243         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
7244         header machinery for use with awk and placement outside the main
7245         config.status instantiation loop.  Retain multi-line defines
7246         through backslash-newline combinations, do not split the script
7247         any more.
7248         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
7249         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
7250         needed.
7251         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
7252         from define values.
7253         * NEWS: Update.
7254         * tests/torture.at (#define header templates): Extend test by
7255         several more cases: white space before and after `#', macros
7256         with parameters in config.hin and as defines, multi-line macro
7257         values.
7258         (Torturing config.status): Use a define value twice the length
7259         in order to exercise the awk literal string limit.
7260         (Substitute and define special characters): Also try special
7261         delimiter, to exercise the special-case code.
7262         Suggestion by Eric Lemings.
7264 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7266         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
7268 2007-10-09  Eric Blake  <ebb9@byu.net>
7270         Improve header of bin/autoconf.
7271         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
7272         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
7273         from M4sh.
7274         * bin/autoconf.as: Put copyright up front in generated file.
7276         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
7278 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7280         * doc/install.texi (Basic Installation): Document `uninstall'.
7281         * INSTALL: Regenerate.
7282         Suggestion by Roberto Bagnara.
7284 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7286         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
7288         Adjust doc. to match latest gnulib.
7289         * build-aux/texinfo.tex: Sync from gnulib.
7290         * doc/standards.texi: Likewise.
7291         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
7292         Documentation License" and remove the subsection.  This simplifies
7293         the manual a bit and is more like what other GNU projects do
7294         nowadays.
7296 2007-10-08  Eric Blake  <ebb9@byu.net>
7298         Use recent changes.
7299         * configure: Regenerate.
7301         Fix regression in m4_text_wrap from 2007-10-05.
7302         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
7303         (m4_sign): Sort.
7304         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
7305         m4_format.
7306         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
7307         * tests/autotest.at (Long test title, Longer test title): Test
7308         this fix, beyond what AS_HELP_STRING already tests.
7310         Avoid m4 warnings on bad m4_format usage.
7311         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
7312         evaulates to 0.
7313         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
7314         enough arguments are provided.
7316 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
7318         * doc/autoconf.texi (Shell portability): Document shell function
7319         portability.
7321 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
7323         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
7324         at_func_check_skip, at_func_check_status, at_func_filter_trace,
7325         at_func_log_failure shell functions.  Use test -s to avoid
7326         useless diff invocations.
7327         (at_func_check_newline): Renamed from at_check_newline.
7328         (AT_SETUP): Define AT_captured_files to empty.
7329         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
7330         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
7331         the shell functions.
7333 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7335         Don't assume "." is writeable, for commands like "autoconf --version".
7336         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
7337         different heuristic instead, one that doesn't rely on creating
7338         files.
7340         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
7341         correctly.
7343 2007-10-05  Jim Meyering  <meyering@redhat.com>
7345         Avoid makeinfo warnings.
7346         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
7347         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
7349 2007-10-05  Eric Blake  <ebb9@byu.net>
7351         Resolve Python issue 1676135 regarding configure directory args.
7352         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
7353         slashes from directory arguments.
7354         * tests/base.at (configure directories): New test.
7355         * doc/autoconf.texi (Installation Directory Variables): Document
7356         the change.
7357         * NEWS: Likewise.
7358         * THANKS: Update.
7359         Reported by Björn Lindqvist.
7361         Provide better short-circuiting operation.
7362         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
7363         (m4_text_wrap): Use it.  Also avoid useless m4_for.
7364         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
7365         new macro.
7366         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
7367         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
7368         to avoid regexps.
7369         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
7370         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
7371         (Conditional constructs): ...here, to new section.  Also document
7372         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
7373         m4_bpatsubsts, and m4_default.
7374         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
7375         m4_do.
7377 2007-10-04  Eric Blake  <ebb9@byu.net>
7379         Fix recent testsuite failures.
7380         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
7381         that must not be re-expanded after AS_ESCAPE.
7382         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
7383         checking if it is an identifier.
7385         Whitespace cleanup.
7386         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
7387         leading whitespace, as it caused space-tab in testsuite.
7388         (AT_INIT): Avoid trailing newlines in testsuite.
7390         One more round of m4_foreach_w speedups.
7391         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
7392         is present.
7393         (_m4_split): Avoid useless expansions inside definition.  Move
7394         argument defaulting...
7395         (m4_split): ...here.  Change alternate quote to something less
7396         likely to appear in $1.  Also, special case space as regexp...
7397         (m4_foreach_w): ...to avoid regexp on single-term list.
7398         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
7399         useless expansions inside definition.
7400         * tests/m4sugar.at (m4@&t@_split): Add tests.
7402 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
7404         * general.m4 (AT_INIT): Add at_check_newline function.
7405         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
7406         (_AT_CHECK): Don't use at_trace_this.
7408 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
7410         Fix previous commit.
7411         * lib/autotest/general.m4 (AT_LINE): Fix regex.
7413 2007-10-04  Eric Blake  <ebb9@byu.net>
7415         Speed up building testsuites.
7416         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
7417         changed since last time.  Use simpler regex.
7419 2007-10-03  Eric Blake  <ebb9@byu.net>
7421         Optimize checking for identifiers.
7422         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
7423         macros, more efficient than regex on m4_re_word.
7424         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
7425         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
7426         now use @&t@.
7427         * configure: Regenerate.
7429         Remove some XFAILs, and make AT_SETUP output line up.
7430         * lib/autotest/general.m4 (AT_SETUP): Only expand description
7431         once; thereafter, use its expansion, properly quoted.
7432         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
7433         expansion with arguments, and check for aligned output.
7434         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
7435         Add a test for macros with parameters.
7436         * NEWS: Document the semantics change.
7437         * tests/base.at: Fix test titles containing commas.
7438         * tests/compile.at: Likewise.
7439         * tests/tools.at: Likewise.
7440         * tests/torture.at: Likewise.
7442         Another round of regex avoidance.
7443         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
7444         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
7445         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
7446         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
7447         character ranges useful in m4_translit.
7448         (m4_toupper, m4_tolower): Optimize the constant portion of
7449         definition.
7450         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
7451         creates $, and reject [] thanks to AS_TR_SH rewrite.
7452         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
7453         (AS_ESCAPE): Factor...
7454         (_AS_ESCAPE): ...into new macro, with second argument required.
7455         Avoid regex in common case.
7456         (_AS_QUOTE): Use new macro.
7458         Whitespace cleanup.
7459         * lib/autoconf/types.m4: Avoid space-tab.
7460         * lib/m4sugar/m4sh.m4: Use tab consistently.
7462 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7464         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
7465         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
7466         should remove m4_shiftn entirely?
7467         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
7468         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
7469         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
7470         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
7471         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
7473 2007-10-03  Eric Blake  <ebb9@byu.net>
7475         Comment touchups.
7476         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
7478 2007-10-02  Eric Blake  <ebb9@byu.net>
7480         Optimize appending text.
7481         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
7482         expressions.
7484         Optimize recursion.
7485         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
7486         lot of hot spots; optimize it for 2 and 3 shifts.
7488         Optimize AC_PREREQ and other m4sugar numerics.
7489         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
7490         (m4_cmp): Compare arbitrary expressions, without overflow.
7491         (m4_version_unletter): Also recognize capital letters.
7492         (m4_version_compare): Avoid regex when splitting version number
7493         string.
7495 2007-10-01  Eric Blake  <ebb9@byu.net>
7497         Once again, reject IRIX m4.
7498         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
7499         implementations that ignore --trace.
7500         * configure: Regenerate.
7501         Reported by Ralf Wildenhues.
7503         Fix regression in AC_DEFINE([macro(with_arg)]).
7504         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
7505         quotes with a careless m4_substr.
7507 2007-09-30  Eric Blake  <ebb9@byu.net>
7509         Allow nameless iteration.
7510         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
7511         indirectly.
7512         * tests/m4sugar.at (myvar): Test this.
7514 2007-09-29  Eric Blake  <ebb9@byu.net>
7516         Speed optimization: avoid m4 regex when other algorithms work.
7517         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
7518         (_AS_QUOTE_IFELSE): Likewise.
7519         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
7520         (m4_bpatsubsts): Split...
7521         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
7522         regex.
7523         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
7524         (m4_qlen): Optimize on short strings, to avoid regex.
7525         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
7526         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
7527         (AC_DEFINE_TRACE): Likewise.
7529 2007-09-28  Eric Blake  <ebb9@byu.net>
7531         Oops - my earlier 'optimization' caused a regression.
7532         * tests/local.at (AT_CHECK_M4): Fix typo.
7534 2007-09-27  Eric Blake  <ebb9@byu.net>
7535         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7537         Catch even more common AC_CACHE_VAL mistakes.
7538         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
7539         lacks '_cv_', or if AC_SUBST appears in body.
7540         * tests/base.at (AC_CACHE_CHECK): Test this change.
7542 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
7543         and Eric Blake  <ebb9@byu.net>
7545         Autotest no longer caters to Ultrix redirection limitation.
7546         * doc/autoconf.texi (Writing testsuite.at): Remove the
7547         limitation that the first parameter of AT_CHECK cannot
7548         contain redirection.
7549         (File Descriptors): Mention that Ultrix limitation is no longer a
7550         show-stopper in modern code.
7551         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
7552         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
7553         * lib/autotest/general.m4 (AT_CHECK): Update comment.
7555 2007-09-27  Eric Blake  <ebb9@byu.net>
7557         Squelch changeword in m4sugar.
7558         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
7559         feature of m4 1.4.x.
7561         Configure whitespace touchups.
7562         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
7563         installation directories, and avoid TAB, in configure --help
7564         output.
7565         * configure.ac: Avoid extra trailing newline.
7566         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
7567         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
7568         config.status --help output.
7569         * configure: Regenerate.
7571         Fix underquotation in AS_HELP_STRING.
7572         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
7573         argument.
7574         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
7575         first-prefix argument.
7576         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
7577         * NEWS: Document AS_HELP_STRING fix.
7579         Autotest formatting touchups.
7580         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
7581         output.
7582         (PATH): Simplify computation of new PATH.
7584 2007-09-26  Eric Blake  <ebb9@byu.net>
7586         Fix testsuite breakage in last patch.
7587         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
7588         font-lock fix.
7589         * tests/torture.at (@%:@define header templates): Rename, so that
7590         output lines up correctly.
7592         More font-lock happiness.
7593         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
7594         confusion.
7596 2007-09-25  Eric Blake  <ebb9@byu.net>
7598         Typo fixes.
7599         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
7600         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
7602         Improve documentation of M4 parameter expansion.
7603         * doc/autoconf.texi (Quoting and Parameters): New section.
7604         (Quotation and Nested Macros): Improve wording.
7606         Improve C99 detection.
7607         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
7608         avoid deprecation warning with icc.
7609         * THANKS: Update.
7610         Reported by Ted Bullock.
7612 2007-09-24  Jim Meyering  <jim@meyering.net>
7614         Whenever possible, use the vertical bar as sed delimiter.
7615         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
7616         Use "|", not "!".
7617         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
7618         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
7619         * tests/mktests.sh (as_me): Likewise.
7620         * lib/freeze.mk (check-forbidden-patterns): Likewise.
7621         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
7622         * configure: Regenerate.
7623         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
7624         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
7625         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
7626         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
7628 2007-09-22  Jim Meyering  <jim@meyering.net>
7630         Add a comment.
7631         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
7632         2004-05-31 change also with a comment in the code.
7634 2007-09-20  Eric Blake  <ebb9@byu.net>
7636         More contribution housekeeping.
7637         * THANKS: Sort.
7638         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
7640         Ignore additional files, when copying cross-repository.
7641         * .gitignore: Ignore CVS directories, emacs edits.
7642         * .cvsignore: Ignore .git directory, emacs edits.
7644 2007-09-15  Eric Blake  <ebb9@byu.net>
7646         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
7647         * doc/autoconf.texi (Text processing Macros): Remove mention of
7648         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
7649         once again.
7650         (Notices): Move AC_PREREQ...
7651         (Versioning): ...to this new section, alongside the new AC_VERSION
7652         alias for the undocumented m4_PACKAGE_VERSION.
7653         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
7654         * lib/autoconf/general.m4 (AC_VERSION): New macro.
7655         * NEWS: Update to match this rename.
7656         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
7657         m4_PACKAGE_VERSION.
7658         * tests/tools.at (autoconf: AC_VERSION): New test.
7659         Suggested by Paolo Bonzini and Benoit Sigoure.
7661 2007-09-14  Eric Blake  <ebb9@byu.net>
7663         Prepare for conversion to git.
7664         * doc/.cvsignore: Avoid multiple listings on one line.
7665         * bin/.cvsignore: Likewise.
7666         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
7667         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
7668         lib/autoscan/.gitignore, lib/autotest/.gitignore,
7669         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
7670         tests/.gitignore: New files, identical to .cvsignore counterpart.
7672 2007-09-13  Eric Blake  <ebb9@byu.net>
7674         Editing eye-candy.
7675         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
7676         font-lock balance.
7677         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
7678         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
7679         * configure: Regenerate.
7681         Clean up 'make dist' of previous patch.
7682         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
7683         (CLEANFILES): Don't clean the stamp, since we distribute the
7684         generated files pre-built.
7685         (MAINTAINERCLEANFILES): Clean it here instead.
7686         * tests/Makefile.in: Regenerate.
7688         Avoid parallel 'make check' issue.
7689         * tests/Makefile.am (mktests.stamp): New witness.
7690         (TESTSUITE_GENERATED_AT): Use it.
7691         (CLEANFILES): Clean the witness.
7692         * tests/.cvsignore (mktests.stamp): Ignore the witness.
7694         Document another awk pitfall.
7695         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
7696         limitation of field variables in END.
7697         Reported by Gary V. Vaughan.
7699         * AUTHORS: Add missing entries.
7701 2007-09-12  Eric Blake  <ebb9@byu.net>
7703         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
7704         * doc/autoconf.texi (Text processing Macros): Document
7705         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
7706         (Redefined M4 Macros): Document m4_ifndef.
7707         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
7708         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
7709         used it while it was undocumented.
7710         * NEWS: Document this change.
7711         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
7712         * lib/m4sugar/Makefile.in: Regenerate.
7713         * tests/m4sugar.at (m4@&t@_version_compare): New test.
7714         Reported by Bruno Haible.
7716         * doc/autoconf.texi (Generic Compiler Characteristics): Add
7717         missing index entries.
7719 2007-09-11  Eric Blake  <ebb9@byu.net>
7721         Centralize all system extensions checks.
7722         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
7723         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
7724         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
7725         AC_USE_SYSTEM_EXTENSIONS.
7726         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
7727         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
7728         * doc/autoconf.texi (Posix Variants): Reword this section,
7729         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
7730         rather than a series of system-specific checks.
7731         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
7732         AC_MINIX.
7733         * NEWS: Document this change.
7734         * THANKS: Update.
7735         Reported by Martin Koeppe.
7737 2007-09-08  Eric Blake  <ebb9@byu.net>
7739         Clean up obsolete macros references.
7740         * doc/autoconf.texi: Add anchors to support better
7741         cross-referencing.
7742         (Particular Structures): Move obsolete macros descriptions...
7743         (External Software): Likewise.
7744         (Package Options): Likewise.
7745         (Obsolete Macros): ...to here.  Add cross-references to
7746         documentation on replacements.
7747         * NEWS: Mention that these macros have been obsolete for a while
7748         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
7750         Improve M4 path searching during configure.
7751         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
7752         macro.
7753         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
7754         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
7755         parameter, and kill side effects.
7756         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
7757         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
7758         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
7759         is found.
7760         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
7761         allow bootstrapping with autoconf 2.61.
7762         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
7763         * configure: Regenerate.
7764         * doc/autoconf.texi (Generic Programs): Document new macro.
7765         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
7766         macro.
7767         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
7768         * NEWS: Document the change.
7769         * THANKS: Update.
7770         Reported by Hans Aberg.
7772         * doc/autoconf.texi (Generic Programs): Fix typo.
7774 2007-09-06  Eric Blake  <ebb9@byu.net>
7776         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
7777         :, and make it clear that optional @var{path} defaults to $PATH.
7778         (Erlang Compiler and Interpreter): Likewise.
7780         Texinfo cleanup.
7781         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
7782         Reword some paragraphs to avoid overfull, underfull hbox
7783         warnings.  Add index entries to avoid overfull vbox warnings.
7785 2007-09-05  Eric Blake  <ebb9@byu.net>
7787         * NEWS: Adjust wording for AC_CONFIG_LINKS.
7788         Reported by Ralf Wildenhues.
7790 2007-09-03  Eric Blake  <ebb9@byu.net>
7792         * NEWS: Document fixes that have been applied since 2.61a.
7794         Housekeeping.
7795         * THANKS: Update, and convert to UTF-8 encoding.
7796         * AUTHORS: Likewise.
7798 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7800         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
7801         names beginning with `-' again.
7803 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
7804             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7806         * doc/autoconf.texi (Defining Directories): Mention
7807         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
7809 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7811         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
7812         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
7813         * tests/base.at (configure arguments): New test.
7814         * THANKS: Update.
7815         Report by Olaf Lenz.
7817         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
7818         arguments in comment.
7819         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
7821 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
7823         * doc/autoconf.texi (File System Conventions): Index the proper
7824         way of detecting absolute file names.
7826 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7828         * build-aux/config.guess, build-aux/config.sub,
7829         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
7830         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
7831         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
7832         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
7833         sectioning change in fdl.texi.
7835         * bin/autoconf.as: Update --version output to match current GCS.
7836         * bin/autoheader.in: Likewise.
7837         * bin/autom4te.in: Likewise.
7838         * bin/autoreconf.in: Likewise.
7839         * bin/autoscan.in: Likewise.
7840         * bin/autoupdate.in: Likewise.
7841         * bin/ifnames.in: Likewise.
7843 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7845         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
7846         file to itself if source and build trees coincide.
7847         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
7848         test.
7849         Report by Sebastian Freundt <hroptatyr@gna.org>.
7851 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7853         Reword the copyright notices to match what's suggested in GPLv3.
7854         In ChangeLog files, use more-permissive notice rather than GPL, as
7855         per usual GNU standards these days.
7857 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7859         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
7860         limitation reported by Leo Moisio in
7861         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
7863 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7865         * COPYING: Update to GPLv3.  All uses changed.
7867 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7868         and Paul Eggert  <eggert@cs.ucla.edu>
7870         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
7871         fails on AIX 5.3.
7873 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
7875         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
7876         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
7877         `srcdir' as subdirectory of `builddir'.
7879 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
7881         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
7882         * tests/autotest.at (srcdir propagation): New test.
7883         * THANKS: Update.
7884         Reported by Mike Frysinger.
7886 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7888         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
7889         Problem reported by Fred Kreek in
7890         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
7891         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
7892         (Macro Names, Defining Directories): Don't mention PATH as a name
7893         for a fully qualified file name, as this usage violates the GNU
7894         coding standards and we shouldn't recommend it.
7896         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
7897         string and then assume shell builtins like "test" will work.
7899 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
7901         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
7902         not a valid shell variable name.
7903         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
7904         * tests/torture.at (AC_SUBST: variable name validation): New test.
7905         Reported by Andreas Schwab.
7907 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
7909         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
7910         works with both C and C++.
7912 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
7913             Bruno Haible  <bruno@clisp.org>
7915         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
7916         brand tests.
7918 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7920         * doc/autoconf.texi (Particular Types): Give example of use for
7921         AC_TYPE_INT8_T etc.
7923 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
7925         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
7927 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7929         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
7930         define HAVE_INT8_T, and likewise for similar macros.
7931         Problem reported by Patrick Welche in
7932         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
7934 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
7936         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
7938 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7940         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
7941         choice, since that's what we do with --enable-largefile etc.
7942         Redo indenting and assignments to simplify things a bit, and make
7943         the parens work with Emacs.
7945         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
7946         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
7947         Haible.
7949 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
7951         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
7952         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
7954 2007-05-21  Bruno Haible  <bruno@clisp.org>
7956         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
7957         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
7958         * doc/autoconf.texi (Generic Compiler Characteristics): Move
7959         renamed AC_OPENMP documentation here, from "C compiler".
7960         Mention C++ and Fortran.
7962 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7964         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
7966 2007-05-21  Bruno Haible  <bruno@clisp.org>
7968         * NEWS: Mention AC_C_OPENMP.
7969         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
7970         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
7971         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
7972         macro in the Autoconf macro archive.
7974 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7976         * bin/autom4te.in: Fix typos.
7978 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
7980         * bin/autoconf.as: Handle `-' just like other input files.
7981         * bin/autom4te.in (parse_args): Pass `-' through.
7982         (handle_output): Skip the forbidden token search if we read from stdin.
7983         (up_to_date): Always treat stdin as out of date.
7984         * tests/tools.at (autoconf: input from stdin): New test.
7985         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
7987 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
7989         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
7990         parameters for AT_CLEANUP.
7991         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
7993 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7995         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
7996         * doc/autoconf.texi (C Compiler): Likewise.
7998 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
8000         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
8002 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
8004         * doc/autoconf.texi: Direntry for "autoconf Invocation"
8005         renamed to "autoconf-invocation"
8007         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
8008         in the examples should not use the internal "ac_" prefix.
8010 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
8012         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
8013         * doc/autoconf.texi ($@, case): Document Zsh limitations.
8015 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
8017         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
8018         Reorganize the comments before and in the macro.
8020 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
8022         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
8023         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
8024         section titles and other comments; no code change.
8026 2007-05-01  Kevin Ryde  <user42@zip.com.au>
8028         * doc/autoconf.texi (Particular Programs): Typo
8029         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
8031 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
8033         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
8034         'configure' will fail if the shell lacks proper support for shell
8035         functions.  Suggested by RMS.
8037 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8039         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
8040         about Solaris /bin/printf '%010000x' 123.  Problem reported by
8041         Bruno Haible.
8043 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
8045         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
8046         for a.* when searching for executables, as this prevents users
8047         from having files like a.c.  Problem reported by Ralf Wildenhues in:
8048         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
8049         This fixes a problem introduced on 2000-12-19.
8051 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8053         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
8054         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
8055         via Bruno Haible.
8057 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
8059         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
8060         AC_CHECK_TYPE, AC_CHECK_TYPES.
8061         * doc/autoconf.texi (Generic types): C types must be type-names
8062         (the C terminology), not type-ids (the C++ term).  C++ types
8063         must not be anonymous.
8064         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
8065         for C++; this drops support for anonymous struct and union types,
8066         which were problematic anyway.
8067         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
8068         for C++.
8070 2007-04-12  Jim Meyering  <jim@meyering.net>
8072         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
8074 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8076         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
8077         to prefer a link source from the build tree, if it exists.
8078         Report by Pallav Gupta <pallavgupta@gmail.com>.
8080 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8082         * doc/autoconf.texi (Generic Types): Document the restrictions
8083         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
8084         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
8085         with objects too.  Document the restrictions on its use.
8086         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
8087         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
8088         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
8089         works but the latter doesn't, then it's a valid type.
8090         This lets people use function types and so forth.
8091         For C++ there doesn't seem to be a simple solution, so leave it alone.
8092         (AC_CHECK_SIZEOF): Allow argument to be a variable.
8093         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
8094         AC_CHECK_TYPE; that wasn't documented or necessary.
8096 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8098         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
8099         when cross-compiling.
8101 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
8103         * doc/autoconf.texi (External Software): Fix a typo in the
8104         previous change.
8106 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8108         * doc/autoconf.texi (External Software, Package Options):
8109         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
8111 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8113         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
8114         obsolescent.  Suggested by Bruno Haible.
8115         * NEWS: Document this.
8117 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8119         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
8120         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
8121         default still has the problem.  Problem reported by Bruce Korb.
8123 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
8124         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8126         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
8127         comment in the generated config.status.
8129 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
8131         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
8133 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
8135         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
8136         command and case statements to make it a bit clearer and describe
8137         more pitfalls.
8139 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
8141         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
8142         checks for unsigned long long int.
8144 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8146         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
8147         nonstandard grep R.E. escape sequences.
8149 2007-03-17  Jim Meyering  <jim@meyering.net>
8151         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
8152         (Limitations of Usual Tools): Also list \< and \>, and mention that
8153         HP-UX's grep, like the one from Solaris, does not support that syntax.
8155 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
8157         * doc/autoconf.texi (Specifying Names): `--host' does not
8158         change the build type.
8160 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
8162         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
8163         suggests AC_CONFIG_HEADERS.
8164         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
8165         AC_CONFIG_HEADERS.  Problem reported by
8166         Peter O'Gorman.
8168 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8170         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
8171         Problem reported by Paolo Bonzini in:
8172         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
8173         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
8174         universal binaries.  Problem reported by Elias Pipping.
8176 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
8178         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
8179         * doc/autoconf.texi (C Compiler): Document this.  There is a new
8180         extra argument ACTION-IF-UNIVERSAL.
8181         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
8182         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
8183         Reindent for sanity's sake.
8185 2007-02-24  Eric Blake  <ebb9@byu.net>
8187         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
8188         copyright.
8189         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
8190         * lib/autotest/general.m4 (AT_INIT): Likewise.
8191         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
8193 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8195         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
8196         status of rm so we know when it failed.
8197         If cleaning of test dir failed before running the test, warn.
8198         Output the line separator in verbose mode before the warning
8199         to make clear the warning belongs to the following test.
8201 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8203         * doc/autoconf.texi (Parentheses): Mention problem with (( in
8204         shells.
8206 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8207         and Paul Eggert  <eggert@cs.ucla.edu>
8209         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
8210         errors introduced in last change.
8212 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8214         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
8215         an actual carriage return.  Use "ac_cr" to contain the actual
8216         carriage return.
8217         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
8218         with traditional Awk and begin.
8219         * tests/torture.at (Limitations of Builtins): Document the problem
8220         with Bash 2.03 printf.
8221         (Substitute and define special characters):
8222         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
8224 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
8226         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
8227         input from /dev/null in awk test, so even Solaris /usr/bin/awk
8228         will not wait for input with a script containing only a BEGIN
8229         rule.
8231 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8233         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
8234         requirements.
8235         * README: Likewise.
8237 2007-02-02  Eric Blake  <ebb9@byu.net>
8239         * NEWS: Update copyright.
8241         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
8242         broken.
8243         * configure.ac: Update error message.
8244         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
8245         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
8246         by Stepan Kasal:
8247         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
8249 2007-01-31  Eric Blake  <ebb9@byu.net>
8251         * THANKS (people): Update.
8253 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8255         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
8256         latest version.
8257         (Shell Substitutions): Note problems with @{var:=value} etc.
8258         Add a new section for problems with @{#var} etc.  Problem noted
8259         by Ralf Wildenhues.  See:
8260         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
8262 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8264         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
8265         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
8266         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
8267         substitution will still be done by the special code.
8268         Report by Jim Meyering.
8270         * doc/autoconf.texi (File System Conventions): Mention that
8271         $PATH_SEPARATOR is for the build system only.
8272         Report by Keith Marshall.
8274 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8276         * doc/autoconf.texi (Setting Output Variables): Mention that
8277         all non-NUL characters are ok in substituted values.
8278         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
8279         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
8280         carriage return for $AWK, needed for BSD awk.
8281         * tests/torture.at (Substitute and define special characters):
8282         Test all 8 bit non-NUL characters.
8283         Report against Automake by Patrick Welche.
8285 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
8287         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
8289 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8291         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
8292         early on the reader side, drop stderr of the input to avoid
8293         `broken pipe' error output; this may happen even with shell
8294         builtin `echo' of some bash versions.  Reports by Ian Macdonald
8295         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
8297 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8299         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
8300         separate items of `ac_user_opts', to avoid long lines.
8301         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
8303 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8305         * doc/autoconf.texi: Fix some typos.
8307 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8309         Fix some wording problems noted by Paolo Bonzini in:
8310         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
8311         * doc/autoconf.texi (Signed Overflow Examples): Give more
8312         discussion about the allow_superuser_privileges example,
8313         and change it a bit to make things clearer.
8314         (Optimization and Wraparound): Clarify whether the compiler
8315         will generate an infinite loop for the example derived from
8316         Autoconf's mktime test.
8317         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
8318         Also, clarify unsigned multiplication overflow.
8320 2007-01-04  Eric Blake  <ebb9@byu.net>
8322         * bin/Makefile.am (RELEASE_YEAR): New macro.
8323         (edit): Use it to supply correct copyright year to scripts.
8324         * bin/autoconf.as (version): Use it.
8325         * bin/autoheader.in ($version): Likewise.
8326         * bin/autom4te.in ($version): Likewise.
8327         * bin/autoreconf.in ($version): Likewise.
8328         * bin/autoscan.in ($version): Likewise.
8329         * bin/autoupdate.in ($version): Likewise.
8330         * bin/ifnames.in ($version): Likewise.
8332 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8334         * doc/autoconf.texi (Integer Overflow): Revised based on today's
8335         feedback.  The most important changes document what happens when
8336         you convert an out-of-range value to a signed integer type, and
8337         say that (sum < a) != (b < 0) reliably detects overflow when sum =
8338         a + b.
8340         * doc/autoconf.texi (Integer Overflow): Greatly expand and
8341         rewrite, taking notions from the recent discussion on the gcc and
8342         autoconf mailing lists; please see
8343         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
8344         and follow the many links.
8345         (Integer Overflow Basics, Signed Overflow Examples):
8346         (Optimization and Wraparound, Signed Overflow Advice):
8347         (Signed Integer Division): New sections.
8349 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
8351         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
8352         preprocessor macro arguments in traced name.
8353         * doc/autoconf.texi (Defining symbols): Document longstanding
8354         support for AC_DEFINE-ing macros with arguments, and document
8355         behavior when the same variable has multiple AC_DEFINEs.
8356         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
8357         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
8358         macros directly, giving much shorter and simpler code.
8360 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
8362         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
8363         space before "$ac_configure_args" to prevent a 'config.status
8364         --recheck' failure if ac_configure_args doesn't contain a leading
8365         space.  This works around a problem with the XEmacs configure.ac,
8366         which uses the (undocumented) ac_configure_args variable
8367         inconsistently with Autoconf.
8369 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8371         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
8372         Include <limits.h>, and use its INT_MAX to rewrite the
8373         j loop so that it does not overflow 'int'.  Problem reported by
8374         Ralf Wildenhues in
8375         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8376         Play it safe by shifting left by 1 rather than multiplying by 2,
8377         as GCC is less likely to optimize this away when the value
8378         is signed (when it assumes overflow leads to undefined behavior).
8379         Also, don't assume time_t uses two's complement.
8381 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8383         * tests/torture.at (Substitute a 2000-byte string): Avoid using
8384         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
8385         dumps core on it.  Report by Tim Rice.
8387 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
8389         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
8390         --disable-option-checking to --help output even when
8391         AC_PRESERVE_HELP_ORDER is not used.
8392         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
8393         --with argument, rather than argument with [-.] replaced by
8394         underscores.
8395         * NEWS: Fix typo in previous change; the news was in the
8396         wrong section.
8398 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8400         * NEWS: Warnings are now generated by default for unknown
8401         --enable-* and --with-* options.
8402         * doc/autoconf.texi (Option Checking): Renamed from
8403         (Configure Option Checking).  Tighten up the wording a bit.
8404         (External Software, Package Options): Cross-reference to Option
8405         Checking, and use this to shorten our section.
8406         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
8407         "$x" to test "x$foo" != x.
8408         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
8409         Don't warn if $enable_option_checking is "no".
8410         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
8411         ac_unrecognized_opts to the empty string.
8412         Don't echo the unrecognized opts, as this might mishandle
8413         backslashes or leading -.
8414         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
8415         usage next to the other --disable-FEATURE options in the
8416         help string.
8418 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
8420         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
8421         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
8422         Print warning for unrecognized --with and --enable options
8423         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
8424         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
8425         Disable option checking when subdirs are configured.
8426         (AC_OUTPUT): If warnings are enabled, print warning about
8427         unrecognized --with and --enable options at the end of
8428         the configure output (as well as at the beginning).
8429         * doc/autoconf.texi (Option Checking): New node.
8430         Document new option warning functionality.
8432 2006-12-16  Eric Blake  <ebb9@byu.net>
8434         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
8435         * NEWS: Start news for current version.
8437 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8439         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
8440         Define HAVE_GETMNTENT to 1, not to the empty string.
8441         Problem originally reported by Jochen Friedrich in
8442         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
8444         This change prompted by a problem report by Andrey Simonenko in
8445         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
8446         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
8447         object-like macros only, in the traditional portable character
8448         set.
8449         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
8450         Warn about attempts to define things that are not identifiers.
8451         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
8452         awful hack that AC_DEFINEd macro names containing parentheses.
8454 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8456         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
8457         too drastic, even if Texinfo in theory requires it for info mode.
8459         (config.status Invocation): Renamed back from Recreating a
8460         Configuration).
8461         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
8462         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
8464 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
8466         * NEWS: Version 2.61a.
8468 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
8469         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8471         * NEWS: Document changes with echo and printf, and the lack
8472         of limits on the total size of multi-line values of substituted
8473         variables, and the AC_FUNC_FSEEKO fix.
8475 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
8477         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
8478         Writing configure.ac.
8479         (Autoconf Input Layout): Renamed from configure.ac Layout.
8480         (Recreating a Configuration): Renamed from config.status Invocation.
8481         (Obsolete Recreation): Renamed from Obsolete config.status Use.
8482         (acconfig Header): Renamed from acconfig.h.
8483         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
8484         (Writing Testsuites): Renamed from Writing testsuite.at.
8485         (Autom4te Cache): Renamed from autom4te.cache.
8487         * BUGS: Remove mention of VPATH problem, since it's now documented
8488         not to be a bug in the Autoconf build procedure itself, but rather
8489         a problem with the proprietary `make' programs.
8491         * doc/autoconf.texi (Build Directories): Add a cross reference
8492         to VPATH and Make.
8494         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
8495         * doc/standards.texi: Sync from gnulib.
8497         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
8498         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
8499         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
8500         generated automatically.
8502 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
8504         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
8505         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
8506         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
8508 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8510         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
8511         `CEOF$ac_eof' special marker, the awk script cannot contain a
8512         line matching `^CEOF', so this is not needed any more.
8513         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
8514         special marker in the test.
8516 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
8518         * tests/tools.at (autom4te preselections): Use `find -newer';
8519         remove one of the sleeps.
8521         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
8522         more readable, using ...
8523         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
8525         * doc/autoconf.texi (autoheader Invocation): Do not double-
8526         quote the parameter of `AH_BOTTOM' in the example.
8528 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
8530         * doc/autoconf.texi (Configuration Headers): Remove the
8531         example with multiple input files.
8532         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
8533         multiple input files.
8535 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8537         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
8538         creating the awk substitution script, handle one input line at a
8539         time, so that the maximum length of a substituted (multi-line)
8540         value is not limited by the size of the sed pattern space.
8541         The trade-off is a slightly repetitive sed script.
8542         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
8543         can only have up to 7 characters, due to Solaris 10 /bin/sed.
8544         * tests/torture.at (Substitute a 2000-byte string): Increase the
8545         test with several long lines, they should not be caught by sed
8546         limits any more.
8548         * tests/tools.at (autom4te preselections): New test, to flag
8549         entries missing from autom4te.cfg.
8550         Report by David Byron <dbyron@hheld.com>.
8552         * tests/torture.at (Substitute a 2000-byte string): Actually use
8553         AC_PROG_AWK, so the last change works as intended.
8554         (Substitute and define special characters): Likewise.
8555         (Substitute a newline): Likewise.
8557         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
8558         instead of `awk' consistently.
8559         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
8560         * tests/torture.at (Torturing config.status): Test both the
8561         result of AC_PROG_AWK and plain awk.
8562         (Substitute a 2000-byte string): Likewise.
8563         (Substitute and define special characters): Likewise.
8564         (Substitute a newline): Likewise.
8566 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
8568         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
8569         can be assigned to a function pointer.  Problem reported by
8570         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
8571         part of a patch by Ralf Wildenhues in that same bug report.
8573 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8575         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
8576         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
8578 2006-12-01  Eric Blake  <ebb9@byu.net>
8580         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
8581         cross-compiling from cygwin to mingw.
8582         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
8583         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
8584         to lib/autoconf/c.m4.
8586 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8588         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
8589         string for more reliable failure.  Wrap the entire test that
8590         causes the broken Solaris printf to dump core, in a subshell,
8591         so the segmentation fault message is reliably suppressed.
8592         Fix shell expansion errors by using /usr/ucb/echo always;
8593         avoid an error on systems without it by another subshell.
8594         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
8595         subshell-$as_echo to `as_echo', for better error message.
8597 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8599         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
8600         `BASH_SOURCE' contain a newline, set them to empty, as they may
8601         not be unset.
8603 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
8605         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
8606         years and is too hard to maintain now.  The last straw was
8607         reported by Jerker Baeck in
8608         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
8609         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
8610         * doc/autoconf.texi (Particular Functions): Move
8611         AC_FUNC_SETVBUF_REVERSED from here...
8612         (Obsolete Macros): ... to here.  Say that it does nothing now.
8613         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
8614         Turn into (almost) a no-op.
8616         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
8617         (AC_C_VOLATILE):
8618         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
8619         These macros are obsolescent and new applications shouldn't need them.
8620         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
8621         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
8622         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
8623         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8624         (AC_FUNC_VPRINTF): Likewise.
8625         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
8626         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
8627         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
8629         * doc/autoconf.texi (Setting Output Variables): Mention that
8630         @VAR1@VAR2 has unspecified behavior.  Problem reported by
8631         Ralf Wildenhues.
8632         * NEWS: Mention this.
8634         * Makefile.am: Put only a single '#' into the copyright notice,
8635         so that it's also present in the output file.  Standardize wording
8636         in makefile copyright notices to match GNU coding standards.
8637         * bin/Makefile.am: Likewise.
8638         * doc/Makefile.am: Likewise.
8639         * lib/Makefile.am: Likewise.
8640         * lib/freeze.mk: Likewise.
8641         * lib/autoconf/Makefile.am: Likewise.
8642         * lib/autoscan/Makefile.am: Likewise.
8643         * lib/autotest/Makefile.am: Likewise.
8644         * lib/m4sugar/Makefile.am: Likewise.
8645         * man/Makefile.am: Likewise.
8646         * tests/Makefile.am: Likewise.
8647         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
8648         one-line file.
8650 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8652         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
8653         in the sed script that mangles the awk script: delete up to the
8654         first exclamation mark only.
8655         * tests/torture.at (Substitute and define special characters):
8656         Test '!' too.
8658 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8660         Rewrite config files generation: avoid quadratic growth in
8661         the number of substituted variables by using awk instead of sed
8662         for the bulk of the substitutions.
8663         * NEWS: Mention this.
8664         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
8665         forbidden in the output (and thus input) file.
8666         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
8667         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
8668         generate just one large awk script for substitutions,
8669         eliminating much of the earlier complexity, while adding some
8670         new complexity.  Only expand the substitution templates at
8671         configure time, for smaller configure script size.  If
8672         _AC_SUBST_FILES are used, test 'awk' for working getline support
8673         at config.status time.  If absent, interpolate through the
8674         shell.  The awk script was written with much help
8675         from Paolo Bonzini and Paul Eggert.
8676         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
8677         (_AC_SED_FRAG_NUM): Likewise.
8678         (_AC_SUBST_CMDS): Renamed from...
8679         (_AC_SED_CMDS): ...this.
8680         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
8681         * tests/torture.at (Substitute a 2000-byte string): Also
8682         substitute a line with 1000 words, and a variable with several
8683         long lines.
8684         (Substitute and define special characters): Test awk special
8685         characters, and put substitution input strings `@foo@' in the
8686         output, to test that no recursion happens; test several other
8687         combinations from Paolo Bonzini.
8689 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8691         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
8692         that replaced echo with AS_ECHO where this wasn't necessary.
8693         Problem reportd by Ralf Wildenhues.
8694         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
8695         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
8696         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
8698 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8700         * lib/freeze.mk (GREP): Removed, no need to initialize this.
8702 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
8704         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
8705         that traditional Awk lacks 3-arg "split".  It has it.
8706         Mention that FS must be a single character, and a few other
8707         99-byte limits of traditional Awk.
8708         Mention that if (i in a) doesn't work with traditional Awk.
8710 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8712         * tests/autotest.at (BSx641-newline in command):
8713         (BS-BS-newline in command, BSx640-newline in command):
8714         (Newline-CODE-BS-newline in command):
8715         (Single-quote-BS-newline in command):
8716         (Single-quote-newline-BS-newline in command):
8717         Use printf '%s\n' instead of echo, for portability to hosts
8718         where echo interprets backslashes.  This will break on hosts
8719         that lack printf, but for now let's assume all such hosts
8720         are dead (if not, we should get reports of test failures).
8722 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8724         'echo' has some portability problems, when given a first argument
8725         with a leading '-', or when given any argument containing '\'.
8726         Avoid using 'echo' in these cases.
8727         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
8728         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
8729         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8730         * lib/autotest/general.m4 (AT_INIT): Likewise.
8731         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
8732         argument might be unportable.
8733         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
8734         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
8735         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
8736         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
8737         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
8738         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
8739         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
8740         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
8741         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
8742         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
8743         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
8744         (AC_PROG_MAKE_SET): Likewise.
8745         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
8746         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
8747         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
8748         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
8749         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
8750         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
8751         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
8752         * bin/autoconf.as: Redo verbose flag implementation, as the old
8753         scheme wouldn't work with AS_ECHO.
8754         * lib/autotest/general.m4 (AT_INIT): Likewise.
8755         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
8756         Don't use ECHO_T, since ECHO_N is now reliable.
8757         * lib/autotest/general.m4 (AT_INIT): Likewise.
8758         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
8759         rather than using a here-document to put the script into a file.
8760         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
8761         use AS_ECHO.
8762         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
8763         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
8764         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
8765         bug, but we might as well stop using ECHO_N and ECHO_C internally.
8766         * lib/autotest/general.m4 (AT_SETUP): Likewise.
8767         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
8768         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8769         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
8770         operand, as AS_ECHO requires.  Avoid double file name expansion.
8771         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
8772         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
8773         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
8774         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
8775         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8776         Double-quote strings that would otherwise contain M4 comments.
8777         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
8779         * configure.ac (AC_INIT): Bump to 2.61a.
8780         * NEWS: Likewise.
8782 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8784         Version 2.61.
8786         * configure.ac (AC_INIT): Bump to 2.61.
8787         * NEWS: Likewise.
8789         * tests/autotest.at (Macro with backslash in a test title):
8790         Comment out for now, as this tests neither fails nor passes
8791         reliably.  Problem reported by Ralf Wildenhues.
8793 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8795         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
8796         in previous change, which caused test failures.
8798 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
8800         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
8801         code for --enable, --disable, --with, and --without to...
8802         (_AC_INIT_PARSE_ENABLE): ... a new macro.
8803         * doc/autoconf.texi (Package Options):
8804         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
8806 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
8808         Import these changes from config via gnulib:
8810         2006-11-15  Ben Elliston  <bje@gnu.org>
8812         From Josselin Mouette <joss@debian.org>:
8813         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
8815         2006-11-08  Ben Elliston  <bje@gnu.org>
8817         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
8819         2006-11-07  Steve Woodford  <scw@NetBSD.org>
8820                     Ben Elliston  <bje@gnu.org>
8822         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
8823         * build-aux/config.sub (sh5el): New basic_machine.
8826         Import this change from coreutils:
8828         2006-02-13  Jim Meyering  <jim@meyering.net>
8830         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
8833         Import this change from gnustandards via gnulib:
8835         2006-11-15  Karl Berry  <karl@gnu.org>
8837         * standards.texi: core -> memory, throughout.
8838         (CPU Portability): show correct example of calling write
8839         on a char value; thanks to Paul Eggert for the code.
8840         Both of these suggestions from Eugene Y. Vasserman.
8843         Import these changes from texinfo via gnulib:
8845         2006-11-08  Karl Berry  <karl@gnu.org>
8847         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
8848           as well as pdf images, since they are supported in pdftex with
8849           no further ado.
8851         2006-11-05  Karl Berry  <karl@gnu.org>
8853         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
8855 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8857         * NEWS: Document the AC_ARG_WITH change.
8859 2006-11-13  Bruno Haible  <bruno@clisp.org>
8861         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
8862         options, transliterate also dots to underscores.
8863         (_AC_ENABLE_IF): Transliterate also dots to underscores.
8864         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
8865         first argument may also contain dots.
8867 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8869         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
8870         benefit of platforms like Solaris+GCC where it is common to have a
8871         non-working g++ installation.
8873 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8874         and Joel E. Denny  <jdenny@ces.clemson.edu>
8875         and Paul Eggert  <eggert@cs.ucla.edu>
8877         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
8878         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
8879         ./micro-suite.
8881 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
8883         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
8884         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
8885         Imported from a similar patch to gnulib by Bruno Haible.
8887 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
8889         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
8890         * doc/autoconf.texi (C Compiler): Document them.
8891         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
8892         New macros, taken from gnulib.
8894 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8896         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8897         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8898         Matthew Woehlke.
8900 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8902         * tests/torture.at (Configuring subdirectories): Do not skip
8903         Automake 1.10 nor future Automake 11.1 (sic).
8905 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
8906         and Stepan Kasal  <kasal@ucw.cz>
8908         Handle special characters in test case titles correctly.
8909         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
8910         properly.
8911         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
8912         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
8913         argument.  Extend to check titles printed by ./micro-suite and
8914         ./micro-suite -l and the title in micro-suite.log.
8915         (Backquote in a test title,
8916         Single-quote in a test title,
8917         Double-quote in a test title): Don't expect failure anymore.
8918         (Backslash in a test title): Put a non-whitespace character after the
8919         backslash so that Bourne shells might actually see it as an escape
8920         sequence.
8921         (Brackets in a test title,
8922         Pound in a test title,
8923         Comma in a test title,
8924         Quoted Macro in a test title,
8925         Macro in a test title,
8926         Macro with single-quote in a test title): New tests.
8927         (Macro with backquote in a test title,
8928         Macro with double-quote in a test title,
8929         Macro with backslash in a test title): New tests expected to fail.
8930         * tests/torture.at (#define header templates): M4-quote this title in
8931         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
8932         The visible effect was a stray [] in the testsuite output.
8934 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8936         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
8937         `trap ... 0' inside a function, for AIX sh.
8939 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8941         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
8942         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
8943         5363) simply issues a warning when dividing by zero at compile
8944         time.  Problem reported by Elias Pipping.
8946 2006-10-26  Eric Blake  <ebb9@byu.net>
8948         * THANKS: Update.
8949         * doc/autoconf.texi (Evaluation Macros): Improve the example to
8950         show effect on macros that expand with commas.
8951         Reported by Joel E. Denny.
8953         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
8954         Also work with M4 1.4.8.
8956 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8958         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
8959         Jim Meyering.
8961 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
8963         * tests/tools.at (autom4te --force): New test, verifies that
8964         `--force' always rewrites the output file.
8966 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8968         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
8969         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
8971 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
8973         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
8975 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8977         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
8978         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
8979         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
8980         reported by Nelson H. F. Beebe for Coreutils 6.4.
8982         * tests/tools.at (autoconf --trace: user macros): Remove test
8983         for tracing multiline macros, since m4 1.4.7a uses a different
8984         way to number lines.  Problem reported by Ralf Wildenhues.
8986 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
8988         * bin/autom4te.in (handle_m4): Do not redirect stdin to
8989         /dev/null since the heuristics for interactive behaviour was
8990         fixed in CVS m4.
8992         * bin/autom4te.in: With --force, always refresh the output
8993         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
8995         * bin/autoconf.as: Fix the verbose message at the end.
8997 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8999         * configure.ac (AC_INIT): Bump to 2.60c.
9000         * NEWS: Likewise.
9002 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
9004         * NEWS: Version 2.60b.
9006         Import this change from Texinfo:
9007         2006-10-15  Karl Berry  <karl@gnu.org>
9008         * build-aux/texinfo.tex: automake 1.10
9010         * NEWS: Remove AC_CACHE_CHECK_INT.
9011         * doc/autoconf.texi (Caching Results): Likewise.
9012         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
9013         AC_CACHE_CHECK_INT, since it's no longer public.
9014         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
9015         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
9017 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9019         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
9021 2006-10-19  Eric Blake  <ebb9@byu.net>
9023         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
9024         (m4_maketemp): Avoid warnings with M4 1.9a.
9025         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
9026         m4_mkstemp.
9027         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
9028         * NEWS: Likewise.
9030 2006-10-16  Eric Blake  <ebb9@byu.net>
9032         * doc/autoconf.texi (Setting Output Variables): Fix typo.
9034         * bin/autoconf.as (version): Reword to match GNU Coding
9035         Standards.
9036         * bin/autoheader.in (version): Likewise.
9037         * bin/autom4te.in (version): Likewise.
9038         * bin/autoreconf.in (version): Likewise.
9039         * bin/autoscan.in (version): Likewise.
9040         * bin/autoupdate.in (version): Likewise.
9041         * bin/ifnames.in (version): Likewise.
9043 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
9045         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
9046         looking for special shell characters.
9047         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
9048         macro defined by AS_VAR_PUSHDEF before passing it as a
9049         parameter.
9050         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
9051         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
9052         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
9053         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
9054         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
9055         Likewise.
9056         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
9057         AS_VAR_* properly.
9058         * tests/m4sh.at (AS_LITERAL_IF): New test.
9060 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9062         (Imported from Automake.)
9063         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9064         which incorrectly sets the mode of an existing destination
9065         directory.  In some cases the unpatched install-sh could do the
9066         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9067         system.  We hope this is rare in practice, but it's clearly worth
9068         fixing.  Problem reported by Alex Unleashed in
9069         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9070         Also, don't bother to check for -m bugs unless we're using -m;
9071         suggested by Stepan Kasal.
9073 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9075         Import this change from Automake:
9077         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
9078         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
9079         is enabled by default with gnu and gnits strictness.
9080         Report from Bruno Haible.
9082         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
9083         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
9084         gnu and gnits modes.
9086         Import this change from Config:
9088         2006-09-20  Ben Elliston  <bje@gnu.org>
9089         * build-aux/config.sub (score, score-*): New.
9091         Import this change from Gnulib:
9093         2006-09-16  Karl Berry  <karl@gnu.org>
9094         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9095         to avoid sectioning errors.
9097         Import these changes from Texinfo:
9099         2006-10-04  Karl Berry  <karl@gnu.org>
9100         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
9101         (\quoteexpand): rename to \rquoteexpand.
9102         (\codequoteleft): new def, to look for @set codequotebacktick.
9103         (\lquoteexpand, \quoteexpand): new defs.
9104         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
9105         (\code): must use new \...Char values, since now ` is active.
9107         2006-08-26  Karl Berry  <karl@gnu.org>
9108         * build-aux/texinfo.tex (\textdegree): New command.
9110         2006-08-12  Karl Berry  <karl@gnu.org>
9111         * build-aux/texinfo.tex (error \box0): smaller font.
9113 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9115         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
9117 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
9119         * doc/autoconf.texi (Autoheader Macros): Warn that the text
9120         added to the template can get mangled.
9122 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9124         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
9125         include the default headers, and redefine obstack_chunk_alloc
9126         and obstack_chunk_free.  Fixes false failure with glibc.
9128 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9130         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
9131         for backward compatibility with Libtool 1.5.22.  Problem reported
9132         by Ralf Wildenhues.
9134 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9136         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
9137         AC_PROG_CC.
9138         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
9140 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9142         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
9143         the NonStop platform.
9144         * doc/autoconf.texi (Posix Variants): Likewise.
9145         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
9147         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
9148         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
9149         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
9150         Use a better substitute, by inspecting the output of "ls"
9151         rather than just using ":".
9152         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
9153         rather than AS_EXECUTABLE_P, since we needn't worry about
9154         non-regular files here.
9156         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
9157         due to configuration hassles with this.  See Tonya Underwood's report
9158         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
9159         * doc/autoconf.texi (Special Shell Variables): Likewise.
9161 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9162             Stepan Kasal  <kasal@ucw.cz>
9164         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
9165         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
9167 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
9169         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
9170           initialization which is not inherited through the environment
9171         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
9172         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
9174 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9176         * doc/autoconf.texi (Limitations of Usual Tools): Describe
9177         problems with mkdir -p -m.
9179 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
9181         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
9182         comment about ac_cpp_err; it was incorrect, and anyway
9183         ac_cpp_err is being removed below.
9184         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
9185         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
9186         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
9187         nobody uses it.
9188         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
9189         with werror_flag and conftest.err and so forth.  This is more
9190         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
9191         and anyway the user shouldn't normally want to see this gorp logged.
9192         Problem reported by Ralf Wildenhues.
9193         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
9194         empty, not 'no', since the rest of the code uses 'test -z'.
9196 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
9198         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
9199         Use a single call to AC_DO_TOKENS rather than multiple, for
9200         efficiency.
9201         (_AC_LINK_IFELSE): Test that resulting file is executable.
9202         Problem reported by mwoehlke in
9203         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
9205         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
9206         than creating a file to use with test -x; this is much faster.
9208 2006-10-02  Bruno Haible  <bruno@clisp.org>
9210         * lib/autom4te.in (Automake-preselections): Add
9211         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
9213 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
9215         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
9216         standard error, `experr' should be used, not `expout'.
9218 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9220         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
9221         fseeko testing program twice; just use the earlier result.
9222         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9223         Set cache var to 'unknown' (not 'no') if leaving the macro unset
9224         still doesn't let the program compile.
9225         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
9226         failed.
9228         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
9229         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
9230         include it, without including anything else.
9231         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
9232         expressions.
9233         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
9235 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9237         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
9238         `error.h', and include it, for a `error_at_line' prototype.
9239         Use a nonempty format string in the link test.
9240         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
9241         for a declaration of wait3.
9243 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9245         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
9246         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
9247         can apply to constants too, and that it checks for macro defns.
9248         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
9249         and simply cast the identifier to void.  This handles structure
9250         values.  Problem reported by Ralf Wildenhues.
9251         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
9253 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9255         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
9256         structure, and function symbols.
9258 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9260         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
9261         member.
9263 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9265         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
9266         * README: Likewise.
9267         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9269 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9270         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9272         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
9273         warnings (uninitialized value).
9274         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
9275         present.
9276         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
9277         parentheses.
9278         (AC_STRUCT_TM): Likewise, avoid unused variables.
9280 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9282         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
9283         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
9284         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
9285         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
9286         Report by Olly Betts.
9288 2006-09-19  Eric Blake  <ebb9@byu.net>
9290         * m4/m4.m4: Change copyright.
9291         * configure: Regenerate.
9292         * Makefile.in: Likewise.
9293         * bin/Makefile.in: Likewise.
9294         * doc/Makefile.in: Likewise.
9295         * lib/Makefile.in: Likewise.
9296         * lib/Autom4te/Makefile.in: Likewise.
9297         * lib/autoconf/Makefile.in: Likewise.
9298         * lib/autoscan/Makefile.in: Likewise.
9299         * lib/autotest/Makefile.in: Likewise.
9300         * lib/emacs/Makefile.in: Likewise.
9301         * lib/m4sugar/Makefile.in: Likewise.
9302         * man/Makefile.in: Likewise.
9303         * tests/Makefile.in: Likewise.
9305         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
9306         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
9307         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
9308         --error-output, to avoid warnings with M4 2.0.
9310 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
9312         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
9313           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
9314         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
9316 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
9318         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
9319         expansion of AC_CHECK_FUNCS.
9321 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
9323         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
9324         mistaken comment: the path has to be relative; do not use
9325         the path at runtime.
9327 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9329         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
9330         argument to `--prefix' for sub-configure scripts.
9331         Pass `--silent' to sub-configure scripts.
9332         * tests/torture.at (Configuring subdirectories): Add tests
9333         for both changes.
9334         * doc/autoconf.texi (Setting Output Variables): Fix example to
9335         not show `--silent' being passed to a `configure' re-run.
9337 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9339         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
9340         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
9341         for the existence of the directory at configure-time.  That's
9342         too late, anyway.  Problem reported by Stefan Seefeld.
9344         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
9345         7.1.4 /usr/bin/posix/sh described by Tim Rice in
9346         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
9348 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
9350         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
9351         works with GNU M4 1.4.3 again; make the normalized form
9352         match the current m4 message; fix the description.
9353         * test/tools.at (autom4te cache): Adapt to the change.
9355 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
9357         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
9358         to catch glibc bug 2821
9359         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9361         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
9362         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
9363         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
9364         assume C89.
9366 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
9368         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
9369         preselections ...
9370         (Autoconf): ... here.
9371         (Autoscan-preselections): Delete.
9373 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
9375         * lib/autom4te.in (Automake-preselections): Preselect
9376         AM_ENABLE_MULTILIB.
9378 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9380         * doc/autoconf.texi (Preset Output Variables): srcdir and
9381         top_srcdir are not necessarily relative.  Problem reported
9382         by Dries Kimpe.
9384 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9386         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
9387         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
9388         accept files with extension `.f'.  For consistency, also prefer
9389         xlf over f77.
9390         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
9391         from last patch.
9393 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
9395         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
9396         of ERLANG_LIB_VER_* variables.
9397         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
9398         variables.
9400 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9401         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9403         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
9404         bugs of Bash 2.01 and 2.05a.
9405         (Fortran Compiler): Document that AC_PROG_CC should be called
9406         before AC_PROG_FC, due to a bug in Autoconf.
9408 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9410         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
9411         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
9412         except the first two arguments are reversed.
9413         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
9414         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
9415         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
9416         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
9417         equivalent to the old AC_COMPUTE_INT.
9418         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
9419         All uses changed to AC_CACHE_CHECK_INT.
9420         * tests/base.at (AC_CACHE_CHECK_INT): New test.
9421         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
9423 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9425         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
9426         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
9427         programs should use their Gnulib counterparts.
9428         * doc/autoconf.texi (Particular Functions): Likewise.
9429         (Macro Names, testsuite Invocation): Replace uses of these
9430         obsolete macros with uses of non-obsolete macros.
9432 2006-08-29  Eric Blake  <ebb9@byu.net>
9434         * configure.ac (AC_INIT): Bump to 2.60b.
9435         * NEWS: Update.
9437 2006-08-28  Eric Blake  <ebb9@byu.net>
9439         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
9440         mistakenly swapped on 2006-08-15.
9442 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9444         * NEWS: Version 2.60a.
9446 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
9448         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
9449         file created by the PGI compiler.
9451 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
9453         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
9454         simplify the code.
9456 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9458         Fix Lex library problem reported to us by Julio Garvia.
9459         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
9460         for the default, which the user can override.
9461         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
9462         deal with LEXLIB.
9463         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
9464         didn't work if some values were cached but not others.  Test for
9465         broken lex libraries like native ia64-hp-hpux11.22; see
9466         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
9467         work around the problem by preferring an empty LEXLIB to -lfl or
9468         -ll.  Let the user set LEXLIB='' to indicate no library needed.
9470         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
9471         * README: Likewise.
9472         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9474 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9476         Rework to use more-modern build style.
9477         Many files are renamed; all uses of their names were changed.
9478         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
9479         * .x-sc_useless_cpp_parens: New file.
9480         * build-aux/config.guess: Renamed from config/config.guess.  Update.
9481         * build-aux/config.sub: Renamed from config/config.sub.  Update.
9482         * build-aux/elisp-comp: Renamed from config/elisp-comp.
9483         * build-aux/install-sh: Renamed from config/install-sh.  Update.
9484         * build-aux/mdate-sh: Renamed from config/mdate-sh.
9485         * build-aux/missing: Renamed from config/missing.
9486         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
9487         * build-aux/vc-list-files: Renamed from config/vc-list-files.
9488         * config/Makefile.am: Removed.
9489         * config/mkinstalldirs: Removed.
9490         * config/move-if-change: Removed.
9491         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
9492         * Makefile.am (SUBDIRS): Remove config.
9493         (ACLOCAL_AMFLAGS): Include from m4, not config.
9494         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
9495         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
9496         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
9497         Fail if there's an error.
9498         * Makefile.cfg (move_if_change): Remove.
9499         (wget_files): Remove.
9500         (cvs_executable_files): New macro.
9501         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
9502         (executable-update): Use $(cvs_executable_files).
9503         (local-checks-to-skip): Remove.
9504         * Makefile.maint: Merge from coreutils, plus add our own changes
9505         (gzip_rsyncable): New macro.
9506         (GZIP_ENV): Use it.
9507         (CVS_LIST): Use build-aux/vc-list-files.
9508         (VERSION_REGEXP): New macro.
9509         (local-checks-available): Add patch-check, $(syntax-check-rules),
9510         check-AUTHORS.
9511         (syntax-check-rules): Compute dynamically.
9512         (sc_cast_of_x_alloc_return_value): Work even if no source files.
9513         (sc_cast_of_alloca_return_value): Likewise.
9514         (sc_prohibit_atoi_atof): Simplify regexp.
9515         (sc_no_if_have_config_h, sc_require_config_h):
9516         (sc_prohibit_assert_without_use,
9517         (sc_obsolete_symbols): Check for O_NDELAY.
9518         (sc_texi_notab): Remove.
9519         (sc-changelog): Don't make an exception for '----' lines.
9520         (.re-list): Remove, so we don't have a junk file behind.
9521         (sc_system_h_headers): Remove the need for .re-list.
9522         (sc_the_the):  New rule.
9523         (sc_tight_scope): Simplify.
9524         (sc_trailing_blank): Renamed from sc_trailing_space.
9525         (longopt_re): New macro.
9526         (sc_two_space_separator_in_usage): New rule.
9527         (sc_unmarked_diagnostics): Look at all files under CVS.
9528         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
9529         (news-date-check, changelog-check): Version is OK.
9530         (po-check): Look for lib files even if not in CVS.
9531         (copyright-check): Use $() not ``.
9532         (maintainer-distcheck): Do not depend on changelog-check.
9533         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
9534         Also check for -Wpointer-arith.
9535         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
9536         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
9537         Remove.
9538         (announcement): Add --gpg-key-id arg.
9539         (cvs-sv): Remove.
9540         (move_if_change): Just use mv.
9541         (local_updates: Remove wget-update, po-update.
9542         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
9543         (config.guess-url_prefix, config.sub-url_prefix): Remove.
9544         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
9545         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
9546         ($(get-targets)): Remove.
9547         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
9548         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
9549         (cvs-update): Get from gnulib.
9550         (emut_upload_commands): gnupload is in build-aux now.
9551         (alpha beta major): Add changelog-check.  Check version.
9552         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
9553         (AC_CONFIG_FILES): Remove.
9554         * bin/autoconf.as: Add spaces to avoid distcheck warning.
9555         * config/announce-gen: Sync from coreutils.
9556         * doc/make-stds.texi: Sync from gnulib.
9557         * doc/standards.texi: Likewise.
9558         * man/Makefile.am: Adjust for config -> build-aux renaming.
9559         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
9560         * tests/local.at: Adjust from config -> build-aux renaming.
9561         * tests/tools.at: Likewise.
9562         * tests/torture.at: Likewise.
9564         * NEWS: The C99 check now tests for vararg macros and 64-bit
9565         preprocessor ints.
9566         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
9567         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
9568         64-bit preprocessor ints.  Check for static initialization of
9569         long long.  Remove unnecessary casts.
9571 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9573         * doc/autoconf.texi (Particular Programs): Mention that
9574         @INSTALL@ and @MKDIR_P@ may vary for different output files.
9575         Reported by Alexandre Duret-Lutz.
9577 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9579         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
9580         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
9581         Bill Northcott in
9582         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
9584 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9586         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
9587         pacify insanely picky compilers.  Problem reported by Eric Blake.
9589         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
9590         longer supported by Sun.
9592 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9594         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
9595         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
9596         -Wundef -Werror".  Problem reported by David Fang in
9597         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
9598         * doc/autoconf.texi (Header Templates, Default Includes):
9599         (Particular Functions, Generic Functions, Header Portability):
9600         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
9601         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
9602         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
9603         Prefer #ifdef to #if.
9604         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
9605         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
9606         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
9607         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
9608         Likewise.
9609         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
9610         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
9611         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
9612         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9613         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
9614         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
9615         this.
9617 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9619         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
9620         problems with arg script text that doesn't end in newline, and
9621         with '-e a...'.  Problems reported by Ralf Wildenhues.
9623 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
9625         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
9626         check for libXt by a check for libX11.
9628 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9630         * doc/autoconf.texi (config.status Invocation): Adjust according
9631         to last change.
9633 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9635         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
9636         --help' should mention that `--version' outputs configuration
9637         settings.  Report by Bruno Haible.
9639 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
9641         Fix test suite failures reported by Pierre in
9642         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
9643         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
9644         the compiler created a file "b.out" when it didn't create anything
9645         at all.
9646         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
9647         Discard stderr too, when invoking the test script.
9649 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
9651         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
9652         in the restoring of the werror flag.
9654 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9656         * doc/autoconf.texi (Volatile Objects): Be even a little
9657         less skeptical about "volatile", after discussion with
9658         Bruno Haible on bug-gnulib.
9659         (Limitations of Usual Tools): Warn about sed stripping
9660         leading white space from text.  From Bruno Haible.
9662 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
9664         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
9665         compiler complains about it, even if things works after the
9666         complaint.  Problem reported by Peter O'Gorman.
9668         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
9669         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
9670         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
9672 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
9674         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
9675         after -R regardless of host.  Patrick Welche reports that this
9676         fixes things on NetBSD 3.99.
9678         * NEWS: Recommend M4 1.4.5.
9679         * README: Likewise.
9680         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9681         * tests/tools.at (autom4te cache): Update wording of diagnostic
9682         to match M4 1.4.5.
9684 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
9686         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
9687         under AC_C_VOLATILE.
9688         (Volatile Objects): Be a little less skeptical about what
9689         "volatile" means.  Derived from thoughts by Ben Pfaff in
9690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
9692 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9694         * doc/autoconf.texi: Fix some typos.
9696 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
9698         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
9699         more globally, since the 2006-06-30 patch didn't suffice.  Problem
9700         reported by Keith Marshall.  Also, don't bother with builddir2,
9701         since it shouldn't be needed any more.
9703 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
9705         * doc/autoconf.texi (Generic compiler characteristics):
9706         Document AC_COMPUTE_INT.  Fix wrong statements on Default
9707         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
9709         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
9710         (_AC_COMPUTE_INT): Add obsoletion warnings.
9711         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
9712         AC_COMPUTE_INT.
9714         * NEWS: Document change.
9716 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9718         * doc/autoconf.texi (Volatile Objects): New section.
9720         * NEWS: Document previous change.
9722 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9724         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
9725         Require that long long int be at least 64 bits wide.  C99 requires
9726         this and enough programs depend on it so we should check for it.
9727         Bruno Haible reports in
9728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
9729         that long long int is 32 bits wide with some nonstandard compilers.
9730         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9732 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9734         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
9735         to a nonexistent file, so that we don't have to worry about
9736         a local site configuration that doesn't use /usr/local.
9737         Problem reported by Keith Marshall in
9738         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
9740 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
9742         * doc/autoconf.texi: Be more consistent about using @acronym with
9743         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
9744         quite right (it talked about "OSF/Tru64", even though the
9745         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
9746         and it even mentioned "OSF 4"!) and at this point there's little
9747         reason to talk about OSF any more, since it died in 1994.
9748         (Specific Compiler Characteristics): Simplify example of
9749         negative-size array.
9750         (File Descriptors): Reorder to make the text flow better.
9751         Remove joke about "appreciate the various levels"; I didn't get it.
9752         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
9753         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
9754         (File Descriptors, Limitations of Usual Tools):
9755         Tone down the advice against renaming or removing open files.
9756         (Limitations of Usual Tools): Add a new section, on 'rm'.
9758 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
9760         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
9761         -lXt in LIBS, idea from Karsten Hopp; this was due since
9762         this change:
9764         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9765         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
9766         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
9767         (which belong to Xt, not X itself).  See Debian bug 327655.
9769 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9771         * configure.ac (AC_INIT): Bump to 2.60a.
9772         * NEWS: Update.
9774 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9776         Version 2.60.
9778         * configure.ac, NEWS: Update.
9780 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9782         * config/texinfo.tex: Sync from upstream.
9784         * bin/autom4te.in (handle_traces): Transform the `@S|@'
9785         quadrigraph correctly in traces.
9787         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
9788         Fix typos.
9790         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
9791         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
9792         not defined.
9793         * doc/autoconf.texi (Changed Directory Variables): New node,
9794         to document the whole `datarootdir' business a bit better.
9795         * NEWS: Update.
9796         * tests/torture.at (datarootdir workaround): Extend test.
9797         Prompted by report by Alexandre Julliard.
9799 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
9801         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
9802         when using default mode of IBM C 6 for AIX.  Problem and two-line
9803         fix reported by Larry Jones.
9805 2006-06-22  Alexandre Julliard <julliard@winehq.org>
9807         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
9808         about literal '${datarootdir}' if a definition is found in the
9809         output file.
9811 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9813         * NEWS: Use "M4" rather than "m4" when appropriate.
9814         Problem reported by Eric Blake.
9815         * doc/autoconf.texi: Likewise.
9816         Use @acronym around BSD, GCC, and GNU when appropriate.
9817         (Why GNU M4): Renamed from "Why GNU m4".
9818         (Redefined M4 Macros): Mention that Posix
9819         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
9820         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
9821         to int.
9823 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9825         * bin/autom4te.in (handle_output): Do not forbid the empty
9826         pattern.
9827         * tests/tools.at (autoconf: the empty token): New test.
9829 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
9831         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
9832         calls, so that we do not care whether they are LIFO or FIFO;
9833         in the m4_wrap, do not check which diversion is the topmost
9834         one, just check that the stack is balanced at the end.
9835         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
9836         base diversion forever--pop the previous diversion before
9837         opening the new one; consequently, remove the m4_wrap call.
9838         * lib/autotest/general.m4 (AT_INIT): Likewise.
9839         * tests/m4sugar.at: Do not use
9840         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
9842 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
9843         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9845         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
9846         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
9847         Rework example of m4wrap token-pasting trouble so that it doesn't
9848         care whether it's LIFO or FIFO.
9849         Fix some "contrary to"s that are awkward in English.
9851 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9853         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
9854         to `yes' instead of `int$1_t' if the type is found, for more
9855         consistent configure output (where $1 is the number of bits).
9856         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
9857         Suggested by Bruno Haible.
9859         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
9860         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
9861         with system headers.  Report by Bruno Haible.
9863 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9865         * config/config.guess, config/config.sub: Sync from upstream.
9867         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
9868         in order to avoid picking up an older installed frozen m4sh.m4f.
9869         Besides an outdated shell startup, this could have been created
9870         by an earlier M4 version with incompatible frozen file format.
9872 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9874         * README: Recommend m4 1.4.4 instead of 1.4.3..
9875         * doc/autoconf.texi: Likewise.
9876         (Special Chars in Names): Say that $(.FOO) is portable, as
9877         suggested by Stepan Kasal.
9878         (Installation Directory Variables, Build Directories):
9879         (Automatic Remaking, Subdirectories, Fortran Compiler):
9880         (Making testsuite Scripts, Defining Directories):
9881         Quote variable usages better.
9882         (Making testsuite Scripts): Add clean-local rule to makefile
9883         snippet, by Eric Blake.
9884         (Installation Directory Variables): Fix table item font.
9885         Reword slightly to clarify.  Generalize advice about
9886         not using special characters to include all file-related
9887         vars, not just VPATH.
9888         (Special Chars in Variables): Warn about special characters in
9889         $(srcdir) too.
9890         (Assignments): Clarify default-value example as suggested by
9891         Ralf Wildenhues in
9892         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
9893         (Special Shell Variables): Note leading ./ or ../, as suggested
9894         by Eric Blake.
9895         (Limitations of Builtins): Under cd, warn about CDPATH.
9896         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
9897         Ralf Wildenhues.
9899 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9901         * doc/autoconf.texi (Configuration Actions): Remove duplicate
9902         `@var', for texi2html.
9903         (Systemology): Some more word wrapping, for DVI output.
9904         (autom4te Invocation): The short option for `--melt' is `-M',
9905         not `-m'.
9907 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9909         * doc/autoconf.texi: More formatting and English tweaks,
9910         many suggested by Ralf Wildenhues.
9911         Reword to avoid "@code{...}'s" and the like, since it's ugly
9912         with Emacs info mode.  discontents -> woes.
9913         Put a few "will"s back.  time stamp -> timestamp.
9914         side-effect -> side effect.
9916 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9918         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
9919         Warn about $@ not persisting.  Problem reported by Julien Danjou in
9920         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
9921         (Special Chars in Names): Renamed from Leading _ in Macro Names.
9922         Mention other special chars, too.
9924 2006-06-14  Eric Blake  <ebb9@byu.net>
9926         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
9928 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9930         * doc/autoconf.texi: Some systematic minor improvements, as
9931         follows.  Use "makefile" when talking about makefiles
9932         generally (which might be named "makefile" or "Makefile" or even
9933         "foo.mk"), "Makefile" when talking about a specific makefile
9934         called "Makefile".  This unclutters the text from weird quotes
9935         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
9936         values" rather than "@var{foo}s" and similar constructs containing
9937         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
9938         English-language improvements.  Change the prefix "sub-" to "sub"
9939         and "re-" to "re".
9940         Put blank lines around examples more consistently.
9941         Avoid "rather" and "very" as intensifiers.
9942         Avoid "will" as an auxiliary.
9943         (Limitations of Make): Split this node into....
9944         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
9945         (Leading _ in Macro Names, Backslash-Newline-Newline):
9946         (Backslash-Newline Comments, Long Lines in Makefiles):
9947         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
9948         (obj/ and Make, make -k Status, VPATH and Make):
9949         (VPATH and Double-colon, $< in Explicit Rules):
9950         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
9951         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
9952         New nodes, resulting from splitup of Limitations of Make.
9953         All cross-references changed.  Raise the top node from
9954         a section to a chapter, and all subnodes accordingly.
9955         Redo the introductory wording to match the new organization.
9956         (Installation Directory Variables): Use an example that is
9957         closer to what Autoconf actually does.  Mention that VPATH's
9958         value should not contain metacharacters or white space.
9959         (Fortran Compiler): Fix a VPATH bug in an example.
9960         (Leading _ in Macro Names): Mention that this problem is no longer
9961         of practical concern.
9962         (VPATH and Make): Reword the advice to make it clearer
9963         that Autoconf and Automake support VPATH in non-GNU make, but
9964         many packages have bugs in this area.
9965         ($< in Explicit Rules): Refer to Build Directories rather
9966         than using a (non-VPATH-safe) example.
9967         (Automatic Rule Rewriting): Mention the sort of disaster that
9968         can ensue with Solaris-style rule rewriting with VPATH.
9970 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9972         * doc/install.texi (Compilers and Options): Weaken the
9973         suggestion to use GNU make for VPATH builds.
9975         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
9976         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
9978         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
9979         in regular expression.
9981 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9983         * doc/autoconf.texi (Installation Directory Variables):
9984         Drop extra @samp from `@table @samp' item.
9985         (Limitations of Usual Tools): Comment fix.
9986         Do not nest @samp just to point to other table items.
9987         (Writing testsuite.at) <AT_CHECK>: The second argument to
9988         `@dvar' is already @samp'ed.
9989         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
9990         do not use @var in the second argument.
9992 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9994         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
9995         $as_shell.exe too.  Problem reported by Andreas Buening in
9996         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
9998 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10000         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
10001         `unused variable' compiler warning, for `-Wall -Werror'.
10002         Reported by Jaap Haitsma in
10003         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
10005 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10007         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
10008         case the compiler dumps core.  Problem reported for
10009         OpenServer 5.0.7 by Tim Rice in
10010         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
10011         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
10012         Likewise.
10014 2006-06-06  Tim Rice <tim@multitalents.net>.
10016         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
10017         "ERROR" only shows up in "make check" output if there is an
10018         error.
10020 2006-06-06  Eric Blake  <ebb9@byu.net>
10022         * tests/tools.at (automatically allowed tokens): Fix typo.
10024 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10026         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
10028         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
10029         typically overflows on x86 CPUs, even though the C standard
10030         requires otherwise.
10032 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10034         * configure.ac (AC_INIT): Bump to 2.59e.
10035         * NEWS: Update.
10037 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10039         Version 2.59d.
10041         * config/texinfo.tex: Sync from upstream.
10043         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
10044         seen, invoke libtoolize with `--ltdl' argument.
10045         * lib/autom4te.in (Autoreconf-preselections): Adjust.
10046         * NEWS: Update.
10047         Suggested by Eric Blake.
10049 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10051         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
10052         reported by Ralf Wildenhues.
10053         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
10055 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10057         * THANKS: Update.
10059 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10061         * doc/autoconf.texi: Modernize some of the references to Solaris.
10063 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
10065         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
10066         message issued by AC_REQUIRE.
10067         * tests/m4sugar.at: Check m4_require's error message.
10068         * tests/base.at: Check AC_REQUIRE's error message.
10069         * tests/local.at (AT_CHECK_M4): New macro, almost identical
10070         to...
10071         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
10072         AT_CHECK_M4.
10073         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
10074         `expout' as the last parameter.
10075         * tests/tools.at: Adapt to the above change.
10077 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
10079         * doc/autoconf.texi (Limitations of Usual Tools): Correct
10080         information about race-free implementations of mkdir.
10082 2006-06-04  Eric Blake  <ebb9@byu.net>
10084         * bin/autoreconf.in (help): Document M4 environment variable.
10085         * bin/autoconf.as (Usage): Likewise.
10086         * bin/autom4te.in (help): Likewise.
10087         * doc/autoconf.texi (autom4te Invocation): Likewise.
10089 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10091         * NEWS: GNU make now recommended for VPATH builds.
10092         Mention that some macros are now documented to be obsolescent.
10093         * doc/autoconf.texi:
10094         Prefer "current" to "modern" to describe
10095         currently-used (albeit perhaps old-fashioned) hosts.
10096         Mention which ancient features no longer need to be worried about.
10097         setgid -> set-group-ID
10098         setuid -> set-user-ID (these are the Posix terms)
10099         Fix some misuses of "only".
10100         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
10101         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
10102         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
10103         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
10104         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
10105         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
10106         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
10107         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
10108         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
10109         Mention that these macros are obsolescent.
10110         (Installation Directory Variables): shall -> should
10111         (File Descriptors): Mention that 0, 1, 2 might get reopened.
10112         Mention that it's now safe to use 3 and 4.
10113         (Limitations of Usual Tools): cp -r is now specified by Posix.
10114         Omit longwinded and obsolescent discussion of cp -f.
10115         Modernize discussion of expr, ls.
10116         (Limitations of Make): Modernize discussion of VPATH builds.
10117         Mention $? as a workaround in some cases.
10118         * doc/install.texi (Basic Installation):
10119         Mention "./configure; make; make install" first.  Be more
10120         specific about why this file is generic.  Remove unnecessary
10121         parens.  Remove misleading "only".  Remove obsolete advice
10122         about csh.  Don't say "configure" takes awhile; say it
10123         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
10124         and CC=c99 rather than CC=c89, as these are blessed by current
10125         Posix.  Recommend GNU make if doing a VPATH build.
10127 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10129         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
10130         examples involving shell prompts.
10132 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
10133         and Paul Eggert  <eggert@cs.ucla.edu>
10135         * doc/autoconf.texi (Here-Documents): Add details about the
10136         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
10137         use "here-documents" instead of "here documents".
10139 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10141         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
10143 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
10145         * doc/autoconf.texi (File System Conventions): Warn about ":"
10146         anywhere in directory names.
10148 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10150         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
10151         about quoting the case statement, just in case.
10152         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
10153         was fixed in ksh93g; reported by Ralf Wildenhues.
10155 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
10157         * doc/autoconf.texi (System Services): Do not document
10158         overriding EXEEXT via ac_cv_exeext=ext.
10159         (Particular Programs) <AC_PROG_MKDIR_P>:
10160         Document that ${MKDIR_P} understands --.
10161         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
10162         comment.
10164 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10166         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
10167         argument with leading hyphen.  Problem reported by Paul Eggert.
10169 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10171         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
10172         about quoting ac_try: quote all of it, if any of it seems suspicious.
10173         This means we don't have to worry about ${ or sed any more.
10174         Also, double-quote the case statement, to work around misuses via
10175         underquoting as reported by Ralf Wildenhues in
10176         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
10177         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
10178         undocumented and dangerous macro.
10179         Problem reported by Ralf Wildenhues in
10180         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
10182 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10184         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
10185         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
10186         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
10188 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10190         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
10191         since evidently some packages rely on the old, broken behavior.
10192         Problem reported by Ralf Wildenhues in
10193         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
10194         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
10195         pre-2006-05-26 definitions, but leave in the comments that
10196         these macros are dangerous and should not be used.
10197         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
10198         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
10199         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
10200         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
10201         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
10203 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10205         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
10206         the use of 'tr', since this is our only use of 'tr'.
10208 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10209         and Paul Eggert  <eggert@cs.ucla.edu>
10211         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
10212         Don't assume 'grep' works on long lines, since AIX grep doesn't.
10214 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10216         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
10217         the output file in the `${datarootdir}' test.
10219 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
10220         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10222         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
10223         mention of `datarootdir' in the input file(s), but literal
10224         `${datarootdir}' in the output file, and we haven't warned yet,
10225         then warn as well: the user may have (erroneously) used
10226         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
10227         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
10228         * tests/torture.at (datarootdir workaround): Extend this test.
10229         * NEWS: Update.
10231 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10232         and Paul Eggert  <eggert@cs.ucla.edu>
10234         * doc/autoconf.texi (autoheader Invocation): The first argument to
10235         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
10236         alternatives and clear up the language a bit.
10238 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10240         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
10241         ac_config_guess, ac_config_sub, ac_configure.
10242         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
10243         Fix typo that prevented an unnecessary space from being removed.
10244         Problems reported by Ralf Wildenhues in:
10245         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
10247 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10249         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
10250         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
10251         Don't use the term "thread-safe" to talk about mkdir race
10252         conditions, since the problem is more a process than a thread
10253         issue.  Problem reported by Stepan Kasal in:
10254         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
10255         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
10256         the test for 'install' more closely.  Look at MKDIR_P first.
10257         Look in the PATH, and at /opt/sfw/bin.
10258         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
10259         Don't bother to try mkdir -p, since we already check mkdir --version;
10260         just look at the version number.  (There's no easy way to check
10261         for race-free implementations.)
10262         * tests/tools.at (autoconf: subdirectories): Adjust to above
10263         changes, since MKDIR_P now might end in "/mkdir -p".
10265         * doc/autoconf.texi (autoheader Invocation): Mention that the
10266         first arg of AC_DEFINE_UNQUOTED must be a literal.
10267         Problem reported by Ben Pfaff in
10268         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
10270         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
10271         * doc/autoconf.texi (Special Chars in Variables): New section.
10272         (Preset Output Variables): Warn about special chars in CPPFLAGS.
10273         (Installation Directory Variables): Quote $(datadir) better.
10274         (Limitations of Builtins): Describe some of eval's trickiness.
10276         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
10277         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
10278         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
10279         in front of every arg, not just trailing args.  Quote apostrophes.
10280         (_AC_EVAL_ECHO): New macro.
10281         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
10282         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
10283         removed.
10284         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
10285         exposed by quoting of eval argument.  Put the command on line line
10286         so it logs better.
10287         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
10288         (_AC_PATH_X, AC_PATH_X): Quote more safely.
10289         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
10290         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
10291         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
10292         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
10293         Use eval more safely.
10294         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
10295         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
10296         to be replaced.
10297         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
10298         lines, exposed by quoting of eval argument.
10300 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
10301         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10303         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
10304         initialization of `ac_cv_exeext', do not override it if it was
10305         already set, unless it was set to `no', for compatibility with
10306         Autoconf-2.13, and comment this.
10307         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
10308         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
10309         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
10310         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
10311         Document that this test may be overridden by setting
10312         `ac_cv_exeext'.
10314 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10316         Revert these two patches:
10318         2006-04-06  Eric Blake  <ebb9@byu.net>
10319         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
10320         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
10321         2006-04-01.
10323         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
10324         Clean up _AC_COMPILER_EXEEXT* macros.
10325         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
10326           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
10327           ac_file to the name of the default output file and call
10328           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
10329           initial `rm' of the candidate files...
10330         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
10331           the same list in subsequent `rm' calls, and for the temporary
10332           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
10333           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
10334         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
10335         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
10336           no longer needed) by libtool.  Make it a cache check.
10337         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
10338           copied here by mistake.
10339         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
10340           _AC_COMPILER_EXEEXT.
10341         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
10342           _AC_COMPILER_OBJEXT directly.
10343         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10345 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10347         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
10348         Fix description of how the buggy `sed' works.
10350 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
10352         Sync from Automake:
10354         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
10355         ENOLCK.  Only mention `make -j' when applicable.  Only raise
10356         fatal errors when `make -j' is involved.  Improve error message.
10358 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10360         * doc/autoconf.texi (Here-Documents): We now know more about
10361         the variable expansion in here documents bug.
10362         Thanks to Tim Rice and Stepan Kasal.
10364         * doc/autoconf.texi (Making testsuite Scripts): Add an example
10365         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
10367 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10369         * tests/autotest.at (Multiline command from M4 expansion):
10370         No failure to be expected if the shell quotes newlines in
10371         commands in the `set -x' output.  Report by Tim Rice.
10372         * THANKS: Update.
10374 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10376         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
10377         expansion in the here-documents used by config.status, as that
10378         runs afoul of the Korn shell version M-12/28/93d bug described in
10379         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
10380         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
10381         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
10383 2006-05-23  Jim Meyering  <jim@meyering.net>
10385         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10386         Fix typo introduced with 2006-04-02 change.  It reversed the sense
10387         of the test.
10389 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10391         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
10392         ac_dB slightly, to save bytes in the script.
10393         Max out at 50 lines, rather than 96; this is more likely
10394         (though not guaranteed) to avoid obscure 'sed' failures.
10396 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10398         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
10399         `tr -d -' as bad option argument.  Work around this by deleting
10400         an unrelated character.
10401         Report by Tim Rice <tim@multitalents.net>.
10403 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
10404             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
10405             Stepan Kasal  <kasal@ucw.cz>
10407         * doc/autoconf.texi (Particular Programs): Do not promise that
10408         we always prefer the GNU version of the program, and that we
10409         search according to PATH; both rules can have exceptions.
10410         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
10411         AC_PROG_SED.  Move descriptions of limitations
10412         to the Limitations of Usual Tools section.
10413         (Limitations of Usual Tools) <sed>: Mention script length
10414         limitations with Solaris /usr/ucb/sed.
10415         <grep>: Fix wording for empty alternative.  Mention that -c and
10416         -l should not be combined, and that -E and -F should not be
10417         combined.
10419 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10420         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10422         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
10423         limits in Solaris 8 /usr/ucb/sed by testing a long script.
10425 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
10427         * doc/autoconf.texi (Defining Symbols): Literal parameter of
10428         AC_DEFINE is now passed to m4_pattern_allow.
10429         * NEWS: Mention that; likewise for AC_SUBST.
10430         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
10431         the parameter to m4_pattern_allow.
10432         * tests/tools.at: Add a check for that.
10434 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
10436         * lib/autoconf/status.m4: Fix typos.
10438 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10440         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
10441         only the files that this macro generates.
10443 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10445         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
10446         the HP-UX sed limitation of 99 commands, labels do not count.
10447         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
10448         in the comment.
10449         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
10451 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10453         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
10454         Import the following fix from coreutils:
10456         2006-01-13  Jim Meyering  <jim@meyering.net>
10458         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
10459         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
10460         not double-quote uses of that variable, to accommodate the rare
10461         case in which getmntent is available in none of the libraries
10462         checked.  This happens at least on FreeBSD 5.0.
10464 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10466         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
10467         ac_config_guess, ac_config_sub, and ac_configure, since evidently
10468         some other programs unwisely rely on these undocumented vars.
10469         But put in warning comments about them.
10470         Problem reported by Ralf Wildenhues in
10471         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
10472         * NEWS: Document that these variables are intended to go away.
10474 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10476         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
10477         and set the language to C++ (analogous to the equivalent Fortran
10478         tests).
10480         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
10481         * doc/autoconf.texi (C++ Compiler): Document it.
10482         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
10483         * NEWS: Update.
10485 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10487         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
10488         that caused config.status to generate 100-command sed scripts; the
10489         portable limit is 99.
10491 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10493         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
10494         variable `ac_d' instead of `d' to avoid infringing namespace.
10495         Report by Ralf Menzel.
10497 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10499         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
10500         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
10501         * tests/tools.at (autoconf: subdirectories): New test, taken from
10502         the corresponding problem report by Ralf Wildenhues in:
10503         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
10505         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
10506         Quote some uses of shell variables if they might suffer unexpected
10507         globbing.  This doesn't fix all instances of quoting problems that
10508         I found, just the easy ones that look safe.
10509         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
10510         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
10511         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
10512         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
10513         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
10514         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10515         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
10516         Likewise.
10517         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
10518         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
10520 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10522         * bin/autoreconf.in ($help): Reword according to the manual.
10523         Suggested by Olly Betts.
10525 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
10526         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10528         * bin/autoreconf.in: Pass the directory argument to
10529         `require_configure_ac'.  Fix comment.
10530         * tests/torture.at (Configuring subdirectories): Expose this.
10531         Reported by Olly Betts.
10533 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10535         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
10536         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
10537         Automake as follows:
10539         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
10540         `$configure_in' instead of `configure.in', to preserve
10541         directory component.
10543 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10545         * config/config.guess, config/config.sub, config/texinfo.tex,
10546         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
10548 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10550         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
10551         test for C99 conformance; (bool) 0.5 is an integer constant
10552         expression, but (bool) -0.5 is not.  Problem reported by Fedor
10553         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
10555 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10557         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
10558         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
10559         Warn about obsolete install-sh files.  Remove stray sentence
10560         fragment and fix cross reference.
10561         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
10562         install -d; this undoes the 2006-05-10 change.
10563         (MKDIR_P): Mark with AN_MAKEVAR.
10564         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
10565         that we don't require $INSTALL to be thread-safe.  Move comments
10566         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
10567         of AC_PROG_INSTALL.  Output a message saying that we're checking
10568         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
10569         MKDIR_P instead of AC_SUBST.
10570         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
10571         Special magic for MKDIR_P, too.
10572         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
10573         a dnl.
10574         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
10576 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10578         Sync from Automake, as follows:
10580         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10581         * config/install-sh: Initialize IFS, so field splitting isn't
10582         turned off later.
10583         * config/mkinstalldirs: Likewise.
10584         * config/missing: Remove superfluous quotes.  Replace all uses of
10585         `[' by `test', for consistency, and for..
10586         * config/missing (sed_minuso, sed_output): New variables.
10587         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
10588         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
10589         Fixes `missing' to detect `--output' for help2man.  Fixes
10590         PR automake/483.  Report by Dennis J. Linse.
10591         (autom4te): Document in `missing --help'.
10593 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
10595         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
10596         * config/install-sh: Don't use 'path' to talk about file names,
10597         as per GNU coding standards.  Close a race condition reported by Ralf
10598         Wildenhues and Stepan Kasal.  There is still a race condition
10599         on hosts that predate Posix 1003.1-1992, but we can't help this.
10600         Don't mishandle weird characters like space on pre-Posix hosts.
10601         Invoke mkdir at most once per dir arg on pre-Posix hosts.
10602         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
10603         AC_PROG_MKDIR_P from AS_MKDIR_P.
10604         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
10605         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
10606         earlier editions are not (including Automake 1.8.3).
10607         Do not suggest mkinstalldirs for thread-safety.
10608         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
10609         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
10610         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
10611         presence of special characters and race conditions.
10612         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
10613         in Autoconf's name space.
10615 2006-05-10  Bruno Haible  <bruno@clisp.org>
10616         and Paul Eggert  <eggert@cs.ucla.edu>
10618         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
10619         from Automake with minor changes.
10620         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
10622 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
10624         * config/install-sh: Update to Automake CVS version, as follows:
10625         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
10626         * lib/install-sh: Simplify the expr implementation of dirname.
10627         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10628         * lib/install-sh: Handle --, and diagnose unknown options.
10630 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10632         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
10633         `./autom4te' to create `./testsuite', since the `all' target
10634         will ensure its presence, but `installcheck' should not create
10635         the uninstalled wrappers.
10637         * tests/torture.at (Unusual Automake input files): Skip if we
10638         detect automake < 1.8.
10640 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10642         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
10643         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
10644         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
10645         * NEWS: Update.
10647 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10649         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
10650         munge (multiple) white space and other oddities.
10651         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
10652         single quotes in variable assignment.
10653         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
10654         and similar failures by adding multiple spaces, tabs, and other
10655         special characters.
10656         Report and different test suggested by Francesco Romani
10657         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
10659         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
10660         single quotes, we only need to search for single quotes; this
10661         both simplifies the search pattern, and makes us less
10662         susceptible to `echo' variations for arguments not containing
10663         single quotes.
10664         (_AC_ARG_VAR_VALIDATE): Likewise.
10666 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10668         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
10669         `$*' and IFS concatenation issue with traditional shells and
10670         bash-2.04.  Report by Seanster@Seanster.com.
10672 2006-05-03  Bruno Haible  <bruno@clisp.org>
10674         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
10675         precisely which Mac OS X versions have the od problem.
10677 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
10679         * doc/autoconf.texi: Use @option systematically.
10681 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
10682         and Bruno Haible  <bruno@clisp.org>
10684         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
10685         about 'od'.
10686         (Integer Overflow): Mention the special case of integer division
10687         overflow.
10689 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10691         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
10692         traditional shells like the Solaris one that do not use the
10693         first IFS character for assembling `$*'.
10694         Prompted by a related report from autoconf_bug@nro.ca.
10696 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
10697         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10699         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
10700         Mention more problems with the -e option.
10702 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10704         * NEWS: Typo.
10705         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
10707         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
10708         in URLs to improve DVI formatted output (requires texinfo 4.6).
10709         (System Services, Systemology, Shellology): Likewise.
10710         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
10711         output.
10713         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
10714         continuous text.
10715         (Runtime): Fix macro argument names to match description:
10716         `action-if-found' -> `action-if-true' and similarly.
10717         (Obsolete Macros): Likewise.
10718         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
10719         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
10720         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
10722 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10724         * doc/autoconf.texi (Limitations of Make): Clean up markup.
10726         * ChangeLog: Typo.
10727         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
10728         DVI output.
10730 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10732         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
10733         /bin/sh set unsorted output.
10734         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
10735         * tests/local.at: Likewise.
10737 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10739         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
10740         (Integer Overflow, Null Pointers, Buffer Overruns):
10741         (Floating Point Portability, Exiting Portably): New sections.
10742         (Writing Test Programs): Fix some langauge.  Recommend exiting
10743         with status 1, not merely nonzero.  Clarify exit declaration.
10744         (Run Time): Move C exit status stuff to new Exiting Portably section.
10745         (Systemology): Mention Posix and levenez.  Update v7 reference.
10746         (Portable Shell): Mention the Posix shell.
10748 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
10750         * bin/autoconf.as (me): Replace by as_me.
10752 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10754         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
10755         since as_me isn't set yet.
10757 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10759         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
10760         a few minor bugs in this area.
10762         * doc/autoconf.texi (Programming in M4sh): Comment out the
10763         documentation of AS_BASENAME, for now.
10764         (Shell Substitutions): Do not use AS_DIRNAME in an example.
10765         (Limitations of Builtins) <basename>: Do not refer to
10766         AS_BASENAME.
10767         * bin/autoconf.as (me): Don't use AS_BASENAME.
10768         (dir): Remove the unused variable.
10769         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
10770         AS_DETECT_REQUIRED.  All uses changed.
10771         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
10772         All uses changed.
10773         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
10774         (AS_BASENAME): Use "basename --" to protect against leading "-".
10775         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
10776         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
10777         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
10778         (_AS_DIRNAME_PREPARE): Likewise.
10779         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
10780         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
10781         (AS_DIRNAME): Use "dirname --".
10783 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10785         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
10786         of "run time" and "run-time" changed to "runtime", for consistency.
10787         * lib/autoconf/fortran.m4: Likewise (in comment).
10788         * lib/autoconf/functions.m4: Likewise.
10789         * lib/autoconf/general.m4: Likewise.
10790         * lib/autoconf/headers.m4: Likewise.
10792         * doc/autoconf.texi (Run Time): Document the exit status situation
10793         with more accuracy and detail.
10795 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10797         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
10798         Archive is not officially `GNU' any more.  Update URL.
10799         (Defining Directories): Likewise
10800         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
10802 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10804         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
10805         newline from the `trap' code to finish `config.log'; the NetBSD
10806         /bin/sh resets the exit status after an empty command, as
10807         documented in doc/autoconf.texi.
10808         Reported by Dalibor Topic <robilad@kaffe.org>.
10810 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
10812         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
10813         Suggested by Bruno Haible.
10815 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
10817         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
10818         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
10819         Instead, just list the shells that we know work.
10820         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
10821         changed.  Be more cautious about the _cv_ variable.
10822         * tests/tools.at (Syntax of the shell scripts): Check the
10823         _cv_ variable once, at first, to avoid an internal autoconf error
10824         when sh -n does not work.
10826 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10828         * lib/Autom4te/FileUtils.pm: Sync from Automake.
10830 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
10832         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
10833         use ">&-" since we're only 99.999% sure that this is portable,
10834         and since the MinGW bug is fixed in a different way.
10835         * lib/autotest/general.m4 (AT_INIT): Likewise.
10837 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
10839         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
10840         before opening config.log, to avoid hitting a bug on MinGW.
10842 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10844         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
10845         AS_MESSAGE_LOG_FD before reopening it onto the log file.
10846         This works around a MinGW bug reported by Eric Paire.
10847         Make sure that all writes to the log file append to it,
10848         rather than possibly losing data.
10849         * lib/autotest/general.m4 (AT_INIT): Likewise.
10851 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
10853         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
10854         description.
10856 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10858         * NEWS: Update.
10860         * configure.ac (AC_INIT): Bump to 2.59d.
10862 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10864         Version 2.59c.
10866         * Makefile.maint (news-date-check): Do not require a leading `*'
10867         before the release date in NEWS.
10869 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
10870         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10872         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
10873         the instantiated file do not contain the string 'datarootdir'
10874         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
10875         @mandir@, replace the reference '${datarootdir}' by the value.
10876         * tests/torture.at (datarootdir workaround): New test.
10877         * NEWS: Advertise this temporary fixup.
10878         Based on a patch by Bruno Haible, reported and analyzed by
10879         Paul Eggert and Noah Misch.
10881 2006-04-12  Eric Blake  <ebb9@byu.net>
10883         * tests/autotest.at (Debugging a failed test): Fix comment.
10885 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
10887         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
10888         all the changes since 2006-04-07.
10890 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10892         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
10893         succeeded, but `ln -s file dir' failed, take care to remove the
10894         leftover target before the next test, to prevent its spurious
10895         failure; also make sure `ln file dir' works before selecting it.
10896         Thanks to Keith Marshall for pointing this out.
10897         * THANKS: Update.
10899         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
10900         assignments in `at_debug_args', so that we put them correctly
10901         in the `run' script.
10902         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
10903         Reported by Eric Blake.
10905 2006-04-11  Eric Blake  <ebb9@byu.net>
10907         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
10908         top-level tests after micro-suite has been run.   Used in...
10909         (Debugging a successful test, Debugging script and environment),
10910         (Debugging a failed test): ...these new tests.  The first of these
10911         is fixed by...
10912         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
10913         macro, split out from...
10914         (AT_INIT): ...here, so that using -d also generates a run script.
10915         Document that -d inhibits top-level logging.
10916         * doc/autoconf.texi (testsuite Invocation): Document that -d only
10917         inhibits top-level logging; debug scripts are created.
10919         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
10920         check.
10921         * tests/autotest.at (Empty test, Empty check): New test to check it.
10923         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
10924         from gcc.
10926 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
10928         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
10929         the files if a problem appears.  Make the empty *.at files
10930         read-only, too.  Proposed by Ralf Wildenhues.
10932 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10934         * config/Makefile.am: Add comment to force updated Makefile.in.
10936         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
10937         space only patch to this file, this patch causes the Makefile.in
10938         files that include freeze.mk to be updated, and thus have a
10939         newer time stamp again, which in turn makes a pristine CVS
10940         checkout have correct time stamps.
10942         * Makefile.maint (cvs-sv): New macro, to be used..
10943         (config.guess-url_prefix, config.sub-url_prefix)
10944         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
10945         point to CVS text checkout of Gnulib files.
10946         (copyright-check): Bump current year.
10947         (announcement): Do not hard-wire `./announce-gen'.
10948         (cvs-update): Propagate failures of `cvs' and `move-if-change'
10949         correctly.
10950         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
10951         `chmod +x'.
10952         (wget_files): Update config.guess, config.sub, texinfo.tex by
10953         `wget-update', now that their URLs work again.
10955 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10957         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
10958         Problem noted by Paul D. Smith.
10960 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10962         * doc/autoconf.texi: Remove unused words from word list.
10963         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
10964         .x-sc_trailing_space: New files.
10966         * doc/standards.texi: Sync from gnulib.
10968         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
10969         `LIBOBJDIR' as experimental.
10971         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
10972         with a target directory; it's internally implemented as `cp'
10973         anyway, but since Autoconf advertises the possibility to use
10974         a target directory when LN_S is `ln -s', we need to find out.
10975         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
10976         analyzed by Keith Marshall <keith.marshall@total.com>.
10978         * THANKS: Update.
10980 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10982         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
10983         confdefs.h as-is.  In general, if it has backslash-newline or the
10984         like, then it doesn't work either to sort or to remove empty
10985         lines.
10987 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
10989         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
10991 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
10993         * lib/autom4te.in (Automake-preselections): Preselect
10994         _AM_SUBST_NOTMAKE.
10996 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10998         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
10999         apostrophe within a single-quoted string, as this is the usual
11000         tradition and is easier to read than '"'"'.  Don't rely on the
11001         shell treating "$/" like '$/'.  Use a more-consistent indenting
11002         style for the trap.
11004 2006-04-09  Eric Blake  <ebb9@byu.net>
11006         * tests/autotest.at (Backquote command substitution),
11007         (Multiline backquote command substitution): Remove mistaken
11008         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
11009         applied...
11010         (Parenthetical command substitution, Multiline parenthetical
11011         command substitution): here.
11013 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11015         Import macros from gnulib (often changing their name).
11017         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
11018         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
11019         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
11020         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
11021         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
11022         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11023         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
11024         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
11025         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
11026         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
11027         The manual mentions Gnulib more prominently.
11028         * doc/autoconf.texi (Gnulib): New node.
11029         (Pointers): Add Gnulib URL.
11030         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
11031         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
11032         Gnulib section.
11033         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
11034         suggest a #define rather than a typedef for _Bool, and mention
11035         Gnulib rather than trying to substitute stdbool code.
11036         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
11037         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
11038         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
11039         AC_STRUCT_DIRENT_D_TYPE.
11040         (Particular Types): Mention stdint.h and inttypes.h as standard
11041         headers too.
11042         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
11043         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
11044         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
11045         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
11046         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
11047         (C Compiler): Move AC_C_LONG_DOUBLE to ...
11048         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
11049         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
11050         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
11051         (Coding Style).  Don't mention m4_expand_once.
11052         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
11053         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
11054         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
11055         (AC_CHECK_FUNCS): Use it.
11056         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
11057         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
11058         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
11059         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
11060         (AC_HEADER_ASSERT): New macro.
11061         (AC_HEADER_STDBOOL): Don't assume "#error" works.
11062         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
11063         Catch a bug in an HP-UX C compiler.
11064         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
11065         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
11066         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
11067         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
11068         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
11069         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
11070         New macros.
11072         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
11073         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
11075 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
11077         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
11078         of the warning introduced by the 2001-08-28 change.
11080 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
11081             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11083         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
11084         variables shall be overriden by the cache.
11085         * tests/torture.at (AC_ARG_VAR): Test also with a first value
11086         that contains braces.
11088 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11090         Revert the patch from 2006-04-01 and only improve
11091         _AS_DETECT_BETTER_SHELL:
11093         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
11094         skip nonexistent directories.
11095         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
11096         only shell candidates which exist.
11097         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
11098         * lib/autotest/general.m4 (AT_INIT): No need to give three
11099         parameters to _AS_PATH_WALK.
11101 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
11102             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11104         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
11105         distinguish m4sugar macros.
11106         * tests/tools.at (autoupdating with aclocal and m4_include):
11107         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
11108         test case by Noah Misch <noah@cs.caltech.edu>.
11110 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
11112         Revert my change from 2006-03-17, in other words:
11113         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
11114           and DUALCASE=1.
11115         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
11116         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
11117           it is set.
11119 2006-04-07  Eric Blake  <ebb9@byu.net>
11121         * doc/autoconf.texi (Programming in M4sh): Document that
11122         AS_MKDIR_P exits the script on failure.
11123         * lib/autotest/general.m4: Remove redundant AS_ERROR.
11125 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11127         * config/elisp-comp, config/install-sh, config/mdate-sh,
11128         config/missing, config/mkinstalldirs: Sync from Automake.
11130         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
11131         from Automake.
11133         * doc/make-stds.texi: Sync from gnulib.
11135 2006-04-06  Eric Blake  <ebb9@byu.net>
11137         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11138         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
11139         2006-04-01.
11141 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
11142             Eric Blake  <ebb9@byu.net>,
11143             Paul Eggert  <eggert@cs.ucla.edu>,
11144             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11146         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
11147         whether `set' quotes correctly: redirect stderr of the tested
11148         `set', and use a subshell, for Ultrix; use `sed' instead of
11149         `grep' for zsh `set' which may write binary output; match only
11150         at the beginning of a line, to avoid false positives.
11151         In order to avoid false positives by unrelated variables with
11152         multiline content, put the dump algorithm in a subshell and
11153         unset all variables containing newlines (except some which are
11154         special to the shell).  Warn about cache variables that are
11155         unset.
11157 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11159         * config/config.guess, config/config.sub, config/texinfo.tex:
11160         Sync from upstream.
11162         * tests/mktests.sh: Reword comments.
11164         * tests/mktests.sh: Only skip internal macros starting with
11165         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
11166         Update exclusion lists for the test suite to this end:
11167         (AC_ARG_VAR): Do test this now.
11168         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
11169         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
11170         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
11171         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
11173         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
11174         shell issue with double-quoted command substitutions of native
11175         commands.
11176         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
11177         Marshall.
11179         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
11180         no file matches the glob, discard the warning, set `nullglob'.
11181         (syntax-check): Likewise.
11182         (sc_cast_of_x_alloc_return_value): Likewise.
11183         (sc_cast_of_alloca_return_value, sc_error_exit_success)
11184         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
11185         (m4-check): Likewise.
11186         (sc_system_h_headers): Do not print rule on execution.
11187         (sc_tight_scope): Do not fail for non-existing `src' directory.
11188         (sc_changelog): Skip the Copyright footer.
11189         * lib/autoconf/lang.m4: Remove trailing space.
11191         * lib/autoconf/status.m4: More replacements to
11192         <tab><space> where this makes sense.
11194 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
11196         * tests/Makefile.am (maintainer-check-posix):
11197           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
11199         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
11200           ac_config_<foo>s again, sometimes normalized, sometimes not.
11201         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
11202         (AC_CONFIG_COMMANDS): Do not do so here.
11203         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
11204           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
11205           2005-07-25 rewrite.  Noticed by Noah Misch.
11207         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
11208           _AC_PRESERVE_HELP_ORDER, ...
11209         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
11211         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
11212           inside m4_expand_once; it is redundant.
11214         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
11215           for --help from Cygnus `configure.'
11217 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11219         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
11220         on a patch proposed by Ralf Wildenhues.
11222 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11224         * lib/autoconf/status.m4: Replace <space>''<tab> with
11225         <tab><space> where this makes sense.
11227 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
11228             Noah Misch  <noah@cs.caltech.edu>
11230         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
11231         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
11232         * doc/autoconf.texi (Help Formatting): New node.
11233         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
11235 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11237         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
11238         lib/autoconf/specific.m4, lib/autoconf/status.m4,
11239         lib/autoconf/types.m4, lib/autotest/general.m4,
11240         tests/mktests.sh, tests/torture.at: White space cleanup:
11241         remove some SPACE before TAB, or add quoting ('' or @&t@).
11243         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
11245         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
11247 2006-04-05  Eric Blake  <ebb9@byu.net>
11249         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
11250         empty test suite works.
11251         * tests/autotest.at (Empty test suite): Remove xfail.
11253 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
11255         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
11256         TAGS to ac_config_<foo>s.
11257         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
11258         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
11259         normalizing it, consistent it with previous releases.
11260         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
11262 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11264         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
11265         Use simplified args that Eric Blake originally suggested.
11267 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11269         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
11270         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
11271         Use 'comm' rather than N instances of grep; this also fixes a bug
11272         whereby substrings were incorrectly matched, causing us to not
11273         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
11274         (exclude_list): Exclude empty macros.
11275         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
11277         Use awk rather than grep -E or egrep, to avoid
11278         portability problems with regular expressions containing newlines.
11279         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
11280         Switch from grep to awk syntax.
11281         (ac_exclude_script): Renamed from ac_exclude_egrep.
11282         (au_exclude_script): Renamed from au_exclude_egrep.
11284 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
11286         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
11287         a subdirectory subject to Cygnus `configure'.
11288         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
11290         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
11291         report request when we have no AC_PACKAGE_BUGREPORT.
11293 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11295         * THANKS: Update.
11297         * tests/mktests.sh: Update copyright year in the header of the
11298         generated files.
11300         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
11301         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
11302         typedef'ed restricted pointer, to catch a compiler bug on
11303         HP-UX 11.x, and fix warnings so it passes with -Werror.
11304         (_AC_PROG_CC_C99): Likewise.
11305         Reported by Albert Chin <china@thewrittenword.com>.
11306         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
11308 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
11310         * bin/autoscan.in (subdirs): New global.
11311         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
11312         (output): Emit AC_CONFIG_SUBDIRS as needed.
11313         * tests/autoscan.at (autoscan): Remove XFAIL.
11315 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
11317         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
11319 2006-04-03  Eric Blake  <ebb9@byu.net>
11321         * THANKS: Add myself.
11323 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11325         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
11326         to log, point to testsuite output tree.
11328 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11330         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
11331         * doc/autoconf.texi (Function Portability): Mention that C++
11332         has trouble with 'exit'.
11333         (Guidelines): Test programs shouldn't use 'exit'.
11334         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11335         Remove; all uses removed.
11336         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
11337         Return from 'main' instead of calling 'exit'.
11338         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
11339         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
11340         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
11341         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
11342         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
11343         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
11344         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11345         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
11346         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11347         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11348         * tests/compile.at: Likewise.
11350 2006-04-02  Pavel Roskin  <proski@gnu.org>
11352         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
11354 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11356         Clean up _AC_COMPILER_EXEEXT* macros.
11358         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
11359           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
11360           ac_file to the name of the default output file and call
11361           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
11362           initial `rm' of the candidate files...
11363         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
11364           the same list in subsequent `rm' calls, and for the temporary
11365           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
11366           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
11367         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
11368         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
11369           no longer needed) by libtool.  Make it a cache check.
11370         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
11371           copied here by mistake.
11372         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
11373           _AC_COMPILER_EXEEXT.
11374         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
11375           _AC_COMPILER_OBJEXT directly.
11376         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11378 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11380         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
11381         (AS_DIRNAME): Use it.
11382         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
11384         * tests/*.at: Remove the generated ones.
11386 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11388         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
11390 2006-04-01  Eric Blake  <ebb9@byu.net>
11392         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
11393         directories, unless optional third argument supplied.
11394         (AS_UNAME): Don't optimize PATH walk.
11396         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
11398 2006-04-01  Eric Blake  <ebb9@byu.net>
11399         and Stepan Kasal  <kasal@ucw.cz>
11401         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
11402         and fix some typos.
11404 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
11406         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
11407         Autoconf version number despite a zero- or one-argument AC_INIT.
11409         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
11410         subordinate tools.
11411         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
11412         * doc/autoconf.texi (autoreconf Invocation): Document it.
11414         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
11415         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
11417 2006-04-01  Eric Blake  <ebb9@byu.net>
11419         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
11420         * lib/autotest/general.m4: Be tolerant of existing directory when
11421           rm failed to remove it.
11423 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11425         * bin/autoupdate.in: Redefine m4_location so that warnings print
11426         the correct lines of the input file by subtracting..
11427         (_au__first_line): ..this new definition.
11429         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
11430         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
11431         Remove stray newline in output.
11432         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
11433         AC_DEFUN this for autoconf, including the obsoletion diagnose.
11434         Fixes autoupdating of code where the replacement output contains
11435         m4sugar macros.
11436         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
11437         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
11438          (au_exclude_list): Add AC_LANG_SAVE.
11439         * tests/tools.at: Several new tests for all of this.
11440         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
11441         hairy details.
11442         The AC_LANG_SAVE issue was reported against Libtool by
11443         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
11444         Kristian Kvilekval <kris@cs.ucsb.edu>.
11446 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
11448         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
11449           switch all of them on and of when necessary.  Fixes the bug when
11450           m4sugar macros (e.g., m4_define) were expanded after the first
11451           automatic update (e.g., after AC_PREREQ or AC_INIT).
11453 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
11455         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
11456         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
11458         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
11459         correctly.  Problem reported by Eric Blake.
11460         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
11461         Ralf Wildenhues.
11463 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11465         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
11466         Tighten up the basename/dirname wording.
11468 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11470         * Makefile.maint (sc_texi_notab): New check: do not use TABs
11471         in texinfo files outside of verbatim environments.
11472         (syntax-check-rules): Update.
11473         * doc/autoconf.texi (Configuration Headers): Conform to it.
11475 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
11477         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
11478           aclocal cannot be given on the command line.
11480 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11482         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
11483         Give an example for AS_DIRNAME instead of referring to Posix..
11484         (File System Conventions): Put discussion of // versus / here, and
11485         modernize it a bit.
11486         (Limitations of Usual Tools): Add basename.  Remove verbiage
11487         after dirname, since it got moved to the above sections.
11488         All this was inspired by a patch proposed earlier by Eric Blake.
11490 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11492         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
11493         `$0' to protect against spaces.
11494         * lib/autotest/general.m4 (AT_INIT): Likewise.
11495         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
11496         `$0', $as_me.
11498 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11500         * bin/autoscan.in: The value of find_configure_ac should be
11501         checked for existence, so we don't barf over a nonexisting
11502         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
11504 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11506         * bin/autoupdate.in: Fix some typos.
11508 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
11510         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
11512         * lib/autoscan/autoscan.list: Refreshed.
11514 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11516         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
11517         and Erlang related variables.
11519         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
11520         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
11521         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
11522         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
11523         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
11524         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
11525         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
11526         (_AC_PROG_OBJC_G): New macros.
11527         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
11528         * doc/autoconf.texi (Objective C Compiler): New node.
11529         (Preset Output Variables): Document OBJCFLAGS.
11530         (Language Choice): Document `Objective C' language.
11531         (Fortran Compiler): Fix typo.
11532         * NEWS: Updated.
11533         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
11535 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
11537         * doc/autoconf.texi (Default Includes): Fix typo
11538           s/AC_HEADERS_STDC/AC_HEADER_STDC/
11539         (Limitations of Usual Tools): s/unwriteable/unwritable/
11540         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
11541           Fix typos in the comments.
11543 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
11545         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
11546           Factor out the warning to...
11547         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
11548         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
11549         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
11551         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
11552           case `ac_delim' when writing the sed script.
11554         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
11555           moved DUALCASE=1 ...
11556         (AS_SHELL_SANITIZE): ... here.
11557         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
11558           that it is set.
11560         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
11561           AC_SUBST.
11562         (_AC_PATH_PROG): Store the result to VARIABLE.
11563         (AC_PATH_PROG): No need to set VARIABLE again.
11565         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
11566           the first one is usual AT_CHECK_MACRO test, the second one checks
11567           that the same works when cross-compiling.
11568         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
11569         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
11571 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11573         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
11574         the directory `/usr/bin/posix' in the shell search, to prefer
11575         the Posix shell not only in subsequent spawns as with `$BIN_SH'
11576         on Tru64.
11578         * doc/autoconf.texi (contents): To fix texi2html output, hide
11579         `@setcontentsaftertitlepage' for HTML.
11580         (Writing Autoconf Macros): Likewise, insert space after `@c'.
11581         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
11582         `@,{c}'.
11584 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
11586         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
11587           sanitizing...
11588         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
11589         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
11590           why IFS is restored so late; thank you, Ralf, for reminding us.
11592 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
11594         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
11595           variables in the examples.
11597 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
11599         * doc/autoconf.texi (several sections): Cleaned up documentation for
11600         macros in erlang.m4.
11602 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11604         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
11605         failure condition for `$(cmd)' style command substitutions.
11606         (Parenthetical command substitution, Multiline parenthetical
11607         command substitution): Use it.
11609         * doc/autoconf.texi (Special Shell Variables): Missing word.
11610         Reported by Keith Marshall <keith.marshall@total.com>.
11612         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
11613         IFS even in case of empty `$PATH'.
11615 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11617         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
11618         `expr' away if there is nothing to do.
11619         < --keywords >: Simplify and robustify argument handling.
11620         Revert erroneous comment from 2005-08-23.  Extend to allow
11621         keyword negation with `!'.
11622         Update help message.  Remove broken code to prevent running
11623         tests multiple times.
11624         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
11625         Update and fix the documentation accordingly.
11626         * tests/autotest.at (Keywords): Renamed to..
11627         (Keywords and ranges): .. this.  Extended to make sure negated
11628         keywords, keywords taken from AT_SETUP arguments, and numeric
11629         test ranges work, and that matching is case-insensitive.
11631 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11633         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
11634         allow to pass unnamed structs even in C++.
11635         (AC_CHECK_SIZEOF):  Likewise.
11636         Also fix quoting error in `AC_MSG_FAILURE' arguments.
11637         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
11638         struct): New tests for unnamed structs, each both native and
11639         cross-compiling.
11641         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
11642         a structure inside a cast, for C++ conformance.
11643         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
11644         Also fix quoting error in `AC_MSG_FAILURE' arguments.
11646         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
11647         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
11648         trying to execute the command `no'.
11650         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
11651         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
11652         expanded outside.
11654         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
11655         example.  Do not emphasize `$%', it is hardly new and special.
11656         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
11658         * doc/autoconf.texi (Limitations of Usual Tools): Document
11659         OpenBSD and traditional `grep' failure to handle multiple
11660         patterns separated by newlines.
11662 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
11664         * doc/autoconf.texi (several sections): Add documentation for macros
11665         in erlang.m4.
11667 2006-03-10  Eric Blake  <ebb9@byu.net>
11669         * doc/autoconf.texi (Obsolete Macros): Fix wording of
11670         AC_TRY_LINK_FUNC.
11672 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
11674         * doc/autoconf.texi: Use @acronym more consistently for acronyms
11675         like BSD, GPL, LGPL.  Fix minor English typos.
11676         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
11677         Mention that these macros are becoming obsolete.
11678         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
11679         Use more modern terminology for which standard is what.
11680         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
11681         and to ansi2knr.
11682         (AC_PROG_CXX): Likewise.
11683         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
11684         Remove obsolete discussion about how to port to K&R.
11685         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
11686         the obsolescent AC_HEADER_STDC.
11687         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
11688         can't rely on it.
11690 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11692         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
11693         Remove stdin redirection from /dev/null to allow pipe to work.
11695 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
11697         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
11698         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
11699         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
11700         Ralf Wildenhues.
11702 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11704         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
11705         HP-UX sed is 99 commands, not 100.
11706         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
11707         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
11708         newline for portability.
11709         * tests/torture.at (Torturing config.status): Also test 100
11710         AC_SUBST_FILE invocations.  Fix test to actually verify the
11711         AC_CONFIG_FILES output.
11712         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
11713         command, label, and read-file `r' limits.  Unify HP-UX spelling.
11715         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
11716         non-suffix rule.
11717         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
11718         non-GNU make.
11719         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
11720         * tests/mktests.sh: Small shell portability fixes.
11722 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11724         * doc/autoconf.texi (Caching Results): Fix the examples to use a
11725         recommended quoting style and discard unwanted output.
11727 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11729         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
11730         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
11731         cases, and to work around Tru64 expr bug.
11733 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11735         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
11736         expr bug that turns the result of a regex match into a number if
11737         possible.
11739 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11741         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
11742         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
11743         in section `Specific Compiler Characteristics'.
11745 2006-03-04  Eric Blake  <ebb9@byu.net>
11747         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
11748         variable warning.
11750 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11752         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
11753         order of variable initialization, so even the Solaris 2.6 shell
11754         can create a config header correctly.  Fixes lots of test suite
11755         failures.
11757 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11759         * doc/autoconf.texi (Text processing Macros): New node to
11760         document the m4sugar macros m4_re_escape, m4_tolower,
11761         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
11763 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
11765         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
11766         XrmInitialize (0) -> XrmInitialize ().
11767         Reported by Toshio Kuratomi.
11769 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11771         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
11772         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
11773         * doc/autoconf.texi (Programming in M4sh): Adjusted.
11774         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
11775         both macros are defun'ed so that required macros are evaluated
11776         outside.
11778         * doc/autoconf.texi (Prerequisite Macros): State more precisely
11779         where a required macro will be expanded.
11780         (Coding Style): Another reason not to use `m4_define'.
11782 2006-02-21  Eric Blake  <ebb9@byu.net>
11784         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
11786 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11788         * doc/autoconf.texi (Looping constructs): New node, to
11789         document m4_for, m4_foreach, m4_foreach_w, and mention
11790         obsolete AC_FOREACH.
11791         (Obsolete Macros): Document AC_FOREACH.
11792         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
11793         (m4_for): Fix to never loop (almost) endlessly, work correctly
11794         with arithmetic expressions in arguments, a step of zero or
11795         non-integer multiple of the interval, and avoid integer
11796         overflow.
11797         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
11798         m4_foreach_w.
11800 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
11802         Add basic support for Erlang, both for configuring Erlang/OTP
11803         tools, and Erlang as a conf test language.
11804         * lib/autoconf/erlang.m4: New file.
11805         * lib/autoconf/autoconf.m4: Add erlang.m4.
11806         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
11807         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
11808         * NEWS: Add short description of new macros.
11809         * THANKS: Add Romain Lenglet.
11811 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11813         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
11814         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
11816 2006-02-15  Eric Blake  <ebb9@byu.net>
11818         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
11819         warning.
11821 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11823         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
11824         (_AS_CASE): Private helper macro.
11825         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
11826         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
11827         Fix syntax of AS_IF description
11828         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
11829         for the AC_REQUIRE mess.
11830         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
11831         AS_SHELL_SANITIZE.
11833 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
11835         * doc/autoconf.texi: Minor style cleanup.
11836         Be consistent about spaces after commas.
11837         Insert [] where empty args look a bit funny.
11838         Fix some "i.e." and "e.g." usages.
11839         Try to avoid "X/Y" usages.
11840         Don't be pedantic about "ISO C99"; just say C99.
11841         Prefer GNU style for spaces in front of parens.
11842         (Function Portability): Comment about C89 versus C99
11843         signed integer division.
11844         (Particular Headers): Use current gnulib style for dirent
11845         includes.
11847 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
11848         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11850         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
11851         macros without parameters.
11852         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
11853         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
11854         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
11855         `$#' bug.
11856         (autoupdate): Updated to match AU_ALIAS fix.
11858 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11859         and Paul Eggert  <eggert@cs.ucla.edu>
11861         * doc/autoconf.texi (Programming in M4sh): Document
11862         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
11864 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11866         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
11867         (AS_BOURNE_COMPATIBLE): ..this.
11868         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
11870 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11872         * doc/install.texi (Defining Variables): Tighten up the
11873         CONFIG_SHELL wording.
11875 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
11876         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11878         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
11879         of (set -o) rather than testing whether (set -o posix) succeeds,
11880         to work around a bug in the AIX 5.3 shell.  Problem originally
11881         reportd by Howard Chu for libtool.
11883 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
11885         * doc/autoconf.texi (Running the Compiler, Running the Linker):
11886         Changes the macro arguments in summaries to match the
11887         descriptions.
11889 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
11891         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
11892         hint as ``a workaround for a bug.''
11894 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11896         * bin/autoreconf.in: New option `--no-recursive'.
11897         Improve wording for subpackages a bit.
11898         * doc/autoconf.texi (autoreconf Invocation): Updated.
11899         * NEWS: Updated.
11901         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
11902         in environment of `configure', not the command line.
11903         Reported by Howard Chu <hyc@highlandsun.com>.
11905 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
11907         * doc/autoconf.texi (Limitations of Builtins): Document the
11908         problem with "trap -".
11910 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
11912         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
11913         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
11914         messages to differentiate Fortran and Fortran 77 tests.
11915         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
11916         AC_LANG_ASSERT, to allow use in mixed-language projects.
11918 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11920         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
11921         FOO" to "defined (FOO)".
11922         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
11923         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
11924         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
11925         * tests/tools.at (ifnames): Likewise.
11927 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11929         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
11930         * lib/Autom4te/General.pm (mktmpdir): Likewise.
11931         (END): Improve error message a bit.
11932         Reported by Bruce Korb <bkorb@gnu.org>.
11934 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11936         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
11937         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
11939 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
11941         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
11942         requires sys/stream.h.  Reported by Oliver Kiddle.
11944 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11945             Stepan Kasal  <kasal@ucw.cz>
11947         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
11948         before the removals of test dirs, use `find' to avoid modification
11949         of symlinked directories.
11951 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
11953         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
11954         Don't ignore the macro arguments.
11956 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
11958         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
11959         declaration that works for MSVC.
11961 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11963         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
11964         Add `*.map' and `.inf' for Green Hills compiler.
11965         Reported by Stefan Seefeld <stefan@codesourcery.com>.
11967         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
11968         correctly: pad with spaces after FIRST_PREFIX if necessary,
11969         and compute string lenghts with `m4_qlen' instead of `m4_len'.
11970         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
11971         * tests/m4sh.at (AS_HELP_STRING): Test extended.
11972         * NEWS: Updated.
11973         Reported by numerous people, numerous times.
11975 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11977         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
11978         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
11979         * lib/autoconf/general.m4, lib/autoconf/status.m4:
11980         * lib/autotest/general.m4, tests/local.at:
11981         Update copyright year to 2006.
11983         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
11984         sed substitutions.
11985         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
11986         for file names, again.  Reported by Noah Misch.
11987         (Coding Style): Explain that s|a|b| is preferred for file names.
11988         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
11989         (AC_OUTPUT_MAKE_DEFS): Likewise.
11990         * lib/autotest/general.m4 (AT_INIT): Likewise.
11991         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
11992         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
11994         Fix Posix-conformance bugs re use of { command in sed scripts,
11995         and improve the sed-related documentation a bit.
11996         * doc/autoconf.texi (Installation Directory Variables): Use
11997         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
11998         rather than "sed" when talking about Sed in general.
11999         (Particular Programs): Likewise.
12000         (Coding Style): y is like s with respect to / and ,.
12001         (Limitations of Usual Tools): Document the weird restrictions
12002         that Posix has about { }.  Use better quoting.
12003         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
12004         Rewrite to conform to Posix rules about { } in sed scripts.
12005         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
12006         * tests/foreign.at (Libtool): Likewise.
12007         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
12008         Use our own style advice re 's,a,b,' versus 's|a|b|'.
12010 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12012         * lib/autoconf/status.m4: Fix typo.
12014         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
12015         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
12016         `-def', for the benefit of Portland `pgf90 -Mipa'.
12017         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
12019 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12021         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
12022         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
12023         shell from zsh to bash.
12025 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
12027         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
12028           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
12030 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12032         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
12033         parentheses in $(...).  Problem reported by Eric Blake.
12035 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12037         * doc/autoconf.texi (Limitations of Usual Tools):
12038         Mention which characters can be escaped with \ in portable regular
12039         expressions used in grep, sed, expr.  Mention the leading ^ problem
12040         with expr.  Clean up some confusing wording.  Mention which
12041         grep options are portable.
12043 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
12045         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
12047 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
12049         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
12050         patch, noted by Ralf Wildenhues.
12052 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12054         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
12055         posix' unconditionally, for pdksh in `native sh' emulation.
12057 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12059         * doc/autoconf.texi (Shellology): Document eval $? problem
12060         with ash.
12061         (Limitations of Builtins): Likewise.
12063 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12065         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
12066         CONFIG_SHELL in the environment of the configure rerun.
12067         * doc/autoconf.texi (Here-Documents, config.status Invocation):
12068         Suggest passing CONFIG_SHELL absolute, and in the environment
12069         rather than as option.
12071 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12073         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
12074         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
12075         Fix macro quoting.  Fix output for n * 98 substituted variables.
12077 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12079         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
12080         `tmp' to avoid file removal race.
12082 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12084         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12085         ac_clean_files and LIBOBJS.
12087 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12089         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
12090         Factor functionality to..
12091         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
12092         `AC_SUBST($1)' in the public version.
12093         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
12094         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
12095         ac_pt_* variables.
12097 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
12099         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
12100         filesystems.
12102 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12104         * NEWS: Move AH_HEADER mention to right place.
12106 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
12108         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
12109         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12111 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
12113         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
12114         conftst2.$ac_objext.
12115         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12117 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
12119         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
12120         conftest.o, to see whether the compiler really obeys; rm the object
12121         file before and after the test and register it with ac_clean_files.
12122         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12124 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
12126         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
12127         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
12128         code so that the most common case requires less forks.
12130 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
12132         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
12133         not portable; thanks to Paul Eggert and Alexandre.
12135         * NEWS: Fix an old typo.
12137 2005-10-20  Jim Meyering  <jim@meyering.net>
12139         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
12140         the latter'', in two places.
12142 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
12144         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
12145         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
12146         the inner workings of AC_LANG_FUNC_LINK_TRY.
12147         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
12148         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
12149         by the function rather than ignoring it.
12150         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
12151         comparing its address.  Intel's interprocedural optimization was
12152         outsmarting the old heuristic.  Problem reported by
12153         Mikulas Patocka.
12155 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
12157         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
12159 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12161         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
12162         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
12164 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
12166         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
12167         before removing it (chmod -R u+rwx); there are three instances of this.
12169 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12170             Stepan Kasal  <kasal@ucw.cz>
12172         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
12173         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
12174         make its content writable before removing it.  Remove an errorneous
12175         comment from the end, where the logs of the failed tests are copied
12176         to the main log file.
12178 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
12180         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
12181           in case the computer is too quick.  Double quote the configure.ac
12182           snippets.
12184         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
12185           problems if the testsuite were running too fast.
12187 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12189         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
12190         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
12191         (which belong to Xt, not X itself).  See Debian bug 327655.
12192         * NEWS: Mention this.
12194 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
12196         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
12198 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12200         * config/move-if-change: Don't output "$2 is unchanged";
12201         suggested by Ben Elliston.  Handle weird characters correctly.
12203 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
12205         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
12206           calls, so that the final expansion of this macro is shorter.
12207           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
12208           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
12209           the cleanup there.  Use AS_VAR_* macros, to be more general.
12210         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
12212         * lib/autoconf/general.m4: Use AS_IF where appropriate.
12214         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
12216 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
12218         * doc/autoconf.texi (Configuration Headers): Add an index entry
12219           for AH_HEADER.
12221 2005-08-26  Pavel Roskin  <proski@gnu.org>
12223         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
12224         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
12225         running xmkmf.
12227 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
12229         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12230         The previous patch didn't work, so try a better one.
12232 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
12234         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
12235         in the example.  Reported by Bruno Haible.
12236         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
12237         "if $undefined_var;" succeeds with my shell.
12239         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
12240         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
12241         but change the m4_divert_text to m4_divert_once.
12243 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12245         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12246         Work around bug in Solaris /usr/xpg4/bin/awk.
12247         The bug is present in at least Solaris 8 through 10.
12249 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
12251         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
12252         some evil values and relying on the fact that $* concatenates the
12253         parameters by the first character from IFS.
12255 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
12256             Stepan Kasal  <kasal@ucw.cz>
12258         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
12259         first header appears, define AH_HEADER.
12260         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
12261         Update limitations about when to call AC_CONFIG_HEADERS.
12262         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
12263         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
12264         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
12265         ``Configuration Actions''; fix their index entries.
12267         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
12268         options correctly.  Process N-M as M-N if M is smaller than N.
12269         Process ranges correctly so that N-N will run only N.
12270         Sort and uniquify the tests that will be run.  If there is more
12271         than one test, reinsert the banners for the tests.
12272         * tests/autotest.at (Keywords): Unmark XFAIL.
12274 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
12276         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
12277           before passing the macro name to AH_TEMPLATE.
12279         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
12280           now opens log after option processing; in particular, --version
12281           and --help do not touch config.log.
12283         * Makefile.maint: Revert the change from 2005-08-12.
12285 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
12287         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
12288           common code to...
12289         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
12291 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12293         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
12294         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
12295         Language cleanup.
12297         * doc/autoconf.texi (Defining Symbols, Changed Results):
12298         Prepend to LIBS, not append, in examples.
12300 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
12302         When building in place, set srcdir="."; suggested by Tim Van Holder.
12304         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
12305           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
12306         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
12307         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
12308           does not mean "no --srcdir option".
12310 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12312         * tests/autoscan.at (autoscan): New file.
12313         * tests/suite.at: Use it.
12314         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
12315         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
12317         * tests/autotest.at (Keywords): Test keywords combinations.
12319 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
12321         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
12322           add "2>&1"; gzip 1.2.4 prints help on stderr.
12324 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
12326         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
12327         was pushdef'ed twice while popped only once.  Push it only once.
12328         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
12330 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
12332         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
12333         prefixed by mere "===", not "configure: === ".
12335 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12337         * Makefile.maint: Update from Bison.
12339         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
12340         "<tab>" in comment, so that the point is understandable.
12342 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
12344         Rewrite substantial part of lib/autoconf/status.m4.
12345         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
12346         and CONFIG_COMMANDS are not processed in four separate loops.
12347         Instead, there is one main loop.  This alows that the common code
12348         is expanded only once, thus config.status (and configure) is smaller.
12350         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
12351         the AC_LIST_FILES and cousins macros are no longer used.
12353         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
12354         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
12355         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
12356         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
12357         contain the initialization, nor the for loop, nor the associated
12358         commands; all these go to ...
12359         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
12360         _AC_OUTPUT_CONFIG_STATUS.
12361         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
12362         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
12363         (_AC_OUTPUT_FILE): The creation of the sed script ...
12364         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
12365         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
12366         _AC_OUTPUT_MAIN_LOOP.
12367         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
12368         _AC_CONFIG_COMMANDS): Use ...
12369         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
12370         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
12371         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
12372         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
12373         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
12374         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
12375         ... new macros.
12376         (_AC_CONFIG_UNIQUE): Update.
12377         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
12378         Replaced by this ...
12379         (_AC_LIST_TAGS): ... new common macro.
12380         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
12381         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
12382         (_AC_LIST_TAG_COMMANDS): ... new common macro.
12383         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
12384         this didn't belong to the `config commands' section.
12385         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
12386         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
12387         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
12388         to the `config commands' section either.
12389         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
12390         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
12392         ... and many changes to the comments nearby.
12394         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
12395         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
12396         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
12397         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
12398         (#define header templates): The comment at the top of the generated
12399         header now includes the name(s) of the source file(s).
12401         Several unrelated small changes:
12403         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
12404         parameter to AC_DIAGNOSE.
12405         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
12406         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
12407         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
12408         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
12409         with AU::AC_OUTPUT.
12410         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
12411         in AC_OUTPUT doesn't double-quote it either.
12412         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
12413         parameters.
12415 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
12417         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
12418         versions of Portland Group compiler produce single- and double-quoted
12419         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
12420         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
12422 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12424         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
12425         This is a corrected version of yesterday's patch.
12427 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
12429         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
12430         path, too; insert a "===" to emphasize the line.
12432         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
12433           ac_cv_build_alias to ac_build_alias.
12434         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
12436         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
12437         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
12438         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
12439         (AC_ARG_VAR): ... here.
12440         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
12441           target_alias.
12443         Keep a list of all precious variables and process them with one simple
12444         for loop, instead of expanding all commands, or, OTOH, complicated
12445         processing of output of "set".
12446         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
12447         variable names in new macro...
12448         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
12449         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
12450           a loop to assign all ac_env_* and ac_cv_env_* variables.
12451         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
12452           to INIT_PREPARE.
12453         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
12454           its value to shell variable ac_precious_vars and call
12455           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
12456         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
12457           _AC_ARG_VAR_VALIDATE.
12459         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
12460           and the AC_SUBSTs ...
12461         (AC_INIT): ... here.
12463         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
12464           the ac_subst_files section in config.log.
12466         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
12468 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12470         * NEWS: New macro AC_C_TYPEOF.
12471         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
12472         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
12473         * tests/c.at (C keywords): Test AC_C_TYPEOF.
12475         Fix problems reported by Nicolas Joly.
12476         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
12477         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
12478         They are generated by the Tru64 v5.1B shell.
12480 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
12482         Fix my changes from 2005-07-01; reported by Noah Misch.
12483         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
12484         description, the macro now accepts only a single tag.
12485         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
12487         Fix cases when the varsions of Autoconf and Autotest don't match.
12488         Reported by Noah Misch.
12489         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
12490         at_top_builddir, for compatibility with older autotest.
12491         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
12492         is not set, use at_top_builddir, for compatibility with older
12493         versions of autoconf.
12495 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12497         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
12498         Problem reported by Patrick Welche.
12500 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12502         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
12503         sed substitution command, so that we allow | in program prefixes
12504         and program suffixes.  (& is a problem anyway; we're not fixing
12505         that here.)
12506         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
12507         configure_input, top_builddir, srcdir, etc.
12508         * lib/autotest/general.m4 (AT_INIT): Likewise, for
12509         PATH_SEPARATOR in AUTOTEST_PATH.
12511 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
12513         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
12514         for loop over config.site files using `set', to allow
12515         directory names containing IFS characters.
12517 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12519         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
12520         directories with weird names.  Apparently some people like living
12521         on the edge.  However, improve the test that "pwd" actually does
12522         report a name for the working directory.
12523         * NEWS: Remove the claim that we test for funny chars in dir names.
12525 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
12527         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
12528         replaced ...
12529         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
12530         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
12531         Now accept a single tag, not whitespace separated list.
12532         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
12534 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
12536         * doc/autoconf.texi (Configuration Headers): Change the explanation
12537         about #include <config.h>.
12538         (Generic Functions): Mention the Gnulib project.
12539         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
12541         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
12542         document to output the default config_* lists to config.status.
12543         Don't recognize option --file, if the functionality is not there.
12544         Likewise for --header; moreover, recognize --he and --h as shortcuts
12545         for --help in that case.
12547         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
12548         matches the order of execution.  No code changed.
12550 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12552         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
12553         single-quoted -cmdline argument in Portland Group compiler.
12554         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
12556 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
12558         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
12560 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
12562         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
12563         descriptors to child processes; reported by Norman Gray.
12565 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
12567         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
12569         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
12570         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
12571         (AC_SUBST): Call it.
12572         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
12573         the directory specific variables; but don't call it for configure_input.
12575 2005-06-28  Derek Price  <derek@ximbiot.com>
12577         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
12578         addition.
12580 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12582         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
12583         directory have inherent problems with special characters like spaces,
12584         due to limitations in Make syntax.  Problem reported by Alexandre
12585         Duret-Lutz.
12586         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
12587         Also, fix Tru64 porting problem with shell patterns,
12588         reported by Ralf Wildenhues.
12590 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12592         * doc/autoconf.texi (Subdirectories): Fix markup typos.
12594 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12596         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
12598         Fix some more shell quoting problems.  Prompted by a bug report
12599         from Justace Clutter.
12600         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
12601         variable into diagnostic.  Make the diagnostic an error, not a warning,
12602         because we really don't support spaces and suchlike in dir names.
12603         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
12604         Don't worry about backslashes in srcdir; it can't happen now.
12605         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
12606         Simplify ac_optarg handling.
12607         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
12609 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
12611         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
12612         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
12613         * tests/atlocal.in: Propagate $EGREP and $SED.
12614         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
12615         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
12617         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
12618         that '\|' is not allowed in BREs; recommend using newline separated
12619         list of patterns instead of multiple -e options.
12621         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
12623         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
12625 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12627         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
12629 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
12631         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
12632         b, t, r, w commands require single space, while : cannot have any.
12633         (Special Shell Variables): Fix sed code this in the example.
12634         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
12635         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
12637         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
12638         expand to the empty list.  Don't use two pairs of m4_changequote,
12639         it's not necessary.
12641 2005-06-20  Derek Price  <derek@ximbiot.com>
12643         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
12645 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12647         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
12648         * doc/autoconf.texi:
12649         Don't mention Solaris versions so much, if a
12650         problem is common to all extant versions of Solaris.  Say "SunOS
12651         4" instead of "SunOS" for SunOS 4.
12652         (awk): Mention more of the limitations of traditional Awk.
12653         (cat): Don't talk about cat -v.
12655 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12657         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
12658         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
12659         but the implementation is entirely different and is designed
12660         to be compatible with glibc strverscmp.
12661         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
12663         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
12664         on Mac OS X 10.4 reported by Peter O'Gorman in:
12665         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
12666         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
12667         Use shell builtins rather than 'expr', to work around expr bug.
12669 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
12671         * doc/autoconf.texi: "filesystem" -> "file system".
12672         "behaviour" -> "behavior".
12673         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
12674         * lib/autoconf/general.m4: Omit blank after ":" sed command,
12675         as per POSIX.
12676         * lib/m4sugar/m4sh.m4: Likewise.
12677         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
12678         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
12680         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
12681         (.x.1): Ignore the time stamp in the .TH line when deciding whether
12682         to update the man page.  That way, we don't have to check in new
12683         man pages every month.
12685         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
12686         quotes and backslashes.  Patch from Derek Price.
12688 2005-06-10  Derek Price  <derek@ximbiot.com>
12690         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
12691         AS_TR_SH.
12693 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12695         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
12696         -u, since it outputs chatter if the input files are the same.
12697         Problem reported by Ralf Menzel.
12699 2005-06-08  Derek Price  <derek@ximbiot.com>
12701         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
12702         renaming them since they are about to be redefined anyhow.
12704 2005-06-08  Derek Price  <derek@ximbiot.com>
12706         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
12707         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
12708         Move m4_undefine to alphabetical order.
12710 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12712         * README: Recommend GNU M4 1.4.3 or later.
12713         * doc/autoconf.texi (Introduction): Likewise.
12714         Reword to avoid some formatting glitches.
12715         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
12716         Clarify explanation of HP compiler bug.
12717         Redo example output tp match current CVS snapshot.
12718         Use @example.org in email addresses when the examples
12719         might get inadvertently cut-and-pasted into user code.
12720         Remove example of autom4te usage that doesn't seem to work now.
12721         Use modern AC_INIT (except when the example is meant to be
12722         shown with Autoconf 2.13).
12723         Update ksh info for Solaris 9 and later.
12724         KB -> kB.
12725         Modernize description of Automake versions a bit.
12726         Don't claim a future version of Autoconf is near.
12727         * doc/install.texi: Reword to avoid some formatting glitches.
12729 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12731         * doc/autoconf.texi: Add [] to examples, so that the manual
12732         follows its own advice about quoting better.
12733         Reword to avoid some formatting glitches.
12734         * doc/installt.exi: Reword to avoid some formatting glitches.
12736         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
12737         Tru64 ksh pattern matching bug.  Reported against Libtool by
12738         Albert Chin <libtool@mlists.thewrittenword.com> and
12739         Nicolas Joly <njoly@pasteur.fr>.
12741 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
12743         m4_cdr of one-member list was [[]] (one-member list containing an
12744         empty string) instead of [] (an empty list.  Callers were skewed to
12745         match this misbehaviour.  As a consequence of this:
12746          - m4_foreach([x], [], [foo]) expanded to `foo', while
12747          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
12748         This bug has been fixed:
12750         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
12751           expand to an empty string; print error msg if called without
12752           an argument list.
12753         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
12754           misbehaviour; handle [] and [[]] correctly.
12756 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
12758         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
12759         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
12760           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
12762 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
12764         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
12765           swallow records with more than 99 fields.
12766         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
12767           parse the long line.
12769 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
12771         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
12772           swallow literals longer than 399.  Reported by Ralf Wildenhues.
12773         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
12774           to workaround this limitation.
12776 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
12778         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
12779         to gfortran, and make these the first two compiler names
12780         checked (following the general autoconf preference for gcc).
12782 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
12784         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
12785         (DISTCLEANFILES): Remove $(check_SCRIPTS).
12786         (testsuite): Make sure autotest.m4f is up-to-date before using it.
12788 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12790         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
12791         expression of unbounded size when processing the --list
12792         option.  This runs afoul of a limit of 399 bytes per regular
12793         expression on AIX.  Problem reported by Ralf Wildenhues.
12795 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
12797         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
12798         * doc/autoconf.texi (Particular Headers): Reword example
12799         for multiline stdbool replacement.
12800         (Setting Output Variables): Reword text a bit.  Don't
12801         give all the details about |#_!!_#|.
12802         Reword description of line replacement.
12804 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
12806         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
12807         now contain newlines, and substituted files must be referenced on
12808         a line alone; the sed scripts to substitute them are now very
12809         different.
12810         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
12811         commands can be put in a sed script portably.
12812         * doc/autoconf.texi (Setting Output Variables): Document above
12813         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
12814         use of multiline substitution.
12815         * tests/torture.at: No longer expect substitution of newline to fail.
12817 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12819         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
12820         From Ralf Menzel (trivial change).
12822 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
12824         * tests/local.at: Don't attempt to check for negated character
12825         classes in shell scripts.  The test was too brittle.
12827 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
12829         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
12830         * doc/autoconf.texi (Limitations of Builtins): Document this
12831           limitation.
12833 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
12835         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
12836           common code; used in many places in the tree.
12837         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
12838         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
12840         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
12842         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
12843           messages when ac_unique_file is not found.
12844         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
12845         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
12846           commands, for consistency with AC_MSG_ERROR and such.
12848         * bin/autoconf.as: Make more use of "shift 2" in option processing.
12850         * bin/Makefile.am: Merge the two rules for creating scripts.
12852 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
12854         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
12855         obsolete; it was never documented.
12856         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
12858 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
12860         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
12861         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
12862         (ac_top_builddir): ... this ...
12863         (ac_top_build_prefix): ... to this; the old name is also kept, for
12864           backward compatibility.
12865         (ac_top_builddir_sub): New variable, without the trailing slash,
12866           always nonempty.
12867         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
12868         * doc/autoconf.texi (Configuration Actions): Rename
12869           ac_top_builddir to ac_top_build_prefix.
12870         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
12871           at_top_builddir to at_top_build_prefix.
12872         * lib/autotest/general.m4 (AT_INIT): Likewise.
12874 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
12876         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
12877           of confdefs.h .
12879 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
12881         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
12882           argument to m4_foreach.  I guess it was necessary in the past,
12883           but I think it's a no-op now.
12885 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
12887         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
12888           ``cat <<_ACEOF'' commands to one.
12889         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
12890         * lib/autoconf/status.m4: On various places, use expr instead of
12891           ``echo|sed.''
12892         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
12893         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
12894         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
12895           a range.
12896         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
12897           the wrong patterns between ``case'' and ``esac.''  The previous
12898           code had false positives.
12900 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
12902         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
12903         as on 2005-05-02.
12904         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
12905         Mention LIBOBJDIR.
12907 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12909         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
12910         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
12911         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
12912         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
12913         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
12914         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
12915         config/config.guess, config/config.sub, config/elisp-comp,
12916         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
12917         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
12918         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
12919         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
12920         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
12921         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
12922         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
12923         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
12924         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
12925         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
12926         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
12927         lib/autoconf/general.m4, lib/autoconf/headers.m4,
12928         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
12929         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
12930         lib/autoconf/specific.m4, lib/autoconf/status.m4,
12931         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
12932         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
12933         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
12934         lib/autotest/general.m4, lib/emacs/Makefile.am,
12935         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
12936         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
12937         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
12938         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
12939         tests/compile.at, tests/foreign.at, tests/fortran.at,
12940         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
12941         tests/semantics.at, tests/suite.at, tests/tools.at,
12942         tests/torture.at, tests/wrapper.as:
12943         Update FSF postal mail address.
12945 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
12947         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
12948           check.
12949         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
12950           enough arguments, similarly as in m4_bpatsubsts.
12952 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
12954         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
12955           of absolute paths.
12957 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
12959         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
12960           for absolute directory names in one loop.
12961         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
12962           abbreviations of --version and --debug.
12964 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
12966         * doc/autoconf.texi (Autoconf Language): Be more precise about
12967         quoting rules.  Problems noted by Stepan Kasal.
12968         Also, throughout this document, be more careful about white space.
12969         "blank", "white space", and "space" all have different meanings
12970         and we should be careful to say what we mean.
12972 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12974         Fix C++ related problems reported by Werner Lemberg.
12975         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
12976         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
12977         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
12978         avoid problems with C++ and throw.
12979         * tests/compile.at: .cpp, not .cc.
12981         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
12983 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12985         * doc/autoconf.texi (Generic Functions): Typos.
12987 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
12989         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
12990         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
12991         set by latest automake.
12993 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12995         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
12996         outputs 0 on GNU/Linux these days.
12998 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13000         * doc/autoconf.texi (Autoconf Language): Add more description
13001         about quoting heuristics.
13002         (Limitations of Builtins): Describe "set -" problems.
13004 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13006         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
13007         not newline.
13009         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
13010         by AC_DEFINE; it was a mistake.
13011         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
13013 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
13015         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
13017 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
13019         * doc/autoconf.texi (External Software): Quadrigraphs are not
13020           processed correctly in AS_HELP_STRING; avoid this in the examples.
13021         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
13022         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
13023           comment and reduce m4_default([foo], []) to [foo].
13024         (m4_strip): Update the explanation.
13026 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
13028         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
13029         Remove core.conftest.* too; it's generated by Tru64 5.1.
13030         Problem reported by Jennis Pruett.
13031         * lib/autoconf/functions.m4
13032         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
13033         Don't bother to remove core files; AC_RUN_IFELSE should do that
13034         for you.
13036 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
13038         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
13040 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
13042         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
13043         Report from Horst Wente.
13045 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
13047         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
13048           the comment.
13050 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
13052         * doc/autoconf.texi (External Software, Package Options): Add
13053           examples showing how to implement --with-* and --enable-* options.
13055 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13057         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
13058         as well as configure.in.  Problem reported by Gregorio Guidi.
13060 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13062         * doc/autoconf.texi (Particular Functions): Use gnulib's current
13063         pattern for alloca snippet.
13065 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
13067         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
13069 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
13071         * doc/autoconf.texi (Generic Programs): Fix a typo.
13073 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
13075         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
13076         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
13078 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13080         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
13081         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
13082         whole-archive (-zallextract, -zdefaultextract) options in the hope of
13083         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
13084         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
13086 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13088         * NEWS: The configure command now warns you if you attempt to use
13089         a directory whose name contains a special character like space,
13090         newline, or "\".
13091         * doc/autoconf.texi (Installation Directory Variables): Allow
13092         "," in file names.  Do not use \@; it's not a portable regexp.
13093         * bin/Makefile.am (edit): Likewise.
13094         * lib/Makefile.am (edit): Likewise.
13095         * tests/Makefile.am (edit): Likewise.
13096         * tests/semantics.at: Likewise.
13097         * tests/torture.at: Likewise.
13098         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
13099         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
13100         * doc/autoconf.texi (File System Conventions): Warn about
13101         unportable file names.
13102         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
13103         (AC_INIT): Use it.
13104         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
13105         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
13106         ac_pwd, and quote srcdir.
13107         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
13109         * doc/autoconf.texi: Fix some systematic formatting problems.
13110         ".)"  needs a following @: if not at the end of a sentence, and
13111         similarly for "!)".  "etc." should be preceded by a comma.
13112         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
13114 2005-03-22  Bruno Haible  <bruno@clisp.org>
13116         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
13117         argument is often called 'build-aux'.
13119 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
13121         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
13122           macro AC_TRY_LINK is obsolete.
13123         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
13124           `AC_CONFIG_FILES'.
13126 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
13128         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
13129           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
13130           from a Common Lisp's `cl'.
13131         (AC_PROG_CXX): Behave according to the documentation: don't
13132           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
13133           make the variable CCC precious; use `cl.exe', not `cl'.
13135 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13136             Alexandre Duret-Lutz  <adl@gnu.org>
13138         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
13139         /dev/null, as "configure" shouldn't read stdin, and this insulates
13140         us from problems (e.g., when testing for "cl").  Also, do this
13141         redirection before invoking "hostname" or "uname", and keep the
13142         original input stream available via...
13143         (AS_ORIGINAL_STDIN_FD): ... this new macro.
13144         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
13145         bother with "</dev/null" since it's now done at the top of
13146         'configure'.
13147         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
13148         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13149         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13150         * doc/autoconf.texi (File Descriptor Macros): New section.
13151         (Printing Messages): Mention it.
13152         * tests/base.at (Input/Output): New test.
13154 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13156         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
13157         newline if neither \c nor -n work, as that would output two
13158         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
13160 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
13162         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
13163         This causes that any required macros inside will get before the if.
13164         * doc/autoconf.texi (autom4te.cache): A typo.
13166 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13168         Undo previous change, except keep the change to
13169         lib/autoconf/programs.m4 that replaced grep with shell
13170         pattern-matching.  This is because net-snmp configure reads stdin.
13171         Reported by Noah Misch.
13173 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
13175         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
13176         from /dev/null, as "configure" shouldn't read stdin, and this
13177         insulates us from problems (e.g., when testing for "cl").
13178         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
13179         before invoking "hostname" or "uname".
13180         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13181         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
13182         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
13183         "</dev/null" since it's now done at the top of 'configure'.
13184         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13185         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13186         Also, replace grep with shell pattern-matching, to save a process.
13188 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
13190         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13191         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
13192         avoid thinking that Allegro Common Lisp's "cl" command is a C++
13193         compiler.
13195 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13197         * doc/autoconf.texi (Limitations of Usual Tools): Document that
13198         grep -q isn't portable.  Improve grep -s explanation.
13199         Problem reported by Dan Manthey.
13201 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13203         * doc/autoconf.texi (Special Shell Variables): Clarify
13204         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
13206 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13208         * doc/autoconf.texi: Use @acronym for DJGPP.
13209         Fix some @code's that should have been @env's, and vice versa.
13210         Sort environment variable names.
13211         Mention that shells no longer inherit IFS.
13212         Don't recommend PATH_SEPARATOR=';' so strongly.
13213         Mention that $RANDOM might expand to the empty string.
13214         "symlink" and "soft link" -> "symbolic link".
13215         Improve mktemp description (reported by Bruno Haible).
13217 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13219         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
13220         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
13221         Likewise.
13222         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
13223         Likewise.
13225 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13227         * NEWS: Mention AT_COPYRIGHT.
13229         * tests/local.at (AT_CMP): Use diff directly on input files rather
13230         than copying them.
13232         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
13233         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
13235 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
13236         and Paul Eggert  <eggert@cs.ucla.edu>
13238         * tests/autotest.at (Empty test suite): New test.
13239         * tests/torture.at (Substitute and define special characters)
13240         (Substitute a 2000-byte string, Define to a 2000-byte string)
13241         (Substitute a newline, Define a newline): New tests.
13243 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
13245         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
13246         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
13247         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
13248         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
13249         (Standard regular expressions): New test.
13250         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
13251         excess test name quoting.
13252         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
13253         CPPFLAGS to `configure' instead of setting it in `configure'.
13255         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
13256         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
13257         on some platforms.
13259         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
13260         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
13262         * tests/local.at (AT_CMP): New macro.
13263         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
13264         (AC_SAVE_STATE): Move environment grep...
13265         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
13266         (AT_CONFIG_CMP): New macro.
13267         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
13268         * tests/c.at (Extensions): Do not exit early.
13269         * tests/atlocal.in: Inherit $GREP.
13271         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
13272         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
13274         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
13275         (AC_COPYRIGHT): Factor header comment portion out and move into...
13276         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
13277         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
13278         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
13279         --version output.
13280         * tests/local.at: Add Autoconf test suite copyright notice.
13281         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
13283 2005-02-04  Bruno Haible  <bruno@clisp.org>
13284         and Paul Eggert  <eggert@cs.ucla.edu>
13286         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
13288 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13290         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
13291         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
13293         Try not to generated lines of unlimited length, as POSIX places a
13294         2047-byte limit on line length of portable text files.
13295         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
13296         Use newline as a separator, not space.
13297         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
13298         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
13299         space.
13301 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13303         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
13304         as_func_*.  Add test to check whether positional parameters
13305         are restored after function return.
13307 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13309         * doc/autoconf.texi (Special Shell Variables): Mention _,
13310         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
13311         if they contain a lower-case letter.  The DUALCASE problem was
13312         reported by Ralf Wildenhues.
13314         * bin/autoconf.as: Don't exit with status 0 after write failure
13315         with --help or --version.
13316         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
13317         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
13319 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13321         * doc/autoconf.texi (Limitations of Usual Tools):
13322         Unicos 9 sed limitations.
13323         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
13324         to get the option-enhanced interface on older Crays.  Try ftn for
13325         Fortran 95 (newer Crays).
13327 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13329         * man/Makefile.am (.x.1): Go back to the simple solution, but take
13330         care to echo the commands, so the user knows what's going on.
13331         Modified from a suggestion by Stepan Kasal.
13333         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
13334         with a cross reference.  Derived from a suggestion by Bruce Korb.
13336 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13338         * doc/autoconf.texi (config.status Invocation): Warn about
13339         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
13340         * doc/install.texi (Defining Variables): Likewise.
13341         Based on a proposed patch by Ralf Wildenhues.
13343         * man/Makefile.am (.x.1): Make sure the required generated files
13344         are up to date.  Problem and original solution proposed by Stepan Kasal.
13345         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
13346         implicit-man-prerequisites): New rules, used by the above.
13348         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
13349         * config/config.guess, config/config.sub, config/install-sh: Likewise.
13350         * config/missing, config/texinfo.tex: Likewise.
13352 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
13354         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
13355         Update the long comment explaining it.
13357         m4_require no longer writes an ``is required by'' line to the
13358         execution stack.  It contains only one bit of non-redundant
13359         information: that the macro was required, not called.  And even
13360         this bit is useless in most situations: have you ever met a macro
13361         which both calls and requires the same macro?
13363         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
13364         (_m4_defun_pro_outer): ... only via this macro, for the outermost
13365           macro.
13366         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
13367         (m4_expansion_stack_pop): Remove the misplaced comment.
13368         (m4_require): Don't put the ``is required by'' line to the
13369           execution stack; slightly improve the out-of-a-defun error message.
13370         (_m4_divert_grow): New macro, counter for the temporary diversions.
13371         (_m4_require_call): Use it.
13372         * tests/m4sugar.at (m4_require): Expect output without the
13373           ``is required by'' messages.
13375 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13377         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
13378         rather than x for expr.
13380         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
13381         this is safe.
13382         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
13383         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
13384         * lib/autotest/general.m4 (AT_INIT): Likewise.
13385         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
13386         * tests/mktests.sh: Likewise.
13388 2005-01-27  Akim Demaille  <akim@epita.fr>
13390         Have autoheader honor --force.
13392         * doc/make-stds.texi, doc/standards.texi: Update from masters.
13393         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
13394         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
13395         from masters, so that FileUtils.pm's update_file provide --force
13396         support.
13397         * bin/autoheader.in: Pass $force to update_file so that
13398         config.h.in is always recreated when --force.
13400 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
13402         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
13404 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13406         * doc/autoconf.texi (Limitations of Builtins): Clarify that
13407         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
13409 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13411         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
13412         Warn about newline stripping in `` and $().  Update Solaris
13413         version to 9.
13414         (Limitations of Builtins): Use expr "X...", not expr "x...", as
13415         X insulates us from future changes to Posix.
13416         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
13417         stripping.
13419 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
13421         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
13422           you cannot use AC_DEFINE to define macros containing `[' or `]'.
13424 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13426         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
13427         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
13428         bug-tar mailing list.
13430 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
13432         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
13434 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13436         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
13437         ulongval to be static, to avoid unwanted GCC warning.  Problem
13438         reported by Michael Jennings via Daniel Reed; see
13439         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
13441 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
13443         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
13444         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
13445         datadir, infodir, and mandir.  Adjust argument parsing code.
13446         (_AC_INIT_HELP): Update help text.
13447         * doc/autoconf.texi (Installation Directory Variables): Document
13448         new variables.
13450 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
13452         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
13453         not seem to work, assume it does set $(MAKE).
13454         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
13456 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
13458         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
13460 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
13462         A cleanup of the diversion support in m4sugar.
13464         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
13465         (_m4_divert_n_stack): New macro; the expansion is
13466           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
13467           otherwise.
13468         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
13469         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
13470           stored in _m4_divert_diversion or _m4_divert_dump.
13471         (m4_divert_pop): When the parameter is given, compare the symbolic
13472           name with the last diversion pushed on the stack.  Previously, the
13473           current diversion was compared with the numeric value of the
13474           diversion given as the parameter.
13475         (m4_require): If the macro hasn't been expanded yet, call ...
13476         (_m4_require_call): this new macro.
13478 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13480         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
13481         Workarounds for documented `case' limitations.
13483 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13485         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
13486         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
13488 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
13490         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
13491         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
13492         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
13494         Patch from Roger Leigh (with some minor changes) as follows:
13495         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
13496         Resurrect AC_PROG_CC_STDC.
13497         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
13498         AC_PROG_CC_C89, AC_PROG_CC_C99.
13499         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
13500         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
13501         AC_PROG_CC_C99): New macros.
13502         (AC_PROG_CC_STDC): Use them.
13503         (_AC_PROG_CC_STDC): Remove.
13504         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
13505         * THANKS: Add Roger Leigh.
13507 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
13509         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
13510         signals that the package uses Automake; a `Makefile.am' is typical but
13511         not essential.  Reported by Magnus Therning.
13512         * tests/torture.at (autoreconf.): New banner.
13513         (autoreconf and non-AC configure): Rename to `Non-Autoconf
13514         AC_CONFIG_SUBDIRS'.
13515         (autoreconf an empty directory): Rename to `Empty directory'.
13516         (Unusual Automake input files): New test.
13518 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
13520         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
13521         (AT_SETUP): Clear AT_capture_files.
13522         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
13523         (AT_KEYWORDS): Fix comment typo.
13524         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
13525         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
13526         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
13528 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
13530         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
13531         If the variable to set is already set, set ac_cv_path_$1
13532         to the preset value so caller can assume ac_cv_path_$1
13533         is available.  (trivial change)
13535 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
13537         * BUGS (Minor Problems): Warn about makefile limitations.
13538         * Makefile.am: Find and update `INSTALL' in $(srcdir).
13539         * man/Makefile.am: Find and update manual pages in $(srcdir).
13541 2004-12-24  Eric Blake  <ebb9@byu.net>
13543         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
13544         shells in subshell, to avoid noise from ash.  (trivial change)
13546 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13548         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
13549         problems with SunOS ksh and backslash escaping, Bourne shells and
13550         closing brackets (both within character classes).  Bug reported
13551         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
13552         <read>: New entry.  Mention non-availability of -r.
13554 2004-12-21  Akim Demaille  <akim@epita.fr>
13556         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
13557         avoid cluttering displayed messages.  Rather, prepend srcdir where
13558         AT_LINE is used for log files.
13560 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
13562         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
13563         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
13564           no longer part of the macro, quote the occurrence of ``$tmp''.
13565         * doc/autoconf.texi (Forbidden Patterns): Typo.
13567 2004-12-21  Akim Demaille  <akim@epita.fr>
13569         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
13570         separated from the test title by forcing a white space.
13572 2004-12-21  Akim Demaille  <akim@epita.fr>
13574         Enable Emacs navigation within testsuite.log files.
13576         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
13577         use the compilation mode.
13578         (AT_LINE): Point to the srcdir.
13580 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
13582         * tests/Makefile.am (installcheck-local): Use $(bindir).
13583         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
13584         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
13585         Makefile.am scheme Autoconf now uses.
13587 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
13589         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
13590         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
13592 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
13594         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
13595         (_AT_CHECK): Use it.
13596         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
13597         (AS_ESCAPE): Fix comment.
13598         * tests/autotest.at: Adjust section banner comments.
13599         (AT_CHECK_AT): Accept STATUS and STDERR.
13600         (AT_CHECK_AT_TEST): Likewise.
13601         (Invalid brace-enclosed parameter expansion)
13602         (Multiline command from M4 expansion)
13603         (Double-M4-quoted command): New tests.
13605 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13607         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
13609 2004-12-17  Akim Demaille  <akim@epita.fr>
13611         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
13612         m4_pattern_allow.
13613         Suggested by Alexandre Duret-Lutz.
13614         * doc/autoconf.texi (Setting Output Variables): Catch up.
13616 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
13618         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
13620 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
13622         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
13623           remove the comment which said we cannot.
13625 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
13627         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
13628         Reini Urban and Paul Eggert for reporting the dependencies.
13630         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
13631         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
13632         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
13634 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
13636         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
13637           so that eg. ``autoscan --help'' doesn't truncate it.
13639 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
13641         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
13642         generated conftest files.
13644 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
13646         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
13647         tracing on commands with possibly-escaped newlines.
13648         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
13649         discontinued behavior and its implications.
13650         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
13651         (BSx641-newline in command, BS-BS-newline in command)
13652         (BSx640-newline in command, Newline-CODE-BS-newline in command)
13653         (Single-quote-BS-newline in command)
13654         (Single-quote-newline-BS-newline in command): New tests.
13656 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
13658         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
13659           on platforms where it works.
13660         (_AS_TEST_PREPARE): Test for ``test -x''.
13661         (_AS_BROKEN_TEST_PREPARE): Nuke.
13663 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
13665         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
13666         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
13667           give only 4-letter prefix to AS_TMPDIR, comment fixed.
13668         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
13669           create the temporary directory.
13670         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
13672 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
13674         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
13675         (trivial change)
13677 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
13679         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
13681 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
13683         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
13684         to avoid using a negated character class.  Reported by Nicolas Joly.
13685         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
13687 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
13689         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
13690         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
13691         Don't depend on .x file explicitly, since "make" does that for us.
13692         Suggested by Stepan Kasal.
13694         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
13695         Add *.tmp.
13696         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
13697         ifnames): Factor common code.  And they said it couldn't be done!
13699 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
13701         * bin/.cvsignore: Add autoconf.in.
13702         * tests/.cvsignore: Add wrapper.in.
13703         * lib/autotest/general.m4: Escape '$' in case pattern.
13705 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
13707         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
13709         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
13711         * tests/autotest.at: New file.
13712         * tests/suite.at: Include it.
13713         * tests/Makefile.am: Distribute it.
13715         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
13716           shell tracing on a command that could contain multiple lines.
13717         * doc/autoconf.text: Document that fact and its implications.
13718         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
13719         * tests/autotest.at (Multiline backquote command substitution,
13720           Multiline parameter expansion, Literal multiline command,
13721           Multiline parenthetical command substitution): Remove XFAIL.
13723 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
13725         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
13726         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
13728 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
13730         * configure.ac (test suite): Cease to generate wrapper scripts.
13731         * configure: Regenerate.
13732         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
13733         (m4f_dependencies): Adjust accordingly.
13734         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
13735         (wrapper.in): Generate it in the build directory.
13736         (MAINTAINERCLEANFILES): Delete wrapper.in.
13737         (CLEANFILES): Add wrapper.in.
13738         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
13739         the output.  Replace each $as_me with a @wrap_program@.
13740         * tests/wrapper.in: Delete it; we always build it.
13742         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
13743         (EXTRA_DIST): Remove autoconf.in.
13744         (CLEANFILES): Add autoconf.in.
13745         (autoconf): Find autoconf.in in the build directory.
13746         * bin/autoconf.in: Delete it; we always build it.
13748 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
13750         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
13751         PATH members so as to not prepend an empty element.  Move a comment.
13752         * Makefile.am (SUBDIRS): Build in `tests' last.
13753         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
13755 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
13757         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
13758         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
13759         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
13760         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
13762 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
13764         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
13765         patch: extra "-l"s.
13767 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
13769         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
13770         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
13771         * doc/autoconf.texi (Particular Functions): Mention new behavior.
13773 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
13775         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
13776           out the common code to ...
13777         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
13778           value of the #define--default to 1, iff the macro was called
13779           with exactly one parameter.
13781 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
13783         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
13784         "char c = '\200';" rather than "char c = 0x80;" as the
13785         latter doesn't conform to the strict C standard due to
13786         overflow on signed char hosts.
13788         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
13789         to -qlanglvl=ansi.  We don't want to disable extensions.
13791 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13793         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
13794         (Using Autotest, testsuite Scripts, Writing testsuite.at):
13795         Reword slightly to avoid some English-language problems noted
13796         by Ralf Wildenhues in:
13797         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
13799 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
13801         * NEWS: Add ^L above each release.
13803 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13805         Fix documentation problems reported by Russ Boylan in
13806         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
13807         along with some nearby cruft.
13808         * doc/autoconf.texi (Libtool): Libtool can be used without
13809         Automake (not without Autoconf).
13810         (Introduction): Mention lists.gnu.org.
13811         * BUGS: Don't mention bugs.gnu.org.
13812         Remove mention of ancient libtool compatibility problem.
13813         * NEWS: Mention that bugs.gnu.org is kaput.
13814         * README: Likewise.  Mention where mailing list archives can be found.
13816 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
13818         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
13820 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
13822         * doc/autoconf.texi (Pretty Help Strings): Go back to
13823         single-quoting assignments to cache variables.
13825 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
13827         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
13828         with the examples; fix the bug in MY_ARG_WITH example reported
13829         by Alexandre Duret-Lutz.
13830         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
13831         expansion of $1 in the comment emitted to configure.
13833 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
13835         * doc/autoconf.texi (Pretty Help Strings): Fix typo
13836         in my editing of the previous patch.  Problem reported
13837         by Alexandre Duret-Lutz.
13839 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
13841         * doc/autoconf.texi (Autoconf Language): Explain that
13842         ``descriptions'' may not be double quotes.
13843         (Quotation Rule Of Thumb): Likewise.
13844         (Pretty Help Strings): Likewise; remove the wrong comment;
13845         simplify the examples and improve their quoting.
13847 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
13849         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
13850         the $1_found variable, don't test whether the file is executable;
13851         Both things are checked ...
13852         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
13853         the former ``test -f''.
13854         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
13856 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13858         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
13859         use cp -R instead.
13861 2004-11-10  Derek R. Price  <derek@ximbiot.com>
13863         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
13864         limitations.  Reorder paragraphs for clarity.
13866 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13868         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
13869         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
13870         variants", "Unix", and some related minor wording fixups.
13872         (Shellology, Special Shell Variables): Document that the Zsh
13873         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
13874         to Alexandre Duret-Lutz for this info.
13876 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
13878         * doc/autoconf.texi (One-Shot Macros): New node.
13880 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
13882         * doc/autoconf.texi (Function Portability): Fix misdescription
13883         of putenv.  Problem reported by Michael Wardle.
13885 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13887         * doc/autoconf.texi (auindex): New macro.
13888         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
13889         Problem reported by Stepan Kasal.
13891 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13893         Fix problems reported by Andreas Buening in:
13894         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
13895         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
13896         in test makefile.
13897         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
13898         readable; it's not true in OS/2-emx.
13900 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
13902         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
13903         "/usr/include", clear ac_x_includes instead of leaving it as "no"
13904         (trivial change).  Problem and patch reported by Andrew Church in:
13905         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
13907 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13909         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
13910         three args in examples.  Problem reported by Frederik Fouvry in:
13911         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
13912         Also, fix some minor spacing and punctuation bugs.
13914 2004-09-02  Akim Demaille  <akim@epita.fr>
13916         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
13917         "case" to restore ordering.
13918         Reported by Stepan Kasal.
13920 2004-08-26  Akim Demaille  <akim@epita.fr>
13922         * doc/autoconf.texi: Minor typos and stylos.
13924 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13926         * configure.ac (AC_INIT): Bump to 2.59c.
13928 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13930         Version 2.59b.
13932         * README: Add advice about m4 1.4.2.
13934         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
13935         texinfo.tex for now (done by hand now).
13936         * Makefile.maint (wget_files, cvs_files):
13937         Remove ansi2knr.c; nobody uses it.
13938         (ansi2knr.c-url_prefix): Remove.
13939         (cvs-update): Fix test for failure.  I don't know why it ever
13940         worked...
13942         * doc/autoconf.texi: Update URLs, some of which went stale.
13943         Use @uref rather than @href.
13945         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
13946         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
13948         * config/config.guess, config/config.sub, config/elisp-comp,
13949         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
13950         doc/fdl.texi, doc/standards.texi: Sync with master copy.
13952         * NEWS, TODO, configure.ac, bin/autoscan.in,
13953         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
13954         doc/install.texi, lib/Autom4te/Configure_ac.pm,
13955         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
13956         lib/autoconf/programs.m4, lib/autoconf/status.m4,
13957         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
13958         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
13959         tests/tools.at, tests/torture.at:
13960         Use "file name" rather than "filename" or "path",
13961         to be consistent with the terminology of the GNU coding standards.
13963 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13965         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
13966         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
13967         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
13968         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
13970         More fixes to support spaces in the name of the build directory.
13971         This isn't a complete fix but it's an improvement.
13973         * bin/autoconf.as (autom4te_options): New var.
13974         Use it instead of appending to AUTOM4TE, so that we can allow
13975         spaces in the build directory's absolute name.
13976         * bin/autoheader.in ($autoconf): Allow spaces in file names.
13977         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
13978         AT_CHECK_NOESCAPE): Likewise.
13979         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
13980         main program): Likewise.
13982 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13984         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
13985         From Ralf Corsepius in:
13986         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
13988 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13990         * doc/autoconf.texi (Function Portability): Document isinf and
13991         and isnan.  From a suggestion by Kevin Ryde.
13993         * lib/Autom4te/General.pm (END): Return correct exit status even
13994         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
13996 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13998         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
13999         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
14000         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
14002 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
14004         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
14005         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
14006         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
14007         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
14008         * lib/autom4te.in (Automake-preselections): Preselect
14009         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
14011 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
14013         * lib/autom4te.in (Automake-preselections): Preselect
14014         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
14015         trace them.
14017 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
14019         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
14020         Tru64.
14021         * doc/autoconf.texi (Shellology): Mention BIN_SH.
14022         Document problem with "`""`" in pdksh POSIX mode.
14024 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14026         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
14027         with pdksh, too.  Problem reported by Patrick Welche via
14028         Gary V. Vaughan.
14029         * doc/autoconf.texi (Shellology): Note that set -o posix is
14030         useful for pkdsh, too.
14032 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14034         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
14035         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
14036         Don't fail if ENV or BASH_ENV is readonly.
14037         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
14038         etc. are read only.  Problem reported by Ludovic Courtes.
14040 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
14042         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
14043         zsh, disable GLOB_SUBST to avoid backslash handling problems.
14044         (trivial change)
14046 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14048         * doc/autoconf.texi (File System Conventions): Warn about
14049         names like "aux".  Problem reported by Eric Blake.
14051         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
14052         by zero instead of array size, so that we can use any arithmetic
14053         constant expression (instead of requiring an integer constant
14054         expression).  This allows us to test expressions like DBL_MAX <
14055         LDBL_MAX, which didn't conform to the C standard using the old
14056         method.
14057         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
14058         now that we can do floating-point tests at compile time.
14060 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14062         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
14063         and LDBL_EPSILON, as the resulting expression isn't an
14064         integer constant expression and violates the C standard.
14065         Problem reported by Nelson H. F. Beebe.  Also, check
14066         for "L" suffix, and check that long double doesn't have
14067         worse range or precision than double, that mixed-mode
14068         arithmetic doesn't generate a diagnostic, that double
14069         constants fit in long double.
14071 2004-06-03  Kevin Ryde  <user42@zip.com.au>
14073         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
14074         malloc(0) and realloc(NULL,size).
14076         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
14077         Bob Proulx.
14079 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14081         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
14082         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
14083         by Jim Meyering.
14085 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
14087         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
14088         can be rewritten using if-then-else.  Suggested by Bruno Haible.
14090 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14092         * doc/autoconf.texi (testsuite Scripts): Fix typo.
14093         Problem reported by Stepan Kasal.
14095 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14097         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
14098         change).  Patch reported by Ralf Wildenhues in
14099         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
14101         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
14102         function F exists if the compiler and linker let you compile an
14103         expression like (F != 0).  Recent versions of GCC optimize away
14104         the reference to F in that case, since every function address must
14105         be nonzero, so the link succeeds even if F does not exist.
14106         Problem reported by Manu in
14107         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
14109         * doc/autoconf.texi (Systemology): Standardize on the spelling of
14110         "Unix".  Many uses changed.
14111         (Limitations of Builtins): Explain better why the ! command isn't
14112         portable.
14114 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
14116         * lib/autom4te.in (Automake-preselections): Preselect
14117         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
14119 2004-05-19  Kevin Ryde  <user42@zip.com.au>
14121         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
14122         referencing AC_FUNC_STRERROR_R.
14124         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
14125         note pessimistic assumption when cross compiling.
14127 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14129         * doc/autoconf.texi (Limitations of Make): Note that BSD make
14130         (until 2004) invoked subcommands with sh -e, contra POSIX.
14131         Reported by Kevin Ryde.
14133 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
14135         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
14136         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
14137         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
14138         `test -f "        /usr/bin/grep"', which _always_ failed.
14139         (AC_PROG_SED): Ditto bogus PATH fix.
14140         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
14141         requires that grep correctly supports _multiple_ `-e' options, rather
14142         than stating only that grep should accept `-e'.
14144 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14146         Port to C99, which requires that 'exit' be declared.
14148         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
14149         to ensure that stdlib.h is included.
14150         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
14151         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
14152         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
14153         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
14154         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
14155         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
14156         when using 'exit' in a test; C99 requires that 'exit' be declared.
14158 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
14160         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
14161         now prefers 'grep' implementations that accept -e.
14162         (Limitations of Usual Tools): Describe problems of traditional
14163         egrep and fgrep with long input lines, and of traditional grep
14164         with -e.
14165         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
14166         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
14167         All callers changed.  Append /usr/xpg4/bin to the PATH, for
14168         Solaris.
14169         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
14170         the user with complaints about multiple -e options.
14171         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
14172         Define it with AC_PROG_GREP.
14173         * configure.ac (AC_PROG_GREP): Add.
14174         * lib/freeze.mk (GREP): New macro.
14176 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
14178         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
14179         a possible candidate only after all others fail, rather than
14180         consulting it first.  This improves backward compatibility by
14181         better reflecting the way shell selection occurred in previous
14182         versions of Autoconf, and should help to avoid triggering latent
14183         problems in other packages, such as the one in Automake where zsh
14184         is not handled robustly:
14185         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
14186         Although it is not Autoconf's responsibility to work around
14187         problems in Automake, it nevertheless makes sense to avoid
14188         introducing unnecessary incompatibilites.
14190 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
14191             Gary V. Vaughan  <gary@gnu.org>
14193         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
14194         how deeply nested we are when a suitable tool is found, set the
14195         ac_path_TOOL_found flag.
14196         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
14197         nested we are in this macro.  Break out of all 3 nested loops if
14198         ac_path_TOOL_found is set.
14200 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
14202         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
14203         of the _AS_PATH_WALK loop too if GNU flavor is found.
14205 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
14207         * doc/autoconf.texi (Limitations of Make): Update documentation
14208         for `$<'.  New entry `Long lines', based on a report from Simon
14209         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
14210         paragraph about DJGPP, based on a mail from Richard Dawe.
14212 2004-04-20  Paul Eggert  <eggert@twinsun.com>
14214         * tests/c.at (C keywords): Don't assume that GCC supports
14215         "restrict" and "inline", as sufficiently-old GCC versions do not
14216         (also, GCC configured to be in pedantic C89 mode does not).
14217         Problem reported by Sumit Pandya in:
14218         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
14220         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
14221         consider -g to work if it generates warnings when plain compiles
14222         don't.  Problem reported by Braden McDaniel in:
14223         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
14225         * doc/autoconf.texi (Slashes): New section, to document a problem
14226         reported by Jim Meyering in:
14227         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
14229         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
14230         linker output files before linking, to work around IRIX 6 linker bug.
14231         Problem reported by Rainer Orth in:
14232         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
14234 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
14236         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
14237         best tool so far counter rely on the tool path variable name to
14238         avoid checks for one tool being affected by the results of running
14239         the length check on a previous tool.
14241         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
14242         match expression argument, as different greps have different
14243         regular expression flavours.
14244         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
14245         literals.
14246         (AC_PROG_EGREP): Pass 'EGREP$'.
14247         (AC_PROG_GREP): Pass 'GREP$'.
14249 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
14251         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
14252         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
14254 2004-03-29  Paul Eggert  <eggert@twinsun.com>
14256         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
14257         Types, Specific Compiler Characteristics, System Services,
14258         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
14259         etc. consistently instead of 'long', 'short', 'unsigned' etc.
14260         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
14261         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
14262         Likewise.
14263         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
14264         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
14265         AC_TYPE_OFF_T): Likewise.
14266         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
14267         Likewise.
14269         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
14270         pacify libtool 1.5.2.  Fix quoting problems in sed command.
14272 2004-03-28  Paul Eggert  <eggert@twinsun.com>
14274         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
14275         now defines HAVE_DECL_TZNAME if it is declared, when
14276         HAVE_STRUCT_TM_TM_ZONE is not defined.
14277         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
14278         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
14279         for HAVE_TZNAME.
14281 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
14283         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
14284         superfluous backslashing of quotes (") in sed expressions;
14285         thanks to Paul Eggert.
14287 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
14289         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
14290         Fortran compiler is ifort, also added pghpf; thanks to Nelson
14291         H. F. Beebe for the bug report.
14293 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
14295         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
14296         quoted -cmdline argument in Portland Group compiler (bug
14297         reported by Jeffrey J. Barteet).
14299 2004-03-25  Kevin Ryde  <user42@zip.com.au>
14301         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
14302         (Run Time): ... here, where it's now mentioned.
14304 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
14306         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
14307         inherits from language Autoconf-without-aclocal-m4.
14308         (Customizing autom4te): Adjust example; the cache must now be
14309         disabled for language Autoconf-without-aclocal-m4.
14311 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
14312             Nathanael Nerode  <neroden@twcny.rr.com>
14314         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
14315         AC_CHECK_TOOLS): Warn if a cross-tool is found without
14316         a prefix.
14317         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14318         AC_CHECK_TARGET_TOOLS): New macros.
14319         * doc/autoconf.texi (Generic Programs): Document
14320         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14321         AC_CHECK_TARGET_TOOLS, and warn for future changes
14322         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
14323         AC_CHECK_TOOLS.
14324         (Specifying Names): Document the reason for these future
14325         behavioral changes.
14326         * tests/mktests.sh: Do not generate tests for the
14327         new macros.
14328         * NEWS: Document these changes.
14330         * doc/autoconf.texi: Avoid macros with unbraced arguments,
14331         they make TeX hang up.
14333 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
14335         * NEWS: New macro AC_CHECK_ALIGNOF.
14336         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
14337         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
14338         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
14339         vowel.
14340         (AC_CHECK_ALIGNOF): New macro.
14341         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
14342         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
14343         those for sizeof.
14345 2004-03-03  Paul Eggert  <eggert@twinsun.com>
14347         * bin/Makefile.am (edit): Don't use $< in a context where
14348         POSIX doesn't require support for it.  Use $@.in instead.
14349         Problem reported by Anthony N. Frasso in
14350         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
14351         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
14353 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
14355         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
14356         from the next generation of Libtool.
14357         * lib/autom4te.in (Autoreconf-preselections): Ditto.
14359 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
14361         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
14362         is not always thread-safe.  Report from Nathanael Nerode.
14364 2004-02-18  Paul Eggert  <eggert@twinsun.com>
14366         Fix a dependencies problem, stemming from a Autoconf 2.59 build
14367         problem on QNX reported by Stephen Rasku in
14368         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
14370         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
14371         $(m4sh_m4f_dependencies); this removes a FIXME.
14372         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
14373         (MAINTAINERCLEANFILES): Split into pieces,
14374         one per related section.  Add $(srcdir)/wrapper.in.
14376 2004-02-09  Paul Eggert  <eggert@twinsun.com>
14378         * doc/autoconf.texi (Setting Output Variables): Emphasize that
14379         AC_SUBST provides no portable way to escape literal newlines.
14381         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
14382         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
14383         Darwin uses -lcrt2.o and there's little point to cataloging all
14384         the system variants.  Partial fix reported by Andreas Waechter in:
14385         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
14386         for bug reported by Nelson H. F. Beebe in:
14387         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
14389 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
14391         * doc/autoconf.texi (AU_DEFUN): Fix English,
14392         suggested by Paul Eggert.
14393         * lib/autoconf/autoupdate.m4: Correct reference to
14394         acobsolete.m4, suggested by Alexandre Duret-Lutz.
14396 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
14398         * bin/autoupdate.in: Define __file__ so that warnings
14399         refer to the correct file.
14400         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
14401         the behavior of the third argument.
14402         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
14403         correctly the behavior of the third argument.  Document
14404         what the three macros that AU_DEFUN defines do.  Fix
14405         warning message when the third argument includes $0
14406         (reported by Alexandre Duret-Lutz).
14408 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
14409             Eric Sunshine  <sunshine@sunshineco.com>
14410             Paul Eggert  <eggert@twinsun.com>
14412         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
14413         (AS_INIT): Output shell initialization there. Removed optional
14414         parameter. Expand _AS_SHELL_FN_SPY.
14415         (AS_INIT_WITH_SHELL_FN): Removed.
14416         (_AS_SHELL_FN_SPY): New macro.
14417         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
14418         macros.
14419         (AS_SHELL_SANITIZE): Remove loop to find better shell
14420         and documentation for the parameter.
14421         (_AS_DETECT_BETTER_SHELL): Move it here.
14422         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
14423         (_AS_RUN): Move it here, support testing with eval.
14424         (AS_REQUIRE_SHELL_FN): Require shell functions when
14425         it is used.
14426         (_AS_LINENO_WORKS): Put around braces, we do not
14427         trigger the bash bug anymore.
14428         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
14429         use AS_INIT_WITH_SHELL_FN.
14430         * bin/autoconf.in, tests/wrapper.in: Regenerated.
14432 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
14434         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
14435         * doc/autoconf.texi: Don't say that the third parameter
14436         is broken.
14437         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
14438         (AU_DEFUN): Honor the third parameter, create autoupdate
14439         macros with AU_DEFINE.
14440         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
14441         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
14442         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
14443         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
14444         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
14445         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
14446         AC_XENIX_DIR): Likewise.
14447         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
14448         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
14449         * lib/autoconf/status.m4: Remove FIXME.
14450         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
14451         that the macro is not present anymore in the updated
14452         configure.ac.
14453         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
14454         of autoupdate.
14456 2004-01-28  Paul Eggert  <eggert@twinsun.com>
14458         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
14459         copyright years.
14460         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
14461         2003 (except 1997) to the list of copyright years.  This undoes
14462         the 2003-05-22 change, which removed the older years from the list.
14463         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
14465 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
14466             Albert Chin-A-Young  <china@thewrittenword.com>
14468         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
14469         grep or ggrep program in PATH that accepts as long lines as
14470         possible.
14471         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
14472         AC_PROG_GREP.
14473         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
14474         egrep and fgrep respectively if $GREP -E/-F don't work.
14475         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
14476         _AC_PROG_GREP, and AC_PROG_SED.
14477         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
14478         longest input length accepted by a command.
14479         (AC_PROG_SED): Use it.
14480         * doc/autoconf.texi (Particular Programs): Document the changes.
14481         * NEWS: Updated.
14483 2004-01-27  Paul Eggert  <eggert@twinsun.com>
14485         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
14486         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14487         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
14488         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
14490         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
14491         bin/autoconf.in, config/Makefile.in, config/config.guess,
14492         config/config.sub, config/install-sh, config/mdate-sh,
14493         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
14494         lib/Makefile.in, lib/Autom4te/Makefile.in,
14495         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
14496         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
14497         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
14498         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
14499         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
14500         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
14501         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
14502         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
14503         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
14504         tests/actypes.at: Regenerate and/or sync with original
14505         sources.
14507 2004-01-26  Paul Eggert  <eggert@twinsun.com>
14509         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
14510         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
14511         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
14512         not <inttypes.h>.  Problem reported by Tim Mooney in
14513         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
14514         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
14515         Likewise.
14517         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
14518         otherwise "make check" fails because it forbids cmp (I guess
14519         because cmp treats files as binary on DOS-like systems).
14521         * tests/mktests.sh: Update copyright date to 2004, since some tests
14522         have changed in 2004.
14524 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
14526         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
14527         non-truncating sed or gsed program in PATH.
14528         * tests/acprograms.at: Add it.
14529         * doc/autoconf.texi (Particular Programs): Document it.
14530         * NEWS: Updated.
14532 2004-01-15  Paul Eggert  <eggert@twinsun.com>
14534         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
14535         -std1 disables some useful extensions on Tru64.  Problem reported
14536         by N. Lichtmaier in
14537         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
14539 2004-01-14  Paul Eggert  <eggert@twinsun.com>
14541         * doc/autoconf.texi (Programming in M4sh): Document that
14542         AS_MKDIR_P succeeds if the destination is a symbolic link
14543         to an existing directory.
14544         (Limitations of Usual Tools): Note that mkdir -p might not
14545         succeed on symlinks to directories.
14547 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
14549         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
14550         * bin/autoheader.in: Grammar fix in message.
14551         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
14552         Test for dir before calling mkdir -p.  (trivial changes)
14554 2004-01-13  Eric Blake  <ebb9@byu.net>
14556         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
14557         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
14559 2004-01-10  Jim Meyering  <jim@meyering.net>
14561         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
14563 2004-01-09  Paul Eggert  <eggert@twinsun.com>
14565         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
14566         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
14567         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
14568         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
14569         AC_COMPILE_IFELSE, since we now assume our caller invokes
14570         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
14571         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
14572         of AC_RUN_IFELSE; this avoids the warning mentioned above.
14573         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
14575 2004-01-07  Paul Eggert  <eggert@twinsun.com>
14577         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
14578         `"'...'"`, as it's confusing (and I suspect it may not work on
14579         some platforms).  The code was incorrect anyway, as it assumed
14580         that \$ evaluated to itself in that context.  Reported by
14581         Alexandre Duret-Lutz.
14583 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
14585         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
14586         and _LT_AC_TAGCONFIG.
14588 2004-01-06  Paul Eggert  <eggert@twinsun.com>
14590         * doc/autoconf.texi (One Macro Call): Fix an incorrect
14591         example, and add more examples.  Reported by Eric Sunshine.
14593 2004-01-05  Paul Eggert  <eggert@twinsun.com>
14595         * doc/autoconf.texi (Limitations of Usual Tools):
14596         Remove warning against "rm -fr" introduced yesterday; it
14597         was a false alarm.
14599         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
14600         autoscan, autoupdate, ifnames): Don't use chmod -w.
14601         * lib/Makefile.am (autom4te.cfg): Likewise.
14602         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
14603         "chmod -w".
14605 2004-01-04  Paul Eggert  <eggert@twinsun.com>
14606             Paolo Bonzini  <bonzini@gnu.org>
14608         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
14609         by doing lineno substitution only on lines containing "$LINENO".
14611 2004-01-04  Paul Eggert  <eggert@twinsun.com>
14613         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
14614         Use "rm -f" to remove conftest.sed, not plain "rm".
14615         Bug reported by David Relson in
14616         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
14618         * Makefile.am (autom4te-update):
14619         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
14620         * Makefile.maint (my-distcheck, do-po-update): Likewise.
14621         * doc/autoconf.texi (Guidelines): Likewise.
14622         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
14623         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
14624         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
14625         * lib/autotest/general.m4 (AT_INIT): Likewise.
14626         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
14627         * tests/Makefile.am (clean-local): Likewise.
14628         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
14629         srcdir): Likewise.
14630         * doc/autoconf.texi (Limitations of Usual Tools):
14631         Warn against "rm -fr".
14633 2004-01-03  Paul Eggert  <eggert@twinsun.com>
14635         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
14636         -c -o might not work.  From a suggestion by Kevin Ryde.
14637         (C Compiler, Generating Sources, Limitations
14638         of Usual Tools, Limitations of Make, Making testsuite Scripts):
14639         Don't put '-o' after non-options, as POSIX doesn't allow this.
14640         Mention that cc's name might be gcc or c89 or whatever.
14642 2004-01-04  Kevin Ryde  <user42@zip.com.au>
14644         * doc/autoconf.texi: Add various further index entries.
14646 2003-12-29  Paul Eggert  <eggert@twinsun.com>
14648         * bin/autoreconf.in (autoreconf_current_directory):
14649         Fix typo: mkdir without umask arg.
14651 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
14653         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
14654         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
14655         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
14656         explanation clearer.
14658 2003-12-24  Andreas Schwab  <schwab@suse.de>
14660         * doc/autoconf.texi (Default Includes): Fix misspelling of
14661         AC_INCLUDES_DEFAULT.
14663 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
14665         * configure.ac: Test if sh -n works.
14666         * configure: Regenerate.
14667         * tests/atlocal.in: Store the result here.
14668         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
14669         tools.at, looking in atlocal's ac_cv_sh_n_works instead
14670         of explicitly testing.
14671         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
14672         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
14673         * tests/tools.at (Syntax of the shell scripts): Simplify
14674         using AT_CHECK_SHELL_SYNTAX.
14675         (Syntax of the Perl scripts): Remove definition of
14676         AT_CHECK_PERL_SYNTAX.
14678 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
14680         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
14681         stderr to /dev/null.
14682         * bin/autoconf.in: Regenerate.
14683         * bin/wrapper.in: Regenerate.
14685 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
14687         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
14688         Extracted from AS_SHELL_SANITIZE.
14689         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
14690         macros.
14691         (AS_SHELL_SANITIZE): Move reinvocation code from
14692         _AS_LINENO_WORKS, use it to find out if shell
14693         functions work.
14694         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
14695         does not work.
14696         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
14697         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
14698         was called.
14699         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
14700         * bin/autoconf.in: Regenerate.
14701         * tests/wrapper.in: Regenerate.
14702         * tests/tools.at: Test the syntax of tests/autoconf
14703         and tests/testsuite.
14705 2003-11-24  Akim Demaille  <akim@epita.fr>
14707         * config/announce-gen (&print_locations, &print_signatures)
14708         (&sizes): New.
14709         Use them.
14710         No longer rely on Gnus to inline the list of signatures: compute
14711         them on the fly.
14713 2003-11-24  Akim Demaille  <akim@epita.fr>
14715         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
14716         override some files.
14717         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
14718         From Debian Autoconf 2.58.
14720 2003-11-24  Akim Demaille  <akim@epita.fr>
14722         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
14723         uses.
14724         From Debian Autoconf 2.58.
14726 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
14728         * TODO: Remove already done things.  Update the part about finding
14729         tools for the target.
14731 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
14733         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
14734         Make wording more consistent.
14735         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
14736         Explain the transition better.
14737         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
14738         the transition better.
14740 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
14742         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
14743         parameter of AU_DEFUN.
14744         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
14745         (AU_DEFUN): Remove the third parameter, it was not used.
14746         Use AC_DEFUN directly, not AU_DEFINE.
14747         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
14748         the expanded body, consistently with other macros such as AC_USG.
14750 2003-11-17  Paul Eggert  <eggert@twinsun.com>
14752         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
14753         into the initial confdefs.h, to work around a bug in NextStep 3.3
14754         patch 3 reported by Eric Sunshine.
14756 2003-11-15  Kevin Ryde  <user42@zip.com.au>
14758         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
14759         than $target since the latter is not usual, add guidelines on when to
14760         use or not use the system type.
14762 2003-11-12  Derek Price  <derek@ximbiot.com>
14764         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
14765         typo misrepaired by an auto-spellcheck.
14767 2003-11-12  Akim Demaille  <akim@epita.fr>
14769         * bin/autoreconf.in (&parse_args): Don't call automake with
14770         --force-missing unless it actually supports it.
14771         From Debian #219336.
14773 2003-11-12  Akim Demaille  <akim@epita.fr>
14775         * configure.ac: Bump to 2.59a.
14776         Require 2.59.
14778 2003-11-06  Akim Demaille  <akim@epita.fr>
14780         Version 2.59.
14782 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
14784         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
14785         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
14786         and ac_abs_top_srcdir are absolute paths.
14787         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
14789 2003-11-05  Akim Demaille  <akim@epita.fr>
14791         * configure.ac: Bump to 2.58a.
14793 2003-11-05  Kevin Ryde  <user42@zip.com.au>
14795         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
14796         it provokes a warning from makeinfo about looking like a cross
14797         reference in info output.
14799         * doc/autoconf.texi (Function Portability): Add notes on signal
14800         handler return type, as per AC_TYPE_SIGNAL.
14802 2003-11-04  Akim Demaille  <akim@epita.fr>
14804         Version 2.58.
14805         * doc/standards.texi: Update from master.
14807         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
14809 2003-11-04  Akim Demaille  <akim@epita.fr>
14811         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
14812         computing the absolute path to d1 in the source hierarchy: it may
14813         not exist at all.  So don't cd into it.
14814         From Alexandre Duret-Lutz.
14815         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
14817         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
14818         From Paul Eggert, but named after Perl's IO::Spec->catfile.
14819         * doc/autoconf.texi (Programming in M4sh): Document.
14820         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
14822 2003-11-03  Pavel Roskin  <proski@gnu.org>
14824         * doc/autoconf.texi (Generic Structure Checks): Describe
14825         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
14827 2003-10-31  Akim Demaille  <akim@epita.fr>
14829         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
14830         (GNU Fortran): New.
14831         * doc/autoconf.texi (Language Choice): Document.
14832         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
14833         the current language is Fortran.
14835 2003-10-31  Akim Demaille  <akim@epita.fr>
14837         * bin/autom4te.in (&freeze): Use a less likely warning separator
14838         than `\n\n', so that `\n\n\n' is valid in warnings.
14839         Reported by Steve Huston.
14841 2003-10-28  Akim Demaille  <akim@epita.fr>
14843         * Makefile.cfg (local_updates, executable-update): Tweak to be
14844         robust to parallel makes.
14845         Suggested by Alexandre Duret-Lutz.
14847 2003-10-27  Akim Demaille  <akim@epita.fr>
14849         * Makefile.cfg (executable-update): New.
14850         (local_updates): Call it.
14852 2003-10-27  Akim Demaille  <akim@epita.fr>
14854         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
14855         Don't remove core.* as it may remove valid user files.
14856         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
14857         (AC_FUNC_UTIME_NULL): Likewise.
14859 2003-10-23  Akim Demaille  <akim@epita.fr>
14861         Version 2.57g.
14862         * config/config.guess, config/config.sub: Upgrade from masters.
14864 2003-10-23  Akim Demaille  <akim@epita.fr>
14866         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
14867         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
14868         hand...
14870 2003-10-23  Akim Demaille  <akim@epita.fr>
14872         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
14873         Don't forget to remove conftest.err.
14875 2003-10-23  Akim Demaille  <akim@epita.fr>
14877         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
14878         same object file in $LIBOBJS.
14879         Reported by Alexandre Duret-Lutz & Derek Robert Price.
14880         * doc/autoconf.texi (Generic Functions): Adjust.
14882 2003-10-20  Paul Eggert  <eggert@twinsun.com>
14884         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
14885         Use 'eval', so that the resulting configure scripts work even if
14886         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
14888 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
14890         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
14891         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
14892         (_AC_LINK_IFELSE): Check the werror flag.
14893         * doc/autoconf.texi (Generic Compiler Characteristics): Document
14894         AC_LANG_WERROR.
14895         * NEWS: Mention it.
14897 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
14899         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
14900         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
14901         override AC_LINK_IFELSE.
14903 2003-10-15  Paul Eggert  <eggert@twinsun.com>
14905         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
14906         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
14907         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
14908         Mention /usr/dt/bin/dtksh on Solaris.
14909         (Shell Substitutions): Warn about $((...)).
14910         (Parentheses): New section.
14912 2003-10-15  Kevin Ryde  <user42@zip.com.au>
14914         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
14915         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
14917 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
14919         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
14920         cross test.
14922 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
14924         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
14925         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
14927 2003-10-10  Andreas Schwab  <schwab@suse.de>
14929         * bin/autoheader.in: Avoid empty first line in --version and
14930         --help output.
14931         * bin/ifnames.in: Likewise.
14933 2003-10-09  Paul Eggert  <eggert@twinsun.com>
14935         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
14936         Issue a more-informative diagnostic.
14937         Problems reported by Eric Sunshine.
14939 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
14941         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
14942         -mGLOB_options_string stuff for Intel ifc, which can cause
14943         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
14944         pattern-matching instead of grep.
14946 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
14948         * doc/autoconf.texi: Document new FC Fortran macros.
14950 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
14952         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
14953         that future autopoint/aclocal/automake/autoreconf will be able
14954         to trace to find where to install local m4 macros.
14955         * doc/autoconf.texi (Input): Document it.
14956         * NEWS: Updated.
14958 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
14960         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
14961         -lcrtbegin.o to list of ignored flags and fix underquoting of
14962         -lcrt[01].o.
14964 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
14966         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
14967         cache variable instead of $G77 to decide whether to include -O2,
14968         since $G77 is specific to Fortran 77.
14970 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
14972         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
14973         free" flag.  Re-order flags tested into rough order of popularity.
14975 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
14977         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
14978         arguments so that it can be used with syntax identical to
14979         AC_PROG_F77, and so that we can more easily decide to
14980         remove/deprecate the DIALECT optional argument in the future if it
14981         proves troublesome.
14982         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
14983         non-freeform-supporting compilers.  Document freeform flags.
14985 2003-10-03  Akim Demaille  <akim@epita.fr>
14987         * configure.ac: Look for emacs, not macs.
14988         Reported by Eric Sunshine.
14990 2003-10-03  Akim Demaille  <akim@epita.fr>
14992         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
14993         * bin/autoreconf.in (autoreconf_current_directory): Create the
14994         AUX_DIR if needed, for sake of automake --add-missing etc.
14995         Suggested by Alexandre Duret-Lutz.
14997 2003-10-03  Akim Demaille  <akim@epita.fr>
14999         * configure.ac: Quotation and formatting changes.
15000         (EMACS): Don't set it if it is not recent enough to support
15001         autoconf-mode.el.
15002         From Eric Sunshine.
15004 2003-10-02  Akim Demaille  <akim@epita.fr>
15006         * bin/ifnames.in (&scan_file): Skip C++ comments.
15007         From Jeremy Yallop.
15009 2003-10-01  Pavel Roskin  <proski@gnu.org>
15011         * doc/autoconf.texi (Particular Structure Checks):
15012         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
15014 2003-10-01  Akim Demaille  <akim@epita.fr>
15016         Version 2.57f.
15018 2003-09-30  Paul Eggert  <eggert@twinsun.com>
15020         * lib/Autom4te/XFile.pm: Use Errno.
15021         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
15022         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
15024 2003-09-30  Akim Demaille  <akim@epita.fr>
15026         * config/announce-gen (&print_news_deltas): Extracted from...
15027         (&print_changelog_deltas): here.
15028         (&news_file): Rename as...
15029         (@news_file): this.
15031 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
15033         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
15034         have been created when invoking the compiler.
15035         * tests/fortran.at (GNU Fortran 77): Quote $G77.
15037 2003-09-29  Akim Demaille  <akim@epita.fr>
15039         Version 2.57e.
15041         * config/mkinstalldirs: Upgrade.
15043 2003-09-28  Paul Eggert  <eggert@twinsun.com>
15045         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
15046         Problem reported by Lars J. Aas in
15047         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
15048         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
15049         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
15050         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
15052 2003-09-26  Akim Demaille  <akim@epita.fr>
15054         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
15055         directory for AC_CONFIG_COMMANDS' first argument exists.
15056         This makes valid the invocation of _AC_SRCPATH that follows.
15057         Reported by Eric Sunshine.
15058         * doc/autoconf.texi (Configuration Commands): Adjust.
15060 2003-09-26  Akim Demaille  <akim@epita.fr>
15062         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
15063         Reported by Ralf Corsepius.
15065 2003-09-26  Akim Demaille  <akim@epita.fr>
15067         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
15068         arguments.
15069         Actually, use AU_ALIAS.
15070         From Bruno Haible.
15072 2003-09-26  Paul Eggert  <eggert@twinsun.com>
15074         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
15075         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
15076         Problem reported by Eric Sunshine in:
15077         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
15079 2003-09-26  Akim Demaille  <akim@epita.fr>
15081         The test suite are sometimes assigning timings incorrectly.
15082         Reported by Henk Krus.
15083         Diagnosed by Nicolas Joly.
15085         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
15086         AT_help_all.
15087         Instead of making AT_help a sequence of assignments to grow
15088         $at_help_all, just make AT_help_all be the growing contents of
15089         $at_help_all, and make a single assignment in...
15090         (AT_INIT): here.
15091         (at_times_skip): Flip the meaning and rename as...
15092         (at_times_p): this.
15093         (AT_INIT): When summarizing the test that ran, remove
15094         $at_times_file after use, and check it is present before trying to
15095         use it.
15097 2003-09-25  Akim Demaille  <akim@epita.fr>
15099         Version 2.57d.
15101         * bin/Makefile.am (edit): Handle '@configure_input@'.
15102         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
15103         (ifnames): chmod -w.
15104         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
15105         executables, not bin/ executables!  Otherwise all the magic needed
15106         to find non installed files is turned off.  This caused a failure
15107         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
15108         as found in its environment (sent by tests/autoreconf): pointing
15109         to bin/autom4te that could not find its files.
15110         * tests/mktests.sh: Force the replacement of generated files, for
15111         the sake of "mv" program that are interactive when overwriting a
15112         -w file.
15113         * config/install-sh: Upgrade from CVS Automake.
15115 2003-09-23  Paul Eggert  <eggert@twinsun.com>
15117         * doc/autoconf.texi (Limitations of Builtins): Document test -h
15118         versus test -L issues.
15120 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
15121             Paul Eggert  <eggert@twinsun.com>
15123         Trivial change to support GCC's configuration procedure.
15124         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
15125         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
15126         about inconsistency if the preprocessor is set to give errors for
15127         any warning.
15128         * doc/autoconf.texi (C Compiler Characteristics): Document this.
15130 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
15132         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
15133         and XFile.pm from Automake.
15134         * lib/Autom4te/XFile.pm: Update from Automake.
15136 2003-09-12  Akim Demaille  <akim@epita.fr>
15138         Version 2.57c.
15140 2003-09-12  Akim Demaille  <akim@epita.fr>
15142         * config/config.guess, config/config.sub, config/missing,
15143         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
15144         from masters.
15146 2003-09-12  Akim Demaille  <akim@epita.fr>
15148         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
15149         not asm/types.h.
15151 2003-09-11  Akim Demaille  <akim@epita.fr>
15153         * doc/autoconf.texi (Header Portability): linux/random.h.
15154         From Peter Hendrickson.
15156 2003-09-10  Akim Demaille  <akim@epita.fr>
15158         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
15159         willing to edit the output files.
15161 2003-09-10  Akim Demaille  <akim@epita.fr>
15163         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
15164         and AC_FC_FREEFORM.
15165         * tests/mktests.sh: Skip AC_FC_SRCEXT.
15166         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
15168 2003-09-09  Akim Demaille  <akim@epita.fr>
15170         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
15171         Reported by Gary Vaughan.
15172         * bin/autom4te.in (handle_m4): Likewise.
15174 2003-09-09  Akim Demaille  <akim@epita.fr>
15176         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
15177         trailing files.
15179 2003-09-07  Paul Eggert  <eggert@twinsun.com>
15181         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
15182         Improve the accuracy of the wording about obsolescence.
15183         From a suggestion by Ian Lance Taylor in
15184         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
15186 2003-09-05  Paul Eggert  <eggert@twinsun.com>
15188         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
15189         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
15191 2003-09-04  Akim Demaille  <akim@epita.fr>
15193         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
15194         AC_FUNC_WAIT3.
15196 2003-09-04  Akim Demaille  <akim@epita.fr>
15198         * bin/autom4te.in: Use &fatal where more appropriate than &error.
15199         (freeze): When exiting, use $exit_code.
15200         * lib/autoconf/fortran.m4: Comment changes.
15202 2003-09-04  Akim Demaille  <akim@epita.fr>
15204         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
15206 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
15208         Add support for newer Fortran dialects.  The F77 interface is
15209         unchanged, and continues to support Fortran 77.  New FC macros
15210         correspond to all the old F77 macros, with output variables FC,
15211         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
15212         available dialect, but older dialects can be specified.  There are
15213         new macros AC_FC_SRCEXT to set the source extension, and
15214         AC_FC_FREEFORM to accept free-form source files.
15216         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
15217         New macros.
15218         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
15219         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
15220         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
15221         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
15222         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
15223         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
15224         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
15225         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
15226         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
15227         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
15228         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
15229         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
15230         AC_FC_SRCEXT, AC_FC_FREEFORM):
15231         New macros.
15232         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
15233         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
15234         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
15235         Rewrite in terms of the above.
15236         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
15237         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
15238         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
15239         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
15241 2003-09-02  Paul Eggert  <eggert@twinsun.com>
15243         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
15244         Document problems with timestamp resolution that 'make', 'cp -p', and
15245         'touch -r' have.
15247 2003-08-27  Akim Demaille  <akim@epita.fr>
15249         * tests/m4sugar.at (cross_warning): Make sure to enable the
15250         output, so that we can track spurious m4sugar output.
15251         * tests/local.at: Require 2.57.
15252         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
15253         are defaulted by AT_CHECK anyway.
15254         Use AT_CHECK_AUTOM4TE.
15255         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
15256         missing dnl.
15258 2003-08-27  Akim Demaille  <akim@epita.fr>
15260         * bin/autoheader.in: Issue the "Using auxiliary..." message only
15261         when -Wobsolete is set.
15262         Set it on by default.
15263         Suggested by Klee Dienes.
15265 2003-08-27  Akim Demaille  <akim@epita.fr>
15267         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
15268         documentation.
15269         From Guido Draheim.
15271 2003-08-26  Akim Demaille  <akim@epita.fr>
15273         * doc/autoconf.texi (Output): Make clear that one can run code
15274         after AC_OUTPUT.
15276 2003-08-25  Akim Demaille  <akim@epita.fr>
15278         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
15279         CVS Bison.
15281 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
15283         * bin/autoreconf.in (parse_args): Do not pass --no-force to
15284         Automake versions prior to 1.8.
15286 2003-08-25  Akim Demaille  <akim@epita.fr>
15288         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
15289         From Ville Karaila.
15291 2003-08-24  Akim Demaille  <akim@epita.fr>
15293         * configure.ac: Bump to 2.57c.
15295 2003-08-22  Akim Demaille  <akim@epita.fr>
15297         Version 2.57b.
15299         * Makefile.cfg (local-checks-to-skip): New.
15300         * Makefile.maint (local-check): Rename as...
15301         (local-checks-available): this.
15302         (local-check): New.
15304         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
15305         * configure.ac: Require Automake 1.7.6.
15307 2003-08-22  Akim Demaille  <akim@epita.fr>
15309         Output stack traces in warnings.
15311         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
15312         Replace the former...
15313         (m4_warn): Pass the call stack to _m4_warn.
15314         * bin/autom4te.in: Adjust to output the call stack.
15315         * tests/m4sugar.at (m4@&t@_warn): Adjust.
15317 2003-08-22  Akim Demaille  <akim@epita.fr>
15319         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
15320         * bin/autom4te.in: Adjust.
15322 2003-08-21  Akim Demaille  <akim@epita.fr>
15324         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
15325         (&verbose): Remove.
15326         (&getopt): Adjust the note and verb channels, depending upon
15327         --verbose.
15328         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
15329         * bin/autoupdate.in: Adjust.
15330         Use &verb, not &verbose.
15332 2003-08-21  Akim Demaille  <akim@epita.fr>
15334         * bin/autoheader.in (&parse_args): Use &parse_warnings and
15335         &parse_WARNINGS.
15336         ($help): Use Autom4te::ChannelDefs::usage.
15337         * bin/autoscan.in: Use Autom4te::ChannelDefs.
15338         * lib/Autom4te/General.pm: Don't export error: you don't own it.
15340 2003-08-21  Akim Demaille  <akim@epita.fr>
15342         First stab at preserving warnings between calls to autom4te,
15343         including when the cache is used.
15345         There are still several issues: (i) there are too many runs of m4
15346         (one for include, one for warnings, and some more), (ii) warnings
15347         spreading on several lines are not handled gracefully, (iii) the
15348         code meant to have the call stack display for errors does not work
15349         (its handling should move from m4 to autom4te).
15351         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
15352         Use them.
15353         (@preselect): Add m4_warn.
15354         ($exit_status): Remove, use $exit_code.
15355         ($help): Use Autom4te::ChannelDefs::usage.
15356         (&handle_m4): No longer define the m4_warnings.
15357         At each run, extract and report the warnings.
15358         Always cache the result, including if the exit status is on
15359         failure, since if nothing changes, we should result in the same
15360         failure, hence we can use the cache.
15361         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
15362         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
15363         Remove.
15364         (m4_warn): Redefine as a do-nothing: it is its invocation that
15365         matters, as warnings are now reported via traces.
15366         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
15367         the contents of m4_warn: make it _call_ m4_warn, so that tracing
15368         the latter reveals calls to the former.
15370         Adjust the tests.
15372         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
15374 2003-08-21  Akim Demaille  <akim@epita.fr>
15376         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
15377         Use them.
15379 2003-08-21  Akim Demaille  <akim@epita.fr>
15381         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
15382         forward order.
15383         * lib/Autom4te/ChannelDefs.pm: Doc typos.
15384         (&parse_warnings): Accept a list of warning requests.
15385         (&usage): Return a string, not a side effect.
15386         (cross): New warning category.
15388 2003-08-21  Akim Demaille  <akim@epita.fr>
15390         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
15391         (&require_configure_ac): Accept an optional directory argument.
15392         ($configure_ac): Remove.
15393         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
15394         (&catfile): Remove.
15395         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
15396         * bin/autoscan.in: Adjust.
15398 2003-08-20  Akim Demaille  <akim@epita.fr>
15400         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
15401         Reported by Alexandre Duret-Lutz.
15403 2003-08-20  Akim Demaille  <akim@epita.fr>
15405         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
15406         * bin/autom4te: Adjust.
15407         In particular, be Autoconf tools are really silent when properly
15408         working, bind the verbosity of the 'note' channel to $verbose.
15409         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
15410         (&xsystem, &contents): Remove, since they are exported by...
15411         * lib/Autom4te/FileUtils.pm: this.
15412         More perldoc.
15413         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
15414         * lib/Autom4te/FileUtils.pm: here.
15416 2003-08-20  Akim Demaille  <akim@epita.fr>
15418         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
15419         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
15420         from CVS Automake.
15422 2003-08-20  Akim Demaille  <akim@epita.fr>
15424         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
15425         (autom4te-update): New.
15426         * Makefile.cfg (update): Bind autom4te-update.
15428 2003-08-19  Derek Price  <derek@ximbiot.com>
15430         * lib/autotest/general.m4: Comment various HELP_* diversions.
15431         (PARSE_ARGS_BEGIN): New section for option parsing related
15432         initialization.
15433         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
15434         package specific options and associated help.
15436 2003-08-19  Akim Demaille  <akim@epita.fr>
15438         * config/announce-gen, Makefile.cfg: New.
15439         * Makefile.am: Adjust.
15440         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
15442 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
15444         * lib/autom4te.in (Automake-preselections): Preselect
15445         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
15446         and m4_sinclude.
15448 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
15450         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
15451         (Autoconf-without-aclocal-m4): ... this new language.
15452         * doc/autoconf.texi (autom4te Invocation): Mention
15453         Autoconf-without-aclocal-m4.
15455 2003-08-18  Derek Price  <derek@ximbiot.com>
15457         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
15458         RUN-IF-PASS optional arguments.
15460 2003-08-18  Derek Price  <derek@ximbiot.com>
15462         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
15464 2003-08-16  Derek Price  <derek@ximbiot.com>
15466         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
15467         STDOUT & STDERR arguments.
15469 2003-08-14  Derek Price  <derek@ximbiot.com>
15471         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
15472         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
15473         shorter column three.  Add DESCRIPTION to log file content.
15475 2003-08-13  Derek Price  <derek@ximbiot.com>
15477         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
15478         output.
15480 2003-08-12  Derek Price  <derek@ximbiot.com>
15482         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
15483         (AT_CHECK_NOESCAPE): Move core functionality to...
15484         (_AT_CHECK): ...this new macro.
15486 2003-08-07  Derek Price  <derek@ximbiot.com>
15488         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
15489         (AT_CHECK_NOESCAPE): ...to this new macro.
15491 2003-07-31  Paul Eggert  <eggert@twinsun.com>
15493         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
15494         in Bash 2.01.  Problem reported by Brian Gough in
15495         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
15497 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
15499         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
15500         -lcrt1.o, for OS X.  (trivial change)
15502 2003-07-07  Paul Eggert  <eggert@twinsun.com>
15504         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
15505         inside '#ifndef __cplusplus'.  Problem reported by
15506         Bob Friesenhahn.
15508 2003-07-06  Bill Clarke  <llib@computer.org>
15510         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
15511         'long', not 'int', for benefit of Sun's recent C++ compilers
15512         (trivial change).  See:
15513         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
15514         (This really should be 'intptr_t', not 'long', but that would
15515         take more work.)
15517 2003-06-25  Akim Demaille  <akim@epita.fr>
15519         * lib/Makefile.am (autom4te.cfg): Make it read only.
15520         Depend on Makefile since it contains substitutions.
15521         From Paolo Bonzini.
15522         * lib/autom4te.in (args): Add local.at? for Autotest args.
15523         This change was made on autom4te.cfg which is generated.
15524         Reported by Raja R. Harinath.
15526 2003-06-25  Akim Demaille  <akim@epita.fr>
15528         * doc/autoconf.texi (Header Portability): sys/mount.h.
15529         From Gareth McCaughan.
15531 2003-06-23  Akim Demaille  <akim@epita.fr>
15533         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
15534         not all of them.  This fixes 1. the fact that when testing
15535         Autoconf there are many many config.log, 2. the incorrect use of
15536         top_srcdir to find config.log.
15537         Don't mix the detailed output of failed test with the summary of
15538         failures.  Rather, append detailed log afterwards.
15540 2003-06-23  Akim Demaille  <akim@epita.fr>
15542         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
15543         always run: output config.log on $at_group_log.
15545 2003-06-23  Akim Demaille  <akim@epita.fr>
15547         * tests/torture.at (#define header templates): Don't use quotes in
15548         C++ comments as it puzzles Emacs' sh font-lock-mode.
15550 2003-06-23  Akim Demaille  <akim@epita.fr>
15552         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
15553         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
15554         * tests/atspecific.m4: Rename as...
15555         * tests/local.at: This.
15556         * tests/suite.at: Move the globals into...
15557         * tests/local.at: here.
15558         * tests/Makefile.am: Adjust.
15559         * doc/autoconf.texi (testsuite Scripts): Adjust.
15561 2003-06-21  Kevin Ryde  <user42@zip.com.au>
15563         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
15564         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
15565         ensuring we add -std1 for full-ANSI.
15567         * doc/autoconf.texi (hdrindex): New macro.
15568         Add index entries for portability of various standard header files.
15570 2003-06-20  Akim Demaille  <akim@epita.fr>
15572         * configure.ac: Bump to 2.57b.
15574 2003-06-20  Akim Demaille  <akim@epita.fr>
15576         Version 2.57a.
15578 2003-06-20  Akim Demaille  <akim@epita.fr>
15580         * bin/autom4te.in: Don't rely on $HOME being defined.
15581         Reported by Marc Espie as PR/233.
15583 2003-06-20  Akim Demaille  <akim@epita.fr>
15585         * lib/autotest/general.m4: Use at_times_file only if used.
15586         From Nicolas Joly.
15588 2003-06-20  Akim Demaille  <akim@epita.fr>
15590         * config/config.guess, config/config.sub, config/elisp-comp,
15591         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
15592         Update from masters.
15594 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
15596         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
15597         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
15598         (TEST_SCRIPT): New diversion.
15599         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
15600         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
15601         (AT_INIT): Support for expected failures.
15603 2003-06-02  Akim Demaille  <akim@epita.fr>
15605         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
15606         changes.
15607         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
15608         Autoconf nor Automake.
15609         (&contents): New, from Automake.
15610         PODify.
15612 2003-05-28  Paul Eggert  <eggert@twinsun.com>
15614         * NEWS, doc/autoconf.texi (Particular Functions),
15615         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
15616         is the inverse of localtime.
15618 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
15620         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
15621         (handle_exec_errors): New function.  Work around $! being
15622         altered by WEXITSTATUS.
15623         (xqx, xsystem): Use handle_exec_errors.
15625 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
15627         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
15628         Do not call `_exit()', simply modify `$?'.
15629         (xsystem): Reset $! before running system, and check it afterward.
15630         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
15631         63 for version mismatches.
15633 2003-05-23  Akim Demaille  <akim@epita.fr>
15635         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
15636         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
15637         the middle of a line).
15638         * lib/m4sugar/m4sugar.m4: Likewise.
15639         Remove useless spaces in comments.
15641 2003-05-23  Akim Demaille  <akim@epita.fr>
15643         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
15644         exit 63, so that we (or Automake's "missing") can tell the
15645         difference with a plain failure.
15646         * doc/autoconf.texi (Notices): Adjust.
15648 2003-05-23  Akim Demaille  <akim@epita.fr>
15650         * Makefile.am, bin/Makefile.am, config/Makefile.am,
15651         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
15652         White spaces cleanup.
15654 2003-05-22  Jim Meyering  <jim@meyering.net>
15655             Paul Eggert  <eggert@twinsun.com>
15657         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
15658         Remove `#include <stdlib.h>' from the list; we should never
15659         make confdefs.h include <stdlib.h> or <cstdlib>, because the
15660         resulting namespace pollution would cause other tests to fail.
15661         Configure scripts run with some older versions of g++ and HP's
15662         aCC would fail due to such an #include.  Problems reported by
15663         Matthew Mueller in <http://bugs.debian.org/120704> and by
15664         Keith Bostic in
15665         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
15666         In the test, use the test declaration before including <stdlib.h>,
15667         as that's closer to how it'll be used.
15669 2003-05-23  Akim Demaille  <akim@epita.fr>
15671         * doc/autoconf.texi (Header Portability): ucred.h.
15672         From Ian Redfern.
15674 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
15676         Overhaul Autotest's logging: generate separate log files
15677         in testsuite.dir/NNN/testsuite.log, and append them to
15678         testsuite.log instead of re-running the test verbosely.
15680         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
15681         file descriptor, write 0 to at_status_file instead of setting
15682         at_status=0, initialize some new variables (at_status_file,
15683         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
15684         to rerun the tests, instead append the at_group_log to the
15685         at_suite_log when a test fails.
15686         (AT_SETUP): pipe the test case's output into at_tee_pipe,
15687         with the AS_MESSAGE_LOG_FD redirected to stdout.
15688         (AT_CLEANUP): save the output status in $at_status_file
15689         and restore it, redirect the AS_MESSAGE_LOG_FD back to
15690         its original place.
15691         (AT_CHECK): since tests are run with a redirected stdout,
15692         and used to be re-run in verbose mode, turn some $at_verbose
15693         into echo, and don't redirect the output of testing stdout
15694         and stderr.
15696         * lib/autotest/autoconf.texi (testsuite Scripts): Update
15697         the name of the debugging directory and information about
15698         its contents.
15700 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
15702         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
15703         parameter.
15705 2003-05-22  Akim Demaille  <akim@epita.fr>
15707         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
15708         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
15709         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
15710         * lib/autoconf/status.m4: Fix and adjust copyright notices.
15712 2003-05-22  Akim Demaille  <akim@epita.fr>
15714         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
15715         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
15716         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15717         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
15718         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
15719         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
15720         * lib/autoconf/status.m4, lib/autoconf/types.m4,
15721         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
15722         * tests/atspecific.m4, tests/base.at, tests/compile.at,
15723         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
15724         * tests/tools.at, tests/torture.at:
15725         Whitespace clean up.
15726         Suggested by Jim Meyering.
15728 2003-05-22  Akim Demaille  <akim@epita.fr>
15730         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
15731         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
15732         Reported by Jim Meyering.
15734 2003-05-22  Akim Demaille  <akim@epita.fr>
15736         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
15737         Add AC_HELP_STRING  to the obsolete macros section.
15738         Typos.
15739         Use '@.' for sentences that ended in a capital letter.
15740         From Art Haas.
15742 2003-05-22  Akim Demaille  <akim@epita.fr>
15744         * config/config.guess, config/config.sub, config/elisp-comp,
15745         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
15746         * config/texinfo.tex, doc/standards.texi: Update from masters.
15748 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
15750         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
15751         it to eval.
15753 2003-05-21  Akim Demaille  <akim@epita.fr>
15755         * bin/autoupdate.in ($m4): Fix quotation.
15756         Reported by Martin Mokrejs.
15758 2003-05-19  Paul Eggert  <eggert@twinsun.com>
15760         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
15761         Remove non-ASCII characters.
15763 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
15765         * tests/semantics.at (AC_SEARCH_LIBS): New test.
15766         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
15767         AC_CHECK_HEADERS_NEW): New tests.
15769 2003-05-17  Akim Demaille  <akim@epita.fr>
15771         * lib/autoconf/functions.m4: Use the default includes so that
15772         memcmp be declared before being tested.
15773         Reported by Sander Niemeijer.
15774         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
15775         * doc/autoconf.texi (Default Includes): Document
15776         AC_INCLUDES_DEFAULT.
15778 2003-05-17  Akim Demaille  <akim@epita.fr>
15780         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
15781         * doc/autoconf.texi (Obsolete Macros): Adjust.
15782         Reported by Werner LEMBERG and Debian Bug 190886.
15784 2003-05-16  Akim Demaille  <akim@epita.fr>
15786         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
15787         user name space clashes.
15788         Reported by Bruno Haible.
15790 2003-05-16  Akim Demaille  <akim@epita.fr>
15792         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15793         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
15794         them uniform, and more robust to Perl special characters.
15795         Reported by Martin Mokrejs.
15797 2003-05-14  Akim Demaille  <akim@epita.fr>
15799         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
15801 2003-05-14  Akim Demaille  <akim@epita.fr>
15803         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
15804         linux/irda.h.
15806 2003-05-12  Akim Demaille  <akim@epita.fr>
15808         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
15809         message.
15810         From Matthias Andree.
15812 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
15814         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
15815         and truncate.
15817 2003-05-06  Akim Demaille  <akim@epita.fr>
15819         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
15820         longer updates aclocal.m4 if useless, (ii) if a file m4_included
15821         by aclocal.m4 is changed it might require the importing of another
15822         m4 extension file, i.e., aclocal must be run.
15824         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
15825         (&parse_args): Use --force with aclocal if required and supported.
15826         (&autoreconf_current_directory): Use &run_aclocal.
15828 2003-05-06  Akim Demaille  <akim@epita.fr>
15830         Lock autom4te's cache.
15832         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
15833         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
15834         argument instead of a file name, so that the request file remains
15835         open during the whole autom4te run.
15836         ($icache_file): New.
15837         (&freeze): Lock the $icache_file.
15839 2003-04-29  Derek Price  <derek@ximbiot.com>
15841         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
15842         seperator with m4_append_uniq().  It doesn't work.
15843         (AT_CLEANUP): Add `;' to end of at_help_all.
15844         (AT_INIT): Allow --keywords to be specified more than once.  When
15845         grepping $at_help_all for keywords, use the field and keyword
15846         seperators to ensure a complete keyword match.  Alter at_prev handling
15847         to support the new --keywords behavior.
15849 2003-04-27  Karl Berry  <karl@freefriends.org>
15851         * doc/autoconf.texi: Make the dir entries in the autoconf manual
15852         align better with others.  I also made some of the individual
15853         entries on one line, for brevity and to make it easier for me to
15854         sort my dir-example file in the Texinfo distribution :).
15856 2003-04-12  Jim Meyering  <jim@meyering.net>
15858         * NEWS: Mention the new macro.
15859         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
15860         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
15861         * tests/c.at: Test AC_C_RESTRICT.
15862         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
15864 2003-04-08  Akim Demaille  <akim@epita.fr>
15866         * bin/ifnames.in: Skip C++ comments.
15867         From Jeremy Yallop.
15869 2003-04-08  Akim Demaille  <akim@epita.fr>
15871         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
15872         From Ilya Zakharevich.
15874 2003-04-08  Akim Demaille  <akim@epita.fr>
15876         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
15877         net/if.h, stdlib.h.
15879 2003-04-01  Derek Price  <derek@ximbiot.com>
15881         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
15882         from Akim's checkin of 2003-03-29.
15884 2003-04-01  Derek Price  <derek@ximbiot.com>
15886         * tests/torture.at (Configuring subdirectories): Add missing
15887         close-quote for Akim's change from 2003-03-28.
15889 2003-04-01  Akim Demaille  <akim@epita.fr>
15891         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
15892         (AC, AT, MS): these.
15893         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
15894         New.
15895         Use them.
15896         * doc/Makefile.am (CLEANFILES): Adjust.
15897         (TEXI2DVI): Make it --batch.
15899 2003-03-31  Derek Price  <derek@ximbiot.com>
15901         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
15902         which removed the main loop.
15903         Thanks to Akim Demaille.
15905 2003-03-29  Akim Demaille  <akim@epita.fr>
15907         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
15908         that starts a GUI.
15909         From Ilya Zakharevich.
15911 2003-03-29  Akim Demaille  <akim@epita.fr>
15913         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
15914         documentation to read is Autoconf's.
15915         Suggested by Paul Eggert.
15917 2003-03-28  Akim Demaille  <akim@epita.fr>
15919         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
15920         reading the section "Present But Cannot Be Compiled" when the
15921         header causes problems.
15923 2003-03-28  Akim Demaille  <akim@epita.fr>
15925         * tests/torture.at (Configuring subdirectories): Require aclocal
15926         1.4, otherwise the test fails, as it does support configure.ac.
15927         This fixes the "test 40 failed" bug reports.
15929 2003-03-28  Akim Demaille  <akim@epita.fr>
15931         * doc/autoconf.texi (C Compiler): `#line' portability.
15932         From Paul Eggert and Nelson H. F. Beebe.
15934 2003-03-27  Derek Price  <derek@ximbiot.com>
15936         * lib/autotest/general.m4: Eliminate main loop and reorganize test
15937         layout in order to allow scripting around test groups.
15939 2003-03-27  Derek Price  <derek@ximbiot.com>
15941         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
15942         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
15943         use new diversions in preparation for accepting new arguments and
15944         allowing scripting around tests.
15945         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
15947 2003-03-26  Derek Price  <derek@ximbiot.com>
15949         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
15950         obsolete AC_HELP_STRING.
15951         (AC_HELP_STRING): AU_DEFUN to...
15952         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
15953         * tests/m4sh.at (AS_HELP_STRING): New test.
15955         * tests/acgeneral.at: Regenerated.
15957 2003-03-26  Derek Price  <derek@ximbiot.com>
15959         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
15960         sense.  Verbosify the diversion definitions comment.
15962 2003-03-26  Derek Price  <derek@ximbiot.com>
15964         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
15965         AS_PREPARE.
15967 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
15969         * doc/autoconf.texi (Present But Cannot Be Compiled):
15970         Grammar fixes and minor rewording. (trivial change)
15972 2003-03-06  Paul Eggert  <eggert@twinsun.com>
15974         Work around a problem noted by Nelson H. F. Beebe with coreutils
15975         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
15976         2002/05/09) rejects '#line 32768 "configure"' because the line
15977         number overflows.
15978         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
15979         #line directives.
15980         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
15981         * doc/autoconf.texi (Generating Sources): Document this.
15983 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
15985         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
15986         file name for the m4 program, when it has an "exe" file extension.
15987         DJGPP's error messages include the error code in brackets -
15988         remove the error code during normalization.
15990 2003-02-28  Akim Demaille  <akim@epita.fr>
15992         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
15994 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
15996         * doc/autoconf.texi (Limitations of Make): Remove the section
15997         about `$<' in inference rules, it was a bogus interpretation of
15998         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
15999         Tru64 make in the "target lookup" section.
16000         (Automake): Automake 1.5+ no longer requires special tools to be
16001         present on the developer's host.
16003 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
16005         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
16006         to a shell that can handle redirection or quoting correctly.
16007         Override SHELL with the shell detected by configure.
16008         Use of $^O suggested by Tim van Holder.
16009         * bin/autom4te.in (BEGIN): Likewise.
16010         * bin/autoreconf.in (BEGIN): Likewise.
16011         * bin/autoscan.in (BEGIN): Likewise.
16012         * bin/autoupdate.in (BEGIN): Likewise.
16013         * bin/ifnames.in (BEGIN): Likewise.
16015         * bin/ifnames.in: Add final newline to help and version messages.
16017         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
16018         to cope with DOS-style absolute paths, when constructing
16019         ${ac_make}.
16021         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
16022         When constructing paths with IFS=:, quote the path. If we're
16023         constructing a DOS-style absolute path, we don't want to split it
16024         on the colon.
16026         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
16027         in description.
16029 2003-02-25  Pavel Roskin  <proski@gnu.org>
16031         * bin/autoheader.in: Add missing newline when printing
16032         suggestion how change AC_DEFINE call.
16034 2003-02-24  Paul Eggert  <eggert@twinsun.com>
16036         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
16037         2002-09-01 patch by replacing "test -n" with "test -z".
16038         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
16039         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
16041         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
16042         to fix a mismatch between example and discussion.
16044 2003-02-24  Kevin Ryde  <user42@zip.com.au>
16046         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
16047         format starting with "-".
16049 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
16051         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
16052         is not portable inside Makefile.
16054 2003-02-20  Akim Demaille  <akim@epita.fr>
16056         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
16057         compiler says yeah, but preproc says nope, compiler is right.
16058         Conversely, prompt the reader to send a bug report to the
16059         maintainers of the package, not of Autoconf.
16061 2003-02-20  Klee Dienes  <kdienes@apple.com>
16063         * bin/autoreconf.in (autoreconf_current_directory): Properly
16064         handle an empty aclocal.m4.
16066 2003-02-20  Akim Demaille  <akim@epita.fr>
16068         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
16069         $ac_prefix_program.
16070         From Larry Jones.
16072 2002-12-23  Paul Eggert  <eggert@twinsun.com>
16074         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
16075         innocuous variant befor including <limits.h> or <assert.h>.  This
16076         works around a bug reported by Albert Chin: HP-UX 11i
16077         (and earlier versions) have a <limits.h> that declares
16078         gettimeofday and many other functions.
16080 2002-12-03  Paul Eggert  <eggert@twinsun.com>
16082         Version 2.57.
16084         * NEWS, configure.ac: Update version.
16086         * doc/fdl.texi: Upgrade to FDL version 1.2.
16088         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
16089         nontrivially in main's body, so that f's external declaration is
16090         not optimized away in AIX.  This should fix the bug reported by
16091         Martin Frydl in
16092         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
16094         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
16095         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
16096         defined, to support freestanding compilers.  This should fix the
16097         bug reported by Momchil Velkov in
16098         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
16100         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
16101         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
16102         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
16103         by Simon Josefsson in
16104         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
16106         * Makefile.maint (www-gnu): New macro.
16107         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
16108         the location has moved.
16110 2002-12-02  Martin Frydl  <martin@systinet.com>
16112         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
16113         \(.*\) match is too long and there is something more to be checked.
16114         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
16116 2002-11-15  Akim Demaille  <akim@epita.fr>
16118         Version 2.56.
16120         * config/install-sh: chmod +x.
16121         From Paul Eggert.
16122         * config/move-if-change: Indenting changes.
16123         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
16124         * configure.ac (AM_INIT_AUTOMAKE): here.
16125         Require 1.7.1.
16127 2002-11-14  Akim Demaille  <akim@epita.fr>
16129         Version 2.55.
16131         * config/config.guess, config/config.sub, config/install-sh:
16132         Update from masters.
16134 2002-11-14  Akim Demaille  <akim@epita.fr>
16136         * Makefile.maint: Sync with Bison, i.e.:
16137         (po-check): Scan .l and .y files instead of the
16138         .c and the .h files that they generate.  This fixes the bug
16139         reported by Tim Van Holder in:
16140         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
16141         Look for N_ as well as for _.  Try to avoid matching #define for
16142         N_ and _.
16143         From Paul Eggert.
16145 2002-11-14  Akim Demaille  <akim@epita.fr>
16147         * doc/autoconf.texi (C Compiler): Compiling several files at once.
16148         From Paul Eggert and Albert Chin-A-Young.
16150 2002-11-14  Akim Demaille  <akim@epita.fr>
16152         * doc/autoconf.texi (C Compiler): Solitary backslashes.
16153         From Paul Eggert and Albert Chin-A-Young.
16155 2002-11-14  Kevin Ryde  <user42@zip.com.au>
16157         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
16158         than assigning in main, to avoid HP cc +O3 optimizing it away.
16160 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
16162         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
16163         option.  Process --recheck after parsing all options.  Pass -q
16164         option to configure on --recheck.
16165         (AC_OUTPUT): Pass -q from configure to config.status.
16166         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
16167         arguments to record.
16168         * doc/autoconf.texi (config.status Invocation): Document
16169         config.status -q option.
16171 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
16173         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
16174         Makefile.in if Makefile.am exists.
16175         (output): Strip `.am' from Makefiles.  Don't
16176         output AC_CONFIG_FILES if no Makefiles were found.
16178 2002-11-07  Akim Demaille  <akim@epita.fr>
16180         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
16181         (local_updates): New.
16182         * Makefile.maint: Update, from CVS Bison.
16183         (local_updates): New.
16185 2002-11-06  Akim Demaille  <akim@epita.fr>
16187         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
16188         declaration in extern "C" too.
16189         Reported by Roberto Bagnara.
16191 2002-11-06  Akim Demaille  <akim@epita.fr>
16193         * tests/torture.at (Configuring subdirectories): Don't use grep
16194         -w.
16195         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
16196         Reported by Ezra Peisach.
16198 2002-11-05  Akim Demaille  <akim@epita.fr>
16200         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
16201         Remove.
16202         We _have_ to stop using the old compatibility scheme that tried to
16203         avoid useless backslashes because Libtool 1.4.3 contains a
16204         AC_DEFINE([error_t], [int],
16205         [Define to a type to use for \`error_t' if it is not
16206         otherwise available.])
16207         We _have_ to quote the single quote and backslashes with \.  The
16208         old compatibility scheme saw that ` was backslashed, and therefore
16209         did not quote the single quote.  Hence before this patch, Autoconf
16210         was not compatible with Libtool.
16212 2002-11-04  Paul Eggert  <eggert@twinsun.com>
16214         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
16215         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
16216         LC_NAME, LC_PAPER, LC_TELEPHONE.
16217         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
16219 2002-11-04  Akim Demaille  <akim@epita.fr>
16221         Version 2.54c.
16223         * Makefile.maint (update, cvs-update, po-update, do-po-update):
16224         New.
16225         * config/texinfo.tex: Update.
16227 2002-11-03  Akim Demaille  <akim@epita.fr>
16229         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
16230         from...
16231         (&autoreconf): here.
16232         ($help, $make, &parse_args, &autoreconf_current_directory):
16233         Support -m/--make.
16234         * doc/autoconf.texi (autoreconf Invocation): Adjust.
16236 2002-10-31  Bruno Haible  <bruno@clisp.org>
16238         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
16239         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
16240         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
16241         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
16242         to ac_cv_func_realloc_0_nonnull.
16243         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
16245 2002-10-31  Akim Demaille  <akim@epita.fr>
16247         The test suite was no longer checking for trailing envvars and files.
16249         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
16250         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
16252 2002-10-31  Akim Demaille  <akim@epita.fr>
16254         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
16255         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
16256         Make variable, not a shell variable.
16257         Suggested by Bruno Haible.
16259 2002-10-31  Akim Demaille  <akim@epita.fr>
16261         * bin/autom4te.in (load_configuration): Reject #args out of any
16262         language.
16264 2002-10-31  Akim Demaille  <akim@epita.fr>
16266         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
16267         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
16268         (_AC_RUN_IFELSE): Use it.
16269         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
16270         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
16271         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
16272         inline it.
16274 2002-10-30  Akim Demaille  <akim@epita.fr>
16276         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
16277         * doc/autoconf.texi (autom4te Invocation): Adjust.
16278         Suggested by Tim van Holder.
16280 2002-10-29  Paul Eggert  <eggert@twinsun.com>
16282         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
16283         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
16284         Problem reported by Bruno Haible.
16286 2002-10-29  Akim Demaille  <akim@epita.fr>
16288         * doc/autoconf.texi (Header Templates): Put also in words what the
16289         pictures says to assist free style readers.
16290         (Customizing autom4te): s/--cache=/--cache /.
16292 2002-10-29  Akim Demaille  <akim@epita.fr>
16294         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
16295         sys/wait.h.
16296         sparc_address_test returns void.
16297         Use it with an argument, as prototyped.
16298         From Bruno Haible.
16300 2002-10-29  Akim Demaille  <akim@epita.fr>
16302         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
16303         configure.in, not configure.ac.
16304         Reported by Bruno Haible.
16306 2002-10-29  Akim Demaille  <akim@epita.fr>
16308         * tests/torture.at (Deep Package): New test.
16309         (Configuring subdirectories): Don't use a testSubDir as Autotest
16310         now does it itself.
16312 2002-10-29  Akim Demaille  <akim@epita.fr>
16314         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
16315         * doc/autoconf.texi (Invoking autom4te): Rename as...
16316         (autom4te Invocation): this, for consistency with the other nodes.
16318 2002-10-29  Akim Demaille  <akim@epita.fr>
16320         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
16321         Reported by Ralf Corsepius.
16323 2002-10-29  Akim Demaille  <akim@epita.fr>
16325         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
16326         characters is a back as an `obsolete' warning now.
16327         Reported by Ralf Corsepius.
16329 2002-10-28  Akim Demaille  <akim@epita.fr>
16331         * configure.ac: Bump to 2.54c.
16333 2002-10-28  Akim Demaille  <akim@epita.fr>
16335         Version 2.54b.
16337         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
16339 2002-10-28  Akim Demaille  <akim@epita.fr>
16341         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
16342         m4 executable names, and different GNU M4 version.
16343         Reported by Ezra Peisach and Paul Jarc.
16345 2002-10-27  Akim Demaille  <akim@epita.fr>
16347         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
16348         AC_RUN_IFELSE.
16350 2002-10-27  Akim Demaille  <akim@epita.fr>
16352         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
16353         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
16354         Die when a simple Fortran program cannot be compiled.
16355         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
16356         Issue a warning if no function is given.
16358 2002-10-27  Akim Demaille  <akim@epita.fr>
16360         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
16361         Move the documentation of AC_TRY_RUN to...
16362         (Obsolete Macros): here.
16363         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
16364         (autoconf Invocation): Remove the duplicates with `invoking
16365         autom4te'.
16366         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
16367         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
16369 2002-10-27  Akim Demaille  <akim@epita.fr>
16371         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
16372         and AC_LANG_FUNC_LINK_TRY.
16373         (Examining Libraries): Rename as...
16374         (Running the Linker): this.
16375         Document AC_LINK_IFELSE.
16376         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
16377         (Obsolete Macros): here.
16378         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
16379         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
16380         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
16381         * lib/autoconf/headers.m4 (AC_USG): Likewise.
16383 2002-10-27  Akim Demaille  <akim@epita.fr>
16385         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
16387         More `check config.log' messages.
16389         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
16390         * doc/autoconf.texi (Printing Messages): Document it.
16391         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
16392         appropriate.
16393         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
16394         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
16395         (_AC_COMPILER_OBJEXT): Likewise.
16396         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
16397         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
16398         Likewise.
16399         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
16400         Likewise.
16402         Deprecate macros with unusual interfaces.
16404         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
16405         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
16407         Document the new ones, and proper style.
16409         * doc/autoconf.texi (Generating Sources): New.
16410         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
16411         (Examining Declarations): Rename as...
16412         (Running the Preprocessor): this.
16413         Document AC_PREPROC_IFELSE.
16414         (Examining Syntax): Rename as...
16415         (Running the Compiler): this.
16416         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
16417         (Obsolete Macros): Move the definition of AC_TRY_CPP and
16418         AC_TRY_COMPILE here.
16420 2002-10-27  Akim Demaille  <akim@epita.fr>
16422         Move sections around.
16424         * doc/autoconf.texi (Customizing autom4te): Remove a lost
16425         sentence.
16426         Reported by Burno Haible.
16427         (Language Choice): Now the first section of...
16428         (Writing Tests): this section.
16429         Make the introduction less C-centric.
16430         (Guidelines, Test Functions): Move to...
16431         (Writing Test Programs): this new section.
16432         (Test Programs): Merge into...
16433         (Run Time): this.
16435 2002-10-27  Akim Demaille  <akim@epita.fr>
16437         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
16438         autom4te.in that resulted in the need for two `make' runs.
16440 2002-10-27  Akim Demaille  <akim@epita.fr>
16442         * configure.ac: Bump to 2.54b.
16444 2002-10-25  Akim Demaille  <akim@epita.fr>
16446         Version 2.54a.
16448         * Makefile.maint: Update from the Coreutils.
16449         (AMTAR): Remove, obsolete.
16450         (automake_repo): Update to redhat.com.
16451         (cvs_file): New.
16452         Adjust to the fact that ansi2knr is now hosted by Automake.
16453         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
16454         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
16455         Update from masters.
16456         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
16457         autoscan.pre is not to be installed, and autoscan.list is not to
16458         be shipped.
16459         (CLEANFILES): Add autoscan.list.
16460         (autoscan.list): Disable the cache.
16461         * bin/Makefile.am: Include freeze.mk.
16463 2002-10-25  Akim Demaille  <akim@epita.fr>
16465         * bin/autom4te.in (&load_configuration): Take the file as
16466         argument.
16467         (&parse_args): Handle -C, --cache.
16468         ($help): Adjust.
16469         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
16470         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
16471         * doc/autoconf.texi (Invoking autom4te): Document --cache.
16472         Now a subsection of...
16473         (Using autom4te): This new section.
16474         (Customizing autom4te): New.
16475         (autom4te.cache): Adjust.
16477 2002-10-25  Akim Demaille  <akim@epita.fr>
16479         * doc/autoconf.texi (Generic Headers): More information on how to
16480         use AC_CHECK_HEADERS.
16482 2002-10-25  Akim Demaille  <akim@epita.fr>
16484         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
16485         Space changes.
16487 2002-10-25  Akim Demaille  <akim@epita.fr>
16489         * bin/autoscan.in (output): Output AC_PREREQ.
16490         (%needed_macros): Add AC_PREREQ so that configure.ac without one
16491         be reported.
16493 2002-10-23  Akim Demaille  <akim@epita.fr>
16495         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
16496         document _Bool.
16498 2002-10-23  Akim Demaille  <akim@epita.fr>
16500         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
16501         Reported by Peter Eisentraut.
16503 2002-10-23  Akim Demaille  <akim@epita.fr>
16505         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
16506         type _Bool.
16507         Fix a typo.
16508         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
16509         Eggert's recommandations.
16511 2002-10-22  Akim Demaille  <akim@epita.fr>
16513         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
16514         Bison, by Paul Eggert.
16515         * doc/autoconf.texi (Particular Headers): Document it.
16517 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
16519         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
16520         `$ac_configure_args'.
16522 2002-10-22  Akim Demaille  <akim@epita.fr>
16524         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
16525         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
16526         From Art Haas.
16528 2002-10-22  Akim Demaille  <akim@epita.fr>
16530         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
16532         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
16533         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
16534         (_AC_CHECK_HEADER_NEW): Rename as...
16535         (AC_CHECK_HEADER): this.
16537 2002-10-22  Akim Demaille  <akim@epita.fr>
16539         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
16540         words about HP-UX cmp: it was actually a user-written cmp.
16542 2002-10-22  Akim Demaille  <akim@epita.fr>
16544         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
16545         are a few warnings.
16546         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
16547         Quote for Perl '' strings, not "".
16548         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
16549         strings.
16551 2002-10-22  Akim Demaille  <akim@epita.fr>
16553         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
16554         characters is a syntax warning now.
16555         (_AS_QUOTE): Accept $2 as list of characters to quote.
16556         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
16557         Quote for Perl, not sh.
16558         * bin/autoheader.in: When $debug, report the file which is
16559         `do'ne.
16560         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
16561         `@', to tickle Perl's lists.
16562         Reported by Carlos Velasco.
16564 2002-10-18  Akim Demaille  <akim@epita.fr>
16566         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
16567         missing included files _are_ errors.
16568         Thanks to Alexandre Duret-Lutz.
16569         * tests/tools.at (autom4te cache): Adjust.
16570         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
16571         (AT_CHECK_M4SUGAR): Use it.
16572         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
16573         Adjust.
16574         * tests/tools.at (autom4te): Now it does exit 1.
16576 2002-10-17  Akim Demaille  <akim@epita.fr>
16578         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
16579         Fixes the `AC_ARG_VAR' test failures.
16580         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
16581         * lib/freeze.mk (check-forbidden-patterns): New.
16582         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
16583         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
16584         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
16585         /dev/null.
16586         Reported months ago by H. Merijn Brand.
16588 2002-10-17  Akim Demaille  <akim@epita.fr>
16590         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
16592 2002-10-16  Paul Eggert  <eggert@twinsun.com>
16594         * Makefile.maint (wget_files): Remove ansi2knr.c.
16595         (ansi2knr.c-url_prefix): Remove.
16597 2002-10-16  Akim Demaille  <akim@epita.fr>
16599         Because of caching, some files that no longer exist and are no
16600         longer required can still cause errors.
16601         Reported by Alexandre Duret-Lutz.
16603         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
16604         to frozen files in @ARGV, as @ARGV must remain being a list of
16605         files.  Rather, at M4 call sites, use this...
16606         (&files_to_options): New function.
16607         (&freeze): Use &error.
16608         (&up_to_date): If a file that was included according to the cache
16609         is no longer there, then the output is out dated.
16610         (&main): Don't even check whether a file is up to date is anyway
16611         --force is given.
16612         * tests/tools.at (autom4te cache): New.
16614 2002-10-16  Akim Demaille  <akim@epita.fr>
16616         * bin/autoconf.as: Kill dead options.
16617         * bin/autoupdate.in (&parse_args): Kill old options.
16618         * bin/autoreconf.in (&parse_args): Remove dead options.
16619         Factor some code.
16620         (&autoreconf): Report the directories we enter *and leave*, so
16621         that error messages can be easily located, and use GNU Make
16622         format, so that Emacs' compile mode understands us.
16623         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
16624         if some file was changed instead of `print'.
16625         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
16626         (&parse_args): Remove the dead options.
16627         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
16628         autoheader's quiet mode.
16629         (AT_CHECK_AUTOUPDATE): Likewise.
16630         * tests/tools.at (autoupdate): Adjust.
16631         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
16633 2002-10-11  Akim Demaille  <akim@epita.fr>
16635         No longer use CPP to check for the existing of headers: use CC to
16636         check for compilability.
16638         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
16639         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
16640         (_AC_CHECK_HEADER_NEW): Rename as...
16641         (AC_CHECK_HEADER): this.
16643         * lib/autotest/general.m4 (AT_INIT): Include the failed test
16644         numbers in the Subject suggestion.
16646 2002-10-11  Akim Demaille  <akim@epita.fr>
16648         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
16649         Suggest using AC_CHECK_DECLS instead.
16651 2002-10-11  Akim Demaille  <akim@epita.fr>
16653         * tests/torture.at (AC_ARG_VAR): Have configure report the value
16654         of `precious'.
16656 2002-10-11  Akim Demaille  <akim@epita.fr>
16658         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
16659         file name to enable parallel executions.
16660         From Sam Varshavchik.
16662 2002-10-08  Akim Demaille  <akim@epita.fr>
16664         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
16665         aclocal invocation, as Gettext macros might not be visible to
16666         aclocal.
16667         Instead of blindly running autopoint, scan configure.ac (not the
16668         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
16669         Reported by Paul D. Smith.
16671 2002-10-08  Paul Eggert  <eggert@twinsun.com>
16673         Work around problems found when POSIXLY_CORRECT=1 is set.
16674         None of this seems to have anything to do with POSIX, really,
16675         but it's how Perl getopt works.
16676         * bin/autom4te.in (parse_args): Configure GetOpt with
16677         "permute", too.
16678         * doc/autoconf.texi (Invoking autom4te):
16679         --warning -> --warnings.
16680         * lib/autom4te.in: --warning -> --warnings.
16682 2002-09-28  Akim Demaille  <akim@epita.fr>
16684         * doc/autoconf.texi (autom4te.cache): New section.
16686 2002-09-28  Akim Demaille  <akim@epita.fr>
16688         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
16689         (Automake-preselections): Update.
16690         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
16692 2002-09-28  Akim Demaille  <akim@epita.fr>
16694         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
16695         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
16696         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
16697         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
16699 2002-09-28  Akim Demaille  <akim@epita.fr>
16701         * tests/torture.at (Configuring subdirectories): Be robust to
16702         users who use config.site to require for a cache: in this case,
16703         the two last configure runs, using two different sets of
16704         arguments, trigger a legitimate error.
16706 2002-09-28  Akim Demaille  <akim@epita.fr>
16708         * tests/m4sh.at (Functions Support, Functions and return Support):
16709         New.
16711 2002-09-28  Akim Demaille  <akim@epita.fr>
16713         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
16714         autoheader are Perl programs.
16715         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
16716         (autom4te): Specify that the sources are in the $srcdir.
16717         * doc/autoconf.texi (Installation Directory Variables): Adjust.
16719 2002-09-28  Akim Demaille  <akim@epita.fr>
16721         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
16722         (tm_zone): Move their rules to...
16723         * lib/autoconf/types.m4: here, using AN_ macros.
16724         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
16725         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
16726         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
16727         * lib/autoconf/programs.m4: here.
16728         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
16729         (ETAGS_FOR_AUTOCONF): New.
16730         Use it.
16732 2002-09-28  Akim Demaille  <akim@epita.fr>
16734         * lib/autoconf/autoscan.m4: New file.
16735         * lib/autoconf/autoconf.m4: Include it.
16736         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
16737         that were listed in the original autoscan.list.
16738         * lib/autoconf/headers.m4: Similarly with headers.
16739         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
16740         (.m4.m4f): Don't pass --prepend-include, since that's done by
16741         tests/autom4te itself.
16742         * lib/autoscan/Makefile.am: Include freeze.mk.
16743         (autoscan.list): New target --this file is no longer a source.
16744         (autoscan.pre): New file.
16746 2002-09-28  Akim Demaille  <akim@epita.fr>
16748         * bin/autoscan.in (@kinds): Make them singular.
16749         Adjust all uses.
16750         (&init_tables): When --debug, report the list of rules to ease
16751         tracking changes in autoscan.list.
16752         * lib/autoscan/autoscan.list (function): Strip comments, sort.
16754 2002-09-28  Akim Demaille  <akim@epita.fr>
16756         * lib/autoscan/functions, lib/autoscan/headers,
16757         * lib/autoscan/identifiers, lib/autoscan/makevars,
16758         * lib/autoscan/programs: Merge into...
16759         * lib/autoscan/autoscan.list: this.
16760         * bin/autoscan.in (&init_tables): Adjust.
16762 2002-09-28  Akim Demaille  <akim@epita.fr>
16764         * lib/autoscan/functions, lib/autoscan/headers,
16765         * lib/autoscan/identifiers, lib/autoscan/makevars,
16766         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
16767         `functions' line is now prefixed with `function:'.
16768         * bin/autoscan.in (&init_tables): Adjust.
16770 2002-09-28  Akim Demaille  <akim@epita.fr>
16772         From now on, autoscan files must always map a macro name to a
16773         word: there is no `default' macro for autoscan.
16775         * bin/autoscan.in (&init_tables): Reject entries with no macro at
16776         all.
16777         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
16778         explicit.
16780 2002-09-28  Akim Demaille  <akim@epita.fr>
16782         * bin/autoscan.in (%c_keywords): Remove.
16783         (&used): Keep only track of the words we might be interested in.
16784         (&output_kind): It is no longer needed to look for non active
16785         checks.
16787 2002-09-27  Akim Demaille  <akim@epita.fr>
16789         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
16790         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
16791         * lib/autoscan/functions: Adjust.
16792         * doc/autoconf.texi (Particular Functions): Adjust.
16794 2002-09-27  Akim Demaille  <akim@epita.fr>
16796         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
16797         from /tmp.
16798         Thanks to Bill Moseley and Paul Eggert.
16799         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
16800         the tmpdir must be created.
16801         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
16802         dir be in the build tree, instead of $TMPDIR.
16804 2002-09-27  Akim Demaille  <akim@epita.fr>
16806         * bin/autoscan.in: Improve the comments.
16807         (&parse_args): Drop obsolete undocumented options.
16808         (&output_kind): Output warnings.
16809         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
16810         (getwd): Trigger a warning.
16812 2002-09-26  Akim Demaille  <akim@epita.fr>
16814         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
16815         Reported by Ralf Corsepius.
16816         * doc/autoconf.texi (autoreconf Invocation): Likewise.
16818 2002-09-26  Akim Demaille  <akim@epita.fr>
16820         Single suffix rules and seperated dependencies are not portable.
16822         * doc/autoconf.texi (Installation Directory Variables): Update.
16823         (Limitations of Make): Some about `Single Suffix Rules and
16824         Separated Dependencies'.
16825         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
16826         (ifnames, autoscan, autom4te): Un-factor into several rules.
16828 2002-09-25  Paul Eggert  <eggert@twinsun.com>
16830         * BUGS (Interoperability bugs): New section.  Mention libtool
16831         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
16833 2002-09-24  Paul Eggert  <eggert@twinsun.com>
16835         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
16836         make handles suffix-rules differently from GNU make.
16838         * bin/Makefile.am (SUFFIXES, .in): Remove.
16839         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
16840         Move the body of the old .in rule here.
16842 2002-09-16  Akim Demaille  <akim@epita.fr>
16844         i960 compilers create `b.out' files by default.
16845         Reported by Ralf Corsepius.
16847         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
16848         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
16850 2002-09-13  Paul Eggert  <eggert@twinsun.com>
16852         * doc/autoconf.texi (Particular Headers): Remove obsolete
16853         reference to `struct timezone' in the description of
16854         AC_HEADER_TIME.
16856 2002-09-13  Akim Demaille  <akim@epita.fr>
16858         Version 2.54.
16860         * config/config.sub, config/config.guess: Update.
16861         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
16862         * Makefile.am: Adjust.
16864 2002-09-13  Akim Demaille  <akim@epita.fr>
16866         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
16867         reading config.log when the compiler is rejected.
16868         Suggested by Guido Draheim.
16870 2002-09-13  Akim Demaille  <akim@epita.fr>
16872         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
16873         (chdir_init) might hang when stat'ing mounted directories.
16874         Reported by Vance Shipley.
16876 2002-09-12  Akim Demaille  <akim@epita.fr>
16878         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
16879         the lists.
16881 2002-09-12  Akim Demaille  <akim@epita.fr>
16883         * doc/autoconf.texi (Defining Symbols): Present two different
16884         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
16885         difference between 1 argument calls, and 2-3 argument calls.
16887 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
16889         * doc/autoconf.texi: Review grammar and punctuation.
16891 2002-09-11  Paul Eggert  <eggert@twinsun.com>
16893         * doc/autoconf.texi: Fix minor formatting, spelling, and
16894         grammatical typos.
16895         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
16896         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
16897         is obsolescent.
16899 2002-09-11  Akim Demaille  <akim@epita.fr>
16901         * doc/autoconf.texi (Questions): Rename as...
16902         (FAQ): this.
16903         (Defining Directories): New.
16905 2002-09-09  Akim Demaille  <akim@epita.fr>
16907         * doc/autoconf.texi (Making testsuite Scripts): Update.
16908         Suggested by Nishio Futoshi.
16910 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
16912         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
16913         plain `@' is wanted.
16915 2002-09-09  Akim Demaille  <akim@epita.fr>
16917         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
16918         `duplicates', since the algorithm was too naive and could keep
16919         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
16920         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
16921         Reported by Ralf Corsepius.
16922         * tests/torture.at (Configuring subdirectories): Exercise these
16923         cases.
16925 2002-09-09  Akim Demaille  <akim@epita.fr>
16927         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
16928         looking for a replacement file.
16929         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
16930         directory is relative.
16931         * doc/autoconf.texi (Generic Functions): Clarify the replacement
16932         directory definition.
16933         Reported by Andreas Schwab and Jim Meyering.
16935 2002-09-06  Akim Demaille  <akim@epita.fr>
16937         * doc/autoconf.texi (Setting Output Variables): Clarify what
16938         precious variables are.
16939         Suggested by Pontus Skoeld.
16941 2002-09-05  Akim Demaille  <akim@epita.fr>
16943         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
16944         (ifnames, autoscan, autom4te): Since we don't only depend on
16945         configure.ac variables (such as VERSION etc.), but also on prefix
16946         and so forth, depend on Makefile, not configure.ac.
16947         Reported by Alexandre Duret-Lutz.
16948         * doc/autoconf.texi (Installation Directory Variables): Adjust.
16950 2002-09-05  Kevin Ryde  <user42@zip.com.au>
16952         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
16953         doesn't seem to be confined to ia64, just say "some versions".
16955 2002-09-04  Akim Demaille  <akim@epita.fr>
16957         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
16958         Automake 1.6c.
16959         * Makefile.am (maintainer-clean-local): Remove.
16960         (MAINTAINERCLEANFILES): Remove COPYING.
16962 2002-09-03  Paul Eggert  <eggert@twinsun.com>
16964         * doc/autoconf.texi (Configuration Commands): Remove obsolete
16965         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
16966         Brinkmann.
16968 2002-09-03  Akim Demaille  <akim@epita.fr>
16970         * configure.ac: Bump to 2.53d.
16971         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
16972         as of today, on Automake's team suggestion.
16974 2002-09-03  Akim Demaille  <akim@epita.fr>
16976         Version 2.53c.
16978 2002-09-02  Akim Demaille  <akim@epita.fr>
16980         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
16981         SITE_MACRO_DIR.
16982         * configure.ac: Disable SITE_MACRO_DIR.
16984 2002-09-02  Jim Meyering  <meyering@lucent.com>
16986         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
16987         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
16988         Also, tweak grammar: s/make sure to/be sure to/.
16990 2002-09-02  Paul Eggert  <eggert@twinsun.com>
16992         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
16993         directory names are generally preferable to physical names.
16995 2002-09-02  Akim Demaille  <akim@epita.fr>
16997         * lib/Autom4te/General.pm (&update_file): s/die/error/.
16998         Reported by Raja R. Harinath.
16999         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
17000         * bin/autoupdate.in: Use error instead of die.
17002 2002-09-01  Paul Eggert  <eggert@twinsun.com>
17004         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
17005         ordinary shell concatenation rather than echo+tr+sed command that
17006         runs afoul of a long-line-related sed bug in Solaris 8.
17008         * bin/autoheader.in (parse_args): --warning -> --warnings.
17010         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
17011         stdout, as traditional "ls" does.
17012         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
17013         _AC_COMPILER_EXEEXT_O): Likewise.
17014         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
17016         * bin/autoconf.as: Add --prepend-include option.  This patch was
17017         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
17018         but bin/autoconf.in is generated automatically from bin/autoconf.as.
17020         * bin/autoconf.in, configure: Regenerate.
17022         * doc/autoconf.texi (Special Shell Variables): Mention
17023         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
17025         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
17026         MAILPATH and set PS1, PS2, PS4 to default values, to work
17027         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
17028         For LC_ALL etc, first try to set to "C" as POSIX requires and as
17029         the Autoconf documentation specifies; fall back to "unset" only if
17030         this fails.  Use a shell for-loop for this rather than an m4 loop,
17031         to shorten the output script.
17033 2002-08-30  Paul Eggert  <eggert@twinsun.com>
17035         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
17036         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
17037         for the CDPATH problem.  Document PWD.
17038         (Limitations of Builtins): Document the problem that "cd $foo" and
17039         "ls $foo" may refer to different directories in shells conforming
17040         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
17041         example, since the old example is now out of date.
17043         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
17044         FOO" and "ls FOO" talk about different directories; this catches
17045         problems when POSIX 1003.1-2001 "cd" fails due to symlink
17046         spaghetti.
17048         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
17049         of rolling our own unset.
17050         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
17051         in practice we needn't worry about CDPATH if unset doesn't work.
17053         * Makefile.in, aclocal.m4, bin/Makefile.in,
17054         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
17055         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
17056         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
17057         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
17058         tests/Makefile.in: Regenerate with Automake 1.6.3.
17060         * config/config.guess, config/config.sub, config/mkinstalldirs:
17061         Update.
17063         * configure: Regenerate with self.
17065 2002-08-30  Kevin Ryde  <user42@zip.com.au>
17067         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
17068         default output.
17070 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17072         * bin/autom4te.in (Request::load): Correctly test for "do" read
17073         failure.
17075 2002-08-29  Akim Demaille  <akim@epita.fr>
17077         * lib/Autom4te/General.pm (&xqx): New.
17078         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
17079         hand, which is not portable.
17080         (&error): New.
17081         * bin/autom4te.in: Use them.
17082         Use &error instead of die.
17083         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17084         Adjust.
17086 2002-08-17  Paul Eggert  <eggert@twinsun.com>
17088         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
17089         default list of compilers to try, since it was long ago superseded
17090         by the ksh fc builtin.  Suggested by Steven G. Johnson.
17092 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
17094         * doc/autoconf.texi (Invoking autom4te): End the option table,
17095         fixing a bug introduced by the previous patch.
17096         (Limitations of Make): Add a 'target lookup' subentry in the
17097         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
17099 2002-07-29  Mark D. Roth  <roth@feep.net>
17101         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
17102         options and use $AUTOM4TE_PATH.
17103         * doc/autoconf.texi: Remove documentation of autom4te
17104         --include-envvar and --site-macro-subdir options and document
17105         use of $AUTOM4TE_PATH.
17106         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
17107         arguments from each language section.
17109 2002-07-29  Paul Eggert  <eggert@twinsun.com>
17111         * doc/install.texi: Include copyright symbol in copyright notice.
17113         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
17114         Replace with:
17115         (AM_MAKEINFOFLAGS): New macro.
17116         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
17117         * Makefile.am (INSTALL): Use the new macros.
17118         Use -o rather than --output, since "missing" does not grok --output.
17120 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
17122         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
17123         comments do not always work. Never trust the exit status of
17124         `make -k'.
17126 2002-07-24  Kevin Ryde  <user42@zip.com.au>
17128         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
17129         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
17131 2002-07-23  Paul Eggert  <eggert@twinsun.com>
17133         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
17134         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
17135         apparently treats PATH="nonexistent" as if it contained ".".
17136         Bug reported by Stefan `Sec' Zehl.
17138 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
17140         * doc/autoconf.texi (Limitations of Make): Mention the special
17141         handling of the obj/ directory by BSD make.
17143 2002-07-20  Kevin Ryde  <user42@zip.com.au>
17145         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
17146         backslashes.
17148 2002-07-19  Akim Demaille  <akim@epita.fr>
17150         * doc/autoconf.texi (Function Portability): `exit'.
17151         (Programming in M4sh): Ethymology of M4sh.
17153 2002-07-19  Akim Demaille  <akim@epita.fr>
17155         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
17157 2002-07-18  Akim Demaille  <akim@epita.fr>
17159         Version 2.53b.
17161 2002-07-18  Akim Demaille  <akim@epita.fr>
17163         * config/config.guess, config/config.sub: Update.
17165 2002-07-18  Akim Demaille  <akim@epita.fr>
17167         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
17168         Automake's parts.
17170         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
17171         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
17172         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
17174 2002-07-18  Akim Demaille  <akim@epita.fr>,
17175             Alexandre Duret-Lutz  <duret_g@epita.fr>
17177         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
17178         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
17180 2002-07-17  Russ Allbery  <rra@stanford.edu>
17182         * doc/autoconf.texi (Initializing configure): Clarify the
17183         description of the tarname default.
17185 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
17187         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
17188         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
17189         latter was not run.
17191 2002-07-17  Akim Demaille  <akim@epita.fr>
17193         * lib/Autom4te/General.pm (find_file): Browse the directories in
17194         the order they are given.
17196 2002-07-17  Akim Demaille  <akim@epita.fr>
17198         * tests/wrapsh.as, tests/wrappl.as: Merge into...
17199         * tests/wrapper.as: this.
17200         * tests/Makefile.am, configure.ac: Adjust.
17202 2002-07-17  Mark D. Roth  <roth@feep.net>
17204         * configure.ac: Add --enable-site-macro-dir option.
17205         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
17206         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
17207         --site-macro-subdir options.
17208         * bin/autoconf.in: Add --prepend-include option.
17209         * bin/autoheader.in: Add --prepend-include option.
17210         * bin/autoreconf.in: Add --prepend-include option.
17211         * bin/autoscan.in: Add --prepend-include option.
17212         * bin/autoupdate.in: Add --prepend-include option.
17213         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
17214         macro directory, remove note that include path directories are
17215         used in reverse order, and document --prepend-include option.
17216         * lib/autom4te.in: Use --prepend-include instead of --include.
17217         * tests/wrapsh.in: Use --prepend-include instead of --include.
17219 2002-07-17  Akim Demaille  <akim@epita.fr>
17221         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
17222         tarnames.
17223         * doc/autoconf.texi (Initializing configure): Adjust.
17225 2002-07-17  Akim Demaille  <akim@epita.fr>
17227         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
17228         (_AC_FUNC_MALLOC): New.
17229         (AC_FUNC_MALLOC): Use the latter.
17230         Define HAVE_MALLOC to 0 if broken.
17231         * doc/autoconf.texi (Particular Functions): Adjust.
17233 2002-07-16  Akim Demaille  <akim@epita.fr>
17235         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
17236         * doc/autoconf.texi (C Compiler): Adjust.
17238 2002-07-09  Akim Demaille  <akim@epita.fr>
17240         * doc/autoconf.texi: Properly set the ``header'' part.
17242 2002-07-09  Akim Demaille  <akim@epita.fr>
17244         * doc/autoconf.texi (Systemology): Some about Darwin.
17246 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
17248         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
17249         Don't use AC_REQUIRE in AU_DEFUN.
17251 2002-07-09  Art Haas  <ahaas@neosoft.com>
17253         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
17255 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
17257         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
17258         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
17259         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
17260         so that Emacs setups GNU style for perl-mode and cperl-mode.
17262 2002-06-27  Paul Eggert  <eggert@twinsun.com>
17264         * config/install-sh: Quote $src.  Prefer || to test's -o option,
17265         as per "Limitations of Builtins".
17266         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
17267         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17269         * tests/mktests.sh: Use grep instead of fgrep, as per
17270         "Limitations of Builtins".
17272 2002-06-15  Paul Eggert  <eggert@twinsun.com>
17274         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
17275         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
17276         so that we consistently test the just-built programs.
17277         * tests/wrappl.as: Likewise.
17279 2002-06-12  Paul Eggert  <eggert@twinsun.com>
17281         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
17282         name, so that symlinks to 'autoconf' work properly.  Bug reported
17283         by Bruno Haible.
17284         * bin/autoheader.in (AUTOM4TE): Likewise.
17285         * bin/autoreconf.in (autoconf, autoheader): Likewise.
17286         * bin/autoscan.in (autom4te): Likewise.
17287         * bin/autoupdate.in (autom4te): Likewise.
17289         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
17290         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
17291         on Solaris 2.5.1.
17293 2002-06-11  Andreas Schwab  <schwab@suse.de>
17295         * doc/autoconf.texi: Add more dir entries.
17297 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
17299         * bin/autom4te.in ($cache): Don't define using `$me', the name
17300         of the cache should not depend on the name under which autom4te
17301         was installed.
17303 2002-06-07  Akim Demaille  <akim@epita.fr>
17305         * tests/tools.at (autoconf: forbidden tokens, basic)
17306         (autoconf: forbidden tokens, exceptions): Adjust to the change of
17307         words in autom4te.in.
17309 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
17311         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
17312         _AC_LANG_PROGRAM_C_F77_HOOKS.
17314 2002-06-07  Akim Demaille  <akim@epita.fr>
17316         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
17317         rename as...
17318         (AC_REPLACE_FNMATCH): this.
17319         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
17320         AC_FUNC_FNMATCH_GNU.
17322 2002-06-07  Akim Demaille  <akim@epita.fr>
17324         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
17325         Rosetta Stone for Unix.
17327 2002-06-07  Akim Demaille  <akim@epita.fr>
17329         * bin/autom4te.in (warn_forbidden): When rejecting a token,
17330         suggest m4_pattern_allow.
17331         Suggested by Adam J. Richter.
17333 2002-06-07  Akim Demaille  <akim@epita.fr>
17335         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
17336         ac_config_libobj_dir.
17337         (AC_CONFIG_LIBOBJ_DIR): New.
17338         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
17339         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
17340         Use ac_config_libobj_dir to find the replacement files.
17341         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
17342         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
17343         (AC_REPLACE_FNMATCH_GNU): these.
17344         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
17345         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
17346         * tests/mktests.sh (ac_exclude_list): Don't check
17347         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
17349 2002-06-06  Paul Eggert  <eggert@twinsun.com>
17351         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
17352         if ln doesn't work.
17353         * NEWS: Likewise.
17354         * doc/autoconf.texi (Configuration Links): Likewise.
17355         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
17357 2002-06-05  Paul Eggert  <eggert@twinsun.com>
17359         * config/config.guess, config/config.sub, config/texinfo.tex:
17360         Update from masters.
17362 2002-05-29  Paul Eggert  <eggert@twinsun.com>
17364         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
17365         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
17366         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
17367         Likewise.
17368         * lib/autoconf/Makefile.am (check-local): Likewise.
17369         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
17370         * lib/autoconf/types.m4 (commentary only): Likewise.
17371         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
17372         * lib/autotest/Makefile.am (check-local): Likewise.
17373         * lib/m4sugar/Makefile.am (check-local): Likewise.
17374         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
17375         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
17377         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
17378         * doc/autoconf.texi (Particular Programs): Document them.
17379         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
17380         * NEWS: Likewise.
17382 2002-05-27  Paul Eggert  <eggert@twinsun.com>
17384         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
17385         * NEWS, doc/autoconf.texi (Particular Types): Document it.
17386         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
17387         instead of AC_MBSTATE_T, which never existed.
17389 2002-05-23  Akim Demaille  <akim@epita.fr>
17391         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
17392         version of Autoconf that is discussed.
17394 2002-05-22  Paul Eggert  <eggert@twinsun.com>
17396         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
17397         from the default list of compilers to try.  Suggested by
17398         Kate Hedstrom.
17399         * NEWS: Document the above.
17400         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
17402 2002-05-17  Paul Eggert  <eggert@twinsun.com>
17404         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
17405         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
17406         This improves on an earlier suggestion by H. Peter Anvin.
17408 2002-05-16  Paul Eggert  <eggert@twinsun.com>
17410         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
17411         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
17412         Both macros now accept an optional source-dir arg.
17413         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
17415         * NEWS: Document this.
17416         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
17418         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
17419         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
17420         not for GNU extensions; this undoes part of the 2000-11-03 change,
17421         reverting to 2.13-compatible behavior.
17422         Add new optional argument DIR.
17423         (AC_FUNC_FNMATCH_GNU): New macro.
17425         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
17427 2002-05-08  Paul Eggert  <eggert@twinsun.com>
17429         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
17430         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
17431         and it causes a 'test' syntax error if it fails.
17432         Bug reported by Stephen Gildea.
17434         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
17435         If prototypes are supported, use them to check this at compile-time,
17436         instead of trying to check it at run-time.  If we must do a run-time
17437         check, assume that setvbuf is standard when cross-compiling, as
17438         nonstandard setvbuf occurs only on ancient and unlikely hosts.
17439         Bug reported by Paul D. Smith.
17441         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
17442         argument specifying location of getloadavg.c.  This removes a
17443         FIXME.  This idea was taken from Jim Meyering's implementation in
17444         textutils.
17445         * doc/autoconf.texi (Particular Functions): Document this.
17446         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
17447         that's what the code does; this fixes a bug reported by
17448         Paul D. Smith.
17450 2002-05-03  Akim Demaille  <akim@epita.fr>
17452         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
17453         autopoint instead of gettextize.
17454         ($uses_alocal): Rename as...
17455         ($uses_aclocal): this.
17456         * doc/autoconf.texi (autoreconf Invocation): Adjust.
17457         Suggested by Bruno Haible.
17459 2002-05-03  Akim Demaille  <akim@epita.fr>
17461         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
17463 2002-04-29  Paul Eggert  <eggert@twinsun.com>
17465         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
17466         files to be 1 second older; just set them to be the same time.
17467         Also, sleep 1 second after the first aclocal, to work around
17468         problems with sub-second time stamps on the input files.
17470 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
17472         * doc/autoconf.texi: Mention "set -e -x" lossage
17473         under node "Limitations of Builtins".
17475 2002-04-29  Akim Demaille  <akim@epita.fr>
17477         * doc/install.texi: Better wording for setting variables when
17478         running configure.
17479         From Christian Cornelssen.
17481 2002-04-29  Akim Demaille  <akim@epita.fr>
17483         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
17484         of lack of $LINENO support, then the test will compare the $LINENO
17485         in testsuite vs. the lineno in the test file.  This is wrong, of
17486         course.
17487         Be sure to protect it.
17488         Reported by Patrick Welche.
17490 2002-04-25  Akim Demaille  <akim@epita.fr>
17492         * doc/autoconf.texi (Obsolete Macros): Typo.
17493         Reported by Vladimir Volovich.
17495 2002-04-25  Akim Demaille  <akim@epita.fr>
17497         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
17498         than some of the input files, hence, on the second run of aclocal,
17499         if some of its input are younger, make them older.
17500         Suggested by Paul Eggert.
17502 2002-04-25  Akim Demaille  <akim@epita.fr>
17504         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
17505         Thanks to Paul Eggert.
17507 2002-04-25  Akim Demaille  <akim@epita.fr>
17509         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
17510         and ac_subst_vars be sh variables containing the list of
17511         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
17512         DEFAULT diversion.
17513         (_AC_INIT_PREPARE): Use them to log them.
17514         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
17515         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
17516         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
17517         _AC_SUBST_FILES and _AC_SUBST_VARS.
17518         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
17520 2002-04-24  Akim Demaille  <akim@epita.fr>
17522         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
17523         autoheader, so that automake does not complain about a missing
17524         config.h.in that was to be created.
17526 2002-04-23  Akim Demaille  <akim@epita.fr>
17528         * bin/autoheader.in (parse_args): --warning takes an argument.
17529         Fixes PR/220.
17531 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
17533         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
17534         and bb.out when cleaning up.
17536 2002-04-22  Akim Demaille  <akim@epita.fr>
17538         Version 2.53a.
17540 2002-04-22  Akim Demaille  <akim@epita.fr>
17542         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
17544 2002-04-22  Akim Demaille  <akim@epita.fr>
17546         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
17547         comma.
17548         Reported by Gregory Giannoni.
17550 2002-04-22  Akim Demaille  <akim@epita.fr>
17552         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
17553         Fixes false failures on Darwin.
17555 2002-04-21  Paul Eggert  <eggert@twinsun.com>
17557         * TODO, bin/autoupdate.in, doc/autoconf.texi,
17558         lib/autoconf/general.m4, lib/autoconf/libs.m4,
17559         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
17560         tests/tools.at: Minor spelling and grammar fixes.
17562 2002-04-20  Paul Eggert  <eggert@twinsun.com>
17564         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
17565         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
17566         * lib/autotest/general.m4 (AT_INIT): Likewise.
17567         * tests/atgeneral.m4 (AT_INIT): Likewise.
17569 2002-04-19  Paul Eggert  <eggert@twinsun.com>
17571         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
17572         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
17573         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
17574         lib/autoconf/functions.m4, lib/autoconf/general.m4,
17575         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
17576         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
17577         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
17578         Minor spelling and grammar fixes.
17580         * doc/autoconf.texi: Follow the outline suggested in the GNU
17581         Sample Texts sections of the Texinfo 4.2 manual.  Most
17582         importantly, this makes sure that the copyright notices appear in
17583         all output formats.  You probably need Texinfo 4.2 to generate
17584         the manual now.
17586         Fix some bugs when using "$@" when there might be zero positional
17587         arguments in cases where this matters.
17589         * bin/autoconf.as: Rewrite so that the problem does not come up.
17590         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
17591         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
17592         * lib/autotest/general.m4 (AT_INIT): Likewise.
17594         * bin/autoheader.in: Use 'case' statement to work around problem.
17595         * bin/auto4mte.in: Likewise.
17596         * bin/autoreconf.in: Likewise.
17597         * bin/autoscan.in: Likewise.
17598         * bin/autoupdate.in: Likewise.
17599         * bin/ifnames.in: Likewise.
17601         * doc/autoconf.texi (Shell Substitutions): Document the problem.
17603         * lib/autotest/general.m4 (AT_INIT):
17604         Use Zsh alias to work around problem.
17605         * tests/atgeneral.m4 (AT_INIT): Likewise.
17607         * tests/c.at: We can't have zero arguments, so remove workaround
17608         that is not portable to Zsh.
17610 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
17612         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
17613         from aclocal.m4 too.
17615 2002-04-12  Akim Demaille  <akim@epita.fr>
17617         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
17619 2002-04-10  Akim Demaille  <akim@epita.fr>
17621         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
17622         workaround for ${1+"$@"}.
17623         * doc/autoconf.texi (Shell Substitutions): Explain it.
17624         From Oliver Kiddle and Peter Stephenson.
17626         Have M4sh perform minimal shell sanitizing.
17628         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
17629         part into...
17630         (_AS_PREPARE): this new macro.
17631         (AS_PREPARE): New.
17632         (AS_INIT): Invoke AS_SHELL_SANITIZE.
17633         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
17635         Adjust Autoconf and Autotest.
17637         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
17638         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
17639         * lib/autotest/general.m4 (AT_INIT): Likewise.
17640         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
17641         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
17642         AS_SHELL_SANITIZE.
17644         Use this M4sh to generate Autoconf's shell scripts.
17646         * tests/wrapsh.as: New, precursor of wrapsh.in.
17647         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
17648         on Autotest and M4sh.
17649         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
17650         (wrapsh.in): New target.
17651         * bin/autoconf.as: New, precursor of autoconf.in.
17652         (autoconf.in): New target.
17654 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
17656         * doc/autoconf.texi (Limitations of Make): Mention the issue
17657         with indented comments in rules.
17659 2002-04-09  Andreas Schwab  <schwab@suse.de>
17661         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
17662         ac_top_builddir when setting ac_abs_top_builddir.
17664 2002-04-06  Kevin Ryde  <user42@zip.com.au>
17666         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
17667         (Portable Shell): Cross reference to Systemology.
17669 2002-04-05  Akim Demaille  <akim@epita.fr>
17671         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
17672         directories when descending in a SUBDIRS.
17673         Reported by Ezra Peisach.
17675 2002-04-04  Andreas Schwab  <schwab@suse.de>
17677         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
17678         contains no literal separators.
17680 2002-04-03  Akim Demaille  <akim@epita.fr>
17682         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
17683         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
17684         Use dnl, not the KILL diversion.
17685         Extracted from...
17686         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
17687         (AC_CONFIG_LINKS): here.
17688         Adjust.
17689         Don't use the KILL diversion, as it kills spurious output, which
17690         results in failures being hidden.
17691         Use m4_defn where appropriate.
17692         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
17693         after the second argument.
17694         Use m4_defn.
17695         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
17696         syntax, as it is provided by M4sugar.
17697         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
17699 2002-04-03  Andreas Schwab  <schwab@suse.de>
17701         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
17702         expanded if $# <= 2.
17704         * bin/autoreconf.in (autoreconf): Run automake after rerunning
17705         aclocal.
17707 2002-04-03  Akim Demaille  <akim@epita.fr>
17709         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
17710         (_AC_COMPILER_EXEEXT_REJECT): New.
17711         Also recognize *.bb and *.bbg as compilation byproducts.
17712         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
17713         (_AC_COMPILER_OBJEXT): Use them.
17714         Fixes Debian #138666.
17716 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
17718         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
17720         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
17721         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
17722         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
17723         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
17724         (AC_C_CONST): Same.
17725         (AC_C_INLINE): Same.
17726         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
17727         * doc/autoconf.texi, NEWS: Document.
17728         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
17729         AC_C_CROSS.
17731 2002-04-02  Akim Demaille  <akim@epita.fr>
17733         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
17734         _AS_MKDIR_P_PREPARE.
17736 2002-03-28  Kevin Ryde  <user42@zip.com.au>
17738         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
17739         to avoid versions of HP C which don't allow that.
17741 2002-03-27  Paul Eggert  <eggert@twinsun.com>
17743         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
17744         (AS_SHELL_SANITIZE): Invoke it.
17745         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
17747 2002-03-26  Akim Demaille  <akim@epita.fr>
17749         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
17751 2002-03-26  Akim Demaille  <akim@epita.fr>
17753         * doc/autoconf.texi (Introduction): The GNATS base moved.
17755 2002-03-25  Paul Eggert  <eggert@twinsun.com>
17757         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
17758         as POSIX requires, as it doesn't work with Zsh.
17759         * doc/autoconf.texi (Assignments): Document the problem.
17761 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
17763         * doc/autoconf.texi (Limitations of Make): Mention more issue
17764         about VPATH, overriding of macros in sub-makes, and handling of
17765         SHELL.
17767 2002-03-21  Paul Eggert  <eggert@twinsun.com>
17769         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
17770         problem with here-document buffer boundaries.
17772         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
17773         when reinvoking the shell, to work around problems with installers
17774         who put strange things like "cd" commands in their environments.
17776 2002-03-19  Akim Demaille  <akim@epita.fr>
17778         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
17779         From Aaron Ucko.
17781 2002-03-19  Akim Demaille  <akim@epita.fr>
17783         * bin/autoscan.in (scan_file): Specify the location in `&used'
17784         invocations.
17785         From Nicolas Joly.
17787 2002-03-19  Akim Demaille  <akim@epita.fr>
17789         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
17790         From Nishio Futoshi.
17792 2002-03-19  Akim Demaille  <akim@epita.fr>
17794         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
17796 2002-03-18  Paul Eggert  <eggert@twinsun.com>
17798         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
17799         (Limitations of Usual Tools): Add mkdir section.
17801         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
17802         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
17803         back on AS_DIRNAME to compute prefixes otherwise; this is
17804         roughly what mkinstalldirs does.  That way, we need not have
17805         our own filename disassembler.  The old disassembler did not
17806         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
17808         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
17809         Create at_test_all by a series of assignments,
17810         not by a single assignment of a long string.  The latter causes ksh
17811         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
17812         presumably because of a buffer overrun.
17814 2002-03-14  Paul Eggert  <eggert@twinsun.com>
17816         * lib/autotest/general.m4 (at_times_skip):
17817         Renamed from at_times.  Now a boolean.
17818         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
17819         says 'times: not found'.
17821 2002-03-14  Akim Demaille  <akim@epita.fr>
17823         * bin/autoreconf.in (&study_gettextize): New.
17824         (&autoreconf): Handle newest gettextize.
17825         Rerun aclocal if needed.
17826         Suggested by Andreas Schwab.
17828 2002-03-13  Akim Demaille  <akim@epita.fr>
17830         * doc/autoconf.texi (Special Shell Variables): More about IFS.
17832 2002-03-13  Akim Demaille  <akim@epita.fr>
17834         * doc/autoconf.texi (Header Portability): New.
17835         Add information about stdint.h and inttypes.h from Paul Eggert.
17837 2002-03-13  Akim Demaille  <akim@epita.fr>
17839         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
17840         -p'.
17841         From Bob Proulx.
17843 2002-03-12  Akim Demaille  <akim@epita.fr>
17845         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
17846         m4_require.
17848 2002-03-11  Andreas Schwab  <schwab@suse.de>
17850         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
17851         does not do it if --with-lispdir is given.
17853 2002-03-08  Akim Demaille  <akim@epita.fr>
17855         Version 2.53.
17857 2002-03-08  Akim Demaille  <akim@epita.fr>
17859         * doc/autoconf.texi (Subdirectories): Clarify that the
17860         subdirectory should exist.
17862 2002-03-08  Akim Demaille  <akim@epita.fr>
17864         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
17866 2002-03-08  Akim Demaille  <akim@epita.fr>
17868         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
17869         aliases the actual variables, and modifications of the former
17870         affect the latter.
17872 2002-03-08  Akim Demaille  <akim@epita.fr>
17874         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
17875         because of C-c: have m4 output in tmp files, then mv them.
17877 2002-03-08  Akim Demaille  <akim@epita.fr>
17879         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
17880         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
17881         * bin/ifnames.in: Copyright update.
17883 2002-03-08  Akim Demaille  <akim@epita.fr>
17885         * doc/autoconf.texi (Invoking autom4te): New.
17887 2002-03-05  Akim Demaille  <akim@epita.fr>
17889         * doc/autoconf.texi (Specifying Names): Clarification suggested by
17890         Kevin Ryde.
17892 2002-03-05  Akim Demaille  <akim@epita.fr>
17894         Version 2.52i.
17896 2002-03-04  Akim Demaille  <akim@epita.fr>
17898         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
17899         * lib/autoconf/general.m4 (AC_INIT): More informative error
17900         message for LIBOBJ.
17902 2002-03-04  Akim Demaille  <akim@epita.fr>
17904         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
17905         parallel builds.
17907 2002-03-04  Akim Demaille  <akim@epita.fr>
17909         * doc/autoconf.texi (Transforming Names): Equality between target
17910         and host is irrelevant.
17911         (Specifying Names, Canonicalizing): Remove all references to the
17912         backward compatibility hooks.  Rather, collect them all into...
17913         (Hosts and Cross-Compilation): this new section.
17914         * doc/install.texi (System Type): Ditto.
17915         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
17916         that `--host' implies cross-compilation.
17918 2002-03-04  Akim Demaille  <akim@epita.fr>
17920         * doc/autoconf.texi (Evaluation Macros): New.
17921         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
17922         useless.
17923         (_m4_foreach): Define the variant with immediate evaluation so
17924         that it contains exactly the items, not an expression which
17925         evaluation is the current item.
17926         (m4_re_string, m4_re_word): Don't over quote them.
17928 2002-03-04  Akim Demaille  <akim@epita.fr>
17930         Instead of having stacking `shift's evaluated at the end, let
17931         `foreach' loops immediately evaluate them.
17933         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
17934         $*.  This is the n-th time I change my mind, but hopefully this is
17935         the last...
17936         (m4_lquote): New.
17937         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
17938         efficient.
17939         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
17940         it was only a hack for m4_text_wrap.
17941         (m4_car2): Remove, replaced by...
17942         (m4_cdr): New.
17943         (_m4_foreach): Adjust.
17944         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
17945         m4_bpatsubst for clarification.
17947 2002-03-04  Akim Demaille  <akim@epita.fr>
17949         * doc/autoconf.texi (Changequote is Evil): New.
17951 2002-03-03  Kevin Ryde  <user42@zip.com.au>
17953         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
17954         on old systems like SunOS.
17956 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
17958         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
17959         lib/autoconf/functions.m4, lib/autoconf/general.m4,
17960         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
17961         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
17962         of messages.
17964 2002-02-28  Akim Demaille  <akim@epita.fr>
17966         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
17967         message to be sent.
17969 2002-02-28  Kevin Ryde  <user42@zip.com.au>
17971         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
17973 2002-02-25  Akim Demaille  <akim@epita.fr>
17975         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
17976         From Akinori Musha.
17978 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
17980         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
17981         translate \r\n to \n.
17983 2002-02-07  Akim Demaille  <akim@epita.fr>
17985         Version 2.52h.
17987 2002-02-07  Akim Demaille  <akim@epita.fr>
17989         Fix Autoconf PR/209.
17990         Also reported by Frank Denis.
17992         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
17994 2002-02-07  Akim Demaille  <akim@epita.fr>
17996         Fix Autoconf PR/207:
17997         AC_PREFIX_PROGRAM fails with dashed program names
17999         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
18000         variable when looking for the prefix program.
18001         Now it also works for shell variables.
18003 2002-02-07  Akim Demaille  <akim@epita.fr>
18005         * doc/autoconf.texi (Limitations of Builtins): More about
18006         case/esac.
18008 2002-02-06  Akim Demaille  <akim@epita.fr>
18010         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
18011         case/esac, some shells don't support it.
18012         Reported by Zack Weinberg.
18013         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
18015 2002-02-06  Akim Demaille  <akim@epita.fr>
18017         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
18018         sure not to introduce newlines in at_groups.
18019         * lib/autotest/Makefile.am (autotest.m4f): Typo.
18021 2002-02-06  Akim Demaille  <akim@epita.fr>
18023         * tests/torture.at (Configuring subdirectories): Skip if aclocal
18024         is not available.
18026 2002-02-05  Paul Eggert  <eggert@twinsun.com>
18028         * doc/autoconf.texi (Specific Compiler Characteristics):
18029         Describe HP-UX cc bug workaround more accurately.
18030         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
18031         not unsigned long.
18032         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
18033         cross-compilers, too.  This undoes some of the most recent change
18034         to this file.
18036 2002-02-05  Akim Demaille  <akim@epita.fr>
18038         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
18039         to make sure they are up to date when `check' is run.
18041 2002-02-05  Akim Demaille  <akim@epita.fr>
18043         * doc/autoconf.texi (Making testsuite Scripts): Document
18044         package.m4.
18046 2002-02-05  Akim Demaille  <akim@epita.fr>
18048         * lib/freeze.mk: New.
18050 2002-02-05  Akim Demaille  <akim@epita.fr>
18052         Implement `autom4te --freeze'.
18054         * bin/autom4te.in (&freeze): New.
18055         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
18056         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
18058 2002-02-05  Akim Demaille  <akim@epita.fr>
18060         * bin/autom4te.in (&parse_args): Implement `frozen files are
18061         optional are the sum of the previous files on the command line'.
18062         Also, pass `--reload-state=' on them, so...
18063         (handle_m4): don't.
18064         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
18065         (M4sh): Rely on M4sugar.
18066         (Autotest, M4sh, M4sugar): Use frozen files.
18068 2002-01-31  Akim Demaille  <akim@epita.fr>
18070         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
18071         * doc/autoconf.texi (Initializing configure): Adjust.
18073 2002-01-30  Akim Demaille  <akim@epita.fr>
18075         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
18076         alphanumeric to `-' instead of `_'.
18078 2002-01-30  Akim Demaille  <akim@epita.fr>
18080         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
18081         for plain code, the other for cross-compilation code.  The latter
18082         is now run with GCC only.
18083         * doc/autoconf.texi (Compilers and Preprocessors): New.
18085 2002-01-30  Akim Demaille  <akim@epita.fr>
18087         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
18088         values.
18089         * doc/autoconf.texi (Initializing configure): Explain how to
18090         change AC_INIT default values.
18092 2002-01-29  Akim Demaille  <akim@epita.fr>
18094         * tests/torture.at (Configuring subdirectories): Use configure.in,
18095         so that aclocal 1.4 works.
18096         Reported by Alexandre Duret-Lutz and Larry Schmitt.
18098 2002-01-28  Akim Demaille  <akim@epita.fr>
18100         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
18101         needs an argument.
18103 2002-01-28  Akim Demaille  <akim@epita.fr>
18105         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
18106         AUTOTEST_PATH *after* it was set.
18107         Don't put `.' in the PATH: the user should be precise and `./' if
18108         needed.  In addition, given that the test suite does some `cd', if
18109         `.' is in the path, the `tested programs' sections will report
18110         programs found in the test suite's directory, while during the
18111         tests (performed in their own directory), these programs are no
18112         longer visible.  In other words, the results is confusing and
18113         useless.
18114         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
18116 2002-01-24  Akim Demaille  <akim@epita.fr>
18118         Version 2.52g.
18120 2002-01-24  Akim Demaille  <akim@epita.fr>
18122         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
18123         * doc/autoconf.texi: Finally add Akim as an author.
18125 2002-01-24  Akim Demaille  <akim@epita.fr>
18127         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
18128         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
18129         Bourne. Use /bin/sh.
18130         From Andreas Buening.
18132 2002-01-24  Akim Demaille  <akim@epita.fr>
18134         * config/config.guess, config/config.sub, config/texinfo.tex:
18135         Update from masters.
18137 2002-01-24  Akim Demaille  <akim@epita.fr>
18139         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
18140         * config/auxdir.m4, config/cond.m4, config/depend.m4,
18141         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
18142         * config/missing.m4, config/sanity.m4, config/select.m4,
18143         * config/strip.m4: Remove, to ease sync'ing with any version of
18144         Automake.
18146 2002-01-24  Akim Demaille  <akim@epita.fr>
18148         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
18149         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
18150         Reported by Geir Ove Myhr.
18152 2002-01-21  Akim Demaille  <akim@epita.fr>
18154         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
18156 2002-01-21  Akim Demaille  <akim@epita.fr>
18158         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
18159         message on invalid options.
18160         * bin/autom4te.in (parse_args): Don't use
18161         Autoconf::General::getopt with non valid options.
18163 2002-01-17  Jim Meyering  <meyering@lucent.com>
18165         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
18166         $ac_cv_exeext so we don't use an old, invalid, cached value.
18168 2002-01-11  Akim Demaille  <akim@epita.fr>
18170         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
18171         Meyering.
18172         * doc/autoconf.texi (Function Portability): Document the strnlen
18173         limitation.
18174         (Particular Functions): Document AC_FUNC_STRNLEN.
18175         * lib/autoscan/functions: Adjust.
18177 2002-01-06  Akim Demaille  <akim@epita.fr>
18179         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
18180         package.m4, since is really depends upon configure.ac, not
18181         configure.
18182         * doc/autoconf.texi (testsuite Scripts): Adjust.
18183         * tests/Makefile.am (package.m4): New.
18184         EXTRA_DIST it since its a source.
18186 2002-01-06  Akim Demaille  <akim@epita.fr>
18188         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
18189         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
18190         and PACKAGE_BUGREPORT from here...
18191         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
18192         arguments.
18193         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
18194         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
18195         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
18196         * tests/tools.at (autoheader): Adjust.
18197         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
18199 2002-01-06  Akim Demaille  <akim@epita.fr>
18201         * bin/autoscan.in (scan_file): Use `&used'.
18203 2002-01-03  Akim Demaille  <akim@epita.fr>
18205         * doc/autoconf.texi (Output): Improved wording regarding use of
18206         AC_OUTPUT.
18207         From Olly Betts.
18209 2001-12-18  Kevin Ryde  <user42@zip.com.au>
18211         * doc/autoconf.texi (Function Portability): Add notes on sscanf
18212         sometimes needing writable input.
18214 2001-12-17  Jim Meyering  <meyering@lucent.com>
18216         * doc/autoconf.texi (New Macros): Tweak wording.
18218 2001-12-14  Akim Demaille  <akim@epita.fr>
18220         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
18221         trailing files, don't apply `-rf' to files which might not be
18222         created by configure (core, core.*, and *.core), but just `rm -f'.
18223         Suggested by Jonathan Kamens.
18225 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
18227         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
18229 2001-12-14  Akim Demaille  <akim@epita.fr>
18231         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
18233 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
18235         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
18236         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
18237         abs_srcdir, top_srcpath to abs_top_srcdir.
18238         (_AC_OUTPUT_FILES): Adjust.
18239         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
18240         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
18241         * tests/wrappl.in, tests/wrapsh.in: Adjust.
18243 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
18245         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
18246         C/Fortran linking on HP/UX, by extracting the Fortran library
18247         search path from the LPATH line in the $F77 -v output.
18249 2001-12-12  Kevin Ryde  <user42@zip.com.au>
18251         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
18252         forbidden file descriptors table.
18254 2001-11-26  Akim Demaille  <akim@epita.fr>
18256         * bin/autoscan.in (%c_keywords): Build it at top level.
18257         Map to 1 in order to simplify its uses.
18259 2001-11-26  Akim Demaille  <akim@epita.fr>
18261         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
18262         Remove $filepath, useless.
18263         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
18264         variables, they are really part of the tokens.
18265         Split the input line on spaces and then look for tokens.
18266         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
18267         because of `lex$U.$(OBJEXT)'.
18268         (&scan_files): Use "@list" instead of join.
18269         * doc/Makefile.am (CLEANFILES): Add *.fns.
18271 2001-11-26  Akim Demaille  <akim@epita.fr>
18273         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
18274         Remove, replaced by...
18275         * tests/wrappl.in: Be common for all the Perl executables.
18276         In particular autoscan and autoheader want -I.
18277         * configure.ac: Adjust.
18278         * lib/autoscan/headers: errno.h is portable.
18280 2001-11-26  Akim Demaille  <akim@epita.fr>
18282         * bin/autoscan.in (used): New.
18283         Use it.
18285 2001-11-26  Akim Demaille  <akim@epita.fr>
18287         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
18288         directives.
18289         (&scan_sh_file): Remove a duplicate pattern.
18290         (&check_configure_ac): Use long options.
18291         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
18293 2001-11-26  Akim Demaille  <akim@epita.fr>
18295         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
18296         Before, having a line containing the opening of a multi line
18297         comment made the whole line be ignored.
18299 2001-11-26  Akim Demaille  <akim@epita.fr>
18301         * doc/autoconf.texi (Using an Autotest Test Suite): New.
18302         (testsuite Scripts): Be one of its subsection.
18303         (Autotest Logs): New.
18305 2001-11-26  Akim Demaille  <akim@epita.fr>
18307         Test groups are now run two directories deeper.
18309         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
18310         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
18311         at_top_builddir.
18312         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
18313         top_srcdir, builddir and top_builddir.
18314         Use `at_*dir' relatively to the directory containing the
18315         suite, use `*dir' when relatively to the current group dir.
18317 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
18319         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
18320         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
18321         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
18322         spelling errors.
18324 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
18326         * doc/autoconf.texi (Using System Type): Add an example of `case
18327         $host' usage so people quit using `case $target' everywhere.
18329 2001-11-22  Akim Demaille  <akim@epita.fr>
18331         * doc/autoconf.texi (Installation Directory Variables): Englishoes
18332         spotted by Jim Meyering.
18334 2001-11-16  Paul Eggert  <eggert@twinsun.com>
18336         This patch implements a `long double' suggestion by Oliver Kiddle.
18338         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
18339         static, to catch errors if the value isn't known at compile-time
18340         and the compiler supports dynamic arrays.  Change its name from
18341         `_array_' to `test_array' to avoid potential name clashes.
18342         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
18343         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
18344         better than double.  Catch a bug in GCC 2.95.2 x86.
18345         * doc/autoconf.texi (C Compiler): Document the above.
18346         * NEWS: Likewise.
18348 2001-11-13  Akim Demaille  <akim@epita.fr>
18350         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
18351         hand.
18352         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
18354 2001-11-13  Akim Demaille  <akim@epita.fr>
18356         * lib/autotest/general.m4 (AT_INIT): After having run the test
18357         group, go back to the initial directory, not to at_suite_dir.
18359 2001-11-13  Akim Demaille  <akim@epita.fr>
18361         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
18362         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
18363         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
18364         option.
18365         (AT_CHECK_CONFIGURE): Use absolute paths.
18366         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
18367         The problem is still the old one: there is no means in M4 (that I
18368         know about) to create a defining macro, because there is no means
18369         to create `$1' etc., therefore, the defining macro ``swallows''
18370         all the arguments meant to the defined macro.
18372 2001-11-13  Akim Demaille  <akim@epita.fr>
18374         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
18375         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
18376         configure.ac.
18377         * tests/aclocal.m4: Remove, as it is no longer used.
18379 2001-11-13  Akim Demaille  <akim@epita.fr>
18381         * lib/autotest/general.m4: Change `tests?' into `groups?' in
18382         variable names when referring to a single test group, or to
18383         `suite' when referring to the whole test suite.
18384         `at_last_test' is removed: m4 compute at_format itself.
18385         (at_stdout, at_stder1, at_stderr): New variables.
18386         (AT_CHECK): Use them.
18388 2001-11-13  Akim Demaille  <akim@epita.fr>
18390         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
18391         in PATH.
18392         Create `testsuite.dir/003/run' instead of `testsuite.003'.
18393         Do it as soon as a test fails, don't wait till the end of the test
18394         suite.
18395         Don't remove $as_me.[0-9]*, since these files no longer exist.
18397 2001-11-13  Akim Demaille  <akim@epita.fr>
18399         * tests/tools.at: Use absolute paths, since we are no longer run
18400         in place.
18402 2001-11-13  Akim Demaille  <akim@epita.fr>
18404         Now that tests are running in their own private dir, there is no
18405         need to list the files to remove at the end of tests groups.
18407         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
18408         (AT_data_files, at_data_files): Remove.
18409         (AT_CLEANUP, AT_DATA): Simplify.
18410         (AT_INIT): Adjust.
18411         Remove the group dir if !debug && !failed.
18412         * tests/atspecific.m4: Adjust.
18414 2001-11-13  Akim Demaille  <akim@epita.fr>
18416         Start a new layout for Autotest: `testsuite' creates
18417         `testsuite.dir' in which the at-check-line etc. files are to be
18418         found, and `testsuite.dir/003' where the test group 3 is run.
18420         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
18421         at_check_line_file, at_format, at_test_normalized, at_group_dir
18422         are new variables.
18423         Create the directories.
18424         Use absolute paths for at- files.
18425         (AT_CHECK): Adjust.
18427 2001-11-11  Michael Matz  <matz@kde.org>
18429         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
18430         (m4_car2): New.
18431         (m4_car): Properly quote arguments.
18433 2001-11-13  Akim Demaille  <akim@epita.fr>
18435         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
18436         with stricter rules on LIBOBJS.
18438 2001-11-12  Paul Eggert  <eggert@twinsun.com>
18440         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
18441         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
18442         __PROTOTYPES too.
18444 2001-11-12  Akim Demaille  <akim@epita.fr>
18446         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
18448 2001-11-12  Akim Demaille  <akim@epita.fr>
18450         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
18451         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
18452         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
18453         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
18454         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
18455         specify to what the macro should be defined (typically to 1).
18457 2001-11-12  Akim Demaille  <akim@epita.fr>
18459         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
18460         From Jim Meyering.
18462 2001-11-12  Akim Demaille  <akim@epita.fr>
18464         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
18465         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
18466         definition used by Automake where LEX is +/- "${missing} lex" and
18467         `missing' itself contains variables.
18469 2001-11-12  Akim Demaille  <akim@epita.fr>
18471         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
18472         Now that M4sh pushes BODY, the comments were output at the end of
18473         the test suites.
18475 2001-11-08  Akim Demaille  <akim@epita.fr>
18477         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
18478         that we can trace macros from aclocal.m4.
18479         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
18480         obsoleted, and redirect to the former anyway.
18481         Reported by Ralf Corsepius.
18483 2001-11-08  Akim Demaille  <akim@epita.fr>
18485         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
18486         processed only if present.
18487         * tests/torture.at (Configuring subdirectories): Use autoreconf
18488         instead of successive calls to autoconf.
18489         Add a nonexistent subdirectory to exercise the patch above.
18490         Reported by Ralf Corsepius.
18492 2001-11-08  Kevin Ryde  <user42@zip.com.au>
18494         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
18495         doesn't accept .S files.
18497 2001-11-07  Akim Demaille  <akim@epita.fr>
18499         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
18500         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
18501         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
18502         * bin/autom4te.in (warn_forbidden): New.
18503         (handle_output): Use it.
18504         Read m4_pattern_forbid with messages.
18506 2001-11-05  Akim Demaille  <akim@epita.fr>
18508         * bin/autom4te.in (--normalize): Remove.
18509         * lib/autom4te.in: Adjust.
18511 2001-11-05  Akim Demaille  <akim@epita.fr>
18513         * tests/Makefile.am (testsuite): Rename this target as...
18514         ($(TESTSUITE)): this.
18515         From Nicolas Joly.
18517 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
18519         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
18520         the --prefix option, also remove it's argument.
18522 2001-11-05  Akim Demaille  <akim@epita.fr>
18524         * doc/autoconf.texi (testsuite Invocation): Update.
18525         (Writing testsuite.at): Update.
18527 2001-11-03  Akim Demaille  <akim@epita.fr>
18529         * doc/autoconf.texi: s/@code/@command/ where appropriate.
18531 2001-11-03  Akim Demaille  <akim@epita.fr>
18533         * lib/Autom4te/General.pm: (&catfile, &canonfile)
18534         (&file_name_is_absolute): New, wrappers around routines from
18535         File::Spec.
18536         Use and export them.
18537         (&find_configure_ac): Optionally take a directory where to look at.
18538         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
18539         the arguments.
18540         Default @ARGV to `.', not find_configure_ac.
18541         (&autoreconf): Argument is a directory.
18542         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
18543         * doc/autoconf.texi (autoreconf Invocation): Update.
18545 2001-11-03  Akim Demaille  <akim@epita.fr>
18547         * lib/Autom4te/General.pm (@export_vars, @export_subs)
18548         (@export_forward_subs): New.
18549         Add basename, dirname, and fileparse.
18550         (@EXPORT): Adjust.
18551         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
18552         Don't look for aclocal flags if we already know aclocal is not
18553         used.
18554         Move aclocal.m4t only if it exists.
18555         Reported by Ezra Peisach.
18557 2001-11-03  Akim Demaille  <akim@epita.fr>
18559         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
18560         passed on command line, defaulting to ./configure.ac if present.
18561         (&maybe_autoreconf, File::Find): Remove, unused.
18562         (&autoreconf): If autoconf is not used, don't try to trace.
18564 2001-11-02  Akim Demaille  <akim@epita.fr>
18566         * configure.ac: Bump to 2.52g.
18568 2001-11-02  Akim Demaille  <akim@epita.fr>
18570         Version 2.52f.
18572 2001-11-02  Akim Demaille  <akim@epita.fr>
18574         * config/config.guess, config/config.sub, doc/standards.texi:
18575         * config/lispdir.m4: Update from masters.
18576         * configure.ac: Bump to 2.52f.
18578 2001-11-02  Akim Demaille  <akim@epita.fr>
18580         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
18581         Don't run aclocal when aclocal.m4 is not from aclocal.
18582         From Ezra Peisach.
18583         Don't run libtoolize and gettextize if --install is not given.
18585 2001-11-01  Paul Eggert  <eggert@twinsun.com>
18587         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
18588         be invoked before _AS_LINENO_PREPARE.
18589         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
18590         than character ranges.
18592         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
18593         invoking AS_BASENAME.  Set the locale variables to 'C' if
18594         possible, as POSIX requires this to get the traditional
18595         behavior.
18596         * doc/autoconf.texi (Special Shell Variables): Describe the above.
18598 2001-10-31  Paul Eggert  <eggert@twinsun.com>
18600         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
18601         with {}, as that triggers a bug in Bash 2.05.
18603         (_AS_LINENO_PREPARE): Use Sed rather than
18604         Awk.  Fix the sed prepass to work even if there are multiple
18605         instances of $LINENO on the same line.  Do not substitute for
18606         other variables like $LINENOT.  Do not check file dates; such a
18607         check is unreliable on sufficiently fast machines, and removing
18608         the check makes the code simpler and more reliable.  Check for
18609         output and chmod failures.
18611         * doc/autoconf.texi (Special Shell Variables): Document
18612         the above.
18614 2001-10-31  Akim Demaille  <akim@epita.fr>
18616         * tests/Makefile.am (atconfig): Remove this target, Automake
18617         handles it now.
18619 2001-10-31  Akim Demaille  <akim@epita.fr>
18621         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
18622         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
18623         provided, while it is optional.
18624         * configure.ac: Adjust.
18626 2001-10-26  Paul Eggert  <eggert@twinsun.com>
18628         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
18629           lib/Autom4te/Struct.pm:
18630         Require Perl 5.005_03 instead of just 5.005, as some tests fail
18631         with 5.005_02.
18633         * doc/autoconf.texi (Special Shell Variables): Document some
18634         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
18636         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
18637         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
18638         eval $LINENO is not portable in practice.
18640 2001-10-24  Akim Demaille  <akim@epita.fr>
18642         * lib/Autom4te/General.pm (backname): New.
18644 2001-10-24  Akim Demaille  <akim@epita.fr>
18646         * m4/: Remove, merged into...
18647         * config/: here.
18649 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
18651         * doc/autoconf.texi (Shellology): Mention the problems with bash
18652         2.05's use of ANSI quoting in its `set' builtin.
18654 2001-10-22  Paul Eggert  <eggert@twinsun.com>
18656         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
18657         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
18658         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
18659         POSIX decided to standardize on the int flavor of strerror_r.
18660         Always do char* test, as there's no reason not to.
18661         Assign to a char* var, to catch strerror_r that returns int*.
18663         * doc/autoconf.texi (Particular Functions):
18664         Document the above changes.  Also, document the fact that
18665         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
18667         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
18669 2001-10-20  Akim Demaille  <akim@epita.fr>
18671         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
18672         the executable was missing from the log.
18674 2001-10-20  Akim Demaille  <akim@epita.fr>
18676         * lib/Autom4te/General.pm (&update_file): If destination is
18677         unchanged, remove the source.
18678         (&up_to_date_p): Don't be verbose, be debug.
18679         * bin/autoreconf.in: No longer support --m4dir.
18680         (&autoreconf): Display the full path of the configure.ac we are
18681         studying.
18682         Trace it only once.
18683         Be sure to honor --force with gettextize.
18684         Always run aclocal.
18685         * doc/autoconf.texi: Adjust.
18687 2001-10-20  Akim Demaille  <akim@epita.fr>
18689         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
18690         Remove, dead.
18691         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
18692         `intl' is already present, as it refuses unless --force.
18693         (&parse_args): Use -I, --include instead of the old Autoconf
18694         options.
18695         ($localdir, $autoconf_dir): Remove.
18696         (@include): New.
18697         (&maybe_autoreconf): New, to preserve $_ for File::Find.
18699 2001-10-19  Jens Petersen  <petersen@redhat.com>
18701         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
18702         * doc/autoconf.texi (Particular Programs): Likewise.
18704 2001-10-19  Akim Demaille  <akim@epita.fr>
18706         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
18707         file in @configure_input@.
18708         Don't mention `automatically' in addition to `generated'.
18709         * tests/torture.at (#define header templates): Adjust.
18711 2001-10-19  Akim Demaille  <akim@epita.fr>
18713         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
18714         comment, explain how to install automatic mode selection.
18715         From Russ Allbery.
18717 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
18719         * bin/autoreconf.in (autoreconf): Display the path to the
18720         configure.ac being studied.
18722 2001-10-18  Paul Eggert  <eggert@twinsun.com>
18724         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
18725         long, to work around a bug in the HP C compiler version HP92453-01
18726         B.11.11.23709.GP.
18728         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
18729         (AS_BASENAME_EXPR): New macro.
18730         (AS_BASENAME_SED): Do not assume GNU sed semantics.
18731         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
18732         and fall back on 'sed' only if the other two fail.  This makes
18733         AS_BASENAME act more like AS_DIRNAME.
18734         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
18735         contains white space.
18736         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
18737         Use AS_DIRNAME, since I think it's now DOS-friendly.
18738         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
18739         Allow "dirname //FOO" to return either / or //, as POSIX allows
18740         either behavior.
18742 2001-10-10  Akim Demaille  <akim@epita.fr>
18744         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
18745         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
18746         From Eric Sharkey.
18748 2001-10-10  Akim Demaille  <akim@epita.fr>
18750         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
18751         m4_define, since...
18752         (_AS_ECHO_N): AS_REQUIREs it.
18754 2001-10-10  Akim Demaille  <akim@epita.fr>
18756         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
18757         (AC_INCLUDES_DEFAULT): Move to...
18758         * lib/autoconf/headers.m4: here.
18759         * lib/autoconf/types.m4: Comment changes.
18760         * doc/autoconf.texi: Specify where the default includes are used
18761         in the macro prototypes.
18763 2001-10-09  Akim Demaille  <akim@epita.fr>
18765         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
18766         transition code.
18768 2001-10-08  Akim Demaille  <akim@epita.fr>
18770         * bin/autoreconf.in (&autoreconf): Remove debugging code.
18771         (&parse_args): Pass verbosity/debugging options to subtools when
18772         --debug, not when --verbose.
18773         * lib/autom4te.in (Autoreconf-preselections): New.
18774         (Autoconf): Use it.
18776 2001-10-08  Akim Demaille  <akim@epita.fr>
18778         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
18780 2001-10-08  Akim Demaille  <akim@epita.fr>
18782         * doc/autoconf.texi (autoreconf Invocation): Adjust.
18783         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
18785 2001-10-08  Akim Demaille  <akim@epita.fr>
18787         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
18788         (Syntax of the shell scripts): Don't.
18789         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
18790         bother with $force since...
18791         * lib/Autom4te/General.pm: does.
18793 2001-10-08  Akim Demaille  <akim@epita.fr>
18795         * bin/autoreconf.in: Rewrite in Perl.
18796         * configure.ac: Adjust.
18797         * lib/Autom4te/General.pm (&up_to_date_p): New.
18798         * bin/autom4te.in (&up_to_date_p): Use it.
18799         Rename as...
18800         (&up_to_date): this.
18802 2001-10-08  Akim Demaille  <akim@epita.fr>
18804         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
18805         (m4_list_cmp): Use $0 to reinvoke yourself.
18806         (m4_patsubsts): New.
18807         (m4_strip, m4_version_unletter): Use it.
18808         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
18810 2001-10-08  Akim Demaille  <akim@epita.fr>
18812         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
18813         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
18814         * lib/autoconf/types.m4, lib/autotest/general.m4,
18815         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
18816         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
18817         m4_bregexp, m4_bpatsubst, and m4_bmatch.
18818         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
18820 2001-10-08  Akim Demaille  <akim@epita.fr>
18822         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
18824 2001-10-08  Akim Demaille  <akim@epita.fr>
18826         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
18827         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
18828         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
18829         * tests/tools.at, tests/m4sh.at: Use it.
18830         * tests/m4sh.at: Don't rely on Autoconf macros.
18831         (DIRNAME_TEST): Also exercise the expr variant.
18832         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
18833         preferred M4sugar extension is now `.4s'.
18834         * tests/README: Remove.
18836 2001-10-08  Akim Demaille  <akim@epita.fr>
18838         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
18839         (m4_provide_if): this.
18840         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
18841         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
18842         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
18843         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
18845 2001-10-08  Akim Demaille  <akim@epita.fr>
18847         Use `add-log-current-defun-function' for ChangeLog creation.
18848         Suggested by Tom Tromey.
18850         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
18851         (autotest-mode): Adjust.
18852         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
18853         'comment-region onto `C-c ;'.
18854         Comments are `#', not `dnl'.
18855         (autoconf-current-defun): New.
18856         (autoconf-font-lock-keywords): Recognize `m4_defun'.
18858 2001-10-08  Akim Demaille  <akim@epita.fr>
18860         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
18861         * lib/m4sugar/m4sh.m4: here.
18862         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
18863         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
18864         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
18865         include handle the m4_pattern_*, no longer push the
18866         BODY diversion nor set the /bin/sh line, AS_INIT does it.
18867         * lib/autotest/general.m4 (AT_INIT): Likewise.
18868         * tests/base.at: Adjust the tests to use AS_INIT.
18869         * tests/tools.at (AT_DATA_FORBIDDEN): New.
18870         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
18871         Autoconf.
18873 2001-10-07  Paul Eggert  <eggert@twinsun.com>
18875         * doc/autoconf.texi (config.status Invocation):
18876         CONFIG_SHELL defaults to a shell that supports LINENO if available.
18878         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
18879         shell does not support LINENO, and if CONFIG_SHELL is unset or
18880         empty, and if we can find a shell that does support LINENO,
18881         then set CONFIG_SHELL to that shell and then re-execute
18882         ourselves with CONFIG_SHELL.
18884 2001-10-05  Paul Eggert  <eggert@twinsun.com>
18886         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
18887         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
18888         build of $(TESTSUITE).
18890 2001-10-05  Akim Demaille  <akim@epita.fr>
18892         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
18893         iff we are a bareword.
18894         Reported by Raja R Harinath.
18896 2001-10-05  Akim Demaille  <akim@epita.fr>
18898         * tests/m4sh.at (LINENO): New.
18899         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
18900         PATH_SEPARATOR before using it.
18901         Fix the absolute path case/esac pattern.
18902         Provide $0 as fallback for as_myself.
18903         Reported by Raja R Harinath.
18905 2001-10-05  Akim Demaille  <akim@epita.fr>
18907         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
18908         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
18910 2001-10-05  Akim Demaille  <akim@epita.fr>
18912         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
18913         (AS_SHELL_SANITIZE): here.  Use it.
18914         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
18915         From Paul Eggert.
18917 2001-10-04  Akim Demaille  <akim@epita.fr>
18919         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
18920         combination of Awk and sed to replace $LINENO.
18922 2001-10-02  Paul Eggert  <eggert@twinsun.com>
18924         * doc/autoconf.texi (Limitations of Builtins): You can't use
18925         "source"; it's not portable.  Remove confusing and
18926         somewhat-incorrect example involving "." and "/".
18928         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
18929         compatibility with POSIX shells.
18931 2001-10-02  Akim Demaille  <akim@epita.fr>
18933         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
18934         instead of exec'ing to preserve $0 and $@.
18936 2001-10-01  Akim Demaille  <akim@epita.fr>
18938         * tests/testsuite (AT_INIT) <at_pass_list>: New.
18939         Don't run twice the same test.
18941 2001-10-01  Akim Demaille  <akim@epita.fr>
18943         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
18944         No longer output the list of tests.
18945         <--list>: New option.
18946         <--full-help>: Remove.
18947         Complete the short/long options duality.
18948         Various small adjustments.
18950 2001-10-01  Akim Demaille  <akim@epita.fr>
18952         * doc/autoconf.texi: Use @kbd for user input.
18953         Always use `$' as shell prompt.
18955 2001-09-30  Paul Eggert  <eggert@twinsun.com>
18957         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
18958         Don't use nested parenthesization.  This patch was originally
18959         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
18960         but somehow it didn't get incorporated then.
18961         * doc/autoconf.texi (Limitations of Usual Tools):
18962         Clarify remark about sed and nested parenthesization.
18964         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
18965         Report an error if the size cannot be determined even though
18966         the type exists.
18967         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
18968         Check for `expr' arithmetic overflow, and for compilation failure,
18969         and invoke a new argument $4 if either is discovered.
18970         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
18971         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
18973 2001-09-28  Akim Demaille  <akim@epita.fr>
18975         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
18976         * m4/lispdir.m4: New.
18977         * aclocal.m4, configure.ac: Adjust.
18979 2001-09-28  Akim Demaille  <akim@epita.fr>
18981         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
18982         (AT_TESTED): this.
18983         (AT_INIT): More the wrapped section to where it will be expanded.
18984         Output `AT_tested' only when existing.
18985         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
18987 2001-09-27  Akim Demaille  <akim@epita.fr>
18989         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
18990         generates too many bug reports.
18992         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
18993         status when executing the ACTION-IF-FALSE.
18994         * tests/base.at (AC_TRY_*): Rename as...
18995         (AC_TRY_COMMAND): this.
18996         (AC_RUN_IFELSE): New.
18997         * tests/compile.at (Extensions, C keywords)
18998         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
18999         (Broken/missing compilers, AC_PROG_CPP with warnings)
19000         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
19001         * tests/c.at (Extensions, C keywords)
19002         (Broken/missing compilers, AC_PROG_CPP with warnings)
19003         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
19004         (AC_PROG_CPP requires AC_PROG_CC): here and...
19005         * tests/fortran.at (GNU Fortran 77): there.
19006         * doc/autoconf.texi (autoconf Invocation): Fix the example:
19007         AC_TRY_RUN is about compilation, not shell commands.
19008         (Test Programs): AC_TRY_RUN works as used to be advertised.
19010 2001-09-27  Akim Demaille  <akim@epita.fr>
19012         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
19013         Raja R Harinath:
19014         Be sure to detect when $LINENO always returns the same value.
19015         Look for the original script, basename($0) is certainly not
19016         enough.
19017         Pass the CLI arguments to `$as_me.lineno'.
19019 2001-09-25  Akim Demaille  <akim@epita.fr>
19021         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
19022         Be sure the close and reopen the LOG fd before and after using tee
19023         to extend the log.
19024         <at_tests_pattern>: Adjust to the new format of at_help_all.
19026 2001-09-23  Akim Demaille  <akim@epita.fr>
19028         * bin/autom4te.in (parse_args): There can be several invocations
19029         of --language now.
19031 2001-09-23  Akim Demaille  <akim@epita.fr>
19033         * doc/autoconf.texi (Top): Wrap in @ifnottex.
19035 2001-09-23  Akim Demaille  <akim@epita.fr>
19037         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
19038         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
19039         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
19040         builddir, buildpath, top_builddir, and top_buildpath.
19041         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
19042         the current directory.
19043         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
19044         variables *before* changing the current directory.
19045         Skip nonexistent dirs.
19046         * doc/autoconf.texi (Preset Output Variables): Document these
19047         variables.
19049         * lib/autotest/general.m4: Do not reset AT_victims.
19050         Don't compute at_srcdir nor at_top_srcdir.
19052         * tests/tools.at: Hence use top_srcdir.
19054         * tests/Makefile.am, tests/autoconf, tests/autoheader,
19055         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
19056         Remove.
19057         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
19058         * tests/wrapsh.in, tests/autoupdate.in: New.
19059         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
19060         * configure.ac: Build the position independent wrappers.
19062         * man/Makefile.am: Now that test wrappers are position
19063         independent, use them and drop dark envvar magic.
19065 2001-09-23  Akim Demaille  <akim@epita.fr>
19067         * doc/autoconf.texi (Common Shell Constructs): Rename as...
19068         (Programming in M4sh): this.
19069         Promote to @section.
19071 2001-09-23  Akim Demaille  <akim@epita.fr>
19073         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
19074         Pass $at_debug_args to the rerun test suite.
19075         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
19076         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
19077         From Paul Eggert.
19079 2001-09-23  Akim Demaille  <akim@epita.fr>
19081         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
19083 2001-09-23  Akim Demaille  <akim@epita.fr>
19085         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
19086         over-escaping.
19088 2001-09-23  Akim Demaille  <akim@epita.fr>
19090         * lib/Autom4te/General.pm (&debug): New.
19091         * bin/autom4te.in ($language): Move to...
19092         (parse_args): here.
19093         Handle --language in languages.
19094         * lib/autom4te.in (Automake-selections, Autoheader-selections)
19095         (Autoscan-selections): New.
19096         (Autoconf): Adjust.
19098 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
19100         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
19101         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
19102         to match current versions from CVS Automake.
19104 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
19106         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
19107         for $LINENO.
19109 2001-09-22  Akim Demaille  <akim@epita.fr>
19111         * lib/autoconf/autotest.m4: Create `package.m4'.
19112         * tests/Makefile.am (package.m4): Remove.
19114 2001-09-22  Akim Demaille  <akim@epita.fr>
19116         Rely on `$LINENO' when possible instead of `__oline__'.
19118         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
19119         `$LINENO' support replacement when not supported.
19120         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
19121         them explicitly to be sure they are not output before this section
19122         (via m4_require).  Cosmetic only.
19123         * lib/autoconf/c.m4, lib/autoconf/general.m4,
19124         * lib/autoconf/programs.m4: Replace all the occurrences of
19125         `__oline__' with `$LINENO'.
19126         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
19128 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
19130         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
19131         character (u: -> ue) in a code comment.
19132         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
19133         it works.
19135 2001-09-21  Akim Demaille  <akim@epita.fr>
19137         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
19138         Suggested by Jim Meyering.
19140 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19142         * lib/autoconf/programs.m4: Use extensions listed in
19143         $ac_executable_extensions when looking for programs.
19145 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19147         * lib/autoconf/general.m4: Fix a small Englisho.
19148         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
19149         setting up ac_dir_suffix and ac_top_builddir.
19150         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
19152 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19154         * doc/autoconf.texi (File System Conventions): Clarify the use of
19155         PATH_SEPARATOR.
19156         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
19157         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
19158         be used instead of ':'.
19159         * lib/autotest/general.m4: Replace occurrences of ':' in
19160         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
19162 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19164         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
19165         arguments.  Fixed a typo.
19167 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19169         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
19170         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
19172 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19174         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
19175         * bin/autoupdate.in: Ditto.
19176         * bin/autoheader.in: Reworded a few comments.
19177         * bin/autoconf.in: Reworded help text for a few options.
19178         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
19179         * bin/autoscan.in, bin/autoupdate.in: Ditto.
19181 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
19183         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
19184         already have $file).  Set output files to binary mode (helps avoid
19185         CR issues on DOSish systems).
19187 2001-09-19  Akim Demaille  <akim@epita.fr>
19189         * lib/autotest/general.m4: Englishoes.
19190         From Tim Van Holder and Alexey Mahotkin.
19192 2001-09-18  Paul Eggert  <eggert@twinsun.com>
19194         * doc/autoconf.texi (Common Shell Constructs): New node,
19195         documenting AS_DIRNAME.
19196         (Limitations of Usual Tools): Refer to it when discussing dirname.
19197         Also, update discussion of POSIX standard to reflect latest draft.
19199         * lib/autoconf/c.m4:
19200         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
19202         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19203         Do not pass a first argument with leading '-'
19204         to expr, by parenthesizing initial integers that might be negative.
19206         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
19207         now merely checks whether it is an error to pass an argument
19208         to getpgrp.
19210         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
19211         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
19212         whether it is a (compile-time) error to pass an argument to
19213         getpgrp.  This simpler test supports the revised documentation,
19214         and is all that AC_FUNC_GETPGRP's users really need.
19216 2001-09-18  Akim Demaille  <akim@epita.fr>
19218         * doc/autoconf.texi (Limitations of Make) <$<>: New.
19220 2001-09-18  Akim Demaille  <akim@epita.fr>
19222         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
19223         `{}'.
19224         * lib/autotest/general.m4 (AT_INIT): Adjust.
19226 2001-09-18  Paul Wagland  <paul@wagland.net>
19228         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
19229         correctly.
19230         Add test for AS_BASENAME.
19231         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
19232         added test. It now correctly handles /1/2/3/, returning '3' not ''.
19233         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
19234         * tests/base.at: Fixed the expected responses. The old ones were
19235         one line out...
19236         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
19237         the documentation claims it should (and how it behaved in 2.13).
19239 2001-09-18  Akim Demaille  <akim@epita.fr>
19241         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
19242         the AC_CONFIG_COMMANDS invocation.
19243         This also solves the name clash problems.
19244         Don't set the package's ID.
19245         * lib/m4sugar/Makefile.am (version.m4): Revamp.
19246         No longer to be shipped.
19247         (version.in): Remove.
19248         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
19249         * lib/autoconf/status.m4: Adjust.
19250         Use `m4_PACKAGE_STRING'.
19251         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
19252         the only optional argument is the name of the test suite.
19253         Expect `package.m4' to define the package signature.
19254         * lib/autom4te.in (Autotest): Add `package.m4?'.
19255         * tests/Makefile.am (package.m4): New.
19256         * tests/suite.at: ifnames is a victim.
19258 2001-09-18  Akim Demaille  <akim@epita.fr>
19260         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
19261         AC_LIBSOURCE, AC_CONFIG_FILES.
19262         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
19263         program version string doesn't match the package's.
19264         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
19265         after `(cached)'.
19267 2001-09-17  Paul Eggert  <eggert@twinsun.com>
19269         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19270         Allow expression to return any value that can fit into unsigned long
19271         (not int, as before).  Check for output errors.
19273 2001-09-17  Bruno Haible  <haible@ilog.fr>
19275         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19276         Always include <stdio.h> and <stdlib.h>. Evaluate
19277         the expression in an extra function before these includes. Call
19278         fprintf "%d" only after ensuring the argument is of type 'int'.
19279         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
19281 2001-09-17  Paul Eggert  <eggert@twinsun.com>
19283         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
19284         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
19285         fatal errors, and AC_CHECK_LIB causes it to include libraries even
19286         when they don't exist.
19288         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
19289         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
19290         need it.
19292         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
19293         version with the version used by fileutils 4.1, except use
19294         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
19295         we don't need it.
19297         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
19299 2001-09-13  Akim Demaille  <akim@epita.fr>
19301         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
19302         _first_.
19303         Reported by Gerrit P. Haase.
19305 2001-09-13  Akim Demaille  <akim@epita.fr>
19307         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
19308         m4_defn'ing is valid.
19310 2001-09-13  Akim Demaille  <akim@epita.fr>
19312         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
19313         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
19314         Use it.
19316 2001-09-13  Akim Demaille  <akim@epita.fr>
19318         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
19319         m4_match.
19320         (m4_re_escape): New.
19321         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
19322         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
19323         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
19324         Likewise.
19325         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
19326         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
19327         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
19328         AT_tests_all for consistency.
19329         Set at_victims.
19330         (AT_VICTIMS): Similar to AT_KEYWORDS.
19331         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
19333 2001-09-13  Akim Demaille  <akim@epita.fr>
19335         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
19337 2001-09-13  Akim Demaille  <akim@epita.fr>
19339         * lib/autotest/general.m4 (AT_INIT): Create and remove
19340         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
19341         test suites can cohabit.
19343 2001-09-13  Akim Demaille  <akim@epita.fr>
19345         * tests/mktests.sh: Don't output banners for empty test files.
19347 2001-09-13  Akim Demaille  <akim@epita.fr>
19349         Test suites can be run independently of configure.
19351         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
19352         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
19353         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
19354         ECHO_N etc.
19355         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
19356         and at_c.
19357         * lib/autotest/general.m4: Use ECHO_*.
19359 2001-09-13  Akim Demaille  <akim@epita.fr>
19361         * bin/ifnames.in: Rewrite in Perl.
19362         * configure.ac: Don't look for AWK.
19363         * tests/tools.at (AWK portability): Remove.
19364         (Syntax of the shell scripts): Don't check ifnames.
19365         (AT_CHECK_PERL_SYNTAX): New.
19366         (Syntax of the Perl scripts): Check ifnames.
19367         * tests/ifnames: New.
19369 2001-09-13  Akim Demaille  <akim@epita.fr>
19371         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
19372         test group titles.
19373         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
19374         Remove all the other keywords.
19376 2001-09-10  Akim Demaille  <akim@epita.fr>
19378         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
19379         SETUP: no longer used.
19380         Support -k, --keywords.
19381         <at_help>: Be `no', `short', or `long'.
19382         <at_help_all>: New variable.
19383         (AT_KEYWORDS): New.
19384         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
19385         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
19386         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
19387         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
19388         No longer fill the HELP diversion.
19389         (AT_CLEANUP): Use them.
19390         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
19391         (m4_list_append): Remove.
19393         Spread a few keywords in the Autoconf test suite.
19395 2001-09-10  Akim Demaille  <akim@epita.fr>
19397         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
19398         PATH_SEPARATOR, let M4sh compute it.
19399         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
19400         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
19401         Move to...
19402         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
19403         Simplify when the path is not a literal.
19404         (AS_UNAME): Use it to report PATH.
19405         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
19406         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
19407         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
19408         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
19409         normalize the path, and to look for victims.
19410         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
19411         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
19413 2001-09-07  Akim Demaille  <akim@epita.fr>
19415         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
19416         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
19417         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
19418         related variables into `at_package_*'.
19419         * lib/autotest/general.m4 (AT_VICTIMS): New.
19420         (AT_INIT): Adjust for stand-alone/embedded test suites.
19421         (AS_MESSAGE_LOG_FD): Define and use it.
19422         * tests/suite.at (AT_VICTIMS): Use it.
19423         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
19424         at_version.
19426 2001-09-07  Akim Demaille  <akim@epita.fr>
19428         Move toward possibly stand-alone test suites.
19430         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
19431         in addition, it introduces useless differences in logs.
19432         (AT_INIT): Let atconfig and atlocal be both optional.
19433         Adjust PATH computation.
19434         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
19436 2001-09-07  Akim Demaille  <akim@epita.fr>
19438         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
19439         m4sugar/version.m4.
19441 2001-09-05  Akim Demaille  <akim@epita.fr>
19443         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
19444         to avoid GCC warnings.
19445         From Uwe Seimet.
19447 2001-09-05  Akim Demaille  <akim@epita.fr>
19449         * bin/autom4te.in: --language is -l, not -s.
19451 2001-09-05  Akim Demaille  <akim@epita.fr>
19453         Be ready to handle filenames as stupid as `dnl.at', for if even
19454         the maintainer is dumb enough to do that...
19456         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
19457         excellence in M4 quotation: consider `__file__' is active.
19459         And BTW, when invoking m4, pass the --include in the right order:
19460         the wrong one.
19462         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
19463         4m.
19465 2001-09-05  Akim Demaille  <akim@epita.fr>
19467         * lib/Autom4te/XFile.pm: New lib file.
19468         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
19469         * bin/autoheader.in: Use it.
19471 2001-09-05  Akim Demaille  <akim@epita.fr>
19473         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
19474         defined.
19476 2001-09-05  Akim Demaille  <akim@epita.fr>
19478         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
19479         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
19481         * bin/autoscan.in: Use `getopt' and `find_files' etc.
19482         Add -I, --include support.
19483         * doc/autoconf.texi (autoscan Invocation): Adjust.
19485 2001-09-05  Akim Demaille  <akim@epita.fr>
19487         CVS GNU M4 doesn't like `undefine(undefined)'.
19489         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
19490         New, extracted from main.
19491         Use IO::File wherever possible.
19492         (input.m4): Be constant, use -I instead of hard coding $tmp.
19493         Therefore be a quoted heredoc.
19494         Don't invoke `_au_disable', since ac was not loaded, but just
19495         `unm4.m4'.
19497 2001-08-31  Akim Demaille  <akim@epita.fr>
19499         Version 2.52d.
19501 2001-08-31  Akim Demaille  <akim@epita.fr>
19503         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
19504         previous patch.
19505         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
19507 2001-08-31  Akim Demaille  <akim@epita.fr>
19509         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
19510         serious problems handling heredocs in heredocs.
19511         Reported by Nicolas Joly.
19513 2001-08-31  Akim Demaille  <akim@epita.fr>
19515         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
19516         (Making testsuite Scripts): Update.
19518 2001-08-31  Akim Demaille  <akim@epita.fr>
19520         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
19522 2001-08-31  Akim Demaille  <akim@epita.fr>
19524         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
19525         (testsuite Scripts): There is no such thing as `atconfig.in'.
19526         And actually one diagram is missing: test suite runtime.
19528 2001-08-31  Akim Demaille  <akim@epita.fr>
19530         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
19531         inverse order.
19533 2001-08-31  Akim Demaille  <akim@epita.fr>
19535         * bin/autoupdate.in (@include): `installcheck' revealed the path
19536         to m4sugar was lacking!
19538 2001-08-31  Akim Demaille  <akim@epita.fr>
19540         * man/Makefile.am (.x.1): We really have to pass
19541         autom4te_perllibdir.
19543 2001-08-31  Akim Demaille  <akim@epita.fr>
19545         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
19546         debug scripts, in particular passing explicitly listed tests to
19547         run is stupid.
19549 2001-08-31  Akim Demaille  <akim@epita.fr>
19551         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
19552         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
19553         Use directly autom4te, not autoconf.
19554         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
19556 2001-08-31  Akim Demaille  <akim@epita.fr>
19558         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
19559         * bin/autoheader.in (%symbol): Strip arguments of macros.
19561 2001-08-31  Akim Demaille  <akim@epita.fr>
19563         * doc/autoconf.texi: Catch up -I, --include changes.
19565 2001-08-31  Akim Demaille  <akim@epita.fr>
19567         * bin/autom4te.in (&parse_args): Die on unknown languages.
19568         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
19569         need for autoconf.
19570         Promote --include over --macrodir and other obsolete options.
19572 2001-08-31  Akim Demaille  <akim@epita.fr>
19574         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
19575         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
19576         * bin/autom4te.in ($autoconf): Pass --force.
19577         `print $out' doesn't print `$_' but `$out'.
19578         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
19579         (autoheader): Pass --force since the test suite goes too fast for
19580         the time stamps.
19581         Adjust to the new autoheader messages.
19583 2001-08-31  Akim Demaille  <akim@epita.fr>
19585         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
19586         Check the completeness of the #template.
19587         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
19588         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
19589         invocation.
19591 2001-08-31  Akim Demaille  <akim@epita.fr>
19593         * lib/Autom4te/General.pm (&find_file, &update_file): New.
19594         * bin/autoupdate.in, bin/autoheader.in: Adjust.
19595         Drop AC_MACRODIR dead for real.
19596         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
19597         `autoheader: `config.hin' is created'.
19598         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
19600 2001-08-31  Akim Demaille  <akim@epita.fr>
19602         * bin/autoheader.in: Rewrite in Perl.
19603         * tests/autoheader: Adjust.
19605 2001-08-31  Akim Demaille  <akim@epita.fr>
19607         * bin/autoconf.in (--include, -I): New option.
19608         Map --localdir, --autoconf-dir onto it.
19609         Forward autom4te's options instead of interpreting them.
19610         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
19611         There is no such envvar since the inception of autom4te.cfg.
19612         * bin/autom4te.in (&parse_args): Uniquify `@include'.
19613         * bin/autoupdate.in: Adjust, and perform more control.
19614         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
19615         * tests/autoconf: Dittowise.
19617 2001-08-31  Akim Demaille  <akim@epita.fr>
19619         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
19620         * bin/autom4te.in (&find_file): Support `FILE?' standing for
19621         optionally `FILE'.
19622         Use -e, not -f, since /dev/null for instance is OK.
19623         (&parse_args): Adjust.
19624         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
19626 2001-08-31  Akim Demaille  <akim@epita.fr>
19628         * configure.ac: Also find tested executables in bin.
19629         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
19630         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
19631         installed peer executables, only PATH is allowed to resolve it.
19632         Pass `autoconf_dir' via options, not via invisible envvars.
19633         * lib/Autom4te/General.pm (&find_peer): Remove.
19634         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
19635         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
19636         * man/Makefile.am: Let help2man rely on PATH instead of trying to
19637         find the executables for it.
19638         * tests/Makefile.am: Major cleanup.  Too lazy to document...
19639         * tests/atlocal.in: Remove all the obscure envvar manipulations.
19640         We only need PERL.
19641         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
19642         indeed related to running the test suite, while passing
19643         --autoconf-dir and others is related to running non installed
19644         Autoconf executables.  So don't do that, leave it to...
19645         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
19646         * tests/autoscan: New.
19647         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
19648         refer to library files: rely on --language.
19650 2001-08-29  Akim Demaille  <akim@epita.fr>
19652         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
19653         s/--set/--language/.
19655 2001-08-29  Akim Demaille  <akim@epita.fr>
19657         * doc/autoconf.texi: Strip the @nodes.
19658         Suggested by Paul Eggert.
19659         (Initializing configure): Typo.
19661 2001-08-29  Akim Demaille  <akim@epita.fr>
19663         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
19664         Suggested by Paul Eggert.
19666 2001-08-29  Akim Demaille  <akim@epita.fr>
19668         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
19669         download in a tmp dir.
19671 2001-08-29  Akim Demaille  <akim@epita.fr>
19673         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
19674         case insensitive OSes out there :(
19675         From Tim Van Holder.
19677 2001-08-29  Akim Demaille  <akim@epita.fr>
19679         * lib/autom4te.in: New.
19680         * lib/Makefile.am (edit, autom4te.cfg): New.
19681         * bin/autom4te.in (BEGIN): Simplify.
19682         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
19683         (&load_configuration): New.  Use it.
19684         (&parse_args): Support --mode, --set, and --melt.
19685         * bin/autoconf.in: Simplify and adjust.
19686         * tests/Makefile.am (AUTOMAKE): Use --set.
19687         * tests/atlocal.in: Adjust.
19688         * BUGS: distcheck and check are weak.
19690 2001-08-29  Akim Demaille  <akim@epita.fr>
19692         * lib/autotest/general.m4: Use
19693                 foo=`(command) 2>/dev/null`
19694         not
19695                 foo=`command` 2>/dev/null
19696         (at-devnull): Rename as...
19697         (AT-devnull): this.
19698         (--clean): Remove AT-* files too.
19699         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
19700         Reported by Nicolas Joly.
19702 2001-08-28  Akim Demaille  <akim@epita.fr>
19704         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
19705         quotes inside single quotes.
19706         Reported by Nicolas Joly.
19708 2001-08-28  Kevin Ryde  <user42@zip.com.au>
19710         * doc/autoconf.texi (Function Portability): Mention C right shifts.
19712 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
19714         * lib/autotest/general.m4: Reword some messages.
19715         (AT_INIT): Check for the `times' builtin before using it.
19716         Support test ranges as arguments to the testsuite.
19717         Have -e imply -d as the help text suggested.
19719 2001-08-27  Akim Demaille  <akim@epita.fr>
19721         * Makefile.maint: Formatting changes.
19722         (do-po-update, po-update, cvs-update, update): New targets.
19723         (AMTAR): Remove.
19725 2001-08-27  Akim Demaille  <akim@epita.fr>
19727         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
19728         <at_cmd_line>: New.
19729         Pass it to debug-*.sh scripts.
19730         <AUTOTEST_PATH>: May contain absolute dir names.
19732 2001-08-27  Akim Demaille  <akim@epita.fr>
19734         * lib/autotest/general.m4 (AT_INIT): Log the command line.
19735         Support `VAR=VAL' as arguments.
19736         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
19737         may be set via the command line.
19739 2001-08-27  Akim Demaille  <akim@epita.fr>
19741         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
19742         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
19743         first the build dirs, then the src dirs.
19744         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
19746 2001-08-27  Akim Demaille  <akim@epita.fr>
19748         * lib/autotest/general.m4 (AT_INIT): Output the definition of
19749         at_data_files earlier.
19750         (--clean, -c): New option.
19751         * tests/Makefile.am: Use this option.
19753 2001-08-27  Akim Demaille  <akim@epita.fr>
19755         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
19756         `ac_top_builddir' to mimic Automake's vocabulary, which much more
19757         readable.
19758         Adjust callers.
19759         * doc/autoconf.texi (Configuration Actions): Document the vars
19760         available in commands.
19761         Emphasize the risks of collisions in init-cmds.
19763 2001-08-27  Akim Demaille  <akim@epita.fr>
19765         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
19766         (Initializing configure): this new node.
19768 2001-08-27  Akim Demaille  <akim@epita.fr>
19770         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
19772 2001-08-27  Akim Demaille  <akim@epita.fr>
19774         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
19775         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
19776         New file.
19777         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
19779 2001-08-27  Akim Demaille  <akim@epita.fr>
19781         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
19782         to...
19783         * lib/autoconf/autoheader.m4: this new file.
19784         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
19785         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
19786         Move to...
19787         * lib/autoconf/autoupdate.m4: this new file.
19789 2001-08-27  Akim Demaille  <akim@epita.fr>
19791         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
19792         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
19793         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
19794         -> ac_dir).
19795         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
19796         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
19798 2001-08-27  Akim Demaille  <akim@epita.fr>
19800         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
19801         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
19802         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
19803         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
19804         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
19805         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
19806         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
19807         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
19808         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
19809         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
19810         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
19811         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
19812         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
19813         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
19814         (_AC_OUTPUT_SUBDIRS): Move to...
19815         * lib/autoconf/status.m4: this new file.
19816         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
19817         * tests/Makefile.am, tests/suite.at: Adjust.
19819 2001-08-27  Akim Demaille  <akim@epita.fr>
19821         Automake 1.5.
19823         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
19824         (AMTAR): Help automake define it.
19825         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
19826         needed, 1.5 can have a macro and a target with the same name.
19827         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
19828         * m4/strip.m4: New.
19829         * m4/init.m4, m4/sanity.m4: Update.
19830         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
19831         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
19832         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
19833         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
19835 2001-08-27  Akim Demaille  <akim@epita.fr>
19837         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
19839         * lib/autoconf/version.in: Remove.
19840         * lib/m4sugar/version.in: New.
19841         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
19842         Adjust callers.
19843         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
19844         the name of the directory they're in, instead of the filename,
19845         since version.m4 is now in m4sugar, but m4_acversion must not be
19846         classified as an Autoconf macro.
19847         ($input_m4): Don't qualify the path to m4sugar.
19848         Rather, pass autoconf_dir to m4.
19849         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
19850         * tests/suite.at: Require 2.52c.
19852 2001-08-27  Akim Demaille  <akim@epita.fr>
19854         testsuite.log should include config.log.
19856         * lib/autotest/autotest.m4: New.
19857         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
19858         * tests/suite.at : Adjust.
19859         (AT_INIT): Log config.log.
19860         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
19861         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
19862         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
19863         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
19864         of config.log on traps.
19865         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
19866         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
19867         for config.status'.
19868         Open the log as soon as possible.
19869         Use the same log introduction as configure's.
19871 2001-08-22  Paul Eggert  <eggert@twinsun.com>
19873         * doc/autoconf.texi (Indices): New node.
19874         Move indices out of the top level menu and into this submenu.
19876 2001-08-22  Akim Demaille  <akim@epita.fr>
19878         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
19879         AC_TRY_COMMAND.
19880         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
19882 2001-08-22  Akim Demaille  <akim@epita.fr>
19884         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
19885         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
19886         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
19887         * lib/autoconf/programs.m4: here.
19888         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
19889         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
19890         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
19891         * lib/autoconf/programs.m4: here.
19892         (_AC_DECL_YYTEXT): Rename as...
19893         (_AC_PROG_LEX_YYTEXT_DECL): this.
19894         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
19895         * tests/Makefile.am, tests/suite.am: Adjust.
19897 2001-08-22  Akim Demaille  <akim@epita.fr>
19899         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
19900         Move to...
19901         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
19902         here.
19903         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
19904         * lib/autoconf/functions.m4: here.
19905         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
19906         (AH_CHECK_LIB): Move to...
19907         * lib/autoconf/libs: this new file.
19908         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
19909         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
19910         * lib/autoconf/libs.m4: here.
19911         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
19913 2001-08-22  Akim Demaille  <akim@epita.fr>
19915         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
19916         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
19917         (AC_SITE_LOAD): Better logging of config.site.
19919 2001-08-20  Akim Demaille  <akim@epita.fr>
19921         * configure.ac (AT_CONFIG): Fix the path.
19922         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
19923         can be used.
19925 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
19927         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
19928         program with AC_LANG_PROGRAM before feeding it to
19929         AC_COMPILE_IFELSE.  Cleanup grep usage.
19931 2001-08-20  Akim Demaille  <akim@epita.fr>
19933         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
19934         * NEWS, README, README-alpha, TODO, tests/README: This package is
19935         `Autoconf', not `autoconf' (the executable).
19937 2001-08-20  Akim Demaille  <akim@epita.fr>
19939         Info readers seem to need `Index' in the index node title :(
19941         * doc/autoconf.texi: Reverse the 2001-08-15 change which
19942         simplified index node names.
19944 2001-08-20  Akim Demaille  <akim@epita.fr>
19946         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
19947         arguments are not literals.
19948         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
19949         Specify the output variables, and macros defined.
19951 2001-08-20  Akim Demaille  <akim@epita.fr>
19953         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
19954         (Examining Syntax) <AC_TRY_COMPILE>
19955         (Examining Libraries) <AC_TRY_LINK>
19956         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
19957         their arguments.
19958         Reported by Werner Lemberg.
19960 2001-08-20  Akim Demaille  <akim@epita.fr>
19962         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
19963         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
19964         Load atlocal late enough to dump it in the log.
19965         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
19967 2001-08-20  Akim Demaille  <akim@epita.fr>
19969         * tests/torture.at (Configuring subdirectories): New test.
19970         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
19971         looking for.
19972         * m4/atconfig.m4: Be sure the let $[0] be expandable.
19973         (top_srcdir): Fix its computation.
19975 2001-08-20  Akim Demaille  <akim@epita.fr>
19977         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
19978         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
19979         test suite lives.
19980         Create `atconfig' automagically.
19981         Configure atlocal.in if present.
19982         * tests/atconfig.in: Remove.
19983         * tests/atlocal.in: New.
19984         * tests/Makefile.am: Adjust.
19986 2001-08-20  Akim Demaille  <akim@epita.fr>
19988         Huh!?!?!  There are still some user EOF tags used, which prevents
19989         their use in AC_CONFIG_COMMANDS for instance...
19991         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
19992         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
19993         `_CSEOF', or `_ATEOF', as appropriate.
19994         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
19995         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
19997 2001-08-20  Akim Demaille  <akim@epita.fr>
19999         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
20000         * tests/semantics.at, tests/tools.at, tests/torture.at:
20001         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
20003 2001-08-20  Akim Demaille  <akim@epita.fr>
20005         Autotest invokes M4sh's initialization.
20007         * lib/autotest/general.m4: Adjust the diversion names.
20008         (AT_INIT): Run AS_INIT.
20009         Use the BINSH diversion to invoke /bin/sh.
20010         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
20011         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
20013 2001-08-20  Akim Demaille  <akim@epita.fr>
20015         Let M4sh have its own diversions.
20017         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
20018         (_m4_divert(NOTICE)): Rename as...
20019         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
20020         (_m4_divert(HEADER-COMMENT)): these.
20021         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
20022         (_m4_divert(NOTICE)): New, for Libtool.
20023         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
20024         long ago with `_m4_divert(GROW)'.
20025         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
20027 2001-08-20  Akim Demaille  <akim@epita.fr>
20029         * tests/base.at, tests/compile.at, tests/foreign.at,
20030         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
20031         * tests/semantics.at, tests/suite.at, tests/tools.at,
20032         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
20034 2001-08-20  Akim Demaille  <akim@epita.fr>
20036         * bin/autom4te.in (handle_output): Handle @__@.
20038 2001-08-20  Akim Demaille  <akim@epita.fr>
20040         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
20041         * lib/autotest/general.m4: Adjust the license.
20043 2001-08-17  Paul Eggert  <eggert@twinsun.com>
20045         * doc/autoconf.texi (Function Portability): Mention snprintf,
20046         following up on a suggestion by Kevin Ryde.
20048 2001-08-17  Akim Demaille  <akim@epita.fr>
20050         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
20051         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
20053 2001-08-17  Akim Demaille  <akim@epita.fr>
20055         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
20056         `$0.log' as for projects where testsuite is in src, we'd have
20057         testsuite.log created in src.
20059 2001-08-17  Akim Demaille  <akim@epita.fr>
20061         * bin/autom4te.in (&parse_args): Recognize --normalize.
20063 2001-08-17  Akim Demaille  <akim@epita.fr>
20065         Start implementing the AC_CHECK_HEADER transition scheme.
20067         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
20068         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
20069         (AC_CHECK_HEADER): Use them.
20071 2001-08-17  Akim Demaille  <akim@epita.fr>
20073         * doc/autoconf.texi: Work around Texinfo buglets.
20074         (Transformation Rules): One example is enough, users are expected
20075         to have their brains on. And BTW, use DESTDIR.
20076         (dvar): New macro.  Use it.
20078 2001-08-17  Akim Demaille  <akim@epita.fr>
20080         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
20081         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
20082         looking for ChangeLogs.
20084 2001-08-17  Akim Demaille  <akim@epita.fr>
20086         * bin/autom4te.in: --normalize is a new option.
20087         * bin/autoconf.in: Use it.
20089 2001-08-17  Akim Demaille  <akim@epita.fr>
20091         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
20092         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
20094 2001-08-16  Paul Eggert  <eggert@twinsun.com>
20096         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
20097         start, not at end.
20099 2001-08-15  Akim Demaille  <akim@epita.fr>
20101         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
20102         Use it.
20104 2001-08-15  Akim Demaille  <akim@epita.fr>
20106         * doc/autoconf.texi (pr): New index.
20107         (prindex, findex): Use, merge, and output them.
20108         (Environment Variable Index, Output Variable Index)
20109         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
20110         (Autotest Macro Index): Rename as...
20111         (Environment Variables, Output Variables,Preprocessor Symbols)
20112         (Autoconf Macros, M4 Macros, Autotest Macros): these.
20113         * doc/install.texi: Use @command.
20114         (Environment Variables): Rename as...
20115         (Defining Variables): this.
20117 2001-08-15  Akim Demaille  <akim@epita.fr>
20119         * doc/autoconf.texi (Function Portability): sprintf's return
20120         value.
20121         From Kevin Ryde.
20123 2001-08-15  Akim Demaille  <akim@epita.fr>
20125         * Makefile.maint (CVS): New.
20126         (local-check): Run changelog-check. last.
20127         (alpha): Don't depend upon local-check, since...
20128         (cvs-dist): depends upon it.
20130 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
20132         * tests/Makefile.am: Use a clean-local rule to remove
20133         autom4te.cache (it's a directory, not a file.
20134         * Makefile.am: Ditto (but maintainer-clean-local).
20136 2001-08-15  Akim Demaille  <akim@epita.fr>
20138         * bin/autom4te.in (@m4_warning): New.
20139         (&handle_m4): Use it.
20140         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
20141         warnings are issued at each run.
20142         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
20143         is in the src tree.
20145 2001-08-15  Akim Demaille  <akim@epita.fr>
20147         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
20148         don't waste time running `autoupdate --version' works.
20149         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
20151 2001-08-13  Akim Demaille  <akim@epita.fr>
20153         * doc/autoconf.texi (ma): Rename this index as...
20154         (ac): this.
20156 2001-08-13  Akim Demaille  <akim@epita.fr>
20158         * Makefile.am: Remove dead code and dead comments.
20159         (pdf, html): New targets.
20160         * doc/autoconf.texi (Using Autotest): New chapter.
20161         * doc/Makefile.am (pdf): New targets.
20162         (CLEANFILES): Adjust.
20164 2001-08-13  Akim Demaille  <akim@epita.fr>
20166         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
20167         duration of the test suite.
20169 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
20171         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
20172         endianness for comparison instead of relying on AT_CHECK_ENV.
20174 2001-08-11  Paul Eggert  <eggert@twinsun.com>
20176         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
20177         to the INSTALL file.
20179 2001-08-11  Paul Eggert  <eggert@twinsun.com>
20181         * NEWS: The autoconf manual now is distributed under the terms
20182         of the GNU Free Documentation License.
20184         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
20185         Add an appendix "Copying This Manual" for the FDL.
20187         * doc/fdl.texi: New file, from
20188         <http://www.gnu.org/licenses/fdl.texi>.
20190         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
20192 2001-08-10  Paul Eggert  <eggert@twinsun.com>
20194         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
20195         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
20196         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
20197         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
20198         m4/sanity.m4, tests/README, tests/aclocal.m4,
20199         tests/atspecific.m4, tests/base.at, tests/compile.at,
20200         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
20201         tests/semantics.at, tests/suite.at, tests/tools.at,
20202         tests/torture.at: Add copyright notice.
20204         * tests/mktests.sh: Update year in copyright notice.
20206 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
20208         * tests/semantics.at (AC_C_BIGENDIAN): New test.
20210 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
20212         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
20213         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
20214         * doc/autoconf.texi (C Compiler Characteristics): Update
20215         documentation for AC_C_BIGENDIAN.
20217 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
20219         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
20220         magic values from an object file when cross-compiling.
20221         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
20223 2001-08-10  Akim Demaille  <akim@epita.fr>
20225         * bin/autom4te.in (&handle_output): Don't use `grep' with side
20226         effects.
20227         Suggested by Russ Allbery.
20229 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
20231         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
20232         current $prefix to the sub-configures.
20234 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
20236         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
20237         extension (needed on BeOS).  Reported by Guido van Rossum.
20239 2001-08-09  Akim Demaille  <akim@epita.fr>
20241         * bin/autom4te.in ($icache): Load it only if older than autom4te.
20243 2001-08-07  Akim Demaille  <akim@epita.fr>
20245         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
20246         removed.
20247         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
20248         No need to remove the files before and after the each test, before
20249         each test and at the end of the suite is enough.
20250         Display only the children `times', not the shell's.
20251         If the test failed or was skipped, at-times is not available.
20253 2001-08-07  Akim Demaille  <akim@epita.fr>
20255         Always produce testsuite.log, including when there are no
20256         failures.  This helps getting information on skipped tests, and
20257         duration of the tests.  Err, implement the latter btw.
20259         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
20260         Dump information on the first run of each test.
20261         (AT_CLEANUP): Create `at-times' containing the duration of the
20262         test group.
20264 2001-08-07  Akim Demaille  <akim@epita.fr>
20266         The use of `dumpstat' revealed that `len' was used although it
20267         should not.  m4_text_wrap was using it, but in the Autoconf world
20268         where it is legal.  Hence (i) test M4sh in its own world, not
20269         Autoconf's, and (ii), ahem, fix the bug :)
20271         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
20272         does not like `' instead of [].
20273         (AT_INIT): Forbid `^_?AT_'.
20274         And don't output such tokens.
20275         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
20276         `script.as', and `autom4te.cache'.
20277         Remove `empty' and `macro' which are no longer used.
20278         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
20279         * tests/m4sugar.at: Use it.
20280         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
20282 2001-08-07  Akim Demaille  <akim@epita.fr>
20284         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
20286 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
20288         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
20290 2001-08-04  Akim Demaille  <akim@epita.fr>
20292         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
20293         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
20294         AC_TRY_LINK.
20295         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
20296         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
20297         (AC_F77_MAIN): Likewise.
20299 2001-08-04  Akim Demaille  <akim@epita.fr>
20301         Don't rely on M4sugar outputting the patterns in files, since we
20302         might process the output _without_ running m4, hence without these
20303         files.
20305         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
20306         * bin/autom4te.in (@Request::includes): Remove, unused.
20307         (@Request::source): Rename as...
20308         (@Request::input): this.
20309         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
20310         (&handle_output): Fetch the patterns from the traces.
20311         `$forbidden' and `$allowed' are constant: use m//o.
20312         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
20313         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
20315 2001-08-04  Akim Demaille  <akim@epita.fr>
20317         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
20318         autoconf', i.e., in addition to caching traces, cache the output.
20320         * bin/autom4te.in (Request::cache): Rename as...
20321         (Request::id): this.
20322         ($cache, $icache, $tcache, $ocache): New.
20323         (&handle_m4): Save M4 output in the cache instead of $tmp.
20324         (&handle_output): Adjust.
20325         (&up_to_date_p): Check that the output cache is up to date too.
20326         (top level): Run `&handle_m4' iff force or the cache is invalid.
20327         Run `&handle_output' if the output cache is more recent.
20329 2001-08-04  Akim Demaille  <akim@epita.fr>
20331         * bin/autom4te.in ($force): New.
20332         (&parse_args, &print_usage): -f, --force is a new option.
20333         (&handle_output): CPP directives might have spaces after `#'.
20334         (&parse_args): The first file only can be frozen.
20336 2001-08-04  Akim Demaille  <akim@epita.fr>
20338         Don't let autom4te compute the `include' traces several times:
20339         first check that the trace cache file is up to date, and then
20340         compare its timestamp with that of the output.
20342         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
20343         the preamble.  Don't require 5.005 as Autom4te::General does it,
20344         and better yet (use `use', not `require'!).
20345         * lib/Autom4te/Struct.pm: Rename the last occurrences of
20346         Class::Struct as Autom4te::Struct.
20347         * lib/Autom4te/General.pm (File::stat): Use it.
20348         (&mtime): New, export it.
20349         * bin/autom4te.in: Use it.
20350         Declare `$req' is invalid if it is outdated.
20351         Don't declare it valid before saving it if something went wrong.
20353 2001-08-04  Akim Demaille  <akim@epita.fr>
20355         Autom4te shall not encode Autoconf data, and preselecting traces
20356         must be proposed to the users.
20358         * bin/autom4te.in (@required_trace): Remove.
20359         (@preselect): New.
20360         (&parse_args, &print_usage): -p, --preselect is a new option.
20361         (&up_to_date_p): Adjust.
20362         * bin/autoconf.in: Preselect some Autoconf macros.
20364 2001-08-04  Akim Demaille  <akim@epita.fr>
20366         * tests/tools.at (autoconf --trace: user macros): Check traces on
20367         macros invoked without arguments, and macros invoked with multiple
20368         lines arguments.
20370 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
20372         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
20373         arguments.
20375 2001-08-03  Akim Demaille  <akim@epita.fr>
20377         * bin/autoconf.in ($@): Work around the usual sh bug.
20378         From Nicolas Joly.
20380 2001-08-03  Akim Demaille  <akim@epita.fr>
20382         Clean up the handling of the M4 builtins tracing exception.
20384         * bin/autom4te.in (Request::request): Don't complete M4 builtins
20385         trace requests.
20386         (@m4_builtins): Rename as...
20387         (@m4_builtin): this.
20388         (%m4_builtin_alternate_name): New.
20389         (&parse_args): Complete the trace requests with alternate names.
20390         (&handle_traces): Hence no longer do it here.
20391         (&trace_requests): Remove, unused.
20393 2001-08-03  Akim Demaille  <akim@epita.fr>
20395         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
20396         m4_if, and m4_wrap.
20398 2001-08-03  Akim Demaille  <akim@epita.fr>
20400         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
20401         (m4_divert_pop): Dump the whole diversion stack when a diversion
20402         mismatch happens.
20403         * bin/autom4te.in (&handle_output): Remember of the first
20404         occurrence of a possibly undefined macro, not the last.
20405         Complain about the possibly undefined macros in the same order as
20406         the appear in the output.
20407         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
20408         * tests/tools.at (autoconf: forbidden tokens, basic)
20409         (autoconf: forbidden tokens, exceptions): No longer sort
20410         autoconf's stderr, as it is now deterministic.
20411         Check that `dnl' is caught.
20413 2001-08-01  Akim Demaille  <akim@epita.fr>
20415         * configure.ac: Bump to 2.52c.
20417 2001-08-01  Akim Demaille  <akim@epita.fr>
20419         Version 2.52b.
20421         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
20423 2001-08-01  Akim Demaille  <akim@epita.fr>
20425         Version 2.52a.
20427 2001-08-01  Akim Demaille  <akim@epita.fr>
20429         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
20430         `die'.
20431         (&END): New.
20432         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
20433         `END', as `Autom4te::General::END' will be triggered.
20434         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
20435         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
20436         system to run `mv', `rm', and `cmp'.
20438 2001-08-01  Akim Demaille  <akim@epita.fr>
20440         * lib/Autom4te/General.pm (&unique): New.
20441         * bin/autoscan.in (&output): Use it to issue trace requests once.
20443 2001-08-01  Akim Demaille  <akim@epita.fr>
20445         * lib/Autom4te/General.pm: New.
20446         * bin/autom4te.in (Autom4te::General): Use it.
20447         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
20448         (&find_configure_ac, &find_slave): Remove.
20449         * bin/autoscan.in: Likewise.
20450         * bin/autoupdate.in: Likewise.
20452 2001-08-01  Akim Demaille  <akim@epita.fr>
20454         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
20455         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
20456         * bin: here, new directory.
20457         * lib/Autoconf: Rename as...
20458         * lib/Autom4te: this, to please case insensitive junkie OSes.
20460 2001-08-01  Akim Demaille  <akim@epita.fr>
20462         * autom4te.in ($m4): Handle the --nesting-limit.
20463         * autoconf.in (M4): Remove.
20465 2001-08-01  Akim Demaille  <akim@epita.fr>
20467         * autoconf.in ($AWK): Remove, no longer used.
20468         * test/tools.at: Use AT_CHECK_AUTOCONF.
20469         (AWK portability): Remove, for autoconf no longer uses AWK.
20470         (Syntax of the Perl scripts): New.
20471         * configure.ac: autoconf no longer needs an AWK with a good
20472         regexp engine.
20473         Use a static test on AC_PACKAGE_VERSION.
20474         * autom4te.in (&up_to_date_p): Output depends on the arguments.
20475         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
20476         * tests/atconfig.in (PERL): New.
20478 2001-08-01  Akim Demaille  <akim@epita.fr>
20480         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
20481         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
20482         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
20483         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
20484         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
20485         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
20486         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
20487         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
20488         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
20489         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
20490         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
20491         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
20492         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
20493         * lib/autoconf/c.m4: here, new file.
20495         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
20496         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
20497         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
20498         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
20499         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
20500         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
20501         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
20502         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
20503         (AC_F77_FUNC): Move to...
20504         * lib/autoconf/fortran.m4: here, new file.
20506 2001-08-01  Akim Demaille  <akim@epita.fr>
20508         * acfunctions.m4: Rename as...
20509         * lib/autoconf/functions.m4: this.
20510         * acgeneral.m4: Rename as...
20511         * lib/autoconf/general.m4: this.
20512         * acheaders.m4: Rename as...
20513         * lib/autoconf/headers.m4: this.
20514         * aclang.m4: Rename as...
20515         * lib/autoconf/lang.m4: this.
20516         * acoldnames.m4: Rename as...
20517         * lib/autoconf/oldnames.m4: this.
20518         * acspecific.m4: Rename as...
20519         * lib/autoconf/specific.m4: this.
20520         * actypes.m4: Rename as...
20521         * lib/autoconf/types.m4: this.
20522         * autoconf.m4: Rename as...
20523         * lib/autoconf/autoconf.m4: this.
20525         * m4sugar.m4: Rename as...
20526         * lib/m4sugar/m4sugar.m4: this.
20527         * m4sh.m4: Rename as...
20528         * lib/m4sugar/m4sh.m4: this.
20530         * tests/atgeneral.m4: Rename as...
20531         * lib/autotest/general.m4: this.
20533         * acfunctions: Rename as...
20534         * lib/autoscan/functions: this.
20535         * acheaders: Rename as...
20536         * lib/autoscan/headers: this.
20537         * acidentifiers: Rename as...
20538         * lib/autoscan/identifiers: this.
20539         * aclibraries: Rename as...
20540         * lib/autoscan/libraries: this.
20541         * acmakevars: Rename as...
20542         * lib/autoscan/makevars: this.
20543         * acprograms: Rename as...
20544         * lib/autoscan/programs: this.
20546 2001-08-01  Akim Demaille  <akim@epita.fr>
20548         * doc/autoconf.texi: Moving/deleting open files is not portable.
20549         Portability issues for `.' (source), and more information about sed.
20551 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
20553         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
20554         which has a special meaning and is not a reference to libibmil.a.
20555         Reported by Matteo Frigo.
20557 2001-07-25  Pavel Roskin  <proski@gnu.org>
20559         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
20560         output.
20562 2001-07-25  Akim Demaille  <akim@epita.fr>
20564         * autoconf.in: Try to define the variables before using them.
20565         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
20566         instead of `$perllibdir'.
20567         * tests/atconfig.in ($autom4te_perllibdir): Export it.
20569 2001-07-25  Akim Demaille  <akim@epita.fr>
20571         * autoconf.in (ac_LF_and_DOT): Remove, unused.
20573 2001-07-24  Akim Demaille  <akim@epita.fr>
20575         Let autoconf use autom4te for traces.
20577         * autoconf.in ($task, task trace): Remove, merely pass --trace to
20578         autom4te.
20579         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
20580         (Because I found no way for autom4te to accept `-').
20581         * autom4te.in (&Request::request): Beware of M4 builtins.
20582         (END): Don't try to remove the content of an empty dir.
20583         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
20584         (&handle_output): Set a default value to `$forbidden'.
20585         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
20586         ($autoconf): Pass --debug and --verbose.
20587         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
20588         cache.
20590 2001-07-24  Akim Demaille  <akim@epita.fr>
20592         Let autoconf use autom4te to create configure.
20594         * autoconf.in ($automate): New var.
20595         (task script): Use autom4te.
20596         * autom4te.in (File::Spec): Use it.
20597         (&find_file): New.
20598         (&parse_args): --warning is -W, not -w.
20599         Find the top level files.
20600         (&handle_m4): Pass the warnings flags.
20601         Don't report verbosely m4's failures, unless requested.
20602         (&handle_output): Don't complain for forbidden tokens in comments.
20603         Be sure to report all the forbidden tokens within a single line.
20604         (&trace_format_to_m4): Preserve `$_'.
20605         (&handle_traces): Sort the output macros.
20606         (&up_to_date_p): Find the files before trying to get its time stamp.
20608 2001-07-24  Akim Demaille  <akim@epita.fr>
20610         * Makefile.am: Ship, build and install Autom4te.
20611         (SUBDIRS): Add lib.
20612         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
20613         * configure.in: Require Perl.
20614         * man/autom4te.in: New.
20616 2001-07-19  Paul Eggert  <eggert@twinsun.com>
20618         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
20619         example, rather than (exit 1); exit (which isn't portable).
20621 2001-07-18  Akim Demaille  <akim@epita.fr>
20623         Version 2.52.
20625 2001-07-18  Akim Demaille  <akim@epita.fr>
20627         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
20628         was run, while they are needed also when it is expanded.
20629         Reported by Nicolas Joly.
20631         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
20632         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
20633         AC_F77_DUMMY_MAIN being expanded.
20635 2001-07-18  Akim Demaille  <akim@epita.fr>
20637         * configure.in: Bump to 2.51a.
20639 2001-07-17  Akim Demaille  <akim@epita.fr>
20641         Version 2.51.
20643 2001-07-17  Akim Demaille  <akim@epita.fr>
20645         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
20646         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
20648 2001-07-17  Akim Demaille  <akim@epita.fr>
20650         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
20651         used.  Well, then use the prototypes when you can, and runtime as
20652         a last resort.
20653         Reported by Artur Frysiak
20655         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
20656         (AC_FUNC_GETPGRP): Use it.
20657         First try to compile with 0-ary or 1-ary calls.
20659 2001-07-17  Akim Demaille  <akim@epita.fr>
20661         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
20662         replacement type.
20663         From Paul Eggert.
20665 2001-07-17  Akim Demaille  <akim@epita.fr>
20667         * Makefile.maint: Sync. with cppi 1.10.
20669 2001-07-17  Akim Demaille  <akim@epita.fr>
20671         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
20672         AC_F77_DUMMY_MAIN has been run.
20673         From Pavel Roskin and Steven G. Johnson.
20675 2001-07-17  Akim Demaille  <akim@epita.fr>
20677         * configure.in: Rename as...
20678         * configure.ac: this.
20680 2001-07-17  Akim Demaille  <akim@epita.fr>
20682         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
20683         rules.
20684         From Marc Espie.
20685         * Makefile.maint (release-archive-dir): Rename as...
20686         (release_archive_dir): this, so that it can be specialized in
20687         Makefile.
20689 2001-07-14  Akim Demaille  <akim@epita.fr>
20691         * configure.in: Bump to 2.50d.
20693 2001-07-14  Akim Demaille  <akim@epita.fr>
20695         Version 2.50c.
20696         * Makefile.maint (alpha): Typo.
20698 2001-07-14  Akim Demaille  <akim@epita.fr>
20700         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
20702 2001-07-14  Akim Demaille  <akim@epita.fr>
20704         * config/config.guess, config/config.sub, config/texinfo.tex
20705         * doc/standards.texi, doc/make-stds.texi: Update.
20707 2001-07-14  Akim Demaille  <akim@epita.fr>
20709         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
20711 2001-07-14  Akim Demaille  <akim@epita.fr>
20713         * Makefile.maint (maintainer-check): Rename as...
20714         (maintainer-distcheck): this.
20715         (changelog-check, static-check): New.
20716         Use them.
20718 2001-07-14  Kevin Ryde  <user42@zip.com.au>
20720         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
20721         for CXX is g++, not gcc.
20723 2001-07-14  Akim Demaille  <akim@epita.fr>
20725         * doc/autoconf.texi (Files): New subsection.
20727 2001-07-14  Akim Demaille  <akim@epita.fr>
20729         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
20730         of...
20731         (Generic Compiler Characteristics): this.
20732         (C++ Compiler): New subsection.
20734 2001-07-14  Akim Demaille  <akim@epita.fr>
20736         * autoscan.in: Use IO::File.
20737         Adjust all the routines to use it.
20738         ($log): New file (autoscan.log).
20739         (output): Dump detailed logs into $log, and a shortened version to
20740         stderr.
20741         (&scan_makefile): Refine the regexp catching tokens in the code.
20742         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
20743         and the `configure.ac' checking feature.
20745 2001-07-12  Akim Demaille  <akim@epita.fr>
20747         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
20748         Reported by Michael Elizabeth Chastain.
20750         * autoconf.in: Refuse such AWK.
20751         * configure.in: Likewise.
20752         * Makefile.am (acversion.m4): Do not use move-if-change this file
20753         has dependencies.
20754         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
20756 2001-07-10  Jens Petersen  <petersen@redhat.com>
20758         * autoscan.in (&scan_makefile): Improve programs regexp to parse
20759         things like "g++", "file.c" and "some-conf" as tokens.
20760         (&scan_file): Match C++ files extensions.
20761         If the filename extension is C++ then ask for c++.
20763 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
20765         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
20766         AC_TRY_LINK_FUNC, to check whether defining a dummy
20767         main-like routine is needed for linking with F77 libs.
20769 2001-07-05  Pavel Roskin  <proski@gnu.org>
20771         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
20772         after using break.
20773         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
20774         linking.
20776 2001-07-05  Akim Demaille  <akim@epita.fr>
20778         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
20779         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
20780         Makes' lives.
20781         Reported by Nicolas Joly.
20783 2001-07-04  Akim Demaille  <akim@epita.fr>
20785         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
20786         up.
20787         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
20788         warnings from compilers.
20789         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
20790         for all the compilers, not only GNU.  Hence move from here...
20791         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
20793 2001-07-04  Akim Demaille  <akim@epita.fr>
20795         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
20796         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
20797         AC_COMPILE_IFELSE.
20799 2001-07-04  Akim Demaille  <akim@epita.fr>
20801         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
20802         the ``strings.h'' change claimed below.
20804 2001-07-04  Akim Demaille  <akim@epita.fr>
20806         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
20808 2001-07-04  Akim Demaille  <akim@epita.fr>
20810         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
20811         strings.h if usable with string.h.
20812         Suggested by Paul Eggert.
20814 2001-07-04  Akim Demaille  <akim@epita.fr>
20816         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
20817         From Jens Petersen.
20819 2001-07-03  Akim Demaille  <akim@epita.fr>
20821         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
20822         etc. in the log.
20824 2001-07-03  Akim Demaille  <akim@epita.fr>
20826         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
20827         compiler, not the preprocessor.
20828         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
20829         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
20830         the right thing.
20831         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
20832         earlier if there are.
20834 2001-07-03  Akim Demaille  <akim@epita.fr>
20836         * autoscan.in ($initfile): Remove.
20837         (&find_file): Rename as...
20838         (&scan_file): this.
20839         Immediately scan the current file, instead of gathering them, and
20840         later having them handled by &scan_files.
20841         (&scan_files): Merely invoke Find::File.
20842         Adjust.
20844 2001-07-02  Akim Demaille  <akim@epita.fr>
20846         * autoscan.in: Formatting changes, matching the invocation order.
20847         (File::Find): Use it instead of Perl 4's `find.pl'.
20848         (&wanted): Rename as...
20849         (&find_file): this.
20851 2001-07-01  Pavel Roskin  <proski@gnu.org>
20853         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
20854         break in the argument to AC_TRY_LINK_FUNC.
20855         (AC_F77_MAIN): Remove conftest* after using break in the
20856         argument to AC_TRY_LINK.
20858 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
20860         Add alternate 'main' routine detection for linking C/C++ with Fortran,
20861         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
20863         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
20864         dummy alternate main is required even if the user provides her own
20865         'main'.
20866         (AC_F77_MAIN): New macro to detect whether it is possible to
20867         provide an alternate 'main' function name, using the 'main' from
20868         the Fortran libraries.
20869         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
20870         cross-language link tests can be performed successfully.
20871         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
20872         after $LIBS, for consistency; this should be the general rule since
20873         the user may want to link to Fortran libraries that require $FLIBS.
20874         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
20876 2001-06-29  Pavel Roskin  <proski@gnu.org>
20878         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
20879         at-stdout and at-stderr instead of removing the newline
20880         from the echo output, which is not guaranteed to work.
20882 2001-06-28  Jens Petersen  <petersen@redhat.com>
20884         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
20885         confdefs.h when non-zero.
20887 2001-06-28  Akim Demaille  <akim@epita.fr>
20889         * configure.in: Bump to 2.50c.
20891 2001-06-26  Akim Demaille  <akim@epita.fr>
20893         Version 2.50b.
20895 2001-06-26  Akim Demaille  <akim@epita.fr>
20897         Version 2.50a.
20899 2001-06-25  Pavel Roskin  <proski@gnu.org>
20901         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
20902         argument, AUTOCONF-FLAGS.
20903         * tests/mktests.sh (update_exclude_list): Add
20904         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
20905         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
20906         AC_FUNC_WAIT3 with "-W no-obsolete".
20908 2001-06-25  Akim Demaille  <akim@epita.fr>
20910         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
20912 2001-06-25  Akim Demaille  <akim@epita.fr>
20914         * autoscan.in (%macro): Now maps from word to list of macros.
20915         (&init_tables): Die when a word which is already handled by
20916         explicit macros is mapped to the default macro.
20917         (&print_unique): Remove, inlined in...
20918         (&output_kind): here.
20919         (File::Basename): Use it.
20920         (&output): Sort the CONFIG_FILES.
20921         * acheaders: Normalize.
20922         * acfunctions: Likewise.
20924 2001-06-25  Akim Demaille  <akim@epita.fr>
20926         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
20927         characteristics in the logs.
20928         Suggested by Mo DeJong.
20930 2001-06-24  Akim Demaille  <akim@epita.fr>
20932         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
20933         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
20934         * doc/autoconf.texi (Autoconf 2.13): New section.
20936 2001-06-24  Akim Demaille  <akim@epita.fr>
20938         * autoconf.in (Task traces): Separate the error messages from the
20939         traces to improve robustness.
20941 2001-06-23  Akim Demaille  <akim@epita.fr>
20943         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
20944         three as failures are unlikely, and speed matters.
20946 2001-06-23  Akim Demaille  <akim@epita.fr>
20948         * doc/autoconf.texi (Redefined M4 Macros): New.
20950 2001-06-23  Akim Demaille  <akim@epita.fr>
20952         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
20953         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
20954         5.3.
20956 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
20958         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
20959         config.status targets to after the evaluation of the INIT-CMDS.
20960         Double quote config.status targets (used to be single quoted).
20962 2001-06-23  Akim Demaille  <akim@epita.fr>
20964         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
20965         Check the content of the created file.
20966         Check the ./config.status command line invocation.
20968 2001-06-23  Akim Demaille  <akim@epita.fr>
20970         * tests/foreign.at (Libtool): Reject prehistoric versions.
20972 2001-06-23  Akim Demaille  <akim@epita.fr>
20974         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
20975         preexisting files matching a.*.
20977 2001-06-23  Akim Demaille  <akim@epita.fr>
20979         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
20980         stderr.
20981         * doc/autoconf.texi (AC_ARG_VAR): Update.
20983 2001-06-21  Akim Demaille  <akim@epita.fr>
20985         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
20986         precious variables have changed.
20987         * tests/torture.at (AC_ARG_VAR): Adjust.
20989 2001-06-21  Akim Demaille  <akim@epita.fr>
20991         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
20992         but some sed choke on multiple `;', and other tools (e.g.,
20993         Automake), include the separator themselves.
20995         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
20997 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
20999         * doc/autoconf.texi (Functions Portability): Rename as...
21000         (Function Portability): this.
21001         (Function Portability): Document potential problems with unlink().
21003 2001-06-19  Paul Eggert  <eggert@twinsun.com>
21005         * NEWS, doc/autoconf.texi: Document quadrigraphs.
21007 2001-06-18  Akim Demaille  <akim@epita.fr>
21009         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
21011 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
21013         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
21014         (_AC_FUNC_VFORK): this.
21015         Remove AC_DEFINEs and don't guess cross-compilation values.
21016         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
21017         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
21018         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
21019         vfork doesn't work.
21020         Guess values if cross-compiling, but warn.
21021         * acfunctions: Add AC_FUNC_FORK.
21022         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
21023         and vfork appropriately.
21025 2001-06-18  Akim Demaille  <akim@epita.fr>
21027         * doc/autoconf.texi (Functions Portability): New section.
21029 2001-06-18  Akim Demaille  <akim@epita.fr>
21031         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
21032         in $M4.
21033         Suggested by Andreas Schwab.
21035 2001-06-18  Akim Demaille  <akim@epita.fr>
21037         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
21038         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
21039         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
21040         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
21041         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
21042         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
21043         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
21044         the converse).
21046 2001-06-18  Akim Demaille  <akim@epita.fr>
21048         * doc/autoconf.texi (ms): New index.
21049         (Macro Index): Rename as...
21050         (Autoconf Macro Index): this.
21051         (M4 Macro Index): New appendix.
21052         (Programming in M4): New chapter.
21053         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
21054         (Quoting): Rename as...
21055         (M$ Quotation): this.
21056         Be part of `Programming in M4).
21058 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
21060         * tests/torture.at (AC_ARG_VAR): Set variables and export them
21061         in separate statements for compatibility with Tru64 v5.1.
21063 2001-06-17  Akim Demaille  <akim@epita.fr>
21065         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
21066         current values of the precious variables, not the previously
21067         cached values.
21068         Pass precious variables which are set to config.status.
21069         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
21070         * tests/torture.at (AC_ARG_VAR): New.
21072 2001-06-15  Paul Eggert  <eggert@twinsun.com>
21074         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
21075         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
21076         and explain why and how to replace them.
21077         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
21078         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
21080 2001-06-15  Akim Demaille  <akim@epita.fr>
21082         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
21083         Reported by Bruno Haible.
21085         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
21086          (_AC_ARG_VAR_PRECIOUS): to here.
21088 2001-06-15  Pavel Roskin  <proski@gnu.org>
21090         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
21091         an unused pointer use cast to this type and `if' statement to
21092         avoid warnings from the compiler.
21093         (AC_HEADER_TIME): Likewise.
21094         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
21095         in `if' statement to avoid warnings from the compiler. Declare
21096         ac_aggr static to avoid the need to initialize it.
21098 2001-06-14  Akim Demaille  <akim@epita.fr>
21100         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
21101         Macros'.
21103 2001-06-13  Akim Demaille  <akim@epita.fr>
21105         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
21106         Suggested by Alexander Mai.
21108 2001-06-13  Akim Demaille  <akim@epita.fr>
21110         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
21111         sys/types.h and sys/stat.h, and check for them.
21113 2001-06-13  Akim Demaille  <akim@epita.fr>
21115         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
21116         INCLUDES.
21118 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
21120         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
21121         succeeds and only try adding libdnet upon a failure.
21123 2001-06-12  Akim Demaille  <akim@epita.fr>
21125         * autoscan.in (&output_kind): Output the comment only if it exists.
21126         (%kind_comment): Add entry for `programs'.
21127         (&output_programs): Use &output_kind.
21128         (&output_functions, &output_identifiers, &output_headers)
21129         (&output_programs): Inline, and remove.
21131 2001-06-12  Akim Demaille  <akim@epita.fr>
21133         * autoscan.in (%kind_comment): New.
21134         (output_kind): New.
21135         (output_functions, output_identifiers, output_headers): Use it.
21137 2001-06-12  Akim Demaille  <akim@epita.fr>
21139         * autoscan.in (&print_unique): Take `$kind' and `$word' as
21140         arguments, to factor indirections into `%macro' and `%used'.
21141         (%generic_macro): Fix a typo.
21143 2001-06-12  Akim Demaille  <akim@epita.fr>
21145         * aclibraries: New.
21146         * autoscan.in (@kinds): Add `libraries'.
21147         Use `@kinds' instead of hard coded lists.
21148         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
21149         Remove, replaced by...
21150         (%used): this.
21152 2001-06-12  Akim Demaille  <akim@epita.fr>
21154         * autoscan.in (%functions_macros %headers_macros)
21155         (%identifiers_macros %programs_macros %makevars_macros): Remove,
21156         replaced by...
21157         (%macro): New.
21159 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
21161         * aclang.m4 (AC_NO_EXECUTABLES): Override
21162         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
21164 2001-06-11  Akim Demaille  <akim@epita.fr>
21166         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
21167         trailing new line.
21168         Reported by Andreas Schwab.
21170 2001-06-11  Akim Demaille  <akim@epita.fr>
21172         * Makefile.am, Makefile.maint: Typos.
21174 2001-06-09  Akim Demaille  <akim@epita.fr>
21176         * doc/autoconf.texi (Here-Documents): New section, gathering
21177         documentation about here-documents.
21178         Use `href', not `uref', and other changes.
21180 2001-06-09  Akim Demaille  <akim@epita.fr>
21182         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
21183         chapter.
21185 2001-06-09  Akim Demaille  <akim@epita.fr>
21187         * doc/autoconf.texi (Limitations of Builtins): Complete the
21188         description of the here-docs penalties with Alexandre Oliva's
21189         explanations.
21191 2001-06-01  Paul Eggert  <eggert@twinsun.com>
21193         * doc/autoconf.texi: Talk about here documents and speedups.
21194         Do not use "echo" on arbitrary strings.
21195         Spell "here-documents" consistently with the standard.
21197 2001-06-09  Akim Demaille  <akim@epita.fr>
21199         * doc/autoconf.texi (Concept Index): Introduce it.
21200         Regenerate the menus.
21202 2001-06-09  Akim Demaille  <akim@epita.fr>
21204         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
21205         * config/prev-version.txt: New.
21206         * config/move-if-change: New, for GNU libc.
21208 2001-06-06  Pavel Roskin  <proski@gnu.org>
21210         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
21212 2001-06-06  Akim Demaille  <akim@epita.fr>
21214         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
21215         properly when $1 is not a literal.
21216         Fixes PR Autoconf/187, reported by Bram Moolenaar.
21218 2001-06-06  Akim Demaille  <akim@epita.fr>
21220         Invoking AC_COPYRIGHT before AC_INIT fails.
21222         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
21223         * acgeneral.m4 (_m4_divert(VERSION_FSF))
21224         (_m4_divert(VERSION_USER)): New.
21225         (AC_COPYRIGHT): $2 is the diversion to use.
21226         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
21227         (AC_INIT): Remove dead comments as now it's commutative.
21229 2001-06-06  Akim Demaille  <akim@epita.fr>
21231         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
21232         PR autoconf/187.
21234 2001-06-05  Akim Demaille  <akim@epita.fr>
21236         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
21237         can be empty.
21238         `*dir' variables cannot be NONE.
21239         Reported by Mark Kettenis.
21241 2001-06-05  Paul Eggert  <eggert@twinsun.com>
21243         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
21245 2001-06-04  Akim Demaille  <akim@epita.fr>
21247         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
21248         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
21249         (AC_TR_SH): Move as...
21250         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
21251         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
21252         (AS_TR_SH): these.
21253         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
21254         (_AS_TR_SH_PREPARE): New.
21255         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
21256         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
21258 2001-06-02  Akim Demaille  <akim@epita.fr>
21260         * Makefile.am (.m4.m4f): Pass the options first.
21261         Fixes PR autoconf/182.
21263 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
21265         GNU getopt, when POSIXLY_CORRECT does not permute options and
21266         arguments.  So pass the options first.
21267         Fixes PR autoconf/184.
21269         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
21270         (run_m4): Remove files.
21271         (run_m4f): Remove.
21272         Update remainder of script to use them.
21273         (for warning in): Do not use a literal comma as it will not be
21274         split by IFS.
21276 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
21278         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
21279         Fortran compilers to check.
21280         (_AC_PROG_F77_V): Add '-###' as a possible option to print
21281         information on library and object files.
21282         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
21283         to check.
21285 2001-06-02  Akim Demaille  <akim@epita.fr>
21287         * autom4te.in (Request::@request): Declare with `vars', not `my',
21288         as it prevents updates via `do FILENAME'.
21290 2001-06-02  Akim Demaille  <akim@epita.fr>
21292         * configure.in (standards_texi): Remove, dead code.
21294 2001-06-02  Akim Demaille  <akim@epita.fr>
21296         * autom4te.in: New.
21298 2001-06-02  Pavel Roskin  <proski@gnu.org>
21300         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
21301         for signals other than 0 - exit with code 1.
21302         * m4sh.m4 (AS_TMPDIR): Likewise.
21303         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
21304         * autoheader.in: Likewise.
21305         * autoreconf.in: Likewise.
21306         * tests/torture.at (Signal handling): New test for the above.
21308 2001-06-01  Akim Demaille  <akim@epita.fr>
21310         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
21311         message.
21313 2001-05-31  Akim Demaille  <akim@epita.fr>
21315         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
21316         Add copyright and comments.
21317         * acheaders: Add stdint.h.
21318         Suggested by Paul Eggert.
21320 2001-05-31  Akim Demaille  <akim@epita.fr>
21322         * atgeneral.m4 (AT_INIT): Use $SHELL.
21323         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
21325 2001-05-31  Akim Demaille  <akim@epita.fr>
21327         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21328         stdint.h.
21329         From Paul Eggert and Lars Hecking.
21331 2001-05-31  Akim Demaille  <akim@epita.fr>
21333         * tests/base.at: Adjust line numbers in error messages.
21335 2001-05-31  Akim Demaille  <akim@epita.fr>
21337         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
21338         to emit the bangshe line.
21339         Reported by David Carter.
21341 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
21343         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
21344         Fortran (95) compilers to check.
21346 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
21348         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
21349         Macro Archive URL.
21351 2001-05-23  Pavel Roskin  <proski@gnu.org>
21353         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
21354         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
21355         (AC_PROG_CXXCPP): Likewise.
21357 2001-05-22  Akim Demaille  <akim@epita.fr>
21359         * config: New directory.
21360         * configure.in: AC_CONFIG_AUX_DIR it.
21361         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
21363 2001-05-22  Akim Demaille  <akim@epita.fr>
21365         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
21366         * autoupdate.in: Specify the Emacs mode.
21367         * acversion.m4.in: Rename as...
21368         * acversion.m4: this.
21369         * tests/Makefile.am (CLEANFILES): More garbage.
21371 2001-05-22  Akim Demaille  <akim@epita.fr>
21373         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
21374         Rename as...
21375         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
21376         these.
21378 2001-05-21  Akim Demaille  <akim@epita.fr>
21380         * configure.in: Bump to 2.50a.
21383         -----
21385         Local Variables:
21386         coding: utf-8
21387         End:
21389         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
21390         2009, 2010 Free Software Foundation, Inc.
21392         This program is free software: you can redistribute it and/or
21393         modify it under the terms of the GNU General Public License as
21394         published by the Free Software Foundation, either version 3 of the
21395         License, or (at your option) any later version.
21397         This program is distributed in the hope that it will be useful,
21398         but WITHOUT ANY WARRANTY; without even the implied warranty of
21399         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21400         General Public License for more details.
21402         You should have received a copy of the GNU General Public License
21403         along with this program.  If not, see
21404         <http://www.gnu.org/licenses/>.