Improve corner case of m4_expand.
[autoconf.git] / ChangeLog
blobb0411e17f9bfab9d737b7c6607ea24bebdf8ee59
1 2007-10-23  Eric Blake  <ebb9@byu.net>
3         Improve corner case of m4_expand.
4         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
5         efficiently.
6         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
7         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
8         documentation.
10 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12         * doc/make-stds.texi: Update from gnulib.
14 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15         and Eric Blake  <ebb9@byu.net>
17         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
18         problem reported by Bruno Haible in
19         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
21 2007-10-22  Eric Blake  <ebb9@byu.net>
23         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
24         preprocessor.
26 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28         Don't check for bug in HP-UX 11.00 cpp.
29         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
30         Use -1ull rather than -1u, since that causes problems with gnulib; see
31         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35         * tests/autotest.at (Backquote command substitution)
36         (Multiline backquote command substitution)
37         (Parenthetical command substitution)
38         (Multiline parenthetical command substitution): Fix typos in
39         test names.
41 2007-10-21  Eric Blake  <ebb9@byu.net>
43         * configure: Regenerate.
45 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47         Fix config status generation with Tru64 ksh.
48         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
49         escaping of backslash in here-documents.
51         Fix `Deep Package' test failure on FreeBSD.
52         * tests/torture.at (Deep Package): Do not add `.' to $PATH
53         unnecessarily.  Do not try running `/bin/sh configure' with a
54         configure script to be found in $PATH, if the shell does not do
55         this resolution.  Fixes test failure on FreeBSD.
57         Fix config header generation with AIX awk.
58         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
59         script, use helper array D_is_set, as `" 0"' does not evaluate
60         to true for AIX awk.
62 2007-10-21  Eric Blake  <ebb9@byu.net>
64         * tests/autotest.at (Banners): Reinstate test, with typo
65         corrected.
67 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
70         <at_func_validate_ranges>: ... using this new function.
71         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
72         Test --list with ranges and keywords.
73         (Banners): Remove one now-failing test.
75 2007-10-20  Eric Blake  <ebb9@byu.net>
77         Fix testsuite --list subset.
78         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
79         back to spaces, before listing subset of tests.
80         Reported by Ralf Wildenhues.
82 2007-10-19  Eric Blake  <ebb9@byu.net>
84         s/parenthesis/parentheses/ where appropriate.
85         * doc/autoconf.texi: Fix typos.
86         * lib/m4sugar/m4sugar.m4: Likewise.
87         Reported by Ralf Wildenhues.
89         Document m4_expand limitation.
90         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
91         unbalanced parse.
92         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
93         (Writing Testsuites): Mention limitations inherited from
94         m4_expand.
96         Improve AT_BANNER handling.
97         * lib/autotest/general.m4 (BANNERS): New named diversion.
98         (TESTS_END): Diversion no longer used.
99         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
100         shell function, which prints only as needed, using an associative
101         array of banner text from a special diversion.
102         <PARSE_ARGS_END>: No longer need awk to find banners.
103         <TESTS>: Banners are no longer processed by main driver loop, so
104         we no longer need case statement.
105         (AT_BANNER): Rewrite to populate new diversion.
106         (AT_SETUP): Each test invokes its own banner.  No output is needed
107         to the TESTS diversion.
108         * doc/autoconf.texi (Writing Testsuites): Document slight
109         semantics change.
110         * tests/autotest.at (AT_BANNERS): Enhance test.
111         * NEWS: Document AT_BANNER.
113         Document and test AT_BANNER.
114         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
115         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
116         (AT_CHECK_BANNERS): New test.
118         Doc touchups.
119         * doc/autoconf.texi (Text processing Macros) <m4_strip>
120         <m4_text_wrap>: Clarify and fix typos.
122 2007-10-18  Eric Blake  <ebb9@byu.net>
124         Ignore `make dist' changelogs in testsuite.log.
125         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
126         directories matching AT_PACKAGE_TARNAME-*.
128         Fix AT_TESTED, AT_KEYWORDS.
129         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
130         occurs in string, as duplicates may be added.
131         (_m4_append_uniq): New helper macro.
132         (m4_append_uniq_w): New macro.
133         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
134         duplication bug by using new macro.
135         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
136         programs with stdin redirected, so programs that don't
137         understand --version won't try to behave interactively.
138         * tests/autotest.at (Tested programs): Catch this bug.
139         * tests/m4sugar.at (m4@&t@_append): Test new macro.
140         * tests/local.at (AT_TESTED): Add m4, perl.
141         * doc/autoconf.texi (Text processing Macros): Document
142         m4_append_uniq_w, and update text on m4_append.
143         * NEWS: Document the addition.
145 2007-10-17  Eric Blake  <ebb9@byu.net>
147         Function cleanup.
148         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
149         from m4 macro...
150         (AT_INIT) <at_func_create_debugging_script>: ...to shell
151         function.
152         (AT_INIT): Defer function declarations until after --help,
153         --version.  Format functions consistently, trying to fit in 80
154         columns.
155         (TEST_FUNCTIONS): Based on recent changes, rename...
156         (TEST_GROUPS): ...to this.
158         Reject FreeBSD m4.
159         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
160         * configure: Regenerate.
161         Reported by Bob Friesenhahn.
163         Test recent additions.
164         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
165         (m4@&t_max and m4@&t_min): New tests.
166         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
167         description.
169 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
171         * TODO: multiline args in config files and headers work now.
173         Autotest: do not use shell functions for individual tests.
174         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
175         extract the source test source, do not invoke it.
176         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
177         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
178         expect exit status of 1.
179         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
181         * lib/autotest/general.m4 (at_func_test): Fix test extraction
182         script.
184 2007-10-17  Eric Blake  <ebb9@byu.net>
186         Fix m4_combine for empty suffix list.
187         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
188         * doc/autoconf.texi (Text processing Macros): Document this.
190         Add m4_combine, based on Libtool's lt_combine.
191         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
192         * doc/autoconf.texi (Text processing Macros): Document it.
193         * NEWS: Likewise.
195 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
197         Fix `configure --help=recursive' in unconfigured/read-only trees.
198         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
199         is not writable, use 'cp -p' in this case, in the hope that it
200         will not actually be needed.  Still try removing files, in case
201         of other write errors.
202         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
203         use $as_myself, not $0.
204         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
205         exist, try again in the the source tree.  This change assumes
206         that the subpackage configure script is capable of running
207         --help=recursive in the source tree.
208         * tests/torture.at (Configuring subdirectories, Deep Package):
209         Adjust tests to expose both issues, also try invocation as
210         `sh configure ...' and plain `configure ...' with PATH adjusted.
211         * NEWS, THANKS: Update.
212         Report by Hans Ulrich Niedermann.
214 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
216         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
217         Problem reported by H.Merijn Brand in
218         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
219         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
220         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
221         Check that preprocessor handles 64-bit ints, too.
223 2007-10-16  Eric Blake  <ebb9@byu.net>
225         m4_map is a looping construct.
226         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
228         Fix m4_map, and add some more utility macros.
229         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
230         (m4_echo, m4_make_list): New documented macros.
231         (_m4_quote, _m4_shift2): New helper macros.
232         (m4_map): Change semantics to allow calling macro without
233         arguments.
234         (m4_map_sep): Likewise.  Also change semantics to quote separator,
235         to match m4_join and m4_append.
236         (m4_version_unletter): Fix use of m4_map.
237         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
238         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
239         (Text processing Macros): Mention m4_dquote as a faster
240         alternative to joining with commas.
241         (Looping constructs): Document m4_map, m4_map_sep.
242         * NEWS: Mention new macros.
244         A few more m4sugar improvements, to benefit libtool.
245         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
246         of expansion by avoiding extra uses of $@.
247         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
248         (_m4_cdr): New helper macro.
249         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
250         (_m4_shift3): New helper macro.
251         (_m4_foreach): Swap argument order, and use new macro to reduce
252         size of expansion.
253         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
254         count must be positive.
256         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
257         Reported by Ralf Wildenhues.
259 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
261         * doc/autoconf.texi (Portable Shell): Improve description of zsh
262         4.x function subshell bug with exit and trap.
264 2007-10-15  Eric Blake  <ebb9@byu.net>
266         Enhance AS_HELP_STRING.
267         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
268         and reduce number of expansions.
269         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
270         and to take indent and wrap column numbers.
271         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
272         * doc/autoconf.texi (Pretty Help Strings): Document details about
273         arguments.
274         (Text processing Macros): Minor tweaks.
275         * NEWS: Document this change.
277         Fix 2007-10-03 regression with AT_SETUP([a, b]).
278         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
279         (m4_text_box): Use it.
280         * lib/autotest/general.m4 (AT_SETUP): Use it.
281         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
282         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
283         * NEWS: Revert caveat about semantics change on comma.
284         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
286 2007-10-13  Eric Blake  <ebb9@byu.net>
288         Change m4_join to match libtool's ltsugar semantics.
289         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
290         Ignore empty arguments, using...
291         (_m4_join): ...this new helper.
292         * tests/m4sugar.at (m4@&t@_join): New test.
293         * doc/autoconf.texi (Text processing Macros): Document new
294         semantics of m4_join.
296         Make AC_PREREQ faster and more robust.
297         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
298         (m4_version_prereq): Inline constant expansions.
299         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
300         Rewrite in terms of [] list, not () list.
301         (_m4_list_cmp, _m4_version_unletter): New helper macros.
302         (m4_version_unletter): Write wrapper around new implementation to
303         preserve old semantics.
304         (m4_version_compare): Pass correct type of list, and avoid
305         overhead of flattening expressions too early.
306         (m4_do): Move to be near other quoting macros.
307         (m4_max, m4_min): Always result in decimal output.
308         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
309         Move m4_do...
310         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
311         (Text processing Macros): Move m4_version_compare...
312         (Number processing Macros): ...to this new node; document m4_cmp,
313         m4_list_cmp, m4_sign, m4_max, m4_min.
314         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
315         up on bugs fixed by this patch.
316         * NEWS: Document new macros.
318 2007-10-12  Eric Blake  <ebb9@byu.net>
320         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
321         (Reporting Messages): Fix underfull hbox.
323         Some more m4sugar documentation.
324         * lib/m4sugar/m4sugar.m4: Clean up macro order.
325         * doc/autoconf.texi (Programming in M4): Lighten the warning on
326         using m4sugar; it is stabilizing and useful.
327         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
328         m4_divert, m4_undivert, __file__, __line__, __oline__.
329         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
330         m4_fatal, m4_location, m4_warn.
331         (Diversion support): New node, documenting m4_divert_push,
332         m4_divert_pop, m4_divert_text, m4_divert_once.
333         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
334         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
335         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
336         as obsolescent.
337         (Printing Messages): Change cross-reference.
339         Document interaction of recent m4_append change with Libtool HEAD.
340         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
341         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
342         * tests/m4sugar.at (m4@&t@_append): New test.
343         * NEWS: Document semantics change.
344         * doc/autoconf.texi (Text processing Macros): Likewise.
346         s/AC_VERSION/AC_AUTOCONF_VERSION/.
347         * doc/autoconf.texi (Versioning): Change the name.
348         * NEWS: Likewise.
349         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
350         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
351         Suggested by Ralf Wildenhues.
353         Namespace cleanup.
354         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
355         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
356         autoconf namespace.
357         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
358         (Programming in M4sh, Macro Names): Beef up description of
359         namespaces reserved for autoconf.
360         * configure: Regenerate.
362 2007-10-12  Eric Blake  <ebb9@byu.net>
363         and Paolo Bonzini  <bonzini@gnu.org>
365         Speed up execution of subset of testsuite.
366         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
367         (AT_INIT) <at_func_test>: New shell function.
368         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
369         (AT_INIT) <at_test_source> New variable, names file that holds
370         current test function definition.
371         (AT_SETUP): Start the shell function at_func_test_#, into the
372         TEST_FUNCTIONS diversion.
373         (AT_CLEANUP): End the shell function.  Simplify the TESTS
374         diversion to invoke the function.
376 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
378         * .gitignore: Ignore tags and TAGS files.
380 2007-10-11  Eric Blake  <ebb9@byu.net>
382         Config header generation followup.
383         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
384         which won't work with the preprocessor nor with the awk
385         implementation.
386         * tests/torture.at (Define a newline): Test raw newline detection,
387         removing the XFAIL.
388         * doc/autoconf.texi (Defining Symbols): Document recent change to
389         allow backslash-newline.
390         * THANKS: Update.
392 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
394         * lib/autotest/general.m4: Put function braces in separate line.
396 2007-10-10  Eric Blake  <ebb9@byu.net>
398         Avoid some overhead from m4_defn and m4_popdef.
399         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
400         pass on first argument, since we are documented that way.
401         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
402         check where it is safe to do so.
403         (m4_append): Likewise, and quote the separator.
404         (m4_text_box): Likewise, and avoid regex, also be robust to
405         expansion and quadrigraphs.
407         Another AC_DEFINE speedup.
408         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
409         elision...
410         (_AC_DEFINE_Q): ...here, and only do it once.
411         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
412         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
413         introduced 2007-10-05.
415         Whitespace cleanup.
416         * lib/autoconf/general.m4: Use consistent indentation.
417         * configure: Regenerate.
419         * NEWS: Announce recent round of speed optimizations.
421 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
423         * NEWS: Announce shell function usage in Autotest.
425 2007-10-10  Eric Blake  <ebb9@byu.net>
426         and Paul Eggert  <eggert@cs.ucla.edu>
428         Reduce number of forks at startup.
429         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
430         sanitization.
431         * configure: Regenerate.
433 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
434         and Paul Eggert  <eggert@cs.ucla.edu>
436         Use awk for config header generation.
437         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
438         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
439         header machinery for use with awk and placement outside the main
440         config.status instantiation loop.  Retain multi-line defines
441         through backslash-newline combinations, do not split the script
442         any more.
443         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
444         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
445         needed.
446         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
447         from define values.
448         * NEWS: Update.
449         * tests/torture.at (#define header templates): Extend test by
450         several more cases: white space before and after `#', macros
451         with parameters in config.hin and as defines, multi-line macro
452         values.
453         (Torturing config.status): Use a define value twice the length
454         in order to exercise the awk literal string limit.
455         (Substitute and define special characters): Also try special
456         delimiter, to exercise the special-case code.
457         Suggestion by Eric Lemings.
459 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
461         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
463 2007-10-09  Eric Blake  <ebb9@byu.net>
465         Improve header of bin/autoconf.
466         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
467         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
468         from M4sh.
469         * bin/autoconf.as: Put copyright up front in generated file.
471         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
473 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
475         * doc/install.texi (Basic Installation): Document `uninstall'.
476         * INSTALL: Regenerate.
477         Suggestion by Roberto Bagnara.
479 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
481         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
483         Adjust doc. to match latest gnulib.
484         * build-aux/texinfo.tex: Sync from gnulib.
485         * doc/standards.texi: Likewise.
486         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
487         Documentation License" and remove the subsection.  This simplifies
488         the manual a bit and is more like what other GNU projects do
489         nowadays.
491 2007-10-08  Eric Blake  <ebb9@byu.net>
493         Use recent changes.
494         * configure: Regenerate.
496         Fix regression in m4_text_wrap from 2007-10-05.
497         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
498         (m4_sign): Sort.
499         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
500         m4_format.
501         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
502         * tests/autotest.at (Long test title, Longer test title): Test
503         this fix, beyond what AS_HELP_STRING already tests.
505         Avoid m4 warnings on bad m4_format usage.
506         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
507         evaulates to 0.
508         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
509         enough arguments are provided.
511 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
513         * doc/autoconf.texi (Shell portability): Document shell function
514         portability.
516 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
518         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
519         at_func_check_skip, at_func_check_status, at_func_filter_trace,
520         at_func_log_failure shell functions.  Use test -s to avoid
521         useless diff invocations.
522         (at_func_check_newline): Renamed from at_check_newline.
523         (AT_SETUP): Define AT_captured_files to empty.
524         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
525         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
526         the shell functions.
528 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
530         Don't assume "." is writeable, for commands like "autoconf --version".
531         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
532         different heuristic instead, one that doesn't rely on creating
533         files.
535         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
536         correctly.
538 2007-10-05  Jim Meyering  <meyering@redhat.com>
540         Avoid makeinfo warnings.
541         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
542         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
544 2007-10-05  Eric Blake  <ebb9@byu.net>
546         Resolve Python issue 1676135 regarding configure directory args.
547         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
548         slashes from directory arguments.
549         * tests/base.at (configure directories): New test.
550         * doc/autoconf.texi (Installation Directory Variables): Document
551         the change.
552         * NEWS: Likewise.
553         * THANKS: Update.
554         Reported by Björn Lindqvist.
556         Provide better short-circuiting operation.
557         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
558         (m4_text_wrap): Use it.  Also avoid useless m4_for.
559         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
560         new macro.
561         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
562         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
563         to avoid regexps.
564         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
565         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
566         (Conditional constructs): ...here, to new section.  Also document
567         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
568         m4_bpatsubsts, and m4_default.
569         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
570         m4_do.
572 2007-10-04  Eric Blake  <ebb9@byu.net>
574         Fix recent testsuite failures.
575         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
576         that must not be re-expanded after AS_ESCAPE.
577         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
578         checking if it is an identifier.
580         Whitespace cleanup.
581         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
582         leading whitespace, as it caused space-tab in testsuite.
583         (AT_INIT): Avoid trailing newlines in testsuite.
585         One more round of m4_foreach_w speedups.
586         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
587         is present.
588         (_m4_split): Avoid useless expansions inside definition.  Move
589         argument defaulting...
590         (m4_split): ...here.  Change alternate quote to something less
591         likely to appear in $1.  Also, special case space as regexp...
592         (m4_foreach_w): ...to avoid regexp on single-term list.
593         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
594         useless expansions inside definition.
595         * tests/m4sugar.at (m4@&t@_split): Add tests.
597 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
599         * general.m4 (AT_INIT): Add at_check_newline function.
600         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
601         (_AT_CHECK): Don't use at_trace_this.
603 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
605         Fix previous commit.
606         * lib/autotest/general.m4 (AT_LINE): Fix regex.
608 2007-10-04  Eric Blake  <ebb9@byu.net>
610         Speed up building testsuites.
611         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
612         changed since last time.  Use simpler regex.
614 2007-10-03  Eric Blake  <ebb9@byu.net>
616         Optimize checking for identifiers.
617         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
618         macros, more efficient than regex on m4_re_word.
619         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
620         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
621         now use @&t@.
622         * configure: Regenerate.
624         Remove some XFAILs, and make AT_SETUP output line up.
625         * lib/autotest/general.m4 (AT_SETUP): Only expand description
626         once; thereafter, use its expansion, properly quoted.
627         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
628         expansion with arguments, and check for aligned output.
629         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
630         Add a test for macros with parameters.
631         * NEWS: Document the semantics change.
632         * tests/base.at: Fix test titles containing commas.
633         * tests/compile.at: Likewise.
634         * tests/tools.at: Likewise.
635         * tests/torture.at: Likewise.
637         Another round of regex avoidance.
638         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
639         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
640         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
641         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
642         character ranges useful in m4_translit.
643         (m4_toupper, m4_tolower): Optimize the constant portion of
644         definition.
645         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
646         creates $, and reject [] thanks to AS_TR_SH rewrite.
647         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
648         (AS_ESCAPE): Factor...
649         (_AS_ESCAPE): ...into new macro, with second argument required.
650         Avoid regex in common case.
651         (_AS_QUOTE): Use new macro.
653         Whitespace cleanup.
654         * lib/autoconf/types.m4: Avoid space-tab.
655         * lib/m4sugar/m4sh.m4: Use tab consistently.
657 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
659         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
660         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
661         should remove m4_shiftn entirely?
662         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
663         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
664         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
665         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
666         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
668 2007-10-03  Eric Blake  <ebb9@byu.net>
670         Comment touchups.
671         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
673 2007-10-02  Eric Blake  <ebb9@byu.net>
675         Optimize appending text.
676         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
677         expressions.
679         Optimize recursion.
680         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
681         lot of hot spots; optimize it for 2 and 3 shifts.
683         Optimize AC_PREREQ and other m4sugar numerics.
684         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
685         (m4_cmp): Compare arbitrary expressions, without overflow.
686         (m4_version_unletter): Also recognize capital letters.
687         (m4_version_compare): Avoid regex when splitting version number
688         string.
690 2007-10-01  Eric Blake  <ebb9@byu.net>
692         Once again, reject IRIX m4.
693         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
694         implementations that ignore --trace.
695         * configure: Regenerate.
696         Reported by Ralf Wildenhues.
698         Fix regression in AC_DEFINE([macro(with_arg)]).
699         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
700         quotes with a careless m4_substr.
702 2007-09-30  Eric Blake  <ebb9@byu.net>
704         Allow nameless iteration.
705         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
706         indirectly.
707         * tests/m4sugar.at (myvar): Test this.
709 2007-09-29  Eric Blake  <ebb9@byu.net>
711         Speed optimization: avoid m4 regex when other algorithms work.
712         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
713         (_AS_QUOTE_IFELSE): Likewise.
714         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
715         (m4_bpatsubsts): Split...
716         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
717         regex.
718         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
719         (m4_qlen): Optimize on short strings, to avoid regex.
720         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
721         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
722         (AC_DEFINE_TRACE): Likewise.
724 2007-09-28  Eric Blake  <ebb9@byu.net>
726         Oops - my earlier 'optimization' caused a regression.
727         * tests/local.at (AT_CHECK_M4): Fix typo.
729 2007-09-27  Eric Blake  <ebb9@byu.net>
730         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
732         Catch even more common AC_CACHE_VAL mistakes.
733         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
734         lacks '_cv_', or if AC_SUBST appears in body.
735         * tests/base.at (AC_CACHE_CHECK): Test this change.
737 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
738         and Eric Blake  <ebb9@byu.net>
740         Autotest no longer caters to Ultrix redirection limitation.
741         * doc/autoconf.texi (Writing testsuite.at): Remove the
742         limitation that the first parameter of AT_CHECK cannot
743         contain redirection.
744         (File Descriptors): Mention that Ultrix limitation is no longer a
745         show-stopper in modern code.
746         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
747         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
748         * lib/autotest/general.m4 (AT_CHECK): Update comment.
750 2007-09-27  Eric Blake  <ebb9@byu.net>
752         Squelch changeword in m4sugar.
753         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
754         feature of m4 1.4.x.
756         Configure whitespace touchups.
757         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
758         installation directories, and avoid TAB, in configure --help
759         output.
760         * configure.ac: Avoid extra trailing newline.
761         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
762         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
763         config.status --help output.
764         * configure: Regenerate.
766         Fix underquotation in AS_HELP_STRING.
767         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
768         argument.
769         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
770         first-prefix argument.
771         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
772         * NEWS: Document AS_HELP_STRING fix.
774         Autotest formatting touchups.
775         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
776         output.
777         (PATH): Simplify computation of new PATH.
779 2007-09-26  Eric Blake  <ebb9@byu.net>
781         Fix testsuite breakage in last patch.
782         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
783         font-lock fix.
784         * tests/torture.at (@%:@define header templates): Rename, so that
785         output lines up correctly.
787         More font-lock happiness.
788         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
789         confusion.
791 2007-09-25  Eric Blake  <ebb9@byu.net>
793         Typo fixes.
794         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
795         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
797         Improve documentation of M4 parameter expansion.
798         * doc/autoconf.texi (Quoting and Parameters): New section.
799         (Quotation and Nested Macros): Improve wording.
801         Improve C99 detection.
802         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
803         avoid deprecation warning with icc.
804         * THANKS: Update.
805         Reported by Ted Bullock.
807 2007-09-24  Jim Meyering  <jim@meyering.net>
809         Whenever possible, use the vertical bar as sed delimiter.
810         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
811         Use "|", not "!".
812         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
813         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
814         * tests/mktests.sh (as_me): Likewise.
815         * lib/freeze.mk (check-forbidden-patterns): Likewise.
816         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
817         * configure: Regenerate.
818         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
819         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
820         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
821         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
823 2007-09-22  Jim Meyering  <jim@meyering.net>
825         Add a comment.
826         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
827         2004-05-31 change also with a comment in the code.
829 2007-09-20  Eric Blake  <ebb9@byu.net>
831         More contribution housekeeping.
832         * THANKS: Sort.
833         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
835         Ignore additional files, when copying cross-repository.
836         * .gitignore: Ignore CVS directories, emacs edits.
837         * .cvsignore: Ignore .git directory, emacs edits.
839 2007-09-15  Eric Blake  <ebb9@byu.net>
841         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
842         * doc/autoconf.texi (Text processing Macros): Remove mention of
843         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
844         once again.
845         (Notices): Move AC_PREREQ...
846         (Versioning): ...to this new section, alongside the new AC_VERSION
847         alias for the undocumented m4_PACKAGE_VERSION.
848         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
849         * lib/autoconf/general.m4 (AC_VERSION): New macro.
850         * NEWS: Update to match this rename.
851         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
852         m4_PACKAGE_VERSION.
853         * tests/tools.at (autoconf: AC_VERSION): New test.
854         Suggested by Paolo Bonzini and Benoit Sigoure.
856 2007-09-14  Eric Blake  <ebb9@byu.net>
858         Prepare for conversion to git.
859         * doc/.cvsignore: Avoid multiple listings on one line.
860         * bin/.cvsignore: Likewise.
861         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
862         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
863         lib/autoscan/.gitignore, lib/autotest/.gitignore,
864         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
865         tests/.gitignore: New files, identical to .cvsignore counterpart.
867 2007-09-13  Eric Blake  <ebb9@byu.net>
869         Editing eye-candy.
870         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
871         font-lock balance.
872         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
873         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
874         * configure: Regenerate.
876         Clean up 'make dist' of previous patch.
877         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
878         (CLEANFILES): Don't clean the stamp, since we distribute the
879         generated files pre-built.
880         (MAINTAINERCLEANFILES): Clean it here instead.
881         * tests/Makefile.in: Regenerate.
883         Avoid parallel 'make check' issue.
884         * tests/Makefile.am (mktests.stamp): New witness.
885         (TESTSUITE_GENERATED_AT): Use it.
886         (CLEANFILES): Clean the witness.
887         * tests/.cvsignore (mktests.stamp): Ignore the witness.
889         Document another awk pitfall.
890         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
891         limitation of field variables in END.
892         Reported by Gary V. Vaughan.
894         * AUTHORS: Add missing entries.
896 2007-09-12  Eric Blake  <ebb9@byu.net>
898         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
899         * doc/autoconf.texi (Text processing Macros): Document
900         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
901         (Redefined M4 Macros): Document m4_ifndef.
902         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
903         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
904         used it while it was undocumented.
905         * NEWS: Document this change.
906         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
907         * lib/m4sugar/Makefile.in: Regenerate.
908         * tests/m4sugar.at (m4@&t@_version_compare): New test.
909         Reported by Bruno Haible.
911         * doc/autoconf.texi (Generic Compiler Characteristics): Add
912         missing index entries.
914 2007-09-11  Eric Blake  <ebb9@byu.net>
916         Centralize all system extensions checks.
917         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
918         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
919         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
920         AC_USE_SYSTEM_EXTENSIONS.
921         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
922         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
923         * doc/autoconf.texi (Posix Variants): Reword this section,
924         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
925         rather than a series of system-specific checks.
926         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
927         AC_MINIX.
928         * NEWS: Document this change.
929         * THANKS: Update.
930         Reported by Martin Koeppe.
932 2007-09-08  Eric Blake  <ebb9@byu.net>
934         Clean up obsolete macros references.
935         * doc/autoconf.texi: Add anchors to support better
936         cross-referencing.
937         (Particular Structures): Move obsolete macros descriptions...
938         (External Software): Likewise.
939         (Package Options): Likewise.
940         (Obsolete Macros): ...to here.  Add cross-references to
941         documentation on replacements.
942         * NEWS: Mention that these macros have been obsolete for a while
943         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
945         Improve M4 path searching during configure.
946         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
947         macro.
948         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
949         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
950         parameter, and kill side effects.
951         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
952         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
953         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
954         is found.
955         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
956         allow bootstrapping with autoconf 2.61.
957         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
958         * configure: Regenerate.
959         * doc/autoconf.texi (Generic Programs): Document new macro.
960         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
961         macro.
962         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
963         * NEWS: Document the change.
964         * THANKS: Update.
965         Reported by Hans Aberg.
967         * doc/autoconf.texi (Generic Programs): Fix typo.
969 2007-09-06  Eric Blake  <ebb9@byu.net>
971         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
972         :, and make it clear that optional @var{path} defaults to $PATH.
973         (Erlang Compiler and Interpreter): Likewise.
975         Texinfo cleanup.
976         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
977         Reword some paragraphs to avoid overfull, underfull hbox
978         warnings.  Add index entries to avoid overfull vbox warnings.
980 2007-09-05  Eric Blake  <ebb9@byu.net>
982         * NEWS: Adjust wording for AC_CONFIG_LINKS.
983         Reported by Ralf Wildenhues.
985 2007-09-03  Eric Blake  <ebb9@byu.net>
987         * NEWS: Document fixes that have been applied since 2.61a.
989         Housekeeping.
990         * THANKS: Update, and convert to UTF-8 encoding.
991         * AUTHORS: Likewise.
993 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
995         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
996         names beginning with `-' again.
998 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
999             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1001         * doc/autoconf.texi (Defining Directories): Mention
1002         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
1004 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1006         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
1007         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
1008         * tests/base.at (configure arguments): New test.
1009         * THANKS: Update.
1010         Report by Olaf Lenz.
1012         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
1013         arguments in comment.
1014         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
1016 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
1018         * doc/autoconf.texi (File System Conventions): Index the proper
1019         way of detecting absolute file names.
1021 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1023         * build-aux/config.guess, build-aux/config.sub,
1024         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
1025         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
1026         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
1027         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
1028         sectioning change in fdl.texi.
1030         * bin/autoconf.as: Update --version output to match current GCS.
1031         * bin/autoheader.in: Likewise.
1032         * bin/autom4te.in: Likewise.
1033         * bin/autoreconf.in: Likewise.
1034         * bin/autoscan.in: Likewise.
1035         * bin/autoupdate.in: Likewise.
1036         * bin/ifnames.in: Likewise.
1038 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1040         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
1041         file to itself if source and build trees coincide.
1042         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
1043         test.
1044         Report by Sebastian Freundt <hroptatyr@gna.org>.
1046 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1048         Reword the copyright notices to match what's suggested in GPLv3.
1049         In ChangeLog files, use more-permissive notice rather than GPL, as
1050         per usual GNU standards these days.
1052 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
1054         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
1055         limitation reported by Leo Moisio in
1056         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
1058 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1060         * COPYING: Update to GPLv3.  All uses changed.
1062 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1063         and Paul Eggert  <eggert@cs.ucla.edu>
1065         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
1066         fails on AIX 5.3.
1068 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
1070         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
1071         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
1072         `srcdir' as subdirectory of `builddir'.
1074 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
1076         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
1077         * tests/autotest.at (srcdir propagation): New test.
1078         * THANKS: Update.
1079         Reported by Mike Frysinger.
1081 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1083         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
1084         Problem reported by Fred Kreek in
1085         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
1086         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
1087         (Macro Names, Defining Directories): Don't mention PATH as a name
1088         for a fully qualified file name, as this usage violates the GNU
1089         coding standards and we shouldn't recommend it.
1091         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
1092         string and then assume shell builtins like "test" will work.
1094 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
1096         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
1097         not a valid shell variable name.
1098         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
1099         * tests/torture.at (AC_SUBST: variable name validation): New test.
1100         Reported by Andreas Schwab.
1102 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
1104         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
1105         works with both C and C++.
1107 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
1108             Bruno Haible  <bruno@clisp.org>
1110         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
1111         brand tests.
1113 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1115         * doc/autoconf.texi (Particular Types): Give example of use for
1116         AC_TYPE_INT8_T etc.
1118 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
1120         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
1122 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
1124         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
1125         define HAVE_INT8_T, and likewise for similar macros.
1126         Problem reported by Patrick Welche in
1127         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
1129 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
1131         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
1133 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1135         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
1136         choice, since that's what we do with --enable-largefile etc.
1137         Redo indenting and assignments to simplify things a bit, and make
1138         the parens work with Emacs.
1140         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
1141         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
1142         Haible.
1144 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
1146         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
1147         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
1149 2007-05-21  Bruno Haible  <bruno@clisp.org>
1151         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
1152         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
1153         * doc/autoconf.texi (Generic Compiler Characteristics): Move
1154         renamed AC_OPENMP documentation here, from "C compiler".
1155         Mention C++ and Fortran.
1157 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1159         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
1161 2007-05-21  Bruno Haible  <bruno@clisp.org>
1163         * NEWS: Mention AC_C_OPENMP.
1164         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
1165         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
1166         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
1167         macro in the Autoconf macro archive.
1169 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1171         * bin/autom4te.in: Fix typos.
1173 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
1175         * bin/autoconf.as: Handle `-' just like other input files.
1176         * bin/autom4te.in (parse_args): Pass `-' through.
1177         (handle_output): Skip the forbidden token search if we read from stdin.
1178         (up_to_date): Always treat stdin as out of date.
1179         * tests/tools.at (autoconf: input from stdin): New test.
1180         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
1182 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
1184         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
1185         parameters for AT_CLEANUP.
1186         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
1188 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1190         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
1191         * doc/autoconf.texi (C Compiler): Likewise.
1193 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
1195         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
1197 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
1199         * doc/autoconf.texi: Direntry for "autoconf Invocation"
1200         renamed to "autoconf-invocation"
1202         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
1203         in the examples should not use the internal "ac_" prefix.
1205 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
1207         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
1208         * doc/autoconf.texi ($@, case): Document Zsh limitations.
1210 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
1212         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
1213         Reorganize the comments before and in the macro.
1215 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
1217         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
1218         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
1219         section titles and other comments; no code change.
1221 2007-05-01  Kevin Ryde  <user42@zip.com.au>
1223         * doc/autoconf.texi (Particular Programs): Typo
1224         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
1226 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1228         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
1229         'configure' will fail if the shell lacks proper support for shell
1230         functions.  Suggested by RMS.
1232 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1234         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
1235         about Solaris /bin/printf '%010000x' 123.  Problem reported by
1236         Bruno Haible.
1238 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1240         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
1241         for a.* when searching for executables, as this prevents users
1242         from having files like a.c.  Problem reported by Ralf Wildenhues in:
1243         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
1244         This fixes a problem introduced on 2000-12-19.
1246 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1248         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
1249         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
1250         via Bruno Haible.
1252 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1254         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
1255         AC_CHECK_TYPE, AC_CHECK_TYPES.
1256         * doc/autoconf.texi (Generic types): C types must be type-names
1257         (the C terminology), not type-ids (the C++ term).  C++ types
1258         must not be anonymous.
1259         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
1260         for C++; this drops support for anonymous struct and union types,
1261         which were problematic anyway.
1262         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
1263         for C++.
1265 2007-04-12  Jim Meyering  <jim@meyering.net>
1267         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
1269 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1271         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
1272         to prefer a link source from the build tree, if it exists.
1273         Report by Pallav Gupta <pallavgupta@gmail.com>.
1275 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
1277         * doc/autoconf.texi (Generic Types): Document the restrictions
1278         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
1279         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
1280         with objects too.  Document the restrictions on its use.
1281         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
1282         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
1283         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
1284         works but the latter doesn't, then it's a valid type.
1285         This lets people use function types and so forth.
1286         For C++ there doesn't seem to be a simple solution, so leave it alone.
1287         (AC_CHECK_SIZEOF): Allow argument to be a variable.
1288         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
1289         AC_CHECK_TYPE; that wasn't documented or necessary.
1291 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
1293         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
1294         when cross-compiling.
1296 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
1298         * doc/autoconf.texi (External Software): Fix a typo in the
1299         previous change.
1301 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1303         * doc/autoconf.texi (External Software, Package Options):
1304         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
1306 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1308         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
1309         obsolescent.  Suggested by Bruno Haible.
1310         * NEWS: Document this.
1312 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1314         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
1315         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
1316         default still has the problem.  Problem reported by Bruce Korb.
1318 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
1319         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1321         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
1322         comment in the generated config.status.
1324 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
1326         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
1328 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
1330         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
1331         command and case statements to make it a bit clearer and describe
1332         more pitfalls.
1334 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1336         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
1337         checks for unsigned long long int.
1339 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1341         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
1342         nonstandard grep R.E. escape sequences.
1344 2007-03-17  Jim Meyering  <jim@meyering.net>
1346         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
1347         (Limitations of Usual Tools): Also list \< and \>, and mention that
1348         HP-UX's grep, like the one from Solaris, does not support that syntax.
1350 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
1352         * doc/autoconf.texi (Specifying Names): `--host' does not
1353         change the build type.
1355 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1357         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
1358         suggests AC_CONFIG_HEADERS.
1359         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
1360         AC_CONFIG_HEADERS.  Problem reported by
1361         Peter O'Gorman.
1363 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1365         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
1366         Problem reported by Paolo Bonzini in:
1367         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
1368         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
1369         universal binaries.  Problem reported by Elias Pipping.
1371 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
1373         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
1374         * doc/autoconf.texi (C Compiler): Document this.  There is a new
1375         extra argument ACTION-IF-UNIVERSAL.
1376         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
1377         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
1378         Reindent for sanity's sake.
1380 2007-02-24  Eric Blake  <ebb9@byu.net>
1382         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
1383         copyright.
1384         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
1385         * lib/autotest/general.m4 (AT_INIT): Likewise.
1386         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
1388 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1390         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
1391         status of rm so we know when it failed.
1392         If cleaning of test dir failed before running the test, warn.
1393         Output the line separator in verbose mode before the warning
1394         to make clear the warning belongs to the following test.
1396 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1398         * doc/autoconf.texi (Parentheses): Mention problem with (( in
1399         shells.
1401 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1402         and Paul Eggert  <eggert@cs.ucla.edu>
1404         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
1405         errors introduced in last change.
1407 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1409         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
1410         an actual carriage return.  Use "ac_cr" to contain the actual
1411         carriage return.
1412         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
1413         with traditional Awk and begin.
1414         * tests/torture.at (Limitations of Builtins): Document the problem
1415         with Bash 2.03 printf.
1416         (Substitute and define special characters):
1417         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
1419 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
1421         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
1422         input from /dev/null in awk test, so even Solaris /usr/bin/awk
1423         will not wait for input with a script containing only a BEGIN
1424         rule.
1426 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1428         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
1429         requirements.
1430         * README: Likewise.
1432 2007-02-02  Eric Blake  <ebb9@byu.net>
1434         * NEWS: Update copyright.
1436         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
1437         broken.
1438         * configure.ac: Update error message.
1439         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
1440         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
1441         by Stepan Kasal:
1442         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
1444 2007-01-31  Eric Blake  <ebb9@byu.net>
1446         * THANKS (people): Update.
1448 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1450         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
1451         latest version.
1452         (Shell Substitutions): Note problems with @{var:=value} etc.
1453         Add a new section for problems with @{#var} etc.  Problem noted
1454         by Ralf Wildenhues.  See:
1455         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
1457 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1459         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
1460         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
1461         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
1462         substitution will still be done by the special code.
1463         Report by Jim Meyering.
1465         * doc/autoconf.texi (File System Conventions): Mention that
1466         $PATH_SEPARATOR is for the build system only.
1467         Report by Keith Marshall.
1469 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1471         * doc/autoconf.texi (Setting Output Variables): Mention that
1472         all non-NUL characters are ok in substituted values.
1473         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
1474         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
1475         carriage return for $AWK, needed for BSD awk.
1476         * tests/torture.at (Substitute and define special characters):
1477         Test all 8 bit non-NUL characters.
1478         Report against Automake by Patrick Welche.
1480 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
1482         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
1484 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1486         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
1487         early on the reader side, drop stderr of the input to avoid
1488         `broken pipe' error output; this may happen even with shell
1489         builtin `echo' of some bash versions.  Reports by Ian Macdonald
1490         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
1492 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1494         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
1495         separate items of `ac_user_opts', to avoid long lines.
1496         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
1498 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1500         * doc/autoconf.texi: Fix some typos.
1502 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1504         Fix some wording problems noted by Paolo Bonzini in:
1505         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
1506         * doc/autoconf.texi (Signed Overflow Examples): Give more
1507         discussion about the allow_superuser_privileges example,
1508         and change it a bit to make things clearer.
1509         (Optimization and Wraparound): Clarify whether the compiler
1510         will generate an infinite loop for the example derived from
1511         Autoconf's mktime test.
1512         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
1513         Also, clarify unsigned multiplication overflow.
1515 2007-01-04  Eric Blake  <ebb9@byu.net>
1517         * bin/Makefile.am (RELEASE_YEAR): New macro.
1518         (edit): Use it to supply correct copyright year to scripts.
1519         * bin/autoconf.as (version): Use it.
1520         * bin/autoheader.in ($version): Likewise.
1521         * bin/autom4te.in ($version): Likewise.
1522         * bin/autoreconf.in ($version): Likewise.
1523         * bin/autoscan.in ($version): Likewise.
1524         * bin/autoupdate.in ($version): Likewise.
1525         * bin/ifnames.in ($version): Likewise.
1527 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1529         * doc/autoconf.texi (Integer Overflow): Revised based on today's
1530         feedback.  The most important changes document what happens when
1531         you convert an out-of-range value to a signed integer type, and
1532         say that (sum < a) != (b < 0) reliably detects overflow when sum =
1533         a + b.
1535         * doc/autoconf.texi (Integer Overflow): Greatly expand and
1536         rewrite, taking notions from the recent discussion on the gcc and
1537         autoconf mailing lists; please see
1538         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
1539         and follow the many links.
1540         (Integer Overflow Basics, Signed Overflow Examples):
1541         (Optimization and Wraparound, Signed Overflow Advice):
1542         (Signed Integer Division): New sections.
1544 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
1546         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
1547         preprocessor macro arguments in traced name.
1548         * doc/autoconf.texi (Defining symbols): Document longstanding
1549         support for AC_DEFINE-ing macros with arguments, and document
1550         behavior when the same variable has multiple AC_DEFINEs.
1551         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
1552         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
1553         macros directly, giving much shorter and simpler code.
1555 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
1557         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
1558         space before "$ac_configure_args" to prevent a 'config.status
1559         --recheck' failure if ac_configure_args doesn't contain a leading
1560         space.  This works around a problem with the XEmacs configure.ac,
1561         which uses the (undocumented) ac_configure_args variable
1562         inconsistently with Autoconf.
1564 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1566         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
1567         Include <limits.h>, and use its INT_MAX to rewrite the
1568         j loop so that it does not overflow 'int'.  Problem reported by
1569         Ralf Wildenhues in
1570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1571         Play it safe by shifting left by 1 rather than multiplying by 2,
1572         as GCC is less likely to optimize this away when the value
1573         is signed (when it assumes overflow leads to undefined behavior).
1574         Also, don't assume time_t uses two's complement.
1576 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1578         * tests/torture.at (Substitute a 2000-byte string): Avoid using
1579         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
1580         dumps core on it.  Report by Tim Rice.
1582 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
1584         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
1585         --disable-option-checking to --help output even when
1586         AC_PRESERVE_HELP_ORDER is not used.
1587         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
1588         --with argument, rather than argument with [-.] replaced by
1589         underscores.
1590         * NEWS: Fix typo in previous change; the news was in the
1591         wrong section.
1593 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1595         * NEWS: Warnings are now generated by default for unknown
1596         --enable-* and --with-* options.
1597         * doc/autoconf.texi (Option Checking): Renamed from
1598         (Configure Option Checking).  Tighten up the wording a bit.
1599         (External Software, Package Options): Cross-reference to Option
1600         Checking, and use this to shorten our section.
1601         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
1602         "$x" to test "x$foo" != x.
1603         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
1604         Don't warn if $enable_option_checking is "no".
1605         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
1606         ac_unrecognized_opts to the empty string.
1607         Don't echo the unrecognized opts, as this might mishandle
1608         backslashes or leading -.
1609         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
1610         usage next to the other --disable-FEATURE options in the
1611         help string.
1613 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
1615         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
1616         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
1617         Print warning for unrecognized --with and --enable options
1618         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
1619         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
1620         Disable option checking when subdirs are configured.
1621         (AC_OUTPUT): If warnings are enabled, print warning about
1622         unrecognized --with and --enable options at the end of
1623         the configure output (as well as at the beginning).
1624         * doc/autoconf.texi (Option Checking): New node.
1625         Document new option warning functionality.
1627 2006-12-16  Eric Blake  <ebb9@byu.net>
1629         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
1630         * NEWS: Start news for current version.
1632 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1634         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
1635         Define HAVE_GETMNTENT to 1, not to the empty string.
1636         Problem originally reported by Jochen Friedrich in
1637         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
1639         This change prompted by a problem report by Andrey Simonenko in
1640         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
1641         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
1642         object-like macros only, in the traditional portable character
1643         set.
1644         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
1645         Warn about attempts to define things that are not identifiers.
1646         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
1647         awful hack that AC_DEFINEd macro names containing parentheses.
1649 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1651         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
1652         too drastic, even if Texinfo in theory requires it for info mode.
1654         (config.status Invocation): Renamed back from Recreating a
1655         Configuration).
1656         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
1657         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
1659 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1661         * NEWS: Version 2.61a.
1663 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1664         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1666         * NEWS: Document changes with echo and printf, and the lack
1667         of limits on the total size of multi-line values of substituted
1668         variables, and the AC_FUNC_FSEEKO fix.
1670 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
1672         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
1673         Writing configure.ac.
1674         (Autoconf Input Layout): Renamed from configure.ac Layout.
1675         (Recreating a Configuration): Renamed from config.status Invocation.
1676         (Obsolete Recreation): Renamed from Obsolete config.status Use.
1677         (acconfig Header): Renamed from acconfig.h.
1678         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
1679         (Writing Testsuites): Renamed from Writing testsuite.at.
1680         (Autom4te Cache): Renamed from autom4te.cache.
1682         * BUGS: Remove mention of VPATH problem, since it's now documented
1683         not to be a bug in the Autoconf build procedure itself, but rather
1684         a problem with the proprietary `make' programs.
1686         * doc/autoconf.texi (Build Directories): Add a cross reference
1687         to VPATH and Make.
1689         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
1690         * doc/standards.texi: Sync from gnulib.
1692         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
1693         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
1694         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
1695         generated automatically.
1697 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1699         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
1700         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
1701         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
1703 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1705         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
1706         `CEOF$ac_eof' special marker, the awk script cannot contain a
1707         line matching `^CEOF', so this is not needed any more.
1708         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
1709         special marker in the test.
1711 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
1713         * tests/tools.at (autom4te preselections): Use `find -newer';
1714         remove one of the sleeps.
1716         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
1717         more readable, using ...
1718         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
1720         * doc/autoconf.texi (autoheader Invocation): Do not double-
1721         quote the parameter of `AH_BOTTOM' in the example.
1723 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
1725         * doc/autoconf.texi (Configuration Headers): Remove the
1726         example with multiple input files.
1727         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
1728         multiple input files.
1730 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1732         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
1733         creating the awk substitution script, handle one input line at a
1734         time, so that the maximum length of a substituted (multi-line)
1735         value is not limited by the size of the sed pattern space.
1736         The trade-off is a slightly repetitive sed script.
1737         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
1738         can only have up to 7 characters, due to Solaris 10 /bin/sed.
1739         * tests/torture.at (Substitute a 2000-byte string): Increase the
1740         test with several long lines, they should not be caught by sed
1741         limits any more.
1743         * tests/tools.at (autom4te preselections): New test, to flag
1744         entries missing from autom4te.cfg.
1745         Report by David Byron <dbyron@hheld.com>.
1747         * tests/torture.at (Substitute a 2000-byte string): Actually use
1748         AC_PROG_AWK, so the last change works as intended.
1749         (Substitute and define special characters): Likewise.
1750         (Substitute a newline): Likewise.
1752         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
1753         instead of `awk' consistently.
1754         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
1755         * tests/torture.at (Torturing config.status): Test both the
1756         result of AC_PROG_AWK and plain awk.
1757         (Substitute a 2000-byte string): Likewise.
1758         (Substitute and define special characters): Likewise.
1759         (Substitute a newline): Likewise.
1761 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1763         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
1764         can be assigned to a function pointer.  Problem reported by
1765         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
1766         part of a patch by Ralf Wildenhues in that same bug report.
1768 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1770         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
1771         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
1773 2006-12-01  Eric Blake  <ebb9@byu.net>
1775         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
1776         cross-compiling from cygwin to mingw.
1777         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
1778         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
1779         to lib/autoconf/c.m4.
1781 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1783         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
1784         string for more reliable failure.  Wrap the entire test that
1785         causes the broken Solaris printf to dump core, in a subshell,
1786         so the segmentation fault message is reliably suppressed.
1787         Fix shell expansion errors by using /usr/ucb/echo always;
1788         avoid an error on systems without it by another subshell.
1789         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
1790         subshell-$as_echo to `as_echo', for better error message.
1792 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1794         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
1795         `BASH_SOURCE' contain a newline, set them to empty, as they may
1796         not be unset.
1798 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
1800         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
1801         years and is too hard to maintain now.  The last straw was
1802         reported by Jerker Baeck in
1803         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
1804         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
1805         * doc/autoconf.texi (Particular Functions): Move
1806         AC_FUNC_SETVBUF_REVERSED from here...
1807         (Obsolete Macros): ... to here.  Say that it does nothing now.
1808         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
1809         Turn into (almost) a no-op.
1811         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
1812         (AC_C_VOLATILE):
1813         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
1814         These macros are obsolescent and new applications shouldn't need them.
1815         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
1816         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
1817         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
1818         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
1819         (AC_FUNC_VPRINTF): Likewise.
1820         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
1821         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
1822         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
1824         * doc/autoconf.texi (Setting Output Variables): Mention that
1825         @VAR1@VAR2 has unspecified behavior.  Problem reported by
1826         Ralf Wildenhues.
1827         * NEWS: Mention this.
1829         * Makefile.am: Put only a single '#' into the copyright notice,
1830         so that it's also present in the output file.  Standardize wording
1831         in makefile copyright notices to match GNU coding standards.
1832         * bin/Makefile.am: Likewise.
1833         * doc/Makefile.am: Likewise.
1834         * lib/Makefile.am: Likewise.
1835         * lib/freeze.mk: Likewise.
1836         * lib/autoconf/Makefile.am: Likewise.
1837         * lib/autoscan/Makefile.am: Likewise.
1838         * lib/autotest/Makefile.am: Likewise.
1839         * lib/m4sugar/Makefile.am: Likewise.
1840         * man/Makefile.am: Likewise.
1841         * tests/Makefile.am: Likewise.
1842         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
1843         one-line file.
1845 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1847         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
1848         in the sed script that mangles the awk script: delete up to the
1849         first exclamation mark only.
1850         * tests/torture.at (Substitute and define special characters):
1851         Test '!' too.
1853 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1855         Rewrite config files generation: avoid quadratic growth in
1856         the number of substituted variables by using awk instead of sed
1857         for the bulk of the substitutions.
1858         * NEWS: Mention this.
1859         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
1860         forbidden in the output (and thus input) file.
1861         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
1862         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
1863         generate just one large awk script for substitutions,
1864         eliminating much of the earlier complexity, while adding some
1865         new complexity.  Only expand the substitution templates at
1866         configure time, for smaller configure script size.  If
1867         _AC_SUBST_FILES are used, test 'awk' for working getline support
1868         at config.status time.  If absent, interpolate through the
1869         shell.  The awk script was written with much help
1870         from Paolo Bonzini and Paul Eggert.
1871         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
1872         (_AC_SED_FRAG_NUM): Likewise.
1873         (_AC_SUBST_CMDS): Renamed from...
1874         (_AC_SED_CMDS): ...this.
1875         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
1876         * tests/torture.at (Substitute a 2000-byte string): Also
1877         substitute a line with 1000 words, and a variable with several
1878         long lines.
1879         (Substitute and define special characters): Test awk special
1880         characters, and put substitution input strings `@foo@' in the
1881         output, to test that no recursion happens; test several other
1882         combinations from Paolo Bonzini.
1884 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1886         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
1887         that replaced echo with AS_ECHO where this wasn't necessary.
1888         Problem reportd by Ralf Wildenhues.
1889         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
1890         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
1891         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
1893 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1895         * lib/freeze.mk (GREP): Removed, no need to initialize this.
1897 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1899         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
1900         that traditional Awk lacks 3-arg "split".  It has it.
1901         Mention that FS must be a single character, and a few other
1902         99-byte limits of traditional Awk.
1903         Mention that if (i in a) doesn't work with traditional Awk.
1905 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1907         * tests/autotest.at (BSx641-newline in command):
1908         (BS-BS-newline in command, BSx640-newline in command):
1909         (Newline-CODE-BS-newline in command):
1910         (Single-quote-BS-newline in command):
1911         (Single-quote-newline-BS-newline in command):
1912         Use printf '%s\n' instead of echo, for portability to hosts
1913         where echo interprets backslashes.  This will break on hosts
1914         that lack printf, but for now let's assume all such hosts
1915         are dead (if not, we should get reports of test failures).
1917 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1919         'echo' has some portability problems, when given a first argument
1920         with a leading '-', or when given any argument containing '\'.
1921         Avoid using 'echo' in these cases.
1922         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
1923         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
1924         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1925         * lib/autotest/general.m4 (AT_INIT): Likewise.
1926         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
1927         argument might be unportable.
1928         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
1929         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
1930         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
1931         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
1932         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
1933         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
1934         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
1935         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
1936         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
1937         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
1938         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
1939         (AC_PROG_MAKE_SET): Likewise.
1940         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
1941         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
1942         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
1943         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
1944         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
1945         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
1946         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
1947         * bin/autoconf.as: Redo verbose flag implementation, as the old
1948         scheme wouldn't work with AS_ECHO.
1949         * lib/autotest/general.m4 (AT_INIT): Likewise.
1950         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
1951         Don't use ECHO_T, since ECHO_N is now reliable.
1952         * lib/autotest/general.m4 (AT_INIT): Likewise.
1953         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
1954         rather than using a here-document to put the script into a file.
1955         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
1956         use AS_ECHO.
1957         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
1958         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
1959         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
1960         bug, but we might as well stop using ECHO_N and ECHO_C internally.
1961         * lib/autotest/general.m4 (AT_SETUP): Likewise.
1962         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
1963         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
1964         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
1965         operand, as AS_ECHO requires.  Avoid double file name expansion.
1966         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
1967         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
1968         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
1969         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
1970         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
1971         Double-quote strings that would otherwise contain M4 comments.
1972         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
1974         * configure.ac (AC_INIT): Bump to 2.61a.
1975         * NEWS: Likewise.
1977 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1979         Version 2.61.
1981         * configure.ac (AC_INIT): Bump to 2.61.
1982         * NEWS: Likewise.
1984         * tests/autotest.at (Macro with backslash in a test title):
1985         Comment out for now, as this tests neither fails nor passes
1986         reliably.  Problem reported by Ralf Wildenhues.
1988 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1990         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
1991         in previous change, which caused test failures.
1993 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
1995         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
1996         code for --enable, --disable, --with, and --without to...
1997         (_AC_INIT_PARSE_ENABLE): ... a new macro.
1998         * doc/autoconf.texi (Package Options):
1999         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
2001 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2003         Import these changes from config via gnulib:
2005         2006-11-15  Ben Elliston  <bje@gnu.org>
2007         From Josselin Mouette <joss@debian.org>:
2008         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
2010         2006-11-08  Ben Elliston  <bje@gnu.org>
2012         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
2014         2006-11-07  Steve Woodford  <scw@NetBSD.org>
2015                     Ben Elliston  <bje@gnu.org>
2017         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
2018         * build-aux/config.sub (sh5el): New basic_machine.
2021         Import this change from coreutils:
2023         2006-02-13  Jim Meyering  <jim@meyering.net>
2025         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
2028         Import this change from gnustandards via gnulib:
2030         2006-11-15  Karl Berry  <karl@gnu.org>
2032         * standards.texi: core -> memory, throughout.
2033         (CPU Portability): show correct example of calling write
2034         on a char value; thanks to Paul Eggert for the code.
2035         Both of these suggestions from Eugene Y. Vasserman.
2038         Import these changes from texinfo via gnulib:
2040         2006-11-08  Karl Berry  <karl@gnu.org>
2042         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
2043           as well as pdf images, since they are supported in pdftex with
2044           no further ado.
2046         2006-11-05  Karl Berry  <karl@gnu.org>
2048         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
2050 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
2052         * NEWS: Document the AC_ARG_WITH change.
2054 2006-11-13  Bruno Haible  <bruno@clisp.org>
2056         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
2057         options, transliterate also dots to underscores.
2058         (_AC_ENABLE_IF): Transliterate also dots to underscores.
2059         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
2060         first argument may also contain dots.
2062 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2064         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
2065         benefit of platforms like Solaris+GCC where it is common to have a
2066         non-working g++ installation.
2068 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2069         and Joel E. Denny  <jdenny@ces.clemson.edu>
2070         and Paul Eggert  <eggert@cs.ucla.edu>
2072         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
2073         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
2074         ./micro-suite.
2076 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2078         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
2079         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
2080         Imported from a similar patch to gnulib by Bruno Haible.
2082 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2084         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
2085         * doc/autoconf.texi (C Compiler): Document them.
2086         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
2087         New macros, taken from gnulib.
2089 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2091         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2092         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2093         Matthew Woehlke.
2095 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2097         * tests/torture.at (Configuring subdirectories): Do not skip
2098         Automake 1.10 nor future Automake 11.1 (sic).
2100 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
2101         and Stepan Kasal  <kasal@ucw.cz>
2103         Handle special characters in test case titles correctly.
2104         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
2105         properly.
2106         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
2107         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
2108         argument.  Extend to check titles printed by ./micro-suite and
2109         ./micro-suite -l and the title in micro-suite.log.
2110         (Backquote in a test title,
2111         Single-quote in a test title,
2112         Double-quote in a test title): Don't expect failure anymore.
2113         (Backslash in a test title): Put a non-whitespace character after the
2114         backslash so that Bourne shells might actually see it as an escape
2115         sequence.
2116         (Brackets in a test title,
2117         Pound in a test title,
2118         Comma in a test title,
2119         Quoted Macro in a test title,
2120         Macro in a test title,
2121         Macro with single-quote in a test title): New tests.
2122         (Macro with backquote in a test title,
2123         Macro with double-quote in a test title,
2124         Macro with backslash in a test title): New tests expected to fail.
2125         * tests/torture.at (#define header templates): M4-quote this title in
2126         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
2127         The visible effect was a stray [] in the testsuite output.
2129 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2131         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
2132         `trap ... 0' inside a function, for AIX sh.
2134 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2136         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
2137         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
2138         5363) simply issues a warning when dividing by zero at compile
2139         time.  Problem reported by Elias Pipping.
2141 2006-10-26  Eric Blake  <ebb9@byu.net>
2143         * THANKS: Update.
2144         * doc/autoconf.texi (Evaluation Macros): Improve the example to
2145         show effect on macros that expand with commas.
2146         Reported by Joel E. Denny.
2148         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
2149         Also work with M4 1.4.8.
2151 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2153         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
2154         Jim Meyering.
2156 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
2158         * tests/tools.at (autom4te --force): New test, verifies that
2159         `--force' always rewrites the output file.
2161 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2163         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
2164         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
2166 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
2168         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
2170 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2172         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
2173         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
2174         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
2175         reported by Nelson H. F. Beebe for Coreutils 6.4.
2177         * tests/tools.at (autoconf --trace: user macros): Remove test
2178         for tracing multiline macros, since m4 1.4.7a uses a different
2179         way to number lines.  Problem reported by Ralf Wildenhues.
2181 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
2183         * bin/autom4te.in (handle_m4): Do not redirect stdin to
2184         /dev/null since the heuristics for interactive behaviour was
2185         fixed in CVS m4.
2187         * bin/autom4te.in: With --force, always refresh the output
2188         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
2190         * bin/autoconf.as: Fix the verbose message at the end.
2192 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2194         * configure.ac (AC_INIT): Bump to 2.60c.
2195         * NEWS: Likewise.
2197 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2199         * NEWS: Version 2.60b.
2201         Import this change from Texinfo:
2202         2006-10-15  Karl Berry  <karl@gnu.org>
2203         * build-aux/texinfo.tex: automake 1.10
2205         * NEWS: Remove AC_CACHE_CHECK_INT.
2206         * doc/autoconf.texi (Caching Results): Likewise.
2207         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
2208         AC_CACHE_CHECK_INT, since it's no longer public.
2209         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
2210         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
2212 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2214         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
2216 2006-10-19  Eric Blake  <ebb9@byu.net>
2218         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
2219         (m4_maketemp): Avoid warnings with M4 1.9a.
2220         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
2221         m4_mkstemp.
2222         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
2223         * NEWS: Likewise.
2225 2006-10-16  Eric Blake  <ebb9@byu.net>
2227         * doc/autoconf.texi (Setting Output Variables): Fix typo.
2229         * bin/autoconf.as (version): Reword to match GNU Coding
2230         Standards.
2231         * bin/autoheader.in (version): Likewise.
2232         * bin/autom4te.in (version): Likewise.
2233         * bin/autoreconf.in (version): Likewise.
2234         * bin/autoscan.in (version): Likewise.
2235         * bin/autoupdate.in (version): Likewise.
2236         * bin/ifnames.in (version): Likewise.
2238 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
2240         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
2241         looking for special shell characters.
2242         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
2243         macro defined by AS_VAR_PUSHDEF before passing it as a
2244         parameter.
2245         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
2246         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
2247         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
2248         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
2249         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
2250         Likewise.
2251         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
2252         AS_VAR_* properly.
2253         * tests/m4sh.at (AS_LITERAL_IF): New test.
2255 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2257         (Imported from Automake.)
2258         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2259         which incorrectly sets the mode of an existing destination
2260         directory.  In some cases the unpatched install-sh could do the
2261         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2262         system.  We hope this is rare in practice, but it's clearly worth
2263         fixing.  Problem reported by Alex Unleashed in
2264         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2265         Also, don't bother to check for -m bugs unless we're using -m;
2266         suggested by Stepan Kasal.
2268 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2270         Import this change from Automake:
2272         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
2273         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
2274         is enabled by default with gnu and gnits strictness.
2275         Report from Bruno Haible.
2277         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
2278         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
2279         gnu and gnits modes.
2281         Import this change from Config:
2283         2006-09-20  Ben Elliston  <bje@gnu.org>
2284         * build-aux/config.sub (score, score-*): New.
2286         Import this change from Gnulib:
2288         2006-09-16  Karl Berry  <karl@gnu.org>
2289         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
2290         to avoid sectioning errors.
2292         Import these changes from Texinfo:
2294         2006-10-04  Karl Berry  <karl@gnu.org>
2295         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
2296         (\quoteexpand): rename to \rquoteexpand.
2297         (\codequoteleft): new def, to look for @set codequotebacktick.
2298         (\lquoteexpand, \quoteexpand): new defs.
2299         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
2300         (\code): must use new \...Char values, since now ` is active.
2302         2006-08-26  Karl Berry  <karl@gnu.org>
2303         * build-aux/texinfo.tex (\textdegree): New command.
2305         2006-08-12  Karl Berry  <karl@gnu.org>
2306         * build-aux/texinfo.tex (error \box0): smaller font.
2308 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2310         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
2312 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
2314         * doc/autoconf.texi (Autoheader Macros): Warn that the text
2315         added to the template can get mangled.
2317 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2319         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
2320         include the default headers, and redefine obstack_chunk_alloc
2321         and obstack_chunk_free.  Fixes false failure with glibc.
2323 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2325         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
2326         for backward compatibility with Libtool 1.5.22.  Problem reported
2327         by Ralf Wildenhues.
2329 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2331         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
2332         AC_PROG_CC.
2333         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
2335 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2337         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
2338         the NonStop platform.
2339         * doc/autoconf.texi (Posix Variants): Likewise.
2340         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2342         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
2343         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
2344         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
2345         Use a better substitute, by inspecting the output of "ls"
2346         rather than just using ":".
2347         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
2348         rather than AS_EXECUTABLE_P, since we needn't worry about
2349         non-regular files here.
2351         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
2352         due to configuration hassles with this.  See Tonya Underwood's report
2353         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
2354         * doc/autoconf.texi (Special Shell Variables): Likewise.
2356 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2357             Stepan Kasal  <kasal@ucw.cz>
2359         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
2360         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
2362 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
2364         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
2365           initialization which is not inherited through the environment
2366         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
2367         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
2369 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
2371         * doc/autoconf.texi (Limitations of Usual Tools): Describe
2372         problems with mkdir -p -m.
2374 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
2376         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
2377         comment about ac_cpp_err; it was incorrect, and anyway
2378         ac_cpp_err is being removed below.
2379         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
2380         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
2381         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
2382         nobody uses it.
2383         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
2384         with werror_flag and conftest.err and so forth.  This is more
2385         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
2386         and anyway the user shouldn't normally want to see this gorp logged.
2387         Problem reported by Ralf Wildenhues.
2388         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
2389         empty, not 'no', since the rest of the code uses 'test -z'.
2391 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2393         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
2394         Use a single call to AC_DO_TOKENS rather than multiple, for
2395         efficiency.
2396         (_AC_LINK_IFELSE): Test that resulting file is executable.
2397         Problem reported by mwoehlke in
2398         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
2400         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
2401         than creating a file to use with test -x; this is much faster.
2403 2006-10-02  Bruno Haible  <bruno@clisp.org>
2405         * lib/autom4te.in (Automake-preselections): Add
2406         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
2408 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
2410         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
2411         standard error, `experr' should be used, not `expout'.
2413 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2415         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
2416         fseeko testing program twice; just use the earlier result.
2417         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
2418         Set cache var to 'unknown' (not 'no') if leaving the macro unset
2419         still doesn't let the program compile.
2420         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
2421         failed.
2423         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
2424         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
2425         include it, without including anything else.
2426         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
2427         expressions.
2428         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
2430 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2432         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
2433         `error.h', and include it, for a `error_at_line' prototype.
2434         Use a nonempty format string in the link test.
2435         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
2436         for a declaration of wait3.
2438 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2440         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
2441         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
2442         can apply to constants too, and that it checks for macro defns.
2443         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
2444         and simply cast the identifier to void.  This handles structure
2445         values.  Problem reported by Ralf Wildenhues.
2446         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
2448 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2450         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
2451         structure, and function symbols.
2453 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2455         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
2456         member.
2458 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2460         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
2461         * README: Likewise.
2462         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2464 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2465         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2467         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
2468         warnings (uninitialized value).
2469         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
2470         present.
2471         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
2472         parentheses.
2473         (AC_STRUCT_TM): Likewise, avoid unused variables.
2475 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2477         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
2478         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
2479         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
2480         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
2481         Report by Olly Betts.
2483 2006-09-19  Eric Blake  <ebb9@byu.net>
2485         * m4/m4.m4: Change copyright.
2486         * configure: Regenerate.
2487         * Makefile.in: Likewise.
2488         * bin/Makefile.in: Likewise.
2489         * doc/Makefile.in: Likewise.
2490         * lib/Makefile.in: Likewise.
2491         * lib/Autom4te/Makefile.in: Likewise.
2492         * lib/autoconf/Makefile.in: Likewise.
2493         * lib/autoscan/Makefile.in: Likewise.
2494         * lib/autotest/Makefile.in: Likewise.
2495         * lib/emacs/Makefile.in: Likewise.
2496         * lib/m4sugar/Makefile.in: Likewise.
2497         * man/Makefile.in: Likewise.
2498         * tests/Makefile.in: Likewise.
2500         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
2501         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
2502         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
2503         --error-output, to avoid warnings with M4 2.0.
2505 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
2507         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
2508           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
2509         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
2511 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
2513         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
2514         expansion of AC_CHECK_FUNCS.
2516 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
2518         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
2519         mistaken comment: the path has to be relative; do not use
2520         the path at runtime.
2522 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2524         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
2525         argument to `--prefix' for sub-configure scripts.
2526         Pass `--silent' to sub-configure scripts.
2527         * tests/torture.at (Configuring subdirectories): Add tests
2528         for both changes.
2529         * doc/autoconf.texi (Setting Output Variables): Fix example to
2530         not show `--silent' being passed to a `configure' re-run.
2532 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2534         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
2535         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
2536         for the existence of the directory at configure-time.  That's
2537         too late, anyway.  Problem reported by Stefan Seefeld.
2539         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
2540         7.1.4 /usr/bin/posix/sh described by Tim Rice in
2541         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
2543 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
2545         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
2546         works with GNU M4 1.4.3 again; make the normalized form
2547         match the current m4 message; fix the description.
2548         * test/tools.at (autom4te cache): Adapt to the change.
2550 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
2552         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
2553         to catch glibc bug 2821
2554         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
2556         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
2557         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
2558         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
2559         assume C89.
2561 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
2563         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
2564         preselections ...
2565         (Autoconf): ... here.
2566         (Autoscan-preselections): Delete.
2568 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
2570         * lib/autom4te.in (Automake-preselections): Preselect
2571         AM_ENABLE_MULTILIB.
2573 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2575         * doc/autoconf.texi (Preset Output Variables): srcdir and
2576         top_srcdir are not necessarily relative.  Problem reported
2577         by Dries Kimpe.
2579 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2581         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
2582         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
2583         accept files with extension `.f'.  For consistency, also prefer
2584         xlf over f77.
2585         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
2586         from last patch.
2588 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2590         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
2591         of ERLANG_LIB_VER_* variables.
2592         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
2593         variables.
2595 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2596         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2598         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
2599         bugs of Bash 2.01 and 2.05a.
2600         (Fortran Compiler): Document that AC_PROG_CC should be called
2601         before AC_PROG_FC, due to a bug in Autoconf.
2603 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2605         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
2606         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
2607         except the first two arguments are reversed.
2608         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
2609         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
2610         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
2611         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
2612         equivalent to the old AC_COMPUTE_INT.
2613         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
2614         All uses changed to AC_CACHE_CHECK_INT.
2615         * tests/base.at (AC_CACHE_CHECK_INT): New test.
2616         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
2618 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2620         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
2621         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
2622         programs should use their Gnulib counterparts.
2623         * doc/autoconf.texi (Particular Functions): Likewise.
2624         (Macro Names, testsuite Invocation): Replace uses of these
2625         obsolete macros with uses of non-obsolete macros.
2627 2006-08-29  Eric Blake  <ebb9@byu.net>
2629         * configure.ac (AC_INIT): Bump to 2.60b.
2630         * NEWS: Update.
2632 2006-08-28  Eric Blake  <ebb9@byu.net>
2634         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
2635         mistakenly swapped on 2006-08-15.
2637 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2639         * NEWS: Version 2.60a.
2641 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
2643         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
2644         file created by the PGI compiler.
2646 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
2648         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
2649         simplify the code.
2651 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2653         Fix Lex library problem reported to us by Julio Garvia.
2654         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
2655         for the default, which the user can override.
2656         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
2657         deal with LEXLIB.
2658         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
2659         didn't work if some values were cached but not others.  Test for
2660         broken lex libraries like native ia64-hp-hpux11.22; see
2661         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
2662         work around the problem by preferring an empty LEXLIB to -lfl or
2663         -ll.  Let the user set LEXLIB='' to indicate no library needed.
2665         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
2666         * README: Likewise.
2667         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2669 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2671         Rework to use more-modern build style.
2672         Many files are renamed; all uses of their names were changed.
2673         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
2674         * .x-sc_useless_cpp_parens: New file.
2675         * build-aux/config.guess: Renamed from config/config.guess.  Update.
2676         * build-aux/config.sub: Renamed from config/config.sub.  Update.
2677         * build-aux/elisp-comp: Renamed from config/elisp-comp.
2678         * build-aux/install-sh: Renamed from config/install-sh.  Update.
2679         * build-aux/mdate-sh: Renamed from config/mdate-sh.
2680         * build-aux/missing: Renamed from config/missing.
2681         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
2682         * build-aux/vc-list-files: Renamed from config/vc-list-files.
2683         * config/Makefile.am: Removed.
2684         * config/mkinstalldirs: Removed.
2685         * config/move-if-change: Removed.
2686         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
2687         * Makefile.am (SUBDIRS): Remove config.
2688         (ACLOCAL_AMFLAGS): Include from m4, not config.
2689         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
2690         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
2691         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
2692         Fail if there's an error.
2693         * Makefile.cfg (move_if_change): Remove.
2694         (wget_files): Remove.
2695         (cvs_executable_files): New macro.
2696         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
2697         (executable-update): Use $(cvs_executable_files).
2698         (local-checks-to-skip): Remove.
2699         * Makefile.maint: Merge from coreutils, plus add our own changes
2700         (gzip_rsyncable): New macro.
2701         (GZIP_ENV): Use it.
2702         (CVS_LIST): Use build-aux/vc-list-files.
2703         (VERSION_REGEXP): New macro.
2704         (local-checks-available): Add patch-check, $(syntax-check-rules),
2705         check-AUTHORS.
2706         (syntax-check-rules): Compute dynamically.
2707         (sc_cast_of_x_alloc_return_value): Work even if no source files.
2708         (sc_cast_of_alloca_return_value): Likewise.
2709         (sc_prohibit_atoi_atof): Simplify regexp.
2710         (sc_no_if_have_config_h, sc_require_config_h):
2711         (sc_prohibit_assert_without_use,
2712         (sc_obsolete_symbols): Check for O_NDELAY.
2713         (sc_texi_notab): Remove.
2714         (sc-changelog): Don't make an exception for '----' lines.
2715         (.re-list): Remove, so we don't have a junk file behind.
2716         (sc_system_h_headers): Remove the need for .re-list.
2717         (sc_the_the):  New rule.
2718         (sc_tight_scope): Simplify.
2719         (sc_trailing_blank): Renamed from sc_trailing_space.
2720         (longopt_re): New macro.
2721         (sc_two_space_separator_in_usage): New rule.
2722         (sc_unmarked_diagnostics): Look at all files under CVS.
2723         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
2724         (news-date-check, changelog-check): Version is OK.
2725         (po-check): Look for lib files even if not in CVS.
2726         (copyright-check): Use $() not ``.
2727         (maintainer-distcheck): Do not depend on changelog-check.
2728         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
2729         Also check for -Wpointer-arith.
2730         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
2731         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
2732         Remove.
2733         (announcement): Add --gpg-key-id arg.
2734         (cvs-sv): Remove.
2735         (move_if_change): Just use mv.
2736         (local_updates: Remove wget-update, po-update.
2737         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
2738         (config.guess-url_prefix, config.sub-url_prefix): Remove.
2739         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
2740         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
2741         ($(get-targets)): Remove.
2742         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
2743         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
2744         (cvs-update): Get from gnulib.
2745         (emut_upload_commands): gnupload is in build-aux now.
2746         (alpha beta major): Add changelog-check.  Check version.
2747         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
2748         (AC_CONFIG_FILES): Remove.
2749         * bin/autoconf.as: Add spaces to avoid distcheck warning.
2750         * config/announce-gen: Sync from coreutils.
2751         * doc/make-stds.texi: Sync from gnulib.
2752         * doc/standards.texi: Likewise.
2753         * man/Makefile.am: Adjust for config -> build-aux renaming.
2754         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
2755         * tests/local.at: Adjust from config -> build-aux renaming.
2756         * tests/tools.at: Likewise.
2757         * tests/torture.at: Likewise.
2759         * NEWS: The C99 check now tests for vararg macros and 64-bit
2760         preprocessor ints.
2761         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
2762         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
2763         64-bit preprocessor ints.  Check for static initialization of
2764         long long.  Remove unnecessary casts.
2766 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2768         * doc/autoconf.texi (Particular Programs): Mention that
2769         @INSTALL@ and @MKDIR_P@ may vary for different output files.
2770         Reported by Alexandre Duret-Lutz.
2772 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2774         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
2775         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
2776         Bill Northcott in
2777         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
2779 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2781         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
2782         pacify insanely picky compilers.  Problem reported by Eric Blake.
2784         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
2785         longer supported by Sun.
2787 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2789         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
2790         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
2791         -Wundef -Werror".  Problem reported by David Fang in
2792         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
2793         * doc/autoconf.texi (Header Templates, Default Includes):
2794         (Particular Functions, Generic Functions, Header Portability):
2795         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
2796         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
2797         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
2798         Prefer #ifdef to #if.
2799         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
2800         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
2801         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
2802         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
2803         Likewise.
2804         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
2805         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
2806         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
2807         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
2808         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
2809         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
2810         this.
2812 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2814         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
2815         problems with arg script text that doesn't end in newline, and
2816         with '-e a...'.  Problems reported by Ralf Wildenhues.
2818 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
2820         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
2821         check for libXt by a check for libX11.
2823 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2825         * doc/autoconf.texi (config.status Invocation): Adjust according
2826         to last change.
2828 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2830         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
2831         --help' should mention that `--version' outputs configuration
2832         settings.  Report by Bruno Haible.
2834 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2836         Fix test suite failures reported by Pierre in
2837         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
2838         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
2839         the compiler created a file "b.out" when it didn't create anything
2840         at all.
2841         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
2842         Discard stderr too, when invoking the test script.
2844 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
2846         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
2847         in the restoring of the werror flag.
2849 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2851         * doc/autoconf.texi (Volatile Objects): Be even a little
2852         less skeptical about "volatile", after discussion with
2853         Bruno Haible on bug-gnulib.
2854         (Limitations of Usual Tools): Warn about sed stripping
2855         leading white space from text.  From Bruno Haible.
2857 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2859         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
2860         compiler complains about it, even if things works after the
2861         complaint.  Problem reported by Peter O'Gorman.
2863         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
2864         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
2865         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
2867 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2869         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
2870         after -R regardless of host.  Patrick Welche reports that this
2871         fixes things on NetBSD 3.99.
2873         * NEWS: Recommend M4 1.4.5.
2874         * README: Likewise.
2875         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
2876         * tests/tools.at (autom4te cache): Update wording of diagnostic
2877         to match M4 1.4.5.
2879 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2881         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
2882         under AC_C_VOLATILE.
2883         (Volatile Objects): Be a little less skeptical about what
2884         "volatile" means.  Derived from thoughts by Ben Pfaff in
2885         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
2887 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2889         * doc/autoconf.texi: Fix some typos.
2891 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2893         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
2894         more globally, since the 2006-06-30 patch didn't suffice.  Problem
2895         reported by Keith Marshall.  Also, don't bother with builddir2,
2896         since it shouldn't be needed any more.
2898 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
2900         * doc/autoconf.texi (Generic compiler characteristics):
2901         Document AC_COMPUTE_INT.  Fix wrong statements on Default
2902         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
2904         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
2905         (_AC_COMPUTE_INT): Add obsoletion warnings.
2906         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
2907         AC_COMPUTE_INT.
2909         * NEWS: Document change.
2911 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2913         * doc/autoconf.texi (Volatile Objects): New section.
2915         * NEWS: Document previous change.
2917 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2919         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
2920         Require that long long int be at least 64 bits wide.  C99 requires
2921         this and enough programs depend on it so we should check for it.
2922         Bruno Haible reports in
2923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
2924         that long long int is 32 bits wide with some nonstandard compilers.
2925         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
2927 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2929         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
2930         to a nonexistent file, so that we don't have to worry about
2931         a local site configuration that doesn't use /usr/local.
2932         Problem reported by Keith Marshall in
2933         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
2935 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2937         * doc/autoconf.texi: Be more consistent about using @acronym with
2938         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
2939         quite right (it talked about "OSF/Tru64", even though the
2940         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
2941         and it even mentioned "OSF 4"!) and at this point there's little
2942         reason to talk about OSF any more, since it died in 1994.
2943         (Specific Compiler Characteristics): Simplify example of
2944         negative-size array.
2945         (File Descriptors): Reorder to make the text flow better.
2946         Remove joke about "appreciate the various levels"; I didn't get it.
2947         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
2948         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
2949         (File Descriptors, Limitations of Usual Tools):
2950         Tone down the advice against renaming or removing open files.
2951         (Limitations of Usual Tools): Add a new section, on 'rm'.
2953 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
2955         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
2956         -lXt in LIBS, idea from Karsten Hopp; this was due since
2957         this change:
2959         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2960         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
2961         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
2962         (which belong to Xt, not X itself).  See Debian bug 327655.
2964 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2966         * configure.ac (AC_INIT): Bump to 2.60a.
2967         * NEWS: Update.
2969 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2971         Version 2.60.
2973         * configure.ac, NEWS: Update.
2975 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2977         * config/texinfo.tex: Sync from upstream.
2979         * bin/autom4te.in (handle_traces): Transform the `@S|@'
2980         quadrigraph correctly in traces.
2982         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
2983         Fix typos.
2985         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
2986         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
2987         not defined.
2988         * doc/autoconf.texi (Changed Directory Variables): New node,
2989         to document the whole `datarootdir' business a bit better.
2990         * NEWS: Update.
2991         * tests/torture.at (datarootdir workaround): Extend test.
2992         Prompted by report by Alexandre Julliard.
2994 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2996         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
2997         when using default mode of IBM C 6 for AIX.  Problem and two-line
2998         fix reported by Larry Jones.
3000 2006-06-22  Alexandre Julliard <julliard@winehq.org>
3002         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
3003         about literal '${datarootdir}' if a definition is found in the
3004         output file.
3006 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3008         * NEWS: Use "M4" rather than "m4" when appropriate.
3009         Problem reported by Eric Blake.
3010         * doc/autoconf.texi: Likewise.
3011         Use @acronym around BSD, GCC, and GNU when appropriate.
3012         (Why GNU M4): Renamed from "Why GNU m4".
3013         (Redefined M4 Macros): Mention that Posix
3014         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
3015         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
3016         to int.
3018 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3020         * bin/autom4te.in (handle_output): Do not forbid the empty
3021         pattern.
3022         * tests/tools.at (autoconf: the empty token): New test.
3024 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
3026         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
3027         calls, so that we do not care whether they are LIFO or FIFO;
3028         in the m4_wrap, do not check which diversion is the topmost
3029         one, just check that the stack is balanced at the end.
3030         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
3031         base diversion forever--pop the previous diversion before
3032         opening the new one; consequently, remove the m4_wrap call.
3033         * lib/autotest/general.m4 (AT_INIT): Likewise.
3034         * tests/m4sugar.at: Do not use
3035         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
3037 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
3038         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3040         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
3041         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
3042         Rework example of m4wrap token-pasting trouble so that it doesn't
3043         care whether it's LIFO or FIFO.
3044         Fix some "contrary to"s that are awkward in English.
3046 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3048         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
3049         to `yes' instead of `int$1_t' if the type is found, for more
3050         consistent configure output (where $1 is the number of bits).
3051         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
3052         Suggested by Bruno Haible.
3054         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
3055         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
3056         with system headers.  Report by Bruno Haible.
3058 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3060         * config/config.guess, config/config.sub: Sync from upstream.
3062         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
3063         in order to avoid picking up an older installed frozen m4sh.m4f.
3064         Besides an outdated shell startup, this could have been created
3065         by an earlier M4 version with incompatible frozen file format.
3067 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3069         * README: Recommend m4 1.4.4 instead of 1.4.3..
3070         * doc/autoconf.texi: Likewise.
3071         (Special Chars in Names): Say that $(.FOO) is portable, as
3072         suggested by Stepan Kasal.
3073         (Installation Directory Variables, Build Directories):
3074         (Automatic Remaking, Subdirectories, Fortran Compiler):
3075         (Making testsuite Scripts, Defining Directories):
3076         Quote variable usages better.
3077         (Making testsuite Scripts): Add clean-local rule to makefile
3078         snippet, by Eric Blake.
3079         (Installation Directory Variables): Fix table item font.
3080         Reword slightly to clarify.  Generalize advice about
3081         not using special characters to include all file-related
3082         vars, not just VPATH.
3083         (Special Chars in Variables): Warn about special characters in
3084         $(srcdir) too.
3085         (Assignments): Clarify default-value example as suggested by
3086         Ralf Wildenhues in
3087         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
3088         (Special Shell Variables): Note leading ./ or ../, as suggested
3089         by Eric Blake.
3090         (Limitations of Builtins): Under cd, warn about CDPATH.
3091         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
3092         Ralf Wildenhues.
3094 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3096         * doc/autoconf.texi (Configuration Actions): Remove duplicate
3097         `@var', for texi2html.
3098         (Systemology): Some more word wrapping, for DVI output.
3099         (autom4te Invocation): The short option for `--melt' is `-M',
3100         not `-m'.
3102 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3104         * doc/autoconf.texi: More formatting and English tweaks,
3105         many suggested by Ralf Wildenhues.
3106         Reword to avoid "@code{...}'s" and the like, since it's ugly
3107         with Emacs info mode.  discontents -> woes.
3108         Put a few "will"s back.  time stamp -> timestamp.
3109         side-effect -> side effect.
3111 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3113         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
3114         Warn about $@ not persisting.  Problem reported by Julien Danjou in
3115         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
3116         (Special Chars in Names): Renamed from Leading _ in Macro Names.
3117         Mention other special chars, too.
3119 2006-06-14  Eric Blake  <ebb9@byu.net>
3121         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
3123 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3125         * doc/autoconf.texi: Some systematic minor improvements, as
3126         follows.  Use "makefile" when talking about makefiles
3127         generally (which might be named "makefile" or "Makefile" or even
3128         "foo.mk"), "Makefile" when talking about a specific makefile
3129         called "Makefile".  This unclutters the text from weird quotes
3130         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
3131         values" rather than "@var{foo}s" and similar constructs containing
3132         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
3133         English-language improvements.  Change the prefix "sub-" to "sub"
3134         and "re-" to "re".
3135         Put blank lines around examples more consistently.
3136         Avoid "rather" and "very" as intensifiers.
3137         Avoid "will" as an auxiliary.
3138         (Limitations of Make): Split this node into....
3139         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
3140         (Leading _ in Macro Names, Backslash-Newline-Newline):
3141         (Backslash-Newline Comments, Long Lines in Makefiles):
3142         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
3143         (obj/ and Make, make -k Status, VPATH and Make):
3144         (VPATH and Double-colon, $< in Explicit Rules):
3145         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
3146         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
3147         New nodes, resulting from splitup of Limitations of Make.
3148         All cross-references changed.  Raise the top node from
3149         a section to a chapter, and all subnodes accordingly.
3150         Redo the introductory wording to match the new organization.
3151         (Installation Directory Variables): Use an example that is
3152         closer to what Autoconf actually does.  Mention that VPATH's
3153         value should not contain metacharacters or white space.
3154         (Fortran Compiler): Fix a VPATH bug in an example.
3155         (Leading _ in Macro Names): Mention that this problem is no longer
3156         of practical concern.
3157         (VPATH and Make): Reword the advice to make it clearer
3158         that Autoconf and Automake support VPATH in non-GNU make, but
3159         many packages have bugs in this area.
3160         ($< in Explicit Rules): Refer to Build Directories rather
3161         than using a (non-VPATH-safe) example.
3162         (Automatic Rule Rewriting): Mention the sort of disaster that
3163         can ensue with Solaris-style rule rewriting with VPATH.
3165 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3167         * doc/install.texi (Compilers and Options): Weaken the
3168         suggestion to use GNU make for VPATH builds.
3170         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
3171         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
3173         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
3174         in regular expression.
3176 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3178         * doc/autoconf.texi (Installation Directory Variables):
3179         Drop extra @samp from `@table @samp' item.
3180         (Limitations of Usual Tools): Comment fix.
3181         Do not nest @samp just to point to other table items.
3182         (Writing testsuite.at) <AT_CHECK>: The second argument to
3183         `@dvar' is already @samp'ed.
3184         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
3185         do not use @var in the second argument.
3187 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3189         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
3190         $as_shell.exe too.  Problem reported by Andreas Buening in
3191         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
3193 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3195         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
3196         `unused variable' compiler warning, for `-Wall -Werror'.
3197         Reported by Jaap Haitsma in
3198         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
3200 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
3202         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
3203         case the compiler dumps core.  Problem reported for
3204         OpenServer 5.0.7 by Tim Rice in
3205         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
3206         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
3207         Likewise.
3209 2006-06-06  Tim Rice <tim@multitalents.net>.
3211         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
3212         "ERROR" only shows up in "make check" output if there is an
3213         error.
3215 2006-06-06  Eric Blake  <ebb9@byu.net>
3217         * tests/tools.at (automatically allowed tokens): Fix typo.
3219 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
3221         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
3223         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
3224         typically overflows on x86 CPUs, even though the C standard
3225         requires otherwise.
3227 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3229         * configure.ac (AC_INIT): Bump to 2.59e.
3230         * NEWS: Update.
3232 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3234         Version 2.59d.
3236         * config/texinfo.tex: Sync from upstream.
3238         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
3239         seen, invoke libtoolize with `--ltdl' argument.
3240         * lib/autom4te.in (Autoreconf-preselections): Adjust.
3241         * NEWS: Update.
3242         Suggested by Eric Blake.
3244 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
3246         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
3247         reported by Ralf Wildenhues.
3248         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
3250 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3252         * THANKS: Update.
3254 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
3256         * doc/autoconf.texi: Modernize some of the references to Solaris.
3258 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
3260         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
3261         message issued by AC_REQUIRE.
3262         * tests/m4sugar.at: Check m4_require's error message.
3263         * tests/base.at: Check AC_REQUIRE's error message.
3264         * tests/local.at (AT_CHECK_M4): New macro, almost identical
3265         to...
3266         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
3267         AT_CHECK_M4.
3268         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
3269         `expout' as the last parameter.
3270         * tests/tools.at: Adapt to the above change.
3272 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
3274         * doc/autoconf.texi (Limitations of Usual Tools): Correct
3275         information about race-free implementations of mkdir.
3277 2006-06-04  Eric Blake  <ebb9@byu.net>
3279         * bin/autoreconf.in (help): Document M4 environment variable.
3280         * bin/autoconf.as (Usage): Likewise.
3281         * bin/autom4te.in (help): Likewise.
3282         * doc/autoconf.texi (autom4te Invocation): Likewise.
3284 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3286         * NEWS: GNU make now recommended for VPATH builds.
3287         Mention that some macros are now documented to be obsolescent.
3288         * doc/autoconf.texi:
3289         Prefer "current" to "modern" to describe
3290         currently-used (albeit perhaps old-fashioned) hosts.
3291         Mention which ancient features no longer need to be worried about.
3292         setgid -> set-group-ID
3293         setuid -> set-user-ID (these are the Posix terms)
3294         Fix some misuses of "only".
3295         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
3296         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
3297         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
3298         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
3299         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
3300         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
3301         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
3302         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
3303         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
3304         Mention that these macros are obsolescent.
3305         (Installation Directory Variables): shall -> should
3306         (File Descriptors): Mention that 0, 1, 2 might get reopened.
3307         Mention that it's now safe to use 3 and 4.
3308         (Limitations of Usual Tools): cp -r is now specified by Posix.
3309         Omit longwinded and obsolescent discussion of cp -f.
3310         Modernize discussion of expr, ls.
3311         (Limitations of Make): Modernize discussion of VPATH builds.
3312         Mention $? as a workaround in some cases.
3313         * doc/install.texi (Basic Installation):
3314         Mention "./configure; make; make install" first.  Be more
3315         specific about why this file is generic.  Remove unnecessary
3316         parens.  Remove misleading "only".  Remove obsolete advice
3317         about csh.  Don't say "configure" takes awhile; say it
3318         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
3319         and CC=c99 rather than CC=c89, as these are blessed by current
3320         Posix.  Recommend GNU make if doing a VPATH build.
3322 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
3324         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
3325         examples involving shell prompts.
3327 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
3328         and Paul Eggert  <eggert@cs.ucla.edu>
3330         * doc/autoconf.texi (Here-Documents): Add details about the
3331         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
3332         use "here-documents" instead of "here documents".
3334 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3336         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
3338 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3340         * doc/autoconf.texi (File System Conventions): Warn about ":"
3341         anywhere in directory names.
3343 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3345         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
3346         about quoting the case statement, just in case.
3347         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
3348         was fixed in ksh93g; reported by Ralf Wildenhues.
3350 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
3352         * doc/autoconf.texi (System Services): Do not document
3353         overriding EXEEXT via ac_cv_exeext=ext.
3354         (Particular Programs) <AC_PROG_MKDIR_P>:
3355         Document that ${MKDIR_P} understands --.
3356         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
3357         comment.
3359 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3361         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
3362         argument with leading hyphen.  Problem reported by Paul Eggert.
3364 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
3366         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
3367         about quoting ac_try: quote all of it, if any of it seems suspicious.
3368         This means we don't have to worry about ${ or sed any more.
3369         Also, double-quote the case statement, to work around misuses via
3370         underquoting as reported by Ralf Wildenhues in
3371         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
3372         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
3373         undocumented and dangerous macro.
3374         Problem reported by Ralf Wildenhues in
3375         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
3377 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3379         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
3380         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
3381         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
3383 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
3385         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
3386         since evidently some packages rely on the old, broken behavior.
3387         Problem reported by Ralf Wildenhues in
3388         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
3389         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
3390         pre-2006-05-26 definitions, but leave in the comments that
3391         these macros are dangerous and should not be used.
3392         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
3393         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
3394         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
3395         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
3396         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
3398 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3400         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
3401         the use of 'tr', since this is our only use of 'tr'.
3403 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3404         and Paul Eggert  <eggert@cs.ucla.edu>
3406         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
3407         Don't assume 'grep' works on long lines, since AIX grep doesn't.
3409 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3411         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
3412         the output file in the `${datarootdir}' test.
3414 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
3415         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3417         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
3418         mention of `datarootdir' in the input file(s), but literal
3419         `${datarootdir}' in the output file, and we haven't warned yet,
3420         then warn as well: the user may have (erroneously) used
3421         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
3422         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
3423         * tests/torture.at (datarootdir workaround): Extend this test.
3424         * NEWS: Update.
3426 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3427         and Paul Eggert  <eggert@cs.ucla.edu>
3429         * doc/autoconf.texi (autoheader Invocation): The first argument to
3430         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
3431         alternatives and clear up the language a bit.
3433 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3435         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
3436         ac_config_guess, ac_config_sub, ac_configure.
3437         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
3438         Fix typo that prevented an unnecessary space from being removed.
3439         Problems reported by Ralf Wildenhues in:
3440         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
3442 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3444         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
3445         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
3446         Don't use the term "thread-safe" to talk about mkdir race
3447         conditions, since the problem is more a process than a thread
3448         issue.  Problem reported by Stepan Kasal in:
3449         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
3450         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
3451         the test for 'install' more closely.  Look at MKDIR_P first.
3452         Look in the PATH, and at /opt/sfw/bin.
3453         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
3454         Don't bother to try mkdir -p, since we already check mkdir --version;
3455         just look at the version number.  (There's no easy way to check
3456         for race-free implementations.)
3457         * tests/tools.at (autoconf: subdirectories): Adjust to above
3458         changes, since MKDIR_P now might end in "/mkdir -p".
3460         * doc/autoconf.texi (autoheader Invocation): Mention that the
3461         first arg of AC_DEFINE_UNQUOTED must be a literal.
3462         Problem reported by Ben Pfaff in
3463         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
3465         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
3466         * doc/autoconf.texi (Special Chars in Variables): New section.
3467         (Preset Output Variables): Warn about special chars in CPPFLAGS.
3468         (Installation Directory Variables): Quote $(datadir) better.
3469         (Limitations of Builtins): Describe some of eval's trickiness.
3471         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
3472         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
3473         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
3474         in front of every arg, not just trailing args.  Quote apostrophes.
3475         (_AC_EVAL_ECHO): New macro.
3476         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
3477         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
3478         removed.
3479         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
3480         exposed by quoting of eval argument.  Put the command on line line
3481         so it logs better.
3482         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
3483         (_AC_PATH_X, AC_PATH_X): Quote more safely.
3484         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
3485         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
3486         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
3487         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
3488         Use eval more safely.
3489         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
3490         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
3491         to be replaced.
3492         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
3493         lines, exposed by quoting of eval argument.
3495 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
3496         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3498         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
3499         initialization of `ac_cv_exeext', do not override it if it was
3500         already set, unless it was set to `no', for compatibility with
3501         Autoconf-2.13, and comment this.
3502         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
3503         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
3504         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
3505         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
3506         Document that this test may be overridden by setting
3507         `ac_cv_exeext'.
3509 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3511         Revert these two patches:
3513         2006-04-06  Eric Blake  <ebb9@byu.net>
3514         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
3515         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
3516         2006-04-01.
3518         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
3519         Clean up _AC_COMPILER_EXEEXT* macros.
3520         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
3521           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
3522           ac_file to the name of the default output file and call
3523           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
3524           initial `rm' of the candidate files...
3525         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
3526           the same list in subsequent `rm' calls, and for the temporary
3527           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
3528           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
3529         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
3530         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
3531           no longer needed) by libtool.  Make it a cache check.
3532         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
3533           copied here by mistake.
3534         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
3535           _AC_COMPILER_EXEEXT.
3536         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
3537           _AC_COMPILER_OBJEXT directly.
3538         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3540 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3542         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
3543         Fix description of how the buggy `sed' works.
3545 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
3547         Sync from Automake:
3549         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
3550         ENOLCK.  Only mention `make -j' when applicable.  Only raise
3551         fatal errors when `make -j' is involved.  Improve error message.
3553 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3555         * doc/autoconf.texi (Here-Documents): We now know more about
3556         the variable expansion in here documents bug.
3557         Thanks to Tim Rice and Stepan Kasal.
3559         * doc/autoconf.texi (Making testsuite Scripts): Add an example
3560         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
3562 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3564         * tests/autotest.at (Multiline command from M4 expansion):
3565         No failure to be expected if the shell quotes newlines in
3566         commands in the `set -x' output.  Report by Tim Rice.
3567         * THANKS: Update.
3569 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3571         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
3572         expansion in the here-documents used by config.status, as that
3573         runs afoul of the Korn shell version M-12/28/93d bug described in
3574         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
3575         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
3576         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
3578 2006-05-23  Jim Meyering  <jim@meyering.net>
3580         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3581         Fix typo introduced with 2006-04-02 change.  It reversed the sense
3582         of the test.
3584 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3586         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
3587         ac_dB slightly, to save bytes in the script.
3588         Max out at 50 lines, rather than 96; this is more likely
3589         (though not guaranteed) to avoid obscure 'sed' failures.
3591 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3593         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
3594         `tr -d -' as bad option argument.  Work around this by deleting
3595         an unrelated character.
3596         Report by Tim Rice <tim@multitalents.net>.
3598 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
3599             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
3600             Stepan Kasal  <kasal@ucw.cz>
3602         * doc/autoconf.texi (Particular Programs): Do not promise that
3603         we always prefer the GNU version of the program, and that we
3604         search according to PATH; both rules can have exceptions.
3605         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
3606         AC_PROG_SED.  Move descriptions of limitations
3607         to the Limitations of Usual Tools section.
3608         (Limitations of Usual Tools) <sed>: Mention script length
3609         limitations with Solaris /usr/ucb/sed.
3610         <grep>: Fix wording for empty alternative.  Mention that -c and
3611         -l should not be combined, and that -E and -F should not be
3612         combined.
3614 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3615         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3617         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
3618         limits in Solaris 8 /usr/ucb/sed by testing a long script.
3620 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
3622         * doc/autoconf.texi (Defining Symbols): Literal parameter of
3623         AC_DEFINE is now passed to m4_pattern_allow.
3624         * NEWS: Mention that; likewise for AC_SUBST.
3625         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
3626         the parameter to m4_pattern_allow.
3627         * tests/tools.at: Add a check for that.
3629 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
3631         * lib/autoconf/status.m4: Fix typos.
3633 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3635         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
3636         only the files that this macro generates.
3638 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3640         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
3641         the HP-UX sed limitation of 99 commands, labels do not count.
3642         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
3643         in the comment.
3644         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
3646 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3648         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
3649         Import the following fix from coreutils:
3651         2006-01-13  Jim Meyering  <jim@meyering.net>
3653         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
3654         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
3655         not double-quote uses of that variable, to accommodate the rare
3656         case in which getmntent is available in none of the libraries
3657         checked.  This happens at least on FreeBSD 5.0.
3659 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3661         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
3662         ac_config_guess, ac_config_sub, and ac_configure, since evidently
3663         some other programs unwisely rely on these undocumented vars.
3664         But put in warning comments about them.
3665         Problem reported by Ralf Wildenhues in
3666         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
3667         * NEWS: Document that these variables are intended to go away.
3669 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3671         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
3672         and set the language to C++ (analogous to the equivalent Fortran
3673         tests).
3675         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
3676         * doc/autoconf.texi (C++ Compiler): Document it.
3677         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
3678         * NEWS: Update.
3680 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3682         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
3683         that caused config.status to generate 100-command sed scripts; the
3684         portable limit is 99.
3686 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3688         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
3689         variable `ac_d' instead of `d' to avoid infringing namespace.
3690         Report by Ralf Menzel.
3692 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3694         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
3695         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
3696         * tests/tools.at (autoconf: subdirectories): New test, taken from
3697         the corresponding problem report by Ralf Wildenhues in:
3698         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
3700         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
3701         Quote some uses of shell variables if they might suffer unexpected
3702         globbing.  This doesn't fix all instances of quoting problems that
3703         I found, just the easy ones that look safe.
3704         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
3705         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
3706         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
3707         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
3708         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
3709         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
3710         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
3711         Likewise.
3712         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
3713         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
3715 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3717         * bin/autoreconf.in ($help): Reword according to the manual.
3718         Suggested by Olly Betts.
3720 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
3721         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3723         * bin/autoreconf.in: Pass the directory argument to
3724         `require_configure_ac'.  Fix comment.
3725         * tests/torture.at (Configuring subdirectories): Expose this.
3726         Reported by Olly Betts.
3728 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3730         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
3731         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
3732         Automake as follows:
3734         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
3735         `$configure_in' instead of `configure.in', to preserve
3736         directory component.
3738 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3740         * config/config.guess, config/config.sub, config/texinfo.tex,
3741         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
3743 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3745         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
3746         test for C99 conformance; (bool) 0.5 is an integer constant
3747         expression, but (bool) -0.5 is not.  Problem reported by Fedor
3748         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
3750 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3752         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
3753         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
3754         Warn about obsolete install-sh files.  Remove stray sentence
3755         fragment and fix cross reference.
3756         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
3757         install -d; this undoes the 2006-05-10 change.
3758         (MKDIR_P): Mark with AN_MAKEVAR.
3759         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
3760         that we don't require $INSTALL to be thread-safe.  Move comments
3761         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
3762         of AC_PROG_INSTALL.  Output a message saying that we're checking
3763         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
3764         MKDIR_P instead of AC_SUBST.
3765         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
3766         Special magic for MKDIR_P, too.
3767         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
3768         a dnl.
3769         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
3771 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3773         Sync from Automake, as follows:
3775         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3776         * config/install-sh: Initialize IFS, so field splitting isn't
3777         turned off later.
3778         * config/mkinstalldirs: Likewise.
3779         * config/missing: Remove superfluous quotes.  Replace all uses of
3780         `[' by `test', for consistency, and for..
3781         * config/missing (sed_minuso, sed_output): New variables.
3782         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
3783         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
3784         Fixes `missing' to detect `--output' for help2man.  Fixes
3785         PR automake/483.  Report by Dennis J. Linse.
3786         (autom4te): Document in `missing --help'.
3788 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3790         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
3791         * config/install-sh: Don't use 'path' to talk about file names,
3792         as per GNU coding standards.  Close a race condition reported by Ralf
3793         Wildenhues and Stepan Kasal.  There is still a race condition
3794         on hosts that predate Posix 1003.1-1992, but we can't help this.
3795         Don't mishandle weird characters like space on pre-Posix hosts.
3796         Invoke mkdir at most once per dir arg on pre-Posix hosts.
3797         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
3798         AC_PROG_MKDIR_P from AS_MKDIR_P.
3799         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
3800         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
3801         earlier editions are not (including Automake 1.8.3).
3802         Do not suggest mkinstalldirs for thread-safety.
3803         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
3804         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
3805         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
3806         presence of special characters and race conditions.
3807         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
3808         in Autoconf's name space.
3810 2006-05-10  Bruno Haible  <bruno@clisp.org>
3811         and Paul Eggert  <eggert@cs.ucla.edu>
3813         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
3814         from Automake with minor changes.
3815         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
3817 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3819         * config/install-sh: Update to Automake CVS version, as follows:
3820         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
3821         * lib/install-sh: Simplify the expr implementation of dirname.
3822         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3823         * lib/install-sh: Handle --, and diagnose unknown options.
3825 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3827         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
3828         `./autom4te' to create `./testsuite', since the `all' target
3829         will ensure its presence, but `installcheck' should not create
3830         the uninstalled wrappers.
3832         * tests/torture.at (Unusual Automake input files): Skip if we
3833         detect automake < 1.8.
3835 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3837         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
3838         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
3839         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
3840         * NEWS: Update.
3842 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3844         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
3845         munge (multiple) white space and other oddities.
3846         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
3847         single quotes in variable assignment.
3848         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
3849         and similar failures by adding multiple spaces, tabs, and other
3850         special characters.
3851         Report and different test suggested by Francesco Romani
3852         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
3854         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
3855         single quotes, we only need to search for single quotes; this
3856         both simplifies the search pattern, and makes us less
3857         susceptible to `echo' variations for arguments not containing
3858         single quotes.
3859         (_AC_ARG_VAR_VALIDATE): Likewise.
3861 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3863         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
3864         `$*' and IFS concatenation issue with traditional shells and
3865         bash-2.04.  Report by Seanster@Seanster.com.
3867 2006-05-03  Bruno Haible  <bruno@clisp.org>
3869         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
3870         precisely which Mac OS X versions have the od problem.
3872 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3874         * doc/autoconf.texi: Use @option systematically.
3876 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3877         and Bruno Haible  <bruno@clisp.org>
3879         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
3880         about 'od'.
3881         (Integer Overflow): Mention the special case of integer division
3882         overflow.
3884 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3886         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
3887         traditional shells like the Solaris one that do not use the
3888         first IFS character for assembling `$*'.
3889         Prompted by a related report from autoconf_bug@nro.ca.
3891 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3892         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3894         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
3895         Mention more problems with the -e option.
3897 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3899         * NEWS: Typo.
3900         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
3902         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
3903         in URLs to improve DVI formatted output (requires texinfo 4.6).
3904         (System Services, Systemology, Shellology): Likewise.
3905         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
3906         output.
3908         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
3909         continuous text.
3910         (Runtime): Fix macro argument names to match description:
3911         `action-if-found' -> `action-if-true' and similarly.
3912         (Obsolete Macros): Likewise.
3913         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
3914         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
3915         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
3917 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3919         * doc/autoconf.texi (Limitations of Make): Clean up markup.
3921         * ChangeLog: Typo.
3922         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
3923         DVI output.
3925 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3927         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
3928         /bin/sh set unsorted output.
3929         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
3930         * tests/local.at: Likewise.
3932 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3934         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
3935         (Integer Overflow, Null Pointers, Buffer Overruns):
3936         (Floating Point Portability, Exiting Portably): New sections.
3937         (Writing Test Programs): Fix some langauge.  Recommend exiting
3938         with status 1, not merely nonzero.  Clarify exit declaration.
3939         (Run Time): Move C exit status stuff to new Exiting Portably section.
3940         (Systemology): Mention Posix and levenez.  Update v7 reference.
3941         (Portable Shell): Mention the Posix shell.
3943 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
3945         * bin/autoconf.as (me): Replace by as_me.
3947 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3949         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
3950         since as_me isn't set yet.
3952 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3954         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
3955         a few minor bugs in this area.
3957         * doc/autoconf.texi (Programming in M4sh): Comment out the
3958         documentation of AS_BASENAME, for now.
3959         (Shell Substitutions): Do not use AS_DIRNAME in an example.
3960         (Limitations of Builtins) <basename>: Do not refer to
3961         AS_BASENAME.
3962         * bin/autoconf.as (me): Don't use AS_BASENAME.
3963         (dir): Remove the unused variable.
3964         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
3965         AS_DETECT_REQUIRED.  All uses changed.
3966         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
3967         All uses changed.
3968         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
3969         (AS_BASENAME): Use "basename --" to protect against leading "-".
3970         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
3971         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
3972         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
3973         (_AS_DIRNAME_PREPARE): Likewise.
3974         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
3975         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
3976         (AS_DIRNAME): Use "dirname --".
3978 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3980         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
3981         of "run time" and "run-time" changed to "runtime", for consistency.
3982         * lib/autoconf/fortran.m4: Likewise (in comment).
3983         * lib/autoconf/functions.m4: Likewise.
3984         * lib/autoconf/general.m4: Likewise.
3985         * lib/autoconf/headers.m4: Likewise.
3987         * doc/autoconf.texi (Run Time): Document the exit status situation
3988         with more accuracy and detail.
3990 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3992         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
3993         Archive is not officially `GNU' any more.  Update URL.
3994         (Defining Directories): Likewise
3995         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
3997 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3999         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
4000         newline from the `trap' code to finish `config.log'; the NetBSD
4001         /bin/sh resets the exit status after an empty command, as
4002         documented in doc/autoconf.texi.
4003         Reported by Dalibor Topic <robilad@kaffe.org>.
4005 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
4007         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
4008         Suggested by Bruno Haible.
4010 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
4012         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
4013         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
4014         Instead, just list the shells that we know work.
4015         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
4016         changed.  Be more cautious about the _cv_ variable.
4017         * tests/tools.at (Syntax of the shell scripts): Check the
4018         _cv_ variable once, at first, to avoid an internal autoconf error
4019         when sh -n does not work.
4021 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4023         * lib/Autom4te/FileUtils.pm: Sync from Automake.
4025 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
4027         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
4028         use ">&-" since we're only 99.999% sure that this is portable,
4029         and since the MinGW bug is fixed in a different way.
4030         * lib/autotest/general.m4 (AT_INIT): Likewise.
4032 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
4034         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
4035         before opening config.log, to avoid hitting a bug on MinGW.
4037 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
4039         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
4040         AS_MESSAGE_LOG_FD before reopening it onto the log file.
4041         This works around a MinGW bug reported by Eric Paire.
4042         Make sure that all writes to the log file append to it,
4043         rather than possibly losing data.
4044         * lib/autotest/general.m4 (AT_INIT): Likewise.
4046 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
4048         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
4049         description.
4051 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4053         * NEWS: Update.
4055         * configure.ac (AC_INIT): Bump to 2.59d.
4057 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4059         Version 2.59c.
4061         * Makefile.maint (news-date-check): Do not require a leading `*'
4062         before the release date in NEWS.
4064 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
4065         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4067         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
4068         the instantiated file do not contain the string 'datarootdir'
4069         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
4070         @mandir@, replace the reference '${datarootdir}' by the value.
4071         * tests/torture.at (datarootdir workaround): New test.
4072         * NEWS: Advertise this temporary fixup.
4073         Based on a patch by Bruno Haible, reported and analyzed by
4074         Paul Eggert and Noah Misch.
4076 2006-04-12  Eric Blake  <ebb9@byu.net>
4078         * tests/autotest.at (Debugging a failed test): Fix comment.
4080 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
4082         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
4083         all the changes since 2006-04-07.
4085 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4087         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
4088         succeeded, but `ln -s file dir' failed, take care to remove the
4089         leftover target before the next test, to prevent its spurious
4090         failure; also make sure `ln file dir' works before selecting it.
4091         Thanks to Keith Marshall for pointing this out.
4092         * THANKS: Update.
4094         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
4095         assignments in `at_debug_args', so that we put them correctly
4096         in the `run' script.
4097         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
4098         Reported by Eric Blake.
4100 2006-04-11  Eric Blake  <ebb9@byu.net>
4102         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
4103         top-level tests after micro-suite has been run.   Used in...
4104         (Debugging a successful test, Debugging script and environment),
4105         (Debugging a failed test): ...these new tests.  The first of these
4106         is fixed by...
4107         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
4108         macro, split out from...
4109         (AT_INIT): ...here, so that using -d also generates a run script.
4110         Document that -d inhibits top-level logging.
4111         * doc/autoconf.texi (testsuite Invocation): Document that -d only
4112         inhibits top-level logging; debug scripts are created.
4114         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
4115         check.
4116         * tests/autotest.at (Empty test, Empty check): New test to check it.
4118         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
4119         from gcc.
4121 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
4123         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
4124         the files if a problem appears.  Make the empty *.at files
4125         read-only, too.  Proposed by Ralf Wildenhues.
4127 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4129         * config/Makefile.am: Add comment to force updated Makefile.in.
4131         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
4132         space only patch to this file, this patch causes the Makefile.in
4133         files that include freeze.mk to be updated, and thus have a
4134         newer time stamp again, which in turn makes a pristine CVS
4135         checkout have correct time stamps.
4137         * Makefile.maint (cvs-sv): New macro, to be used..
4138         (config.guess-url_prefix, config.sub-url_prefix)
4139         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
4140         point to CVS text checkout of Gnulib files.
4141         (copyright-check): Bump current year.
4142         (announcement): Do not hard-wire `./announce-gen'.
4143         (cvs-update): Propagate failures of `cvs' and `move-if-change'
4144         correctly.
4145         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
4146         `chmod +x'.
4147         (wget_files): Update config.guess, config.sub, texinfo.tex by
4148         `wget-update', now that their URLs work again.
4150 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
4152         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
4153         Problem noted by Paul D. Smith.
4155 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4157         * doc/autoconf.texi: Remove unused words from word list.
4158         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
4159         .x-sc_trailing_space: New files.
4161         * doc/standards.texi: Sync from gnulib.
4163         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
4164         `LIBOBJDIR' as experimental.
4166         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
4167         with a target directory; it's internally implemented as `cp'
4168         anyway, but since Autoconf advertises the possibility to use
4169         a target directory when LN_S is `ln -s', we need to find out.
4170         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
4171         analyzed by Keith Marshall <keith.marshall@total.com>.
4173         * THANKS: Update.
4175 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
4177         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
4178         confdefs.h as-is.  In general, if it has backslash-newline or the
4179         like, then it doesn't work either to sort or to remove empty
4180         lines.
4182 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
4184         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
4186 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
4188         * lib/autom4te.in (Automake-preselections): Preselect
4189         _AM_SUBST_NOTMAKE.
4191 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4193         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
4194         apostrophe within a single-quoted string, as this is the usual
4195         tradition and is easier to read than '"'"'.  Don't rely on the
4196         shell treating "$/" like '$/'.  Use a more-consistent indenting
4197         style for the trap.
4199 2006-04-09  Eric Blake  <ebb9@byu.net>
4201         * tests/autotest.at (Backquote command substitution),
4202         (Multiline backquote command substitution): Remove mistaken
4203         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
4204         applied...
4205         (Parenthetical command substitution, Multiline parenthetical
4206         command substitution): here.
4208 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4210         Import macros from gnulib (often changing their name).
4212         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
4213         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
4214         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
4215         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
4216         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
4217         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
4218         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
4219         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
4220         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
4221         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
4222         The manual mentions Gnulib more prominently.
4223         * doc/autoconf.texi (Gnulib): New node.
4224         (Pointers): Add Gnulib URL.
4225         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
4226         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
4227         Gnulib section.
4228         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
4229         suggest a #define rather than a typedef for _Bool, and mention
4230         Gnulib rather than trying to substitute stdbool code.
4231         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
4232         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
4233         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
4234         AC_STRUCT_DIRENT_D_TYPE.
4235         (Particular Types): Mention stdint.h and inttypes.h as standard
4236         headers too.
4237         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
4238         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
4239         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
4240         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
4241         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
4242         (C Compiler): Move AC_C_LONG_DOUBLE to ...
4243         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
4244         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
4245         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
4246         (Coding Style).  Don't mention m4_expand_once.
4247         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
4248         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
4249         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
4250         (AC_CHECK_FUNCS): Use it.
4251         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
4252         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
4253         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
4254         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
4255         (AC_HEADER_ASSERT): New macro.
4256         (AC_HEADER_STDBOOL): Don't assume "#error" works.
4257         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
4258         Catch a bug in an HP-UX C compiler.
4259         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
4260         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
4261         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
4262         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
4263         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
4264         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
4265         New macros.
4267         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
4268         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
4270 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
4272         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
4273         of the warning introduced by the 2001-08-28 change.
4275 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
4276             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4278         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
4279         variables shall be overriden by the cache.
4280         * tests/torture.at (AC_ARG_VAR): Test also with a first value
4281         that contains braces.
4283 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
4285         Revert the patch from 2006-04-01 and only improve
4286         _AS_DETECT_BETTER_SHELL:
4288         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
4289         skip nonexistent directories.
4290         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
4291         only shell candidates which exist.
4292         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
4293         * lib/autotest/general.m4 (AT_INIT): No need to give three
4294         parameters to _AS_PATH_WALK.
4296 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
4297             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4299         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
4300         distinguish m4sugar macros.
4301         * tests/tools.at (autoupdating with aclocal and m4_include):
4302         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
4303         test case by Noah Misch <noah@cs.caltech.edu>.
4305 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
4307         Revert my change from 2006-03-17, in other words:
4308         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
4309           and DUALCASE=1.
4310         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
4311         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
4312           it is set.
4314 2006-04-07  Eric Blake  <ebb9@byu.net>
4316         * doc/autoconf.texi (Programming in M4sh): Document that
4317         AS_MKDIR_P exits the script on failure.
4318         * lib/autotest/general.m4: Remove redundant AS_ERROR.
4320 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4322         * config/elisp-comp, config/install-sh, config/mdate-sh,
4323         config/missing, config/mkinstalldirs: Sync from Automake.
4325         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
4326         from Automake.
4328         * doc/make-stds.texi: Sync from gnulib.
4330 2006-04-06  Eric Blake  <ebb9@byu.net>
4332         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
4333         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
4334         2006-04-01.
4336 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
4337             Eric Blake  <ebb9@byu.net>,
4338             Paul Eggert  <eggert@cs.ucla.edu>,
4339             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4341         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
4342         whether `set' quotes correctly: redirect stderr of the tested
4343         `set', and use a subshell, for Ultrix; use `sed' instead of
4344         `grep' for zsh `set' which may write binary output; match only
4345         at the beginning of a line, to avoid false positives.
4346         In order to avoid false positives by unrelated variables with
4347         multiline content, put the dump algorithm in a subshell and
4348         unset all variables containing newlines (except some which are
4349         special to the shell).  Warn about cache variables that are
4350         unset.
4352 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4354         * config/config.guess, config/config.sub, config/texinfo.tex:
4355         Sync from upstream.
4357         * tests/mktests.sh: Reword comments.
4359         * tests/mktests.sh: Only skip internal macros starting with
4360         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
4361         Update exclusion lists for the test suite to this end:
4362         (AC_ARG_VAR): Do test this now.
4363         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
4364         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
4365         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
4366         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
4368         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
4369         shell issue with double-quoted command substitutions of native
4370         commands.
4371         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
4372         Marshall.
4374         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
4375         no file matches the glob, discard the warning, set `nullglob'.
4376         (syntax-check): Likewise.
4377         (sc_cast_of_x_alloc_return_value): Likewise.
4378         (sc_cast_of_alloca_return_value, sc_error_exit_success)
4379         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
4380         (m4-check): Likewise.
4381         (sc_system_h_headers): Do not print rule on execution.
4382         (sc_tight_scope): Do not fail for non-existing `src' directory.
4383         (sc_changelog): Skip the Copyright footer.
4384         * lib/autoconf/lang.m4: Remove trailing space.
4386         * lib/autoconf/status.m4: More replacements to
4387         <tab><space> where this makes sense.
4389 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
4391         * tests/Makefile.am (maintainer-check-posix):
4392           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
4394         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
4395           ac_config_<foo>s again, sometimes normalized, sometimes not.
4396         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
4397         (AC_CONFIG_COMMANDS): Do not do so here.
4398         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
4399           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
4400           2005-07-25 rewrite.  Noticed by Noah Misch.
4402         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
4403           _AC_PRESERVE_HELP_ORDER, ...
4404         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
4406         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
4407           inside m4_expand_once; it is redundant.
4409         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
4410           for --help from Cygnus `configure.'
4412 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4414         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
4415         on a patch proposed by Ralf Wildenhues.
4417 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4419         * lib/autoconf/status.m4: Replace <space>''<tab> with
4420         <tab><space> where this makes sense.
4422 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
4423             Noah Misch  <noah@cs.caltech.edu>
4425         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
4426         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
4427         * doc/autoconf.texi (Help Formatting): New node.
4428         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
4430 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4432         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
4433         lib/autoconf/specific.m4, lib/autoconf/status.m4,
4434         lib/autoconf/types.m4, lib/autotest/general.m4,
4435         tests/mktests.sh, tests/torture.at: White space cleanup:
4436         remove some SPACE before TAB, or add quoting ('' or @&t@).
4438         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
4440         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
4442 2006-04-05  Eric Blake  <ebb9@byu.net>
4444         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
4445         empty test suite works.
4446         * tests/autotest.at (Empty test suite): Remove xfail.
4448 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
4450         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
4451         TAGS to ac_config_<foo>s.
4452         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
4453         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
4454         normalizing it, consistent it with previous releases.
4455         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
4457 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4459         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
4460         Use simplified args that Eric Blake originally suggested.
4462 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4464         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
4465         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
4466         Use 'comm' rather than N instances of grep; this also fixes a bug
4467         whereby substrings were incorrectly matched, causing us to not
4468         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
4469         (exclude_list): Exclude empty macros.
4470         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
4472         Use awk rather than grep -E or egrep, to avoid
4473         portability problems with regular expressions containing newlines.
4474         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
4475         Switch from grep to awk syntax.
4476         (ac_exclude_script): Renamed from ac_exclude_egrep.
4477         (au_exclude_script): Renamed from au_exclude_egrep.
4479 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
4481         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
4482         a subdirectory subject to Cygnus `configure'.
4483         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
4485         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
4486         report request when we have no AC_PACKAGE_BUGREPORT.
4488 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4490         * THANKS: Update.
4492         * tests/mktests.sh: Update copyright year in the header of the
4493         generated files.
4495         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
4496         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
4497         typedef'ed restricted pointer, to catch a compiler bug on
4498         HP-UX 11.x, and fix warnings so it passes with -Werror.
4499         (_AC_PROG_CC_C99): Likewise.
4500         Reported by Albert Chin <china@thewrittenword.com>.
4501         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
4503 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
4505         * bin/autoscan.in (subdirs): New global.
4506         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
4507         (output): Emit AC_CONFIG_SUBDIRS as needed.
4508         * tests/autoscan.at (autoscan): Remove XFAIL.
4510 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
4512         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
4514 2006-04-03  Eric Blake  <ebb9@byu.net>
4516         * THANKS: Add myself.
4518 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4520         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
4521         to log, point to testsuite output tree.
4523 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4525         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
4526         * doc/autoconf.texi (Function Portability): Mention that C++
4527         has trouble with 'exit'.
4528         (Guidelines): Test programs shouldn't use 'exit'.
4529         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
4530         Remove; all uses removed.
4531         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
4532         Return from 'main' instead of calling 'exit'.
4533         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
4534         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
4535         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
4536         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
4537         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
4538         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
4539         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
4540         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
4541         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
4542         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
4543         * tests/compile.at: Likewise.
4545 2006-04-02  Pavel Roskin  <proski@gnu.org>
4547         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
4549 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
4551         Clean up _AC_COMPILER_EXEEXT* macros.
4553         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
4554           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
4555           ac_file to the name of the default output file and call
4556           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
4557           initial `rm' of the candidate files...
4558         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
4559           the same list in subsequent `rm' calls, and for the temporary
4560           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
4561           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
4562         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
4563         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
4564           no longer needed) by libtool.  Make it a cache check.
4565         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
4566           copied here by mistake.
4567         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
4568           _AC_COMPILER_EXEEXT.
4569         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
4570           _AC_COMPILER_OBJEXT directly.
4571         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
4573 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
4575         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
4576         (AS_DIRNAME): Use it.
4577         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
4579         * tests/*.at: Remove the generated ones.
4581 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
4583         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
4585 2006-04-01  Eric Blake  <ebb9@byu.net>
4587         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
4588         directories, unless optional third argument supplied.
4589         (AS_UNAME): Don't optimize PATH walk.
4591         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
4593 2006-04-01  Eric Blake  <ebb9@byu.net>
4594         and Stepan Kasal  <kasal@ucw.cz>
4596         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
4597         and fix some typos.
4599 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
4601         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
4602         Autoconf version number despite a zero- or one-argument AC_INIT.
4604         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
4605         subordinate tools.
4606         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
4607         * doc/autoconf.texi (autoreconf Invocation): Document it.
4609         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
4610         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
4612 2006-04-01  Eric Blake  <ebb9@byu.net>
4614         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
4615         * lib/autotest/general.m4: Be tolerant of existing directory when
4616           rm failed to remove it.
4618 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4620         * bin/autoupdate.in: Redefine m4_location so that warnings print
4621         the correct lines of the input file by subtracting..
4622         (_au__first_line): ..this new definition.
4624         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
4625         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
4626         Remove stray newline in output.
4627         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
4628         AC_DEFUN this for autoconf, including the obsoletion diagnose.
4629         Fixes autoupdating of code where the replacement output contains
4630         m4sugar macros.
4631         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
4632         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
4633          (au_exclude_list): Add AC_LANG_SAVE.
4634         * tests/tools.at: Several new tests for all of this.
4635         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
4636         hairy details.
4637         The AC_LANG_SAVE issue was reported against Libtool by
4638         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
4639         Kristian Kvilekval <kris@cs.ucsb.edu>.
4641 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
4643         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
4644           switch all of them on and of when necessary.  Fixes the bug when
4645           m4sugar macros (e.g., m4_define) were expanded after the first
4646           automatic update (e.g., after AC_PREREQ or AC_INIT).
4648 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
4650         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
4651         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
4653         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
4654         correctly.  Problem reported by Eric Blake.
4655         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
4656         Ralf Wildenhues.
4658 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4660         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
4661         Tighten up the basename/dirname wording.
4663 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4665         * Makefile.maint (sc_texi_notab): New check: do not use TABs
4666         in texinfo files outside of verbatim environments.
4667         (syntax-check-rules): Update.
4668         * doc/autoconf.texi (Configuration Headers): Conform to it.
4670 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
4672         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
4673           aclocal cannot be given on the command line.
4675 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4677         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
4678         Give an example for AS_DIRNAME instead of referring to Posix..
4679         (File System Conventions): Put discussion of // versus / here, and
4680         modernize it a bit.
4681         (Limitations of Usual Tools): Add basename.  Remove verbiage
4682         after dirname, since it got moved to the above sections.
4683         All this was inspired by a patch proposed earlier by Eric Blake.
4685 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4687         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
4688         `$0' to protect against spaces.
4689         * lib/autotest/general.m4 (AT_INIT): Likewise.
4690         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
4691         `$0', $as_me.
4693 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4695         * bin/autoscan.in: The value of find_configure_ac should be
4696         checked for existence, so we don't barf over a nonexisting
4697         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
4699 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4701         * bin/autoupdate.in: Fix some typos.
4703 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
4705         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
4707         * lib/autoscan/autoscan.list: Refreshed.
4709 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4711         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
4712         and Erlang related variables.
4714         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
4715         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
4716         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
4717         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
4718         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
4719         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
4720         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
4721         (_AC_PROG_OBJC_G): New macros.
4722         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
4723         * doc/autoconf.texi (Objective C Compiler): New node.
4724         (Preset Output Variables): Document OBJCFLAGS.
4725         (Language Choice): Document `Objective C' language.
4726         (Fortran Compiler): Fix typo.
4727         * NEWS: Updated.
4728         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
4730 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
4732         * doc/autoconf.texi (Default Includes): Fix typo
4733           s/AC_HEADERS_STDC/AC_HEADER_STDC/
4734         (Limitations of Usual Tools): s/unwriteable/unwritable/
4735         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
4736           Fix typos in the comments.
4738 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
4740         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
4741           Factor out the warning to...
4742         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
4743         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
4744         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
4746         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
4747           case `ac_delim' when writing the sed script.
4749         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
4750           moved DUALCASE=1 ...
4751         (AS_SHELL_SANITIZE): ... here.
4752         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
4753           that it is set.
4755         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
4756           AC_SUBST.
4757         (_AC_PATH_PROG): Store the result to VARIABLE.
4758         (AC_PATH_PROG): No need to set VARIABLE again.
4760         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
4761           the first one is usual AT_CHECK_MACRO test, the second one checks
4762           that the same works when cross-compiling.
4763         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
4764         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
4766 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4768         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
4769         the directory `/usr/bin/posix' in the shell search, to prefer
4770         the Posix shell not only in subsequent spawns as with `$BIN_SH'
4771         on Tru64.
4773         * doc/autoconf.texi (contents): To fix texi2html output, hide
4774         `@setcontentsaftertitlepage' for HTML.
4775         (Writing Autoconf Macros): Likewise, insert space after `@c'.
4776         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
4777         `@,{c}'.
4779 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
4781         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
4782           sanitizing...
4783         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
4784         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
4785           why IFS is restored so late; thank you, Ralf, for reminding us.
4787 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
4789         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
4790           variables in the examples.
4792 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
4794         * doc/autoconf.texi (several sections): Cleaned up documentation for
4795         macros in erlang.m4.
4797 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4799         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
4800         failure condition for `$(cmd)' style command substitutions.
4801         (Parenthetical command substitution, Multiline parenthetical
4802         command substitution): Use it.
4804         * doc/autoconf.texi (Special Shell Variables): Missing word.
4805         Reported by Keith Marshall <keith.marshall@total.com>.
4807         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
4808         IFS even in case of empty `$PATH'.
4810 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4812         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
4813         `expr' away if there is nothing to do.
4814         < --keywords >: Simplify and robustify argument handling.
4815         Revert erroneous comment from 2005-08-23.  Extend to allow
4816         keyword negation with `!'.
4817         Update help message.  Remove broken code to prevent running
4818         tests multiple times.
4819         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
4820         Update and fix the documentation accordingly.
4821         * tests/autotest.at (Keywords): Renamed to..
4822         (Keywords and ranges): .. this.  Extended to make sure negated
4823         keywords, keywords taken from AT_SETUP arguments, and numeric
4824         test ranges work, and that matching is case-insensitive.
4826 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4828         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
4829         allow to pass unnamed structs even in C++.
4830         (AC_CHECK_SIZEOF):  Likewise.
4831         Also fix quoting error in `AC_MSG_FAILURE' arguments.
4832         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
4833         struct): New tests for unnamed structs, each both native and
4834         cross-compiling.
4836         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
4837         a structure inside a cast, for C++ conformance.
4838         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
4839         Also fix quoting error in `AC_MSG_FAILURE' arguments.
4841         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
4842         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
4843         trying to execute the command `no'.
4845         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
4846         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
4847         expanded outside.
4849         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
4850         example.  Do not emphasize `$%', it is hardly new and special.
4851         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
4853         * doc/autoconf.texi (Limitations of Usual Tools): Document
4854         OpenBSD and traditional `grep' failure to handle multiple
4855         patterns separated by newlines.
4857 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
4859         * doc/autoconf.texi (several sections): Add documentation for macros
4860         in erlang.m4.
4862 2006-03-10  Eric Blake  <ebb9@byu.net>
4864         * doc/autoconf.texi (Obsolete Macros): Fix wording of
4865         AC_TRY_LINK_FUNC.
4867 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4869         * doc/autoconf.texi: Use @acronym more consistently for acronyms
4870         like BSD, GPL, LGPL.  Fix minor English typos.
4871         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
4872         Mention that these macros are becoming obsolete.
4873         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
4874         Use more modern terminology for which standard is what.
4875         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
4876         and to ansi2knr.
4877         (AC_PROG_CXX): Likewise.
4878         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
4879         Remove obsolete discussion about how to port to K&R.
4880         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
4881         the obsolescent AC_HEADER_STDC.
4882         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
4883         can't rely on it.
4885 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4887         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4888         Remove stdin redirection from /dev/null to allow pipe to work.
4890 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4892         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4893         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
4894         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
4895         Ralf Wildenhues.
4897 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4899         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
4900         HP-UX sed is 99 commands, not 100.
4901         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
4902         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
4903         newline for portability.
4904         * tests/torture.at (Torturing config.status): Also test 100
4905         AC_SUBST_FILE invocations.  Fix test to actually verify the
4906         AC_CONFIG_FILES output.
4907         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
4908         command, label, and read-file `r' limits.  Unify HP-UX spelling.
4910         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
4911         non-suffix rule.
4912         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
4913         non-GNU make.
4914         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
4915         * tests/mktests.sh: Small shell portability fixes.
4917 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4919         * doc/autoconf.texi (Caching Results): Fix the examples to use a
4920         recommended quoting style and discard unwanted output.
4922 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4924         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
4925         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
4926         cases, and to work around Tru64 expr bug.
4928 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4930         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
4931         expr bug that turns the result of a regex match into a number if
4932         possible.
4934 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4936         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
4937         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
4938         in section `Specific Compiler Characteristics'.
4940 2006-03-04  Eric Blake  <ebb9@byu.net>
4942         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
4943         variable warning.
4945 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4947         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
4948         order of variable initialization, so even the Solaris 2.6 shell
4949         can create a config header correctly.  Fixes lots of test suite
4950         failures.
4952 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4954         * doc/autoconf.texi (Text processing Macros): New node to
4955         document the m4sugar macros m4_re_escape, m4_tolower,
4956         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
4958 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4960         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
4961         XrmInitialize (0) -> XrmInitialize ().
4962         Reported by Toshio Kuratomi.
4964 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4966         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
4967         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
4968         * doc/autoconf.texi (Programming in M4sh): Adjusted.
4969         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
4970         both macros are defun'ed so that required macros are evaluated
4971         outside.
4973         * doc/autoconf.texi (Prerequisite Macros): State more precisely
4974         where a required macro will be expanded.
4975         (Coding Style): Another reason not to use `m4_define'.
4977 2006-02-21  Eric Blake  <ebb9@byu.net>
4979         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
4981 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4983         * doc/autoconf.texi (Looping constructs): New node, to
4984         document m4_for, m4_foreach, m4_foreach_w, and mention
4985         obsolete AC_FOREACH.
4986         (Obsolete Macros): Document AC_FOREACH.
4987         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
4988         (m4_for): Fix to never loop (almost) endlessly, work correctly
4989         with arithmetic expressions in arguments, a step of zero or
4990         non-integer multiple of the interval, and avoid integer
4991         overflow.
4992         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
4993         m4_foreach_w.
4995 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
4997         Add basic support for Erlang, both for configuring Erlang/OTP
4998         tools, and Erlang as a conf test language.
4999         * lib/autoconf/erlang.m4: New file.
5000         * lib/autoconf/autoconf.m4: Add erlang.m4.
5001         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
5002         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
5003         * NEWS: Add short description of new macros.
5004         * THANKS: Add Romain Lenglet.
5006 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5008         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
5009         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
5011 2006-02-15  Eric Blake  <ebb9@byu.net>
5013         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
5014         warning.
5016 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5018         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
5019         (_AS_CASE): Private helper macro.
5020         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
5021         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
5022         Fix syntax of AS_IF description
5023         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
5024         for the AC_REQUIRE mess.
5025         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
5026         AS_SHELL_SANITIZE.
5028 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5030         * doc/autoconf.texi: Minor style cleanup.
5031         Be consistent about spaces after commas.
5032         Insert [] where empty args look a bit funny.
5033         Fix some "i.e." and "e.g." usages.
5034         Try to avoid "X/Y" usages.
5035         Don't be pedantic about "ISO C99"; just say C99.
5036         Prefer GNU style for spaces in front of parens.
5037         (Function Portability): Comment about C89 versus C99
5038         signed integer division.
5039         (Particular Headers): Use current gnulib style for dirent
5040         includes.
5042 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
5043         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5045         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
5046         macros without parameters.
5047         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
5048         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
5049         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
5050         `$#' bug.
5051         (autoupdate): Updated to match AU_ALIAS fix.
5053 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5054         and Paul Eggert  <eggert@cs.ucla.edu>
5056         * doc/autoconf.texi (Programming in M4sh): Document
5057         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
5059 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5061         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
5062         (AS_BOURNE_COMPATIBLE): ..this.
5063         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
5065 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5067         * doc/install.texi (Defining Variables): Tighten up the
5068         CONFIG_SHELL wording.
5070 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
5071         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5073         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
5074         of (set -o) rather than testing whether (set -o posix) succeeds,
5075         to work around a bug in the AIX 5.3 shell.  Problem originally
5076         reportd by Howard Chu for libtool.
5078 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
5080         * doc/autoconf.texi (Running the Compiler, Running the Linker):
5081         Changes the macro arguments in summaries to match the
5082         descriptions.
5084 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
5086         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
5087         hint as ``a workaround for a bug.''
5089 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5091         * bin/autoreconf.in: New option `--no-recursive'.
5092         Improve wording for subpackages a bit.
5093         * doc/autoconf.texi (autoreconf Invocation): Updated.
5094         * NEWS: Updated.
5096         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
5097         in environment of `configure', not the command line.
5098         Reported by Howard Chu <hyc@highlandsun.com>.
5100 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5102         * doc/autoconf.texi (Limitations of Builtins): Document the
5103         problem with "trap -".
5105 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
5107         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
5108         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
5109         messages to differentiate Fortran and Fortran 77 tests.
5110         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
5111         AC_LANG_ASSERT, to allow use in mixed-language projects.
5113 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5115         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
5116         FOO" to "defined (FOO)".
5117         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
5118         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
5119         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
5120         * tests/tools.at (ifnames): Likewise.
5122 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5124         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
5125         * lib/Autom4te/General.pm (mktmpdir): Likewise.
5126         (END): Improve error message a bit.
5127         Reported by Bruce Korb <bkorb@gnu.org>.
5129 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5131         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
5132         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
5134 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
5136         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
5137         requires sys/stream.h.  Reported by Oliver Kiddle.
5139 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5140             Stepan Kasal  <kasal@ucw.cz>
5142         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
5143         before the removals of test dirs, use `find' to avoid modification
5144         of symlinked directories.
5146 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
5148         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
5149         Don't ignore the macro arguments.
5151 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
5153         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
5154         declaration that works for MSVC.
5156 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5158         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
5159         Add `*.map' and `.inf' for Green Hills compiler.
5160         Reported by Stefan Seefeld <stefan@codesourcery.com>.
5162         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
5163         correctly: pad with spaces after FIRST_PREFIX if necessary,
5164         and compute string lenghts with `m4_qlen' instead of `m4_len'.
5165         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
5166         * tests/m4sh.at (AS_HELP_STRING): Test extended.
5167         * NEWS: Updated.
5168         Reported by numerous people, numerous times.
5170 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5172         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
5173         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
5174         * lib/autoconf/general.m4, lib/autoconf/status.m4:
5175         * lib/autotest/general.m4, tests/local.at:
5176         Update copyright year to 2006.
5178         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
5179         sed substitutions.
5180         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
5181         for file names, again.  Reported by Noah Misch.
5182         (Coding Style): Explain that s|a|b| is preferred for file names.
5183         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
5184         (AC_OUTPUT_MAKE_DEFS): Likewise.
5185         * lib/autotest/general.m4 (AT_INIT): Likewise.
5186         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
5187         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
5189         Fix Posix-conformance bugs re use of { command in sed scripts,
5190         and improve the sed-related documentation a bit.
5191         * doc/autoconf.texi (Installation Directory Variables): Use
5192         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
5193         rather than "sed" when talking about Sed in general.
5194         (Particular Programs): Likewise.
5195         (Coding Style): y is like s with respect to / and ,.
5196         (Limitations of Usual Tools): Document the weird restrictions
5197         that Posix has about { }.  Use better quoting.
5198         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
5199         Rewrite to conform to Posix rules about { } in sed scripts.
5200         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
5201         * tests/foreign.at (Libtool): Likewise.
5202         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
5203         Use our own style advice re 's,a,b,' versus 's|a|b|'.
5205 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5207         * lib/autoconf/status.m4: Fix typo.
5209         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
5210         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
5211         `-def', for the benefit of Portland `pgf90 -Mipa'.
5212         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
5214 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5216         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
5217         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
5218         shell from zsh to bash.
5220 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
5222         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
5223           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
5225 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5227         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
5228         parentheses in $(...).  Problem reported by Eric Blake.
5230 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5232         * doc/autoconf.texi (Limitations of Usual Tools):
5233         Mention which characters can be escaped with \ in portable regular
5234         expressions used in grep, sed, expr.  Mention the leading ^ problem
5235         with expr.  Clean up some confusing wording.  Mention which
5236         grep options are portable.
5238 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
5240         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
5242 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5244         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
5245         patch, noted by Ralf Wildenhues.
5247 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5249         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
5250         posix' unconditionally, for pdksh in `native sh' emulation.
5252 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5254         * doc/autoconf.texi (Shellology): Document eval $? problem
5255         with ash.
5256         (Limitations of Builtins): Likewise.
5258 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5260         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
5261         CONFIG_SHELL in the environment of the configure rerun.
5262         * doc/autoconf.texi (Here-Documents, config.status Invocation):
5263         Suggest passing CONFIG_SHELL absolute, and in the environment
5264         rather than as option.
5266 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5268         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
5269         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
5270         Fix macro quoting.  Fix output for n * 98 substituted variables.
5272 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5274         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
5275         `tmp' to avoid file removal race.
5277 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5279         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
5280         ac_clean_files and LIBOBJS.
5282 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5284         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
5285         Factor functionality to..
5286         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
5287         `AC_SUBST($1)' in the public version.
5288         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
5289         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
5290         ac_pt_* variables.
5292 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
5294         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
5295         filesystems.
5297 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5299         * NEWS: Move AH_HEADER mention to right place.
5301 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
5303         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
5304         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
5306 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
5308         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
5309         conftst2.$ac_objext.
5310         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
5312 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
5314         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
5315         conftest.o, to see whether the compiler really obeys; rm the object
5316         file before and after the test and register it with ac_clean_files.
5317         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
5319 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
5321         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
5322         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
5323         code so that the most common case requires less forks.
5325 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
5327         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
5328         not portable; thanks to Paul Eggert and Alexandre.
5330         * NEWS: Fix an old typo.
5332 2005-10-20  Jim Meyering  <jim@meyering.net>
5334         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
5335         the latter'', in two places.
5337 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5339         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
5340         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
5341         the inner workings of AC_LANG_FUNC_LINK_TRY.
5342         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
5343         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
5344         by the function rather than ignoring it.
5345         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
5346         comparing its address.  Intel's interprocedural optimization was
5347         outsmarting the old heuristic.  Problem reported by
5348         Mikulas Patocka.
5350 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
5352         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
5354 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5356         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
5357         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
5359 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
5361         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
5362         before removing it (chmod -R u+rwx); there are three instances of this.
5364 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5365             Stepan Kasal  <kasal@ucw.cz>
5367         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
5368         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
5369         make its content writable before removing it.  Remove an errorneous
5370         comment from the end, where the logs of the failed tests are copied
5371         to the main log file.
5373 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
5375         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
5376           in case the computer is too quick.  Double quote the configure.ac
5377           snippets.
5379         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
5380           problems if the testsuite were running too fast.
5382 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5384         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
5385         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
5386         (which belong to Xt, not X itself).  See Debian bug 327655.
5387         * NEWS: Mention this.
5389 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
5391         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
5393 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5395         * config/move-if-change: Don't output "$2 is unchanged";
5396         suggested by Ben Elliston.  Handle weird characters correctly.
5398 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
5400         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
5401           calls, so that the final expansion of this macro is shorter.
5402           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
5403           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
5404           the cleanup there.  Use AS_VAR_* macros, to be more general.
5405         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
5407         * lib/autoconf/general.m4: Use AS_IF where appropriate.
5409         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
5411 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
5413         * doc/autoconf.texi (Configuration Headers): Add an index entry
5414           for AH_HEADER.
5416 2005-08-26  Pavel Roskin  <proski@gnu.org>
5418         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
5419         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
5420         running xmkmf.
5422 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
5424         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
5425         The previous patch didn't work, so try a better one.
5427 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
5429         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
5430         in the example.  Reported by Bruno Haible.
5431         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
5432         "if $undefined_var;" succeeds with my shell.
5434         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
5435         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
5436         but change the m4_divert_text to m4_divert_once.
5438 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5440         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
5441         Work around bug in Solaris /usr/xpg4/bin/awk.
5442         The bug is present in at least Solaris 8 through 10.
5444 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
5446         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
5447         some evil values and relying on the fact that $* concatenates the
5448         parameters by the first character from IFS.
5450 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
5451             Stepan Kasal  <kasal@ucw.cz>
5453         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
5454         first header appears, define AH_HEADER.
5455         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
5456         Update limitations about when to call AC_CONFIG_HEADERS.
5457         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
5458         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
5459         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
5460         ``Configuration Actions''; fix their index entries.
5462         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
5463         options correctly.  Process N-M as M-N if M is smaller than N.
5464         Process ranges correctly so that N-N will run only N.
5465         Sort and uniquify the tests that will be run.  If there is more
5466         than one test, reinsert the banners for the tests.
5467         * tests/autotest.at (Keywords): Unmark XFAIL.
5469 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
5471         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
5472           before passing the macro name to AH_TEMPLATE.
5474         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
5475           now opens log after option processing; in particular, --version
5476           and --help do not touch config.log.
5478         * Makefile.maint: Revert the change from 2005-08-12.
5480 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
5482         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
5483           common code to...
5484         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
5486 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5488         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
5489         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
5490         Language cleanup.
5492         * doc/autoconf.texi (Defining Symbols, Changed Results):
5493         Prepend to LIBS, not append, in examples.
5495 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
5497         When building in place, set srcdir="."; suggested by Tim Van Holder.
5499         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
5500           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
5501         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
5502         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
5503           does not mean "no --srcdir option".
5505 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5507         * tests/autoscan.at (autoscan): New file.
5508         * tests/suite.at: Use it.
5509         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
5510         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
5512         * tests/autotest.at (Keywords): Test keywords combinations.
5514 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
5516         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
5517           add "2>&1"; gzip 1.2.4 prints help on stderr.
5519 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
5521         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
5522         was pushdef'ed twice while popped only once.  Push it only once.
5523         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
5525 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
5527         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
5528         prefixed by mere "===", not "configure: === ".
5530 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5532         * Makefile.maint: Update from Bison.
5534         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
5535         "<tab>" in comment, so that the point is understandable.
5537 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
5539         Rewrite substantial part of lib/autoconf/status.m4.
5540         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
5541         and CONFIG_COMMANDS are not processed in four separate loops.
5542         Instead, there is one main loop.  This alows that the common code
5543         is expanded only once, thus config.status (and configure) is smaller.
5545         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
5546         the AC_LIST_FILES and cousins macros are no longer used.
5548         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
5549         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
5550         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
5551         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
5552         contain the initialization, nor the for loop, nor the associated
5553         commands; all these go to ...
5554         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
5555         _AC_OUTPUT_CONFIG_STATUS.
5556         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
5557         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
5558         (_AC_OUTPUT_FILE): The creation of the sed script ...
5559         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
5560         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
5561         _AC_OUTPUT_MAIN_LOOP.
5562         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
5563         _AC_CONFIG_COMMANDS): Use ...
5564         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
5565         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
5566         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
5567         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
5568         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
5569         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
5570         ... new macros.
5571         (_AC_CONFIG_UNIQUE): Update.
5572         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
5573         Replaced by this ...
5574         (_AC_LIST_TAGS): ... new common macro.
5575         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
5576         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
5577         (_AC_LIST_TAG_COMMANDS): ... new common macro.
5578         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
5579         this didn't belong to the `config commands' section.
5580         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
5581         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
5582         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
5583         to the `config commands' section either.
5584         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
5585         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
5587         ... and many changes to the comments nearby.
5589         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
5590         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
5591         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5592         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
5593         (#define header templates): The comment at the top of the generated
5594         header now includes the name(s) of the source file(s).
5596         Several unrelated small changes:
5598         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
5599         parameter to AC_DIAGNOSE.
5600         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
5601         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
5602         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
5603         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
5604         with AU::AC_OUTPUT.
5605         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
5606         in AC_OUTPUT doesn't double-quote it either.
5607         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
5608         parameters.
5610 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
5612         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
5613         versions of Portland Group compiler produce single- and double-quoted
5614         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
5615         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
5617 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5619         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
5620         This is a corrected version of yesterday's patch.
5622 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
5624         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
5625         path, too; insert a "===" to emphasize the line.
5627         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
5628           ac_cv_build_alias to ac_build_alias.
5629         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
5631         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
5632         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
5633         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
5634         (AC_ARG_VAR): ... here.
5635         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
5636           target_alias.
5638         Keep a list of all precious variables and process them with one simple
5639         for loop, instead of expanding all commands, or, OTOH, complicated
5640         processing of output of "set".
5641         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
5642         variable names in new macro...
5643         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
5644         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
5645           a loop to assign all ac_env_* and ac_cv_env_* variables.
5646         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
5647           to INIT_PREPARE.
5648         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
5649           its value to shell variable ac_precious_vars and call
5650           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
5651         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
5652           _AC_ARG_VAR_VALIDATE.
5654         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
5655           and the AC_SUBSTs ...
5656         (AC_INIT): ... here.
5658         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
5659           the ac_subst_files section in config.log.
5661         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
5663 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5665         * NEWS: New macro AC_C_TYPEOF.
5666         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
5667         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
5668         * tests/c.at (C keywords): Test AC_C_TYPEOF.
5670         Fix problems reported by Nicolas Joly.
5671         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
5672         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
5673         They are generated by the Tru64 v5.1B shell.
5675 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
5677         Fix my changes from 2005-07-01; reported by Noah Misch.
5678         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
5679         description, the macro now accepts only a single tag.
5680         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
5682         Fix cases when the varsions of Autoconf and Autotest don't match.
5683         Reported by Noah Misch.
5684         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
5685         at_top_builddir, for compatibility with older autotest.
5686         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
5687         is not set, use at_top_builddir, for compatibility with older
5688         versions of autoconf.
5690 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5692         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
5693         Problem reported by Patrick Welche.
5695 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
5697         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
5698         sed substitution command, so that we allow | in program prefixes
5699         and program suffixes.  (& is a problem anyway; we're not fixing
5700         that here.)
5701         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
5702         configure_input, top_builddir, srcdir, etc.
5703         * lib/autotest/general.m4 (AT_INIT): Likewise, for
5704         PATH_SEPARATOR in AUTOTEST_PATH.
5706 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
5708         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
5709         for loop over config.site files using `set', to allow
5710         directory names containing IFS characters.
5712 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5714         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
5715         directories with weird names.  Apparently some people like living
5716         on the edge.  However, improve the test that "pwd" actually does
5717         report a name for the working directory.
5718         * NEWS: Remove the claim that we test for funny chars in dir names.
5720 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
5722         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
5723         replaced ...
5724         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
5725         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
5726         Now accept a single tag, not whitespace separated list.
5727         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
5729 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
5731         * doc/autoconf.texi (Configuration Headers): Change the explanation
5732         about #include <config.h>.
5733         (Generic Functions): Mention the Gnulib project.
5734         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
5736         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
5737         document to output the default config_* lists to config.status.
5738         Don't recognize option --file, if the functionality is not there.
5739         Likewise for --header; moreover, recognize --he and --h as shortcuts
5740         for --help in that case.
5742         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
5743         matches the order of execution.  No code changed.
5745 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5747         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
5748         single-quoted -cmdline argument in Portland Group compiler.
5749         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
5751 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
5753         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
5755 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
5757         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
5758         descriptors to child processes; reported by Norman Gray.
5760 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
5762         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
5764         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
5765         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
5766         (AC_SUBST): Call it.
5767         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
5768         the directory specific variables; but don't call it for configure_input.
5770 2005-06-28  Derek Price  <derek@ximbiot.com>
5772         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
5773         addition.
5775 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5777         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
5778         directory have inherent problems with special characters like spaces,
5779         due to limitations in Make syntax.  Problem reported by Alexandre
5780         Duret-Lutz.
5781         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
5782         Also, fix Tru64 porting problem with shell patterns,
5783         reported by Ralf Wildenhues.
5785 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5787         * doc/autoconf.texi (Subdirectories): Fix markup typos.
5789 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5791         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
5793         Fix some more shell quoting problems.  Prompted by a bug report
5794         from Justace Clutter.
5795         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
5796         variable into diagnostic.  Make the diagnostic an error, not a warning,
5797         because we really don't support spaces and suchlike in dir names.
5798         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
5799         Don't worry about backslashes in srcdir; it can't happen now.
5800         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
5801         Simplify ac_optarg handling.
5802         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
5804 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
5806         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
5807         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
5808         * tests/atlocal.in: Propagate $EGREP and $SED.
5809         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
5810         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
5812         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
5813         that '\|' is not allowed in BREs; recommend using newline separated
5814         list of patterns instead of multiple -e options.
5816         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
5818         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
5820 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5822         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
5824 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
5826         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
5827         b, t, r, w commands require single space, while : cannot have any.
5828         (Special Shell Variables): Fix sed code this in the example.
5829         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
5830         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
5832         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
5833         expand to the empty list.  Don't use two pairs of m4_changequote,
5834         it's not necessary.
5836 2005-06-20  Derek Price  <derek@ximbiot.com>
5838         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
5840 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
5842         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
5843         * doc/autoconf.texi:
5844         Don't mention Solaris versions so much, if a
5845         problem is common to all extant versions of Solaris.  Say "SunOS
5846         4" instead of "SunOS" for SunOS 4.
5847         (awk): Mention more of the limitations of traditional Awk.
5848         (cat): Don't talk about cat -v.
5850 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5852         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
5853         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
5854         but the implementation is entirely different and is designed
5855         to be compatible with glibc strverscmp.
5856         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
5858         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
5859         on Mac OS X 10.4 reported by Peter O'Gorman in:
5860         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
5861         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
5862         Use shell builtins rather than 'expr', to work around expr bug.
5864 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
5866         * doc/autoconf.texi: "filesystem" -> "file system".
5867         "behaviour" -> "behavior".
5868         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
5869         * lib/autoconf/general.m4: Omit blank after ":" sed command,
5870         as per POSIX.
5871         * lib/m4sugar/m4sh.m4: Likewise.
5872         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
5873         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
5875         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
5876         (.x.1): Ignore the time stamp in the .TH line when deciding whether
5877         to update the man page.  That way, we don't have to check in new
5878         man pages every month.
5880         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
5881         quotes and backslashes.  Patch from Derek Price.
5883 2005-06-10  Derek Price  <derek@ximbiot.com>
5885         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
5886         AS_TR_SH.
5888 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
5890         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
5891         -u, since it outputs chatter if the input files are the same.
5892         Problem reported by Ralf Menzel.
5894 2005-06-08  Derek Price  <derek@ximbiot.com>
5896         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
5897         renaming them since they are about to be redefined anyhow.
5899 2005-06-08  Derek Price  <derek@ximbiot.com>
5901         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
5902         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
5903         Move m4_undefine to alphabetical order.
5905 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5907         * README: Recommend GNU M4 1.4.3 or later.
5908         * doc/autoconf.texi (Introduction): Likewise.
5909         Reword to avoid some formatting glitches.
5910         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
5911         Clarify explanation of HP compiler bug.
5912         Redo example output tp match current CVS snapshot.
5913         Use @example.org in email addresses when the examples
5914         might get inadvertently cut-and-pasted into user code.
5915         Remove example of autom4te usage that doesn't seem to work now.
5916         Use modern AC_INIT (except when the example is meant to be
5917         shown with Autoconf 2.13).
5918         Update ksh info for Solaris 9 and later.
5919         KB -> kB.
5920         Modernize description of Automake versions a bit.
5921         Don't claim a future version of Autoconf is near.
5922         * doc/install.texi: Reword to avoid some formatting glitches.
5924 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5926         * doc/autoconf.texi: Add [] to examples, so that the manual
5927         follows its own advice about quoting better.
5928         Reword to avoid some formatting glitches.
5929         * doc/installt.exi: Reword to avoid some formatting glitches.
5931         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
5932         Tru64 ksh pattern matching bug.  Reported against Libtool by
5933         Albert Chin <libtool@mlists.thewrittenword.com> and
5934         Nicolas Joly <njoly@pasteur.fr>.
5936 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
5938         m4_cdr of one-member list was [[]] (one-member list containing an
5939         empty string) instead of [] (an empty list.  Callers were skewed to
5940         match this misbehaviour.  As a consequence of this:
5941          - m4_foreach([x], [], [foo]) expanded to `foo', while
5942          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
5943         This bug has been fixed:
5945         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
5946           expand to an empty string; print error msg if called without
5947           an argument list.
5948         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
5949           misbehaviour; handle [] and [[]] correctly.
5951 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
5953         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
5954         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
5955           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
5957 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
5959         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
5960           swallow records with more than 99 fields.
5961         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
5962           parse the long line.
5964 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
5966         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
5967           swallow literals longer than 399.  Reported by Ralf Wildenhues.
5968         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
5969           to workaround this limitation.
5971 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5973         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
5974         to gfortran, and make these the first two compiler names
5975         checked (following the general autoconf preference for gcc).
5977 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
5979         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
5980         (DISTCLEANFILES): Remove $(check_SCRIPTS).
5981         (testsuite): Make sure autotest.m4f is up-to-date before using it.
5983 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5985         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
5986         expression of unbounded size when processing the --list
5987         option.  This runs afoul of a limit of 399 bytes per regular
5988         expression on AIX.  Problem reported by Ralf Wildenhues.
5990 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5992         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
5993         * doc/autoconf.texi (Particular Headers): Reword example
5994         for multiline stdbool replacement.
5995         (Setting Output Variables): Reword text a bit.  Don't
5996         give all the details about |#_!!_#|.
5997         Reword description of line replacement.
5999 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
6001         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
6002         now contain newlines, and substituted files must be referenced on
6003         a line alone; the sed scripts to substitute them are now very
6004         different.
6005         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
6006         commands can be put in a sed script portably.
6007         * doc/autoconf.texi (Setting Output Variables): Document above
6008         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
6009         use of multiline substitution.
6010         * tests/torture.at: No longer expect substitution of newline to fail.
6012 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
6014         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
6015         From Ralf Menzel (trivial change).
6017 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6019         * tests/local.at: Don't attempt to check for negated character
6020         classes in shell scripts.  The test was too brittle.
6022 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
6024         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
6025         * doc/autoconf.texi (Limitations of Builtins): Document this
6026           limitation.
6028 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
6030         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
6031           common code; used in many places in the tree.
6032         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
6033         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
6035         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
6037         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
6038           messages when ac_unique_file is not found.
6039         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
6040         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
6041           commands, for consistency with AC_MSG_ERROR and such.
6043         * bin/autoconf.as: Make more use of "shift 2" in option processing.
6045         * bin/Makefile.am: Merge the two rules for creating scripts.
6047 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
6049         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
6050         obsolete; it was never documented.
6051         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
6053 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
6055         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
6056         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
6057         (ac_top_builddir): ... this ...
6058         (ac_top_build_prefix): ... to this; the old name is also kept, for
6059           backward compatibility.
6060         (ac_top_builddir_sub): New variable, without the trailing slash,
6061           always nonempty.
6062         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
6063         * doc/autoconf.texi (Configuration Actions): Rename
6064           ac_top_builddir to ac_top_build_prefix.
6065         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
6066           at_top_builddir to at_top_build_prefix.
6067         * lib/autotest/general.m4 (AT_INIT): Likewise.
6069 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
6071         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
6072           of confdefs.h .
6074 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
6076         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
6077           argument to m4_foreach.  I guess it was necessary in the past,
6078           but I think it's a no-op now.
6080 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
6082         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
6083           ``cat <<_ACEOF'' commands to one.
6084         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
6085         * lib/autoconf/status.m4: On various places, use expr instead of
6086           ``echo|sed.''
6087         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
6088         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
6089         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
6090           a range.
6091         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
6092           the wrong patterns between ``case'' and ``esac.''  The previous
6093           code had false positives.
6095 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
6097         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
6098         as on 2005-05-02.
6099         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
6100         Mention LIBOBJDIR.
6102 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6104         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
6105         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
6106         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
6107         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
6108         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
6109         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
6110         config/config.guess, config/config.sub, config/elisp-comp,
6111         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
6112         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
6113         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
6114         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
6115         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
6116         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
6117         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
6118         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
6119         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
6120         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
6121         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
6122         lib/autoconf/general.m4, lib/autoconf/headers.m4,
6123         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
6124         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
6125         lib/autoconf/specific.m4, lib/autoconf/status.m4,
6126         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
6127         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
6128         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
6129         lib/autotest/general.m4, lib/emacs/Makefile.am,
6130         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
6131         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
6132         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
6133         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
6134         tests/compile.at, tests/foreign.at, tests/fortran.at,
6135         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
6136         tests/semantics.at, tests/suite.at, tests/tools.at,
6137         tests/torture.at, tests/wrapper.as:
6138         Update FSF postal mail address.
6140 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
6142         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
6143           check.
6144         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
6145           enough arguments, similarly as in m4_bpatsubsts.
6147 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
6149         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
6150           of absolute paths.
6152 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
6154         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
6155           for absolute directory names in one loop.
6156         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
6157           abbreviations of --version and --debug.
6159 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6161         * doc/autoconf.texi (Autoconf Language): Be more precise about
6162         quoting rules.  Problems noted by Stepan Kasal.
6163         Also, throughout this document, be more careful about white space.
6164         "blank", "white space", and "space" all have different meanings
6165         and we should be careful to say what we mean.
6167 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6169         Fix C++ related problems reported by Werner Lemberg.
6170         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
6171         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
6172         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
6173         avoid problems with C++ and throw.
6174         * tests/compile.at: .cpp, not .cc.
6176         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
6178 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6180         * doc/autoconf.texi (Generic Functions): Typos.
6182 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
6184         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
6185         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
6186         set by latest automake.
6188 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6190         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
6191         outputs 0 on GNU/Linux these days.
6193 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
6195         * doc/autoconf.texi (Autoconf Language): Add more description
6196         about quoting heuristics.
6197         (Limitations of Builtins): Describe "set -" problems.
6199 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6201         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
6202         not newline.
6204         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
6205         by AC_DEFINE; it was a mistake.
6206         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
6208 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
6210         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
6212 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
6214         * doc/autoconf.texi (External Software): Quadrigraphs are not
6215           processed correctly in AS_HELP_STRING; avoid this in the examples.
6216         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
6217         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
6218           comment and reduce m4_default([foo], []) to [foo].
6219         (m4_strip): Update the explanation.
6221 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6223         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
6224         Remove core.conftest.* too; it's generated by Tru64 5.1.
6225         Problem reported by Jennis Pruett.
6226         * lib/autoconf/functions.m4
6227         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6228         Don't bother to remove core files; AC_RUN_IFELSE should do that
6229         for you.
6231 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
6233         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
6235 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
6237         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
6238         Report from Horst Wente.
6240 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
6242         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
6243           the comment.
6245 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
6247         * doc/autoconf.texi (External Software, Package Options): Add
6248           examples showing how to implement --with-* and --enable-* options.
6250 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6252         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
6253         as well as configure.in.  Problem reported by Gregorio Guidi.
6255 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6257         * doc/autoconf.texi (Particular Functions): Use gnulib's current
6258         pattern for alloca snippet.
6260 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
6262         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
6264 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
6266         * doc/autoconf.texi (Generic Programs): Fix a typo.
6268 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
6270         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
6271         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
6273 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6275         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
6276         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
6277         whole-archive (-zallextract, -zdefaultextract) options in the hope of
6278         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
6279         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
6281 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6283         * NEWS: The configure command now warns you if you attempt to use
6284         a directory whose name contains a special character like space,
6285         newline, or "\".
6286         * doc/autoconf.texi (Installation Directory Variables): Allow
6287         "," in file names.  Do not use \@; it's not a portable regexp.
6288         * bin/Makefile.am (edit): Likewise.
6289         * lib/Makefile.am (edit): Likewise.
6290         * tests/Makefile.am (edit): Likewise.
6291         * tests/semantics.at: Likewise.
6292         * tests/torture.at: Likewise.
6293         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
6294         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
6295         * doc/autoconf.texi (File System Conventions): Warn about
6296         unportable file names.
6297         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
6298         (AC_INIT): Use it.
6299         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
6300         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
6301         ac_pwd, and quote srcdir.
6302         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
6304         * doc/autoconf.texi: Fix some systematic formatting problems.
6305         ".)"  needs a following @: if not at the end of a sentence, and
6306         similarly for "!)".  "etc." should be preceded by a comma.
6307         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
6309 2005-03-22  Bruno Haible  <bruno@clisp.org>
6311         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
6312         argument is often called 'build-aux'.
6314 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
6316         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
6317           macro AC_TRY_LINK is obsolete.
6318         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
6319           `AC_CONFIG_FILES'.
6321 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
6323         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
6324           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
6325           from a Common Lisp's `cl'.
6326         (AC_PROG_CXX): Behave according to the documentation: don't
6327           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
6328           make the variable CCC precious; use `cl.exe', not `cl'.
6330 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
6331             Alexandre Duret-Lutz  <adl@gnu.org>
6333         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
6334         /dev/null, as "configure" shouldn't read stdin, and this insulates
6335         us from problems (e.g., when testing for "cl").  Also, do this
6336         redirection before invoking "hostname" or "uname", and keep the
6337         original input stream available via...
6338         (AS_ORIGINAL_STDIN_FD): ... this new macro.
6339         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
6340         bother with "</dev/null" since it's now done at the top of
6341         'configure'.
6342         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
6343         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6344         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
6345         * doc/autoconf.texi (File Descriptor Macros): New section.
6346         (Printing Messages): Mention it.
6347         * tests/base.at (Input/Output): New test.
6349 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
6351         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
6352         newline if neither \c nor -n work, as that would output two
6353         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
6355 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
6357         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
6358         This causes that any required macros inside will get before the if.
6359         * doc/autoconf.texi (autom4te.cache): A typo.
6361 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6363         Undo previous change, except keep the change to
6364         lib/autoconf/programs.m4 that replaced grep with shell
6365         pattern-matching.  This is because net-snmp configure reads stdin.
6366         Reported by Noah Misch.
6368 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
6370         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
6371         from /dev/null, as "configure" shouldn't read stdin, and this
6372         insulates us from problems (e.g., when testing for "cl").
6373         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
6374         before invoking "hostname" or "uname".
6375         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
6376         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
6377         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
6378         "</dev/null" since it's now done at the top of 'configure'.
6379         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6380         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
6381         Also, replace grep with shell pattern-matching, to save a process.
6383 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
6385         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
6386         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
6387         avoid thinking that Allegro Common Lisp's "cl" command is a C++
6388         compiler.
6390 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6392         * doc/autoconf.texi (Limitations of Usual Tools): Document that
6393         grep -q isn't portable.  Improve grep -s explanation.
6394         Problem reported by Dan Manthey.
6396 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6398         * doc/autoconf.texi (Special Shell Variables): Clarify
6399         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
6401 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6403         * doc/autoconf.texi: Use @acronym for DJGPP.
6404         Fix some @code's that should have been @env's, and vice versa.
6405         Sort environment variable names.
6406         Mention that shells no longer inherit IFS.
6407         Don't recommend PATH_SEPARATOR=';' so strongly.
6408         Mention that $RANDOM might expand to the empty string.
6409         "symlink" and "soft link" -> "symbolic link".
6410         Improve mktemp description (reported by Bruno Haible).
6412 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
6414         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
6415         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
6416         Likewise.
6417         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
6418         Likewise.
6420 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6422         * NEWS: Mention AT_COPYRIGHT.
6424         * tests/local.at (AT_CMP): Use diff directly on input files rather
6425         than copying them.
6427         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
6428         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
6430 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
6431         and Paul Eggert  <eggert@cs.ucla.edu>
6433         * tests/autotest.at (Empty test suite): New test.
6434         * tests/torture.at (Substitute and define special characters)
6435         (Substitute a 2000-byte string, Define to a 2000-byte string)
6436         (Substitute a newline, Define a newline): New tests.
6438 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
6440         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
6441         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
6442         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
6443         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
6444         (Standard regular expressions): New test.
6445         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
6446         excess test name quoting.
6447         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
6448         CPPFLAGS to `configure' instead of setting it in `configure'.
6450         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
6451         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
6452         on some platforms.
6454         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
6455         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
6457         * tests/local.at (AT_CMP): New macro.
6458         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
6459         (AC_SAVE_STATE): Move environment grep...
6460         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
6461         (AT_CONFIG_CMP): New macro.
6462         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
6463         * tests/c.at (Extensions): Do not exit early.
6464         * tests/atlocal.in: Inherit $GREP.
6466         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
6467         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
6469         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
6470         (AC_COPYRIGHT): Factor header comment portion out and move into...
6471         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
6472         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
6473         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
6474         --version output.
6475         * tests/local.at: Add Autoconf test suite copyright notice.
6476         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
6478 2005-02-04  Bruno Haible  <bruno@clisp.org>
6479         and Paul Eggert  <eggert@cs.ucla.edu>
6481         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
6483 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
6485         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
6486         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
6488         Try not to generated lines of unlimited length, as POSIX places a
6489         2047-byte limit on line length of portable text files.
6490         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
6491         Use newline as a separator, not space.
6492         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
6493         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
6494         space.
6496 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6498         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
6499         as_func_*.  Add test to check whether positional parameters
6500         are restored after function return.
6502 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
6504         * doc/autoconf.texi (Special Shell Variables): Mention _,
6505         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
6506         if they contain a lower-case letter.  The DUALCASE problem was
6507         reported by Ralf Wildenhues.
6509         * bin/autoconf.as: Don't exit with status 0 after write failure
6510         with --help or --version.
6511         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
6512         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
6514 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6516         * doc/autoconf.texi (Limitations of Usual Tools):
6517         Unicos 9 sed limitations.
6518         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
6519         to get the option-enhanced interface on older Crays.  Try ftn for
6520         Fortran 95 (newer Crays).
6522 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
6524         * man/Makefile.am (.x.1): Go back to the simple solution, but take
6525         care to echo the commands, so the user knows what's going on.
6526         Modified from a suggestion by Stepan Kasal.
6528         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
6529         with a cross reference.  Derived from a suggestion by Bruce Korb.
6531 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
6533         * doc/autoconf.texi (config.status Invocation): Warn about
6534         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
6535         * doc/install.texi (Defining Variables): Likewise.
6536         Based on a proposed patch by Ralf Wildenhues.
6538         * man/Makefile.am (.x.1): Make sure the required generated files
6539         are up to date.  Problem and original solution proposed by Stepan Kasal.
6540         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
6541         implicit-man-prerequisites): New rules, used by the above.
6543         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
6544         * config/config.guess, config/config.sub, config/install-sh: Likewise.
6545         * config/missing, config/texinfo.tex: Likewise.
6547 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
6549         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
6550         Update the long comment explaining it.
6552         m4_require no longer writes an ``is required by'' line to the
6553         execution stack.  It contains only one bit of non-redundant
6554         information: that the macro was required, not called.  And even
6555         this bit is useless in most situations: have you ever met a macro
6556         which both calls and requires the same macro?
6558         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
6559         (_m4_defun_pro_outer): ... only via this macro, for the outermost
6560           macro.
6561         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
6562         (m4_expansion_stack_pop): Remove the misplaced comment.
6563         (m4_require): Don't put the ``is required by'' line to the
6564           execution stack; slightly improve the out-of-a-defun error message.
6565         (_m4_divert_grow): New macro, counter for the temporary diversions.
6566         (_m4_require_call): Use it.
6567         * tests/m4sugar.at (m4_require): Expect output without the
6568           ``is required by'' messages.
6570 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6572         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
6573         rather than x for expr.
6575         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
6576         this is safe.
6577         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
6578         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
6579         * lib/autotest/general.m4 (AT_INIT): Likewise.
6580         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
6581         * tests/mktests.sh: Likewise.
6583 2005-01-27  Akim Demaille  <akim@epita.fr>
6585         Have autoheader honor --force.
6587         * doc/make-stds.texi, doc/standards.texi: Update from masters.
6588         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
6589         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
6590         from masters, so that FileUtils.pm's update_file provide --force
6591         support.
6592         * bin/autoheader.in: Pass $force to update_file so that
6593         config.h.in is always recreated when --force.
6595 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
6597         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
6599 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6601         * doc/autoconf.texi (Limitations of Builtins): Clarify that
6602         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
6604 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6606         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
6607         Warn about newline stripping in `` and $().  Update Solaris
6608         version to 9.
6609         (Limitations of Builtins): Use expr "X...", not expr "x...", as
6610         X insulates us from future changes to Posix.
6611         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
6612         stripping.
6614 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
6616         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
6617           you cannot use AC_DEFINE to define macros containing `[' or `]'.
6619 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
6621         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
6622         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
6623         bug-tar mailing list.
6625 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
6627         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
6629 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6631         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
6632         ulongval to be static, to avoid unwanted GCC warning.  Problem
6633         reported by Michael Jennings via Daniel Reed; see
6634         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
6636 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
6638         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
6639         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
6640         datadir, infodir, and mandir.  Adjust argument parsing code.
6641         (_AC_INIT_HELP): Update help text.
6642         * doc/autoconf.texi (Installation Directory Variables): Document
6643         new variables.
6645 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
6647         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
6648         not seem to work, assume it does set $(MAKE).
6649         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
6651 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
6653         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
6655 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
6657         A cleanup of the diversion support in m4sugar.
6659         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
6660         (_m4_divert_n_stack): New macro; the expansion is
6661           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
6662           otherwise.
6663         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
6664         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
6665           stored in _m4_divert_diversion or _m4_divert_dump.
6666         (m4_divert_pop): When the parameter is given, compare the symbolic
6667           name with the last diversion pushed on the stack.  Previously, the
6668           current diversion was compared with the numeric value of the
6669           diversion given as the parameter.
6670         (m4_require): If the macro hasn't been expanded yet, call ...
6671         (_m4_require_call): this new macro.
6673 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6675         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
6676         Workarounds for documented `case' limitations.
6678 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6680         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
6681         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
6683 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6685         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
6686         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
6687         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
6689         Patch from Roger Leigh (with some minor changes) as follows:
6690         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
6691         Resurrect AC_PROG_CC_STDC.
6692         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
6693         AC_PROG_CC_C89, AC_PROG_CC_C99.
6694         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
6695         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
6696         AC_PROG_CC_C99): New macros.
6697         (AC_PROG_CC_STDC): Use them.
6698         (_AC_PROG_CC_STDC): Remove.
6699         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
6700         * THANKS: Add Roger Leigh.
6702 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
6704         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
6705         signals that the package uses Automake; a `Makefile.am' is typical but
6706         not essential.  Reported by Magnus Therning.
6707         * tests/torture.at (autoreconf.): New banner.
6708         (autoreconf and non-AC configure): Rename to `Non-Autoconf
6709         AC_CONFIG_SUBDIRS'.
6710         (autoreconf an empty directory): Rename to `Empty directory'.
6711         (Unusual Automake input files): New test.
6713 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
6715         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
6716         (AT_SETUP): Clear AT_capture_files.
6717         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
6718         (AT_KEYWORDS): Fix comment typo.
6719         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
6720         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
6721         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
6723 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
6725         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
6726         If the variable to set is already set, set ac_cv_path_$1
6727         to the preset value so caller can assume ac_cv_path_$1
6728         is available.  (trivial change)
6730 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
6732         * BUGS (Minor Problems): Warn about makefile limitations.
6733         * Makefile.am: Find and update `INSTALL' in $(srcdir).
6734         * man/Makefile.am: Find and update manual pages in $(srcdir).
6736 2004-12-24  Eric Blake  <ebb9@byu.net>
6738         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
6739         shells in subshell, to avoid noise from ash.  (trivial change)
6741 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6743         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
6744         problems with SunOS ksh and backslash escaping, Bourne shells and
6745         closing brackets (both within character classes).  Bug reported
6746         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
6747         <read>: New entry.  Mention non-availability of -r.
6749 2004-12-21  Akim Demaille  <akim@epita.fr>
6751         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
6752         avoid cluttering displayed messages.  Rather, prepend srcdir where
6753         AT_LINE is used for log files.
6755 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
6757         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
6758         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
6759           no longer part of the macro, quote the occurrence of ``$tmp''.
6760         * doc/autoconf.texi (Forbidden Patterns): Typo.
6762 2004-12-21  Akim Demaille  <akim@epita.fr>
6764         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
6765         separated from the test title by forcing a white space.
6767 2004-12-21  Akim Demaille  <akim@epita.fr>
6769         Enable Emacs navigation within testsuite.log files.
6771         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
6772         use the compilation mode.
6773         (AT_LINE): Point to the srcdir.
6775 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
6777         * tests/Makefile.am (installcheck-local): Use $(bindir).
6778         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
6779         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
6780         Makefile.am scheme Autoconf now uses.
6782 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
6784         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
6785         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
6787 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
6789         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
6790         (_AT_CHECK): Use it.
6791         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
6792         (AS_ESCAPE): Fix comment.
6793         * tests/autotest.at: Adjust section banner comments.
6794         (AT_CHECK_AT): Accept STATUS and STDERR.
6795         (AT_CHECK_AT_TEST): Likewise.
6796         (Invalid brace-enclosed parameter expansion)
6797         (Multiline command from M4 expansion)
6798         (Double-M4-quoted command): New tests.
6800 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6802         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
6804 2004-12-17  Akim Demaille  <akim@epita.fr>
6806         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
6807         m4_pattern_allow.
6808         Suggested by Alexandre Duret-Lutz.
6809         * doc/autoconf.texi (Setting Output Variables): Catch up.
6811 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
6813         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
6815 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
6817         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
6818           remove the comment which said we cannot.
6820 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
6822         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
6823         Reini Urban and Paul Eggert for reporting the dependencies.
6825         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
6826         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
6827         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
6829 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
6831         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
6832           so that eg. ``autoscan --help'' doesn't truncate it.
6834 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
6836         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
6837         generated conftest files.
6839 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
6841         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
6842         tracing on commands with possibly-escaped newlines.
6843         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
6844         discontinued behavior and its implications.
6845         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
6846         (BSx641-newline in command, BS-BS-newline in command)
6847         (BSx640-newline in command, Newline-CODE-BS-newline in command)
6848         (Single-quote-BS-newline in command)
6849         (Single-quote-newline-BS-newline in command): New tests.
6851 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
6853         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
6854           on platforms where it works.
6855         (_AS_TEST_PREPARE): Test for ``test -x''.
6856         (_AS_BROKEN_TEST_PREPARE): Nuke.
6858 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
6860         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
6861         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
6862           give only 4-letter prefix to AS_TMPDIR, comment fixed.
6863         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
6864           create the temporary directory.
6865         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
6867 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
6869         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
6870         (trivial change)
6872 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
6874         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
6876 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
6878         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
6879         to avoid using a negated character class.  Reported by Nicolas Joly.
6880         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
6882 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6884         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
6885         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
6886         Don't depend on .x file explicitly, since "make" does that for us.
6887         Suggested by Stepan Kasal.
6889         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
6890         Add *.tmp.
6891         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
6892         ifnames): Factor common code.  And they said it couldn't be done!
6894 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6896         * bin/.cvsignore: Add autoconf.in.
6897         * tests/.cvsignore: Add wrapper.in.
6898         * lib/autotest/general.m4: Escape '$' in case pattern.
6900 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
6902         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
6904         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
6906         * tests/autotest.at: New file.
6907         * tests/suite.at: Include it.
6908         * tests/Makefile.am: Distribute it.
6910         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
6911           shell tracing on a command that could contain multiple lines.
6912         * doc/autoconf.text: Document that fact and its implications.
6913         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
6914         * tests/autotest.at (Multiline backquote command substitution,
6915           Multiline parameter expansion, Literal multiline command,
6916           Multiline parenthetical command substitution): Remove XFAIL.
6918 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6920         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
6921         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
6923 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
6925         * configure.ac (test suite): Cease to generate wrapper scripts.
6926         * configure: Regenerate.
6927         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
6928         (m4f_dependencies): Adjust accordingly.
6929         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
6930         (wrapper.in): Generate it in the build directory.
6931         (MAINTAINERCLEANFILES): Delete wrapper.in.
6932         (CLEANFILES): Add wrapper.in.
6933         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
6934         the output.  Replace each $as_me with a @wrap_program@.
6935         * tests/wrapper.in: Delete it; we always build it.
6937         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
6938         (EXTRA_DIST): Remove autoconf.in.
6939         (CLEANFILES): Add autoconf.in.
6940         (autoconf): Find autoconf.in in the build directory.
6941         * bin/autoconf.in: Delete it; we always build it.
6943 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
6945         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
6946         PATH members so as to not prepend an empty element.  Move a comment.
6947         * Makefile.am (SUBDIRS): Build in `tests' last.
6948         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
6950 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
6952         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
6953         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
6954         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
6955         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
6957 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
6959         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
6960         patch: extra "-l"s.
6962 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6964         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
6965         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
6966         * doc/autoconf.texi (Particular Functions): Mention new behavior.
6968 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
6970         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
6971           out the common code to ...
6972         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
6973           value of the #define--default to 1, iff the macro was called
6974           with exactly one parameter.
6976 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6978         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
6979         "char c = '\200';" rather than "char c = 0x80;" as the
6980         latter doesn't conform to the strict C standard due to
6981         overflow on signed char hosts.
6983         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
6984         to -qlanglvl=ansi.  We don't want to disable extensions.
6986 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
6988         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
6989         (Using Autotest, testsuite Scripts, Writing testsuite.at):
6990         Reword slightly to avoid some English-language problems noted
6991         by Ralf Wildenhues in:
6992         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
6994 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
6996         * NEWS: Add ^L above each release.
6998 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
7000         Fix documentation problems reported by Russ Boylan in
7001         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
7002         along with some nearby cruft.
7003         * doc/autoconf.texi (Libtool): Libtool can be used without
7004         Automake (not without Autoconf).
7005         (Introduction): Mention lists.gnu.org.
7006         * BUGS: Don't mention bugs.gnu.org.
7007         Remove mention of ancient libtool compatibility problem.
7008         * NEWS: Mention that bugs.gnu.org is kaput.
7009         * README: Likewise.  Mention where mailing list archives can be found.
7011 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
7013         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
7015 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7017         * doc/autoconf.texi (Pretty Help Strings): Go back to
7018         single-quoting assignments to cache variables.
7020 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
7022         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
7023         with the examples; fix the bug in MY_ARG_WITH example reported
7024         by Alexandre Duret-Lutz.
7025         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
7026         expansion of $1 in the comment emitted to configure.
7028 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
7030         * doc/autoconf.texi (Pretty Help Strings): Fix typo
7031         in my editing of the previous patch.  Problem reported
7032         by Alexandre Duret-Lutz.
7034 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
7036         * doc/autoconf.texi (Autoconf Language): Explain that
7037         ``descriptions'' may not be double quotes.
7038         (Quotation Rule Of Thumb): Likewise.
7039         (Pretty Help Strings): Likewise; remove the wrong comment;
7040         simplify the examples and improve their quoting.
7042 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
7044         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
7045         the $1_found variable, don't test whether the file is executable;
7046         Both things are checked ...
7047         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
7048         the former ``test -f''.
7049         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
7051 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7053         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
7054         use cp -R instead.
7056 2004-11-10  Derek R. Price  <derek@ximbiot.com>
7058         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
7059         limitations.  Reorder paragraphs for clarity.
7061 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7063         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
7064         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
7065         variants", "Unix", and some related minor wording fixups.
7067         (Shellology, Special Shell Variables): Document that the Zsh
7068         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
7069         to Alexandre Duret-Lutz for this info.
7071 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
7073         * doc/autoconf.texi (One-Shot Macros): New node.
7075 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
7077         * doc/autoconf.texi (Function Portability): Fix misdescription
7078         of putenv.  Problem reported by Michael Wardle.
7080 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7082         * doc/autoconf.texi (auindex): New macro.
7083         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
7084         Problem reported by Stepan Kasal.
7086 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7088         Fix problems reported by Andreas Buening in:
7089         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
7090         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
7091         in test makefile.
7092         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
7093         readable; it's not true in OS/2-emx.
7095 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
7097         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
7098         "/usr/include", clear ac_x_includes instead of leaving it as "no"
7099         (trivial change).  Problem and patch reported by Andrew Church in:
7100         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
7102 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7104         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
7105         three args in examples.  Problem reported by Frederik Fouvry in:
7106         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
7107         Also, fix some minor spacing and punctuation bugs.
7109 2004-09-02  Akim Demaille  <akim@epita.fr>
7111         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
7112         "case" to restore ordering.
7113         Reported by Stepan Kasal.
7115 2004-08-26  Akim Demaille  <akim@epita.fr>
7117         * doc/autoconf.texi: Minor typos and stylos.
7119 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
7121         * configure.ac (AC_INIT): Bump to 2.59c.
7123 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
7125         Version 2.59b.
7127         * README: Add advice about m4 1.4.2.
7129         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
7130         texinfo.tex for now (done by hand now).
7131         * Makefile.maint (wget_files, cvs_files):
7132         Remove ansi2knr.c; nobody uses it.
7133         (ansi2knr.c-url_prefix): Remove.
7134         (cvs-update): Fix test for failure.  I don't know why it ever
7135         worked...
7137         * doc/autoconf.texi: Update URLs, some of which went stale.
7138         Use @uref rather than @href.
7140         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
7141         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
7143         * config/config.guess, config/config.sub, config/elisp-comp,
7144         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
7145         doc/fdl.texi, doc/standards.texi: Sync with master copy.
7147         * NEWS, TODO, configure.ac, bin/autoscan.in,
7148         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
7149         doc/install.texi, lib/Autom4te/Configure_ac.pm,
7150         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
7151         lib/autoconf/programs.m4, lib/autoconf/status.m4,
7152         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
7153         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
7154         tests/tools.at, tests/torture.at:
7155         Use "file name" rather than "filename" or "path",
7156         to be consistent with the terminology of the GNU coding standards.
7158 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
7160         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
7161         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
7162         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
7163         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
7165         More fixes to support spaces in the name of the build directory.
7166         This isn't a complete fix but it's an improvement.
7168         * bin/autoconf.as (autom4te_options): New var.
7169         Use it instead of appending to AUTOM4TE, so that we can allow
7170         spaces in the build directory's absolute name.
7171         * bin/autoheader.in ($autoconf): Allow spaces in file names.
7172         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
7173         AT_CHECK_NOESCAPE): Likewise.
7174         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
7175         main program): Likewise.
7177 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7179         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
7180         From Ralf Corsepius in:
7181         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
7183 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7185         * doc/autoconf.texi (Function Portability): Document isinf and
7186         and isnan.  From a suggestion by Kevin Ryde.
7188         * lib/Autom4te/General.pm (END): Return correct exit status even
7189         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
7191 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
7193         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
7194         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
7195         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
7197 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
7199         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
7200         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
7201         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
7202         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
7203         * lib/autom4te.in (Automake-preselections): Preselect
7204         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
7206 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
7208         * lib/autom4te.in (Automake-preselections): Preselect
7209         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
7210         trace them.
7212 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
7214         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
7215         Tru64.
7216         * doc/autoconf.texi (Shellology): Mention BIN_SH.
7217         Document problem with "`""`" in pdksh POSIX mode.
7219 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
7221         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
7222         with pdksh, too.  Problem reported by Patrick Welche via
7223         Gary V. Vaughan.
7224         * doc/autoconf.texi (Shellology): Note that set -o posix is
7225         useful for pkdsh, too.
7227 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7229         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
7230         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
7231         Don't fail if ENV or BASH_ENV is readonly.
7232         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
7233         etc. are read only.  Problem reported by Ludovic Courtes.
7235 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
7237         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
7238         zsh, disable GLOB_SUBST to avoid backslash handling problems.
7239         (trivial change)
7241 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7243         * doc/autoconf.texi (File System Conventions): Warn about
7244         names like "aux".  Problem reported by Eric Blake.
7246         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
7247         by zero instead of array size, so that we can use any arithmetic
7248         constant expression (instead of requiring an integer constant
7249         expression).  This allows us to test expressions like DBL_MAX <
7250         LDBL_MAX, which didn't conform to the C standard using the old
7251         method.
7252         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
7253         now that we can do floating-point tests at compile time.
7255 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7257         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
7258         and LDBL_EPSILON, as the resulting expression isn't an
7259         integer constant expression and violates the C standard.
7260         Problem reported by Nelson H. F. Beebe.  Also, check
7261         for "L" suffix, and check that long double doesn't have
7262         worse range or precision than double, that mixed-mode
7263         arithmetic doesn't generate a diagnostic, that double
7264         constants fit in long double.
7266 2004-06-03  Kevin Ryde  <user42@zip.com.au>
7268         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
7269         malloc(0) and realloc(NULL,size).
7271         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
7272         Bob Proulx.
7274 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7276         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
7277         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
7278         by Jim Meyering.
7280 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
7282         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
7283         can be rewritten using if-then-else.  Suggested by Bruno Haible.
7285 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7287         * doc/autoconf.texi (testsuite Scripts): Fix typo.
7288         Problem reported by Stepan Kasal.
7290 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7292         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
7293         change).  Patch reported by Ralf Wildenhues in
7294         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
7296         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
7297         function F exists if the compiler and linker let you compile an
7298         expression like (F != 0).  Recent versions of GCC optimize away
7299         the reference to F in that case, since every function address must
7300         be nonzero, so the link succeeds even if F does not exist.
7301         Problem reported by Manu in
7302         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
7304         * doc/autoconf.texi (Systemology): Standardize on the spelling of
7305         "Unix".  Many uses changed.
7306         (Limitations of Builtins): Explain better why the ! command isn't
7307         portable.
7309 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
7311         * lib/autom4te.in (Automake-preselections): Preselect
7312         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
7314 2004-05-19  Kevin Ryde  <user42@zip.com.au>
7316         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
7317         referencing AC_FUNC_STRERROR_R.
7319         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
7320         note pessimistic assumption when cross compiling.
7322 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7324         * doc/autoconf.texi (Limitations of Make): Note that BSD make
7325         (until 2004) invoked subcommands with sh -e, contra POSIX.
7326         Reported by Kevin Ryde.
7328 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
7330         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
7331         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
7332         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
7333         `test -f "        /usr/bin/grep"', which _always_ failed.
7334         (AC_PROG_SED): Ditto bogus PATH fix.
7335         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
7336         requires that grep correctly supports _multiple_ `-e' options, rather
7337         than stating only that grep should accept `-e'.
7339 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7341         Port to C99, which requires that 'exit' be declared.
7343         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
7344         to ensure that stdlib.h is included.
7345         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
7346         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
7347         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
7348         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7349         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
7350         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
7351         when using 'exit' in a test; C99 requires that 'exit' be declared.
7353 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7355         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
7356         now prefers 'grep' implementations that accept -e.
7357         (Limitations of Usual Tools): Describe problems of traditional
7358         egrep and fgrep with long input lines, and of traditional grep
7359         with -e.
7360         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
7361         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
7362         All callers changed.  Append /usr/xpg4/bin to the PATH, for
7363         Solaris.
7364         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
7365         the user with complaints about multiple -e options.
7366         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
7367         Define it with AC_PROG_GREP.
7368         * configure.ac (AC_PROG_GREP): Add.
7369         * lib/freeze.mk (GREP): New macro.
7371 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
7373         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
7374         a possible candidate only after all others fail, rather than
7375         consulting it first.  This improves backward compatibility by
7376         better reflecting the way shell selection occurred in previous
7377         versions of Autoconf, and should help to avoid triggering latent
7378         problems in other packages, such as the one in Automake where zsh
7379         is not handled robustly:
7380         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
7381         Although it is not Autoconf's responsibility to work around
7382         problems in Automake, it nevertheless makes sense to avoid
7383         introducing unnecessary incompatibilites.
7385 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
7386             Gary V. Vaughan  <gary@gnu.org>
7388         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
7389         how deeply nested we are when a suitable tool is found, set the
7390         ac_path_TOOL_found flag.
7391         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
7392         nested we are in this macro.  Break out of all 3 nested loops if
7393         ac_path_TOOL_found is set.
7395 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
7397         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
7398         of the _AS_PATH_WALK loop too if GNU flavor is found.
7400 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
7402         * doc/autoconf.texi (Limitations of Make): Update documentation
7403         for `$<'.  New entry `Long lines', based on a report from Simon
7404         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
7405         paragraph about DJGPP, based on a mail from Richard Dawe.
7407 2004-04-20  Paul Eggert  <eggert@twinsun.com>
7409         * tests/c.at (C keywords): Don't assume that GCC supports
7410         "restrict" and "inline", as sufficiently-old GCC versions do not
7411         (also, GCC configured to be in pedantic C89 mode does not).
7412         Problem reported by Sumit Pandya in:
7413         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
7415         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
7416         consider -g to work if it generates warnings when plain compiles
7417         don't.  Problem reported by Braden McDaniel in:
7418         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
7420         * doc/autoconf.texi (Slashes): New section, to document a problem
7421         reported by Jim Meyering in:
7422         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
7424         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
7425         linker output files before linking, to work around IRIX 6 linker bug.
7426         Problem reported by Rainer Orth in:
7427         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
7429 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
7431         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
7432         best tool so far counter rely on the tool path variable name to
7433         avoid checks for one tool being affected by the results of running
7434         the length check on a previous tool.
7436         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
7437         match expression argument, as different greps have different
7438         regular expression flavours.
7439         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
7440         literals.
7441         (AC_PROG_EGREP): Pass 'EGREP$'.
7442         (AC_PROG_GREP): Pass 'GREP$'.
7444 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
7446         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
7447         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
7449 2004-03-29  Paul Eggert  <eggert@twinsun.com>
7451         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
7452         Types, Specific Compiler Characteristics, System Services,
7453         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
7454         etc. consistently instead of 'long', 'short', 'unsigned' etc.
7455         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
7456         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
7457         Likewise.
7458         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
7459         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
7460         AC_TYPE_OFF_T): Likewise.
7461         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
7462         Likewise.
7464         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
7465         pacify libtool 1.5.2.  Fix quoting problems in sed command.
7467 2004-03-28  Paul Eggert  <eggert@twinsun.com>
7469         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
7470         now defines HAVE_DECL_TZNAME if it is declared, when
7471         HAVE_STRUCT_TM_TM_ZONE is not defined.
7472         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
7473         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
7474         for HAVE_TZNAME.
7476 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
7478         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
7479         superfluous backslashing of quotes (") in sed expressions;
7480         thanks to Paul Eggert.
7482 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
7484         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
7485         Fortran compiler is ifort, also added pghpf; thanks to Nelson
7486         H. F. Beebe for the bug report.
7488 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
7490         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
7491         quoted -cmdline argument in Portland Group compiler (bug
7492         reported by Jeffrey J. Barteet).
7494 2004-03-25  Kevin Ryde  <user42@zip.com.au>
7496         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
7497         (Run Time): ... here, where it's now mentioned.
7499 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
7501         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
7502         inherits from language Autoconf-without-aclocal-m4.
7503         (Customizing autom4te): Adjust example; the cache must now be
7504         disabled for language Autoconf-without-aclocal-m4.
7506 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
7507             Nathanael Nerode  <neroden@twcny.rr.com>
7509         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
7510         AC_CHECK_TOOLS): Warn if a cross-tool is found without
7511         a prefix.
7512         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
7513         AC_CHECK_TARGET_TOOLS): New macros.
7514         * doc/autoconf.texi (Generic Programs): Document
7515         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
7516         AC_CHECK_TARGET_TOOLS, and warn for future changes
7517         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
7518         AC_CHECK_TOOLS.
7519         (Specifying Names): Document the reason for these future
7520         behavioral changes.
7521         * tests/mktests.sh: Do not generate tests for the
7522         new macros.
7523         * NEWS: Document these changes.
7525         * doc/autoconf.texi: Avoid macros with unbraced arguments,
7526         they make TeX hang up.
7528 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
7530         * NEWS: New macro AC_CHECK_ALIGNOF.
7531         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
7532         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
7533         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
7534         vowel.
7535         (AC_CHECK_ALIGNOF): New macro.
7536         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
7537         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
7538         those for sizeof.
7540 2004-03-03  Paul Eggert  <eggert@twinsun.com>
7542         * bin/Makefile.am (edit): Don't use $< in a context where
7543         POSIX doesn't require support for it.  Use $@.in instead.
7544         Problem reported by Anthony N. Frasso in
7545         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
7546         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
7548 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
7550         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
7551         from the next generation of Libtool.
7552         * lib/autom4te.in (Autoreconf-preselections): Ditto.
7554 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
7556         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
7557         is not always thread-safe.  Report from Nathanael Nerode.
7559 2004-02-18  Paul Eggert  <eggert@twinsun.com>
7561         Fix a dependencies problem, stemming from a Autoconf 2.59 build
7562         problem on QNX reported by Stephen Rasku in
7563         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
7565         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
7566         $(m4sh_m4f_dependencies); this removes a FIXME.
7567         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
7568         (MAINTAINERCLEANFILES): Split into pieces,
7569         one per related section.  Add $(srcdir)/wrapper.in.
7571 2004-02-09  Paul Eggert  <eggert@twinsun.com>
7573         * doc/autoconf.texi (Setting Output Variables): Emphasize that
7574         AC_SUBST provides no portable way to escape literal newlines.
7576         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
7577         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
7578         Darwin uses -lcrt2.o and there's little point to cataloging all
7579         the system variants.  Partial fix reported by Andreas Waechter in:
7580         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
7581         for bug reported by Nelson H. F. Beebe in:
7582         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
7584 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
7586         * doc/autoconf.texi (AU_DEFUN): Fix English,
7587         suggested by Paul Eggert.
7588         * lib/autoconf/autoupdate.m4: Correct reference to
7589         acobsolete.m4, suggested by Alexandre Duret-Lutz.
7591 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
7593         * bin/autoupdate.in: Define __file__ so that warnings
7594         refer to the correct file.
7595         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
7596         the behavior of the third argument.
7597         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
7598         correctly the behavior of the third argument.  Document
7599         what the three macros that AU_DEFUN defines do.  Fix
7600         warning message when the third argument includes $0
7601         (reported by Alexandre Duret-Lutz).
7603 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
7604             Eric Sunshine  <sunshine@sunshineco.com>
7605             Paul Eggert  <eggert@twinsun.com>
7607         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
7608         (AS_INIT): Output shell initialization there. Removed optional
7609         parameter. Expand _AS_SHELL_FN_SPY.
7610         (AS_INIT_WITH_SHELL_FN): Removed.
7611         (_AS_SHELL_FN_SPY): New macro.
7612         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
7613         macros.
7614         (AS_SHELL_SANITIZE): Remove loop to find better shell
7615         and documentation for the parameter.
7616         (_AS_DETECT_BETTER_SHELL): Move it here.
7617         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
7618         (_AS_RUN): Move it here, support testing with eval.
7619         (AS_REQUIRE_SHELL_FN): Require shell functions when
7620         it is used.
7621         (_AS_LINENO_WORKS): Put around braces, we do not
7622         trigger the bash bug anymore.
7623         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
7624         use AS_INIT_WITH_SHELL_FN.
7625         * bin/autoconf.in, tests/wrapper.in: Regenerated.
7627 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
7629         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
7630         * doc/autoconf.texi: Don't say that the third parameter
7631         is broken.
7632         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
7633         (AU_DEFUN): Honor the third parameter, create autoupdate
7634         macros with AU_DEFINE.
7635         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
7636         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
7637         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
7638         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
7639         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
7640         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
7641         AC_XENIX_DIR): Likewise.
7642         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
7643         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
7644         * lib/autoconf/status.m4: Remove FIXME.
7645         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
7646         that the macro is not present anymore in the updated
7647         configure.ac.
7648         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
7649         of autoupdate.
7651 2004-01-28  Paul Eggert  <eggert@twinsun.com>
7653         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
7654         copyright years.
7655         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
7656         2003 (except 1997) to the list of copyright years.  This undoes
7657         the 2003-05-22 change, which removed the older years from the list.
7658         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
7660 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
7661             Albert Chin-A-Young  <china@thewrittenword.com>
7663         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
7664         grep or ggrep program in PATH that accepts as long lines as
7665         possible.
7666         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
7667         AC_PROG_GREP.
7668         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
7669         egrep and fgrep respectively if $GREP -E/-F don't work.
7670         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
7671         _AC_PROG_GREP, and AC_PROG_SED.
7672         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
7673         longest input length accepted by a command.
7674         (AC_PROG_SED): Use it.
7675         * doc/autoconf.texi (Particular Programs): Document the changes.
7676         * NEWS: Updated.
7678 2004-01-27  Paul Eggert  <eggert@twinsun.com>
7680         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
7681         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7682         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
7683         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
7685         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
7686         bin/autoconf.in, config/Makefile.in, config/config.guess,
7687         config/config.sub, config/install-sh, config/mdate-sh,
7688         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
7689         lib/Makefile.in, lib/Autom4te/Makefile.in,
7690         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
7691         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
7692         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
7693         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
7694         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
7695         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
7696         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
7697         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
7698         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
7699         tests/actypes.at: Regenerate and/or sync with original
7700         sources.
7702 2004-01-26  Paul Eggert  <eggert@twinsun.com>
7704         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
7705         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
7706         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
7707         not <inttypes.h>.  Problem reported by Tim Mooney in
7708         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
7709         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
7710         Likewise.
7712         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
7713         otherwise "make check" fails because it forbids cmp (I guess
7714         because cmp treats files as binary on DOS-like systems).
7716         * tests/mktests.sh: Update copyright date to 2004, since some tests
7717         have changed in 2004.
7719 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
7721         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
7722         non-truncating sed or gsed program in PATH.
7723         * tests/acprograms.at: Add it.
7724         * doc/autoconf.texi (Particular Programs): Document it.
7725         * NEWS: Updated.
7727 2004-01-15  Paul Eggert  <eggert@twinsun.com>
7729         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
7730         -std1 disables some useful extensions on Tru64.  Problem reported
7731         by N. Lichtmaier in
7732         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
7734 2004-01-14  Paul Eggert  <eggert@twinsun.com>
7736         * doc/autoconf.texi (Programming in M4sh): Document that
7737         AS_MKDIR_P succeeds if the destination is a symbolic link
7738         to an existing directory.
7739         (Limitations of Usual Tools): Note that mkdir -p might not
7740         succeed on symlinks to directories.
7742 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
7744         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
7745         * bin/autoheader.in: Grammar fix in message.
7746         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
7747         Test for dir before calling mkdir -p.  (trivial changes)
7749 2004-01-13  Eric Blake  <ebb9@byu.net>
7751         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
7752         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
7754 2004-01-10  Jim Meyering  <jim@meyering.net>
7756         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
7758 2004-01-09  Paul Eggert  <eggert@twinsun.com>
7760         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
7761         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
7762         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
7763         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
7764         AC_COMPILE_IFELSE, since we now assume our caller invokes
7765         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
7766         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
7767         of AC_RUN_IFELSE; this avoids the warning mentioned above.
7768         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
7770 2004-01-07  Paul Eggert  <eggert@twinsun.com>
7772         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
7773         `"'...'"`, as it's confusing (and I suspect it may not work on
7774         some platforms).  The code was incorrect anyway, as it assumed
7775         that \$ evaluated to itself in that context.  Reported by
7776         Alexandre Duret-Lutz.
7778 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
7780         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
7781         and _LT_AC_TAGCONFIG.
7783 2004-01-06  Paul Eggert  <eggert@twinsun.com>
7785         * doc/autoconf.texi (One Macro Call): Fix an incorrect
7786         example, and add more examples.  Reported by Eric Sunshine.
7788 2004-01-05  Paul Eggert  <eggert@twinsun.com>
7790         * doc/autoconf.texi (Limitations of Usual Tools):
7791         Remove warning against "rm -fr" introduced yesterday; it
7792         was a false alarm.
7794         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
7795         autoscan, autoupdate, ifnames): Don't use chmod -w.
7796         * lib/Makefile.am (autom4te.cfg): Likewise.
7797         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
7798         "chmod -w".
7800 2004-01-04  Paul Eggert  <eggert@twinsun.com>
7801             Paolo Bonzini  <bonzini@gnu.org>
7803         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
7804         by doing lineno substitution only on lines containing "$LINENO".
7806 2004-01-04  Paul Eggert  <eggert@twinsun.com>
7808         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
7809         Use "rm -f" to remove conftest.sed, not plain "rm".
7810         Bug reported by David Relson in
7811         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
7813         * Makefile.am (autom4te-update):
7814         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
7815         * Makefile.maint (my-distcheck, do-po-update): Likewise.
7816         * doc/autoconf.texi (Guidelines): Likewise.
7817         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
7818         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
7819         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
7820         * lib/autotest/general.m4 (AT_INIT): Likewise.
7821         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
7822         * tests/Makefile.am (clean-local): Likewise.
7823         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
7824         srcdir): Likewise.
7825         * doc/autoconf.texi (Limitations of Usual Tools):
7826         Warn against "rm -fr".
7828 2004-01-03  Paul Eggert  <eggert@twinsun.com>
7830         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
7831         -c -o might not work.  From a suggestion by Kevin Ryde.
7832         (C Compiler, Generating Sources, Limitations
7833         of Usual Tools, Limitations of Make, Making testsuite Scripts):
7834         Don't put '-o' after non-options, as POSIX doesn't allow this.
7835         Mention that cc's name might be gcc or c89 or whatever.
7837 2004-01-04  Kevin Ryde  <user42@zip.com.au>
7839         * doc/autoconf.texi: Add various further index entries.
7841 2003-12-29  Paul Eggert  <eggert@twinsun.com>
7843         * bin/autoreconf.in (autoreconf_current_directory):
7844         Fix typo: mkdir without umask arg.
7846 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
7848         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
7849         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
7850         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
7851         explanation clearer.
7853 2003-12-24  Andreas Schwab  <schwab@suse.de>
7855         * doc/autoconf.texi (Default Includes): Fix misspelling of
7856         AC_INCLUDES_DEFAULT.
7858 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
7860         * configure.ac: Test if sh -n works.
7861         * configure: Regenerate.
7862         * tests/atlocal.in: Store the result here.
7863         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
7864         tools.at, looking in atlocal's ac_cv_sh_n_works instead
7865         of explicitly testing.
7866         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
7867         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
7868         * tests/tools.at (Syntax of the shell scripts): Simplify
7869         using AT_CHECK_SHELL_SYNTAX.
7870         (Syntax of the Perl scripts): Remove definition of
7871         AT_CHECK_PERL_SYNTAX.
7873 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
7875         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
7876         stderr to /dev/null.
7877         * bin/autoconf.in: Regenerate.
7878         * bin/wrapper.in: Regenerate.
7880 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
7882         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
7883         Extracted from AS_SHELL_SANITIZE.
7884         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
7885         macros.
7886         (AS_SHELL_SANITIZE): Move reinvocation code from
7887         _AS_LINENO_WORKS, use it to find out if shell
7888         functions work.
7889         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
7890         does not work.
7891         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
7892         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
7893         was called.
7894         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
7895         * bin/autoconf.in: Regenerate.
7896         * tests/wrapper.in: Regenerate.
7897         * tests/tools.at: Test the syntax of tests/autoconf
7898         and tests/testsuite.
7900 2003-11-24  Akim Demaille  <akim@epita.fr>
7902         * config/announce-gen (&print_locations, &print_signatures)
7903         (&sizes): New.
7904         Use them.
7905         No longer rely on Gnus to inline the list of signatures: compute
7906         them on the fly.
7908 2003-11-24  Akim Demaille  <akim@epita.fr>
7910         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
7911         override some files.
7912         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
7913         From Debian Autoconf 2.58.
7915 2003-11-24  Akim Demaille  <akim@epita.fr>
7917         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
7918         uses.
7919         From Debian Autoconf 2.58.
7921 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
7923         * TODO: Remove already done things.  Update the part about finding
7924         tools for the target.
7926 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
7928         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
7929         Make wording more consistent.
7930         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
7931         Explain the transition better.
7932         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
7933         the transition better.
7935 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
7937         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
7938         parameter of AU_DEFUN.
7939         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
7940         (AU_DEFUN): Remove the third parameter, it was not used.
7941         Use AC_DEFUN directly, not AU_DEFINE.
7942         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
7943         the expanded body, consistently with other macros such as AC_USG.
7945 2003-11-17  Paul Eggert  <eggert@twinsun.com>
7947         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
7948         into the initial confdefs.h, to work around a bug in NextStep 3.3
7949         patch 3 reported by Eric Sunshine.
7951 2003-11-15  Kevin Ryde  <user42@zip.com.au>
7953         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
7954         than $target since the latter is not usual, add guidelines on when to
7955         use or not use the system type.
7957 2003-11-12  Derek Price  <derek@ximbiot.com>
7959         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
7960         typo misrepaired by an auto-spellcheck.
7962 2003-11-12  Akim Demaille  <akim@epita.fr>
7964         * bin/autoreconf.in (&parse_args): Don't call automake with
7965         --force-missing unless it actually supports it.
7966         From Debian #219336.
7968 2003-11-12  Akim Demaille  <akim@epita.fr>
7970         * configure.ac: Bump to 2.59a.
7971         Require 2.59.
7973 2003-11-06  Akim Demaille  <akim@epita.fr>
7975         Version 2.59.
7977 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
7979         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
7980         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
7981         and ac_abs_top_srcdir are absolute paths.
7982         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
7984 2003-11-05  Akim Demaille  <akim@epita.fr>
7986         * configure.ac: Bump to 2.58a.
7988 2003-11-05  Kevin Ryde  <user42@zip.com.au>
7990         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
7991         it provokes a warning from makeinfo about looking like a cross
7992         reference in info output.
7994         * doc/autoconf.texi (Function Portability): Add notes on signal
7995         handler return type, as per AC_TYPE_SIGNAL.
7997 2003-11-04  Akim Demaille  <akim@epita.fr>
7999         Version 2.58.
8000         * doc/standards.texi: Update from master.
8002         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
8004 2003-11-04  Akim Demaille  <akim@epita.fr>
8006         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
8007         computing the absolute path to d1 in the source hierarchy: it may
8008         not exist at all.  So don't cd into it.
8009         From Alexandre Duret-Lutz.
8010         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
8012         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
8013         From Paul Eggert, but named after Perl's IO::Spec->catfile.
8014         * doc/autoconf.texi (Programming in M4sh): Document.
8015         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
8017 2003-11-03  Pavel Roskin  <proski@gnu.org>
8019         * doc/autoconf.texi (Generic Structure Checks): Describe
8020         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
8022 2003-10-31  Akim Demaille  <akim@epita.fr>
8024         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
8025         (GNU Fortran): New.
8026         * doc/autoconf.texi (Language Choice): Document.
8027         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
8028         the current language is Fortran.
8030 2003-10-31  Akim Demaille  <akim@epita.fr>
8032         * bin/autom4te.in (&freeze): Use a less likely warning separator
8033         than `\n\n', so that `\n\n\n' is valid in warnings.
8034         Reported by Steve Huston.
8036 2003-10-28  Akim Demaille  <akim@epita.fr>
8038         * Makefile.cfg (local_updates, executable-update): Tweak to be
8039         robust to parallel makes.
8040         Suggested by Alexandre Duret-Lutz.
8042 2003-10-27  Akim Demaille  <akim@epita.fr>
8044         * Makefile.cfg (executable-update): New.
8045         (local_updates): Call it.
8047 2003-10-27  Akim Demaille  <akim@epita.fr>
8049         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
8050         Don't remove core.* as it may remove valid user files.
8051         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
8052         (AC_FUNC_UTIME_NULL): Likewise.
8054 2003-10-23  Akim Demaille  <akim@epita.fr>
8056         Version 2.57g.
8057         * config/config.guess, config/config.sub: Upgrade from masters.
8059 2003-10-23  Akim Demaille  <akim@epita.fr>
8061         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
8062         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
8063         hand...
8065 2003-10-23  Akim Demaille  <akim@epita.fr>
8067         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
8068         Don't forget to remove conftest.err.
8070 2003-10-23  Akim Demaille  <akim@epita.fr>
8072         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
8073         same object file in $LIBOBJS.
8074         Reported by Alexandre Duret-Lutz & Derek Robert Price.
8075         * doc/autoconf.texi (Generic Functions): Adjust.
8077 2003-10-20  Paul Eggert  <eggert@twinsun.com>
8079         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
8080         Use 'eval', so that the resulting configure scripts work even if
8081         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
8083 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
8085         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
8086         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
8087         (_AC_LINK_IFELSE): Check the werror flag.
8088         * doc/autoconf.texi (Generic Compiler Characteristics): Document
8089         AC_LANG_WERROR.
8090         * NEWS: Mention it.
8092 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
8094         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
8095         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
8096         override AC_LINK_IFELSE.
8098 2003-10-15  Paul Eggert  <eggert@twinsun.com>
8100         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
8101         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
8102         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
8103         Mention /usr/dt/bin/dtksh on Solaris.
8104         (Shell Substitutions): Warn about $((...)).
8105         (Parentheses): New section.
8107 2003-10-15  Kevin Ryde  <user42@zip.com.au>
8109         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
8110         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
8112 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8114         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
8115         cross test.
8117 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
8119         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
8120         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
8122 2003-10-10  Andreas Schwab  <schwab@suse.de>
8124         * bin/autoheader.in: Avoid empty first line in --version and
8125         --help output.
8126         * bin/ifnames.in: Likewise.
8128 2003-10-09  Paul Eggert  <eggert@twinsun.com>
8130         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
8131         Issue a more-informative diagnostic.
8132         Problems reported by Eric Sunshine.
8134 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
8136         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
8137         -mGLOB_options_string stuff for Intel ifc, which can cause
8138         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
8139         pattern-matching instead of grep.
8141 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
8143         * doc/autoconf.texi: Document new FC Fortran macros.
8145 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
8147         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
8148         that future autopoint/aclocal/automake/autoreconf will be able
8149         to trace to find where to install local m4 macros.
8150         * doc/autoconf.texi (Input): Document it.
8151         * NEWS: Updated.
8153 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
8155         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
8156         -lcrtbegin.o to list of ignored flags and fix underquoting of
8157         -lcrt[01].o.
8159 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
8161         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
8162         cache variable instead of $G77 to decide whether to include -O2,
8163         since $G77 is specific to Fortran 77.
8165 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
8167         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
8168         free" flag.  Re-order flags tested into rough order of popularity.
8170 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
8172         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
8173         arguments so that it can be used with syntax identical to
8174         AC_PROG_F77, and so that we can more easily decide to
8175         remove/deprecate the DIALECT optional argument in the future if it
8176         proves troublesome.
8177         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
8178         non-freeform-supporting compilers.  Document freeform flags.
8180 2003-10-03  Akim Demaille  <akim@epita.fr>
8182         * configure.ac: Look for emacs, not macs.
8183         Reported by Eric Sunshine.
8185 2003-10-03  Akim Demaille  <akim@epita.fr>
8187         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
8188         * bin/autoreconf.in (autoreconf_current_directory): Create the
8189         AUX_DIR if needed, for sake of automake --add-missing etc.
8190         Suggested by Alexandre Duret-Lutz.
8192 2003-10-03  Akim Demaille  <akim@epita.fr>
8194         * configure.ac: Quotation and formatting changes.
8195         (EMACS): Don't set it if it is not recent enough to support
8196         autoconf-mode.el.
8197         From Eric Sunshine.
8199 2003-10-02  Akim Demaille  <akim@epita.fr>
8201         * bin/ifnames.in (&scan_file): Skip C++ comments.
8202         From Jeremy Yallop.
8204 2003-10-01  Pavel Roskin  <proski@gnu.org>
8206         * doc/autoconf.texi (Particular Structure Checks):
8207         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
8209 2003-10-01  Akim Demaille  <akim@epita.fr>
8211         Version 2.57f.
8213 2003-09-30  Paul Eggert  <eggert@twinsun.com>
8215         * lib/Autom4te/XFile.pm: Use Errno.
8216         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
8217         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
8219 2003-09-30  Akim Demaille  <akim@epita.fr>
8221         * config/announce-gen (&print_news_deltas): Extracted from...
8222         (&print_changelog_deltas): here.
8223         (&news_file): Rename as...
8224         (@news_file): this.
8226 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
8228         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
8229         have been created when invoking the compiler.
8230         * tests/fortran.at (GNU Fortran 77): Quote $G77.
8232 2003-09-29  Akim Demaille  <akim@epita.fr>
8234         Version 2.57e.
8236         * config/mkinstalldirs: Upgrade.
8238 2003-09-28  Paul Eggert  <eggert@twinsun.com>
8240         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
8241         Problem reported by Lars J. Aas in
8242         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
8243         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
8244         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
8245         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
8247 2003-09-26  Akim Demaille  <akim@epita.fr>
8249         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
8250         directory for AC_CONFIG_COMMANDS' first argument exists.
8251         This makes valid the invocation of _AC_SRCPATH that follows.
8252         Reported by Eric Sunshine.
8253         * doc/autoconf.texi (Configuration Commands): Adjust.
8255 2003-09-26  Akim Demaille  <akim@epita.fr>
8257         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
8258         Reported by Ralf Corsepius.
8260 2003-09-26  Akim Demaille  <akim@epita.fr>
8262         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
8263         arguments.
8264         Actually, use AU_ALIAS.
8265         From Bruno Haible.
8267 2003-09-26  Paul Eggert  <eggert@twinsun.com>
8269         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
8270         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
8271         Problem reported by Eric Sunshine in:
8272         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
8274 2003-09-26  Akim Demaille  <akim@epita.fr>
8276         The test suite are sometimes assigning timings incorrectly.
8277         Reported by Henk Krus.
8278         Diagnosed by Nicolas Joly.
8280         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
8281         AT_help_all.
8282         Instead of making AT_help a sequence of assignments to grow
8283         $at_help_all, just make AT_help_all be the growing contents of
8284         $at_help_all, and make a single assignment in...
8285         (AT_INIT): here.
8286         (at_times_skip): Flip the meaning and rename as...
8287         (at_times_p): this.
8288         (AT_INIT): When summarizing the test that ran, remove
8289         $at_times_file after use, and check it is present before trying to
8290         use it.
8292 2003-09-25  Akim Demaille  <akim@epita.fr>
8294         Version 2.57d.
8296         * bin/Makefile.am (edit): Handle '@configure_input@'.
8297         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
8298         (ifnames): chmod -w.
8299         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
8300         executables, not bin/ executables!  Otherwise all the magic needed
8301         to find non installed files is turned off.  This caused a failure
8302         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
8303         as found in its environment (sent by tests/autoreconf): pointing
8304         to bin/autom4te that could not find its files.
8305         * tests/mktests.sh: Force the replacement of generated files, for
8306         the sake of "mv" program that are interactive when overwriting a
8307         -w file.
8308         * config/install-sh: Upgrade from CVS Automake.
8310 2003-09-23  Paul Eggert  <eggert@twinsun.com>
8312         * doc/autoconf.texi (Limitations of Builtins): Document test -h
8313         versus test -L issues.
8315 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
8316             Paul Eggert  <eggert@twinsun.com>
8318         Trivial change to support GCC's configuration procedure.
8319         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
8320         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
8321         about inconsistency if the preprocessor is set to give errors for
8322         any warning.
8323         * doc/autoconf.texi (C Compiler Characteristics): Document this.
8325 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
8327         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
8328         and XFile.pm from Automake.
8329         * lib/Autom4te/XFile.pm: Update from Automake.
8331 2003-09-12  Akim Demaille  <akim@epita.fr>
8333         Version 2.57c.
8335 2003-09-12  Akim Demaille  <akim@epita.fr>
8337         * config/config.guess, config/config.sub, config/missing,
8338         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
8339         from masters.
8341 2003-09-12  Akim Demaille  <akim@epita.fr>
8343         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
8344         not asm/types.h.
8346 2003-09-11  Akim Demaille  <akim@epita.fr>
8348         * doc/autoconf.texi (Header Portability): linux/random.h.
8349         From Peter Hendrickson.
8351 2003-09-10  Akim Demaille  <akim@epita.fr>
8353         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
8354         willing to edit the output files.
8356 2003-09-10  Akim Demaille  <akim@epita.fr>
8358         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
8359         and AC_FC_FREEFORM.
8360         * tests/mktests.sh: Skip AC_FC_SRCEXT.
8361         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
8363 2003-09-09  Akim Demaille  <akim@epita.fr>
8365         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
8366         Reported by Gary Vaughan.
8367         * bin/autom4te.in (handle_m4): Likewise.
8369 2003-09-09  Akim Demaille  <akim@epita.fr>
8371         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
8372         trailing files.
8374 2003-09-07  Paul Eggert  <eggert@twinsun.com>
8376         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
8377         Improve the accuracy of the wording about obsolescence.
8378         From a suggestion by Ian Lance Taylor in
8379         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
8381 2003-09-05  Paul Eggert  <eggert@twinsun.com>
8383         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
8384         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
8386 2003-09-04  Akim Demaille  <akim@epita.fr>
8388         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
8389         AC_FUNC_WAIT3.
8391 2003-09-04  Akim Demaille  <akim@epita.fr>
8393         * bin/autom4te.in: Use &fatal where more appropriate than &error.
8394         (freeze): When exiting, use $exit_code.
8395         * lib/autoconf/fortran.m4: Comment changes.
8397 2003-09-04  Akim Demaille  <akim@epita.fr>
8399         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
8401 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
8403         Add support for newer Fortran dialects.  The F77 interface is
8404         unchanged, and continues to support Fortran 77.  New FC macros
8405         correspond to all the old F77 macros, with output variables FC,
8406         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
8407         available dialect, but older dialects can be specified.  There are
8408         new macros AC_FC_SRCEXT to set the source extension, and
8409         AC_FC_FREEFORM to accept free-form source files.
8411         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
8412         New macros.
8413         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
8414         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
8415         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
8416         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
8417         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
8418         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
8419         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
8420         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
8421         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
8422         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
8423         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
8424         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
8425         AC_FC_SRCEXT, AC_FC_FREEFORM):
8426         New macros.
8427         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
8428         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
8429         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
8430         Rewrite in terms of the above.
8431         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
8432         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
8433         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
8434         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
8436 2003-09-02  Paul Eggert  <eggert@twinsun.com>
8438         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
8439         Document problems with timestamp resolution that 'make', 'cp -p', and
8440         'touch -r' have.
8442 2003-08-27  Akim Demaille  <akim@epita.fr>
8444         * tests/m4sugar.at (cross_warning): Make sure to enable the
8445         output, so that we can track spurious m4sugar output.
8446         * tests/local.at: Require 2.57.
8447         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
8448         are defaulted by AT_CHECK anyway.
8449         Use AT_CHECK_AUTOM4TE.
8450         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
8451         missing dnl.
8453 2003-08-27  Akim Demaille  <akim@epita.fr>
8455         * bin/autoheader.in: Issue the "Using auxiliary..." message only
8456         when -Wobsolete is set.
8457         Set it on by default.
8458         Suggested by Klee Dienes.
8460 2003-08-27  Akim Demaille  <akim@epita.fr>
8462         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
8463         documentation.
8464         From Guido Draheim.
8466 2003-08-26  Akim Demaille  <akim@epita.fr>
8468         * doc/autoconf.texi (Output): Make clear that one can run code
8469         after AC_OUTPUT.
8471 2003-08-25  Akim Demaille  <akim@epita.fr>
8473         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
8474         CVS Bison.
8476 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
8478         * bin/autoreconf.in (parse_args): Do not pass --no-force to
8479         Automake versions prior to 1.8.
8481 2003-08-25  Akim Demaille  <akim@epita.fr>
8483         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
8484         From Ville Karaila.
8486 2003-08-24  Akim Demaille  <akim@epita.fr>
8488         * configure.ac: Bump to 2.57c.
8490 2003-08-22  Akim Demaille  <akim@epita.fr>
8492         Version 2.57b.
8494         * Makefile.cfg (local-checks-to-skip): New.
8495         * Makefile.maint (local-check): Rename as...
8496         (local-checks-available): this.
8497         (local-check): New.
8499         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
8500         * configure.ac: Require Automake 1.7.6.
8502 2003-08-22  Akim Demaille  <akim@epita.fr>
8504         Output stack traces in warnings.
8506         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
8507         Replace the former...
8508         (m4_warn): Pass the call stack to _m4_warn.
8509         * bin/autom4te.in: Adjust to output the call stack.
8510         * tests/m4sugar.at (m4@&t@_warn): Adjust.
8512 2003-08-22  Akim Demaille  <akim@epita.fr>
8514         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
8515         * bin/autom4te.in: Adjust.
8517 2003-08-21  Akim Demaille  <akim@epita.fr>
8519         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
8520         (&verbose): Remove.
8521         (&getopt): Adjust the note and verb channels, depending upon
8522         --verbose.
8523         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
8524         * bin/autoupdate.in: Adjust.
8525         Use &verb, not &verbose.
8527 2003-08-21  Akim Demaille  <akim@epita.fr>
8529         * bin/autoheader.in (&parse_args): Use &parse_warnings and
8530         &parse_WARNINGS.
8531         ($help): Use Autom4te::ChannelDefs::usage.
8532         * bin/autoscan.in: Use Autom4te::ChannelDefs.
8533         * lib/Autom4te/General.pm: Don't export error: you don't own it.
8535 2003-08-21  Akim Demaille  <akim@epita.fr>
8537         First stab at preserving warnings between calls to autom4te,
8538         including when the cache is used.
8540         There are still several issues: (i) there are too many runs of m4
8541         (one for include, one for warnings, and some more), (ii) warnings
8542         spreading on several lines are not handled gracefully, (iii) the
8543         code meant to have the call stack display for errors does not work
8544         (its handling should move from m4 to autom4te).
8546         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
8547         Use them.
8548         (@preselect): Add m4_warn.
8549         ($exit_status): Remove, use $exit_code.
8550         ($help): Use Autom4te::ChannelDefs::usage.
8551         (&handle_m4): No longer define the m4_warnings.
8552         At each run, extract and report the warnings.
8553         Always cache the result, including if the exit status is on
8554         failure, since if nothing changes, we should result in the same
8555         failure, hence we can use the cache.
8556         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
8557         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
8558         Remove.
8559         (m4_warn): Redefine as a do-nothing: it is its invocation that
8560         matters, as warnings are now reported via traces.
8561         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
8562         the contents of m4_warn: make it _call_ m4_warn, so that tracing
8563         the latter reveals calls to the former.
8565         Adjust the tests.
8567         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
8569 2003-08-21  Akim Demaille  <akim@epita.fr>
8571         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
8572         Use them.
8574 2003-08-21  Akim Demaille  <akim@epita.fr>
8576         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
8577         forward order.
8578         * lib/Autom4te/ChannelDefs.pm: Doc typos.
8579         (&parse_warnings): Accept a list of warning requests.
8580         (&usage): Return a string, not a side effect.
8581         (cross): New warning category.
8583 2003-08-21  Akim Demaille  <akim@epita.fr>
8585         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
8586         (&require_configure_ac): Accept an optional directory argument.
8587         ($configure_ac): Remove.
8588         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
8589         (&catfile): Remove.
8590         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
8591         * bin/autoscan.in: Adjust.
8593 2003-08-20  Akim Demaille  <akim@epita.fr>
8595         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
8596         Reported by Alexandre Duret-Lutz.
8598 2003-08-20  Akim Demaille  <akim@epita.fr>
8600         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
8601         * bin/autom4te: Adjust.
8602         In particular, be Autoconf tools are really silent when properly
8603         working, bind the verbosity of the 'note' channel to $verbose.
8604         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
8605         (&xsystem, &contents): Remove, since they are exported by...
8606         * lib/Autom4te/FileUtils.pm: this.
8607         More perldoc.
8608         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
8609         * lib/Autom4te/FileUtils.pm: here.
8611 2003-08-20  Akim Demaille  <akim@epita.fr>
8613         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
8614         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
8615         from CVS Automake.
8617 2003-08-20  Akim Demaille  <akim@epita.fr>
8619         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
8620         (autom4te-update): New.
8621         * Makefile.cfg (update): Bind autom4te-update.
8623 2003-08-19  Derek Price  <derek@ximbiot.com>
8625         * lib/autotest/general.m4: Comment various HELP_* diversions.
8626         (PARSE_ARGS_BEGIN): New section for option parsing related
8627         initialization.
8628         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
8629         package specific options and associated help.
8631 2003-08-19  Akim Demaille  <akim@epita.fr>
8633         * config/announce-gen, Makefile.cfg: New.
8634         * Makefile.am: Adjust.
8635         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
8637 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
8639         * lib/autom4te.in (Automake-preselections): Preselect
8640         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
8641         and m4_sinclude.
8643 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
8645         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
8646         (Autoconf-without-aclocal-m4): ... this new language.
8647         * doc/autoconf.texi (autom4te Invocation): Mention
8648         Autoconf-without-aclocal-m4.
8650 2003-08-18  Derek Price  <derek@ximbiot.com>
8652         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
8653         RUN-IF-PASS optional arguments.
8655 2003-08-18  Derek Price  <derek@ximbiot.com>
8657         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
8659 2003-08-16  Derek Price  <derek@ximbiot.com>
8661         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
8662         STDOUT & STDERR arguments.
8664 2003-08-14  Derek Price  <derek@ximbiot.com>
8666         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
8667         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
8668         shorter column three.  Add DESCRIPTION to log file content.
8670 2003-08-13  Derek Price  <derek@ximbiot.com>
8672         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
8673         output.
8675 2003-08-12  Derek Price  <derek@ximbiot.com>
8677         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
8678         (AT_CHECK_NOESCAPE): Move core functionality to...
8679         (_AT_CHECK): ...this new macro.
8681 2003-08-07  Derek Price  <derek@ximbiot.com>
8683         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
8684         (AT_CHECK_NOESCAPE): ...to this new macro.
8686 2003-07-31  Paul Eggert  <eggert@twinsun.com>
8688         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
8689         in Bash 2.01.  Problem reported by Brian Gough in
8690         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
8692 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
8694         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
8695         -lcrt1.o, for OS X.  (trivial change)
8697 2003-07-07  Paul Eggert  <eggert@twinsun.com>
8699         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
8700         inside '#ifndef __cplusplus'.  Problem reported by
8701         Bob Friesenhahn.
8703 2003-07-06  Bill Clarke  <llib@computer.org>
8705         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
8706         'long', not 'int', for benefit of Sun's recent C++ compilers
8707         (trivial change).  See:
8708         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
8709         (This really should be 'intptr_t', not 'long', but that would
8710         take more work.)
8712 2003-06-25  Akim Demaille  <akim@epita.fr>
8714         * lib/Makefile.am (autom4te.cfg): Make it read only.
8715         Depend on Makefile since it contains substitutions.
8716         From Paolo Bonzini.
8717         * lib/autom4te.in (args): Add local.at? for Autotest args.
8718         This change was made on autom4te.cfg which is generated.
8719         Reported by Raja R. Harinath.
8721 2003-06-25  Akim Demaille  <akim@epita.fr>
8723         * doc/autoconf.texi (Header Portability): sys/mount.h.
8724         From Gareth McCaughan.
8726 2003-06-23  Akim Demaille  <akim@epita.fr>
8728         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
8729         not all of them.  This fixes 1. the fact that when testing
8730         Autoconf there are many many config.log, 2. the incorrect use of
8731         top_srcdir to find config.log.
8732         Don't mix the detailed output of failed test with the summary of
8733         failures.  Rather, append detailed log afterwards.
8735 2003-06-23  Akim Demaille  <akim@epita.fr>
8737         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
8738         always run: output config.log on $at_group_log.
8740 2003-06-23  Akim Demaille  <akim@epita.fr>
8742         * tests/torture.at (#define header templates): Don't use quotes in
8743         C++ comments as it puzzles Emacs' sh font-lock-mode.
8745 2003-06-23  Akim Demaille  <akim@epita.fr>
8747         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
8748         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
8749         * tests/atspecific.m4: Rename as...
8750         * tests/local.at: This.
8751         * tests/suite.at: Move the globals into...
8752         * tests/local.at: here.
8753         * tests/Makefile.am: Adjust.
8754         * doc/autoconf.texi (testsuite Scripts): Adjust.
8756 2003-06-21  Kevin Ryde  <user42@zip.com.au>
8758         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
8759         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
8760         ensuring we add -std1 for full-ANSI.
8762         * doc/autoconf.texi (hdrindex): New macro.
8763         Add index entries for portability of various standard header files.
8765 2003-06-20  Akim Demaille  <akim@epita.fr>
8767         * configure.ac: Bump to 2.57b.
8769 2003-06-20  Akim Demaille  <akim@epita.fr>
8771         Version 2.57a.
8773 2003-06-20  Akim Demaille  <akim@epita.fr>
8775         * bin/autom4te.in: Don't rely on $HOME being defined.
8776         Reported by Marc Espie as PR/233.
8778 2003-06-20  Akim Demaille  <akim@epita.fr>
8780         * lib/autotest/general.m4: Use at_times_file only if used.
8781         From Nicolas Joly.
8783 2003-06-20  Akim Demaille  <akim@epita.fr>
8785         * config/config.guess, config/config.sub, config/elisp-comp,
8786         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
8787         Update from masters.
8789 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
8791         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
8792         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
8793         (TEST_SCRIPT): New diversion.
8794         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
8795         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
8796         (AT_INIT): Support for expected failures.
8798 2003-06-02  Akim Demaille  <akim@epita.fr>
8800         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
8801         changes.
8802         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
8803         Autoconf nor Automake.
8804         (&contents): New, from Automake.
8805         PODify.
8807 2003-05-28  Paul Eggert  <eggert@twinsun.com>
8809         * NEWS, doc/autoconf.texi (Particular Functions),
8810         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
8811         is the inverse of localtime.
8813 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
8815         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
8816         (handle_exec_errors): New function.  Work around $! being
8817         altered by WEXITSTATUS.
8818         (xqx, xsystem): Use handle_exec_errors.
8820 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
8822         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
8823         Do not call `_exit()', simply modify `$?'.
8824         (xsystem): Reset $! before running system, and check it afterward.
8825         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
8826         63 for version mismatches.
8828 2003-05-23  Akim Demaille  <akim@epita.fr>
8830         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
8831         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
8832         the middle of a line).
8833         * lib/m4sugar/m4sugar.m4: Likewise.
8834         Remove useless spaces in comments.
8836 2003-05-23  Akim Demaille  <akim@epita.fr>
8838         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
8839         exit 63, so that we (or Automake's "missing") can tell the
8840         difference with a plain failure.
8841         * doc/autoconf.texi (Notices): Adjust.
8843 2003-05-23  Akim Demaille  <akim@epita.fr>
8845         * Makefile.am, bin/Makefile.am, config/Makefile.am,
8846         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
8847         White spaces cleanup.
8849 2003-05-22  Jim Meyering  <jim@meyering.net>
8850             Paul Eggert  <eggert@twinsun.com>
8852         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
8853         Remove `#include <stdlib.h>' from the list; we should never
8854         make confdefs.h include <stdlib.h> or <cstdlib>, because the
8855         resulting namespace pollution would cause other tests to fail.
8856         Configure scripts run with some older versions of g++ and HP's
8857         aCC would fail due to such an #include.  Problems reported by
8858         Matthew Mueller in <http://bugs.debian.org/120704> and by
8859         Keith Bostic in
8860         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
8861         In the test, use the test declaration before including <stdlib.h>,
8862         as that's closer to how it'll be used.
8864 2003-05-23  Akim Demaille  <akim@epita.fr>
8866         * doc/autoconf.texi (Header Portability): ucred.h.
8867         From Ian Redfern.
8869 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
8871         Overhaul Autotest's logging: generate separate log files
8872         in testsuite.dir/NNN/testsuite.log, and append them to
8873         testsuite.log instead of re-running the test verbosely.
8875         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
8876         file descriptor, write 0 to at_status_file instead of setting
8877         at_status=0, initialize some new variables (at_status_file,
8878         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
8879         to rerun the tests, instead append the at_group_log to the
8880         at_suite_log when a test fails.
8881         (AT_SETUP): pipe the test case's output into at_tee_pipe,
8882         with the AS_MESSAGE_LOG_FD redirected to stdout.
8883         (AT_CLEANUP): save the output status in $at_status_file
8884         and restore it, redirect the AS_MESSAGE_LOG_FD back to
8885         its original place.
8886         (AT_CHECK): since tests are run with a redirected stdout,
8887         and used to be re-run in verbose mode, turn some $at_verbose
8888         into echo, and don't redirect the output of testing stdout
8889         and stderr.
8891         * lib/autotest/autoconf.texi (testsuite Scripts): Update
8892         the name of the debugging directory and information about
8893         its contents.
8895 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
8897         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
8898         parameter.
8900 2003-05-22  Akim Demaille  <akim@epita.fr>
8902         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
8903         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
8904         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
8905         * lib/autoconf/status.m4: Fix and adjust copyright notices.
8907 2003-05-22  Akim Demaille  <akim@epita.fr>
8909         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
8910         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
8911         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8912         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
8913         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
8914         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
8915         * lib/autoconf/status.m4, lib/autoconf/types.m4,
8916         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
8917         * tests/atspecific.m4, tests/base.at, tests/compile.at,
8918         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
8919         * tests/tools.at, tests/torture.at:
8920         Whitespace clean up.
8921         Suggested by Jim Meyering.
8923 2003-05-22  Akim Demaille  <akim@epita.fr>
8925         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
8926         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
8927         Reported by Jim Meyering.
8929 2003-05-22  Akim Demaille  <akim@epita.fr>
8931         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
8932         Add AC_HELP_STRING  to the obsolete macros section.
8933         Typos.
8934         Use '@.' for sentences that ended in a capital letter.
8935         From Art Haas.
8937 2003-05-22  Akim Demaille  <akim@epita.fr>
8939         * config/config.guess, config/config.sub, config/elisp-comp,
8940         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
8941         * config/texinfo.tex, doc/standards.texi: Update from masters.
8943 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
8945         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
8946         it to eval.
8948 2003-05-21  Akim Demaille  <akim@epita.fr>
8950         * bin/autoupdate.in ($m4): Fix quotation.
8951         Reported by Martin Mokrejs.
8953 2003-05-19  Paul Eggert  <eggert@twinsun.com>
8955         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
8956         Remove non-ASCII characters.
8958 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
8960         * tests/semantics.at (AC_SEARCH_LIBS): New test.
8961         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
8962         AC_CHECK_HEADERS_NEW): New tests.
8964 2003-05-17  Akim Demaille  <akim@epita.fr>
8966         * lib/autoconf/functions.m4: Use the default includes so that
8967         memcmp be declared before being tested.
8968         Reported by Sander Niemeijer.
8969         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
8970         * doc/autoconf.texi (Default Includes): Document
8971         AC_INCLUDES_DEFAULT.
8973 2003-05-17  Akim Demaille  <akim@epita.fr>
8975         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
8976         * doc/autoconf.texi (Obsolete Macros): Adjust.
8977         Reported by Werner LEMBERG and Debian Bug 190886.
8979 2003-05-16  Akim Demaille  <akim@epita.fr>
8981         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
8982         user name space clashes.
8983         Reported by Bruno Haible.
8985 2003-05-16  Akim Demaille  <akim@epita.fr>
8987         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
8988         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
8989         them uniform, and more robust to Perl special characters.
8990         Reported by Martin Mokrejs.
8992 2003-05-14  Akim Demaille  <akim@epita.fr>
8994         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
8996 2003-05-14  Akim Demaille  <akim@epita.fr>
8998         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
8999         linux/irda.h.
9001 2003-05-12  Akim Demaille  <akim@epita.fr>
9003         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
9004         message.
9005         From Matthias Andree.
9007 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
9009         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
9010         and truncate.
9012 2003-05-06  Akim Demaille  <akim@epita.fr>
9014         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
9015         longer updates aclocal.m4 if useless, (ii) if a file m4_included
9016         by aclocal.m4 is changed it might require the importing of another
9017         m4 extension file, i.e., aclocal must be run.
9019         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
9020         (&parse_args): Use --force with aclocal if required and supported.
9021         (&autoreconf_current_directory): Use &run_aclocal.
9023 2003-05-06  Akim Demaille  <akim@epita.fr>
9025         Lock autom4te's cache.
9027         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
9028         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
9029         argument instead of a file name, so that the request file remains
9030         open during the whole autom4te run.
9031         ($icache_file): New.
9032         (&freeze): Lock the $icache_file.
9034 2003-04-29  Derek Price  <derek@ximbiot.com>
9036         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
9037         seperator with m4_append_uniq().  It doesn't work.
9038         (AT_CLEANUP): Add `;' to end of at_help_all.
9039         (AT_INIT): Allow --keywords to be specified more than once.  When
9040         grepping $at_help_all for keywords, use the field and keyword
9041         seperators to ensure a complete keyword match.  Alter at_prev handling
9042         to support the new --keywords behavior.
9044 2003-04-27  Karl Berry  <karl@freefriends.org>
9046         * doc/autoconf.texi: Make the dir entries in the autoconf manual
9047         align better with others.  I also made some of the individual
9048         entries on one line, for brevity and to make it easier for me to
9049         sort my dir-example file in the Texinfo distribution :).
9051 2003-04-12  Jim Meyering  <jim@meyering.net>
9053         * NEWS: Mention the new macro.
9054         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
9055         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
9056         * tests/c.at: Test AC_C_RESTRICT.
9057         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
9059 2003-04-08  Akim Demaille  <akim@epita.fr>
9061         * bin/ifnames.in: Skip C++ comments.
9062         From Jeremy Yallop.
9064 2003-04-08  Akim Demaille  <akim@epita.fr>
9066         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
9067         From Ilya Zakharevich.
9069 2003-04-08  Akim Demaille  <akim@epita.fr>
9071         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
9072         net/if.h, stdlib.h.
9074 2003-04-01  Derek Price  <derek@ximbiot.com>
9076         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
9077         from Akim's checkin of 2003-03-29.
9079 2003-04-01  Derek Price  <derek@ximbiot.com>
9081         * tests/torture.at (Configuring subdirectories): Add missing
9082         close-quote for Akim's change from 2003-03-28.
9084 2003-04-01  Akim Demaille  <akim@epita.fr>
9086         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
9087         (AC, AT, MS): these.
9088         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
9089         New.
9090         Use them.
9091         * doc/Makefile.am (CLEANFILES): Adjust.
9092         (TEXI2DVI): Make it --batch.
9094 2003-03-31  Derek Price  <derek@ximbiot.com>
9096         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
9097         which removed the main loop.
9098         Thanks to Akim Demaille.
9100 2003-03-29  Akim Demaille  <akim@epita.fr>
9102         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
9103         that starts a GUI.
9104         From Ilya Zakharevich.
9106 2003-03-29  Akim Demaille  <akim@epita.fr>
9108         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
9109         documentation to read is Autoconf's.
9110         Suggested by Paul Eggert.
9112 2003-03-28  Akim Demaille  <akim@epita.fr>
9114         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
9115         reading the section "Present But Cannot Be Compiled" when the
9116         header causes problems.
9118 2003-03-28  Akim Demaille  <akim@epita.fr>
9120         * tests/torture.at (Configuring subdirectories): Require aclocal
9121         1.4, otherwise the test fails, as it does support configure.ac.
9122         This fixes the "test 40 failed" bug reports.
9124 2003-03-28  Akim Demaille  <akim@epita.fr>
9126         * doc/autoconf.texi (C Compiler): `#line' portability.
9127         From Paul Eggert and Nelson H. F. Beebe.
9129 2003-03-27  Derek Price  <derek@ximbiot.com>
9131         * lib/autotest/general.m4: Eliminate main loop and reorganize test
9132         layout in order to allow scripting around test groups.
9134 2003-03-27  Derek Price  <derek@ximbiot.com>
9136         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
9137         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
9138         use new diversions in preparation for accepting new arguments and
9139         allowing scripting around tests.
9140         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
9142 2003-03-26  Derek Price  <derek@ximbiot.com>
9144         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
9145         obsolete AC_HELP_STRING.
9146         (AC_HELP_STRING): AU_DEFUN to...
9147         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
9148         * tests/m4sh.at (AS_HELP_STRING): New test.
9150         * tests/acgeneral.at: Regenerated.
9152 2003-03-26  Derek Price  <derek@ximbiot.com>
9154         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
9155         sense.  Verbosify the diversion definitions comment.
9157 2003-03-26  Derek Price  <derek@ximbiot.com>
9159         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
9160         AS_PREPARE.
9162 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
9164         * doc/autoconf.texi (Present But Cannot Be Compiled):
9165         Grammar fixes and minor rewording. (trivial change)
9167 2003-03-06  Paul Eggert  <eggert@twinsun.com>
9169         Work around a problem noted by Nelson H. F. Beebe with coreutils
9170         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
9171         2002/05/09) rejects '#line 32768 "configure"' because the line
9172         number overflows.
9173         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
9174         #line directives.
9175         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
9176         * doc/autoconf.texi (Generating Sources): Document this.
9178 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
9180         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
9181         file name for the m4 program, when it has an "exe" file extension.
9182         DJGPP's error messages include the error code in brackets -
9183         remove the error code during normalization.
9185 2003-02-28  Akim Demaille  <akim@epita.fr>
9187         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
9189 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
9191         * doc/autoconf.texi (Limitations of Make): Remove the section
9192         about `$<' in inference rules, it was a bogus interpretation of
9193         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
9194         Tru64 make in the "target lookup" section.
9195         (Automake): Automake 1.5+ no longer requires special tools to be
9196         present on the developer's host.
9198 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
9200         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
9201         to a shell that can handle redirection or quoting correctly.
9202         Override SHELL with the shell detected by configure.
9203         Use of $^O suggested by Tim van Holder.
9204         * bin/autom4te.in (BEGIN): Likewise.
9205         * bin/autoreconf.in (BEGIN): Likewise.
9206         * bin/autoscan.in (BEGIN): Likewise.
9207         * bin/autoupdate.in (BEGIN): Likewise.
9208         * bin/ifnames.in (BEGIN): Likewise.
9210         * bin/ifnames.in: Add final newline to help and version messages.
9212         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
9213         to cope with DOS-style absolute paths, when constructing
9214         ${ac_make}.
9216         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
9217         When constructing paths with IFS=:, quote the path. If we're
9218         constructing a DOS-style absolute path, we don't want to split it
9219         on the colon.
9221         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
9222         in description.
9224 2003-02-25  Pavel Roskin  <proski@gnu.org>
9226         * bin/autoheader.in: Add missing newline when printing
9227         suggestion how change AC_DEFINE call.
9229 2003-02-24  Paul Eggert  <eggert@twinsun.com>
9231         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
9232         2002-09-01 patch by replacing "test -n" with "test -z".
9233         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
9234         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
9236         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
9237         to fix a mismatch between example and discussion.
9239 2003-02-24  Kevin Ryde  <user42@zip.com.au>
9241         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
9242         format starting with "-".
9244 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
9246         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
9247         is not portable inside Makefile.
9249 2003-02-20  Akim Demaille  <akim@epita.fr>
9251         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
9252         compiler says yeah, but preproc says nope, compiler is right.
9253         Conversely, prompt the reader to send a bug report to the
9254         maintainers of the package, not of Autoconf.
9256 2003-02-20  Klee Dienes  <kdienes@apple.com>
9258         * bin/autoreconf.in (autoreconf_current_directory): Properly
9259         handle an empty aclocal.m4.
9261 2003-02-20  Akim Demaille  <akim@epita.fr>
9263         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
9264         $ac_prefix_program.
9265         From Larry Jones.
9267 2002-12-23  Paul Eggert  <eggert@twinsun.com>
9269         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
9270         innocuous variant befor including <limits.h> or <assert.h>.  This
9271         works around a bug reported by Albert Chin: HP-UX 11i
9272         (and earlier versions) have a <limits.h> that declares
9273         gettimeofday and many other functions.
9275 2002-12-03  Paul Eggert  <eggert@twinsun.com>
9277         Version 2.57.
9279         * NEWS, configure.ac: Update version.
9281         * doc/fdl.texi: Upgrade to FDL version 1.2.
9283         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
9284         nontrivially in main's body, so that f's external declaration is
9285         not optimized away in AIX.  This should fix the bug reported by
9286         Martin Frydl in
9287         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
9289         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
9290         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
9291         defined, to support freestanding compilers.  This should fix the
9292         bug reported by Momchil Velkov in
9293         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
9295         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
9296         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
9297         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
9298         by Simon Josefsson in
9299         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
9301         * Makefile.maint (www-gnu): New macro.
9302         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
9303         the location has moved.
9305 2002-12-02  Martin Frydl  <martin@systinet.com>
9307         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
9308         \(.*\) match is too long and there is something more to be checked.
9309         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
9311 2002-11-15  Akim Demaille  <akim@epita.fr>
9313         Version 2.56.
9315         * config/install-sh: chmod +x.
9316         From Paul Eggert.
9317         * config/move-if-change: Indenting changes.
9318         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
9319         * configure.ac (AM_INIT_AUTOMAKE): here.
9320         Require 1.7.1.
9322 2002-11-14  Akim Demaille  <akim@epita.fr>
9324         Version 2.55.
9326         * config/config.guess, config/config.sub, config/install-sh:
9327         Update from masters.
9329 2002-11-14  Akim Demaille  <akim@epita.fr>
9331         * Makefile.maint: Sync with Bison, i.e.:
9332         (po-check): Scan .l and .y files instead of the
9333         .c and the .h files that they generate.  This fixes the bug
9334         reported by Tim Van Holder in:
9335         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
9336         Look for N_ as well as for _.  Try to avoid matching #define for
9337         N_ and _.
9338         From Paul Eggert.
9340 2002-11-14  Akim Demaille  <akim@epita.fr>
9342         * doc/autoconf.texi (C Compiler): Compiling several files at once.
9343         From Paul Eggert and Albert Chin-A-Young.
9345 2002-11-14  Akim Demaille  <akim@epita.fr>
9347         * doc/autoconf.texi (C Compiler): Solitary backslashes.
9348         From Paul Eggert and Albert Chin-A-Young.
9350 2002-11-14  Kevin Ryde  <user42@zip.com.au>
9352         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
9353         than assigning in main, to avoid HP cc +O3 optimizing it away.
9355 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
9357         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
9358         option.  Process --recheck after parsing all options.  Pass -q
9359         option to configure on --recheck.
9360         (AC_OUTPUT): Pass -q from configure to config.status.
9361         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
9362         arguments to record.
9363         * doc/autoconf.texi (config.status Invocation): Document
9364         config.status -q option.
9366 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
9368         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
9369         Makefile.in if Makefile.am exists.
9370         (output): Strip `.am' from Makefiles.  Don't
9371         output AC_CONFIG_FILES if no Makefiles were found.
9373 2002-11-07  Akim Demaille  <akim@epita.fr>
9375         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
9376         (local_updates): New.
9377         * Makefile.maint: Update, from CVS Bison.
9378         (local_updates): New.
9380 2002-11-06  Akim Demaille  <akim@epita.fr>
9382         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
9383         declaration in extern "C" too.
9384         Reported by Roberto Bagnara.
9386 2002-11-06  Akim Demaille  <akim@epita.fr>
9388         * tests/torture.at (Configuring subdirectories): Don't use grep
9389         -w.
9390         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
9391         Reported by Ezra Peisach.
9393 2002-11-05  Akim Demaille  <akim@epita.fr>
9395         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
9396         Remove.
9397         We _have_ to stop using the old compatibility scheme that tried to
9398         avoid useless backslashes because Libtool 1.4.3 contains a
9399         AC_DEFINE([error_t], [int],
9400         [Define to a type to use for \`error_t' if it is not
9401         otherwise available.])
9402         We _have_ to quote the single quote and backslashes with \.  The
9403         old compatibility scheme saw that ` was backslashed, and therefore
9404         did not quote the single quote.  Hence before this patch, Autoconf
9405         was not compatible with Libtool.
9407 2002-11-04  Paul Eggert  <eggert@twinsun.com>
9409         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
9410         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
9411         LC_NAME, LC_PAPER, LC_TELEPHONE.
9412         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
9414 2002-11-04  Akim Demaille  <akim@epita.fr>
9416         Version 2.54c.
9418         * Makefile.maint (update, cvs-update, po-update, do-po-update):
9419         New.
9420         * config/texinfo.tex: Update.
9422 2002-11-03  Akim Demaille  <akim@epita.fr>
9424         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
9425         from...
9426         (&autoreconf): here.
9427         ($help, $make, &parse_args, &autoreconf_current_directory):
9428         Support -m/--make.
9429         * doc/autoconf.texi (autoreconf Invocation): Adjust.
9431 2002-10-31  Bruno Haible  <bruno@clisp.org>
9433         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
9434         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
9435         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
9436         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
9437         to ac_cv_func_realloc_0_nonnull.
9438         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
9440 2002-10-31  Akim Demaille  <akim@epita.fr>
9442         The test suite was no longer checking for trailing envvars and files.
9444         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
9445         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
9447 2002-10-31  Akim Demaille  <akim@epita.fr>
9449         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
9450         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
9451         Make variable, not a shell variable.
9452         Suggested by Bruno Haible.
9454 2002-10-31  Akim Demaille  <akim@epita.fr>
9456         * bin/autom4te.in (load_configuration): Reject #args out of any
9457         language.
9459 2002-10-31  Akim Demaille  <akim@epita.fr>
9461         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
9462         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
9463         (_AC_RUN_IFELSE): Use it.
9464         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
9465         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
9466         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
9467         inline it.
9469 2002-10-30  Akim Demaille  <akim@epita.fr>
9471         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
9472         * doc/autoconf.texi (autom4te Invocation): Adjust.
9473         Suggested by Tim van Holder.
9475 2002-10-29  Paul Eggert  <eggert@twinsun.com>
9477         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
9478         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
9479         Problem reported by Bruno Haible.
9481 2002-10-29  Akim Demaille  <akim@epita.fr>
9483         * doc/autoconf.texi (Header Templates): Put also in words what the
9484         pictures says to assist free style readers.
9485         (Customizing autom4te): s/--cache=/--cache /.
9487 2002-10-29  Akim Demaille  <akim@epita.fr>
9489         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
9490         sys/wait.h.
9491         sparc_address_test returns void.
9492         Use it with an argument, as prototyped.
9493         From Bruno Haible.
9495 2002-10-29  Akim Demaille  <akim@epita.fr>
9497         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
9498         configure.in, not configure.ac.
9499         Reported by Bruno Haible.
9501 2002-10-29  Akim Demaille  <akim@epita.fr>
9503         * tests/torture.at (Deep Package): New test.
9504         (Configuring subdirectories): Don't use a testSubDir as Autotest
9505         now does it itself.
9507 2002-10-29  Akim Demaille  <akim@epita.fr>
9509         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
9510         * doc/autoconf.texi (Invoking autom4te): Rename as...
9511         (autom4te Invocation): this, for consistency with the other nodes.
9513 2002-10-29  Akim Demaille  <akim@epita.fr>
9515         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
9516         Reported by Ralf Corsepius.
9518 2002-10-29  Akim Demaille  <akim@epita.fr>
9520         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
9521         characters is a back as an `obsolete' warning now.
9522         Reported by Ralf Corsepius.
9524 2002-10-28  Akim Demaille  <akim@epita.fr>
9526         * configure.ac: Bump to 2.54c.
9528 2002-10-28  Akim Demaille  <akim@epita.fr>
9530         Version 2.54b.
9532         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
9534 2002-10-28  Akim Demaille  <akim@epita.fr>
9536         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
9537         m4 executable names, and different GNU M4 version.
9538         Reported by Ezra Peisach and Paul Jarc.
9540 2002-10-27  Akim Demaille  <akim@epita.fr>
9542         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
9543         AC_RUN_IFELSE.
9545 2002-10-27  Akim Demaille  <akim@epita.fr>
9547         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
9548         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
9549         Die when a simple Fortran program cannot be compiled.
9550         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
9551         Issue a warning if no function is given.
9553 2002-10-27  Akim Demaille  <akim@epita.fr>
9555         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
9556         Move the documentation of AC_TRY_RUN to...
9557         (Obsolete Macros): here.
9558         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
9559         (autoconf Invocation): Remove the duplicates with `invoking
9560         autom4te'.
9561         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
9562         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
9564 2002-10-27  Akim Demaille  <akim@epita.fr>
9566         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
9567         and AC_LANG_FUNC_LINK_TRY.
9568         (Examining Libraries): Rename as...
9569         (Running the Linker): this.
9570         Document AC_LINK_IFELSE.
9571         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
9572         (Obsolete Macros): here.
9573         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
9574         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
9575         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
9576         * lib/autoconf/headers.m4 (AC_USG): Likewise.
9578 2002-10-27  Akim Demaille  <akim@epita.fr>
9580         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
9582         More `check config.log' messages.
9584         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
9585         * doc/autoconf.texi (Printing Messages): Document it.
9586         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
9587         appropriate.
9588         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
9589         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
9590         (_AC_COMPILER_OBJEXT): Likewise.
9591         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
9592         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
9593         Likewise.
9594         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
9595         Likewise.
9597         Deprecate macros with unusual interfaces.
9599         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
9600         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
9602         Document the new ones, and proper style.
9604         * doc/autoconf.texi (Generating Sources): New.
9605         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
9606         (Examining Declarations): Rename as...
9607         (Running the Preprocessor): this.
9608         Document AC_PREPROC_IFELSE.
9609         (Examining Syntax): Rename as...
9610         (Running the Compiler): this.
9611         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
9612         (Obsolete Macros): Move the definition of AC_TRY_CPP and
9613         AC_TRY_COMPILE here.
9615 2002-10-27  Akim Demaille  <akim@epita.fr>
9617         Move sections around.
9619         * doc/autoconf.texi (Customizing autom4te): Remove a lost
9620         sentence.
9621         Reported by Burno Haible.
9622         (Language Choice): Now the first section of...
9623         (Writing Tests): this section.
9624         Make the introduction less C-centric.
9625         (Guidelines, Test Functions): Move to...
9626         (Writing Test Programs): this new section.
9627         (Test Programs): Merge into...
9628         (Run Time): this.
9630 2002-10-27  Akim Demaille  <akim@epita.fr>
9632         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
9633         autom4te.in that resulted in the need for two `make' runs.
9635 2002-10-27  Akim Demaille  <akim@epita.fr>
9637         * configure.ac: Bump to 2.54b.
9639 2002-10-25  Akim Demaille  <akim@epita.fr>
9641         Version 2.54a.
9643         * Makefile.maint: Update from the Coreutils.
9644         (AMTAR): Remove, obsolete.
9645         (automake_repo): Update to redhat.com.
9646         (cvs_file): New.
9647         Adjust to the fact that ansi2knr is now hosted by Automake.
9648         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
9649         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
9650         Update from masters.
9651         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
9652         autoscan.pre is not to be installed, and autoscan.list is not to
9653         be shipped.
9654         (CLEANFILES): Add autoscan.list.
9655         (autoscan.list): Disable the cache.
9656         * bin/Makefile.am: Include freeze.mk.
9658 2002-10-25  Akim Demaille  <akim@epita.fr>
9660         * bin/autom4te.in (&load_configuration): Take the file as
9661         argument.
9662         (&parse_args): Handle -C, --cache.
9663         ($help): Adjust.
9664         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
9665         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
9666         * doc/autoconf.texi (Invoking autom4te): Document --cache.
9667         Now a subsection of...
9668         (Using autom4te): This new section.
9669         (Customizing autom4te): New.
9670         (autom4te.cache): Adjust.
9672 2002-10-25  Akim Demaille  <akim@epita.fr>
9674         * doc/autoconf.texi (Generic Headers): More information on how to
9675         use AC_CHECK_HEADERS.
9677 2002-10-25  Akim Demaille  <akim@epita.fr>
9679         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
9680         Space changes.
9682 2002-10-25  Akim Demaille  <akim@epita.fr>
9684         * bin/autoscan.in (output): Output AC_PREREQ.
9685         (%needed_macros): Add AC_PREREQ so that configure.ac without one
9686         be reported.
9688 2002-10-23  Akim Demaille  <akim@epita.fr>
9690         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
9691         document _Bool.
9693 2002-10-23  Akim Demaille  <akim@epita.fr>
9695         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
9696         Reported by Peter Eisentraut.
9698 2002-10-23  Akim Demaille  <akim@epita.fr>
9700         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
9701         type _Bool.
9702         Fix a typo.
9703         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
9704         Eggert's recommandations.
9706 2002-10-22  Akim Demaille  <akim@epita.fr>
9708         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
9709         Bison, by Paul Eggert.
9710         * doc/autoconf.texi (Particular Headers): Document it.
9712 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
9714         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
9715         `$ac_configure_args'.
9717 2002-10-22  Akim Demaille  <akim@epita.fr>
9719         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
9720         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
9721         From Art Haas.
9723 2002-10-22  Akim Demaille  <akim@epita.fr>
9725         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
9727         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
9728         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
9729         (_AC_CHECK_HEADER_NEW): Rename as...
9730         (AC_CHECK_HEADER): this.
9732 2002-10-22  Akim Demaille  <akim@epita.fr>
9734         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
9735         words about HP-UX cmp: it was actually a user-written cmp.
9737 2002-10-22  Akim Demaille  <akim@epita.fr>
9739         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
9740         are a few warnings.
9741         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
9742         Quote for Perl '' strings, not "".
9743         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
9744         strings.
9746 2002-10-22  Akim Demaille  <akim@epita.fr>
9748         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
9749         characters is a syntax warning now.
9750         (_AS_QUOTE): Accept $2 as list of characters to quote.
9751         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
9752         Quote for Perl, not sh.
9753         * bin/autoheader.in: When $debug, report the file which is
9754         `do'ne.
9755         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
9756         `@', to tickle Perl's lists.
9757         Reported by Carlos Velasco.
9759 2002-10-18  Akim Demaille  <akim@epita.fr>
9761         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
9762         missing included files _are_ errors.
9763         Thanks to Alexandre Duret-Lutz.
9764         * tests/tools.at (autom4te cache): Adjust.
9765         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
9766         (AT_CHECK_M4SUGAR): Use it.
9767         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
9768         Adjust.
9769         * tests/tools.at (autom4te): Now it does exit 1.
9771 2002-10-17  Akim Demaille  <akim@epita.fr>
9773         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
9774         Fixes the `AC_ARG_VAR' test failures.
9775         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
9776         * lib/freeze.mk (check-forbidden-patterns): New.
9777         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
9778         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
9779         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
9780         /dev/null.
9781         Reported months ago by H. Merijn Brand.
9783 2002-10-17  Akim Demaille  <akim@epita.fr>
9785         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
9787 2002-10-16  Paul Eggert  <eggert@twinsun.com>
9789         * Makefile.maint (wget_files): Remove ansi2knr.c.
9790         (ansi2knr.c-url_prefix): Remove.
9792 2002-10-16  Akim Demaille  <akim@epita.fr>
9794         Because of caching, some files that no longer exist and are no
9795         longer required can still cause errors.
9796         Reported by Alexandre Duret-Lutz.
9798         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
9799         to frozen files in @ARGV, as @ARGV must remain being a list of
9800         files.  Rather, at M4 call sites, use this...
9801         (&files_to_options): New function.
9802         (&freeze): Use &error.
9803         (&up_to_date): If a file that was included according to the cache
9804         is no longer there, then the output is out dated.
9805         (&main): Don't even check whether a file is up to date is anyway
9806         --force is given.
9807         * tests/tools.at (autom4te cache): New.
9809 2002-10-16  Akim Demaille  <akim@epita.fr>
9811         * bin/autoconf.as: Kill dead options.
9812         * bin/autoupdate.in (&parse_args): Kill old options.
9813         * bin/autoreconf.in (&parse_args): Remove dead options.
9814         Factor some code.
9815         (&autoreconf): Report the directories we enter *and leave*, so
9816         that error messages can be easily located, and use GNU Make
9817         format, so that Emacs' compile mode understands us.
9818         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
9819         if some file was changed instead of `print'.
9820         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
9821         (&parse_args): Remove the dead options.
9822         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
9823         autoheader's quiet mode.
9824         (AT_CHECK_AUTOUPDATE): Likewise.
9825         * tests/tools.at (autoupdate): Adjust.
9826         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
9828 2002-10-11  Akim Demaille  <akim@epita.fr>
9830         No longer use CPP to check for the existing of headers: use CC to
9831         check for compilability.
9833         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
9834         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
9835         (_AC_CHECK_HEADER_NEW): Rename as...
9836         (AC_CHECK_HEADER): this.
9838         * lib/autotest/general.m4 (AT_INIT): Include the failed test
9839         numbers in the Subject suggestion.
9841 2002-10-11  Akim Demaille  <akim@epita.fr>
9843         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
9844         Suggest using AC_CHECK_DECLS instead.
9846 2002-10-11  Akim Demaille  <akim@epita.fr>
9848         * tests/torture.at (AC_ARG_VAR): Have configure report the value
9849         of `precious'.
9851 2002-10-11  Akim Demaille  <akim@epita.fr>
9853         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
9854         file name to enable parallel executions.
9855         From Sam Varshavchik.
9857 2002-10-08  Akim Demaille  <akim@epita.fr>
9859         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
9860         aclocal invocation, as Gettext macros might not be visible to
9861         aclocal.
9862         Instead of blindly running autopoint, scan configure.ac (not the
9863         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
9864         Reported by Paul D. Smith.
9866 2002-10-08  Paul Eggert  <eggert@twinsun.com>
9868         Work around problems found when POSIXLY_CORRECT=1 is set.
9869         None of this seems to have anything to do with POSIX, really,
9870         but it's how Perl getopt works.
9871         * bin/autom4te.in (parse_args): Configure GetOpt with
9872         "permute", too.
9873         * doc/autoconf.texi (Invoking autom4te):
9874         --warning -> --warnings.
9875         * lib/autom4te.in: --warning -> --warnings.
9877 2002-09-28  Akim Demaille  <akim@epita.fr>
9879         * doc/autoconf.texi (autom4te.cache): New section.
9881 2002-09-28  Akim Demaille  <akim@epita.fr>
9883         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
9884         (Automake-preselections): Update.
9885         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
9887 2002-09-28  Akim Demaille  <akim@epita.fr>
9889         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
9890         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
9891         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
9892         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
9894 2002-09-28  Akim Demaille  <akim@epita.fr>
9896         * tests/torture.at (Configuring subdirectories): Be robust to
9897         users who use config.site to require for a cache: in this case,
9898         the two last configure runs, using two different sets of
9899         arguments, trigger a legitimate error.
9901 2002-09-28  Akim Demaille  <akim@epita.fr>
9903         * tests/m4sh.at (Functions Support, Functions and return Support):
9904         New.
9906 2002-09-28  Akim Demaille  <akim@epita.fr>
9908         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
9909         autoheader are Perl programs.
9910         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
9911         (autom4te): Specify that the sources are in the $srcdir.
9912         * doc/autoconf.texi (Installation Directory Variables): Adjust.
9914 2002-09-28  Akim Demaille  <akim@epita.fr>
9916         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
9917         (tm_zone): Move their rules to...
9918         * lib/autoconf/types.m4: here, using AN_ macros.
9919         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
9920         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
9921         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
9922         * lib/autoconf/programs.m4: here.
9923         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
9924         (ETAGS_FOR_AUTOCONF): New.
9925         Use it.
9927 2002-09-28  Akim Demaille  <akim@epita.fr>
9929         * lib/autoconf/autoscan.m4: New file.
9930         * lib/autoconf/autoconf.m4: Include it.
9931         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
9932         that were listed in the original autoscan.list.
9933         * lib/autoconf/headers.m4: Similarly with headers.
9934         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
9935         (.m4.m4f): Don't pass --prepend-include, since that's done by
9936         tests/autom4te itself.
9937         * lib/autoscan/Makefile.am: Include freeze.mk.
9938         (autoscan.list): New target --this file is no longer a source.
9939         (autoscan.pre): New file.
9941 2002-09-28  Akim Demaille  <akim@epita.fr>
9943         * bin/autoscan.in (@kinds): Make them singular.
9944         Adjust all uses.
9945         (&init_tables): When --debug, report the list of rules to ease
9946         tracking changes in autoscan.list.
9947         * lib/autoscan/autoscan.list (function): Strip comments, sort.
9949 2002-09-28  Akim Demaille  <akim@epita.fr>
9951         * lib/autoscan/functions, lib/autoscan/headers,
9952         * lib/autoscan/identifiers, lib/autoscan/makevars,
9953         * lib/autoscan/programs: Merge into...
9954         * lib/autoscan/autoscan.list: this.
9955         * bin/autoscan.in (&init_tables): Adjust.
9957 2002-09-28  Akim Demaille  <akim@epita.fr>
9959         * lib/autoscan/functions, lib/autoscan/headers,
9960         * lib/autoscan/identifiers, lib/autoscan/makevars,
9961         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
9962         `functions' line is now prefixed with `function:'.
9963         * bin/autoscan.in (&init_tables): Adjust.
9965 2002-09-28  Akim Demaille  <akim@epita.fr>
9967         From now on, autoscan files must always map a macro name to a
9968         word: there is no `default' macro for autoscan.
9970         * bin/autoscan.in (&init_tables): Reject entries with no macro at
9971         all.
9972         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
9973         explicit.
9975 2002-09-28  Akim Demaille  <akim@epita.fr>
9977         * bin/autoscan.in (%c_keywords): Remove.
9978         (&used): Keep only track of the words we might be interested in.
9979         (&output_kind): It is no longer needed to look for non active
9980         checks.
9982 2002-09-27  Akim Demaille  <akim@epita.fr>
9984         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
9985         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
9986         * lib/autoscan/functions: Adjust.
9987         * doc/autoconf.texi (Particular Functions): Adjust.
9989 2002-09-27  Akim Demaille  <akim@epita.fr>
9991         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
9992         from /tmp.
9993         Thanks to Bill Moseley and Paul Eggert.
9994         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
9995         the tmpdir must be created.
9996         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
9997         dir be in the build tree, instead of $TMPDIR.
9999 2002-09-27  Akim Demaille  <akim@epita.fr>
10001         * bin/autoscan.in: Improve the comments.
10002         (&parse_args): Drop obsolete undocumented options.
10003         (&output_kind): Output warnings.
10004         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
10005         (getwd): Trigger a warning.
10007 2002-09-26  Akim Demaille  <akim@epita.fr>
10009         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
10010         Reported by Ralf Corsepius.
10011         * doc/autoconf.texi (autoreconf Invocation): Likewise.
10013 2002-09-26  Akim Demaille  <akim@epita.fr>
10015         Single suffix rules and seperated dependencies are not portable.
10017         * doc/autoconf.texi (Installation Directory Variables): Update.
10018         (Limitations of Make): Some about `Single Suffix Rules and
10019         Separated Dependencies'.
10020         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
10021         (ifnames, autoscan, autom4te): Un-factor into several rules.
10023 2002-09-25  Paul Eggert  <eggert@twinsun.com>
10025         * BUGS (Interoperability bugs): New section.  Mention libtool
10026         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
10028 2002-09-24  Paul Eggert  <eggert@twinsun.com>
10030         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
10031         make handles suffix-rules differently from GNU make.
10033         * bin/Makefile.am (SUFFIXES, .in): Remove.
10034         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
10035         Move the body of the old .in rule here.
10037 2002-09-16  Akim Demaille  <akim@epita.fr>
10039         i960 compilers create `b.out' files by default.
10040         Reported by Ralf Corsepius.
10042         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
10043         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
10045 2002-09-13  Paul Eggert  <eggert@twinsun.com>
10047         * doc/autoconf.texi (Particular Headers): Remove obsolete
10048         reference to `struct timezone' in the description of
10049         AC_HEADER_TIME.
10051 2002-09-13  Akim Demaille  <akim@epita.fr>
10053         Version 2.54.
10055         * config/config.sub, config/config.guess: Update.
10056         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
10057         * Makefile.am: Adjust.
10059 2002-09-13  Akim Demaille  <akim@epita.fr>
10061         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
10062         reading config.log when the compiler is rejected.
10063         Suggested by Guido Draheim.
10065 2002-09-13  Akim Demaille  <akim@epita.fr>
10067         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
10068         (chdir_init) might hang when stat'ing mounted directories.
10069         Reported by Vance Shipley.
10071 2002-09-12  Akim Demaille  <akim@epita.fr>
10073         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
10074         the lists.
10076 2002-09-12  Akim Demaille  <akim@epita.fr>
10078         * doc/autoconf.texi (Defining Symbols): Present two different
10079         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
10080         difference between 1 argument calls, and 2-3 argument calls.
10082 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
10084         * doc/autoconf.texi: Review grammar and punctuation.
10086 2002-09-11  Paul Eggert  <eggert@twinsun.com>
10088         * doc/autoconf.texi: Fix minor formatting, spelling, and
10089         grammatical typos.
10090         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
10091         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
10092         is obsolescent.
10094 2002-09-11  Akim Demaille  <akim@epita.fr>
10096         * doc/autoconf.texi (Questions): Rename as...
10097         (FAQ): this.
10098         (Defining Directories): New.
10100 2002-09-09  Akim Demaille  <akim@epita.fr>
10102         * doc/autoconf.texi (Making testsuite Scripts): Update.
10103         Suggested by Nishio Futoshi.
10105 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
10107         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
10108         plain `@' is wanted.
10110 2002-09-09  Akim Demaille  <akim@epita.fr>
10112         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
10113         `duplicates', since the algorithm was too naive and could keep
10114         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
10115         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
10116         Reported by Ralf Corsepius.
10117         * tests/torture.at (Configuring subdirectories): Exercise these
10118         cases.
10120 2002-09-09  Akim Demaille  <akim@epita.fr>
10122         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
10123         looking for a replacement file.
10124         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
10125         directory is relative.
10126         * doc/autoconf.texi (Generic Functions): Clarify the replacement
10127         directory definition.
10128         Reported by Andreas Schwab and Jim Meyering.
10130 2002-09-06  Akim Demaille  <akim@epita.fr>
10132         * doc/autoconf.texi (Setting Output Variables): Clarify what
10133         precious variables are.
10134         Suggested by Pontus Skoeld.
10136 2002-09-05  Akim Demaille  <akim@epita.fr>
10138         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
10139         (ifnames, autoscan, autom4te): Since we don't only depend on
10140         configure.ac variables (such as VERSION etc.), but also on prefix
10141         and so forth, depend on Makefile, not configure.ac.
10142         Reported by Alexandre Duret-Lutz.
10143         * doc/autoconf.texi (Installation Directory Variables): Adjust.
10145 2002-09-05  Kevin Ryde  <user42@zip.com.au>
10147         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
10148         doesn't seem to be confined to ia64, just say "some versions".
10150 2002-09-04  Akim Demaille  <akim@epita.fr>
10152         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
10153         Automake 1.6c.
10154         * Makefile.am (maintainer-clean-local): Remove.
10155         (MAINTAINERCLEANFILES): Remove COPYING.
10157 2002-09-03  Paul Eggert  <eggert@twinsun.com>
10159         * doc/autoconf.texi (Configuration Commands): Remove obsolete
10160         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
10161         Brinkmann.
10163 2002-09-03  Akim Demaille  <akim@epita.fr>
10165         * configure.ac: Bump to 2.53d.
10166         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
10167         as of today, on Automake's team suggestion.
10169 2002-09-03  Akim Demaille  <akim@epita.fr>
10171         Version 2.53c.
10173 2002-09-02  Akim Demaille  <akim@epita.fr>
10175         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
10176         SITE_MACRO_DIR.
10177         * configure.ac: Disable SITE_MACRO_DIR.
10179 2002-09-02  Jim Meyering  <meyering@lucent.com>
10181         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
10182         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
10183         Also, tweak grammar: s/make sure to/be sure to/.
10185 2002-09-02  Paul Eggert  <eggert@twinsun.com>
10187         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
10188         directory names are generally preferable to physical names.
10190 2002-09-02  Akim Demaille  <akim@epita.fr>
10192         * lib/Autom4te/General.pm (&update_file): s/die/error/.
10193         Reported by Raja R. Harinath.
10194         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
10195         * bin/autoupdate.in: Use error instead of die.
10197 2002-09-01  Paul Eggert  <eggert@twinsun.com>
10199         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
10200         ordinary shell concatenation rather than echo+tr+sed command that
10201         runs afoul of a long-line-related sed bug in Solaris 8.
10203         * bin/autoheader.in (parse_args): --warning -> --warnings.
10205         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
10206         stdout, as traditional "ls" does.
10207         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
10208         _AC_COMPILER_EXEEXT_O): Likewise.
10209         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
10211         * bin/autoconf.as: Add --prepend-include option.  This patch was
10212         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
10213         but bin/autoconf.in is generated automatically from bin/autoconf.as.
10215         * bin/autoconf.in, configure: Regenerate.
10217         * doc/autoconf.texi (Special Shell Variables): Mention
10218         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
10220         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
10221         MAILPATH and set PS1, PS2, PS4 to default values, to work
10222         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
10223         For LC_ALL etc, first try to set to "C" as POSIX requires and as
10224         the Autoconf documentation specifies; fall back to "unset" only if
10225         this fails.  Use a shell for-loop for this rather than an m4 loop,
10226         to shorten the output script.
10228 2002-08-30  Paul Eggert  <eggert@twinsun.com>
10230         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
10231         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
10232         for the CDPATH problem.  Document PWD.
10233         (Limitations of Builtins): Document the problem that "cd $foo" and
10234         "ls $foo" may refer to different directories in shells conforming
10235         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
10236         example, since the old example is now out of date.
10238         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
10239         FOO" and "ls FOO" talk about different directories; this catches
10240         problems when POSIX 1003.1-2001 "cd" fails due to symlink
10241         spaghetti.
10243         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
10244         of rolling our own unset.
10245         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
10246         in practice we needn't worry about CDPATH if unset doesn't work.
10248         * Makefile.in, aclocal.m4, bin/Makefile.in,
10249         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
10250         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
10251         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
10252         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
10253         tests/Makefile.in: Regenerate with Automake 1.6.3.
10255         * config/config.guess, config/config.sub, config/mkinstalldirs:
10256         Update.
10258         * configure: Regenerate with self.
10260 2002-08-30  Kevin Ryde  <user42@zip.com.au>
10262         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
10263         default output.
10265 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10267         * bin/autom4te.in (Request::load): Correctly test for "do" read
10268         failure.
10270 2002-08-29  Akim Demaille  <akim@epita.fr>
10272         * lib/Autom4te/General.pm (&xqx): New.
10273         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
10274         hand, which is not portable.
10275         (&error): New.
10276         * bin/autom4te.in: Use them.
10277         Use &error instead of die.
10278         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
10279         Adjust.
10281 2002-08-17  Paul Eggert  <eggert@twinsun.com>
10283         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
10284         default list of compilers to try, since it was long ago superseded
10285         by the ksh fc builtin.  Suggested by Steven G. Johnson.
10287 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
10289         * doc/autoconf.texi (Invoking autom4te): End the option table,
10290         fixing a bug introduced by the previous patch.
10291         (Limitations of Make): Add a 'target lookup' subentry in the
10292         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
10294 2002-07-29  Mark D. Roth  <roth@feep.net>
10296         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
10297         options and use $AUTOM4TE_PATH.
10298         * doc/autoconf.texi: Remove documentation of autom4te
10299         --include-envvar and --site-macro-subdir options and document
10300         use of $AUTOM4TE_PATH.
10301         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
10302         arguments from each language section.
10304 2002-07-29  Paul Eggert  <eggert@twinsun.com>
10306         * doc/install.texi: Include copyright symbol in copyright notice.
10308         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
10309         Replace with:
10310         (AM_MAKEINFOFLAGS): New macro.
10311         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
10312         * Makefile.am (INSTALL): Use the new macros.
10313         Use -o rather than --output, since "missing" does not grok --output.
10315 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
10317         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
10318         comments do not always work. Never trust the exit status of
10319         `make -k'.
10321 2002-07-24  Kevin Ryde  <user42@zip.com.au>
10323         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
10324         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
10326 2002-07-23  Paul Eggert  <eggert@twinsun.com>
10328         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
10329         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
10330         apparently treats PATH="nonexistent" as if it contained ".".
10331         Bug reported by Stefan `Sec' Zehl.
10333 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
10335         * doc/autoconf.texi (Limitations of Make): Mention the special
10336         handling of the obj/ directory by BSD make.
10338 2002-07-20  Kevin Ryde  <user42@zip.com.au>
10340         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
10341         backslashes.
10343 2002-07-19  Akim Demaille  <akim@epita.fr>
10345         * doc/autoconf.texi (Function Portability): `exit'.
10346         (Programming in M4sh): Ethymology of M4sh.
10348 2002-07-19  Akim Demaille  <akim@epita.fr>
10350         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
10352 2002-07-18  Akim Demaille  <akim@epita.fr>
10354         Version 2.53b.
10356 2002-07-18  Akim Demaille  <akim@epita.fr>
10358         * config/config.guess, config/config.sub: Update.
10360 2002-07-18  Akim Demaille  <akim@epita.fr>
10362         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
10363         Automake's parts.
10365         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
10366         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
10367         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
10369 2002-07-18  Akim Demaille  <akim@epita.fr>,
10370             Alexandre Duret-Lutz  <duret_g@epita.fr>
10372         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
10373         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
10375 2002-07-17  Russ Allbery  <rra@stanford.edu>
10377         * doc/autoconf.texi (Initializing configure): Clarify the
10378         description of the tarname default.
10380 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
10382         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
10383         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
10384         latter was not run.
10386 2002-07-17  Akim Demaille  <akim@epita.fr>
10388         * lib/Autom4te/General.pm (find_file): Browse the directories in
10389         the order they are given.
10391 2002-07-17  Akim Demaille  <akim@epita.fr>
10393         * tests/wrapsh.as, tests/wrappl.as: Merge into...
10394         * tests/wrapper.as: this.
10395         * tests/Makefile.am, configure.ac: Adjust.
10397 2002-07-17  Mark D. Roth  <roth@feep.net>
10399         * configure.ac: Add --enable-site-macro-dir option.
10400         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
10401         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
10402         --site-macro-subdir options.
10403         * bin/autoconf.in: Add --prepend-include option.
10404         * bin/autoheader.in: Add --prepend-include option.
10405         * bin/autoreconf.in: Add --prepend-include option.
10406         * bin/autoscan.in: Add --prepend-include option.
10407         * bin/autoupdate.in: Add --prepend-include option.
10408         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
10409         macro directory, remove note that include path directories are
10410         used in reverse order, and document --prepend-include option.
10411         * lib/autom4te.in: Use --prepend-include instead of --include.
10412         * tests/wrapsh.in: Use --prepend-include instead of --include.
10414 2002-07-17  Akim Demaille  <akim@epita.fr>
10416         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
10417         tarnames.
10418         * doc/autoconf.texi (Initializing configure): Adjust.
10420 2002-07-17  Akim Demaille  <akim@epita.fr>
10422         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
10423         (_AC_FUNC_MALLOC): New.
10424         (AC_FUNC_MALLOC): Use the latter.
10425         Define HAVE_MALLOC to 0 if broken.
10426         * doc/autoconf.texi (Particular Functions): Adjust.
10428 2002-07-16  Akim Demaille  <akim@epita.fr>
10430         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
10431         * doc/autoconf.texi (C Compiler): Adjust.
10433 2002-07-09  Akim Demaille  <akim@epita.fr>
10435         * doc/autoconf.texi: Properly set the ``header'' part.
10437 2002-07-09  Akim Demaille  <akim@epita.fr>
10439         * doc/autoconf.texi (Systemology): Some about Darwin.
10441 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
10443         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
10444         Don't use AC_REQUIRE in AU_DEFUN.
10446 2002-07-09  Art Haas  <ahaas@neosoft.com>
10448         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
10450 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
10452         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
10453         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
10454         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
10455         so that Emacs setups GNU style for perl-mode and cperl-mode.
10457 2002-06-27  Paul Eggert  <eggert@twinsun.com>
10459         * config/install-sh: Quote $src.  Prefer || to test's -o option,
10460         as per "Limitations of Builtins".
10461         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
10462         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
10464         * tests/mktests.sh: Use grep instead of fgrep, as per
10465         "Limitations of Builtins".
10467 2002-06-15  Paul Eggert  <eggert@twinsun.com>
10469         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
10470         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
10471         so that we consistently test the just-built programs.
10472         * tests/wrappl.as: Likewise.
10474 2002-06-12  Paul Eggert  <eggert@twinsun.com>
10476         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
10477         name, so that symlinks to 'autoconf' work properly.  Bug reported
10478         by Bruno Haible.
10479         * bin/autoheader.in (AUTOM4TE): Likewise.
10480         * bin/autoreconf.in (autoconf, autoheader): Likewise.
10481         * bin/autoscan.in (autom4te): Likewise.
10482         * bin/autoupdate.in (autom4te): Likewise.
10484         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
10485         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
10486         on Solaris 2.5.1.
10488 2002-06-11  Andreas Schwab  <schwab@suse.de>
10490         * doc/autoconf.texi: Add more dir entries.
10492 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
10494         * bin/autom4te.in ($cache): Don't define using `$me', the name
10495         of the cache should not depend on the name under which autom4te
10496         was installed.
10498 2002-06-07  Akim Demaille  <akim@epita.fr>
10500         * tests/tools.at (autoconf: forbidden tokens, basic)
10501         (autoconf: forbidden tokens, exceptions): Adjust to the change of
10502         words in autom4te.in.
10504 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
10506         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
10507         _AC_LANG_PROGRAM_C_F77_HOOKS.
10509 2002-06-07  Akim Demaille  <akim@epita.fr>
10511         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
10512         rename as...
10513         (AC_REPLACE_FNMATCH): this.
10514         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
10515         AC_FUNC_FNMATCH_GNU.
10517 2002-06-07  Akim Demaille  <akim@epita.fr>
10519         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
10520         Rosetta Stone for Unix.
10522 2002-06-07  Akim Demaille  <akim@epita.fr>
10524         * bin/autom4te.in (warn_forbidden): When rejecting a token,
10525         suggest m4_pattern_allow.
10526         Suggested by Adam J. Richter.
10528 2002-06-07  Akim Demaille  <akim@epita.fr>
10530         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
10531         ac_config_libobj_dir.
10532         (AC_CONFIG_LIBOBJ_DIR): New.
10533         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
10534         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
10535         Use ac_config_libobj_dir to find the replacement files.
10536         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
10537         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
10538         (AC_REPLACE_FNMATCH_GNU): these.
10539         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
10540         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
10541         * tests/mktests.sh (ac_exclude_list): Don't check
10542         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
10544 2002-06-06  Paul Eggert  <eggert@twinsun.com>
10546         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
10547         if ln doesn't work.
10548         * NEWS: Likewise.
10549         * doc/autoconf.texi (Configuration Links): Likewise.
10550         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
10552 2002-06-05  Paul Eggert  <eggert@twinsun.com>
10554         * config/config.guess, config/config.sub, config/texinfo.tex:
10555         Update from masters.
10557 2002-05-29  Paul Eggert  <eggert@twinsun.com>
10559         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
10560         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
10561         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
10562         Likewise.
10563         * lib/autoconf/Makefile.am (check-local): Likewise.
10564         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
10565         * lib/autoconf/types.m4 (commentary only): Likewise.
10566         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
10567         * lib/autotest/Makefile.am (check-local): Likewise.
10568         * lib/m4sugar/Makefile.am (check-local): Likewise.
10569         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
10570         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
10572         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
10573         * doc/autoconf.texi (Particular Programs): Document them.
10574         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
10575         * NEWS: Likewise.
10577 2002-05-27  Paul Eggert  <eggert@twinsun.com>
10579         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
10580         * NEWS, doc/autoconf.texi (Particular Types): Document it.
10581         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
10582         instead of AC_MBSTATE_T, which never existed.
10584 2002-05-23  Akim Demaille  <akim@epita.fr>
10586         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
10587         version of Autoconf that is discussed.
10589 2002-05-22  Paul Eggert  <eggert@twinsun.com>
10591         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
10592         from the default list of compilers to try.  Suggested by
10593         Kate Hedstrom.
10594         * NEWS: Document the above.
10595         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
10597 2002-05-17  Paul Eggert  <eggert@twinsun.com>
10599         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
10600         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
10601         This improves on an earlier suggestion by H. Peter Anvin.
10603 2002-05-16  Paul Eggert  <eggert@twinsun.com>
10605         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
10606         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
10607         Both macros now accept an optional source-dir arg.
10608         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
10610         * NEWS: Document this.
10611         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
10613         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
10614         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
10615         not for GNU extensions; this undoes part of the 2000-11-03 change,
10616         reverting to 2.13-compatible behavior.
10617         Add new optional argument DIR.
10618         (AC_FUNC_FNMATCH_GNU): New macro.
10620         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
10622 2002-05-08  Paul Eggert  <eggert@twinsun.com>
10624         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
10625         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
10626         and it causes a 'test' syntax error if it fails.
10627         Bug reported by Stephen Gildea.
10629         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
10630         If prototypes are supported, use them to check this at compile-time,
10631         instead of trying to check it at run-time.  If we must do a run-time
10632         check, assume that setvbuf is standard when cross-compiling, as
10633         nonstandard setvbuf occurs only on ancient and unlikely hosts.
10634         Bug reported by Paul D. Smith.
10636         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
10637         argument specifying location of getloadavg.c.  This removes a
10638         FIXME.  This idea was taken from Jim Meyering's implementation in
10639         textutils.
10640         * doc/autoconf.texi (Particular Functions): Document this.
10641         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
10642         that's what the code does; this fixes a bug reported by
10643         Paul D. Smith.
10645 2002-05-03  Akim Demaille  <akim@epita.fr>
10647         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
10648         autopoint instead of gettextize.
10649         ($uses_alocal): Rename as...
10650         ($uses_aclocal): this.
10651         * doc/autoconf.texi (autoreconf Invocation): Adjust.
10652         Suggested by Bruno Haible.
10654 2002-05-03  Akim Demaille  <akim@epita.fr>
10656         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
10658 2002-04-29  Paul Eggert  <eggert@twinsun.com>
10660         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
10661         files to be 1 second older; just set them to be the same time.
10662         Also, sleep 1 second after the first aclocal, to work around
10663         problems with sub-second time stamps on the input files.
10665 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
10667         * doc/autoconf.texi: Mention "set -e -x" lossage
10668         under node "Limitations of Builtins".
10670 2002-04-29  Akim Demaille  <akim@epita.fr>
10672         * doc/install.texi: Better wording for setting variables when
10673         running configure.
10674         From Christian Cornelssen.
10676 2002-04-29  Akim Demaille  <akim@epita.fr>
10678         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
10679         of lack of $LINENO support, then the test will compare the $LINENO
10680         in testsuite vs. the lineno in the test file.  This is wrong, of
10681         course.
10682         Be sure to protect it.
10683         Reported by Patrick Welche.
10685 2002-04-25  Akim Demaille  <akim@epita.fr>
10687         * doc/autoconf.texi (Obsolete Macros): Typo.
10688         Reported by Vladimir Volovich.
10690 2002-04-25  Akim Demaille  <akim@epita.fr>
10692         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
10693         than some of the input files, hence, on the second run of aclocal,
10694         if some of its input are younger, make them older.
10695         Suggested by Paul Eggert.
10697 2002-04-25  Akim Demaille  <akim@epita.fr>
10699         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
10700         Thanks to Paul Eggert.
10702 2002-04-25  Akim Demaille  <akim@epita.fr>
10704         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
10705         and ac_subst_vars be sh variables containing the list of
10706         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
10707         DEFAULT diversion.
10708         (_AC_INIT_PREPARE): Use them to log them.
10709         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
10710         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
10711         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
10712         _AC_SUBST_FILES and _AC_SUBST_VARS.
10713         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
10715 2002-04-24  Akim Demaille  <akim@epita.fr>
10717         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
10718         autoheader, so that automake does not complain about a missing
10719         config.h.in that was to be created.
10721 2002-04-23  Akim Demaille  <akim@epita.fr>
10723         * bin/autoheader.in (parse_args): --warning takes an argument.
10724         Fixes PR/220.
10726 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
10728         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
10729         and bb.out when cleaning up.
10731 2002-04-22  Akim Demaille  <akim@epita.fr>
10733         Version 2.53a.
10735 2002-04-22  Akim Demaille  <akim@epita.fr>
10737         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
10739 2002-04-22  Akim Demaille  <akim@epita.fr>
10741         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
10742         comma.
10743         Reported by Gregory Giannoni.
10745 2002-04-22  Akim Demaille  <akim@epita.fr>
10747         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
10748         Fixes false failures on Darwin.
10750 2002-04-21  Paul Eggert  <eggert@twinsun.com>
10752         * TODO, bin/autoupdate.in, doc/autoconf.texi,
10753         lib/autoconf/general.m4, lib/autoconf/libs.m4,
10754         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
10755         tests/tools.at: Minor spelling and grammar fixes.
10757 2002-04-20  Paul Eggert  <eggert@twinsun.com>
10759         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
10760         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
10761         * lib/autotest/general.m4 (AT_INIT): Likewise.
10762         * tests/atgeneral.m4 (AT_INIT): Likewise.
10764 2002-04-19  Paul Eggert  <eggert@twinsun.com>
10766         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
10767         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
10768         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
10769         lib/autoconf/functions.m4, lib/autoconf/general.m4,
10770         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
10771         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
10772         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
10773         Minor spelling and grammar fixes.
10775         * doc/autoconf.texi: Follow the outline suggested in the GNU
10776         Sample Texts sections of the Texinfo 4.2 manual.  Most
10777         importantly, this makes sure that the copyright notices appear in
10778         all output formats.  You probably need Texinfo 4.2 to generate
10779         the manual now.
10781         Fix some bugs when using "$@" when there might be zero positional
10782         arguments in cases where this matters.
10784         * bin/autoconf.as: Rewrite so that the problem does not come up.
10785         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
10786         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
10787         * lib/autotest/general.m4 (AT_INIT): Likewise.
10789         * bin/autoheader.in: Use 'case' statement to work around problem.
10790         * bin/auto4mte.in: Likewise.
10791         * bin/autoreconf.in: Likewise.
10792         * bin/autoscan.in: Likewise.
10793         * bin/autoupdate.in: Likewise.
10794         * bin/ifnames.in: Likewise.
10796         * doc/autoconf.texi (Shell Substitutions): Document the problem.
10798         * lib/autotest/general.m4 (AT_INIT):
10799         Use Zsh alias to work around problem.
10800         * tests/atgeneral.m4 (AT_INIT): Likewise.
10802         * tests/c.at: We can't have zero arguments, so remove workaround
10803         that is not portable to Zsh.
10805 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
10807         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
10808         from aclocal.m4 too.
10810 2002-04-12  Akim Demaille  <akim@epita.fr>
10812         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
10814 2002-04-10  Akim Demaille  <akim@epita.fr>
10816         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
10817         workaround for ${1+"$@"}.
10818         * doc/autoconf.texi (Shell Substitutions): Explain it.
10819         From Oliver Kiddle and Peter Stephenson.
10821         Have M4sh perform minimal shell sanitizing.
10823         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
10824         part into...
10825         (_AS_PREPARE): this new macro.
10826         (AS_PREPARE): New.
10827         (AS_INIT): Invoke AS_SHELL_SANITIZE.
10828         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
10830         Adjust Autoconf and Autotest.
10832         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
10833         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
10834         * lib/autotest/general.m4 (AT_INIT): Likewise.
10835         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
10836         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
10837         AS_SHELL_SANITIZE.
10839         Use this M4sh to generate Autoconf's shell scripts.
10841         * tests/wrapsh.as: New, precursor of wrapsh.in.
10842         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
10843         on Autotest and M4sh.
10844         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
10845         (wrapsh.in): New target.
10846         * bin/autoconf.as: New, precursor of autoconf.in.
10847         (autoconf.in): New target.
10849 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
10851         * doc/autoconf.texi (Limitations of Make): Mention the issue
10852         with indented comments in rules.
10854 2002-04-09  Andreas Schwab  <schwab@suse.de>
10856         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
10857         ac_top_builddir when setting ac_abs_top_builddir.
10859 2002-04-06  Kevin Ryde  <user42@zip.com.au>
10861         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
10862         (Portable Shell): Cross reference to Systemology.
10864 2002-04-05  Akim Demaille  <akim@epita.fr>
10866         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
10867         directories when descending in a SUBDIRS.
10868         Reported by Ezra Peisach.
10870 2002-04-04  Andreas Schwab  <schwab@suse.de>
10872         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
10873         contains no literal separators.
10875 2002-04-03  Akim Demaille  <akim@epita.fr>
10877         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
10878         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
10879         Use dnl, not the KILL diversion.
10880         Extracted from...
10881         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
10882         (AC_CONFIG_LINKS): here.
10883         Adjust.
10884         Don't use the KILL diversion, as it kills spurious output, which
10885         results in failures being hidden.
10886         Use m4_defn where appropriate.
10887         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
10888         after the second argument.
10889         Use m4_defn.
10890         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
10891         syntax, as it is provided by M4sugar.
10892         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
10894 2002-04-03  Andreas Schwab  <schwab@suse.de>
10896         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
10897         expanded if $# <= 2.
10899         * bin/autoreconf.in (autoreconf): Run automake after rerunning
10900         aclocal.
10902 2002-04-03  Akim Demaille  <akim@epita.fr>
10904         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
10905         (_AC_COMPILER_EXEEXT_REJECT): New.
10906         Also recognize *.bb and *.bbg as compilation byproducts.
10907         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
10908         (_AC_COMPILER_OBJEXT): Use them.
10909         Fixes Debian #138666.
10911 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
10913         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
10915         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
10916         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
10917         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
10918         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
10919         (AC_C_CONST): Same.
10920         (AC_C_INLINE): Same.
10921         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
10922         * doc/autoconf.texi, NEWS: Document.
10923         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
10924         AC_C_CROSS.
10926 2002-04-02  Akim Demaille  <akim@epita.fr>
10928         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
10929         _AS_MKDIR_P_PREPARE.
10931 2002-03-28  Kevin Ryde  <user42@zip.com.au>
10933         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
10934         to avoid versions of HP C which don't allow that.
10936 2002-03-27  Paul Eggert  <eggert@twinsun.com>
10938         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
10939         (AS_SHELL_SANITIZE): Invoke it.
10940         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
10942 2002-03-26  Akim Demaille  <akim@epita.fr>
10944         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
10946 2002-03-26  Akim Demaille  <akim@epita.fr>
10948         * doc/autoconf.texi (Introduction): The GNATS base moved.
10950 2002-03-25  Paul Eggert  <eggert@twinsun.com>
10952         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
10953         as POSIX requires, as it doesn't work with Zsh.
10954         * doc/autoconf.texi (Assignments): Document the problem.
10956 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
10958         * doc/autoconf.texi (Limitations of Make): Mention more issue
10959         about VPATH, overriding of macros in sub-makes, and handling of
10960         SHELL.
10962 2002-03-21  Paul Eggert  <eggert@twinsun.com>
10964         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
10965         problem with here-document buffer boundaries.
10967         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
10968         when reinvoking the shell, to work around problems with installers
10969         who put strange things like "cd" commands in their environments.
10971 2002-03-19  Akim Demaille  <akim@epita.fr>
10973         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
10974         From Aaron Ucko.
10976 2002-03-19  Akim Demaille  <akim@epita.fr>
10978         * bin/autoscan.in (scan_file): Specify the location in `&used'
10979         invocations.
10980         From Nicolas Joly.
10982 2002-03-19  Akim Demaille  <akim@epita.fr>
10984         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
10985         From Nishio Futoshi.
10987 2002-03-19  Akim Demaille  <akim@epita.fr>
10989         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
10991 2002-03-18  Paul Eggert  <eggert@twinsun.com>
10993         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
10994         (Limitations of Usual Tools): Add mkdir section.
10996         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
10997         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
10998         back on AS_DIRNAME to compute prefixes otherwise; this is
10999         roughly what mkinstalldirs does.  That way, we need not have
11000         our own filename disassembler.  The old disassembler did not
11001         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
11003         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
11004         Create at_test_all by a series of assignments,
11005         not by a single assignment of a long string.  The latter causes ksh
11006         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
11007         presumably because of a buffer overrun.
11009 2002-03-14  Paul Eggert  <eggert@twinsun.com>
11011         * lib/autotest/general.m4 (at_times_skip):
11012         Renamed from at_times.  Now a boolean.
11013         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
11014         says 'times: not found'.
11016 2002-03-14  Akim Demaille  <akim@epita.fr>
11018         * bin/autoreconf.in (&study_gettextize): New.
11019         (&autoreconf): Handle newest gettextize.
11020         Rerun aclocal if needed.
11021         Suggested by Andreas Schwab.
11023 2002-03-13  Akim Demaille  <akim@epita.fr>
11025         * doc/autoconf.texi (Special Shell Variables): More about IFS.
11027 2002-03-13  Akim Demaille  <akim@epita.fr>
11029         * doc/autoconf.texi (Header Portability): New.
11030         Add information about stdint.h and inttypes.h from Paul Eggert.
11032 2002-03-13  Akim Demaille  <akim@epita.fr>
11034         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
11035         -p'.
11036         From Bob Proulx.
11038 2002-03-12  Akim Demaille  <akim@epita.fr>
11040         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
11041         m4_require.
11043 2002-03-11  Andreas Schwab  <schwab@suse.de>
11045         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
11046         does not do it if --with-lispdir is given.
11048 2002-03-08  Akim Demaille  <akim@epita.fr>
11050         Version 2.53.
11052 2002-03-08  Akim Demaille  <akim@epita.fr>
11054         * doc/autoconf.texi (Subdirectories): Clarify that the
11055         subdirectory should exist.
11057 2002-03-08  Akim Demaille  <akim@epita.fr>
11059         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
11061 2002-03-08  Akim Demaille  <akim@epita.fr>
11063         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
11064         aliases the actual variables, and modifications of the former
11065         affect the latter.
11067 2002-03-08  Akim Demaille  <akim@epita.fr>
11069         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
11070         because of C-c: have m4 output in tmp files, then mv them.
11072 2002-03-08  Akim Demaille  <akim@epita.fr>
11074         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
11075         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
11076         * bin/ifnames.in: Copyright update.
11078 2002-03-08  Akim Demaille  <akim@epita.fr>
11080         * doc/autoconf.texi (Invoking autom4te): New.
11082 2002-03-05  Akim Demaille  <akim@epita.fr>
11084         * doc/autoconf.texi (Specifying Names): Clarification suggested by
11085         Kevin Ryde.
11087 2002-03-05  Akim Demaille  <akim@epita.fr>
11089         Version 2.52i.
11091 2002-03-04  Akim Demaille  <akim@epita.fr>
11093         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
11094         * lib/autoconf/general.m4 (AC_INIT): More informative error
11095         message for LIBOBJ.
11097 2002-03-04  Akim Demaille  <akim@epita.fr>
11099         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
11100         parallel builds.
11102 2002-03-04  Akim Demaille  <akim@epita.fr>
11104         * doc/autoconf.texi (Transforming Names): Equality between target
11105         and host is irrelevant.
11106         (Specifying Names, Canonicalizing): Remove all references to the
11107         backward compatibility hooks.  Rather, collect them all into...
11108         (Hosts and Cross-Compilation): this new section.
11109         * doc/install.texi (System Type): Ditto.
11110         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
11111         that `--host' implies cross-compilation.
11113 2002-03-04  Akim Demaille  <akim@epita.fr>
11115         * doc/autoconf.texi (Evaluation Macros): New.
11116         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
11117         useless.
11118         (_m4_foreach): Define the variant with immediate evaluation so
11119         that it contains exactly the items, not an expression which
11120         evaluation is the current item.
11121         (m4_re_string, m4_re_word): Don't over quote them.
11123 2002-03-04  Akim Demaille  <akim@epita.fr>
11125         Instead of having stacking `shift's evaluated at the end, let
11126         `foreach' loops immediately evaluate them.
11128         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
11129         $*.  This is the n-th time I change my mind, but hopefully this is
11130         the last...
11131         (m4_lquote): New.
11132         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
11133         efficient.
11134         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
11135         it was only a hack for m4_text_wrap.
11136         (m4_car2): Remove, replaced by...
11137         (m4_cdr): New.
11138         (_m4_foreach): Adjust.
11139         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
11140         m4_bpatsubst for clarification.
11142 2002-03-04  Akim Demaille  <akim@epita.fr>
11144         * doc/autoconf.texi (Changequote is Evil): New.
11146 2002-03-03  Kevin Ryde  <user42@zip.com.au>
11148         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
11149         on old systems like SunOS.
11151 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
11153         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
11154         lib/autoconf/functions.m4, lib/autoconf/general.m4,
11155         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
11156         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
11157         of messages.
11159 2002-02-28  Akim Demaille  <akim@epita.fr>
11161         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
11162         message to be sent.
11164 2002-02-28  Kevin Ryde  <user42@zip.com.au>
11166         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
11168 2002-02-25  Akim Demaille  <akim@epita.fr>
11170         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
11171         From Akinori Musha.
11173 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
11175         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
11176         translate \r\n to \n.
11178 2002-02-07  Akim Demaille  <akim@epita.fr>
11180         Version 2.52h.
11182 2002-02-07  Akim Demaille  <akim@epita.fr>
11184         Fix Autoconf PR/209.
11185         Also reported by Frank Denis.
11187         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
11189 2002-02-07  Akim Demaille  <akim@epita.fr>
11191         Fix Autoconf PR/207:
11192         AC_PREFIX_PROGRAM fails with dashed program names
11194         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
11195         variable when looking for the prefix program.
11196         Now it also works for shell variables.
11198 2002-02-07  Akim Demaille  <akim@epita.fr>
11200         * doc/autoconf.texi (Limitations of Builtins): More about
11201         case/esac.
11203 2002-02-06  Akim Demaille  <akim@epita.fr>
11205         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
11206         case/esac, some shells don't support it.
11207         Reported by Zack Weinberg.
11208         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
11210 2002-02-06  Akim Demaille  <akim@epita.fr>
11212         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
11213         sure not to introduce newlines in at_groups.
11214         * lib/autotest/Makefile.am (autotest.m4f): Typo.
11216 2002-02-06  Akim Demaille  <akim@epita.fr>
11218         * tests/torture.at (Configuring subdirectories): Skip if aclocal
11219         is not available.
11221 2002-02-05  Paul Eggert  <eggert@twinsun.com>
11223         * doc/autoconf.texi (Specific Compiler Characteristics):
11224         Describe HP-UX cc bug workaround more accurately.
11225         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
11226         not unsigned long.
11227         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
11228         cross-compilers, too.  This undoes some of the most recent change
11229         to this file.
11231 2002-02-05  Akim Demaille  <akim@epita.fr>
11233         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
11234         to make sure they are up to date when `check' is run.
11236 2002-02-05  Akim Demaille  <akim@epita.fr>
11238         * doc/autoconf.texi (Making testsuite Scripts): Document
11239         package.m4.
11241 2002-02-05  Akim Demaille  <akim@epita.fr>
11243         * lib/freeze.mk: New.
11245 2002-02-05  Akim Demaille  <akim@epita.fr>
11247         Implement `autom4te --freeze'.
11249         * bin/autom4te.in (&freeze): New.
11250         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
11251         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
11253 2002-02-05  Akim Demaille  <akim@epita.fr>
11255         * bin/autom4te.in (&parse_args): Implement `frozen files are
11256         optional are the sum of the previous files on the command line'.
11257         Also, pass `--reload-state=' on them, so...
11258         (handle_m4): don't.
11259         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
11260         (M4sh): Rely on M4sugar.
11261         (Autotest, M4sh, M4sugar): Use frozen files.
11263 2002-01-31  Akim Demaille  <akim@epita.fr>
11265         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
11266         * doc/autoconf.texi (Initializing configure): Adjust.
11268 2002-01-30  Akim Demaille  <akim@epita.fr>
11270         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
11271         alphanumeric to `-' instead of `_'.
11273 2002-01-30  Akim Demaille  <akim@epita.fr>
11275         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
11276         for plain code, the other for cross-compilation code.  The latter
11277         is now run with GCC only.
11278         * doc/autoconf.texi (Compilers and Preprocessors): New.
11280 2002-01-30  Akim Demaille  <akim@epita.fr>
11282         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
11283         values.
11284         * doc/autoconf.texi (Initializing configure): Explain how to
11285         change AC_INIT default values.
11287 2002-01-29  Akim Demaille  <akim@epita.fr>
11289         * tests/torture.at (Configuring subdirectories): Use configure.in,
11290         so that aclocal 1.4 works.
11291         Reported by Alexandre Duret-Lutz and Larry Schmitt.
11293 2002-01-28  Akim Demaille  <akim@epita.fr>
11295         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
11296         needs an argument.
11298 2002-01-28  Akim Demaille  <akim@epita.fr>
11300         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
11301         AUTOTEST_PATH *after* it was set.
11302         Don't put `.' in the PATH: the user should be precise and `./' if
11303         needed.  In addition, given that the test suite does some `cd', if
11304         `.' is in the path, the `tested programs' sections will report
11305         programs found in the test suite's directory, while during the
11306         tests (performed in their own directory), these programs are no
11307         longer visible.  In other words, the results is confusing and
11308         useless.
11309         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
11311 2002-01-24  Akim Demaille  <akim@epita.fr>
11313         Version 2.52g.
11315 2002-01-24  Akim Demaille  <akim@epita.fr>
11317         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
11318         * doc/autoconf.texi: Finally add Akim as an author.
11320 2002-01-24  Akim Demaille  <akim@epita.fr>
11322         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
11323         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
11324         Bourne. Use /bin/sh.
11325         From Andreas Buening.
11327 2002-01-24  Akim Demaille  <akim@epita.fr>
11329         * config/config.guess, config/config.sub, config/texinfo.tex:
11330         Update from masters.
11332 2002-01-24  Akim Demaille  <akim@epita.fr>
11334         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
11335         * config/auxdir.m4, config/cond.m4, config/depend.m4,
11336         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
11337         * config/missing.m4, config/sanity.m4, config/select.m4,
11338         * config/strip.m4: Remove, to ease sync'ing with any version of
11339         Automake.
11341 2002-01-24  Akim Demaille  <akim@epita.fr>
11343         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
11344         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
11345         Reported by Geir Ove Myhr.
11347 2002-01-21  Akim Demaille  <akim@epita.fr>
11349         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
11351 2002-01-21  Akim Demaille  <akim@epita.fr>
11353         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
11354         message on invalid options.
11355         * bin/autom4te.in (parse_args): Don't use
11356         Autoconf::General::getopt with non valid options.
11358 2002-01-17  Jim Meyering  <meyering@lucent.com>
11360         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
11361         $ac_cv_exeext so we don't use an old, invalid, cached value.
11363 2002-01-11  Akim Demaille  <akim@epita.fr>
11365         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
11366         Meyering.
11367         * doc/autoconf.texi (Function Portability): Document the strnlen
11368         limitation.
11369         (Particular Functions): Document AC_FUNC_STRNLEN.
11370         * lib/autoscan/functions: Adjust.
11372 2002-01-06  Akim Demaille  <akim@epita.fr>
11374         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
11375         package.m4, since is really depends upon configure.ac, not
11376         configure.
11377         * doc/autoconf.texi (testsuite Scripts): Adjust.
11378         * tests/Makefile.am (package.m4): New.
11379         EXTRA_DIST it since its a source.
11381 2002-01-06  Akim Demaille  <akim@epita.fr>
11383         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
11384         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
11385         and PACKAGE_BUGREPORT from here...
11386         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
11387         arguments.
11388         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
11389         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
11390         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
11391         * tests/tools.at (autoheader): Adjust.
11392         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
11394 2002-01-06  Akim Demaille  <akim@epita.fr>
11396         * bin/autoscan.in (scan_file): Use `&used'.
11398 2002-01-03  Akim Demaille  <akim@epita.fr>
11400         * doc/autoconf.texi (Output): Improved wording regarding use of
11401         AC_OUTPUT.
11402         From Olly Betts.
11404 2001-12-18  Kevin Ryde  <user42@zip.com.au>
11406         * doc/autoconf.texi (Function Portability): Add notes on sscanf
11407         sometimes needing writable input.
11409 2001-12-17  Jim Meyering  <meyering@lucent.com>
11411         * doc/autoconf.texi (New Macros): Tweak wording.
11413 2001-12-14  Akim Demaille  <akim@epita.fr>
11415         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
11416         trailing files, don't apply `-rf' to files which might not be
11417         created by configure (core, core.*, and *.core), but just `rm -f'.
11418         Suggested by Jonathan Kamens.
11420 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
11422         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
11424 2001-12-14  Akim Demaille  <akim@epita.fr>
11426         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
11428 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
11430         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
11431         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
11432         abs_srcdir, top_srcpath to abs_top_srcdir.
11433         (_AC_OUTPUT_FILES): Adjust.
11434         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
11435         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
11436         * tests/wrappl.in, tests/wrapsh.in: Adjust.
11438 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
11440         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
11441         C/Fortran linking on HP/UX, by extracting the Fortran library
11442         search path from the LPATH line in the $F77 -v output.
11444 2001-12-12  Kevin Ryde  <user42@zip.com.au>
11446         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
11447         forbidden file descriptors table.
11449 2001-11-26  Akim Demaille  <akim@epita.fr>
11451         * bin/autoscan.in (%c_keywords): Build it at top level.
11452         Map to 1 in order to simplify its uses.
11454 2001-11-26  Akim Demaille  <akim@epita.fr>
11456         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
11457         Remove $filepath, useless.
11458         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
11459         variables, they are really part of the tokens.
11460         Split the input line on spaces and then look for tokens.
11461         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
11462         because of `lex$U.$(OBJEXT)'.
11463         (&scan_files): Use "@list" instead of join.
11464         * doc/Makefile.am (CLEANFILES): Add *.fns.
11466 2001-11-26  Akim Demaille  <akim@epita.fr>
11468         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
11469         Remove, replaced by...
11470         * tests/wrappl.in: Be common for all the Perl executables.
11471         In particular autoscan and autoheader want -I.
11472         * configure.ac: Adjust.
11473         * lib/autoscan/headers: errno.h is portable.
11475 2001-11-26  Akim Demaille  <akim@epita.fr>
11477         * bin/autoscan.in (used): New.
11478         Use it.
11480 2001-11-26  Akim Demaille  <akim@epita.fr>
11482         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
11483         directives.
11484         (&scan_sh_file): Remove a duplicate pattern.
11485         (&check_configure_ac): Use long options.
11486         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
11488 2001-11-26  Akim Demaille  <akim@epita.fr>
11490         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
11491         Before, having a line containing the opening of a multi line
11492         comment made the whole line be ignored.
11494 2001-11-26  Akim Demaille  <akim@epita.fr>
11496         * doc/autoconf.texi (Using an Autotest Test Suite): New.
11497         (testsuite Scripts): Be one of its subsection.
11498         (Autotest Logs): New.
11500 2001-11-26  Akim Demaille  <akim@epita.fr>
11502         Test groups are now run two directories deeper.
11504         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
11505         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
11506         at_top_builddir.
11507         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
11508         top_srcdir, builddir and top_builddir.
11509         Use `at_*dir' relatively to the directory containing the
11510         suite, use `*dir' when relatively to the current group dir.
11512 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
11514         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
11515         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
11516         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
11517         spelling errors.
11519 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
11521         * doc/autoconf.texi (Using System Type): Add an example of `case
11522         $host' usage so people quit using `case $target' everywhere.
11524 2001-11-22  Akim Demaille  <akim@epita.fr>
11526         * doc/autoconf.texi (Installation Directory Variables): Englishoes
11527         spotted by Jim Meyering.
11529 2001-11-16  Paul Eggert  <eggert@twinsun.com>
11531         This patch implements a `long double' suggestion by Oliver Kiddle.
11533         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
11534         static, to catch errors if the value isn't known at compile-time
11535         and the compiler supports dynamic arrays.  Change its name from
11536         `_array_' to `test_array' to avoid potential name clashes.
11537         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
11538         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
11539         better than double.  Catch a bug in GCC 2.95.2 x86.
11540         * doc/autoconf.texi (C Compiler): Document the above.
11541         * NEWS: Likewise.
11543 2001-11-13  Akim Demaille  <akim@epita.fr>
11545         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
11546         hand.
11547         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
11549 2001-11-13  Akim Demaille  <akim@epita.fr>
11551         * lib/autotest/general.m4 (AT_INIT): After having run the test
11552         group, go back to the initial directory, not to at_suite_dir.
11554 2001-11-13  Akim Demaille  <akim@epita.fr>
11556         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
11557         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
11558         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
11559         option.
11560         (AT_CHECK_CONFIGURE): Use absolute paths.
11561         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
11562         The problem is still the old one: there is no means in M4 (that I
11563         know about) to create a defining macro, because there is no means
11564         to create `$1' etc., therefore, the defining macro ``swallows''
11565         all the arguments meant to the defined macro.
11567 2001-11-13  Akim Demaille  <akim@epita.fr>
11569         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
11570         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
11571         configure.ac.
11572         * tests/aclocal.m4: Remove, as it is no longer used.
11574 2001-11-13  Akim Demaille  <akim@epita.fr>
11576         * lib/autotest/general.m4: Change `tests?' into `groups?' in
11577         variable names when referring to a single test group, or to
11578         `suite' when referring to the whole test suite.
11579         `at_last_test' is removed: m4 compute at_format itself.
11580         (at_stdout, at_stder1, at_stderr): New variables.
11581         (AT_CHECK): Use them.
11583 2001-11-13  Akim Demaille  <akim@epita.fr>
11585         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
11586         in PATH.
11587         Create `testsuite.dir/003/run' instead of `testsuite.003'.
11588         Do it as soon as a test fails, don't wait till the end of the test
11589         suite.
11590         Don't remove $as_me.[0-9]*, since these files no longer exist.
11592 2001-11-13  Akim Demaille  <akim@epita.fr>
11594         * tests/tools.at: Use absolute paths, since we are no longer run
11595         in place.
11597 2001-11-13  Akim Demaille  <akim@epita.fr>
11599         Now that tests are running in their own private dir, there is no
11600         need to list the files to remove at the end of tests groups.
11602         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
11603         (AT_data_files, at_data_files): Remove.
11604         (AT_CLEANUP, AT_DATA): Simplify.
11605         (AT_INIT): Adjust.
11606         Remove the group dir if !debug && !failed.
11607         * tests/atspecific.m4: Adjust.
11609 2001-11-13  Akim Demaille  <akim@epita.fr>
11611         Start a new layout for Autotest: `testsuite' creates
11612         `testsuite.dir' in which the at-check-line etc. files are to be
11613         found, and `testsuite.dir/003' where the test group 3 is run.
11615         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
11616         at_check_line_file, at_format, at_test_normalized, at_group_dir
11617         are new variables.
11618         Create the directories.
11619         Use absolute paths for at- files.
11620         (AT_CHECK): Adjust.
11622 2001-11-11  Michael Matz  <matz@kde.org>
11624         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
11625         (m4_car2): New.
11626         (m4_car): Properly quote arguments.
11628 2001-11-13  Akim Demaille  <akim@epita.fr>
11630         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
11631         with stricter rules on LIBOBJS.
11633 2001-11-12  Paul Eggert  <eggert@twinsun.com>
11635         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
11636         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
11637         __PROTOTYPES too.
11639 2001-11-12  Akim Demaille  <akim@epita.fr>
11641         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
11643 2001-11-12  Akim Demaille  <akim@epita.fr>
11645         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
11646         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
11647         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
11648         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
11649         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
11650         specify to what the macro should be defined (typically to 1).
11652 2001-11-12  Akim Demaille  <akim@epita.fr>
11654         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
11655         From Jim Meyering.
11657 2001-11-12  Akim Demaille  <akim@epita.fr>
11659         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
11660         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
11661         definition used by Automake where LEX is +/- "${missing} lex" and
11662         `missing' itself contains variables.
11664 2001-11-12  Akim Demaille  <akim@epita.fr>
11666         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
11667         Now that M4sh pushes BODY, the comments were output at the end of
11668         the test suites.
11670 2001-11-08  Akim Demaille  <akim@epita.fr>
11672         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
11673         that we can trace macros from aclocal.m4.
11674         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
11675         obsoleted, and redirect to the former anyway.
11676         Reported by Ralf Corsepius.
11678 2001-11-08  Akim Demaille  <akim@epita.fr>
11680         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
11681         processed only if present.
11682         * tests/torture.at (Configuring subdirectories): Use autoreconf
11683         instead of successive calls to autoconf.
11684         Add a nonexistent subdirectory to exercise the patch above.
11685         Reported by Ralf Corsepius.
11687 2001-11-08  Kevin Ryde  <user42@zip.com.au>
11689         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
11690         doesn't accept .S files.
11692 2001-11-07  Akim Demaille  <akim@epita.fr>
11694         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
11695         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
11696         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
11697         * bin/autom4te.in (warn_forbidden): New.
11698         (handle_output): Use it.
11699         Read m4_pattern_forbid with messages.
11701 2001-11-05  Akim Demaille  <akim@epita.fr>
11703         * bin/autom4te.in (--normalize): Remove.
11704         * lib/autom4te.in: Adjust.
11706 2001-11-05  Akim Demaille  <akim@epita.fr>
11708         * tests/Makefile.am (testsuite): Rename this target as...
11709         ($(TESTSUITE)): this.
11710         From Nicolas Joly.
11712 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
11714         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
11715         the --prefix option, also remove it's argument.
11717 2001-11-05  Akim Demaille  <akim@epita.fr>
11719         * doc/autoconf.texi (testsuite Invocation): Update.
11720         (Writing testsuite.at): Update.
11722 2001-11-03  Akim Demaille  <akim@epita.fr>
11724         * doc/autoconf.texi: s/@code/@command/ where appropriate.
11726 2001-11-03  Akim Demaille  <akim@epita.fr>
11728         * lib/Autom4te/General.pm: (&catfile, &canonfile)
11729         (&file_name_is_absolute): New, wrappers around routines from
11730         File::Spec.
11731         Use and export them.
11732         (&find_configure_ac): Optionally take a directory where to look at.
11733         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
11734         the arguments.
11735         Default @ARGV to `.', not find_configure_ac.
11736         (&autoreconf): Argument is a directory.
11737         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
11738         * doc/autoconf.texi (autoreconf Invocation): Update.
11740 2001-11-03  Akim Demaille  <akim@epita.fr>
11742         * lib/Autom4te/General.pm (@export_vars, @export_subs)
11743         (@export_forward_subs): New.
11744         Add basename, dirname, and fileparse.
11745         (@EXPORT): Adjust.
11746         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
11747         Don't look for aclocal flags if we already know aclocal is not
11748         used.
11749         Move aclocal.m4t only if it exists.
11750         Reported by Ezra Peisach.
11752 2001-11-03  Akim Demaille  <akim@epita.fr>
11754         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
11755         passed on command line, defaulting to ./configure.ac if present.
11756         (&maybe_autoreconf, File::Find): Remove, unused.
11757         (&autoreconf): If autoconf is not used, don't try to trace.
11759 2001-11-02  Akim Demaille  <akim@epita.fr>
11761         * configure.ac: Bump to 2.52g.
11763 2001-11-02  Akim Demaille  <akim@epita.fr>
11765         Version 2.52f.
11767 2001-11-02  Akim Demaille  <akim@epita.fr>
11769         * config/config.guess, config/config.sub, doc/standards.texi:
11770         * config/lispdir.m4: Update from masters.
11771         * configure.ac: Bump to 2.52f.
11773 2001-11-02  Akim Demaille  <akim@epita.fr>
11775         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
11776         Don't run aclocal when aclocal.m4 is not from aclocal.
11777         From Ezra Peisach.
11778         Don't run libtoolize and gettextize if --install is not given.
11780 2001-11-01  Paul Eggert  <eggert@twinsun.com>
11782         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
11783         be invoked before _AS_LINENO_PREPARE.
11784         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
11785         than character ranges.
11787         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
11788         invoking AS_BASENAME.  Set the locale variables to 'C' if
11789         possible, as POSIX requires this to get the traditional
11790         behavior.
11791         * doc/autoconf.texi (Special Shell Variables): Describe the above.
11793 2001-10-31  Paul Eggert  <eggert@twinsun.com>
11795         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
11796         with {}, as that triggers a bug in Bash 2.05.
11798         (_AS_LINENO_PREPARE): Use Sed rather than
11799         Awk.  Fix the sed prepass to work even if there are multiple
11800         instances of $LINENO on the same line.  Do not substitute for
11801         other variables like $LINENOT.  Do not check file dates; such a
11802         check is unreliable on sufficiently fast machines, and removing
11803         the check makes the code simpler and more reliable.  Check for
11804         output and chmod failures.
11806         * doc/autoconf.texi (Special Shell Variables): Document
11807         the above.
11809 2001-10-31  Akim Demaille  <akim@epita.fr>
11811         * tests/Makefile.am (atconfig): Remove this target, Automake
11812         handles it now.
11814 2001-10-31  Akim Demaille  <akim@epita.fr>
11816         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
11817         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
11818         provided, while it is optional.
11819         * configure.ac: Adjust.
11821 2001-10-26  Paul Eggert  <eggert@twinsun.com>
11823         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
11824           lib/Autom4te/Struct.pm:
11825         Require Perl 5.005_03 instead of just 5.005, as some tests fail
11826         with 5.005_02.
11828         * doc/autoconf.texi (Special Shell Variables): Document some
11829         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
11831         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
11832         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
11833         eval $LINENO is not portable in practice.
11835 2001-10-24  Akim Demaille  <akim@epita.fr>
11837         * lib/Autom4te/General.pm (backname): New.
11839 2001-10-24  Akim Demaille  <akim@epita.fr>
11841         * m4/: Remove, merged into...
11842         * config/: here.
11844 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
11846         * doc/autoconf.texi (Shellology): Mention the problems with bash
11847         2.05's use of ANSI quoting in its `set' builtin.
11849 2001-10-22  Paul Eggert  <eggert@twinsun.com>
11851         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
11852         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
11853         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
11854         POSIX decided to standardize on the int flavor of strerror_r.
11855         Always do char* test, as there's no reason not to.
11856         Assign to a char* var, to catch strerror_r that returns int*.
11858         * doc/autoconf.texi (Particular Functions):
11859         Document the above changes.  Also, document the fact that
11860         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
11862         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
11864 2001-10-20  Akim Demaille  <akim@epita.fr>
11866         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
11867         the executable was missing from the log.
11869 2001-10-20  Akim Demaille  <akim@epita.fr>
11871         * lib/Autom4te/General.pm (&update_file): If destination is
11872         unchanged, remove the source.
11873         (&up_to_date_p): Don't be verbose, be debug.
11874         * bin/autoreconf.in: No longer support --m4dir.
11875         (&autoreconf): Display the full path of the configure.ac we are
11876         studying.
11877         Trace it only once.
11878         Be sure to honor --force with gettextize.
11879         Always run aclocal.
11880         * doc/autoconf.texi: Adjust.
11882 2001-10-20  Akim Demaille  <akim@epita.fr>
11884         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
11885         Remove, dead.
11886         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
11887         `intl' is already present, as it refuses unless --force.
11888         (&parse_args): Use -I, --include instead of the old Autoconf
11889         options.
11890         ($localdir, $autoconf_dir): Remove.
11891         (@include): New.
11892         (&maybe_autoreconf): New, to preserve $_ for File::Find.
11894 2001-10-19  Jens Petersen  <petersen@redhat.com>
11896         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
11897         * doc/autoconf.texi (Particular Programs): Likewise.
11899 2001-10-19  Akim Demaille  <akim@epita.fr>
11901         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
11902         file in @configure_input@.
11903         Don't mention `automatically' in addition to `generated'.
11904         * tests/torture.at (#define header templates): Adjust.
11906 2001-10-19  Akim Demaille  <akim@epita.fr>
11908         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
11909         comment, explain how to install automatic mode selection.
11910         From Russ Allbery.
11912 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
11914         * bin/autoreconf.in (autoreconf): Display the path to the
11915         configure.ac being studied.
11917 2001-10-18  Paul Eggert  <eggert@twinsun.com>
11919         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
11920         long, to work around a bug in the HP C compiler version HP92453-01
11921         B.11.11.23709.GP.
11923         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
11924         (AS_BASENAME_EXPR): New macro.
11925         (AS_BASENAME_SED): Do not assume GNU sed semantics.
11926         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
11927         and fall back on 'sed' only if the other two fail.  This makes
11928         AS_BASENAME act more like AS_DIRNAME.
11929         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
11930         contains white space.
11931         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
11932         Use AS_DIRNAME, since I think it's now DOS-friendly.
11933         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
11934         Allow "dirname //FOO" to return either / or //, as POSIX allows
11935         either behavior.
11937 2001-10-10  Akim Demaille  <akim@epita.fr>
11939         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
11940         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
11941         From Eric Sharkey.
11943 2001-10-10  Akim Demaille  <akim@epita.fr>
11945         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
11946         m4_define, since...
11947         (_AS_ECHO_N): AS_REQUIREs it.
11949 2001-10-10  Akim Demaille  <akim@epita.fr>
11951         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
11952         (AC_INCLUDES_DEFAULT): Move to...
11953         * lib/autoconf/headers.m4: here.
11954         * lib/autoconf/types.m4: Comment changes.
11955         * doc/autoconf.texi: Specify where the default includes are used
11956         in the macro prototypes.
11958 2001-10-09  Akim Demaille  <akim@epita.fr>
11960         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
11961         transition code.
11963 2001-10-08  Akim Demaille  <akim@epita.fr>
11965         * bin/autoreconf.in (&autoreconf): Remove debugging code.
11966         (&parse_args): Pass verbosity/debugging options to subtools when
11967         --debug, not when --verbose.
11968         * lib/autom4te.in (Autoreconf-preselections): New.
11969         (Autoconf): Use it.
11971 2001-10-08  Akim Demaille  <akim@epita.fr>
11973         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
11975 2001-10-08  Akim Demaille  <akim@epita.fr>
11977         * doc/autoconf.texi (autoreconf Invocation): Adjust.
11978         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
11980 2001-10-08  Akim Demaille  <akim@epita.fr>
11982         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
11983         (Syntax of the shell scripts): Don't.
11984         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
11985         bother with $force since...
11986         * lib/Autom4te/General.pm: does.
11988 2001-10-08  Akim Demaille  <akim@epita.fr>
11990         * bin/autoreconf.in: Rewrite in Perl.
11991         * configure.ac: Adjust.
11992         * lib/Autom4te/General.pm (&up_to_date_p): New.
11993         * bin/autom4te.in (&up_to_date_p): Use it.
11994         Rename as...
11995         (&up_to_date): this.
11997 2001-10-08  Akim Demaille  <akim@epita.fr>
11999         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
12000         (m4_list_cmp): Use $0 to reinvoke yourself.
12001         (m4_patsubsts): New.
12002         (m4_strip, m4_version_unletter): Use it.
12003         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
12005 2001-10-08  Akim Demaille  <akim@epita.fr>
12007         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
12008         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
12009         * lib/autoconf/types.m4, lib/autotest/general.m4,
12010         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
12011         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
12012         m4_bregexp, m4_bpatsubst, and m4_bmatch.
12013         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
12015 2001-10-08  Akim Demaille  <akim@epita.fr>
12017         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
12019 2001-10-08  Akim Demaille  <akim@epita.fr>
12021         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
12022         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
12023         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
12024         * tests/tools.at, tests/m4sh.at: Use it.
12025         * tests/m4sh.at: Don't rely on Autoconf macros.
12026         (DIRNAME_TEST): Also exercise the expr variant.
12027         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
12028         preferred M4sugar extension is now `.4s'.
12029         * tests/README: Remove.
12031 2001-10-08  Akim Demaille  <akim@epita.fr>
12033         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
12034         (m4_provide_if): this.
12035         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
12036         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
12037         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
12038         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
12040 2001-10-08  Akim Demaille  <akim@epita.fr>
12042         Use `add-log-current-defun-function' for ChangeLog creation.
12043         Suggested by Tom Tromey.
12045         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
12046         (autotest-mode): Adjust.
12047         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
12048         'comment-region onto `C-c ;'.
12049         Comments are `#', not `dnl'.
12050         (autoconf-current-defun): New.
12051         (autoconf-font-lock-keywords): Recognize `m4_defun'.
12053 2001-10-08  Akim Demaille  <akim@epita.fr>
12055         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
12056         * lib/m4sugar/m4sh.m4: here.
12057         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
12058         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
12059         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
12060         include handle the m4_pattern_*, no longer push the
12061         BODY diversion nor set the /bin/sh line, AS_INIT does it.
12062         * lib/autotest/general.m4 (AT_INIT): Likewise.
12063         * tests/base.at: Adjust the tests to use AS_INIT.
12064         * tests/tools.at (AT_DATA_FORBIDDEN): New.
12065         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
12066         Autoconf.
12068 2001-10-07  Paul Eggert  <eggert@twinsun.com>
12070         * doc/autoconf.texi (config.status Invocation):
12071         CONFIG_SHELL defaults to a shell that supports LINENO if available.
12073         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
12074         shell does not support LINENO, and if CONFIG_SHELL is unset or
12075         empty, and if we can find a shell that does support LINENO,
12076         then set CONFIG_SHELL to that shell and then re-execute
12077         ourselves with CONFIG_SHELL.
12079 2001-10-05  Paul Eggert  <eggert@twinsun.com>
12081         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
12082         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
12083         build of $(TESTSUITE).
12085 2001-10-05  Akim Demaille  <akim@epita.fr>
12087         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
12088         iff we are a bareword.
12089         Reported by Raja R Harinath.
12091 2001-10-05  Akim Demaille  <akim@epita.fr>
12093         * tests/m4sh.at (LINENO): New.
12094         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
12095         PATH_SEPARATOR before using it.
12096         Fix the absolute path case/esac pattern.
12097         Provide $0 as fallback for as_myself.
12098         Reported by Raja R Harinath.
12100 2001-10-05  Akim Demaille  <akim@epita.fr>
12102         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
12103         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
12105 2001-10-05  Akim Demaille  <akim@epita.fr>
12107         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
12108         (AS_SHELL_SANITIZE): here.  Use it.
12109         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
12110         From Paul Eggert.
12112 2001-10-04  Akim Demaille  <akim@epita.fr>
12114         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
12115         combination of Awk and sed to replace $LINENO.
12117 2001-10-02  Paul Eggert  <eggert@twinsun.com>
12119         * doc/autoconf.texi (Limitations of Builtins): You can't use
12120         "source"; it's not portable.  Remove confusing and
12121         somewhat-incorrect example involving "." and "/".
12123         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
12124         compatibility with POSIX shells.
12126 2001-10-02  Akim Demaille  <akim@epita.fr>
12128         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
12129         instead of exec'ing to preserve $0 and $@.
12131 2001-10-01  Akim Demaille  <akim@epita.fr>
12133         * tests/testsuite (AT_INIT) <at_pass_list>: New.
12134         Don't run twice the same test.
12136 2001-10-01  Akim Demaille  <akim@epita.fr>
12138         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
12139         No longer output the list of tests.
12140         <--list>: New option.
12141         <--full-help>: Remove.
12142         Complete the short/long options duality.
12143         Various small adjustments.
12145 2001-10-01  Akim Demaille  <akim@epita.fr>
12147         * doc/autoconf.texi: Use @kbd for user input.
12148         Always use `$' as shell prompt.
12150 2001-09-30  Paul Eggert  <eggert@twinsun.com>
12152         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
12153         Don't use nested parenthesization.  This patch was originally
12154         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
12155         but somehow it didn't get incorporated then.
12156         * doc/autoconf.texi (Limitations of Usual Tools):
12157         Clarify remark about sed and nested parenthesization.
12159         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
12160         Report an error if the size cannot be determined even though
12161         the type exists.
12162         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
12163         Check for `expr' arithmetic overflow, and for compilation failure,
12164         and invoke a new argument $4 if either is discovered.
12165         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
12166         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
12168 2001-09-28  Akim Demaille  <akim@epita.fr>
12170         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
12171         * m4/lispdir.m4: New.
12172         * aclocal.m4, configure.ac: Adjust.
12174 2001-09-28  Akim Demaille  <akim@epita.fr>
12176         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
12177         (AT_TESTED): this.
12178         (AT_INIT): More the wrapped section to where it will be expanded.
12179         Output `AT_tested' only when existing.
12180         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
12182 2001-09-27  Akim Demaille  <akim@epita.fr>
12184         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
12185         generates too many bug reports.
12187         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
12188         status when executing the ACTION-IF-FALSE.
12189         * tests/base.at (AC_TRY_*): Rename as...
12190         (AC_TRY_COMMAND): this.
12191         (AC_RUN_IFELSE): New.
12192         * tests/compile.at (Extensions, C keywords)
12193         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
12194         (Broken/missing compilers, AC_PROG_CPP with warnings)
12195         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
12196         * tests/c.at (Extensions, C keywords)
12197         (Broken/missing compilers, AC_PROG_CPP with warnings)
12198         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
12199         (AC_PROG_CPP requires AC_PROG_CC): here and...
12200         * tests/fortran.at (GNU Fortran 77): there.
12201         * doc/autoconf.texi (autoconf Invocation): Fix the example:
12202         AC_TRY_RUN is about compilation, not shell commands.
12203         (Test Programs): AC_TRY_RUN works as used to be advertised.
12205 2001-09-27  Akim Demaille  <akim@epita.fr>
12207         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
12208         Raja R Harinath:
12209         Be sure to detect when $LINENO always returns the same value.
12210         Look for the original script, basename($0) is certainly not
12211         enough.
12212         Pass the CLI arguments to `$as_me.lineno'.
12214 2001-09-25  Akim Demaille  <akim@epita.fr>
12216         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
12217         Be sure the close and reopen the LOG fd before and after using tee
12218         to extend the log.
12219         <at_tests_pattern>: Adjust to the new format of at_help_all.
12221 2001-09-23  Akim Demaille  <akim@epita.fr>
12223         * bin/autom4te.in (parse_args): There can be several invocations
12224         of --language now.
12226 2001-09-23  Akim Demaille  <akim@epita.fr>
12228         * doc/autoconf.texi (Top): Wrap in @ifnottex.
12230 2001-09-23  Akim Demaille  <akim@epita.fr>
12232         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
12233         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
12234         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
12235         builddir, buildpath, top_builddir, and top_buildpath.
12236         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
12237         the current directory.
12238         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
12239         variables *before* changing the current directory.
12240         Skip nonexistent dirs.
12241         * doc/autoconf.texi (Preset Output Variables): Document these
12242         variables.
12244         * lib/autotest/general.m4: Do not reset AT_victims.
12245         Don't compute at_srcdir nor at_top_srcdir.
12247         * tests/tools.at: Hence use top_srcdir.
12249         * tests/Makefile.am, tests/autoconf, tests/autoheader,
12250         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
12251         Remove.
12252         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
12253         * tests/wrapsh.in, tests/autoupdate.in: New.
12254         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
12255         * configure.ac: Build the position independent wrappers.
12257         * man/Makefile.am: Now that test wrappers are position
12258         independent, use them and drop dark envvar magic.
12260 2001-09-23  Akim Demaille  <akim@epita.fr>
12262         * doc/autoconf.texi (Common Shell Constructs): Rename as...
12263         (Programming in M4sh): this.
12264         Promote to @section.
12266 2001-09-23  Akim Demaille  <akim@epita.fr>
12268         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
12269         Pass $at_debug_args to the rerun test suite.
12270         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
12271         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
12272         From Paul Eggert.
12274 2001-09-23  Akim Demaille  <akim@epita.fr>
12276         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
12278 2001-09-23  Akim Demaille  <akim@epita.fr>
12280         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
12281         over-escaping.
12283 2001-09-23  Akim Demaille  <akim@epita.fr>
12285         * lib/Autom4te/General.pm (&debug): New.
12286         * bin/autom4te.in ($language): Move to...
12287         (parse_args): here.
12288         Handle --language in languages.
12289         * lib/autom4te.in (Automake-selections, Autoheader-selections)
12290         (Autoscan-selections): New.
12291         (Autoconf): Adjust.
12293 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
12295         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
12296         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
12297         to match current versions from CVS Automake.
12299 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
12301         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
12302         for $LINENO.
12304 2001-09-22  Akim Demaille  <akim@epita.fr>
12306         * lib/autoconf/autotest.m4: Create `package.m4'.
12307         * tests/Makefile.am (package.m4): Remove.
12309 2001-09-22  Akim Demaille  <akim@epita.fr>
12311         Rely on `$LINENO' when possible instead of `__oline__'.
12313         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
12314         `$LINENO' support replacement when not supported.
12315         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
12316         them explicitly to be sure they are not output before this section
12317         (via m4_require).  Cosmetic only.
12318         * lib/autoconf/c.m4, lib/autoconf/general.m4,
12319         * lib/autoconf/programs.m4: Replace all the occurrences of
12320         `__oline__' with `$LINENO'.
12321         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
12323 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
12325         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
12326         character (u: -> ue) in a code comment.
12327         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
12328         it works.
12330 2001-09-21  Akim Demaille  <akim@epita.fr>
12332         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
12333         Suggested by Jim Meyering.
12335 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12337         * lib/autoconf/programs.m4: Use extensions listed in
12338         $ac_executable_extensions when looking for programs.
12340 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12342         * lib/autoconf/general.m4: Fix a small Englisho.
12343         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
12344         setting up ac_dir_suffix and ac_top_builddir.
12345         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
12347 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12349         * doc/autoconf.texi (File System Conventions): Clarify the use of
12350         PATH_SEPARATOR.
12351         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
12352         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
12353         be used instead of ':'.
12354         * lib/autotest/general.m4: Replace occurrences of ':' in
12355         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
12357 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12359         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
12360         arguments.  Fixed a typo.
12362 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12364         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
12365         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
12367 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12369         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
12370         * bin/autoupdate.in: Ditto.
12371         * bin/autoheader.in: Reworded a few comments.
12372         * bin/autoconf.in: Reworded help text for a few options.
12373         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12374         * bin/autoscan.in, bin/autoupdate.in: Ditto.
12376 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
12378         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
12379         already have $file).  Set output files to binary mode (helps avoid
12380         CR issues on DOSish systems).
12382 2001-09-19  Akim Demaille  <akim@epita.fr>
12384         * lib/autotest/general.m4: Englishoes.
12385         From Tim Van Holder and Alexey Mahotkin.
12387 2001-09-18  Paul Eggert  <eggert@twinsun.com>
12389         * doc/autoconf.texi (Common Shell Constructs): New node,
12390         documenting AS_DIRNAME.
12391         (Limitations of Usual Tools): Refer to it when discussing dirname.
12392         Also, update discussion of POSIX standard to reflect latest draft.
12394         * lib/autoconf/c.m4:
12395         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
12397         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
12398         Do not pass a first argument with leading '-'
12399         to expr, by parenthesizing initial integers that might be negative.
12401         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
12402         now merely checks whether it is an error to pass an argument
12403         to getpgrp.
12405         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
12406         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
12407         whether it is a (compile-time) error to pass an argument to
12408         getpgrp.  This simpler test supports the revised documentation,
12409         and is all that AC_FUNC_GETPGRP's users really need.
12411 2001-09-18  Akim Demaille  <akim@epita.fr>
12413         * doc/autoconf.texi (Limitations of Make) <$<>: New.
12415 2001-09-18  Akim Demaille  <akim@epita.fr>
12417         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
12418         `{}'.
12419         * lib/autotest/general.m4 (AT_INIT): Adjust.
12421 2001-09-18  Paul Wagland  <paul@wagland.net>
12423         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
12424         correctly.
12425         Add test for AS_BASENAME.
12426         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
12427         added test. It now correctly handles /1/2/3/, returning '3' not ''.
12428         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
12429         * tests/base.at: Fixed the expected responses. The old ones were
12430         one line out...
12431         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
12432         the documentation claims it should (and how it behaved in 2.13).
12434 2001-09-18  Akim Demaille  <akim@epita.fr>
12436         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
12437         the AC_CONFIG_COMMANDS invocation.
12438         This also solves the name clash problems.
12439         Don't set the package's ID.
12440         * lib/m4sugar/Makefile.am (version.m4): Revamp.
12441         No longer to be shipped.
12442         (version.in): Remove.
12443         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
12444         * lib/autoconf/status.m4: Adjust.
12445         Use `m4_PACKAGE_STRING'.
12446         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
12447         the only optional argument is the name of the test suite.
12448         Expect `package.m4' to define the package signature.
12449         * lib/autom4te.in (Autotest): Add `package.m4?'.
12450         * tests/Makefile.am (package.m4): New.
12451         * tests/suite.at: ifnames is a victim.
12453 2001-09-18  Akim Demaille  <akim@epita.fr>
12455         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
12456         AC_LIBSOURCE, AC_CONFIG_FILES.
12457         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
12458         program version string doesn't match the package's.
12459         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
12460         after `(cached)'.
12462 2001-09-17  Paul Eggert  <eggert@twinsun.com>
12464         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
12465         Allow expression to return any value that can fit into unsigned long
12466         (not int, as before).  Check for output errors.
12468 2001-09-17  Bruno Haible  <haible@ilog.fr>
12470         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
12471         Always include <stdio.h> and <stdlib.h>. Evaluate
12472         the expression in an extra function before these includes. Call
12473         fprintf "%d" only after ensuring the argument is of type 'int'.
12474         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
12476 2001-09-17  Paul Eggert  <eggert@twinsun.com>
12478         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
12479         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
12480         fatal errors, and AC_CHECK_LIB causes it to include libraries even
12481         when they don't exist.
12483         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
12484         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
12485         need it.
12487         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
12488         version with the version used by fileutils 4.1, except use
12489         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
12490         we don't need it.
12492         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
12494 2001-09-13  Akim Demaille  <akim@epita.fr>
12496         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
12497         _first_.
12498         Reported by Gerrit P. Haase.
12500 2001-09-13  Akim Demaille  <akim@epita.fr>
12502         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
12503         m4_defn'ing is valid.
12505 2001-09-13  Akim Demaille  <akim@epita.fr>
12507         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
12508         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
12509         Use it.
12511 2001-09-13  Akim Demaille  <akim@epita.fr>
12513         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
12514         m4_match.
12515         (m4_re_escape): New.
12516         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
12517         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
12518         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
12519         Likewise.
12520         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
12521         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
12522         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
12523         AT_tests_all for consistency.
12524         Set at_victims.
12525         (AT_VICTIMS): Similar to AT_KEYWORDS.
12526         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
12528 2001-09-13  Akim Demaille  <akim@epita.fr>
12530         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
12532 2001-09-13  Akim Demaille  <akim@epita.fr>
12534         * lib/autotest/general.m4 (AT_INIT): Create and remove
12535         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
12536         test suites can cohabit.
12538 2001-09-13  Akim Demaille  <akim@epita.fr>
12540         * tests/mktests.sh: Don't output banners for empty test files.
12542 2001-09-13  Akim Demaille  <akim@epita.fr>
12544         Test suites can be run independently of configure.
12546         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
12547         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
12548         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
12549         ECHO_N etc.
12550         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
12551         and at_c.
12552         * lib/autotest/general.m4: Use ECHO_*.
12554 2001-09-13  Akim Demaille  <akim@epita.fr>
12556         * bin/ifnames.in: Rewrite in Perl.
12557         * configure.ac: Don't look for AWK.
12558         * tests/tools.at (AWK portability): Remove.
12559         (Syntax of the shell scripts): Don't check ifnames.
12560         (AT_CHECK_PERL_SYNTAX): New.
12561         (Syntax of the Perl scripts): Check ifnames.
12562         * tests/ifnames: New.
12564 2001-09-13  Akim Demaille  <akim@epita.fr>
12566         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
12567         test group titles.
12568         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
12569         Remove all the other keywords.
12571 2001-09-10  Akim Demaille  <akim@epita.fr>
12573         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
12574         SETUP: no longer used.
12575         Support -k, --keywords.
12576         <at_help>: Be `no', `short', or `long'.
12577         <at_help_all>: New variable.
12578         (AT_KEYWORDS): New.
12579         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
12580         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
12581         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
12582         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
12583         No longer fill the HELP diversion.
12584         (AT_CLEANUP): Use them.
12585         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
12586         (m4_list_append): Remove.
12588         Spread a few keywords in the Autoconf test suite.
12590 2001-09-10  Akim Demaille  <akim@epita.fr>
12592         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
12593         PATH_SEPARATOR, let M4sh compute it.
12594         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
12595         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
12596         Move to...
12597         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
12598         Simplify when the path is not a literal.
12599         (AS_UNAME): Use it to report PATH.
12600         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
12601         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
12602         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
12603         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
12604         normalize the path, and to look for victims.
12605         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
12606         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
12608 2001-09-07  Akim Demaille  <akim@epita.fr>
12610         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
12611         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
12612         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
12613         related variables into `at_package_*'.
12614         * lib/autotest/general.m4 (AT_VICTIMS): New.
12615         (AT_INIT): Adjust for stand-alone/embedded test suites.
12616         (AS_MESSAGE_LOG_FD): Define and use it.
12617         * tests/suite.at (AT_VICTIMS): Use it.
12618         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
12619         at_version.
12621 2001-09-07  Akim Demaille  <akim@epita.fr>
12623         Move toward possibly stand-alone test suites.
12625         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
12626         in addition, it introduces useless differences in logs.
12627         (AT_INIT): Let atconfig and atlocal be both optional.
12628         Adjust PATH computation.
12629         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
12631 2001-09-07  Akim Demaille  <akim@epita.fr>
12633         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
12634         m4sugar/version.m4.
12636 2001-09-05  Akim Demaille  <akim@epita.fr>
12638         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
12639         to avoid GCC warnings.
12640         From Uwe Seimet.
12642 2001-09-05  Akim Demaille  <akim@epita.fr>
12644         * bin/autom4te.in: --language is -l, not -s.
12646 2001-09-05  Akim Demaille  <akim@epita.fr>
12648         Be ready to handle filenames as stupid as `dnl.at', for if even
12649         the maintainer is dumb enough to do that...
12651         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
12652         excellence in M4 quotation: consider `__file__' is active.
12654         And BTW, when invoking m4, pass the --include in the right order:
12655         the wrong one.
12657         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
12658         4m.
12660 2001-09-05  Akim Demaille  <akim@epita.fr>
12662         * lib/Autom4te/XFile.pm: New lib file.
12663         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
12664         * bin/autoheader.in: Use it.
12666 2001-09-05  Akim Demaille  <akim@epita.fr>
12668         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
12669         defined.
12671 2001-09-05  Akim Demaille  <akim@epita.fr>
12673         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
12674         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
12676         * bin/autoscan.in: Use `getopt' and `find_files' etc.
12677         Add -I, --include support.
12678         * doc/autoconf.texi (autoscan Invocation): Adjust.
12680 2001-09-05  Akim Demaille  <akim@epita.fr>
12682         CVS GNU M4 doesn't like `undefine(undefined)'.
12684         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
12685         New, extracted from main.
12686         Use IO::File wherever possible.
12687         (input.m4): Be constant, use -I instead of hard coding $tmp.
12688         Therefore be a quoted heredoc.
12689         Don't invoke `_au_disable', since ac was not loaded, but just
12690         `unm4.m4'.
12692 2001-08-31  Akim Demaille  <akim@epita.fr>
12694         Version 2.52d.
12696 2001-08-31  Akim Demaille  <akim@epita.fr>
12698         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
12699         previous patch.
12700         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
12702 2001-08-31  Akim Demaille  <akim@epita.fr>
12704         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
12705         serious problems handling heredocs in heredocs.
12706         Reported by Nicolas Joly.
12708 2001-08-31  Akim Demaille  <akim@epita.fr>
12710         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
12711         (Making testsuite Scripts): Update.
12713 2001-08-31  Akim Demaille  <akim@epita.fr>
12715         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
12717 2001-08-31  Akim Demaille  <akim@epita.fr>
12719         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
12720         (testsuite Scripts): There is no such thing as `atconfig.in'.
12721         And actually one diagram is missing: test suite runtime.
12723 2001-08-31  Akim Demaille  <akim@epita.fr>
12725         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
12726         inverse order.
12728 2001-08-31  Akim Demaille  <akim@epita.fr>
12730         * bin/autoupdate.in (@include): `installcheck' revealed the path
12731         to m4sugar was lacking!
12733 2001-08-31  Akim Demaille  <akim@epita.fr>
12735         * man/Makefile.am (.x.1): We really have to pass
12736         autom4te_perllibdir.
12738 2001-08-31  Akim Demaille  <akim@epita.fr>
12740         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
12741         debug scripts, in particular passing explicitly listed tests to
12742         run is stupid.
12744 2001-08-31  Akim Demaille  <akim@epita.fr>
12746         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
12747         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
12748         Use directly autom4te, not autoconf.
12749         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
12751 2001-08-31  Akim Demaille  <akim@epita.fr>
12753         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
12754         * bin/autoheader.in (%symbol): Strip arguments of macros.
12756 2001-08-31  Akim Demaille  <akim@epita.fr>
12758         * doc/autoconf.texi: Catch up -I, --include changes.
12760 2001-08-31  Akim Demaille  <akim@epita.fr>
12762         * bin/autom4te.in (&parse_args): Die on unknown languages.
12763         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
12764         need for autoconf.
12765         Promote --include over --macrodir and other obsolete options.
12767 2001-08-31  Akim Demaille  <akim@epita.fr>
12769         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
12770         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
12771         * bin/autom4te.in ($autoconf): Pass --force.
12772         `print $out' doesn't print `$_' but `$out'.
12773         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
12774         (autoheader): Pass --force since the test suite goes too fast for
12775         the time stamps.
12776         Adjust to the new autoheader messages.
12778 2001-08-31  Akim Demaille  <akim@epita.fr>
12780         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
12781         Check the completeness of the #template.
12782         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
12783         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
12784         invocation.
12786 2001-08-31  Akim Demaille  <akim@epita.fr>
12788         * lib/Autom4te/General.pm (&find_file, &update_file): New.
12789         * bin/autoupdate.in, bin/autoheader.in: Adjust.
12790         Drop AC_MACRODIR dead for real.
12791         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
12792         `autoheader: `config.hin' is created'.
12793         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
12795 2001-08-31  Akim Demaille  <akim@epita.fr>
12797         * bin/autoheader.in: Rewrite in Perl.
12798         * tests/autoheader: Adjust.
12800 2001-08-31  Akim Demaille  <akim@epita.fr>
12802         * bin/autoconf.in (--include, -I): New option.
12803         Map --localdir, --autoconf-dir onto it.
12804         Forward autom4te's options instead of interpreting them.
12805         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
12806         There is no such envvar since the inception of autom4te.cfg.
12807         * bin/autom4te.in (&parse_args): Uniquify `@include'.
12808         * bin/autoupdate.in: Adjust, and perform more control.
12809         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
12810         * tests/autoconf: Dittowise.
12812 2001-08-31  Akim Demaille  <akim@epita.fr>
12814         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
12815         * bin/autom4te.in (&find_file): Support `FILE?' standing for
12816         optionally `FILE'.
12817         Use -e, not -f, since /dev/null for instance is OK.
12818         (&parse_args): Adjust.
12819         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
12821 2001-08-31  Akim Demaille  <akim@epita.fr>
12823         * configure.ac: Also find tested executables in bin.
12824         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
12825         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
12826         installed peer executables, only PATH is allowed to resolve it.
12827         Pass `autoconf_dir' via options, not via invisible envvars.
12828         * lib/Autom4te/General.pm (&find_peer): Remove.
12829         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
12830         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
12831         * man/Makefile.am: Let help2man rely on PATH instead of trying to
12832         find the executables for it.
12833         * tests/Makefile.am: Major cleanup.  Too lazy to document...
12834         * tests/atlocal.in: Remove all the obscure envvar manipulations.
12835         We only need PERL.
12836         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
12837         indeed related to running the test suite, while passing
12838         --autoconf-dir and others is related to running non installed
12839         Autoconf executables.  So don't do that, leave it to...
12840         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
12841         * tests/autoscan: New.
12842         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
12843         refer to library files: rely on --language.
12845 2001-08-29  Akim Demaille  <akim@epita.fr>
12847         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
12848         s/--set/--language/.
12850 2001-08-29  Akim Demaille  <akim@epita.fr>
12852         * doc/autoconf.texi: Strip the @nodes.
12853         Suggested by Paul Eggert.
12854         (Initializing configure): Typo.
12856 2001-08-29  Akim Demaille  <akim@epita.fr>
12858         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
12859         Suggested by Paul Eggert.
12861 2001-08-29  Akim Demaille  <akim@epita.fr>
12863         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
12864         download in a tmp dir.
12866 2001-08-29  Akim Demaille  <akim@epita.fr>
12868         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
12869         case insensitive OSes out there :(
12870         From Tim Van Holder.
12872 2001-08-29  Akim Demaille  <akim@epita.fr>
12874         * lib/autom4te.in: New.
12875         * lib/Makefile.am (edit, autom4te.cfg): New.
12876         * bin/autom4te.in (BEGIN): Simplify.
12877         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
12878         (&load_configuration): New.  Use it.
12879         (&parse_args): Support --mode, --set, and --melt.
12880         * bin/autoconf.in: Simplify and adjust.
12881         * tests/Makefile.am (AUTOMAKE): Use --set.
12882         * tests/atlocal.in: Adjust.
12883         * BUGS: distcheck and check are weak.
12885 2001-08-29  Akim Demaille  <akim@epita.fr>
12887         * lib/autotest/general.m4: Use
12888                 foo=`(command) 2>/dev/null`
12889         not
12890                 foo=`command` 2>/dev/null
12891         (at-devnull): Rename as...
12892         (AT-devnull): this.
12893         (--clean): Remove AT-* files too.
12894         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
12895         Reported by Nicolas Joly.
12897 2001-08-28  Akim Demaille  <akim@epita.fr>
12899         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
12900         quotes inside single quotes.
12901         Reported by Nicolas Joly.
12903 2001-08-28  Kevin Ryde  <user42@zip.com.au>
12905         * doc/autoconf.texi (Function Portability): Mention C right shifts.
12907 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
12909         * lib/autotest/general.m4: Reword some messages.
12910         (AT_INIT): Check for the `times' builtin before using it.
12911         Support test ranges as arguments to the testsuite.
12912         Have -e imply -d as the help text suggested.
12914 2001-08-27  Akim Demaille  <akim@epita.fr>
12916         * Makefile.maint: Formatting changes.
12917         (do-po-update, po-update, cvs-update, update): New targets.
12918         (AMTAR): Remove.
12920 2001-08-27  Akim Demaille  <akim@epita.fr>
12922         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
12923         <at_cmd_line>: New.
12924         Pass it to debug-*.sh scripts.
12925         <AUTOTEST_PATH>: May contain absolute dir names.
12927 2001-08-27  Akim Demaille  <akim@epita.fr>
12929         * lib/autotest/general.m4 (AT_INIT): Log the command line.
12930         Support `VAR=VAL' as arguments.
12931         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
12932         may be set via the command line.
12934 2001-08-27  Akim Demaille  <akim@epita.fr>
12936         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
12937         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
12938         first the build dirs, then the src dirs.
12939         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
12941 2001-08-27  Akim Demaille  <akim@epita.fr>
12943         * lib/autotest/general.m4 (AT_INIT): Output the definition of
12944         at_data_files earlier.
12945         (--clean, -c): New option.
12946         * tests/Makefile.am: Use this option.
12948 2001-08-27  Akim Demaille  <akim@epita.fr>
12950         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
12951         `ac_top_builddir' to mimic Automake's vocabulary, which much more
12952         readable.
12953         Adjust callers.
12954         * doc/autoconf.texi (Configuration Actions): Document the vars
12955         available in commands.
12956         Emphasize the risks of collisions in init-cmds.
12958 2001-08-27  Akim Demaille  <akim@epita.fr>
12960         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
12961         (Initializing configure): this new node.
12963 2001-08-27  Akim Demaille  <akim@epita.fr>
12965         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
12967 2001-08-27  Akim Demaille  <akim@epita.fr>
12969         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
12970         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
12971         New file.
12972         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
12974 2001-08-27  Akim Demaille  <akim@epita.fr>
12976         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
12977         to...
12978         * lib/autoconf/autoheader.m4: this new file.
12979         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
12980         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
12981         Move to...
12982         * lib/autoconf/autoupdate.m4: this new file.
12984 2001-08-27  Akim Demaille  <akim@epita.fr>
12986         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
12987         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
12988         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
12989         -> ac_dir).
12990         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
12991         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
12993 2001-08-27  Akim Demaille  <akim@epita.fr>
12995         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
12996         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
12997         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
12998         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
12999         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
13000         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
13001         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
13002         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
13003         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
13004         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
13005         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
13006         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
13007         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
13008         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
13009         (_AC_OUTPUT_SUBDIRS): Move to...
13010         * lib/autoconf/status.m4: this new file.
13011         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
13012         * tests/Makefile.am, tests/suite.at: Adjust.
13014 2001-08-27  Akim Demaille  <akim@epita.fr>
13016         Automake 1.5.
13018         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
13019         (AMTAR): Help automake define it.
13020         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
13021         needed, 1.5 can have a macro and a target with the same name.
13022         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
13023         * m4/strip.m4: New.
13024         * m4/init.m4, m4/sanity.m4: Update.
13025         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
13026         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
13027         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
13028         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
13030 2001-08-27  Akim Demaille  <akim@epita.fr>
13032         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
13034         * lib/autoconf/version.in: Remove.
13035         * lib/m4sugar/version.in: New.
13036         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
13037         Adjust callers.
13038         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
13039         the name of the directory they're in, instead of the filename,
13040         since version.m4 is now in m4sugar, but m4_acversion must not be
13041         classified as an Autoconf macro.
13042         ($input_m4): Don't qualify the path to m4sugar.
13043         Rather, pass autoconf_dir to m4.
13044         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
13045         * tests/suite.at: Require 2.52c.
13047 2001-08-27  Akim Demaille  <akim@epita.fr>
13049         testsuite.log should include config.log.
13051         * lib/autotest/autotest.m4: New.
13052         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
13053         * tests/suite.at : Adjust.
13054         (AT_INIT): Log config.log.
13055         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
13056         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
13057         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
13058         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
13059         of config.log on traps.
13060         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
13061         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
13062         for config.status'.
13063         Open the log as soon as possible.
13064         Use the same log introduction as configure's.
13066 2001-08-22  Paul Eggert  <eggert@twinsun.com>
13068         * doc/autoconf.texi (Indices): New node.
13069         Move indices out of the top level menu and into this submenu.
13071 2001-08-22  Akim Demaille  <akim@epita.fr>
13073         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
13074         AC_TRY_COMMAND.
13075         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
13077 2001-08-22  Akim Demaille  <akim@epita.fr>
13079         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
13080         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
13081         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
13082         * lib/autoconf/programs.m4: here.
13083         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
13084         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
13085         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
13086         * lib/autoconf/programs.m4: here.
13087         (_AC_DECL_YYTEXT): Rename as...
13088         (_AC_PROG_LEX_YYTEXT_DECL): this.
13089         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
13090         * tests/Makefile.am, tests/suite.am: Adjust.
13092 2001-08-22  Akim Demaille  <akim@epita.fr>
13094         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
13095         Move to...
13096         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
13097         here.
13098         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
13099         * lib/autoconf/functions.m4: here.
13100         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
13101         (AH_CHECK_LIB): Move to...
13102         * lib/autoconf/libs: this new file.
13103         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
13104         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
13105         * lib/autoconf/libs.m4: here.
13106         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
13108 2001-08-22  Akim Demaille  <akim@epita.fr>
13110         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
13111         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
13112         (AC_SITE_LOAD): Better logging of config.site.
13114 2001-08-20  Akim Demaille  <akim@epita.fr>
13116         * configure.ac (AT_CONFIG): Fix the path.
13117         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
13118         can be used.
13120 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
13122         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
13123         program with AC_LANG_PROGRAM before feeding it to
13124         AC_COMPILE_IFELSE.  Cleanup grep usage.
13126 2001-08-20  Akim Demaille  <akim@epita.fr>
13128         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
13129         * NEWS, README, README-alpha, TODO, tests/README: This package is
13130         `Autoconf', not `autoconf' (the executable).
13132 2001-08-20  Akim Demaille  <akim@epita.fr>
13134         Info readers seem to need `Index' in the index node title :(
13136         * doc/autoconf.texi: Reverse the 2001-08-15 change which
13137         simplified index node names.
13139 2001-08-20  Akim Demaille  <akim@epita.fr>
13141         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
13142         arguments are not literals.
13143         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
13144         Specify the output variables, and macros defined.
13146 2001-08-20  Akim Demaille  <akim@epita.fr>
13148         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
13149         (Examining Syntax) <AC_TRY_COMPILE>
13150         (Examining Libraries) <AC_TRY_LINK>
13151         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
13152         their arguments.
13153         Reported by Werner Lemberg.
13155 2001-08-20  Akim Demaille  <akim@epita.fr>
13157         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
13158         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
13159         Load atlocal late enough to dump it in the log.
13160         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
13162 2001-08-20  Akim Demaille  <akim@epita.fr>
13164         * tests/torture.at (Configuring subdirectories): New test.
13165         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
13166         looking for.
13167         * m4/atconfig.m4: Be sure the let $[0] be expandable.
13168         (top_srcdir): Fix its computation.
13170 2001-08-20  Akim Demaille  <akim@epita.fr>
13172         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
13173         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
13174         test suite lives.
13175         Create `atconfig' automagically.
13176         Configure atlocal.in if present.
13177         * tests/atconfig.in: Remove.
13178         * tests/atlocal.in: New.
13179         * tests/Makefile.am: Adjust.
13181 2001-08-20  Akim Demaille  <akim@epita.fr>
13183         Huh!?!?!  There are still some user EOF tags used, which prevents
13184         their use in AC_CONFIG_COMMANDS for instance...
13186         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
13187         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
13188         `_CSEOF', or `_ATEOF', as appropriate.
13189         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
13190         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
13192 2001-08-20  Akim Demaille  <akim@epita.fr>
13194         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
13195         * tests/semantics.at, tests/tools.at, tests/torture.at:
13196         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
13198 2001-08-20  Akim Demaille  <akim@epita.fr>
13200         Autotest invokes M4sh's initialization.
13202         * lib/autotest/general.m4: Adjust the diversion names.
13203         (AT_INIT): Run AS_INIT.
13204         Use the BINSH diversion to invoke /bin/sh.
13205         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
13206         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
13208 2001-08-20  Akim Demaille  <akim@epita.fr>
13210         Let M4sh have its own diversions.
13212         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
13213         (_m4_divert(NOTICE)): Rename as...
13214         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
13215         (_m4_divert(HEADER-COMMENT)): these.
13216         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
13217         (_m4_divert(NOTICE)): New, for Libtool.
13218         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
13219         long ago with `_m4_divert(GROW)'.
13220         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
13222 2001-08-20  Akim Demaille  <akim@epita.fr>
13224         * tests/base.at, tests/compile.at, tests/foreign.at,
13225         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
13226         * tests/semantics.at, tests/suite.at, tests/tools.at,
13227         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
13229 2001-08-20  Akim Demaille  <akim@epita.fr>
13231         * bin/autom4te.in (handle_output): Handle @__@.
13233 2001-08-20  Akim Demaille  <akim@epita.fr>
13235         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
13236         * lib/autotest/general.m4: Adjust the license.
13238 2001-08-17  Paul Eggert  <eggert@twinsun.com>
13240         * doc/autoconf.texi (Function Portability): Mention snprintf,
13241         following up on a suggestion by Kevin Ryde.
13243 2001-08-17  Akim Demaille  <akim@epita.fr>
13245         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
13246         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
13248 2001-08-17  Akim Demaille  <akim@epita.fr>
13250         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
13251         `$0.log' as for projects where testsuite is in src, we'd have
13252         testsuite.log created in src.
13254 2001-08-17  Akim Demaille  <akim@epita.fr>
13256         * bin/autom4te.in (&parse_args): Recognize --normalize.
13258 2001-08-17  Akim Demaille  <akim@epita.fr>
13260         Start implementing the AC_CHECK_HEADER transition scheme.
13262         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
13263         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
13264         (AC_CHECK_HEADER): Use them.
13266 2001-08-17  Akim Demaille  <akim@epita.fr>
13268         * doc/autoconf.texi: Work around Texinfo buglets.
13269         (Transformation Rules): One example is enough, users are expected
13270         to have their brains on. And BTW, use DESTDIR.
13271         (dvar): New macro.  Use it.
13273 2001-08-17  Akim Demaille  <akim@epita.fr>
13275         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
13276         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
13277         looking for ChangeLogs.
13279 2001-08-17  Akim Demaille  <akim@epita.fr>
13281         * bin/autom4te.in: --normalize is a new option.
13282         * bin/autoconf.in: Use it.
13284 2001-08-17  Akim Demaille  <akim@epita.fr>
13286         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
13287         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
13289 2001-08-16  Paul Eggert  <eggert@twinsun.com>
13291         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
13292         start, not at end.
13294 2001-08-15  Akim Demaille  <akim@epita.fr>
13296         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
13297         Use it.
13299 2001-08-15  Akim Demaille  <akim@epita.fr>
13301         * doc/autoconf.texi (pr): New index.
13302         (prindex, findex): Use, merge, and output them.
13303         (Environment Variable Index, Output Variable Index)
13304         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
13305         (Autotest Macro Index): Rename as...
13306         (Environment Variables, Output Variables,Preprocessor Symbols)
13307         (Autoconf Macros, M4 Macros, Autotest Macros): these.
13308         * doc/install.texi: Use @command.
13309         (Environment Variables): Rename as...
13310         (Defining Variables): this.
13312 2001-08-15  Akim Demaille  <akim@epita.fr>
13314         * doc/autoconf.texi (Function Portability): sprintf's return
13315         value.
13316         From Kevin Ryde.
13318 2001-08-15  Akim Demaille  <akim@epita.fr>
13320         * Makefile.maint (CVS): New.
13321         (local-check): Run changelog-check. last.
13322         (alpha): Don't depend upon local-check, since...
13323         (cvs-dist): depends upon it.
13325 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
13327         * tests/Makefile.am: Use a clean-local rule to remove
13328         autom4te.cache (it's a directory, not a file.
13329         * Makefile.am: Ditto (but maintainer-clean-local).
13331 2001-08-15  Akim Demaille  <akim@epita.fr>
13333         * bin/autom4te.in (@m4_warning): New.
13334         (&handle_m4): Use it.
13335         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
13336         warnings are issued at each run.
13337         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
13338         is in the src tree.
13340 2001-08-15  Akim Demaille  <akim@epita.fr>
13342         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
13343         don't waste time running `autoupdate --version' works.
13344         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
13346 2001-08-13  Akim Demaille  <akim@epita.fr>
13348         * doc/autoconf.texi (ma): Rename this index as...
13349         (ac): this.
13351 2001-08-13  Akim Demaille  <akim@epita.fr>
13353         * Makefile.am: Remove dead code and dead comments.
13354         (pdf, html): New targets.
13355         * doc/autoconf.texi (Using Autotest): New chapter.
13356         * doc/Makefile.am (pdf): New targets.
13357         (CLEANFILES): Adjust.
13359 2001-08-13  Akim Demaille  <akim@epita.fr>
13361         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
13362         duration of the test suite.
13364 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
13366         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
13367         endianness for comparison instead of relying on AT_CHECK_ENV.
13369 2001-08-11  Paul Eggert  <eggert@twinsun.com>
13371         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
13372         to the INSTALL file.
13374 2001-08-11  Paul Eggert  <eggert@twinsun.com>
13376         * NEWS: The autoconf manual now is distributed under the terms
13377         of the GNU Free Documentation License.
13379         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
13380         Add an appendix "Copying This Manual" for the FDL.
13382         * doc/fdl.texi: New file, from
13383         <http://www.gnu.org/licenses/fdl.texi>.
13385         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
13387 2001-08-10  Paul Eggert  <eggert@twinsun.com>
13389         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
13390         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
13391         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
13392         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
13393         m4/sanity.m4, tests/README, tests/aclocal.m4,
13394         tests/atspecific.m4, tests/base.at, tests/compile.at,
13395         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
13396         tests/semantics.at, tests/suite.at, tests/tools.at,
13397         tests/torture.at: Add copyright notice.
13399         * tests/mktests.sh: Update year in copyright notice.
13401 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
13403         * tests/semantics.at (AC_C_BIGENDIAN): New test.
13405 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
13407         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
13408         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
13409         * doc/autoconf.texi (C Compiler Characteristics): Update
13410         documentation for AC_C_BIGENDIAN.
13412 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
13414         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
13415         magic values from an object file when cross-compiling.
13416         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
13418 2001-08-10  Akim Demaille  <akim@epita.fr>
13420         * bin/autom4te.in (&handle_output): Don't use `grep' with side
13421         effects.
13422         Suggested by Russ Allbery.
13424 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
13426         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
13427         current $prefix to the sub-configures.
13429 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
13431         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
13432         extension (needed on BeOS).  Reported by Guido van Rossum.
13434 2001-08-09  Akim Demaille  <akim@epita.fr>
13436         * bin/autom4te.in ($icache): Load it only if older than autom4te.
13438 2001-08-07  Akim Demaille  <akim@epita.fr>
13440         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
13441         removed.
13442         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
13443         No need to remove the files before and after the each test, before
13444         each test and at the end of the suite is enough.
13445         Display only the children `times', not the shell's.
13446         If the test failed or was skipped, at-times is not available.
13448 2001-08-07  Akim Demaille  <akim@epita.fr>
13450         Always produce testsuite.log, including when there are no
13451         failures.  This helps getting information on skipped tests, and
13452         duration of the tests.  Err, implement the latter btw.
13454         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
13455         Dump information on the first run of each test.
13456         (AT_CLEANUP): Create `at-times' containing the duration of the
13457         test group.
13459 2001-08-07  Akim Demaille  <akim@epita.fr>
13461         The use of `dumpstat' revealed that `len' was used although it
13462         should not.  m4_text_wrap was using it, but in the Autoconf world
13463         where it is legal.  Hence (i) test M4sh in its own world, not
13464         Autoconf's, and (ii), ahem, fix the bug :)
13466         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
13467         does not like `' instead of [].
13468         (AT_INIT): Forbid `^_?AT_'.
13469         And don't output such tokens.
13470         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
13471         `script.as', and `autom4te.cache'.
13472         Remove `empty' and `macro' which are no longer used.
13473         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
13474         * tests/m4sugar.at: Use it.
13475         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
13477 2001-08-07  Akim Demaille  <akim@epita.fr>
13479         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
13481 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
13483         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
13485 2001-08-04  Akim Demaille  <akim@epita.fr>
13487         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
13488         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
13489         AC_TRY_LINK.
13490         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
13491         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
13492         (AC_F77_MAIN): Likewise.
13494 2001-08-04  Akim Demaille  <akim@epita.fr>
13496         Don't rely on M4sugar outputting the patterns in files, since we
13497         might process the output _without_ running m4, hence without these
13498         files.
13500         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
13501         * bin/autom4te.in (@Request::includes): Remove, unused.
13502         (@Request::source): Rename as...
13503         (@Request::input): this.
13504         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
13505         (&handle_output): Fetch the patterns from the traces.
13506         `$forbidden' and `$allowed' are constant: use m//o.
13507         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
13508         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
13510 2001-08-04  Akim Demaille  <akim@epita.fr>
13512         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
13513         autoconf', i.e., in addition to caching traces, cache the output.
13515         * bin/autom4te.in (Request::cache): Rename as...
13516         (Request::id): this.
13517         ($cache, $icache, $tcache, $ocache): New.
13518         (&handle_m4): Save M4 output in the cache instead of $tmp.
13519         (&handle_output): Adjust.
13520         (&up_to_date_p): Check that the output cache is up to date too.
13521         (top level): Run `&handle_m4' iff force or the cache is invalid.
13522         Run `&handle_output' if the output cache is more recent.
13524 2001-08-04  Akim Demaille  <akim@epita.fr>
13526         * bin/autom4te.in ($force): New.
13527         (&parse_args, &print_usage): -f, --force is a new option.
13528         (&handle_output): CPP directives might have spaces after `#'.
13529         (&parse_args): The first file only can be frozen.
13531 2001-08-04  Akim Demaille  <akim@epita.fr>
13533         Don't let autom4te compute the `include' traces several times:
13534         first check that the trace cache file is up to date, and then
13535         compare its timestamp with that of the output.
13537         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
13538         the preamble.  Don't require 5.005 as Autom4te::General does it,
13539         and better yet (use `use', not `require'!).
13540         * lib/Autom4te/Struct.pm: Rename the last occurrences of
13541         Class::Struct as Autom4te::Struct.
13542         * lib/Autom4te/General.pm (File::stat): Use it.
13543         (&mtime): New, export it.
13544         * bin/autom4te.in: Use it.
13545         Declare `$req' is invalid if it is outdated.
13546         Don't declare it valid before saving it if something went wrong.
13548 2001-08-04  Akim Demaille  <akim@epita.fr>
13550         Autom4te shall not encode Autoconf data, and preselecting traces
13551         must be proposed to the users.
13553         * bin/autom4te.in (@required_trace): Remove.
13554         (@preselect): New.
13555         (&parse_args, &print_usage): -p, --preselect is a new option.
13556         (&up_to_date_p): Adjust.
13557         * bin/autoconf.in: Preselect some Autoconf macros.
13559 2001-08-04  Akim Demaille  <akim@epita.fr>
13561         * tests/tools.at (autoconf --trace: user macros): Check traces on
13562         macros invoked without arguments, and macros invoked with multiple
13563         lines arguments.
13565 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
13567         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
13568         arguments.
13570 2001-08-03  Akim Demaille  <akim@epita.fr>
13572         * bin/autoconf.in ($@): Work around the usual sh bug.
13573         From Nicolas Joly.
13575 2001-08-03  Akim Demaille  <akim@epita.fr>
13577         Clean up the handling of the M4 builtins tracing exception.
13579         * bin/autom4te.in (Request::request): Don't complete M4 builtins
13580         trace requests.
13581         (@m4_builtins): Rename as...
13582         (@m4_builtin): this.
13583         (%m4_builtin_alternate_name): New.
13584         (&parse_args): Complete the trace requests with alternate names.
13585         (&handle_traces): Hence no longer do it here.
13586         (&trace_requests): Remove, unused.
13588 2001-08-03  Akim Demaille  <akim@epita.fr>
13590         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
13591         m4_if, and m4_wrap.
13593 2001-08-03  Akim Demaille  <akim@epita.fr>
13595         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
13596         (m4_divert_pop): Dump the whole diversion stack when a diversion
13597         mismatch happens.
13598         * bin/autom4te.in (&handle_output): Remember of the first
13599         occurrence of a possibly undefined macro, not the last.
13600         Complain about the possibly undefined macros in the same order as
13601         the appear in the output.
13602         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
13603         * tests/tools.at (autoconf: forbidden tokens, basic)
13604         (autoconf: forbidden tokens, exceptions): No longer sort
13605         autoconf's stderr, as it is now deterministic.
13606         Check that `dnl' is caught.
13608 2001-08-01  Akim Demaille  <akim@epita.fr>
13610         * configure.ac: Bump to 2.52c.
13612 2001-08-01  Akim Demaille  <akim@epita.fr>
13614         Version 2.52b.
13616         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
13618 2001-08-01  Akim Demaille  <akim@epita.fr>
13620         Version 2.52a.
13622 2001-08-01  Akim Demaille  <akim@epita.fr>
13624         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
13625         `die'.
13626         (&END): New.
13627         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
13628         `END', as `Autom4te::General::END' will be triggered.
13629         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
13630         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
13631         system to run `mv', `rm', and `cmp'.
13633 2001-08-01  Akim Demaille  <akim@epita.fr>
13635         * lib/Autom4te/General.pm (&unique): New.
13636         * bin/autoscan.in (&output): Use it to issue trace requests once.
13638 2001-08-01  Akim Demaille  <akim@epita.fr>
13640         * lib/Autom4te/General.pm: New.
13641         * bin/autom4te.in (Autom4te::General): Use it.
13642         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
13643         (&find_configure_ac, &find_slave): Remove.
13644         * bin/autoscan.in: Likewise.
13645         * bin/autoupdate.in: Likewise.
13647 2001-08-01  Akim Demaille  <akim@epita.fr>
13649         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
13650         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
13651         * bin: here, new directory.
13652         * lib/Autoconf: Rename as...
13653         * lib/Autom4te: this, to please case insensitive junkie OSes.
13655 2001-08-01  Akim Demaille  <akim@epita.fr>
13657         * autom4te.in ($m4): Handle the --nesting-limit.
13658         * autoconf.in (M4): Remove.
13660 2001-08-01  Akim Demaille  <akim@epita.fr>
13662         * autoconf.in ($AWK): Remove, no longer used.
13663         * test/tools.at: Use AT_CHECK_AUTOCONF.
13664         (AWK portability): Remove, for autoconf no longer uses AWK.
13665         (Syntax of the Perl scripts): New.
13666         * configure.ac: autoconf no longer needs an AWK with a good
13667         regexp engine.
13668         Use a static test on AC_PACKAGE_VERSION.
13669         * autom4te.in (&up_to_date_p): Output depends on the arguments.
13670         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
13671         * tests/atconfig.in (PERL): New.
13673 2001-08-01  Akim Demaille  <akim@epita.fr>
13675         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
13676         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
13677         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
13678         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
13679         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
13680         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
13681         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
13682         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
13683         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
13684         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
13685         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
13686         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
13687         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
13688         * lib/autoconf/c.m4: here, new file.
13690         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
13691         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
13692         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
13693         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
13694         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
13695         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
13696         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
13697         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
13698         (AC_F77_FUNC): Move to...
13699         * lib/autoconf/fortran.m4: here, new file.
13701 2001-08-01  Akim Demaille  <akim@epita.fr>
13703         * acfunctions.m4: Rename as...
13704         * lib/autoconf/functions.m4: this.
13705         * acgeneral.m4: Rename as...
13706         * lib/autoconf/general.m4: this.
13707         * acheaders.m4: Rename as...
13708         * lib/autoconf/headers.m4: this.
13709         * aclang.m4: Rename as...
13710         * lib/autoconf/lang.m4: this.
13711         * acoldnames.m4: Rename as...
13712         * lib/autoconf/oldnames.m4: this.
13713         * acspecific.m4: Rename as...
13714         * lib/autoconf/specific.m4: this.
13715         * actypes.m4: Rename as...
13716         * lib/autoconf/types.m4: this.
13717         * autoconf.m4: Rename as...
13718         * lib/autoconf/autoconf.m4: this.
13720         * m4sugar.m4: Rename as...
13721         * lib/m4sugar/m4sugar.m4: this.
13722         * m4sh.m4: Rename as...
13723         * lib/m4sugar/m4sh.m4: this.
13725         * tests/atgeneral.m4: Rename as...
13726         * lib/autotest/general.m4: this.
13728         * acfunctions: Rename as...
13729         * lib/autoscan/functions: this.
13730         * acheaders: Rename as...
13731         * lib/autoscan/headers: this.
13732         * acidentifiers: Rename as...
13733         * lib/autoscan/identifiers: this.
13734         * aclibraries: Rename as...
13735         * lib/autoscan/libraries: this.
13736         * acmakevars: Rename as...
13737         * lib/autoscan/makevars: this.
13738         * acprograms: Rename as...
13739         * lib/autoscan/programs: this.
13741 2001-08-01  Akim Demaille  <akim@epita.fr>
13743         * doc/autoconf.texi: Moving/deleting open files is not portable.
13744         Portability issues for `.' (source), and more information about sed.
13746 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
13748         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
13749         which has a special meaning and is not a reference to libibmil.a.
13750         Reported by Matteo Frigo.
13752 2001-07-25  Pavel Roskin  <proski@gnu.org>
13754         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
13755         output.
13757 2001-07-25  Akim Demaille  <akim@epita.fr>
13759         * autoconf.in: Try to define the variables before using them.
13760         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
13761         instead of `$perllibdir'.
13762         * tests/atconfig.in ($autom4te_perllibdir): Export it.
13764 2001-07-25  Akim Demaille  <akim@epita.fr>
13766         * autoconf.in (ac_LF_and_DOT): Remove, unused.
13768 2001-07-24  Akim Demaille  <akim@epita.fr>
13770         Let autoconf use autom4te for traces.
13772         * autoconf.in ($task, task trace): Remove, merely pass --trace to
13773         autom4te.
13774         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
13775         (Because I found no way for autom4te to accept `-').
13776         * autom4te.in (&Request::request): Beware of M4 builtins.
13777         (END): Don't try to remove the content of an empty dir.
13778         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
13779         (&handle_output): Set a default value to `$forbidden'.
13780         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
13781         ($autoconf): Pass --debug and --verbose.
13782         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
13783         cache.
13785 2001-07-24  Akim Demaille  <akim@epita.fr>
13787         Let autoconf use autom4te to create configure.
13789         * autoconf.in ($automate): New var.
13790         (task script): Use autom4te.
13791         * autom4te.in (File::Spec): Use it.
13792         (&find_file): New.
13793         (&parse_args): --warning is -W, not -w.
13794         Find the top level files.
13795         (&handle_m4): Pass the warnings flags.
13796         Don't report verbosely m4's failures, unless requested.
13797         (&handle_output): Don't complain for forbidden tokens in comments.
13798         Be sure to report all the forbidden tokens within a single line.
13799         (&trace_format_to_m4): Preserve `$_'.
13800         (&handle_traces): Sort the output macros.
13801         (&up_to_date_p): Find the files before trying to get its time stamp.
13803 2001-07-24  Akim Demaille  <akim@epita.fr>
13805         * Makefile.am: Ship, build and install Autom4te.
13806         (SUBDIRS): Add lib.
13807         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
13808         * configure.in: Require Perl.
13809         * man/autom4te.in: New.
13811 2001-07-19  Paul Eggert  <eggert@twinsun.com>
13813         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
13814         example, rather than (exit 1); exit (which isn't portable).
13816 2001-07-18  Akim Demaille  <akim@epita.fr>
13818         Version 2.52.
13820 2001-07-18  Akim Demaille  <akim@epita.fr>
13822         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
13823         was run, while they are needed also when it is expanded.
13824         Reported by Nicolas Joly.
13826         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
13827         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
13828         AC_F77_DUMMY_MAIN being expanded.
13830 2001-07-18  Akim Demaille  <akim@epita.fr>
13832         * configure.in: Bump to 2.51a.
13834 2001-07-17  Akim Demaille  <akim@epita.fr>
13836         Version 2.51.
13838 2001-07-17  Akim Demaille  <akim@epita.fr>
13840         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
13841         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
13843 2001-07-17  Akim Demaille  <akim@epita.fr>
13845         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
13846         used.  Well, then use the prototypes when you can, and runtime as
13847         a last resort.
13848         Reported by Artur Frysiak
13850         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
13851         (AC_FUNC_GETPGRP): Use it.
13852         First try to compile with 0-ary or 1-ary calls.
13854 2001-07-17  Akim Demaille  <akim@epita.fr>
13856         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
13857         replacement type.
13858         From Paul Eggert.
13860 2001-07-17  Akim Demaille  <akim@epita.fr>
13862         * Makefile.maint: Sync. with cppi 1.10.
13864 2001-07-17  Akim Demaille  <akim@epita.fr>
13866         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
13867         AC_F77_DUMMY_MAIN has been run.
13868         From Pavel Roskin and Steven G. Johnson.
13870 2001-07-17  Akim Demaille  <akim@epita.fr>
13872         * configure.in: Rename as...
13873         * configure.ac: this.
13875 2001-07-17  Akim Demaille  <akim@epita.fr>
13877         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
13878         rules.
13879         From Marc Espie.
13880         * Makefile.maint (release-archive-dir): Rename as...
13881         (release_archive_dir): this, so that it can be specialized in
13882         Makefile.
13884 2001-07-14  Akim Demaille  <akim@epita.fr>
13886         * configure.in: Bump to 2.50d.
13888 2001-07-14  Akim Demaille  <akim@epita.fr>
13890         Version 2.50c.
13891         * Makefile.maint (alpha): Typo.
13893 2001-07-14  Akim Demaille  <akim@epita.fr>
13895         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
13897 2001-07-14  Akim Demaille  <akim@epita.fr>
13899         * config/config.guess, config/config.sub, config/texinfo.tex
13900         * doc/standards.texi, doc/make-stds.texi: Update.
13902 2001-07-14  Akim Demaille  <akim@epita.fr>
13904         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
13906 2001-07-14  Akim Demaille  <akim@epita.fr>
13908         * Makefile.maint (maintainer-check): Rename as...
13909         (maintainer-distcheck): this.
13910         (changelog-check, static-check): New.
13911         Use them.
13913 2001-07-14  Kevin Ryde  <user42@zip.com.au>
13915         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
13916         for CXX is g++, not gcc.
13918 2001-07-14  Akim Demaille  <akim@epita.fr>
13920         * doc/autoconf.texi (Files): New subsection.
13922 2001-07-14  Akim Demaille  <akim@epita.fr>
13924         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
13925         of...
13926         (Generic Compiler Characteristics): this.
13927         (C++ Compiler): New subsection.
13929 2001-07-14  Akim Demaille  <akim@epita.fr>
13931         * autoscan.in: Use IO::File.
13932         Adjust all the routines to use it.
13933         ($log): New file (autoscan.log).
13934         (output): Dump detailed logs into $log, and a shortened version to
13935         stderr.
13936         (&scan_makefile): Refine the regexp catching tokens in the code.
13937         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
13938         and the `configure.ac' checking feature.
13940 2001-07-12  Akim Demaille  <akim@epita.fr>
13942         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
13943         Reported by Michael Elizabeth Chastain.
13945         * autoconf.in: Refuse such AWK.
13946         * configure.in: Likewise.
13947         * Makefile.am (acversion.m4): Do not use move-if-change this file
13948         has dependencies.
13949         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
13951 2001-07-10  Jens Petersen  <petersen@redhat.com>
13953         * autoscan.in (&scan_makefile): Improve programs regexp to parse
13954         things like "g++", "file.c" and "some-conf" as tokens.
13955         (&scan_file): Match C++ files extensions.
13956         If the filename extension is C++ then ask for c++.
13958 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
13960         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
13961         AC_TRY_LINK_FUNC, to check whether defining a dummy
13962         main-like routine is needed for linking with F77 libs.
13964 2001-07-05  Pavel Roskin  <proski@gnu.org>
13966         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
13967         after using break.
13968         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
13969         linking.
13971 2001-07-05  Akim Demaille  <akim@epita.fr>
13973         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
13974         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
13975         Makes' lives.
13976         Reported by Nicolas Joly.
13978 2001-07-04  Akim Demaille  <akim@epita.fr>
13980         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
13981         up.
13982         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
13983         warnings from compilers.
13984         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
13985         for all the compilers, not only GNU.  Hence move from here...
13986         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
13988 2001-07-04  Akim Demaille  <akim@epita.fr>
13990         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
13991         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
13992         AC_COMPILE_IFELSE.
13994 2001-07-04  Akim Demaille  <akim@epita.fr>
13996         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
13997         the ``strings.h'' change claimed below.
13999 2001-07-04  Akim Demaille  <akim@epita.fr>
14001         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
14003 2001-07-04  Akim Demaille  <akim@epita.fr>
14005         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
14006         strings.h if usable with string.h.
14007         Suggested by Paul Eggert.
14009 2001-07-04  Akim Demaille  <akim@epita.fr>
14011         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
14012         From Jens Petersen.
14014 2001-07-03  Akim Demaille  <akim@epita.fr>
14016         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
14017         etc. in the log.
14019 2001-07-03  Akim Demaille  <akim@epita.fr>
14021         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
14022         compiler, not the preprocessor.
14023         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
14024         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
14025         the right thing.
14026         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
14027         earlier if there are.
14029 2001-07-03  Akim Demaille  <akim@epita.fr>
14031         * autoscan.in ($initfile): Remove.
14032         (&find_file): Rename as...
14033         (&scan_file): this.
14034         Immediately scan the current file, instead of gathering them, and
14035         later having them handled by &scan_files.
14036         (&scan_files): Merely invoke Find::File.
14037         Adjust.
14039 2001-07-02  Akim Demaille  <akim@epita.fr>
14041         * autoscan.in: Formatting changes, matching the invocation order.
14042         (File::Find): Use it instead of Perl 4's `find.pl'.
14043         (&wanted): Rename as...
14044         (&find_file): this.
14046 2001-07-01  Pavel Roskin  <proski@gnu.org>
14048         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
14049         break in the argument to AC_TRY_LINK_FUNC.
14050         (AC_F77_MAIN): Remove conftest* after using break in the
14051         argument to AC_TRY_LINK.
14053 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
14055         Add alternate 'main' routine detection for linking C/C++ with Fortran,
14056         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
14058         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
14059         dummy alternate main is required even if the user provides her own
14060         'main'.
14061         (AC_F77_MAIN): New macro to detect whether it is possible to
14062         provide an alternate 'main' function name, using the 'main' from
14063         the Fortran libraries.
14064         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
14065         cross-language link tests can be performed successfully.
14066         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
14067         after $LIBS, for consistency; this should be the general rule since
14068         the user may want to link to Fortran libraries that require $FLIBS.
14069         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
14071 2001-06-29  Pavel Roskin  <proski@gnu.org>
14073         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
14074         at-stdout and at-stderr instead of removing the newline
14075         from the echo output, which is not guaranteed to work.
14077 2001-06-28  Jens Petersen  <petersen@redhat.com>
14079         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
14080         confdefs.h when non-zero.
14082 2001-06-28  Akim Demaille  <akim@epita.fr>
14084         * configure.in: Bump to 2.50c.
14086 2001-06-26  Akim Demaille  <akim@epita.fr>
14088         Version 2.50b.
14090 2001-06-26  Akim Demaille  <akim@epita.fr>
14092         Version 2.50a.
14094 2001-06-25  Pavel Roskin  <proski@gnu.org>
14096         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
14097         argument, AUTOCONF-FLAGS.
14098         * tests/mktests.sh (update_exclude_list): Add
14099         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
14100         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
14101         AC_FUNC_WAIT3 with "-W no-obsolete".
14103 2001-06-25  Akim Demaille  <akim@epita.fr>
14105         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
14107 2001-06-25  Akim Demaille  <akim@epita.fr>
14109         * autoscan.in (%macro): Now maps from word to list of macros.
14110         (&init_tables): Die when a word which is already handled by
14111         explicit macros is mapped to the default macro.
14112         (&print_unique): Remove, inlined in...
14113         (&output_kind): here.
14114         (File::Basename): Use it.
14115         (&output): Sort the CONFIG_FILES.
14116         * acheaders: Normalize.
14117         * acfunctions: Likewise.
14119 2001-06-25  Akim Demaille  <akim@epita.fr>
14121         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
14122         characteristics in the logs.
14123         Suggested by Mo DeJong.
14125 2001-06-24  Akim Demaille  <akim@epita.fr>
14127         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
14128         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
14129         * doc/autoconf.texi (Autoconf 2.13): New section.
14131 2001-06-24  Akim Demaille  <akim@epita.fr>
14133         * autoconf.in (Task traces): Separate the error messages from the
14134         traces to improve robustness.
14136 2001-06-23  Akim Demaille  <akim@epita.fr>
14138         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
14139         three as failures are unlikely, and speed matters.
14141 2001-06-23  Akim Demaille  <akim@epita.fr>
14143         * doc/autoconf.texi (Redefined M4 Macros): New.
14145 2001-06-23  Akim Demaille  <akim@epita.fr>
14147         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
14148         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
14149         5.3.
14151 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
14153         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
14154         config.status targets to after the evaluation of the INIT-CMDS.
14155         Double quote config.status targets (used to be single quoted).
14157 2001-06-23  Akim Demaille  <akim@epita.fr>
14159         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
14160         Check the content of the created file.
14161         Check the ./config.status command line invocation.
14163 2001-06-23  Akim Demaille  <akim@epita.fr>
14165         * tests/foreign.at (Libtool): Reject prehistoric versions.
14167 2001-06-23  Akim Demaille  <akim@epita.fr>
14169         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
14170         preexisting files matching a.*.
14172 2001-06-23  Akim Demaille  <akim@epita.fr>
14174         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
14175         stderr.
14176         * doc/autoconf.texi (AC_ARG_VAR): Update.
14178 2001-06-21  Akim Demaille  <akim@epita.fr>
14180         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
14181         precious variables have changed.
14182         * tests/torture.at (AC_ARG_VAR): Adjust.
14184 2001-06-21  Akim Demaille  <akim@epita.fr>
14186         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
14187         but some sed choke on multiple `;', and other tools (e.g.,
14188         Automake), include the separator themselves.
14190         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
14192 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
14194         * doc/autoconf.texi (Functions Portability): Rename as...
14195         (Function Portability): this.
14196         (Function Portability): Document potential problems with unlink().
14198 2001-06-19  Paul Eggert  <eggert@twinsun.com>
14200         * NEWS, doc/autoconf.texi: Document quadrigraphs.
14202 2001-06-18  Akim Demaille  <akim@epita.fr>
14204         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
14206 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
14208         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
14209         (_AC_FUNC_VFORK): this.
14210         Remove AC_DEFINEs and don't guess cross-compilation values.
14211         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
14212         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
14213         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
14214         vfork doesn't work.
14215         Guess values if cross-compiling, but warn.
14216         * acfunctions: Add AC_FUNC_FORK.
14217         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
14218         and vfork appropriately.
14220 2001-06-18  Akim Demaille  <akim@epita.fr>
14222         * doc/autoconf.texi (Functions Portability): New section.
14224 2001-06-18  Akim Demaille  <akim@epita.fr>
14226         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
14227         in $M4.
14228         Suggested by Andreas Schwab.
14230 2001-06-18  Akim Demaille  <akim@epita.fr>
14232         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
14233         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
14234         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
14235         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
14236         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
14237         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
14238         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
14239         the converse).
14241 2001-06-18  Akim Demaille  <akim@epita.fr>
14243         * doc/autoconf.texi (ms): New index.
14244         (Macro Index): Rename as...
14245         (Autoconf Macro Index): this.
14246         (M4 Macro Index): New appendix.
14247         (Programming in M4): New chapter.
14248         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
14249         (Quoting): Rename as...
14250         (M$ Quotation): this.
14251         Be part of `Programming in M4).
14253 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
14255         * tests/torture.at (AC_ARG_VAR): Set variables and export them
14256         in separate statements for compatibility with Tru64 v5.1.
14258 2001-06-17  Akim Demaille  <akim@epita.fr>
14260         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
14261         current values of the precious variables, not the previously
14262         cached values.
14263         Pass precious variables which are set to config.status.
14264         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
14265         * tests/torture.at (AC_ARG_VAR): New.
14267 2001-06-15  Paul Eggert  <eggert@twinsun.com>
14269         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
14270         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
14271         and explain why and how to replace them.
14272         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
14273         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
14275 2001-06-15  Akim Demaille  <akim@epita.fr>
14277         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
14278         Reported by Bruno Haible.
14280         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
14281          (_AC_ARG_VAR_PRECIOUS): to here.
14283 2001-06-15  Pavel Roskin  <proski@gnu.org>
14285         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
14286         an unused pointer use cast to this type and `if' statement to
14287         avoid warnings from the compiler.
14288         (AC_HEADER_TIME): Likewise.
14289         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
14290         in `if' statement to avoid warnings from the compiler. Declare
14291         ac_aggr static to avoid the need to initialize it.
14293 2001-06-14  Akim Demaille  <akim@epita.fr>
14295         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
14296         Macros'.
14298 2001-06-13  Akim Demaille  <akim@epita.fr>
14300         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
14301         Suggested by Alexander Mai.
14303 2001-06-13  Akim Demaille  <akim@epita.fr>
14305         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
14306         sys/types.h and sys/stat.h, and check for them.
14308 2001-06-13  Akim Demaille  <akim@epita.fr>
14310         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
14311         INCLUDES.
14313 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
14315         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
14316         succeeds and only try adding libdnet upon a failure.
14318 2001-06-12  Akim Demaille  <akim@epita.fr>
14320         * autoscan.in (&output_kind): Output the comment only if it exists.
14321         (%kind_comment): Add entry for `programs'.
14322         (&output_programs): Use &output_kind.
14323         (&output_functions, &output_identifiers, &output_headers)
14324         (&output_programs): Inline, and remove.
14326 2001-06-12  Akim Demaille  <akim@epita.fr>
14328         * autoscan.in (%kind_comment): New.
14329         (output_kind): New.
14330         (output_functions, output_identifiers, output_headers): Use it.
14332 2001-06-12  Akim Demaille  <akim@epita.fr>
14334         * autoscan.in (&print_unique): Take `$kind' and `$word' as
14335         arguments, to factor indirections into `%macro' and `%used'.
14336         (%generic_macro): Fix a typo.
14338 2001-06-12  Akim Demaille  <akim@epita.fr>
14340         * aclibraries: New.
14341         * autoscan.in (@kinds): Add `libraries'.
14342         Use `@kinds' instead of hard coded lists.
14343         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
14344         Remove, replaced by...
14345         (%used): this.
14347 2001-06-12  Akim Demaille  <akim@epita.fr>
14349         * autoscan.in (%functions_macros %headers_macros)
14350         (%identifiers_macros %programs_macros %makevars_macros): Remove,
14351         replaced by...
14352         (%macro): New.
14354 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
14356         * aclang.m4 (AC_NO_EXECUTABLES): Override
14357         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
14359 2001-06-11  Akim Demaille  <akim@epita.fr>
14361         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
14362         trailing new line.
14363         Reported by Andreas Schwab.
14365 2001-06-11  Akim Demaille  <akim@epita.fr>
14367         * Makefile.am, Makefile.maint: Typos.
14369 2001-06-09  Akim Demaille  <akim@epita.fr>
14371         * doc/autoconf.texi (Here-Documents): New section, gathering
14372         documentation about here-documents.
14373         Use `href', not `uref', and other changes.
14375 2001-06-09  Akim Demaille  <akim@epita.fr>
14377         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
14378         chapter.
14380 2001-06-09  Akim Demaille  <akim@epita.fr>
14382         * doc/autoconf.texi (Limitations of Builtins): Complete the
14383         description of the here-docs penalties with Alexandre Oliva's
14384         explanations.
14386 2001-06-01  Paul Eggert  <eggert@twinsun.com>
14388         * doc/autoconf.texi: Talk about here documents and speedups.
14389         Do not use "echo" on arbitrary strings.
14390         Spell "here-documents" consistently with the standard.
14392 2001-06-09  Akim Demaille  <akim@epita.fr>
14394         * doc/autoconf.texi (Concept Index): Introduce it.
14395         Regenerate the menus.
14397 2001-06-09  Akim Demaille  <akim@epita.fr>
14399         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
14400         * config/prev-version.txt: New.
14401         * config/move-if-change: New, for GNU libc.
14403 2001-06-06  Pavel Roskin  <proski@gnu.org>
14405         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
14407 2001-06-06  Akim Demaille  <akim@epita.fr>
14409         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
14410         properly when $1 is not a literal.
14411         Fixes PR Autoconf/187, reported by Bram Moolenaar.
14413 2001-06-06  Akim Demaille  <akim@epita.fr>
14415         Invoking AC_COPYRIGHT before AC_INIT fails.
14417         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
14418         * acgeneral.m4 (_m4_divert(VERSION_FSF))
14419         (_m4_divert(VERSION_USER)): New.
14420         (AC_COPYRIGHT): $2 is the diversion to use.
14421         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
14422         (AC_INIT): Remove dead comments as now it's commutative.
14424 2001-06-06  Akim Demaille  <akim@epita.fr>
14426         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
14427         PR autoconf/187.
14429 2001-06-05  Akim Demaille  <akim@epita.fr>
14431         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
14432         can be empty.
14433         `*dir' variables cannot be NONE.
14434         Reported by Mark Kettenis.
14436 2001-06-05  Paul Eggert  <eggert@twinsun.com>
14438         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
14440 2001-06-04  Akim Demaille  <akim@epita.fr>
14442         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
14443         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
14444         (AC_TR_SH): Move as...
14445         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
14446         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
14447         (AS_TR_SH): these.
14448         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
14449         (_AS_TR_SH_PREPARE): New.
14450         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
14451         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
14453 2001-06-02  Akim Demaille  <akim@epita.fr>
14455         * Makefile.am (.m4.m4f): Pass the options first.
14456         Fixes PR autoconf/182.
14458 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
14460         GNU getopt, when POSIXLY_CORRECT does not permute options and
14461         arguments.  So pass the options first.
14462         Fixes PR autoconf/184.
14464         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
14465         (run_m4): Remove files.
14466         (run_m4f): Remove.
14467         Update remainder of script to use them.
14468         (for warning in): Do not use a literal comma as it will not be
14469         split by IFS.
14471 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
14473         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
14474         Fortran compilers to check.
14475         (_AC_PROG_F77_V): Add '-###' as a possible option to print
14476         information on library and object files.
14477         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
14478         to check.
14480 2001-06-02  Akim Demaille  <akim@epita.fr>
14482         * autom4te.in (Request::@request): Declare with `vars', not `my',
14483         as it prevents updates via `do FILENAME'.
14485 2001-06-02  Akim Demaille  <akim@epita.fr>
14487         * configure.in (standards_texi): Remove, dead code.
14489 2001-06-02  Akim Demaille  <akim@epita.fr>
14491         * autom4te.in: New.
14493 2001-06-02  Pavel Roskin  <proski@gnu.org>
14495         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
14496         for signals other than 0 - exit with code 1.
14497         * m4sh.m4 (AS_TMPDIR): Likewise.
14498         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
14499         * autoheader.in: Likewise.
14500         * autoreconf.in: Likewise.
14501         * tests/torture.at (Signal handling): New test for the above.
14503 2001-06-01  Akim Demaille  <akim@epita.fr>
14505         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
14506         message.
14508 2001-05-31  Akim Demaille  <akim@epita.fr>
14510         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
14511         Add copyright and comments.
14512         * acheaders: Add stdint.h.
14513         Suggested by Paul Eggert.
14515 2001-05-31  Akim Demaille  <akim@epita.fr>
14517         * atgeneral.m4 (AT_INIT): Use $SHELL.
14518         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
14520 2001-05-31  Akim Demaille  <akim@epita.fr>
14522         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
14523         stdint.h.
14524         From Paul Eggert and Lars Hecking.
14526 2001-05-31  Akim Demaille  <akim@epita.fr>
14528         * tests/base.at: Adjust line numbers in error messages.
14530 2001-05-31  Akim Demaille  <akim@epita.fr>
14532         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
14533         to emit the bangshe line.
14534         Reported by David Carter.
14536 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
14538         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
14539         Fortran (95) compilers to check.
14541 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
14543         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
14544         Macro Archive URL.
14546 2001-05-23  Pavel Roskin  <proski@gnu.org>
14548         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
14549         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
14550         (AC_PROG_CXXCPP): Likewise.
14552 2001-05-22  Akim Demaille  <akim@epita.fr>
14554         * config: New directory.
14555         * configure.in: AC_CONFIG_AUX_DIR it.
14556         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
14558 2001-05-22  Akim Demaille  <akim@epita.fr>
14560         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
14561         * autoupdate.in: Specify the Emacs mode.
14562         * acversion.m4.in: Rename as...
14563         * acversion.m4: this.
14564         * tests/Makefile.am (CLEANFILES): More garbage.
14566 2001-05-22  Akim Demaille  <akim@epita.fr>
14568         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
14569         Rename as...
14570         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
14571         these.
14573 2001-05-21  Akim Demaille  <akim@epita.fr>
14575         * configure.in: Bump to 2.50a.
14578         -----
14580         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
14581         Software Foundation, Inc.
14583         Copying and distribution of this file, with or without
14584         modification, are permitted provided the copyright notice and this
14585         notice are preserved.