Remove three forks per _AC_RUN_LOG_STDERR in the common case.
[autoconf.git] / ChangeLog
blob37e69c794eddf9003d365fa7851fa189f81a8c27
1 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
3         Remove three forks per _AC_RUN_LOG_STDERR in the common case.
4         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
5         sequence when the program's stderr was empty, while providing a
6         conftest.err file even in that case.
7         (_AC_CACHE_DUMP): Fix mismatched parenthesis.
9 2008-11-06  Paolo Bonzini  <bonzini@gnu.org>
11         Change `present but cannot be compiled' behavior to use compiler result.
12         * NEWS: Document it.
13         * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
14         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
15         and adjust warning.
16         * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
18 2008-11-05  Eric Blake  <ebb9@byu.net>
20         Add m4_map_args_w.
21         * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
22         for now.
23         (_m4_split): Allow user control over separator.
24         (m4_split): Adjust caller.
25         (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
26         m4_map_args_w.
27         * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
28         (M4 loops): Test new interface.
30         Use m4_set_map_sep in more places.
31         * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
32         (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
33         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
34         Enhance documentation.
35         <m4_set_foreach>: Mention faster alternative.
36         (Looping constructs) <m4_foreach>: Likewise.
38         Unify m4_set_foreach and m4_set_map.
39         * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
40         for now.
41         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
42         (m4_set_map): Adjust callers.
44         Use _m4_foreach in more places.
45         * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
46         (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
47         m4_foreach.
48         * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
49         instead of m4_foreach or m4_map_args.
51         Unify _m4_foreach and _m4_map.
52         * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
53         (_m4_foreach): ...this.
54         (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
55         (m4_map_args, m4_map_args_sep): Adjust callers.
56         * lib/m4sugar/foreach.m4 (_m4_map): Rename...
57         (_m4_foreach): ...to this, overwriting old definition.
59 2008-11-04  Eric Blake  <ebb9@byu.net>
61         Add m4_map_args_sep, undocumented for now.
62         * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
63         (_m4_map): Change API to cover more of m4_map*.
64         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
65         (m4_map_args): Delete.
66         * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
67         test.
69         Improve m4_for performance.
70         * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
71         avoid m4_define by some clients.
72         (m4_for): Adjust caller.
73         * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
74         (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
75         (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
76         (_m4_list_cmp): Likewise.
78 2008-11-04  Eric Blake  <ebb9@byu.net>
80         Adjust expected output.
81         * tests/torture.at (Missing templates): Reflect added quoting.
82         Detected by Bob Proulx's buildbot.
84         Reject arguments with leading =.
85         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
86         missing variable name, with fewer forks.  Quote invalid arguments
87         in message, in case they include spaces.
88         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
89         (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
90         * lib/autotest/general.m4 (AT_INIT): Likewise.
91         * tests/base.at (configure arguments): Test this.
92         Reported by Jeff Squyres.
94 2008-11-04  Eric Blake  <ebb9@byu.net>
96         Upgrade to FDL 1.3.
97         * cfg.mk (fetch): Add fdl-1.3.texi.
98         * .gitattributes: Likewise.
99         * doc/autoconf.texi (GNU Free Documentation License): Point to new
100         upstream version.
101         * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
102         (standards_TEXINFOS): Mention current dependence on older license.
103         * doc/fdl-1.3.texi: New upstream file.
104         * GNUmakefile: Resync from upstream.
105         * build-aux/announce-gen: Likewise.
106         * build-aux/texinfo.tex: Likewise.
108 2008-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110         Point at AM_SUBST_NOTMAKE.
111         * doc/autoconf.texi (Setting Output Variables): Add cross
112         reference to new Automake macro AM_SUBST_NOTMAKE.
114 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
116         Eliminate a fork per invocation of AC_LANG_CONFTEST.
117         * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
118         AC_LANG_SOURCE(C).
119         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
120         top of confdefs.h, which also works around cpp deficiencies.
121         * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
122         (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
123         (AC_LANG_CONFTEST()): New.
125 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
127         Reorganize definition of languages.
128         * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
129         _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
130         _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
131         Replace definitions with usage of AC_LANG_DEFINE.
132         (Sections 2b, 2c): Delete.
133         (Sections 1b, 1c): Move after section 2a.
134         * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
135         _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
136         with usage of AC_LANG_DEFINE.
137         (AC_LANG_ERLANG): Define using AU_DEFUN.
138         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
139         _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
140         _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
141         _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
142         definitions with usage of AC_LANG_DEFINE.
143         * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
145 2008-11-03  Paolo Bonzini  <bonzini@gnu.org>
147         Use preprocessor in cpp tests.
148         * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
150 2008-10-31  Paolo Bonzini  <bonzini@gnu.org>
152         Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
153         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
154         (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
155         (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
156         (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
157         (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
158         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
159         Give better name.
161 2008-10-31  Eric Blake  <ebb9@byu.net>
163         Support multiple undiverts and dumpdefs at once.
164         * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
165         arguments.
166         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
167         <m4_undivert>: Document argument list change.
168         * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
169         them.
171         Simplify diversion stack handling.
172         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
173         avoid extra newlines.
174         (m4_divert_stack_push): Compute location here, rather than caller.
175         (m4_divert_push): Update caller.
176         (m4_divert): Likewise, and also adjust current diversion name.
177         (m4_divert_pop): Simplify rule that diversion stack must never go
178         empty.
179         (_m4_require_call): Bypass diversion stack when collecting
180         required macro text.
181         (m4_init): Set current diversion without requiring m4_init.
182         * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
183         * lib/autotest/general.m4 (AT_INIT): Likewise.
184         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
185         text to run prior to m4sugar cleanup.
186         * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
187         optional argument.
188         (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
189         * NEWS: Undo blurb about m4_divert.
190         * tests/m4sugar.at (m4@&t@_divert_stack): New test.
192         Simplify expansion stack handling.
193         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
194         always output 'top level'.
195         (_m4_expansion_stack_entry): New macro, to format the string only
196         when needed.
197         (m4_expansion_stack_push): Only push a macro name.
198         (m4_warn, _m4_defun_pro): Update callers.
199         (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
200         (_m4_defun_epi, m4_fatal): Inline the calls.
201         * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
203 2008-10-30  Eric Blake  <ebb9@byu.net>
205         Better documentation of AC_CHECK_HEADER's fourth argument.
206         * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
207         how to suppress compiler or preprocessor header check.
208         Reported by Jeff Squyres.
210 2008-10-30  Eric Blake  <ebb9@byu.net>
212         Fix LINENO testsuite failure.
213         * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
214         undocumented _AS_PREPARE, and move unset earlier in script.
216         Update LINENO documentation.
217         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
218         (Special Shell Variables) <LINENO>: Mention that LINENO support in
219         child scripts may be broken.  Modernize example.
221 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
223         Do not check for $LINENO in generated scripts.
224         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
225         and explain why.
227 2008-10-30  Eric Blake  <ebb9@byu.net>
229         Don't check for non-POSIX extensions in suggested tests.
230         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
231         we still use += if available, but should not reject shells (like
232         dash) that don't provide it.
233         (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
234         Reported by Paolo Bonzini.
236 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
238         Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
239         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
240         with a given CONFIG_SHELL, move it to SHELL.
241         (AS_INIT_GENERATED): Re-export SHELL.
243 2008-10-30  Eric Blake  <ebb9@byu.net>
245         Work around Solaris /bin/sh case bug.
246         * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
247         a non-empty command list.
248         (AS_CASE): Always guarantee that a case will match.
249         * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
250         Solaris bug, and mention AS_CASE.
252 2008-10-30  Paolo Bonzini  <bonzini@gnu.org>
254         Require _AS_CR_PREPARE where appropriate.
255         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
256         (AS_PREPARE): Require _AS_CR_PREPARE.
258         Avoid walking the entire PATH when looking for a better shell.
259         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
260         as the PATH is walked.
262         Add third argument to _AS_PATH_WALK
263         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
264         (_AS_PATH_WALK): Add third optional argument.
266         Trim down the length of the shell function test.
267         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
269 2008-10-29  Eric Blake  <ebb9@byu.net>
271         Fix LINENO detection to work around bash and pdksh limitations.
272         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
273         that we can choose which of two tests to trust.
274         (_AS_RUN): Set flag when alternate shell is running.
275         (_AS_DETECT_EXPAND): New macro.
276         (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
278 2008-10-29  Eric Blake  <ebb9@byu.net>
280         Mention proper fix for zsh users.
281         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
282         version known to work.
283         Suggested by Paolo Bonzini.
285         Document current beta-quality status.
286         * configure.ac: Reflect fact that change to git-version-gen
287         produces -, but not always a letter, on non-release builds.
288         * BUGS: Mention known issues.
289         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
290         debugging platforms with deficient shells.
292 2008-10-29  Eric Blake  <ebb9@byu.net>
294         Alter signature of AS_INIT_GENERATED.
295         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
296         manage here-doc and chmod in place.  This also allows future
297         changes for optimizing the child via diversion/m4_wrap magic.
298         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
299         caller.
300         * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
301         Update the documentation.
303 2008-10-29  Eric Blake  <ebb9@byu.net>
305         Use _m4_stack_reverse in m4_set.
306         * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
307         (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
308         implementation.
309         (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
310         (m4_set_map): Adjust callers to new API.
312         Add m4_stack_foreach_sep.
313         * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
314         (m4_stack_foreach_sep_lifo): New macros.
315         (_m4_stack_reverse): Adjust prototype, to support it.
316         (m4_copy): Use fewer macros.
317         * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
318         (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
320 2008-10-29  Bruno Haible  <bruno@clisp.org>
322         Mention Sun WorkShop 6.2 OpenMP bug.
323         * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
325 2008-10-29  Paolo Bonzini  <bonzini@gnu.org>
327         Rewrite handling of diversion and expansion stack.
328         * NEWS: Document stricter requirement on m4_init.
329         * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
330         _m4_divert_n_stack.
331         (_m4_divert_stack_push): New.
332         (m4_divert): Use _m4_divert_stack_push and replace m4_define with
333         m4_popdef.
334         (m4_divert_push): Use _m4_divert_stack_push.
335         (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
336         pop _m4_divert_stack instead of m4_divert_stack.
337         (m4_expansion_stack): New.  Update comment above it.
338         (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
339         _m4_expansion_stack instead of m4_expansion_stack.
340         (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
341         instead of m4_expansion_stack.  Use m4_expansion_stack's expansion
342         instead of the definition, and compensate for the trailing newline
343         in the expansion.
344         (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
345         _m4_expansion_stack instead of m4_expansion_stack.
346         (m4_newline): Expand first argument after the newline.
347         (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
348         * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
349         * tests/tools.at (whitespace in file names, the empty token): Likewise.
351 2008-10-28  Eric Blake  <ebb9@byu.net>
353         Reduce forks while searching for better shell.
354         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
355         (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
356         already does the job.
357         (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
358         0 context.
360         Undo needless efforts to protect $2 in $2_t.
361         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
362         (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
364 2008-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
366         Fix parallel test execution output lossage.
367         * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
368         standard output and standard error before the test, use append
369         mode for writing.
370         * THANKS: Update.
371         Caught by Bob Proulx' build daemons, analysis and suggested fix
372         by Stéphane Chazelas.
374 2008-10-28  Eric Blake  <ebb9@byu.net>
376         Use m4_map_args in more places.
377         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
378         (m4_undefine, m4_combine): Use m4_map_args, rather than
379         m4_foreach.
381 2008-10-28  Eric Blake  <ebb9@byu.net>
383         Override m4 1.4.x dumpdef, as it breaks autom4te.
384         * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
385         (m4_copy): Formatting touchup.
386         * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
387         semantic differences as well as m4_dumpdefs.
388         * NEWS: Likewise.
389         * tests/m4sugar.at (m4@&t@_dumpdef): New test.
391 2008-10-28  Eric Blake  <ebb9@byu.net>
393         Allow m4sugar to be used without autom4te, such as in bison.
394         * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
395         alternate escape sequences can be used.
396         (m4_text_box): Likewise.  Don't output quadrigraphs.
397         (m4_qdelta): Delete unused macro.
399 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
401         Add m4_stack_foreach and m4_stack_foreach_lifo.
402         * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
403         (m4_stack_foreach, m4_stack_foreach_lifo): New.
404         (m4_copy): Use m4_stack_foreach and m4_curry.
405         (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
406         (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
407         * tests/m4sugar.at (m4_stack_foreach): New test.
409 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
411         use a shell function for AC_TYPE_INTx_T
412         * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
413         New.
414         (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
416 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
418         * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
419         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
420         _AC_CHECK_HEADER_NEW): Likewise.
421         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
423 2008-10-28  Paolo Bonzini  <bonzini@gnu.org>
425         * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
426         (AC_CHECK_MEMBER): Define and use a shell function.
428 2008-10-27  Eric Blake  <ebb9@byu.net>
430         Prefer m4_fatal over AC_FATAL.
431         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
432         (AC_CHECK_MEMBER): Use non-obsolete macro name.
433         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
434         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
435         Likewise.
436         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
437         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
438         (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
440 2008-10-27  Eric Blake  <ebb9@byu.net>
442         Avoid raw carriage return in scripts.
443         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
444         via tr, rather than with literal byte.
445         * THANKS: Update.
446         Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
448 2008-10-27  Eric Blake  <ebb9@byu.net>
450         Use AS_VAR_ARITH.
451         * lib/autotest/general.m4 (at_func_arith): Delete; replace all
452         clients with AS_VAR_ARITH instead.
453         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
454         macro.
455         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
456         * tests/torture.at (Torturing config.status): Likewise.
457         * tests/tools.at (autom4te --force): Likewise.
459         Add AS_VAR_ARITH.
460         * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
461         (AS_VAR_ARITH): New macros.
462         (_AS_PREPARE, AS_PREPARE): Emit preparation.
463         * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
464         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
465         Document new macro.
466         (Limitations of Usual Tools) <expr>: Mention portability problem
467         if first argument starts with -.
468         (Shell Substitutions) <$((expression))>: Mention it.
469         * NEWS: Likewise.
471 2008-10-27  Eric Blake  <ebb9@byu.net>
473         Use read, rather than `cat`, for safe one-line files.
474         * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
475         known that the file has only one line and no \.
476         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
478 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
480         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
481         _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
482         (_AC_COMPUTE_INT_BODY): New.
483         (AC_COMPUTE_INT): Define and use a shell function.
485 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
487         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
488         test body here.  Move head comment of _AC_CHECK_TYPE_NEW here.
489         (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
491 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
493         * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
494         (AC_CHECK_DECL): Use a shell function.
496 2008-10-27  Paolo Bonzini  <bonzini@gnu.org>
498         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
499         _AC_CHECK_HEADER_NEW): Use a shell function.
501 2008-10-25  Eric Blake  <ebb9@byu.net>
503         Track recent copyright assignments.
504         * AUTHORS: Update.
506 2008-10-25  Paolo Bonzini  <bonzini@gnu.org>
507         and Eric Blake  <ebb9@byu.net>
509         Use a shell function for _AC_CHECK_HEADER_MONGREL.
510         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
511         macro.
512         (_AC_CHECK_HEADER_MONGREL): Use a shell function.
514 2008-10-25  Eric Blake  <ebb9@byu.net>
516         Simplify _AS_PREPARE handling of functions.
517         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
518         (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
519         (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
520         this task easier.
521         (_AS_LINENO_PREPARE): Make more efficient.
522         (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
523         (_AS_UNSET_PREPARE): Avoid blank newline.
524         (AS_INIT): Emit as_func_unset alongside other functions.
526 2008-10-25  Eric Blake  <ebb9@byu.net>
528         Document AS_EXIT.
529         * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
530         this macro.
531         (Limitations of Builtins): Mention AS_EXIT.
532         * NEWS: Mention it.
534         Use AS_EXIT in autoconf.as.
535         * bin/autoconf.as: Consistently use AS_EXIT.
537 2008-10-24  Eric Blake  <ebb9@byu.net>
539         Fix m4 underquoting in AC_PROG_INSTALL.
540         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
541         character ranges.
543         Speed up AC_CHECK_HEADER.
544         * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
546 2008-10-24  Paolo Bonzini  <bonzini@gnu.org>
547         and Eric Blake  <ebb9@byu.net>
549         Use a shell function for AC_CHECK_FUNC.
550         * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
551         (AC_CHECK_FUNC): Use a shell function.
552         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
554 2008-10-24  Eric Blake  <ebb9@byu.net>
556         Work around fact that gnulib-tool doesn't use m4_copy.
557         * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
558         define, so that an initial location is present, to account for
559         fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
561         Make m4_defun_init more robust.
562         * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
563         names, and correct number of arguments.
564         (m4_copy): Also set up location of the copy.
565         (m4_defun): When copied, use current macro name, not original.
566         * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
567         Update test.
569         Optimize clients of AS_REQUIRE.
570         * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
571         argument.
572         (m4_defun_init): New undocumented macro.
573         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
574         (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
575         (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
576         (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
577         simplify these macros once the one-shot initialization is
578         complete.
579         * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
580         test.
582         Improve m4_copy.
583         * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
584         public use.
585         (_m4_copy): New macro, which preserves pushdef stacks.
586         (_m4_defun_pro_outer): Bypass it, for speed.
587         (m4_init): Bypass new implementation, since it breaks on m4_defn.
588         * bin/autoupdate.in (handle_autoconf_macros): Likewise.
589         * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
590         now that m4_copy checks this.
591         * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
592         this, as well as m4_rename.
593         * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
594         renaming builtins, since it breaks on m4_ifdef.
595         * NEWS: Likewise.
596         * tests/m4sugar.at (m4@&t@_defn): Enhance test.
598 2008-10-24  Eric Blake  <ebb9@byu.net>
600         AC_FUNC_GETGROUPS: Revert regression.
601         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
602         ac_cv_func_getgroups_works=no when it is not available.
604 2008-10-23  Eric Blake  <ebb9@byu.net>
606         Whitespace cleanup.
607         * lib/autoconf/fortran.m4: Consistently use tabs.
609 2008-10-23  Chikama Masaki  <masaki.chikama@gmail.com>  (tiny change)
611         For gfortran on sh, ignore -little.
612         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
613         list of ignored arguments.
614         * THANKS: Update.
616 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
618         Eliminate empty lines after AC_*_IFELSE.
619         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
620         _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
622 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
624         Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
625         * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
626         Return a boolean status code based on $ac_status.
628 2008-10-23  Paolo Bonzini  <bonzinI@gnu.org>
630         Ensure actions can look at conftest* files.
631         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
632         _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
633         Move rm commands, except IPA files and Apple debug symbols...
634         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
635         _AC_RUN_IFELSE): ...in here.
636         * tests/compile.at: Add regression test.
638 2008-10-23  Eric Blake  <ebb9@byu.net>
640         Remove excess dnl from m4sh.
641         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
642         (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
643         (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
644         (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
645         (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
646         (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
647         (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
648         (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
649         (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
650         (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
652 2008-10-23  Paolo Bonzini  <bonzini@gnu.org>
653         and Eric Blake  <ebb9@byu.net>
655         Use a shell function for _AC_RUN_IFELSE.
656         * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
657         (_AC_RUN_IFELSE): Use a shell function.
658         (_AC_RUN_LOG): Avoid subshell for logging.
660 2008-10-23  Eric Blake  <ebb9@byu.net>
662         Formatting tweak: balance () with m4sh case statements.
663         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
664         (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
665         (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
666         (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
667         allow output of strategic shell comments.
668         (AS_VERSION_COMPARE): Use AS_CASE.
669         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
671 2008-10-22  Jim Meyering  <meyering@redhat.com>
673         AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
674         * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
675         the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
676         it is set to "yes" in the environment and configure is run on
677         a system like mingw that lacks the getgroups function, it would
678         mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
679         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
681 2008-10-22  Paolo Bonzini  <bonzini@gnu.org>
682         and Eric Blake  <ebb9@byu.net>
684         Use a shell function for _AC_LINK_IFELSE.
685         * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
686         (_AC_LINK_IFELSE): Use a shell function.
688 2008-10-22  Eric Blake  <ebb9@byu.net>
690         Fix autoconf logging commands.
691         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
692         (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
693         (_AC_DO_ECHO): Likewise, and use fewer dnl.
694         (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
696 2008-10-22  Eric Blake  <ebb9@byu.net>
698         Fix testsuite failure.
699         * tests/mktests.sh (ac_exclude_list): Don't generate test for
700         AC_REQUIRE_SHELL_FN.
702 2008-10-21  Eric Blake  <ebb9@byu.net>
704         Improve wording related to automake and autotest.
705         * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
706         relation to automake.  Mention dependency on package.m4.
707         Consolidate examples.  Define AUTOM4TE.
708         * THANKS: Update.
709         Reported by William Pursell.
711 2008-10-21  Eric Blake  <ebb9@byu.net>
713         Allow AS_VAR_SET_IF in shell lists.
714         * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
715         line.
716         * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
717         provided by AS_VAR_SET_IF.
718         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
719         clients.
720         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
721         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
723         Allow AS_VAR_IF in shell lists.
724         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
725         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
726         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
727         Likewise.
728         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
729         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
730         (_AC_CHECK_HEADER_DIRENT): Likewise.
731         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
732         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
733         Likewise.
734         * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
736         Allow AS_CASE in shell lists.
737         * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
738         side effects.  Allow continuation of script on same line as esac.
739         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
740         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
741         * NEWS: Document the subtle change.
743         Allow AS_IF in shell lists.
744         * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
745         side effects.  Allow continuation of script on same line as fi.
746         (_AS_DETECT_BETTER_SHELL): Adjust clients.
747         (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
748         given by AS_IF.
749         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
750         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
751         (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
752         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
753         * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
754         (Polymorphic Variables): Move mention of dnl to the only two
755         AS_VAR functions that need it.
757 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
758         and Eric Blake  <ebb9@byu.net>
760         Use a shell function for _AC_COMPILE_IFELSE.
761         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
762         (_AC_COMPILE_IFELSE): Use a shell function.
764 2008-10-21  Eric Blake  <ebb9@byu.net>
766         Use AS_VAR_APPEND.
767         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
768         * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
769         (_AC_LIBOBJS_NORMALIZE): Likewise.
770         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
771         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
772         (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
773         * lib/autotest/general.m4 (AT_INIT): Likewise.
775         Add AS_VAR_APPEND.
776         * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
777         (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
778         (AS_PREPARE, _AS_PREPARE): Emit preparation.
779         * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
780         * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
781         Document new macro.
782         <AS_VAR_SET>: Mention ramification of `""` rules.
783         * NEWS: Mention new macro.
785 2008-10-21  Paolo Bonzini  <bonzini@gnu.org>
786         and Eric Blake  <ebb9@byu.net>
788         Use a shell function for _AC_PREPROC_IFELSE.
789         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
790         (_AC_PREPROC_IFELSE): Use a shell function.
791         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
792         (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
793         been provided.
795 2008-10-21  Eric Blake  <ebb9@byu.net>
797         Add banners to generated files.
798         * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
799         existing banner.
800         (AS_INIT): Add new banners at strategic points.
801         * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
802         make consistent with other banners.
803         * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
805 2008-10-20  Paolo Bonzini  <bonzini@gnu.org>
807         Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
808         * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
809         (m4_divert(SHELL_FN)): New.
811 2008-10-20  Eric Blake  <ebb9@byu.net>
813         Avoid unportable use of echo in testsuite.
814         * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
815         contains backslash.
817 2008-10-18  Paolo Bonzini  <bonzini@gnu.org>
819         Make sure that nested AS_REQUIRE do not lose the desired diversion.
820         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
821         passing it to m4_divert_require, so that its content is not used
822         anymore.
823         * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
825 2008-10-18  Eric Blake  <ebb9@byu.net>
827         Document bugs in { } handling.
828         * doc/autoconf.texi (Limitations of Builtins): Mention bug on
829         empty list.
831         Fix some testsuite failures introduced two days ago.
832         * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
833         (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
834         API.
835         Reported by Ralf Wildenhues.
837 2008-10-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
839         Show how to extract single substitutions from config.status.
840         * doc/autoconf.texi (config.status Invocation): Show example
841         using `--file=-'.
843 2008-10-17  Eric Blake  <ebb9@byu.net>
845         Add m4_curry.
846         * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
847         * tests/m4sugar.at (m4@&t@_map_args): Rename...
848         (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
849         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
850         currying as a way to add parameters.
851         (Evaluation Macros) <m4_curry>: Document the new macro.
852         * NEWS: Likewise.
854         Improve suggested test filtering.
855         * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
856         extracted from...
857         (_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
858         check for an empty required set.
860         Add m4_set_map.
861         * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
862         * tests/m4sugar.at (m4@&t@_set): Enhance test.
863         * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
864         Document it.
865         * NEWS: Likewise.
867         Document m4_map_args.
868         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
869         Rename...
870         (m4_map_args, m4_map_args_pair): ...to these names, and document.
871         (m4_version_unletter): Use the interface.
872         * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
873         (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
874         Perform same renames.
875         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
876         * tests/m4sugar.at (m4@&t@_map_args): New test.
877         (recursion): Adjust caller.
878         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
879         * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
880         this interface.
881         * NEWS: Mention the new macros.
883 2008-10-17  Eric Blake  <ebb9@byu.net>
885         Reduce vertical whitespace in configure.
886         * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
887         m4 side effect initializations.
888         * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
890 2008-10-17  Eric Blake  <ebb9@byu.net>
892         Document AS_VAR interfaces.
893         * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
894         (Polymorphic Variables): New node.
895         * NEWS: Update accordingly.
897         Test AS_VAR interfaces.
898         * tests/m4sh.at (AS@&t@_VAR): New test.
899         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
900         _AS_TR_SH_PREPARE at top level, rather than argument collection.
901         (AS_TR_SH): Support command substitution.
903         Add AS_VAR_COPY.
904         * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
905         (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
906         * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
907         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
908         * lib/autotest/general.m4 (_AT_FINISH): Likewise.
910         Sort AS_VAR_* interfaces.
911         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
912         (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
913         no code changes.
915 2008-10-16  Eric Blake  <ebb9@byu.net>
917         Allow comments before functions emitted by m4sh.
918         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
919         argument.  Supply closing comment, to ease readability.
920         (_AS_MKDIR_P_PREPARE): Adjust caller.
921         (_AS_UNSET_PREPARE): Add comment.
923         Add AS_FUNCTION_DESCRIBE.
924         * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
925         * lib/autotest/general.m4 (AT_INIT): Use it.
927 2008-10-16  Eric Blake  <ebb9@byu.net>
929         Speed up m4_qlen with caching.
930         * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
931         (m4_qlen): Cache results for speed.
933 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
935         Add a testcase using more then one language.
936         * tests/compile.at (Multiple languages): New test.
938 2008-10-16  Paolo Bonzini  <bonzini@gnu.org>
940         Fix Libtool's config.lt test.
941         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
942         expanding it.
944 2008-10-15  Eric Blake  <ebb9@byu.net>
946         Break circular require chain in _AS_LINENO_PREPARE.
947         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
948         disabled when reporting LINENO failure, since logging requires
949         LINENO.
950         * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
951         not m4_rename, since the latter is undocumented.
952         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
953         m4_rename, as it does not yet handle pushdef stacks.
954         Reported by Ralf Wildenhues.
956 2008-10-15  Eric Blake  <ebb9@byu.net>
958         Cleanups to previous patches.
959         * doc/autoconf.texi (Portable Shell): Minor edits.
960         (Limitations of Builtins): Touch up wording.
961         * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
962         (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
964 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
966         Updates to shell portability documentation.
967         * doc/autoconf.texi: Updates all references to "Portable Shell" and
968         "Limitations of Builtins" to use three-argument commands.
969         (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
970         (Portable Shell): Move here discussion about "Where is the POSIX
971         shell?"  Mention that M4sh provides a SVR2 shell and takes care
972         of unsetting variables if necessary.  Talk about M4sh and not only
973         Autoconf-generated scripts.
974         (Special Shell Variables): Talk about M4sh and not only
975         Autoconf-generated scripts.  Don't talk about things that Autoconf
976         does not do.  Mention problems of $LINENO with shell functions.
977         (Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
978         discussion of eval bugs before discussion on proper use of eval.
979         Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
980         unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
981         * NEWS: Update list of documented M4sh macros.
983 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
985         Assume a (possibly buggy) `unset' is present after a
986         `better shell' was found.
987         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
988         * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
989         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
990         alias for AS_UNSET, for backwards compatibility.
991         (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
992         the shell does not support unset.
993         (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
994         (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
995         (AS_UNSET): Assume it is there but it might fail if the variable is
996         not set.  Use it throughout instead of $as_unset.
998 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
1000         Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
1001         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
1002         m4_require of _AS_DETECT_BETTER_SHELL.
1003         (_AS_CLEANUP): Add it here.
1004         (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
1005         to _AS_CLEANUP.
1006         (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
1007         (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
1008         (AS_PREPARE): Use _AS_SHELL_SANITIZE.
1009         (AS_INIT): Add m4_provide of itself.
1011 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
1013         Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
1014         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
1015         "test x$foo = xyes".
1017 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
1019         Trim down the size of the better-shell test.
1020         * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
1021         snippets into shell variables.
1022         (_AS_RUN): Rewrite.
1024 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
1026         Support a stack of LINENO values for AS_MESSAGE.
1027         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
1028         the line number emitted to the log file.
1029         (AS_LINENO_PUSH, AS_LINENO_POP): New.
1030         * tests/m4sh.at (LINENO Stack): New test.
1032 2008-10-14  Eric Blake  <ebb9@byu.net>
1034         Correct previous patch.
1035         * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
1036         all.
1038         Document shell function environment pitfall.
1039         * doc/autoconf.texi (Shell Functions): Document bugs in bash,
1040         Solaris /bin/sh.
1042 2008-10-14  Paolo Bonzini  <bonzini@gnu.org>
1044         Use m4_require to implement AS_REQUIRE.
1045         * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
1046         (m4_require): Pass it.
1047         (m4_divert_require): New.
1048         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
1049         Remove comment about differences with m4_require.
1050         * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
1051         the expected behavior.
1052         (Nested AS_REQUIRE_SHELL_FN): New test.
1054 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1056         Test AS_LINENO_PREPARE.
1057         * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
1059 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1061         Test AS_ME_PREPARE.
1062         * tests/m4sh.at (as_me): New test.
1064 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1066         Add and document AS_INIT_GENERATED.
1067         * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
1068         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
1069         * doc/autoconf.texi (Initialization macros): Document it.
1071 2008-10-13  Eric Blake  <ebb9@byu.net>
1073         Use consistent shell function style.
1074         * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
1075         (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
1076         functions.
1078 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1080         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
1081         contributors under m4 rather than shell comments.
1083 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
1085         * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
1086         * doc/autoconf.texi (Initialization macros): Document them.
1087         (Portable Shell): Refer to AS_LINENO_PREPARE.
1088         * NEWS: Mention them.
1090         * bin/autoconf.as: Invoke AS_ME_PREPARE.
1091         * lib/autotest/general.m4: Likewise.
1093 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
1095         * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
1097 2008-10-10  Eric Blake  <ebb9@byu.net>
1099         Fix _AS_MKDIR_P usage.
1100         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
1101         match implementation.
1102         (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
1103         * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
1104         wording to better match behavior.
1106 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
1108         * doc/autoconf.texi: Be less wary of shell functions.
1109         * NEWS: Document the increased use of shell functions.
1111 2008-10-10  Paolo Bonzini  <bonzini@gnu.org>
1113         * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
1114         meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
1115         (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
1116         (_AS_PREPARE): Define shell functions.
1117         (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
1118         Define shell functions.
1120 2008-10-09  Eric Blake  <ebb9@byu.net>
1122         Only prepare $as_me if it will be used.
1123         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
1124         preparation.
1125         (_AS_ECHO_LOG): Depend on $LINENO preparation.
1126         (AS_MESSAGE): Depend on $as_me preparation.
1127         (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
1129 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1131         * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
1132         until the M4SH-INIT diversion using _AS_ME_PREPARE.
1133         (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
1134         and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
1135         before _AS_LINENO_PREPARE.
1136         (AS_PREPARE): Include all the AS_REQUIREs manually.
1137         (_AS_ME_PREPARE): New.
1138         (_AS_LINENO_PREPARE): Use m4_defun.
1140 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1142         * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
1143         require _AS_EXPR_PREPARE.
1144         (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
1145         (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
1147 2008-10-08  Eric Blake  <ebb9@byu.net>
1149         Resync from gnulib.
1150         * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
1151         (fetch): ...into new target.
1152         (executable-update): Delete, now that it is unused.
1153         * maint.mk (update, local_updates, cvs_files, gnulib_repo)
1154         (wget-update, cvs-update): Likewise.
1155         * HACKING (Update the foreign files): Document new procedure.
1156         * GNUmakefile: Resync from upstream, via new 'make fetch'.
1157         * build-aux/config.guess: Likewise.
1159 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
1161         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
1162         (AS_INIT): Do not call it.
1164 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
1166         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
1167         _AS_UNSET_PREPARE in M4SH-SANITIZE.
1169 2008-10-08  Eric Blake  <ebb9@byu.net>
1171         Avoid repeating required shell tests in suggested set.
1172         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
1173         Use m4_set, rather than m4_expand_once/m4_append.
1174         (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
1175         required tests out of suggested tests.
1176         Reported by Paolo Bonzini.
1178 2008-10-08  Paolo Bonzini  <bonzini@gnu.org>
1180         Add m4sh keyword to all m4sh.at tests.
1181         * tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
1182         pastos.
1184 2008-10-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1186         Document AS_VERSION_COMPARE.
1187         * doc/autoconf.texi (Programming in M4sh): Document
1188         AS_VERSION_COMPARE.
1189         * NEWS: Update.
1191         Do not write to testsuite log fd before initialization.
1192         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
1193         Define fds only when initializing the log fd so early error
1194         messages do not try to write to it.
1195         * tests/autotest.at (Startup error messages): New test.
1196         * NEWS: Document this 2.63 regression.
1198 2008-10-07  Eric Blake  <ebb9@byu.net>
1200         Ensure _AS_CLEANUP is defined.
1201         * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
1202         * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
1204         Improve m4sh maintainability.
1205         * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
1206         code change.
1208         Fix m4 quoting in previous patch.
1209         * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
1210         name prior to invoking AS_REQUIRE.
1211         Reported by Ralf Wildenhues.
1213 2008-09-18  Paolo Bonzini  <bonzini@gnu.org>
1214         and Eric Blake  <ebb9@byu.net>
1216         Add a separate diversion for shell functions.
1217         * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
1218         (AS_REQUIRE): Accept diversion parameter.
1219         (AS_REQUIRE_SHELL_FN): Use it.
1221 2008-10-06  Eric Blake  <ebb9@byu.net>
1223         Add m4_default_quoted.
1224         * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
1225         (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
1226         * doc/autoconf.texi (Conditional constructs): Document it.
1227         * NEWS: Likewise.
1229         Fix build with case-insensitive make, again.
1230         * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
1231         Reported via Keith Marshall, originally by newthinker in
1232         <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
1234 2008-10-06  Bruno Haible  <bruno@clisp.org>
1236         Warn about /usr/ucb on Solaris.
1237         * doc/install.texi (Particular Systems): Recommend putting
1238         /usr/ucb late in PATH, if at all.
1240 2008-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1242         Fix more testsuite hang corner cases.
1243         * lib/autotest/general.m4: Use the serial code path if no test
1244         is to be run.
1245         * tests/autotest.at (parallel test execution): Test -j and -jN
1246         with `-k notmatched'.
1248 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1250         Fix hang with `testsuite -k notmatched'.
1251         * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
1252         to one.  Fixes hang with `-k notmatched'.
1254 2008-10-02  Eric Blake  <ebb9@byu.net>
1256         Document more binary file portability traps.
1257         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
1258         reader that NUL and sed don't always mix.
1259         <tr>: Mention Solaris /usr/ucb/tr bug with \0.
1261 2008-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1263         Implement parallel Autotest test execution: testsuite --jobs.
1264         * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
1265         (AT_INIT): <at_jobs>: New variable.
1266         Accept -j, -jN, --jobs[=N], document them in --help output.
1267         Implement parallel driver loop using a FIFO, enabled with --jobs
1268         and if mkfifo works; otherwise, fall back to sequential loop.
1269         (AT_SETUP): Store, do not output summary progress line if
1270         parallel.
1271         * tests/autotest.at (parallel test execution, parallel truth)
1272         (parallel fallacy, parallel skip): New tests.
1273         * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
1274         the mkfifo requirement, and that --errexit may cause concurrent
1275         jobs to finish.
1276         * NEWS: Update.
1278 2008-09-20  Eric Blake  <ebb9@byu.net>
1280         Fix sample isinf definition.
1281         * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
1282         first.
1283         * THANKS: Update.
1284         Reported by David Cournapeau.
1286 2008-09-16  Eric Blake  <ebb9@byu.net>
1288         Fix Erlang regression, introduced 2006-11-17.
1289         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
1290         caused by underquoting.
1291         * NEWS: Mention this fix.
1292         * THANKS: Update.
1293         Reported by BJ Terry.
1295 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1297         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
1299         Mention Solaris sh ':' redirection bug.
1300         * doc/autoconf.texi (File Descriptors): Redirecting ':'
1301         in a loop causes bogus optimization with Solaris sh.
1303 2008-09-10  Eric Blake  <ebb9@byu.net>
1305         Avoid testsuite bug when autom4te cache is disabled by user.
1306         * tests/tools.at (autoconf: forbidden tokens, basic): Enable
1307         cache, even if user normally disabled it.
1308         Reported by Bruno Haible.
1310         Avoid testsuite bug in presence of verbose config.site.
1311         * tests/base.at (Input/Output): Nullify config.site during test.
1312         Reported by Bob Friesenhahn.
1314 2008-09-09  Eric Blake  <ebb9@byu.net>
1316         Release Version 2.63.
1317         * NEWS: Mention the release.
1319         Formatting tweaks to the manual.
1320         * doc/autoconf.texi (Introduction, Systemology)
1321         (File System Conventions, Portable C and C++)
1322         (Floating Point Portability): Allow URLs to split as needed.
1323         (Indices): Add entries, to work around texinfo bug on indices that
1324         start too close to a page break.
1325         (Particular Functions): Mention ftello.
1326         (Introduction, Language Choice): Use @enddots at sentence end.
1328         Resync from gnulib.
1329         * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
1330         although for now, they are still manually sync'd.
1331         * build-aux/gnupload: Update.
1332         * build-aux/config.sub: Likewise.
1333         * GNUmakefile: Likewise.
1335 2008-09-06  Eric Blake  <ebb9@byu.net>
1337         Mention that Automake already supports VPATH.
1338         * doc/autoconf.texi (Build Directories): Details in this section
1339         only apply to users avoiding automake.
1340         * THANKS: Update.
1341         Reported by Matej Tyc.
1343         Relax tone when warning about cross-compiler names.
1344         * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
1345         with poorly named tools; the issue has been reported too many
1346         times in the last four years to pull support.
1347         * doc/autoconf.texi (Specifying Names, Generic Programs): Update
1348         documentation accordingly.
1349         * THANKS: Update.
1350         Reported by Josef Tran and others, wording suggested by Ralf
1351         Wildenhues.
1353 2008-09-01  Eric Blake  <ebb9@byu.net>
1355         Improve AC_C_BIGENDIAN.
1356         * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
1357         universal builds require a config header.
1358         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
1359         AH_HEADER at the last possible moment, so that users can use
1360         AC_CONFIG_HEADER after this macro.
1361         Reported by Stepan Kasal.
1363         Fix manual date information.
1364         * doc/autoconf.tex: UPDATED refers to the day the manual was
1365         built, not the release date of Autoconf.
1366         Based on a bison patch by Akim Demaille.
1368 2008-08-27  Eric Blake  <ebb9@byu.net>
1370         Fix off-by-one bug in _m4_shiftn.
1371         * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
1372         all arguments.
1373         * tests/m4sugar.at (M4 loops): Test it.
1374         Reported by Akim Demaille.
1376 2008-08-26  Eric Blake  <ebb9@byu.net>
1378         Improve INSTALL formatting.
1379         * doc/install.texi [!autoconf]: Ensure first paragraphs are
1380         indented like all others in a plain text rendering.
1381         * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
1382         Reported by Bruno Haible.
1384 2008-08-26  Stepan Kasal  <skasal@redhat.com>
1386         Check for case sensitive make.
1387         * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
1388         * configure.ac: ... called here.
1389         * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
1390         ($(srcdir)/INSTALL): ...this, but enclose the rule in
1391         "if MAKE_CASE_SENSITIVE".
1393 2008-08-26  Eric Blake  <ebb9@byu.net>
1395         Update invocation documentation.
1396         * doc/autoconf.texi (autoscan Invocation): Mention --debug.
1397         (autoreconf Invocation): Mention -v.
1398         (autom4te Invocation): Tie --freeze to -F, not -f.
1399         (autoupdate Invocation): Mention --prepend-include.
1400         * doc/install.texi (configure Invocation): Mention --help=short,
1401         --help=recursive, -n/--no-create, --prefix.  Avoid TABs.
1402         * bin/autoscan.in ($help): Omit space before `...'.
1403         * bin/ifnames.in ($help): Likewise.
1404         * bin/autoconf.as (Usage): Likewise.
1405         * bin/autoreconf.in ($help): Likewise.
1406         * bin/autoheader.in ($help): Likewise.
1407         * bin/autom4te.in ($help): Likewise.
1408         * bin/autoupdate.in ($help): Likewise.
1409         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
1410         `[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
1411         --file correctly.
1413         Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
1414         * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
1415         (files_to_options): Avoid inheriting __m4_version__ from frozen
1416         file if current M4 does not support it.
1418 2008-08-25  Eric Blake  <ebb9@byu.net>
1420         Adjust to recent m4 1.6 change to support m4_debugmode(d).
1421         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
1422         freeze-time decision of using faster 1.6 implementation...
1423         (m4_init): ...to a runtime decision, and add use of new debugmode
1424         flag.
1426 2008-08-22  Peter O'Gorman  <pogma@thewrittenword.com>
1428         Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
1429         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
1430         __APPLE_CC__ with possible -arch flags.
1431         * NEWS: Document it.
1433 2008-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1435         * NEWS: Fix typo.
1437 2008-08-22  Eric Blake  <ebb9@byu.net>
1439         * TODO: Add an item for additional m4sugar looping constructs.
1440         Suggested by Ralf Wildenhues.
1442         Add reminder to keep dual implementations in sync.
1443         * lib/m4sugar/m4sugar.m4: Add comments.
1444         * lib/m4sugar/foreach.m4: Likewise.
1445         Suggested by Ralf Wildenhues.
1447 2008-08-22  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
1449         Format warning and error messages to match GCS.
1450         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
1451         (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
1452         messages with a lowercase letter, end them without punctuation.
1453         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
1454         * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
1455         * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
1456         Likewise.
1457         * tests/fortran.at (GNU Fortran): Likewise.
1458         * tests/torture.at (Deep Package): Likewise.
1460 2008-08-21  Eric Blake  <ebb9@byu.net>
1462         Avoid extra side effects in m4sugar list expansion.
1463         * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
1464         around...
1465         (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
1466         duplicate side effects.
1467         (m4_version_compare): Adjust caller.
1468         * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
1469         (_m4_list_cmp_raw): ...to match m4sugar.
1470         * doc/autoconf.texi (Looping constructs): Document the behavior of
1471         side effects.
1472         * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
1473         Ensure only one side effect.
1474         (recursion): Fix test typo.
1475         Reported by Ralf Wildenhues.
1477 2008-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1479         * TODO: Add item for compiler default flags.
1480         Suggested by Bruno Haible.
1482         * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
1483         back to 1000.
1485 2008-08-21  Eric Blake  <ebb9@byu.net>
1487         Formatting improvements.
1488         * doc/autoconf.texi: Use @file and @command, rather than @code,
1489         where appropriate.
1491         Document another make bug.
1492         * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
1493         make, GNU make <= 3.80.
1495         Tweak wording about SHELL in Makefile.
1496         * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
1497         the importance of proper SHELL settings.
1498         Reported by Bruno Haible, in
1499         http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
1501 2008-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1503         Avoid timestamp races for updated input.
1504         * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
1505         second script.
1506         * tests/tools.at (autotools and whitespace in file names): Add
1507         --force for repeated invocations.
1509 2008-08-20  Bruno Haible  <bruno@clisp.org>
1511         Add section to INSTALL about particular systems.
1512         * doc/install.texi (Particular systems): New node.
1513         * doc/autoconf.texi: Adjust menus.
1515 2008-08-19  Bruno Haible  <bruno@clisp.org>
1516         and Peter O'Gorman  <peter@pogma.com>
1518         Mention universal binaries in INSTALL.
1519         * doc/install.texi (Compiling For Multiple Architectures): Explain
1520         how to create universal binaries on MacOS X.
1522 2008-08-19  Jim Meyering  <jim@meyering.net>
1523             Eric Blake  <ebb9@byu.net>
1524             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1526         Avoid shell parse errors after interrupt due to empty ``.
1527         * doc/autoconf.texi (Shell Substitutions): Document the issue.
1528         * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
1529         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
1530         "test AS_VAR_GET([...]) = yes"
1531         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
1532         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
1533         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
1534         (_AC_CHECK_HEADER_DIRENT): Likewise.
1535         * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1536         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1537         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
1538         temporary variable to work around the issue.
1539         * tests/foreign.at (Libtool): Quote result of command
1540         substitution.
1542 2008-08-18  Eric Blake  <ebb9@byu.net>
1544         Test m4_transform without tickling shell bugs.
1545         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
1546         something more manageable.
1547         * tests/m4sugar.at (recursion): Move stress test of
1548         m4_transform_pair here.
1549         Reported by Ralf Wildenhues.
1551         Let 'git diff' give better context for doc updates.
1552         * .gitattributes (*.texi*): Add new entry.
1553         * README-hacking: Mention how to use it.
1554         Inspired by a coreutils patch by Jim Meyering.
1556 2008-08-15  Eric Blake  <ebb9@byu.net>
1558         Fix m4_map regression from 2007-10-16.
1559         * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
1560         (m4_map): Ignore empty sublists.  For a list consisting of only an
1561         empty sublist, this restores 2.61 behavior of being a no-op.
1562         (m4_map_sep): Likewise, and expand separator.
1563         (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
1564         (_m4_map): Rewrite, to be common base for all four variants.
1565         * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
1566         * tests/m4sugar.at (m4@&t@_map): Add tests.
1567         * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
1568         macros, and mention ramifications of expanded separator.
1569         * NEWS: Mention the change.
1571 2008-08-14  Eric Blake  <ebb9@byu.net>
1573         Implement m4_transform_pair, to speed up AS_IF.
1574         * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
1575         macros, undocumented for now.
1576         * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
1577         the m4 1.4.x counterparts.
1578         * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
1579         * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
1581 2008-08-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1583         * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
1584         (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
1585         warn about previous AC_CANONICAL_TARGET.
1586         (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
1587         unusable in the non-cross-compiling case.
1588         * NEWS, THANKS: Update.
1589         Report by Dave Erickson.
1591 2008-08-12  Eric Blake  <ebb9@byu.net>
1593         Optimize m4_bmatch.
1594         * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
1595         implementation for m4 1.4.x.
1596         * tests/m4sugar.at (m4@&t@_bmatch): New test.
1597         (recursion): Test the linear nature.
1598         * NEWS: Document the fix.
1600         Fix m4_cond corner case.
1601         * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
1602         implementation allows concatenation with subsequent text.
1603         * tests/m4sugar.at (m4@&t@_cond): Enhance test.
1605         Add test for m4_cond.
1606         * tests/m4sugar.at (m4@&t@_cond): New test.
1607         Reported by Ralf Wildenhues.
1609 2008-08-06  Eric Blake  <ebb9@byu.net>
1611         Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
1612         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
1613         unique key for the AH_VERBATIM.
1614         * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
1615         * NEWS: Mention the fix.
1616         Reported by Andreas Schwab, analyzed by Stepan Kasal.
1618         Add linear m4_cond for m4 1.4.x.
1619         * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
1620         (_m4_cond): ...this, for fewer macros per iteration.
1621         * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
1622         * tests/m4sugar.at (recursion): Test it.
1623         * NEWS: Document the linear guarantee.
1625         Speed up diversion handling.
1626         * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
1627         (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
1628         expansions.
1630         AC_C_CHAR_UNSIGNED is not strictly necessary.
1631         * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
1632         portable alternative to this macro.
1633         * THANKS: Update.
1634         Reported by Hallvard B Furuseth.
1636         Update some files from upstream.
1637         * GNUmakefile: Update.
1638         * build-aux/announce-gen: Likewise.
1639         * build-aux/config.guess: Likewise.
1640         * build-aux/config.sub: Likewise.
1641         * build-aux/git-version-gen: Likewise.
1642         * build-aux/texinfo.tex: Likewise.
1643         * build-aux/vc-list-files: Likewise.
1644         * doc/make-stds.texi: Likewise.
1645         * doc/standards.texi: Likewise.
1647 2008-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1649         Fix AC_CONFIG_FILES([$var]) 2.62 regression.
1650         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
1651         whitespace in $ac_config_files and $ac_config_headers.
1652         * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
1653         Report by Andreas Schwab and Per Ã˜yvind Karlsen.
1654         * THANKS: Update.
1656 2008-07-30  Eric Blake  <ebb9@byu.net>
1658         Fix bugs in previous version of m4_bpatsubsts.
1659         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
1660         allow concatenation with subsequent text.
1661         * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
1663 2008-07-29  Eric Blake  <ebb9@byu.net>
1665         Add linear m4_bpatsubsts for m4 1.4.x.
1666         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
1667         about anchors, even for only one substitution.
1668         * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
1669         * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
1670         Clarify behavior with regard to quoting.
1671         * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
1672         (m4@&t@_bpatsubsts): New test.
1673         * NEWS: Document the linear guarantee.
1675         Tweak m4_do semantics.
1676         * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
1677         subsequent text.
1678         * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
1679         arguments, and avoid infinite loop.
1680         * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
1681         behavior.
1682         * tests/m4sugar.at (m4@&t@_do): New test.
1684         Optimize m4_for.
1685         * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
1686         (_m4_for): Take additional parameter, for fewer m4_indir calls.
1687         * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
1688         (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
1689         * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
1690         semantic change caused by the optimization.
1691         * tests/m4sugar.at (M4 loops): Test the new semantics.
1693         One more m4_list_cmp tweak.
1694         * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
1695         * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
1696         * tests/m4sugar.at (recursion): Test both directions of list
1697         disparity.
1699         Add m4_reverse, and improve m4_list_cmp.
1700         * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
1701         (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
1702         m4_reverse'd list.
1703         * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
1704         counterpart.
1705         * tests/m4sugar.at (recursion): Test it.
1706         * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
1707         it.
1708         (Text processing Macros) <m4_append>: Cross-reference to m4_set.
1709         * NEWS: Mention new macro.
1711 2008-07-28  Eric Blake  <ebb9@byu.net>
1713         Avoid _m4_shiftn for m4 1.6 speedup.
1714         * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
1715         (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
1716         * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
1718         Implement O(n) unique element set creation.
1719         * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
1720         (m4_set_contains, m4_set_contents, m4_set_delete)
1721         (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
1722         (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
1723         (m4_set_size, m4_set_union): New macros.
1724         * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
1725         m4 1.4.x.
1726         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
1727         new m4_set API for the set most likely to be large.
1728         * doc/autoconf.texi (Set manipulation Macros): New node.
1729         * NEWS: Mention new macros.
1730         * tests/m4sugar.at (m4@&t@_set): New test.
1732 2008-07-25  Eric Blake  <ebb9@byu.net>
1734         Avoid infinite aclocal loop.
1735         * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
1736         that aclocal doesn't insist on finding m4sugar/foreach.m4.
1738         Provide O(n) replacement macros for M4 1.4.x.
1739         * lib/m4sugar/foreach.m4: New file.
1740         (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
1741         (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
1742         macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
1743         1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
1744         linear on 1.4.x].
1745         * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
1746         older M4 is assumed.
1747         (m4_map_sep): Optimize.
1748         (m4_max, m4_min): Refactor, by adding...
1749         (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
1750         (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
1751         * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
1752         file.
1753         * tests/m4sugar.at (M4 loops): Add a stress test that takes
1754         forever if m4_foreach and friends are quadratic.
1755         * NEWS: Mention this.
1757 2008-07-21  Eric Blake  <ebb9@byu.net>
1759         Ignore undefined macros, necessary with m4 1.6.
1760         * bin/autoupdate.in (_au___undefine): New macro,...
1761         (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
1762         Reported by Ralf Wildenhues.
1764         Resync with gnulib.
1765         * GNUmakefile: Grab from upstream, to fix issue where 'make
1766         install' would allow installation of stale version string.
1768 2008-07-19  Eric Blake  <ebb9@byu.net>
1770         Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
1771         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
1772         through all variables, per POSIX and newer m4.
1773         (_m4_text_wrap): Exploit the looping capabilities.
1774         * tests/m4sugar.at (m4@&t@_defn): Test this.
1775         * NEWS: Document it.
1776         * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
1777         <m4_undefine>: Likewise.
1779         Reduce overhead of m4_builtin([defn]).
1780         * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
1781         internal macros, which are slightly more efficient than
1782         m4_builtin([defn]) and company.
1783         (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
1784         (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
1785         (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
1786         (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
1787         (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
1788         (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
1789         (m4_version_prereq): Use them.
1791         Use warnings from m4 when available.
1792         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
1793         define slower wrapper if m4 will warn on our behalf; key off of
1794         __m4_version__, added alongside the new warnings in m4 1.6.
1795         * tests/m4sugar.at (m4@&t@_defn): New test.
1797 2008-07-18  Eric Blake  <ebb9@byu.net>
1799         Add m4_joinall.
1800         * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
1801         * tests/m4sugar.at (m4@&t@_join): Test them.
1802         * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
1803         m4_joinall.
1804         * NEWS: Likewise.
1806 2008-07-17  Stepan Kasal  <skasal@redhat.com>
1807         and Eric Blake  <ebb9@byu.net>
1809         Improve documentation of config.h.in template rules.
1810         * doc/autoconf.texi (Header Templates): Mention rules on comments
1811         and whitespace, and that the user cannot rely on #undef to survive
1812         through config.status.
1814 2008-07-16  Eric Blake  <ebb9@byu.net>
1816         Revert m4_prepend; it is less efficient, and unused by bison.
1817         * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
1818         (m4_prepend_uniq_w): Delete addition from 2008-07-11.
1819         (_m4_grow_uniq_1): Rename back...
1820         (_m4_append_uniq): ...to this.
1821         * NEWS: Revert NEWS blurb.
1822         * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
1823         * tests/m4sugar.at (m4@&t@_prepend): Delete.
1825 2008-07-15  Eric Blake  <ebb9@byu.net>
1827         Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
1828         * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
1829         definition for non-Autoconf clients of m4sugar.
1831 2008-07-14  Eric Blake  <ebb9@byu.net>
1833         Tighten bound of potential speed of m4_append.
1834         * doc/autoconf.texi (Text processing Macros) <m4_append>
1835         <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
1836         O(n log n).
1837         * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
1838         Analysis by Bruno Haible.
1840 2008-07-11  Eric Blake  <ebb9@byu.net>
1842         Inherit improvements from bison's fork of m4sugar.
1843         * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
1844         find version.texi, since bison does not provide it.
1845         (m4_prepend): Add new macro, from bison.
1846         (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
1847         completeness.
1848         (_m4_append_uniq): Rename...
1849         (_m4_grow_uniq_1): ...to this to share implementation, and
1850         optimize initial assignment.
1851         (m4_append_uniq_w): Adjust caller.
1852         * NEWS: Document new macros.
1853         * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
1854         speed consideration.
1855         <m4_prepend>: Document the new prepend variants.
1856         * tests/m4sugar.at (m4@&t@_prepend): New test.
1858         Work around M4 1.6 warning on undefined macros.
1859         * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
1860         not already available as builtins.
1862 2008-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1864         * doc/autoconf.texi (@dvar): Remove trailing newline.
1865         (@ovar): Likewise.  Fix macro documentation.
1867 2008-07-02  Stepan Kasal  <skasal@redhat.com>
1869         Add quotes to the header of autoscan-generated source.
1870         * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
1872 2008-06-28  Andreas Schwab  <schwab@suse.de>
1874         * doc/autoconf.texi (autoscan Invocation): Fix spacing.
1875         (autoconf Invocation): Likewise.
1876         (autoreconf Invocation): Likewise.
1877         (autoheader Invocation): Likewise.
1878         (autom4te Invocation): Likewise.
1880 2008-06-19  Eric Blake  <ebb9@byu.net>
1882         Add comment explaining recent patch.
1883         * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
1884         of * vs. ? globbing.
1886 2008-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1888         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
1889         linking a file to itself.
1890         Report by Bruno Haible.
1892 2008-06-19  Eric Blake  <ebb9@byu.net>
1894         Resync with gnulib.
1895         * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
1896         Reported by Stepan Kasal.
1898 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1900         Reorganize autotest files, factorize for parallel execution.
1901         * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
1902         earlier in the file.
1903         (AT_INIT): Create line number cache in
1904         $at_suite_dir/at-source-lines.
1905         <at_helper_dir>: New directory at-groups below $at_suite_dir.
1906         Add comment explaining the new directory structure.
1907         (at_func_group_prepare, at_func_group_postprocess): New shell
1908         functions to factorize per-test group work.  Keep the actual
1909         test execution outside of a shell function in order to avoid
1910         zsh 4.x exit status bugs.
1911         <at_check_line_file, at_status_file, at_stdout, at_stder1>
1912         <at_stderr, at_test_source>: Turn these into per-group files
1913         below $at_helper_dir.  Also store test results there in files
1914         named pass, fail, xpass, xfail, skip.  Let the parent collect
1915         results from $at_helper_dir.  Adjust summary statistics
1916         computation and result output.
1918 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1920         Fix '#undef variable /* comment */' transform in config headers.
1921         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
1922         undefined preprocessor macros that are followed by a comment
1923         in the header template, do not create nested comments in the
1924         output.
1925         * tests/torture.at (@%:@define header templates): Extend test.
1926         * NEWS: Update.
1927         Report by Karsten Hopp <karsten@redhat.com>.
1929 2008-06-09  Eric Blake  <ebb9@byu.net>
1931         Mark AC_TYPE_SIGNAL as obsolete.
1932         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
1933         * doc/autoconf.texi (Function Portability): Update documentation.
1934         (Particular Types): Move AC_TYPE_SIGNAL...
1935         (Obsolete Macros): ...here, and mention why.
1936         * NEWS: Mention the change.
1938         Allow lib64 as a default X library location.
1939         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
1940         * NEWS: Mention the change.
1941         * THANKS: Update.
1942         Reported by Brad Walker.
1944 2008-06-05  Eric Blake  <ebb9@byu.net>
1946         Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
1947         * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
1948         converting it to lower case.
1949         * tests/autotest.at (Keywords and ranges): Test this.
1950         * NEWS: Document the fix.
1951         * THANKS: Update.
1952         Reported via Karsten Hopp, by Jochen Schmitt in
1953         https://bugzilla.redhat.com/show_bug.cgi?id=449973
1955 2008-06-03  Eric Blake  <ebb9@byu.net>
1957         Fix 'make dist' regression from 2008-05-08.
1958         * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
1959         GNUmakefile's _autoconf rule removes INSTALL.
1961 2008-05-27  Eric Blake  <ebb9@byu.net>
1963         Document Solaris /bin/sh redirection pitfall.
1964         * doc/autoconf.texi (File Descriptors): Mention redirection bug.
1966 2008-05-14  Eric Blake  <ebb9@byu.net>
1968         Improve documentation of ! issues.
1969         * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
1970         Reported by Noah Misch.
1972         Document some FreeBSD shell bugs.
1973         * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
1974         in compound pipe commands.
1975         <export>: Mention difference of exporting an undefined variable.
1976         (Shell Functions): Mention loss of $? in entry to shell functions.
1977         Extracted from the git mailing list.
1979 2008-05-13  Stepan Kasal  <kasal@ucw.cz>
1981         Work around MSYS and Cygwin bugs when dealing with trailing space.
1982         * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
1983         even when platform bugs are tickled.
1984         Reported by Keith Marshall and Eric Blake.
1986 2008-05-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1988         Let AC_MSG_FAILURE report pwd.
1989         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
1990         Output $ac_pwd along with fatal failure.
1991         * tests/torture.at (Deep Package): Extend test.
1992         Reported numerous times against GCC, and probably other packages.
1994 2008-05-12  Eric Blake  <ebb9@byu.net>
1996         Enforce --help and --version compliance.
1997         * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
1999 2008-05-08  Keith Marshall  <keithmarshall@users.sourceforge.net>  (tiny change)
2001         Avoid case-insensitive `make install' vs. `INSTALL' conflict.
2002         * Makefile.am ($(srcdir)/INSTALL): Replace all references...
2003         ($(abs_srcdir)/INSTALL): ...with this.
2005 2008-05-06  Eric Blake  <ebb9@byu.net>
2007         Fix typo.
2008         * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
2010         Avoid overfull \hbox.
2011         * doc/autoconf.texi (Versioning): Reword to fit line size.
2013         Document $(( )) pitfalls.
2014         * doc/autoconf.texi (Shell Substitutions): Mention octal
2015         vs. decimal.  Mention autotest's at_func_arith.
2017         Improve behavior of './testsuite 01'.
2018         * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
2019         Alter usage to eval its arguments, in order to normalize away
2020         leading zero.  All callers updated.
2021         * tests/autotest.at (Keywords and ranges): Test range
2022         normalization with leading 0.
2024 2008-04-26  Eric Blake  <ebb9@byu.net>
2026         Mention Solaris /usr/ucb/tr pitfall.
2027         * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
2028         Reported by Bruno Haible and Jim Meyering.
2030 2008-04-24  Eric Blake  <ebb9@byu.net>
2032         Mention m4sugar's internal quote strings.
2033         * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
2034         in m4sugar, and how to still output it literally.
2035         * tests/m4sugar.at (m4@&t@_split): And test it.
2036         Reported by Joel E. Denny.
2038 2008-04-23  Eric Blake  <ebb9@byu.net>
2040         Allow unbalanced () in m4_expand.
2041         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
2042         quotes.
2043         (m4_noquote, _m4_split): Use consistent complex quote.
2044         * tests/autotest.at (Left paren, Right paren): Test this.
2045         (Parentheses): Ensure new quadrigraphs still work.
2046         (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
2047         * NEWS: Mention the fix.
2048         * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
2049         require quadrigraphs for ().
2050         (Evaluation Macros) <m4_expand>: Relax the restriction against
2051         unbalanced ().
2052         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2053         (Writing Testsuites) <AT_SETUP>: Likewise.
2054         Reported by Joel E. Denny, fix suggested by Noah Misch.
2056 2008-04-22  Eric Blake  <ebb9@byu.net>
2058         Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
2059         * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
2060         (handle_traces): Likewise.
2061         * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
2062         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
2063         * doc/autoconf.texi (Quadrigraphs): Document them.
2064         (Evaluation Macros) <m4_expand>: Enhance documentation.
2065         (Text processing Macros) <m4_text_box>: Document cases where
2066         quadrigraphs can help for problemetic unbalanced parentheses.
2067         (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2068         (Writing Testsuites) <AT_SETUP>: Likewise.
2069         (Limitations of Builtins) <case>: Consolidate text on unbalanced
2070         parentheses, and add an example of creative comments.
2071         * NEWS: Document the addition.
2072         Reported by Joel E. Denny.
2074 2008-04-16  Eric Blake  <ebb9@byu.net>
2076         Document pdksh exec behavior.
2077         * doc/autoconf.texi (Limitations of Builtins) <exec>: New
2078         subsection.
2079         Discovered by Jim Meyering.
2081 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2083         * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
2084         arguments to the inner suite.
2085         (errexit, input from stdin): New tests.
2087 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2089         * NEWS: Post-release update.
2091 2008-04-10  Eric Blake  <ebb9@byu.net>
2093         AC_AUTOCONF_VERSION might contain arbitrary macro names.
2094         * doc/autoconf.texi (Versioning): Mention problem with expansion.
2095         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
2097 2008-04-09  Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de>  (tiny change)
2099         Flush buffered output before exit.
2100         * bin/autom4te.in (handle_output): Explicitly close file.
2101         * THANKS: Update.
2102         See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
2104 2008-04-08  Eric Blake  <ebb9@byu.net>
2106         Generate web docs for 2.62.
2107         * doc/autoconf.texi (Evaluation Macros): Fix typo.
2108         (Notices): Use recommended means to escape RCS keyword.
2109         * cfg.mk (gnulib_dir): New macro.
2110         (web-manual): New target.
2112 2008-04-05  Eric Blake  <ebb9@byu.net>
2114         Release Version 2.62.
2115         * NEWS: Mention the release.
2117 2008-04-04  Stepan Kasal  <kasal@ucw.cz>
2118         and Eric Blake  <ebb9@byu.net>
2120         Return back to GPLv2+, until the text of the exceptions is
2121         finalized, reverting the change from 2007-07-03 and the first
2122         part of the change from 2007-07-20.
2123         * COPYING: Revert to GPLv2.
2124         * COPYINGv3: New file, since some auxiliary build tools, used for
2125         building autoconf and not installed, are GPLv3.
2126         * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
2127         * NEWS: Remove mention of GPLv3.
2128         * README: Clarify situation regarding GPLv3.
2130 2008-04-05  Eric Blake  <ebb9@byu.net>
2132         Prepare for release.
2133         * maint.mk (announcement): Avoid deleted option.
2134         * cfg.mk (release_archive_dir): Use default.
2135         * build-aux/gnupload: New file, from automake/gnulib.
2136         * Makefile.am (EXTRA_DIST): Distribute it.
2137         * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
2138         from syntax check.
2140 2008-04-05  Jim Meyering  <meyering@redhat.com>
2141         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2143         Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
2144         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
2145         is the EOL marker, skip a step that would remove and translate
2146         carriage return bytes.
2147         * THANKS: Update.
2148         Reported by Elbert Pol.
2150 2008-04-05  Eric Blake  <ebb9@byu.net>
2152         Avoid some autoreconf -Wall warnings.
2153         * configure.ac: Use proper quoting, to be a good example.
2154         (PACKAGE_NAME): Remove setting covered by autoconf.
2155         (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
2156         * doc/Makefile.am (TEXI2DVI): Remove settings covered by
2157         automake.
2158         (html, autoconf_1.html, standards_1.html): Likewise.
2159         (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
2160         * Makefile.am (html): Likewise.
2161         * doc/autoconf.texi (Quoting and Parameters): Add missing section
2162         name.
2163         * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
2164         warning about our override, until Automake is fixed.
2165         * README-hacking: Document minimum requirements for bootstrap.
2167 2008-04-03  Eric Blake  <ebb9@byu.net>
2169         Fix version number generation in man pages.
2170         * Makefile.am (EXTRA_DIST): Distribute .version.
2171         (.version): New rule.
2172         * man/Makefile.am (common_dep): Depend on .version, not
2173         configure.ac.
2174         (.x.1): Use package name for version string.
2175         * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
2176         * build-aux/git-version-gen: Sync from upstream.
2178         More maintainer tweaks: pass 'make maintainer-distcheck'.
2179         * GNUmakefile (_is-dist-target): Sync from upstream.
2180         * build-aux/vc-list-files: Sync from upstream, yet again.
2181         * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
2182         * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
2183         package.m4.
2184         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
2186         Fix VPATH 'make syntax-check'.
2187         * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
2188         (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
2189         (author_mark_check): Avoid error message.
2190         * build-aux/vc-list-files: Sync from upstream again.
2191         * build-aux/texinfo.tex: Likewise.
2193         Sync files from upstream, and pass 'make syntax-check'.
2194         * config/announce-gen: Move...
2195         * build-aux/announce-gen: ...here, and sync from gnulib.
2196         * Makefile.am (EXTRA_DIST): Adjust accordingly.
2197         * cfg.mk (announce_gen): Likewise.
2198         (prev_version_file): Delete, relying on default in maint.mk.
2199         (gpg_key_ID): New macro.
2200         (url_dir_list): Rewrite to match coreutils.
2201         * config/prev-version.txt: Move...
2202         * .prev-version: ...here, and adjust to 2.61.
2203         * build-aux/vc-list-files: Sync from coreutils.
2204         * maint.mk: Resynchronize with coreutils, where possible.
2205         (ME): Remove $(srcdir) from definition.
2206         (CVS): Delete.
2207         (GIT, VC, VC-tag): New macros.
2208         (CVS_LIST, CVS_LIST_EXCEPT): Rename...
2209         (VC_LIST, VC_LIST_EXCEPT): ...to this.
2210         (cvs-tag-check): Delete.
2211         (cvs-diff-check): Rename...
2212         (vc-diff-check): ...to this.
2213         (sc_file_system): Allow FHS acronym.
2214         * doc/autoconf.texi (Particular Functions): Recommend
2215         unconditional <config.h>.
2216         * build-aux/config.guess: Sync from upstream (manually).
2217         * build-aux/config.sub: Likewise.
2218         * build-aux/texinfo.tex: Likewise.
2219         * doc/make-stds.texi: Likewise.
2220         * doc/standards.texi: Likewise.
2221         * .gitattributes: Ignore whitespace problems in upstream files.
2223 2008-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2225         * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
2226         bug on HP-UX/IA.
2227         Report by Peter O'Gorman.
2229 2008-04-02  Eric Blake  <ebb9@byu.net>
2231         Recommend the just-released M4 1.4.11.
2232         * NEWS: Update recommendation.
2233         * README: Likewise.
2234         * doc/autoconf.texi (Introduction): Likewise.
2235         * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
2237 2008-04-01  Eric Blake  <ebb9@byu.net>
2239         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
2240         copyright year.
2242 2008-03-28  Peter O'Gorman  <peter@pogma.com>
2244         Find X11 on Mac OS X too.
2245         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
2246         Check for libX11 with extensions dylib la and dll too.
2247         * THANKS: Update.
2248         Reported by Martin Costabel.
2250 2008-03-28  Eric Blake  <ebb9@byu.net>
2252         Update TODO based on completed tasks.
2253         * TODO (AC_PROG_INSTALL takes multiple files): Done.
2254         (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
2255         (AC_COMPILE_IFELSE documentation): Done.
2256         (Tracing builtins): Done, now that we require M4 1.4.5.
2257         (AC_PROG_CC_POSIX suggestion, providing header files)
2258         (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
2259         (cache consistency): Done with precious variables.
2261 2008-03-26  Eric Blake  <ebb9@byu.net>
2263         Document --trace=macro:format in --help output.
2264         * bin/autom4te.in (help): Mention optional trace format.
2265         * bin/autoconf.as (usage): Likewise.
2267         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
2268         typos in last patch.
2269         Reported by Ralf Wildenhues.
2271 2008-03-26  Jim Meyering  <meyering@redhat.com>
2273         Fix texinfo syntax error.
2274         * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
2276 2008-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2278         Warn, not fail on whitespace-only precious variable differences.
2279         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
2280         precious variable differences less ambiguous with `ugly-quotes'.
2281         If their settings differ only in whitespace, do not fail, but
2282         reuse the old value.
2283         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
2284         an optional status and expected-warning argument.  Fix m4
2285         quotation for initial value.
2286         (AC_ARG_VAR): Also test for whitespace-only differences, and
2287         that the old value is retained in this case.
2288         * doc/autoconf.texi (Setting Output Variables): Document this.
2289         * NEWS: Update.
2290         Report and initial patch by Paolo Bonzini.
2292 2008-03-26  Eric Blake  <ebb9@byu.net>
2294         Document busybox sed bug.
2295         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
2296         restrictions when using back-references.
2297         Reported by Vincent Lefevre:
2298         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
2300         Document Automake interaction with AC_CONFIG_MACRO_DIR.
2301         * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
2302         users.
2303         * THANKS: Update.
2304         Reported by Chris Pickett.
2306 2008-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2308         * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
2310         * tests/local.at (AT_CHECK_M4): Factorize warning output
2311         normalization.
2312         Suggested by Eric Blake.
2314 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2316         Fix .exe-related test failure on MinGW.
2317         * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
2318         for comparing warning output.
2320         Fix Fortran testsuite failures with gfortran 4.3.
2321         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
2322         verbose compiler output, skip lines that set variables; gfortran
2323         4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
2324         * THANKS: Update.
2325         Report by Vincent Lefèvre.
2327 2008-03-21  Eric Blake  <ebb9@byu.net>
2329         * GNUmakefile: Resynchronize with gnulib.
2331         Document more uses of $cross_compiling.
2332         * doc/autoconf.texi (Runtime): Document that a temporary override
2333         is permissible.
2334         * THANKS: Update.
2335         Reported by Ineiev, example by Ralf Wildenhues.
2337         Don't swallow $1 in textual local variables.
2338         * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
2339         expansion of text arguments, as that swallows $1.
2340         (m4_text_wrap): Likewise, by splitting out...
2341         (_m4_text_wrap): ...new helper macro.  Also, allow arbitrary
2342         expression for width.
2343         * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
2344         (m4@&t@_combine): Likewise.
2346 2008-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2348         Avoid leftover files on Leopard.
2349         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
2350         directory created on darwin.
2351         (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
2352         left over from a broken link.
2353         * tests/c.at (AC_NO_EXECUTABLES (working linker))
2354         (AC_NO_EXECUTABLES (broken linker)): New tests.
2355         Report by Gary V. Vaughan.
2357         * lib/autom4te.in (Automake-preselections): Trace
2358         _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
2360 2008-03-20  Eric Blake  <ebb9@byu.net>
2362         Kill more CVS references.
2363         * README-cvs: Delete.  See README-hacking instead.
2364         * README-hacking: Update wording, based on older file.
2365         * BUGS: Remove CVS mention.
2367 2008-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2369         * tests/tools.at (autotools and whitespace in file names): Skip
2370         if aclocal is not present.
2372 2008-03-20  Eric Blake  <ebb9@byu.net>
2374         Sync GNUmakefile with gnulib.
2375         * GNUmakefile (Makefile.cfg): Rename...
2376         (cfg.mk): ...to this, and make optional.
2377         (GNUmakefile.cfg): Delete, redundant with cfg.mk.
2378         (Makefile.maint): Rename...
2379         (maint.mk): ...to this.
2380         (all) [!_have-Makefile]: Rename...
2381         (abort-due-to-no-makefile): ...to this, and invoke via
2382         .DEFAULT_GOAL to pick up all targets.
2383         * Makefile.cfg: Rename...
2384         * cfg.mk: ...to this.
2385         * Makefile.maint: Rename...
2386         * maint.mk ...to this.
2387         (ME): Reflect name change.
2388         (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
2389         rather than hard-coded name.
2390         * GNUmakefile.cfg: Delete; move rules into cfg.mk.
2391         * Makefile.am (EXTRA_DIST): Reflect file name changes.
2392         * .x-sc_prohibit_atoi_atof: Likewise.
2393         * lib/freeze.mk: Likewise.
2395 2008-03-19  Stepan Kasal  <kasal@ucw.cz>
2397         * doc/autoconf.texi (Introduction): Improve the paraphrase of
2398         Henry Spencer's quotation.
2400 2008-03-19  Eric Blake  <ebb9@byu.net>
2402         AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
2403         * bin/autoscan.in (output): Avoid obsolete spelling.
2404         * tests/local.at (AC_STATE_SAVE): Update usage.
2405         * THANKS: Update.
2406         Reported by John Calcote.
2408         Emphasize that ease of configure triumphs over ease of autoconf.
2409         * doc/autoconf.texi (Introduction): Expand on primary
2410         vs. secondary goal of autoconf.
2411         * THANKS: Update.
2412         Inspired by Paul Smith.
2414 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2416         * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
2417         $hint, show if the executing program does not exist.
2418         (xsystem_hint): New function, like xsystem but allows to pass
2419         a hint.
2420         * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
2421         libtoolize.
2422         Report by Bruce Korb.
2424 2008-03-14  Stepan Kasal  <kasal@ucw.cz>
2426         * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
2427         tests/mktests.sh, tests/wrapper.as: Fix typos.
2429 2008-03-12  Eric Blake  <ebb9@byu.net>
2431         Fix yesterday's regression in m4_wrap([$1]).
2432         * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
2433         text, since it may contain text that looks like parameters.
2434         * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
2436 2008-03-11  Eric Blake  <ebb9@byu.net>
2438         Improve error messages for common testsuite bugs.
2439         * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
2440         macros for defining order-enforced macros.
2441         (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
2442         (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
2443         messages when order violations are detected.
2444         * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
2445         (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
2446         (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
2447         (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
2448         (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
2449         (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
2450         (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
2451         (Banner-only test suite): New tests.
2452         Reported by Christopher Hulbert.
2454         Tweak m4_wrap to force FIFO or LIFO semantics.
2455         * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
2456         (m4_wrap_lifo, _m4_wrap): New macros.
2457         * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
2458         order, prior to m4sugar's.
2459         (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
2460         m4_wrap.
2461         * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
2462         known order, prior to m4sh's.
2463         * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
2464         argument.
2465         (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
2466         new behavior.
2467         * tests/m4sh.at (AS_INIT cleanup): New test.
2468         * NEWS: Document the change.
2470 2008-03-10  Eric Blake  <ebb9@byu.net>
2472         Encode nested autotest data.
2473         * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
2474         (unusual file names): Likewise.
2475         (m4_pattern_allow): Remove loophole, to make it easier to catch
2476         poorly written tests.
2478         Factor some autotest tests.
2479         * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
2480         common initialization.
2481         (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
2482         (whitespace in absolute testdir, unusual file names): Use it.
2484 2008-03-06  Eric Blake  <ebb9@byu.net>
2486         Minor documentation fix.
2487         * doc/autoconf.texi (Evaluation Macros): Fix typo.
2489 2008-03-04  Eric Blake  <ebb9@byu.net>
2491         Make AT_CHECK act like a simple command.
2492         * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
2493         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
2495 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2497         On MinGW, substitution of CR and 0xFF fails.
2498         * tests/torture.at (Substitute and define special characters):
2499         MinGW awk cannot handle 0xFF, and on MinGW, the test does the
2500         wrong thing for CR.
2502 2008-03-04  Eric Blake  <ebb9@byu.net>
2504         Pull in recent maintainer improvements from coreutils.
2505         * GNUmakefile (_is-dist-target): 'make distclean' should not
2506         trigger autoreconf.
2507         (_dummy): Change directories before removing autom4te.cache.
2508         (check dist distcheck install) [!_have-Makefile]: Provide nicer
2509         diagnostics.
2510         * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
2511         builds, after initial bootstrap.
2512         * Makefile.am (distclean-local): Work around current automake bug.
2513         * Makefile.maint (ME): Allow VPATH usage.
2515         Use git-merge-changelog when available.
2516         * .gitattributes: New file.
2517         * README-hacking: Document use of git-merge-changelog.
2519         Work around cygwin bug.
2520         * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
2521         "touch 't\'" creates regular file 't'.
2523         Ignore tests that require read-only directories under root.
2524         * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
2525         no-write portion if user has root-like privileges.
2527 2008-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2529         * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
2531 2008-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2533         autoreconf -m now honors $MAKE.
2534         * bin/autoreconf.in ($run_make): Renamed from ...
2535         ($make): ... this.  Use now as command to run `make',
2536         overridden by $MAKE.  Document this in --help output.
2537         * doc/autoconf.texi (autoreconf Invocation): Document
2538         all environment variables honored by autoreconf.
2539         * NEWS: Update.
2540         Report by Paul Eggert.
2542 2008-03-03  Eric Blake  <ebb9@byu.net>
2544         Documentation improvements.
2545         * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
2546         (Evaluation Macros): Drop `1' suffix from metasyntax variable name
2547         that preceeds @dots.  Improve wording.
2548         (Text processing Macros): Drop `1' suffix from metasyntax variable
2549         name that preceeds @dots.
2550         (Number processing Macros): Drop `1' suffix from metasyntax
2551         variable name that preceeds @dots.  Improve wording.
2552         * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
2553         Suggested by Ralf Wildenhues.
2555 2008-03-02  Jim Meyering  <meyering@redhat.com>
2557         Don't infloop upon "make dist".
2558         * GNUmakefile: Merge from coreutils.
2559         * Makefile.am (dist-hook): Inject .tarball-version into tarball,
2560         not .version.
2561         * configure.ac (AC_INIT): Use .tarball-version, not .version.
2562         * build-aux/git-version-gen: Update from gnulib.
2564 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2566         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2567         Before using /dev/full, check that it is a writable character
2568         special device.
2569         Report by Benoit Sigoure and Eric Blake.
2571         Actually test that @configure_input@ is expanded correctly.
2572         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2573         Actually check generated file contents for the name of the
2574         generated file, using AC_PROG_FGREP and $FGREP.
2576 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
2578         Be nice with file systems that don't handle unusual characters.
2579         * tests/atlocal.in (func_sanitize_file_name)
2580         (func_sanitize_dir_name): New shell functions.
2581         * tests/tools.at (autom4te and whitespace in file names)
2582         (autotools and whitespace in file names): Use them.
2583         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2584         Cover more potentially problemtic file names.  Use the new
2585         functions.
2587         Properly handle funny file names for headers in config.status.
2588         The test suite did not cover this bug because the code was not
2589         quoting properly the arguments of `rm -f' (which "fails" silently)
2590         as well as the arguments of `diff' (whose output was redirected to
2591         /dev/null so we couldn't see its error message).
2592         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
2593         file names passed to `rm' and `diff'.
2594         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2595         Add a regression test.
2597 2008-03-01  Benoit Sigoure  <tsuna@lrde.epita.fr>
2598         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2600         Properly expand @configure_input@ in config.status.
2601         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
2602         Escape the backslashes and ampersands in $configure_input before
2603         using it in the sed replacement string to expand @configure_input@.
2604         Report by Eric Blake and Patrick Welche.
2606 2008-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2608         Ignore errors from ./run on w32.
2609         * tests/autotest.at (whitespace in absolute testdir):
2610         Ignore stderr for `./run' which fails to remove the
2611         busy test directory on w32.
2613 2008-02-22  Eric Blake  <ebb9@byu.net>
2615         Improve documentation for writing autotest suites.
2616         * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
2617         checks must live inside a test group.
2618         Reported by Christopher Hulbert.
2620 2008-02-21  Eric Blake  <ebb9@byu.net>
2622         Sync git-version-gen from upstream.
2623         * build-aux/git-version-gen: Pull from gnulib.
2624         * configure.ac (AC_INIT): Adjust to new calling convention.
2626 2008-02-12  Eric Blake  <ebb9@byu.net>
2628         Avoid trailing space in config.h with AC_DEFINE([var], []).
2629         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
2630         defines with a comment.
2632 2008-02-08  Eric Blake  <ebb9@byu.net>
2634         Fix texinfo typos in previous patch.
2635         * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
2636         Reported by Ralf Wildenhues.
2638         Describe a config.site that can be used for FHS compliance.
2639         * doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
2640         for FHS.
2641         * THANKS: Update.
2642         Reported by Jules Colding and Ralf Wildenhues.
2644 2008-02-02  Eric Blake  <ebb9@byu.net>
2646         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
2648 2008-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2650         * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
2651         again, broken since introduction of `-C dir'.
2652         * tests/autotest.at (Choosing where testsuite is run): Test it.
2654 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2656         * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
2658 2008-01-29  Eric Blake  <ebb9@byu.net>
2660         Fix more autotest regressions.
2661         * lib/autotest/general.m4 (AT_LINE): Fix regression from
2662         2007-10-04 when file name is `dnl'.
2663         (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
2664         <TESTS_BEGIN>: ...to this new diversion, to fix regression from
2665         yesterday in libtool's testsuite.
2666         (_AT_ARG_OPTION): Detect write failure.
2667         * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
2668         make libtool's use kosher.  Document m4_init.
2669         (Programming in M4sh): Document AS_INIT.
2670         (Writing Testsuites): Document limitation of AT_DATA file name.
2671         * tests/autotest.at (unusual file names): New test.
2672         (Banners, Keywords and ranges): Use correct shell.
2674         More corner cases in testsuite VAR=VALUE handling.
2675         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
2676         bug.
2677         <PARSE_ARGS_END>: Also detect leading digits in assignments.
2678         * tests/autotest.at (Using atlocal): Enhance test to catch last
2679         bug.
2681         * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
2682         bug.
2684 2008-01-28  Eric Blake  <ebb9@byu.net>
2686         Fix regression in handling VAR=VALUE arguments to testsuite.
2687         * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
2688         leading = as invalid.  Defer use of command-line variable
2689         assignments...
2690         <PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
2691         regression in sourcing files.
2692         * tests/autotest.at (Using atlocal): New test to catch this.
2693         (Debugging a successful test, Choosing where testsuite is run):
2694         Use correct shell.
2695         Reported by Ralf Wildenhues.
2697         Document grep peculiarity.
2698         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
2699         BSD behavior on binary input.
2701         Minor testsuite improvements.
2702         * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
2703         forks when sanitizing PATH.  Always output machine information,
2704         not just when atconfig was located.
2706         Add 'testsuite -C dir'.
2707         * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
2708         detection...
2709         (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
2710         argument.
2711         <DEFAULTS>: Delay computation of variables based on $at_dir...
2712         <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
2713         <TESTS>: Re-invoke via absolute name, since -C may be in effect.
2714         <PARSE_ARGS>: Parse new option.
2715         <HELP_TUNING>: Document it.
2716         * tests/autotest.at (Choosing where testsuite is run): New test
2717         for this feature.
2718         (Keywords and ranges): Add test for missing -k argument.
2719         * NEWS: Document this.
2720         * doc/autoconf.texi (testsuite Invocation): Likewise.
2722 2008-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2724         * build-aux/config.guess, build-aux/config.sub,
2725         build-aux/texinfo.tex: Sync from gnulib.
2726         * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
2727         Likewise.
2729 2008-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2731         * doc/autoconf.texi (Particular Programs): Do not mention the
2732         Autoconf version in which the AC_PROG_INSTALL change was done.
2733         Suggested by Paul Eggert.
2735 2008-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2737         Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
2738         * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
2739         mode, we change to the source directory, also set $ac_pwd so we
2740         do not go back to the build tree for the next config subdir.
2741         * tests/torture.at (Deep Package): Extend test to contain two
2742         config subdirs on the top level.
2744         Fix parallel `maintainer-check'.
2745         * Makefile.am (maintainer-check-tests): Depend on `all'.
2746         Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
2747         * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
2748         Likewise.
2749         (maintainer-check): Serialize the testsuite runs.
2751         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
2752         in feature string for --enable/--with.  Convert to underscore
2753         for variable name.
2755         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
2756         `install -c file1 file2 dir' works.
2757         * doc/autoconf.texi (Particular Programs): Document this.
2758         * NEWS: Update.
2760 2008-01-21  Eric Blake  <ebb9@byu.net>
2762         Improve documentation about default include directives.
2763         * doc/autoconf.texi (Generic Headers, Generic Declarations)
2764         (Generic Structures, Generic Types)
2765         (Generic Compiler Characteristics): Add links to
2766         AC_INCLUDES_DEFAULT.
2767         Reported by Reuben Thomas.
2769 2008-01-15  Eric Blake  <ebb9@byu.net>
2771         * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
2773 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2775         * tests/Makefile.am (noinst_SCRIPTS): Renamed from
2776         check_SCRIPTS.  Building the wrappers for `all' allows help2man
2777         to use them for the manpages.
2778         Report by Benoit Sigoure.
2780         * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
2782 2007-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2784         Fix some write failure cases in Autotest.
2785         * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
2786         upon write failures for --help, --version, --list.
2787         Guard against write failures for intermediate created scripts.
2788         <at_func_create_debugging_script>: Do not make the debugging
2789         script executable if it is not complete.
2791 2007-12-12  Eric Blake  <ebb9@byu.net>
2793         Fix thinko in earlier patch - m4_join isn't defined yet.
2794         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
2795         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
2796         (m4_require): Use m4_do, not m4_join.
2798         Fix some whitespace tests on cygwin.
2799         * tests/tools.at (autom4te and whitespace in file names): Restore
2800         font-lock.  Create $TMPDIR before it might be used.
2802         Fix spurious testsuite failure with M4 1.4.11.
2803         * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
2805         Optimize AC_REQUIRE.
2806         * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
2807         (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
2808         (m4_require): Avoid extra macro calls.
2810 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2812         * tests/torture.at (srcdir): Fix quoting.
2814         Do not pass top_srcdir to configure scripts in testsuite.
2815         * tests/autotest.at (srcdir propagation): Copy install-sh to
2816         source tree.
2817         (my only test): Drop setting of `top_srcdir'.
2818         * tests/base.at (Input/Output): Likewise.
2819         * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
2820         config.guess, and config.sub to test source tree.
2821         Drop AC_CONFIG_AUX_DIR setting.
2822         (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
2823         * tests/torture.at (Substitute a 2000-byte string): Drop
2824         AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
2825         (Substitute a newline, datarootdir workaround): Likewise.
2826         (Define a newline): Adjust for linenumber changes in configure.ac.
2827         * tests/foreign.at (Libtool): Adjust comment to reflect changes.
2829         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
2830         if `pwd` contains whitespace.
2832         Quote $abs_top_srcdir in tests.
2833         * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
2834         * tests/tools.at (Syntax of the shell scripts): Likewise.
2836         * tests/m4sh.at (LINENO): Quote $0.
2838         Fix testsuite program wrapper for whitespace in `pwd`.
2839         The problem here is that the usual mantra is that command
2840         variables can contain arguments, thus we cannot just escape
2841         $AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
2842         $top_builddir/tests directory early in $PATH, so that the
2843         wrappers are found by their plain name.
2844         * tests/wrapper.as: Put $testdir early in $PATH.
2845         (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
2847         Proper config.status --file/--header and $srcdir escaping.
2848         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
2849         characters in $ac_file_inputs.
2850         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
2851         accordingly.
2852         * tests/torture.at (datarootdir workaround): Adjust.
2853         (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
2855         Fix Autotest for whitespace in `pwd`.
2856         * lib/autotest/general.m4 (AT_INIT)
2857         <at_func_create_debugging_script, Driver Loop>:
2858         Quote $at_group_dir.
2859         * tests/autotest.at (whitespace in absolute testdir): New test.
2861         * lib/autom4te.in: Quote @datadir@.
2863         Proper file name escaping in Autoconf programs and Perl modules.
2864         This includes escaping of characters special to the shell
2865         as well as special to Perl, e.g., leading `<' or `>'.
2866         For example, when $file starts with `>', `open ">$file"'
2867         wrongly tries to append to a different file.
2868         * bin/autoconf.as: Fix quoting for autom4te options.
2869         * lib/Autom4te/General.pm (shell_quote): New function, taken
2870         from coreutils, written by Jim Meyering.
2871         (mktmpdir): Use it.
2872         * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
2873         and open_quote.
2874         * bin/autoreconf.in (parse_args): Likewise.
2875         * bin/autoscan.in (main): Likewise.
2876         * bin/autoupdate.in (main): Likewise.
2877         * bin/autoheader.in: Likewise, fixing old insufficient escaping.
2878         * bin/ifnames.in: Likewise, XFile usage fixes.
2879         * tests/tools.at (autom4te and whitespace in file names): Extend
2880         test.  Test twice, with special characters allowed on w32, and the
2881         rest.  Test leading and trailing whitespace, for `open_quote'.
2882         (autotools and whitespace in file names): New, analogous test.
2883         Reported by Paul Eggert and Benoit Sigoure, additional suggestions
2884         by Russ Allbery and Eric Blake.
2886         Sync from Automake.
2887         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
2888         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
2889         * lib/Autom4te/FileUtils.pm (open_quote): New function.
2890         (update_file, contents): Use it.
2892         * Makefile.am (autom4te-update): Rewrite for git.
2894 2007-12-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2896         * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
2898         Fix copyright years.
2899         * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
2900         lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
2902 2007-12-04  Eric Blake  <ebb9@byu.net>
2904         Manually resync with gnulib, since 'make cvs-update' no longer works.
2905         * build-aux/config.guess: New upstream version.
2906         * build-aux/config.sub: Likewise.
2908         When using older automake, don't downgrade build-aux/texinfo.tex.
2909         * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
2910         * doc/Makefile.am (TEXINFO_TEX): Add.
2912 2007-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2914         Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
2915         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
2916         #undef as this runs afoul of our new way of creating config.h.
2917         Problem reported by Jim Meyering in
2918         <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
2920 2007-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2922         Fix autom4te for unusual characters in input file names.
2923         * bin/autom4te.in (files_to_options): Quote active characters
2924         for the shell.
2925         * tests/tools.at (autom4te and white space in file names):
2926         New test.
2928         * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
2929         Document that Tru64 awk always splits $0.
2931 2007-11-24  Stepan Kasal  <kasal@ucw.cz>
2933         * lib/autotest/general.m4 (AT_INIT): Do not extract the
2934         `#AT_STOP_...' line at the end of each test.
2936 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2938         * lib/autotest/general.m4 (AT_INIT): For awk line number
2939         extraction script, ensure `$at_group' has a defined value
2940         even for the empty set, and properly quote its usage inside
2941         the awk script.
2943 2007-11-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2945         * doc/autoconf.texi (Shell Functions): New chapter.  Document
2946         IRIX sh $0 issue in functions, move content from ...
2947         (Portable Shell): ... here.
2948         (Shell Script Compiler): Note that shell functions are not
2949         totally unportable any more.
2951 2007-11-22  Stepan Kasal  <kasal@ucw.cz>
2952         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2954         * lib/autotest/general.m4 (AT_INIT): Exit awk script after
2955         extracting the line numbers of the last needed test.
2957 2007-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2959         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2960         Fix quoting.
2962 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2964         Fix IRIX testsuite debugging failures: $0 in functions.
2965         * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
2966         Do not use $0 inside a function, as IRIX sh will set that to the
2967         function name rather than the script invocation name.
2969 2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
2970         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2972         * lib/autotest/general.m4 (at_func_test): Use cached line numbers
2973         to extract test scripts.
2974         (AT_INIT): Extract and cache test script line numbers.
2976 2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2978         * lib/autotest/general.m4: Revert 2007-11-15 patch and
2979         subsequent fixups; the awk -> here-document conversion trashes
2980         performance too much with AIX sh.
2982 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2984         * tests/local.at: Do not test m4, perl with AT_TESTED.
2986         Diagnose and guard against write errors dealing with config.status.
2987         The general idea is this: all write failures from `configure'
2988         writing `config.status' are indicated by $ac_write_error, which
2989         is only checked at the end.  This is safe because config.status
2990         code is not executed before the file is complete.  Other write
2991         failures, be they inside config.status, or in sub shell/awk
2992         scripts spawned from configure or config.status, typically need
2993         earlier checking, as their results are used right afterwards.
2994         * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
2995         before writing config.status, check afterwards.
2996         (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
2997         (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
2998         Set `ac_write_error' for write failures to config.status.  Barf
2999         upon write failures to temporary files.
3000         Adjust note about closing and reopening the here-document.
3001         (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
3002         (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
3003         reopening the here-document.
3004         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3005         Ensure `ac_write_error' does not escape into config.status.
3006         Also, add a couple of code paths not yet exercised in the test
3007         suite: a config file with input from stdin, and a config header
3008         output to stdout.
3009         Suggestion for catching write errors by Bruno Haible.
3011 2007-11-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3013         Avoid error with Tru64 awk and testsuite lines with many words.
3014         * lib/autotest/general.m4 (AT_INIT): In the awk script that
3015         reads the testsuite, set the field separator to an unusual value,
3016         in order to not run over the limit of 199 fields.  Tru64 4.0D awk
3017         even splits the input if $i, i>0, was never accessed in the script.
3019         Revert 2007-10-17 change.
3020         * TODO: Multiline args in config files and headers mean something
3021         different and are not fixed, see
3022         <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
3023         Report by Stepan Kasal.
3025         * doc/autoconf.texi (Generic Programs): Fix typo.
3027 2007-11-16  Stepan Kasal  <kasal@ucw.cz>
3029         AC_*_TOOL does not canonicalize the prefix
3030         * doc/autoconf.texi (Generic Programs): Do not say that
3031         the *_TOOL macros canonicalize, they simply use the `host_alias'.
3033 2007-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3035         Diagnose write errors in config.status instantiations.
3036         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
3037         (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
3038         on write errors.
3039         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3040         Extend test to also check for some write error failures, using...
3041         <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
3042         Report by Bruno Haible.
3044         Indentation fixups.
3045         * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
3046         indentation.
3047         (_AT_CHECK): Use less indentation, to save space.
3049 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3051         Add witness macro for @top_build_prefix@ substitution.
3052         * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
3053         (_AC_OUTPUT_FILE): Mention it here.
3055 2007-11-15  Paolo Bonzini  <bonzini@gnu.org>
3056         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3058         * lib/autotest/general.m4 (at_func_test): Remove.
3059         (AT_INIT): Pre-extract test groups into separate files.
3060         (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
3061         Remove at-test-source files together with the $at_group_dir.
3062         * tests/autotest.at (Long test source lines): New test.
3064 2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3066         Shell functions and variables may share a namespace.
3067         * doc/autoconf.texi (Portable Shell): Mention Solaris sh
3068         limitation.
3070 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
3072         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
3073         gnulib.
3075 2007-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3077         * lib/autoconf/status.m4: Fix a couple of comment typos.
3079         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
3081 2007-11-13  Jim Meyering  <meyering@redhat.com>
3083         Clean up the rule to create "expr".
3084         * tests/Makefile.am (expr): Don't redirect directly to target.
3085         Redirect just once, not for each echo statement.
3086         Use $@, not literal "expr".
3088 2007-11-13  Paul Eggert  <eggert@cs.ucla.edu>
3090         Don't worry about preprocessor when testing long long.
3091         See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
3092         * doc/autoconf.texi (Preprocessor Arithmetic): New section.
3093         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
3094         These no longer check for preprocessor flaws.
3095         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
3096         Do not check for preprocessor flaws.
3098 2007-11-13  Jim Meyering  <meyering@redhat.com>
3100         Adapt dependencies, now that a version change doesn't modify configure.ac
3101         * GNUmakefile: Remove "make clean" kludge.
3102         * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
3103         configure.ac.
3104         Don't redirect directly to target.
3105         Use $@, not literal "version.m4".
3107 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3109         * doc/autoconf.texi (Making testsuite Scripts): Document
3110         ":;{" shorthand as in previous patch.
3112 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
3114         * doc/autoconf.texi (Limitations of Builtins): Document problem
3115         with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
3116         for the workaround.
3117         * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
3118         Use ":;{" shorthand.
3119         * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
3121 2007-11-12  Jim Meyering  <meyering@redhat.com>
3123         Add more non-srcdir build support.
3124         * GNUmakefile (dummy): Split a long line.
3125         Add -v option to autoreconf invocation.
3127         Remove the autoreconf-provided INSTALL, so that we regenerate it.
3128         * GNUmakefile (dummy): Remove INSTALL.
3130         Remove racy commands to build scripts in bin/ and tests/.
3131         * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
3132         are guaranteed to be built, remove the rules that tried to build
3133         them.  Before, with a parallel build, these rules could lead to
3134         two processes writing tests/wrapper.in concurrently.
3136         Build in man/ only *after* building in bin/ and tests/.
3137         * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
3138         in both bin/ and tests/.
3140         Accommodate non-srcdir build-from-checkout.
3141         * build-aux/git-version-gen: Require an additional parameter: $srcdir.
3142         Use git's --git-dir=$srcdir/.git option.
3143         Add quotes, in case tarball_version_file contains shell meta-characters.
3144         * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
3145         * configure.ac: Pass "." to git-version-gen.
3147         Avoid spurious test failures due to version skew.
3148         * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
3150 2007-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3152         Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
3153         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
3154         Remove conftest.dSYM directory.
3155         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
3156         (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
3157         Remove `conftest.*' recursively.
3158         * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
3159         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3160         Likewise.
3161         (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
3162         * THANKS: Update.
3163         Report and analysis by Jeff Squyres and Peter O'Gorman.
3165 2007-11-12  Benoit Sigoure  <tsuna@lrde.epita.fr>
3167         Fix typos in variable names.
3168         * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
3170 2007-11-11  Benoit Sigoure  <tsuna@lrde.epita.fr>
3172         Document that $((expression)) is not portable.
3173         * doc/autoconf.texi (Shell Substitutions): Here.
3175 2007-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3177         Ignore configure --help* errors due to LINENO-impaired shells.
3178         * tests/torture.at (Configuring subdirectories, Deep Package):
3179         In the --help* tests in read-only trees, make `.' temporarily
3180         writable again for the `stderr' file, and ignore errors due to
3181         the attempt to write configure.lineno.
3182         Report by Patrick Welche.
3184 2007-11-10  Jim Meyering  <meyering@redhat.com>
3186         Generate package.m4 in build-dir, not srcdir.
3187         * tests/Makefile.am (package.m4): Adjust target.
3188         Don't redirect directly to $@.
3189         (CLEANFILES): Add package.m4.
3190         ($(TESTSUITE)): Depend on just-built package.m4, not the one
3191         in $(srcdir).
3192         When running $(AUTOTEST), search "." before searching $(srcdir).
3194         Avoid a race condition that would make parallel "distclean" fail.
3195         * tests/Makefile.am (distclean-generic): Replace the default,
3196         automake-provided rule with an identical one, but with an additional
3197         dependency on distclean-local.  Simply adding the dependency would
3198         cause automake not to emit the rule at all.
3199         * BUGS: Building with -jN works, now.
3201         Distribute git-version-gen.
3202         * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
3203         since GNUmakefile is distributed, and requires it for dist* rules.
3205         Remove two more generated files from version control.
3206         * INSTALL: Remove generated file.
3207         * lib/autoscan/autoscan.list: Remove generated file.
3209 2007-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3211         * GNUmakefile (PATH): Remove stray apostrophes; they become
3212         part of PATH, which isn't wanted here.
3214 2007-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3216         New config files output variable `top_build_prefix'.
3217         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
3218         `top_build_prefix'.
3219         * doc/autoconf.texi (Preset Output Variables): Document it.
3220         * NEWS: Update.
3221         Report by Bob Friesenhahn.
3223         Avoid expr for arithmetic evaluation if the shell accepts $((...)).
3224         * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
3225         function, to parametrize arithmetic with expr vs. the shell.
3226         Use it where possible.
3227         Suggestion by Benoit Sigoure.
3229 2007-11-03  Benoit Sigoure  <tsuna@lrde.epita.fr>
3231         Adjust the documentation of autotest WRT atlocal.
3232         * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
3233         when using Automake, to write a rule to produce atlocal, since it's
3234         an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
3235         distributed, not atconfig.in.
3237 2007-11-04  Eric Blake  <ebb9@byu.net>
3239         Update list information.
3240         * README: Mention new autoconf-commit list.
3241         * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
3243 2007-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3245         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
3247         * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
3249         * build-aux/.gitignore: Ignore mkinstalldirs.
3251         * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
3253 2007-11-03  Jim Meyering  <meyering@redhat.com>
3255         s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
3256         * build-aux/git-version-gen: This syncs from coreutils.
3258         Adjust the build procedure so "make check" works reliably.
3259         * README-hacking: Include an extra step between "make" and
3260         "make check" to ensure that the latter passes.
3262         Use just-built tools, when possible.
3263         * GNUmakefile (PATH): Set and export here, ...
3264         (dummy): ... rather than here.
3266 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3267         and Andreas Schwab  <schwab@suse.de>
3269         * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
3270         exit status bug.
3272 2007-11-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3274         * configure.ac (AC_PREREQ): Require version 2.60, for
3275         AC_PROG_SED, AC_PROG_GREP.
3277 2007-11-02  Benoit Sigoure  <tsuna@lrde.epita.fr>
3278         and Jim Meyering  <meyering@redhat.com>
3279         and Andreas Schwab <schwab@suse.de>
3280         and Eric Blake  <ebb9@byu.net>
3282         Document a bug in GNU Bash with compound commands and redirections.
3283         * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
3284         Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
3285         workaround.
3287 2007-11-03  Eric Blake  <ebb9@byu.net>
3289         Support m4 1.4.5 in testsuite.
3290         * tests/torture.at (Define a newline): Exclude line numbers in
3291         error message.
3292         Reported by Ralf Wildenhues.
3294 2007-11-03  Jim Meyering  <meyering@redhat.com>
3296         Remove automake-provided files from version control.
3297         * build-aux/elisp-comp: Remove file.
3298         * build-aux/install-sh: Remove file.
3299         * build-aux/missing: Remove file.
3300         * build-aux/mdate-sh: Remove file.
3301         * build-aux/.gitignore: New file.
3302         Suggestion from Ralf Wildenhues.
3304 2007-11-03  Eric Blake  <ebb9@byu.net>
3306         Adjust version comparison to account for git snapshot numbers.
3307         * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
3308         component separator.
3309         * doc/autoconf.texi (Number processing Macros)
3310         <m4_version_compare>: Document this change.
3311         * tests/m4sugar.at (m4@&t@_version_compare): Test it.
3313 2007-10-30  Bruno Haible  <bruno@clisp.org>
3315         * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
3316         extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
3317         (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
3318         Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
3319         <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
3320         Suggested by Paul Eggert.
3322 2007-10-28  Jim Meyering  <meyering@redhat.com>
3324         * README-hacking: Autoconf, Automake, and Perl are required to build.
3325         List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
3327 2007-10-28  Jim Meyering  <meyering@redhat.com>
3329         README-hacking: Recommend running autoreconf -vi.
3330         * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
3331         so that we use just-built tools when they're available.
3332         Suggestions from Ralf Wildenhues.
3334 2007-10-28  Jim Meyering  <meyering@redhat.com>
3336         Make inter-release --version output more useful.
3338         Now, each unofficial build has a version "number" like 2.61a-19-58dd,
3339         which indicates that it is built using the 19th change set
3340         (in _some_ repository) following the "v2.61a" tag, and that 58dd
3341         is a prefix of the commit SHA1.
3342         * build-aux/git-version-gen: New file.
3343         * configure.ac: Run it to set the version.
3344         (AM_INIT_AUTOMAKE): Don't check NEWS here.
3345         * Makefile.am (dist-hook): Arrange so that .version appears only
3346         in distribution tarballs, never in a checked-out repository.
3347         * .gitignore: Add .version here, too.  Just in case.
3348         * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
3349         not configure.ac, now that the version number changes automatically.
3351         Ensure that $(VERSION) is up to date for dist-related targets.
3352         * GNUmakefile: Arrange to rerun autoconf, if the version reported by
3353         git-version-gen doesn't match $(VERSION), but only for dist targets.
3355 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3357         Fix `Deep Package' failure with a configure script early in PATH
3358         * tests/torture.at (Deep Package): Add `.' early in PATH.
3359         Report by Jim Meyering.
3361 2007-10-27  Jim Meyering  <meyering@redhat.com>
3363         Remove all generated files from version control.
3364         * aclocal.m4: Remove.
3365         * configure: Remove.
3366         * Makefile.in: Remove, along with all other Makefile.in in subdirs.
3367         * .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
3368         * README-hacking: New file: how to build from just-checked-out sources.
3370 2007-10-23  Eric Blake  <ebb9@byu.net>
3372         Improve corner case of m4_expand.
3373         * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
3374         efficiently.
3375         * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
3376         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
3377         documentation.
3379 2007-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3381         * doc/make-stds.texi: Update from gnulib.
3383 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3384         and Eric Blake  <ebb9@byu.net>
3386         * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
3387         problem reported by Bruno Haible in
3388         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
3390 2007-10-22  Eric Blake  <ebb9@byu.net>
3392         * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
3393         preprocessor.
3395 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3397         Don't check for bug in HP-UX 11.00 cpp.
3398         * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3399         Use -1ull rather than -1u, since that causes problems with gnulib; see
3400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3402 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3404         * tests/autotest.at (Backquote command substitution)
3405         (Multiline backquote command substitution)
3406         (Parenthetical command substitution)
3407         (Multiline parenthetical command substitution): Fix typos in
3408         test names.
3410 2007-10-21  Eric Blake  <ebb9@byu.net>
3412         * configure: Regenerate.
3414 2007-10-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3416         Fix config status generation with Tru64 ksh.
3417         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
3418         escaping of backslash in here-documents.
3420         Fix `Deep Package' test failure on FreeBSD.
3421         * tests/torture.at (Deep Package): Do not add `.' to $PATH
3422         unnecessarily.  Do not try running `/bin/sh configure' with a
3423         configure script to be found in $PATH, if the shell does not do
3424         this resolution.  Fixes test failure on FreeBSD.
3426         Fix config header generation with AIX awk.
3427         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
3428         script, use helper array D_is_set, as `" 0"' does not evaluate
3429         to true for AIX awk.
3431 2007-10-21  Eric Blake  <ebb9@byu.net>
3433         * tests/autotest.at (Banners): Reinstate test, with typo
3434         corrected.
3436 2007-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3438         * lib/autotest/general.m4 (Defaults): Validate input ranges ...
3439         <at_func_validate_ranges>: ... using this new function.
3440         * tests/autotest.at (Keywords and ranges): Test invalid ranges.
3441         Test --list with ranges and keywords.
3442         (Banners): Remove one now-failing test.
3444 2007-10-20  Eric Blake  <ebb9@byu.net>
3446         Fix testsuite --list subset.
3447         * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
3448         back to spaces, before listing subset of tests.
3449         Reported by Ralf Wildenhues.
3451 2007-10-19  Eric Blake  <ebb9@byu.net>
3453         s/parenthesis/parentheses/ where appropriate.
3454         * doc/autoconf.texi: Fix typos.
3455         * lib/m4sugar/m4sugar.m4: Likewise.
3456         Reported by Ralf Wildenhues.
3458         Document m4_expand limitation.
3459         * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
3460         unbalanced parse.
3461         * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
3462         (Writing Testsuites): Mention limitations inherited from
3463         m4_expand.
3465         Improve AT_BANNER handling.
3466         * lib/autotest/general.m4 (BANNERS): New named diversion.
3467         (TESTS_END): Diversion no longer used.
3468         (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
3469         shell function, which prints only as needed, using an associative
3470         array of banner text from a special diversion.
3471         <PARSE_ARGS_END>: No longer need awk to find banners.
3472         <TESTS>: Banners are no longer processed by main driver loop, so
3473         we no longer need case statement.
3474         (AT_BANNER): Rewrite to populate new diversion.
3475         (AT_SETUP): Each test invokes its own banner.  No output is needed
3476         to the TESTS diversion.
3477         * doc/autoconf.texi (Writing Testsuites): Document slight
3478         semantics change.
3479         * tests/autotest.at (AT_BANNERS): Enhance test.
3480         * NEWS: Document AT_BANNER.
3482         Document and test AT_BANNER.
3483         * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
3484         * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
3485         (AT_CHECK_BANNERS): New test.
3487         Doc touchups.
3488         * doc/autoconf.texi (Text processing Macros) <m4_strip>
3489         <m4_text_wrap>: Clarify and fix typos.
3491 2007-10-18  Eric Blake  <ebb9@byu.net>
3493         Ignore `make dist' changelogs in testsuite.log.
3494         * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
3495         directories matching AT_PACKAGE_TARNAME-*.
3497         Fix AT_TESTED, AT_KEYWORDS.
3498         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
3499         occurs in string, as duplicates may be added.
3500         (_m4_append_uniq): New helper macro.
3501         (m4_append_uniq_w): New macro.
3502         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
3503         duplication bug by using new macro.
3504         (AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
3505         programs with stdin redirected, so programs that don't
3506         understand --version won't try to behave interactively.
3507         * tests/autotest.at (Tested programs): Catch this bug.
3508         * tests/m4sugar.at (m4@&t@_append): Test new macro.
3509         * tests/local.at (AT_TESTED): Add m4, perl.
3510         * doc/autoconf.texi (Text processing Macros): Document
3511         m4_append_uniq_w, and update text on m4_append.
3512         * NEWS: Document the addition.
3514 2007-10-17  Eric Blake  <ebb9@byu.net>
3516         Function cleanup.
3517         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
3518         from m4 macro...
3519         (AT_INIT) <at_func_create_debugging_script>: ...to shell
3520         function.
3521         (AT_INIT): Defer function declarations until after --help,
3522         --version.  Format functions consistently, trying to fit in 80
3523         columns.
3524         (TEST_FUNCTIONS): Based on recent changes, rename...
3525         (TEST_GROUPS): ...to this.
3527         Reject FreeBSD m4.
3528         * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
3529         * configure: Regenerate.
3530         Reported by Bob Friesenhahn.
3532         Test recent additions.
3533         * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
3534         (m4@&t_max and m4@&t_min): New tests.
3535         * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
3536         description.
3538 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3540         * TODO: multiline args in config files and headers work now.
3542         Autotest: do not use shell functions for individual tests.
3543         * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
3544         extract the source test source, do not invoke it.
3545         (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
3546         * tests/autotest.at (Fallacy): Actually let the inner suite fail,
3547         expect exit status of 1.
3548         * tests/autotest.at (Skip): New test, for bogus zsh exit status.
3550         * lib/autotest/general.m4 (at_func_test): Fix test extraction
3551         script.
3553 2007-10-17  Eric Blake  <ebb9@byu.net>
3555         Fix m4_combine for empty suffix list.
3556         * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
3557         * doc/autoconf.texi (Text processing Macros): Document this.
3559         Add m4_combine, based on Libtool's lt_combine.
3560         * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
3561         * doc/autoconf.texi (Text processing Macros): Document it.
3562         * NEWS: Likewise.
3564 2007-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3566         Fix `configure --help=recursive' in unconfigured/read-only trees.
3567         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
3568         is not writable, use 'cp -p' in this case, in the hope that it
3569         will not actually be needed.  Still try removing files, in case
3570         of other write errors.
3571         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
3572         use $as_myself, not $0.
3573         (_AC_INIT_HELP): For --help=recursive, if the subdir does not
3574         exist, try again in the the source tree.  This change assumes
3575         that the subpackage configure script is capable of running
3576         --help=recursive in the source tree.
3577         * tests/torture.at (Configuring subdirectories, Deep Package):
3578         Adjust tests to expose both issues, also try invocation as
3579         `sh configure ...' and plain `configure ...' with PATH adjusted.
3580         * NEWS, THANKS: Update.
3581         Report by Hans Ulrich Niedermann.
3583 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3585         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
3586         Problem reported by H.Merijn Brand in
3587         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
3588         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
3589         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3590         Check that preprocessor handles 64-bit ints, too.
3592 2007-10-16  Eric Blake  <ebb9@byu.net>
3594         m4_map is a looping construct.
3595         * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
3597         Fix m4_map, and add some more utility macros.
3598         * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
3599         (m4_echo, m4_make_list): New documented macros.
3600         (_m4_quote, _m4_shift2): New helper macros.
3601         (m4_map): Change semantics to allow calling macro without
3602         arguments.
3603         (m4_map_sep): Likewise.  Also change semantics to quote separator,
3604         to match m4_join and m4_append.
3605         (m4_version_unletter): Fix use of m4_map.
3606         * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
3607         m4_count, m4_dquote_elt, m4_echo, m4_make_list.
3608         (Text processing Macros): Mention m4_dquote as a faster
3609         alternative to joining with commas.
3610         (Looping constructs): Document m4_map, m4_map_sep.
3611         * NEWS: Mention new macros.
3613         A few more m4sugar improvements, to benefit libtool.
3614         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
3615         of expansion by avoiding extra uses of $@.
3616         (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
3617         (_m4_cdr): New helper macro.
3618         (_m4_map, m4_map_sep): Use it to reduce size of expansion.
3619         (_m4_shift3): New helper macro.
3620         (_m4_foreach): Swap argument order, and use new macro to reduce
3621         size of expansion.
3622         * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
3623         count must be positive.
3625         * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
3626         Reported by Ralf Wildenhues.
3628 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3630         * doc/autoconf.texi (Portable Shell): Improve description of zsh
3631         4.x function subshell bug with exit and trap.
3633 2007-10-15  Eric Blake  <ebb9@byu.net>
3635         Enhance AS_HELP_STRING.
3636         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
3637         and reduce number of expansions.
3638         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
3639         and to take indent and wrap column numbers.
3640         * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
3641         * doc/autoconf.texi (Pretty Help Strings): Document details about
3642         arguments.
3643         (Text processing Macros): Minor tweaks.
3644         * NEWS: Document this change.
3646         Fix 2007-10-03 regression with AT_SETUP([a, b]).
3647         * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
3648         (m4_text_box): Use it.
3649         * lib/autotest/general.m4 (AT_SETUP): Use it.
3650         * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
3651         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
3652         * NEWS: Revert caveat about semantics change on comma.
3653         * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
3655 2007-10-13  Eric Blake  <ebb9@byu.net>
3657         Change m4_join to match libtool's ltsugar semantics.
3658         * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
3659         Ignore empty arguments, using...
3660         (_m4_join): ...this new helper.
3661         * tests/m4sugar.at (m4@&t@_join): New test.
3662         * doc/autoconf.texi (Text processing Macros): Document new
3663         semantics of m4_join.
3665         Make AC_PREREQ faster and more robust.
3666         * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
3667         (m4_version_prereq): Inline constant expansions.
3668         (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
3669         Rewrite in terms of [] list, not () list.
3670         (_m4_list_cmp, _m4_version_unletter): New helper macros.
3671         (m4_version_unletter): Write wrapper around new implementation to
3672         preserve old semantics.
3673         (m4_version_compare): Pass correct type of list, and avoid
3674         overhead of flattening expressions too early.
3675         (m4_do): Move to be near other quoting macros.
3676         (m4_max, m4_min): Always result in decimal output.
3677         * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
3678         Move m4_do...
3679         (Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
3680         (Text processing Macros): Move m4_version_compare...
3681         (Number processing Macros): ...to this new node; document m4_cmp,
3682         m4_list_cmp, m4_sign, m4_max, m4_min.
3683         * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
3684         up on bugs fixed by this patch.
3685         * NEWS: Document new macros.
3687 2007-10-12  Eric Blake  <ebb9@byu.net>
3689         * doc/autoconf.texi (Text processing Macros): Fix bad merge.
3690         (Reporting Messages): Fix underfull hbox.
3692         Some more m4sugar documentation.
3693         * lib/m4sugar/m4sugar.m4: Clean up macro order.
3694         * doc/autoconf.texi (Programming in M4): Lighten the warning on
3695         using m4sugar; it is stabilizing and useful.
3696         (Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
3697         m4_divert, m4_undivert, __file__, __line__, __oline__.
3698         (Diagnostics): New node, documenting m4_assert, m4_errprintn,
3699         m4_fatal, m4_location, m4_warn.
3700         (Diversion support): New node, documenting m4_divert_push,
3701         m4_divert_pop, m4_divert_text, m4_divert_once.
3702         (Text processing Macros): Sort.  Add m4_flatten, m4_join,
3703         m4_newline, m4_strip, m4_text_box, m4_text_wrap.
3704         (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
3705         as obsolescent.
3706         (Printing Messages): Change cross-reference.
3708         Document interaction of recent m4_append change with Libtool HEAD.
3709         * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
3710         (m4_append_uniq): Add new parameters, based on lt_append_uniq.
3711         * tests/m4sugar.at (m4@&t@_append): New test.
3712         * NEWS: Document semantics change.
3713         * doc/autoconf.texi (Text processing Macros): Likewise.
3715         s/AC_VERSION/AC_AUTOCONF_VERSION/.
3716         * doc/autoconf.texi (Versioning): Change the name.
3717         * NEWS: Likewise.
3718         * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
3719         * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
3720         Suggested by Ralf Wildenhues.
3722         Namespace cleanup.
3723         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
3724         (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
3725         autoconf namespace.
3726         * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
3727         (Programming in M4sh, Macro Names): Beef up description of
3728         namespaces reserved for autoconf.
3729         * configure: Regenerate.
3731 2007-10-12  Eric Blake  <ebb9@byu.net>
3732         and Paolo Bonzini  <bonzini@gnu.org>
3734         Speed up execution of subset of testsuite.
3735         * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
3736         (AT_INIT) <at_func_test>: New shell function.
3737         (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
3738         (AT_INIT) <at_test_source> New variable, names file that holds
3739         current test function definition.
3740         (AT_SETUP): Start the shell function at_func_test_#, into the
3741         TEST_FUNCTIONS diversion.
3742         (AT_CLEANUP): End the shell function.  Simplify the TESTS
3743         diversion to invoke the function.
3745 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3747         * .gitignore: Ignore tags and TAGS files.
3749 2007-10-11  Eric Blake  <ebb9@byu.net>
3751         Config header generation followup.
3752         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
3753         which won't work with the preprocessor nor with the awk
3754         implementation.
3755         * tests/torture.at (Define a newline): Test raw newline detection,
3756         removing the XFAIL.
3757         * doc/autoconf.texi (Defining Symbols): Document recent change to
3758         allow backslash-newline.
3759         * THANKS: Update.
3761 2007-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3763         * lib/autotest/general.m4: Put function braces in separate line.
3765 2007-10-10  Eric Blake  <ebb9@byu.net>
3767         Avoid some overhead from m4_defn and m4_popdef.
3768         * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
3769         pass on first argument, since we are documented that way.
3770         (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
3771         check where it is safe to do so.
3772         (m4_append): Likewise, and quote the separator.
3773         (m4_text_box): Likewise, and avoid regex, also be robust to
3774         expansion and quadrigraphs.
3776         Another AC_DEFINE speedup.
3777         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
3778         elision...
3779         (_AC_DEFINE_Q): ...here, and only do it once.
3780         * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
3781         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
3782         introduced 2007-10-05.
3784         Whitespace cleanup.
3785         * lib/autoconf/general.m4: Use consistent indentation.
3786         * configure: Regenerate.
3788         * NEWS: Announce recent round of speed optimizations.
3790 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3792         * NEWS: Announce shell function usage in Autotest.
3794 2007-10-10  Eric Blake  <ebb9@byu.net>
3795         and Paul Eggert  <eggert@cs.ucla.edu>
3797         Reduce number of forks at startup.
3798         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
3799         sanitization.
3800         * configure: Regenerate.
3802 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3803         and Paul Eggert  <eggert@cs.ucla.edu>
3805         Use awk for config header generation.
3806         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
3807         (_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
3808         header machinery for use with awk and placement outside the main
3809         config.status instantiation loop.  Retain multi-line defines
3810         through backslash-newline combinations, do not split the script
3811         any more.
3812         (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
3813         (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
3814         needed.
3815         (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
3816         from define values.
3817         * NEWS: Update.
3818         * tests/torture.at (#define header templates): Extend test by
3819         several more cases: white space before and after `#', macros
3820         with parameters in config.hin and as defines, multi-line macro
3821         values.
3822         (Torturing config.status): Use a define value twice the length
3823         in order to exercise the awk literal string limit.
3824         (Substitute and define special characters): Also try special
3825         delimiter, to exercise the special-case code.
3826         Suggestion by Eric Lemings.
3828 2007-10-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3830         * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3832 2007-10-09  Eric Blake  <ebb9@byu.net>
3834         Improve header of bin/autoconf.
3835         * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
3836         * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
3837         from M4sh.
3838         * bin/autoconf.as: Put copyright up front in generated file.
3840         * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
3842 2007-10-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3844         * doc/install.texi (Basic Installation): Document `uninstall'.
3845         * INSTALL: Regenerate.
3846         Suggestion by Roberto Bagnara.
3848 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3850         * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
3852         Adjust doc. to match latest gnulib.
3853         * build-aux/texinfo.tex: Sync from gnulib.
3854         * doc/standards.texi: Likewise.
3855         * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
3856         Documentation License" and remove the subsection.  This simplifies
3857         the manual a bit and is more like what other GNU projects do
3858         nowadays.
3860 2007-10-08  Eric Blake  <ebb9@byu.net>
3862         Use recent changes.
3863         * configure: Regenerate.
3865         Fix regression in m4_text_wrap from 2007-10-05.
3866         * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
3867         (m4_sign): Sort.
3868         (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
3869         m4_format.
3870         * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
3871         * tests/autotest.at (Long test title, Longer test title): Test
3872         this fix, beyond what AS_HELP_STRING already tests.
3874         Avoid m4 warnings on bad m4_format usage.
3875         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
3876         evaulates to 0.
3877         * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
3878         enough arguments are provided.
3880 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
3882         * doc/autoconf.texi (Shell portability): Document shell function
3883         portability.
3885 2007-10-06  Paolo Bonzini  <bonzini@gnu.org>
3887         * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
3888         at_func_check_skip, at_func_check_status, at_func_filter_trace,
3889         at_func_log_failure shell functions.  Use test -s to avoid
3890         useless diff invocations.
3891         (at_func_check_newline): Renamed from at_check_newline.
3892         (AT_SETUP): Define AT_captured_files to empty.
3893         (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
3894         (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
3895         the shell functions.
3897 2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3899         Don't assume "." is writeable, for commands like "autoconf --version".
3900         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
3901         different heuristic instead, one that doesn't rely on creating
3902         files.
3904         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
3905         correctly.
3907 2007-10-05  Jim Meyering  <meyering@redhat.com>
3909         Avoid makeinfo warnings.
3910         * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
3911         (Looping constructs): Add ` ' after @defmac'd name, m4_do.
3913 2007-10-05  Eric Blake  <ebb9@byu.net>
3915         Resolve Python issue 1676135 regarding configure directory args.
3916         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
3917         slashes from directory arguments.
3918         * tests/base.at (configure directories): New test.
3919         * doc/autoconf.texi (Installation Directory Variables): Document
3920         the change.
3921         * NEWS: Likewise.
3922         * THANKS: Update.
3923         Reported by Björn Lindqvist.
3925         Provide better short-circuiting operation.
3926         * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
3927         (m4_text_wrap): Use it.  Also avoid useless m4_for.
3928         * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
3929         new macro.
3930         (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
3931         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
3932         to avoid regexps.
3933         * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
3934         documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
3935         (Conditional constructs): ...here, to new section.  Also document
3936         m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
3937         m4_bpatsubsts, and m4_default.
3938         (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
3939         m4_do.
3941 2007-10-04  Eric Blake  <ebb9@byu.net>
3943         Fix recent testsuite failures.
3944         * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
3945         that must not be re-expanded after AS_ESCAPE.
3946         * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
3947         checking if it is an identifier.
3949         Whitespace cleanup.
3950         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
3951         leading whitespace, as it caused space-tab in testsuite.
3952         (AT_INIT): Avoid trailing newlines in testsuite.
3954         One more round of m4_foreach_w speedups.
3955         * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
3956         is present.
3957         (_m4_split): Avoid useless expansions inside definition.  Move
3958         argument defaulting...
3959         (m4_split): ...here.  Change alternate quote to something less
3960         likely to appear in $1.  Also, special case space as regexp...
3961         (m4_foreach_w): ...to avoid regexp on single-term list.
3962         (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
3963         useless expansions inside definition.
3964         * tests/m4sugar.at (m4@&t@_split): Add tests.
3966 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
3968         * general.m4 (AT_INIT): Add at_check_newline function.
3969         (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
3970         (_AT_CHECK): Don't use at_trace_this.
3972 2007-10-04  Paolo Bonzini  <bonzini@gnu.org>
3974         Fix previous commit.
3975         * lib/autotest/general.m4 (AT_LINE): Fix regex.
3977 2007-10-04  Eric Blake  <ebb9@byu.net>
3979         Speed up building testsuites.
3980         * lib/autotest/general.m4 (AT_LINE): Only use regex when file
3981         changed since last time.  Use simpler regex.
3983 2007-10-03  Eric Blake  <ebb9@byu.net>
3985         Optimize checking for identifiers.
3986         * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
3987         macros, more efficient than regex on m4_re_word.
3988         * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
3989         Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
3990         now use @&t@.
3991         * configure: Regenerate.
3993         Remove some XFAILs, and make AT_SETUP output line up.
3994         * lib/autotest/general.m4 (AT_SETUP): Only expand description
3995         once; thereafter, use its expansion, properly quoted.
3996         * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
3997         expansion with arguments, and check for aligned output.
3998         (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
3999         Add a test for macros with parameters.
4000         * NEWS: Document the semantics change.
4001         * tests/base.at: Fix test titles containing commas.
4002         * tests/compile.at: Likewise.
4003         * tests/tools.at: Likewise.
4004         * tests/torture.at: Likewise.
4006         Another round of regex avoidance.
4007         * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
4008         (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
4009         (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
4010         (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
4011         character ranges useful in m4_translit.
4012         (m4_toupper, m4_tolower): Optimize the constant portion of
4013         definition.
4014         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
4015         creates $, and reject [] thanks to AS_TR_SH rewrite.
4016         (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
4017         (AS_ESCAPE): Factor...
4018         (_AS_ESCAPE): ...into new macro, with second argument required.
4019         Avoid regex in common case.
4020         (_AS_QUOTE): Use new macro.
4022         Whitespace cleanup.
4023         * lib/autoconf/types.m4: Avoid space-tab.
4024         * lib/m4sugar/m4sh.m4: Use tab consistently.
4026 2007-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4028         * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
4029         (m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
4030         should remove m4_shiftn entirely?
4031         (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
4032         Prefer m4_shift2 and m4_shift3 to m4_shiftn.
4033         * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4034         * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
4035         * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
4037 2007-10-03  Eric Blake  <ebb9@byu.net>
4039         Comment touchups.
4040         * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
4042 2007-10-02  Eric Blake  <ebb9@byu.net>
4044         Optimize appending text.
4045         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
4046         expressions.
4048         Optimize recursion.
4049         * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
4050         lot of hot spots; optimize it for 2 and 3 shifts.
4052         Optimize AC_PREREQ and other m4sugar numerics.
4053         * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
4054         (m4_cmp): Compare arbitrary expressions, without overflow.
4055         (m4_version_unletter): Also recognize capital letters.
4056         (m4_version_compare): Avoid regex when splitting version number
4057         string.
4059 2007-10-01  Eric Blake  <ebb9@byu.net>
4061         Once again, reject IRIX m4.
4062         * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
4063         implementations that ignore --trace.
4064         * configure: Regenerate.
4065         Reported by Ralf Wildenhues.
4067         Fix regression in AC_DEFINE([macro(with_arg)]).
4068         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
4069         quotes with a careless m4_substr.
4071 2007-09-30  Eric Blake  <ebb9@byu.net>
4073         Allow nameless iteration.
4074         * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
4075         indirectly.
4076         * tests/m4sugar.at (myvar): Test this.
4078 2007-09-29  Eric Blake  <ebb9@byu.net>
4080         Speed optimization: avoid m4 regex when other algorithms work.
4081         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
4082         (_AS_QUOTE_IFELSE): Likewise.
4083         * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
4084         (m4_bpatsubsts): Split...
4085         (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
4086         regex.
4087         (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
4088         (m4_qlen): Optimize on short strings, to avoid regex.
4089         (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
4090         * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
4091         (AC_DEFINE_TRACE): Likewise.
4093 2007-09-28  Eric Blake  <ebb9@byu.net>
4095         Oops - my earlier 'optimization' caused a regression.
4096         * tests/local.at (AT_CHECK_M4): Fix typo.
4098 2007-09-27  Eric Blake  <ebb9@byu.net>
4099         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4101         Catch even more common AC_CACHE_VAL mistakes.
4102         * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
4103         lacks '_cv_', or if AC_SUBST appears in body.
4104         * tests/base.at (AC_CACHE_CHECK): Test this change.
4106 2007-09-27  Stepan Kasal  <kasal@ucw.cz>
4107         and Eric Blake  <ebb9@byu.net>
4109         Autotest no longer caters to Ultrix redirection limitation.
4110         * doc/autoconf.texi (Writing testsuite.at): Remove the
4111         limitation that the first parameter of AT_CHECK cannot
4112         contain redirection.
4113         (File Descriptors): Mention that Ultrix limitation is no longer a
4114         show-stopper in modern code.
4115         * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
4116         parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
4117         * lib/autotest/general.m4 (AT_CHECK): Update comment.
4119 2007-09-27  Eric Blake  <ebb9@byu.net>
4121         Squelch changeword in m4sugar.
4122         * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
4123         feature of m4 1.4.x.
4125         Configure whitespace touchups.
4126         * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
4127         installation directories, and avoid TAB, in configure --help
4128         output.
4129         * configure.ac: Avoid extra trailing newline.
4130         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
4131         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
4132         config.status --help output.
4133         * configure: Regenerate.
4135         Fix underquotation in AS_HELP_STRING.
4136         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
4137         argument.
4138         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
4139         first-prefix argument.
4140         * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
4141         * NEWS: Document AS_HELP_STRING fix.
4143         Autotest formatting touchups.
4144         * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
4145         output.
4146         (PATH): Simplify computation of new PATH.
4148 2007-09-26  Eric Blake  <ebb9@byu.net>
4150         Fix testsuite breakage in last patch.
4151         * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
4152         font-lock fix.
4153         * tests/torture.at (@%:@define header templates): Rename, so that
4154         output lines up correctly.
4156         More font-lock happiness.
4157         * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
4158         confusion.
4160 2007-09-25  Eric Blake  <ebb9@byu.net>
4162         Typo fixes.
4163         * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
4164         * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
4166         Improve documentation of M4 parameter expansion.
4167         * doc/autoconf.texi (Quoting and Parameters): New section.
4168         (Quotation and Nested Macros): Improve wording.
4170         Improve C99 detection.
4171         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
4172         avoid deprecation warning with icc.
4173         * THANKS: Update.
4174         Reported by Ted Bullock.
4176 2007-09-24  Jim Meyering  <jim@meyering.net>
4178         Whenever possible, use the vertical bar as sed delimiter.
4179         * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
4180         Use "|", not "!".
4181         * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
4182         [ac_dir_suffix]: Use "|", not "," as sed delimiter.
4183         * tests/mktests.sh (as_me): Likewise.
4184         * lib/freeze.mk (check-forbidden-patterns): Likewise.
4185         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
4186         * configure: Regenerate.
4187         * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
4188         * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
4189         in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
4190         This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
4192 2007-09-22  Jim Meyering  <jim@meyering.net>
4194         Add a comment.
4195         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
4196         2004-05-31 change also with a comment in the code.
4198 2007-09-20  Eric Blake  <ebb9@byu.net>
4200         More contribution housekeeping.
4201         * THANKS: Sort.
4202         * AUTHORS: Sort, reflect recent assignment from Helge Deller.
4204         Ignore additional files, when copying cross-repository.
4205         * .gitignore: Ignore CVS directories, emacs edits.
4206         * .cvsignore: Ignore .git directory, emacs edits.
4208 2007-09-15  Eric Blake  <ebb9@byu.net>
4210         Provide AC_VERSION, not m4_AUTOCONF_VERSION.
4211         * doc/autoconf.texi (Text processing Macros): Remove mention of
4212         m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
4213         once again.
4214         (Notices): Move AC_PREREQ...
4215         (Versioning): ...to this new section, alongside the new AC_VERSION
4216         alias for the undocumented m4_PACKAGE_VERSION.
4217         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
4218         * lib/autoconf/general.m4 (AC_VERSION): New macro.
4219         * NEWS: Update to match this rename.
4220         * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
4221         m4_PACKAGE_VERSION.
4222         * tests/tools.at (autoconf: AC_VERSION): New test.
4223         Suggested by Paolo Bonzini and Benoit Sigoure.
4225 2007-09-14  Eric Blake  <ebb9@byu.net>
4227         Prepare for conversion to git.
4228         * doc/.cvsignore: Avoid multiple listings on one line.
4229         * bin/.cvsignore: Likewise.
4230         * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
4231         lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
4232         lib/autoscan/.gitignore, lib/autotest/.gitignore,
4233         lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
4234         tests/.gitignore: New files, identical to .cvsignore counterpart.
4236 2007-09-13  Eric Blake  <ebb9@byu.net>
4238         Editing eye-candy.
4239         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
4240         font-lock balance.
4241         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
4242         * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
4243         * configure: Regenerate.
4245         Clean up 'make dist' of previous patch.
4246         * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
4247         (CLEANFILES): Don't clean the stamp, since we distribute the
4248         generated files pre-built.
4249         (MAINTAINERCLEANFILES): Clean it here instead.
4250         * tests/Makefile.in: Regenerate.
4252         Avoid parallel 'make check' issue.
4253         * tests/Makefile.am (mktests.stamp): New witness.
4254         (TESTSUITE_GENERATED_AT): Use it.
4255         (CLEANFILES): Clean the witness.
4256         * tests/.cvsignore (mktests.stamp): Ignore the witness.
4258         Document another awk pitfall.
4259         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
4260         limitation of field variables in END.
4261         Reported by Gary V. Vaughan.
4263         * AUTHORS: Add missing entries.
4265 2007-09-12  Eric Blake  <ebb9@byu.net>
4267         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
4268         * doc/autoconf.texi (Text processing Macros): Document
4269         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
4270         (Redefined M4 Macros): Document m4_ifndef.
4271         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
4272         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
4273         used it while it was undocumented.
4274         * NEWS: Document this change.
4275         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
4276         * lib/m4sugar/Makefile.in: Regenerate.
4277         * tests/m4sugar.at (m4@&t@_version_compare): New test.
4278         Reported by Bruno Haible.
4280         * doc/autoconf.texi (Generic Compiler Characteristics): Add
4281         missing index entries.
4283 2007-09-11  Eric Blake  <ebb9@byu.net>
4285         Centralize all system extensions checks.
4286         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
4287         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
4288         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
4289         AC_USE_SYSTEM_EXTENSIONS.
4290         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
4291         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
4292         * doc/autoconf.texi (Posix Variants): Reword this section,
4293         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
4294         rather than a series of system-specific checks.
4295         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
4296         AC_MINIX.
4297         * NEWS: Document this change.
4298         * THANKS: Update.
4299         Reported by Martin Koeppe.
4301 2007-09-08  Eric Blake  <ebb9@byu.net>
4303         Clean up obsolete macros references.
4304         * doc/autoconf.texi: Add anchors to support better
4305         cross-referencing.
4306         (Particular Structures): Move obsolete macros descriptions...
4307         (External Software): Likewise.
4308         (Package Options): Likewise.
4309         (Obsolete Macros): ...to here.  Add cross-references to
4310         documentation on replacements.
4311         * NEWS: Mention that these macros have been obsolete for a while
4312         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
4314         Improve M4 path searching during configure.
4315         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
4316         macro.
4317         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
4318         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
4319         parameter, and kill side effects.
4320         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
4321         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
4322         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
4323         is found.
4324         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
4325         allow bootstrapping with autoconf 2.61.
4326         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
4327         * configure: Regenerate.
4328         * doc/autoconf.texi (Generic Programs): Document new macro.
4329         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
4330         macro.
4331         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
4332         * NEWS: Document the change.
4333         * THANKS: Update.
4334         Reported by Hans Aberg.
4336         * doc/autoconf.texi (Generic Programs): Fix typo.
4338 2007-09-06  Eric Blake  <ebb9@byu.net>
4340         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
4341         :, and make it clear that optional @var{path} defaults to $PATH.
4342         (Erlang Compiler and Interpreter): Likewise.
4344         Texinfo cleanup.
4345         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
4346         Reword some paragraphs to avoid overfull, underfull hbox
4347         warnings.  Add index entries to avoid overfull vbox warnings.
4349 2007-09-05  Eric Blake  <ebb9@byu.net>
4351         * NEWS: Adjust wording for AC_CONFIG_LINKS.
4352         Reported by Ralf Wildenhues.
4354 2007-09-03  Eric Blake  <ebb9@byu.net>
4356         * NEWS: Document fixes that have been applied since 2.61a.
4358         Housekeeping.
4359         * THANKS: Update, and convert to UTF-8 encoding.
4360         * AUTHORS: Likewise.
4362 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4364         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
4365         names beginning with `-' again.
4367 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
4368             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4370         * doc/autoconf.texi (Defining Directories): Mention
4371         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
4373 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4375         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
4376         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
4377         * tests/base.at (configure arguments): New test.
4378         * THANKS: Update.
4379         Report by Olaf Lenz.
4381         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
4382         arguments in comment.
4383         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
4385 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
4387         * doc/autoconf.texi (File System Conventions): Index the proper
4388         way of detecting absolute file names.
4390 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4392         * build-aux/config.guess, build-aux/config.sub,
4393         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
4394         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
4395         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
4396         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
4397         sectioning change in fdl.texi.
4399         * bin/autoconf.as: Update --version output to match current GCS.
4400         * bin/autoheader.in: Likewise.
4401         * bin/autom4te.in: Likewise.
4402         * bin/autoreconf.in: Likewise.
4403         * bin/autoscan.in: Likewise.
4404         * bin/autoupdate.in: Likewise.
4405         * bin/ifnames.in: Likewise.
4407 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4409         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
4410         file to itself if source and build trees coincide.
4411         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
4412         test.
4413         Report by Sebastian Freundt <hroptatyr@gna.org>.
4415 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4417         Reword the copyright notices to match what's suggested in GPLv3.
4418         In ChangeLog files, use more-permissive notice rather than GPL, as
4419         per usual GNU standards these days.
4421 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
4423         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
4424         limitation reported by Leo Moisio in
4425         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
4427 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4429         * COPYING: Update to GPLv3.  All uses changed.
4431 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4432         and Paul Eggert  <eggert@cs.ucla.edu>
4434         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
4435         fails on AIX 5.3.
4437 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
4439         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
4440         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
4441         `srcdir' as subdirectory of `builddir'.
4443 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
4445         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
4446         * tests/autotest.at (srcdir propagation): New test.
4447         * THANKS: Update.
4448         Reported by Mike Frysinger.
4450 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4452         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
4453         Problem reported by Fred Kreek in
4454         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
4455         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
4456         (Macro Names, Defining Directories): Don't mention PATH as a name
4457         for a fully qualified file name, as this usage violates the GNU
4458         coding standards and we shouldn't recommend it.
4460         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
4461         string and then assume shell builtins like "test" will work.
4463 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
4465         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
4466         not a valid shell variable name.
4467         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
4468         * tests/torture.at (AC_SUBST: variable name validation): New test.
4469         Reported by Andreas Schwab.
4471 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
4473         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
4474         works with both C and C++.
4476 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
4477             Bruno Haible  <bruno@clisp.org>
4479         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
4480         brand tests.
4482 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4484         * doc/autoconf.texi (Particular Types): Give example of use for
4485         AC_TYPE_INT8_T etc.
4487 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
4489         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
4491 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
4493         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
4494         define HAVE_INT8_T, and likewise for similar macros.
4495         Problem reported by Patrick Welche in
4496         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
4498 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
4500         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
4502 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4504         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
4505         choice, since that's what we do with --enable-largefile etc.
4506         Redo indenting and assignments to simplify things a bit, and make
4507         the parens work with Emacs.
4509         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
4510         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
4511         Haible.
4513 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
4515         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
4516         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
4518 2007-05-21  Bruno Haible  <bruno@clisp.org>
4520         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
4521         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
4522         * doc/autoconf.texi (Generic Compiler Characteristics): Move
4523         renamed AC_OPENMP documentation here, from "C compiler".
4524         Mention C++ and Fortran.
4526 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4528         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
4530 2007-05-21  Bruno Haible  <bruno@clisp.org>
4532         * NEWS: Mention AC_C_OPENMP.
4533         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
4534         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
4535         Based in part on Steven G. Johnson's investigations for the AX_OPENMP
4536         macro in the Autoconf macro archive.
4538 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4540         * bin/autom4te.in: Fix typos.
4542 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
4544         * bin/autoconf.as: Handle `-' just like other input files.
4545         * bin/autom4te.in (parse_args): Pass `-' through.
4546         (handle_output): Skip the forbidden token search if we read from stdin.
4547         (up_to_date): Always treat stdin as out of date.
4548         * tests/tools.at (autoconf: input from stdin): New test.
4549         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
4551 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
4553         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
4554         parameters for AT_CLEANUP.
4555         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
4557 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4559         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
4560         * doc/autoconf.texi (C Compiler): Likewise.
4562 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
4564         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
4566 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
4568         * doc/autoconf.texi: Direntry for "autoconf Invocation"
4569         renamed to "autoconf-invocation"
4571         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
4572         in the examples should not use the internal "ac_" prefix.
4574 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
4576         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
4577         * doc/autoconf.texi ($@, case): Document Zsh limitations.
4579 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
4581         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
4582         Reorganize the comments before and in the macro.
4584 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
4586         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
4587         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
4588         section titles and other comments; no code change.
4590 2007-05-01  Kevin Ryde  <user42@zip.com.au>
4592         * doc/autoconf.texi (Particular Programs): Typo
4593         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
4595 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
4597         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
4598         'configure' will fail if the shell lacks proper support for shell
4599         functions.  Suggested by RMS.
4601 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4603         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
4604         about Solaris /bin/printf '%010000x' 123.  Problem reported by
4605         Bruno Haible.
4607 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
4609         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
4610         for a.* when searching for executables, as this prevents users
4611         from having files like a.c.  Problem reported by Ralf Wildenhues in:
4612         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
4613         This fixes a problem introduced on 2000-12-19.
4615 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4617         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
4618         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
4619         via Bruno Haible.
4621 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4623         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
4624         AC_CHECK_TYPE, AC_CHECK_TYPES.
4625         * doc/autoconf.texi (Generic types): C types must be type-names
4626         (the C terminology), not type-ids (the C++ term).  C++ types
4627         must not be anonymous.
4628         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
4629         for C++; this drops support for anonymous struct and union types,
4630         which were problematic anyway.
4631         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
4632         for C++.
4634 2007-04-12  Jim Meyering  <jim@meyering.net>
4636         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
4638 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4640         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
4641         to prefer a link source from the build tree, if it exists.
4642         Report by Pallav Gupta <pallavgupta@gmail.com>.
4644 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
4646         * doc/autoconf.texi (Generic Types): Document the restrictions
4647         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
4648         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
4649         with objects too.  Document the restrictions on its use.
4650         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
4651         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
4652         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
4653         works but the latter doesn't, then it's a valid type.
4654         This lets people use function types and so forth.
4655         For C++ there doesn't seem to be a simple solution, so leave it alone.
4656         (AC_CHECK_SIZEOF): Allow argument to be a variable.
4657         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
4658         AC_CHECK_TYPE; that wasn't documented or necessary.
4660 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
4662         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
4663         when cross-compiling.
4665 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
4667         * doc/autoconf.texi (External Software): Fix a typo in the
4668         previous change.
4670 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4672         * doc/autoconf.texi (External Software, Package Options):
4673         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
4675 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4677         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
4678         obsolescent.  Suggested by Bruno Haible.
4679         * NEWS: Document this.
4681 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4683         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
4684         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
4685         default still has the problem.  Problem reported by Bruce Korb.
4687 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
4688         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4690         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
4691         comment in the generated config.status.
4693 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
4695         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
4697 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
4699         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
4700         command and case statements to make it a bit clearer and describe
4701         more pitfalls.
4703 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4705         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
4706         checks for unsigned long long int.
4708 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4710         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
4711         nonstandard grep R.E. escape sequences.
4713 2007-03-17  Jim Meyering  <jim@meyering.net>
4715         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
4716         (Limitations of Usual Tools): Also list \< and \>, and mention that
4717         HP-UX's grep, like the one from Solaris, does not support that syntax.
4719 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
4721         * doc/autoconf.texi (Specifying Names): `--host' does not
4722         change the build type.
4724 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4726         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
4727         suggests AC_CONFIG_HEADERS.
4728         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
4729         AC_CONFIG_HEADERS.  Problem reported by
4730         Peter O'Gorman.
4732 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4734         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
4735         Problem reported by Paolo Bonzini in:
4736         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
4737         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
4738         universal binaries.  Problem reported by Elias Pipping.
4740 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4742         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
4743         * doc/autoconf.texi (C Compiler): Document this.  There is a new
4744         extra argument ACTION-IF-UNIVERSAL.
4745         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
4746         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
4747         Reindent for sanity's sake.
4749 2007-02-24  Eric Blake  <ebb9@byu.net>
4751         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4752         copyright.
4753         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
4754         * lib/autotest/general.m4 (AT_INIT): Likewise.
4755         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
4757 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4759         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
4760         status of rm so we know when it failed.
4761         If cleaning of test dir failed before running the test, warn.
4762         Output the line separator in verbose mode before the warning
4763         to make clear the warning belongs to the following test.
4765 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4767         * doc/autoconf.texi (Parentheses): Mention problem with (( in
4768         shells.
4770 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4771         and Paul Eggert  <eggert@cs.ucla.edu>
4773         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
4774         errors introduced in last change.
4776 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4778         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
4779         an actual carriage return.  Use "ac_cr" to contain the actual
4780         carriage return.
4781         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
4782         with traditional Awk and begin.
4783         * tests/torture.at (Limitations of Builtins): Document the problem
4784         with Bash 2.03 printf.
4785         (Substitute and define special characters):
4786         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
4788 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
4790         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
4791         input from /dev/null in awk test, so even Solaris /usr/bin/awk
4792         will not wait for input with a script containing only a BEGIN
4793         rule.
4795 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4797         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
4798         requirements.
4799         * README: Likewise.
4801 2007-02-02  Eric Blake  <ebb9@byu.net>
4803         * NEWS: Update copyright.
4805         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
4806         broken.
4807         * configure.ac: Update error message.
4808         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
4809         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
4810         by Stepan Kasal:
4811         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
4813 2007-01-31  Eric Blake  <ebb9@byu.net>
4815         * THANKS (people): Update.
4817 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4819         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
4820         latest version.
4821         (Shell Substitutions): Note problems with @{var:=value} etc.
4822         Add a new section for problems with @{#var} etc.  Problem noted
4823         by Ralf Wildenhues.  See:
4824         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
4826 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4828         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
4829         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
4830         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
4831         substitution will still be done by the special code.
4832         Report by Jim Meyering.
4834         * doc/autoconf.texi (File System Conventions): Mention that
4835         $PATH_SEPARATOR is for the build system only.
4836         Report by Keith Marshall.
4838 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4840         * doc/autoconf.texi (Setting Output Variables): Mention that
4841         all non-NUL characters are ok in substituted values.
4842         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
4843         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
4844         carriage return for $AWK, needed for BSD awk.
4845         * tests/torture.at (Substitute and define special characters):
4846         Test all 8 bit non-NUL characters.
4847         Report against Automake by Patrick Welche.
4849 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
4851         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
4853 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4855         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
4856         early on the reader side, drop stderr of the input to avoid
4857         `broken pipe' error output; this may happen even with shell
4858         builtin `echo' of some bash versions.  Reports by Ian Macdonald
4859         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
4861 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4863         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
4864         separate items of `ac_user_opts', to avoid long lines.
4865         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
4867 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4869         * doc/autoconf.texi: Fix some typos.
4871 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4873         Fix some wording problems noted by Paolo Bonzini in:
4874         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
4875         * doc/autoconf.texi (Signed Overflow Examples): Give more
4876         discussion about the allow_superuser_privileges example,
4877         and change it a bit to make things clearer.
4878         (Optimization and Wraparound): Clarify whether the compiler
4879         will generate an infinite loop for the example derived from
4880         Autoconf's mktime test.
4881         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
4882         Also, clarify unsigned multiplication overflow.
4884 2007-01-04  Eric Blake  <ebb9@byu.net>
4886         * bin/Makefile.am (RELEASE_YEAR): New macro.
4887         (edit): Use it to supply correct copyright year to scripts.
4888         * bin/autoconf.as (version): Use it.
4889         * bin/autoheader.in ($version): Likewise.
4890         * bin/autom4te.in ($version): Likewise.
4891         * bin/autoreconf.in ($version): Likewise.
4892         * bin/autoscan.in ($version): Likewise.
4893         * bin/autoupdate.in ($version): Likewise.
4894         * bin/ifnames.in ($version): Likewise.
4896 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4898         * doc/autoconf.texi (Integer Overflow): Revised based on today's
4899         feedback.  The most important changes document what happens when
4900         you convert an out-of-range value to a signed integer type, and
4901         say that (sum < a) != (b < 0) reliably detects overflow when sum =
4902         a + b.
4904         * doc/autoconf.texi (Integer Overflow): Greatly expand and
4905         rewrite, taking notions from the recent discussion on the gcc and
4906         autoconf mailing lists; please see
4907         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
4908         and follow the many links.
4909         (Integer Overflow Basics, Signed Overflow Examples):
4910         (Optimization and Wraparound, Signed Overflow Advice):
4911         (Signed Integer Division): New sections.
4913 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
4915         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
4916         preprocessor macro arguments in traced name.
4917         * doc/autoconf.texi (Defining symbols): Document longstanding
4918         support for AC_DEFINE-ing macros with arguments, and document
4919         behavior when the same variable has multiple AC_DEFINEs.
4920         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
4921         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
4922         macros directly, giving much shorter and simpler code.
4924 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
4926         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
4927         space before "$ac_configure_args" to prevent a 'config.status
4928         --recheck' failure if ac_configure_args doesn't contain a leading
4929         space.  This works around a problem with the XEmacs configure.ac,
4930         which uses the (undocumented) ac_configure_args variable
4931         inconsistently with Autoconf.
4933 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4935         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
4936         Include <limits.h>, and use its INT_MAX to rewrite the
4937         j loop so that it does not overflow 'int'.  Problem reported by
4938         Ralf Wildenhues in
4939         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
4940         Play it safe by shifting left by 1 rather than multiplying by 2,
4941         as GCC is less likely to optimize this away when the value
4942         is signed (when it assumes overflow leads to undefined behavior).
4943         Also, don't assume time_t uses two's complement.
4945 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4947         * tests/torture.at (Substitute a 2000-byte string): Avoid using
4948         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
4949         dumps core on it.  Report by Tim Rice.
4951 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
4953         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
4954         --disable-option-checking to --help output even when
4955         AC_PRESERVE_HELP_ORDER is not used.
4956         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
4957         --with argument, rather than argument with [-.] replaced by
4958         underscores.
4959         * NEWS: Fix typo in previous change; the news was in the
4960         wrong section.
4962 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4964         * NEWS: Warnings are now generated by default for unknown
4965         --enable-* and --with-* options.
4966         * doc/autoconf.texi (Option Checking): Renamed from
4967         (Configure Option Checking).  Tighten up the wording a bit.
4968         (External Software, Package Options): Cross-reference to Option
4969         Checking, and use this to shorten our section.
4970         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
4971         "$x" to test "x$foo" != x.
4972         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
4973         Don't warn if $enable_option_checking is "no".
4974         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
4975         ac_unrecognized_opts to the empty string.
4976         Don't echo the unrecognized opts, as this might mishandle
4977         backslashes or leading -.
4978         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
4979         usage next to the other --disable-FEATURE options in the
4980         help string.
4982 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
4984         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
4985         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
4986         Print warning for unrecognized --with and --enable options
4987         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
4988         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
4989         Disable option checking when subdirs are configured.
4990         (AC_OUTPUT): If warnings are enabled, print warning about
4991         unrecognized --with and --enable options at the end of
4992         the configure output (as well as at the beginning).
4993         * doc/autoconf.texi (Option Checking): New node.
4994         Document new option warning functionality.
4996 2006-12-16  Eric Blake  <ebb9@byu.net>
4998         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
4999         * NEWS: Start news for current version.
5001 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5003         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
5004         Define HAVE_GETMNTENT to 1, not to the empty string.
5005         Problem originally reported by Jochen Friedrich in
5006         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
5008         This change prompted by a problem report by Andrey Simonenko in
5009         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
5010         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
5011         object-like macros only, in the traditional portable character
5012         set.
5013         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
5014         Warn about attempts to define things that are not identifiers.
5015         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
5016         awful hack that AC_DEFINEd macro names containing parentheses.
5018 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5020         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
5021         too drastic, even if Texinfo in theory requires it for info mode.
5023         (config.status Invocation): Renamed back from Recreating a
5024         Configuration).
5025         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
5026         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
5028 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
5030         * NEWS: Version 2.61a.
5032 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
5033         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5035         * NEWS: Document changes with echo and printf, and the lack
5036         of limits on the total size of multi-line values of substituted
5037         variables, and the AC_FUNC_FSEEKO fix.
5039 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5041         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
5042         Writing configure.ac.
5043         (Autoconf Input Layout): Renamed from configure.ac Layout.
5044         (Recreating a Configuration): Renamed from config.status Invocation.
5045         (Obsolete Recreation): Renamed from Obsolete config.status Use.
5046         (acconfig Header): Renamed from acconfig.h.
5047         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
5048         (Writing Testsuites): Renamed from Writing testsuite.at.
5049         (Autom4te Cache): Renamed from autom4te.cache.
5051         * BUGS: Remove mention of VPATH problem, since it's now documented
5052         not to be a bug in the Autoconf build procedure itself, but rather
5053         a problem with the proprietary `make' programs.
5055         * doc/autoconf.texi (Build Directories): Add a cross reference
5056         to VPATH and Make.
5058         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
5059         * doc/standards.texi: Sync from gnulib.
5061         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
5062         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
5063         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
5064         generated automatically.
5066 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
5068         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
5069         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
5070         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
5072 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5074         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
5075         `CEOF$ac_eof' special marker, the awk script cannot contain a
5076         line matching `^CEOF', so this is not needed any more.
5077         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
5078         special marker in the test.
5080 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
5082         * tests/tools.at (autom4te preselections): Use `find -newer';
5083         remove one of the sleeps.
5085         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
5086         more readable, using ...
5087         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
5089         * doc/autoconf.texi (autoheader Invocation): Do not double-
5090         quote the parameter of `AH_BOTTOM' in the example.
5092 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
5094         * doc/autoconf.texi (Configuration Headers): Remove the
5095         example with multiple input files.
5096         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
5097         multiple input files.
5099 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5101         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
5102         creating the awk substitution script, handle one input line at a
5103         time, so that the maximum length of a substituted (multi-line)
5104         value is not limited by the size of the sed pattern space.
5105         The trade-off is a slightly repetitive sed script.
5106         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
5107         can only have up to 7 characters, due to Solaris 10 /bin/sed.
5108         * tests/torture.at (Substitute a 2000-byte string): Increase the
5109         test with several long lines, they should not be caught by sed
5110         limits any more.
5112         * tests/tools.at (autom4te preselections): New test, to flag
5113         entries missing from autom4te.cfg.
5114         Report by David Byron <dbyron@hheld.com>.
5116         * tests/torture.at (Substitute a 2000-byte string): Actually use
5117         AC_PROG_AWK, so the last change works as intended.
5118         (Substitute and define special characters): Likewise.
5119         (Substitute a newline): Likewise.
5121         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
5122         instead of `awk' consistently.
5123         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
5124         * tests/torture.at (Torturing config.status): Test both the
5125         result of AC_PROG_AWK and plain awk.
5126         (Substitute a 2000-byte string): Likewise.
5127         (Substitute and define special characters): Likewise.
5128         (Substitute a newline): Likewise.
5130 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5132         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
5133         can be assigned to a function pointer.  Problem reported by
5134         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
5135         part of a patch by Ralf Wildenhues in that same bug report.
5137 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5139         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
5140         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
5142 2006-12-01  Eric Blake  <ebb9@byu.net>
5144         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
5145         cross-compiling from cygwin to mingw.
5146         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
5147         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
5148         to lib/autoconf/c.m4.
5150 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5152         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
5153         string for more reliable failure.  Wrap the entire test that
5154         causes the broken Solaris printf to dump core, in a subshell,
5155         so the segmentation fault message is reliably suppressed.
5156         Fix shell expansion errors by using /usr/ucb/echo always;
5157         avoid an error on systems without it by another subshell.
5158         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
5159         subshell-$as_echo to `as_echo', for better error message.
5161 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5163         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
5164         `BASH_SOURCE' contain a newline, set them to empty, as they may
5165         not be unset.
5167 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
5169         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
5170         years and is too hard to maintain now.  The last straw was
5171         reported by Jerker Baeck in
5172         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
5173         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
5174         * doc/autoconf.texi (Particular Functions): Move
5175         AC_FUNC_SETVBUF_REVERSED from here...
5176         (Obsolete Macros): ... to here.  Say that it does nothing now.
5177         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
5178         Turn into (almost) a no-op.
5180         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
5181         (AC_C_VOLATILE):
5182         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
5183         These macros are obsolescent and new applications shouldn't need them.
5184         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
5185         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
5186         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
5187         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
5188         (AC_FUNC_VPRINTF): Likewise.
5189         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
5190         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
5191         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
5193         * doc/autoconf.texi (Setting Output Variables): Mention that
5194         @VAR1@VAR2 has unspecified behavior.  Problem reported by
5195         Ralf Wildenhues.
5196         * NEWS: Mention this.
5198         * Makefile.am: Put only a single '#' into the copyright notice,
5199         so that it's also present in the output file.  Standardize wording
5200         in makefile copyright notices to match GNU coding standards.
5201         * bin/Makefile.am: Likewise.
5202         * doc/Makefile.am: Likewise.
5203         * lib/Makefile.am: Likewise.
5204         * lib/freeze.mk: Likewise.
5205         * lib/autoconf/Makefile.am: Likewise.
5206         * lib/autoscan/Makefile.am: Likewise.
5207         * lib/autotest/Makefile.am: Likewise.
5208         * lib/m4sugar/Makefile.am: Likewise.
5209         * man/Makefile.am: Likewise.
5210         * tests/Makefile.am: Likewise.
5211         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
5212         one-line file.
5214 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5216         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
5217         in the sed script that mangles the awk script: delete up to the
5218         first exclamation mark only.
5219         * tests/torture.at (Substitute and define special characters):
5220         Test '!' too.
5222 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5224         Rewrite config files generation: avoid quadratic growth in
5225         the number of substituted variables by using awk instead of sed
5226         for the bulk of the substitutions.
5227         * NEWS: Mention this.
5228         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
5229         forbidden in the output (and thus input) file.
5230         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
5231         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
5232         generate just one large awk script for substitutions,
5233         eliminating much of the earlier complexity, while adding some
5234         new complexity.  Only expand the substitution templates at
5235         configure time, for smaller configure script size.  If
5236         _AC_SUBST_FILES are used, test 'awk' for working getline support
5237         at config.status time.  If absent, interpolate through the
5238         shell.  The awk script was written with much help
5239         from Paolo Bonzini and Paul Eggert.
5240         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
5241         (_AC_SED_FRAG_NUM): Likewise.
5242         (_AC_SUBST_CMDS): Renamed from...
5243         (_AC_SED_CMDS): ...this.
5244         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
5245         * tests/torture.at (Substitute a 2000-byte string): Also
5246         substitute a line with 1000 words, and a variable with several
5247         long lines.
5248         (Substitute and define special characters): Test awk special
5249         characters, and put substitution input strings `@foo@' in the
5250         output, to test that no recursion happens; test several other
5251         combinations from Paolo Bonzini.
5253 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5255         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
5256         that replaced echo with AS_ECHO where this wasn't necessary.
5257         Problem reportd by Ralf Wildenhues.
5258         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
5259         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
5260         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
5262 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5264         * lib/freeze.mk (GREP): Removed, no need to initialize this.
5266 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
5268         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
5269         that traditional Awk lacks 3-arg "split".  It has it.
5270         Mention that FS must be a single character, and a few other
5271         99-byte limits of traditional Awk.
5272         Mention that if (i in a) doesn't work with traditional Awk.
5274 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5276         * tests/autotest.at (BSx641-newline in command):
5277         (BS-BS-newline in command, BSx640-newline in command):
5278         (Newline-CODE-BS-newline in command):
5279         (Single-quote-BS-newline in command):
5280         (Single-quote-newline-BS-newline in command):
5281         Use printf '%s\n' instead of echo, for portability to hosts
5282         where echo interprets backslashes.  This will break on hosts
5283         that lack printf, but for now let's assume all such hosts
5284         are dead (if not, we should get reports of test failures).
5286 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5288         'echo' has some portability problems, when given a first argument
5289         with a leading '-', or when given any argument containing '\'.
5290         Avoid using 'echo' in these cases.
5291         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
5292         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
5293         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5294         * lib/autotest/general.m4 (AT_INIT): Likewise.
5295         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
5296         argument might be unportable.
5297         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
5298         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
5299         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
5300         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
5301         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
5302         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
5303         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
5304         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
5305         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
5306         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
5307         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
5308         (AC_PROG_MAKE_SET): Likewise.
5309         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
5310         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
5311         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
5312         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
5313         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
5314         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
5315         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
5316         * bin/autoconf.as: Redo verbose flag implementation, as the old
5317         scheme wouldn't work with AS_ECHO.
5318         * lib/autotest/general.m4 (AT_INIT): Likewise.
5319         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
5320         Don't use ECHO_T, since ECHO_N is now reliable.
5321         * lib/autotest/general.m4 (AT_INIT): Likewise.
5322         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
5323         rather than using a here-document to put the script into a file.
5324         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
5325         use AS_ECHO.
5326         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
5327         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
5328         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
5329         bug, but we might as well stop using ECHO_N and ECHO_C internally.
5330         * lib/autotest/general.m4 (AT_SETUP): Likewise.
5331         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
5332         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5333         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
5334         operand, as AS_ECHO requires.  Avoid double file name expansion.
5335         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
5336         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
5337         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
5338         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
5339         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
5340         Double-quote strings that would otherwise contain M4 comments.
5341         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
5343         * configure.ac (AC_INIT): Bump to 2.61a.
5344         * NEWS: Likewise.
5346 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5348         Version 2.61.
5350         * configure.ac (AC_INIT): Bump to 2.61.
5351         * NEWS: Likewise.
5353         * tests/autotest.at (Macro with backslash in a test title):
5354         Comment out for now, as this tests neither fails nor passes
5355         reliably.  Problem reported by Ralf Wildenhues.
5357 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
5359         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
5360         in previous change, which caused test failures.
5362 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
5364         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
5365         code for --enable, --disable, --with, and --without to...
5366         (_AC_INIT_PARSE_ENABLE): ... a new macro.
5367         * doc/autoconf.texi (Package Options):
5368         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
5370 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
5372         Import these changes from config via gnulib:
5374         2006-11-15  Ben Elliston  <bje@gnu.org>
5376         From Josselin Mouette <joss@debian.org>:
5377         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
5379         2006-11-08  Ben Elliston  <bje@gnu.org>
5381         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
5383         2006-11-07  Steve Woodford  <scw@NetBSD.org>
5384                     Ben Elliston  <bje@gnu.org>
5386         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
5387         * build-aux/config.sub (sh5el): New basic_machine.
5390         Import this change from coreutils:
5392         2006-02-13  Jim Meyering  <jim@meyering.net>
5394         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
5397         Import this change from gnustandards via gnulib:
5399         2006-11-15  Karl Berry  <karl@gnu.org>
5401         * standards.texi: core -> memory, throughout.
5402         (CPU Portability): show correct example of calling write
5403         on a char value; thanks to Paul Eggert for the code.
5404         Both of these suggestions from Eugene Y. Vasserman.
5407         Import these changes from texinfo via gnulib:
5409         2006-11-08  Karl Berry  <karl@gnu.org>
5411         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
5412           as well as pdf images, since they are supported in pdftex with
5413           no further ado.
5415         2006-11-05  Karl Berry  <karl@gnu.org>
5417         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
5419 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
5421         * NEWS: Document the AC_ARG_WITH change.
5423 2006-11-13  Bruno Haible  <bruno@clisp.org>
5425         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
5426         options, transliterate also dots to underscores.
5427         (_AC_ENABLE_IF): Transliterate also dots to underscores.
5428         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
5429         first argument may also contain dots.
5431 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5433         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
5434         benefit of platforms like Solaris+GCC where it is common to have a
5435         non-working g++ installation.
5437 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5438         and Joel E. Denny  <jdenny@ces.clemson.edu>
5439         and Paul Eggert  <eggert@cs.ucla.edu>
5441         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
5442         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
5443         ./micro-suite.
5445 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
5447         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
5448         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
5449         Imported from a similar patch to gnulib by Bruno Haible.
5451 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
5453         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
5454         * doc/autoconf.texi (C Compiler): Document them.
5455         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
5456         New macros, taken from gnulib.
5458 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
5460         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
5461         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
5462         Matthew Woehlke.
5464 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5466         * tests/torture.at (Configuring subdirectories): Do not skip
5467         Automake 1.10 nor future Automake 11.1 (sic).
5469 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
5470         and Stepan Kasal  <kasal@ucw.cz>
5472         Handle special characters in test case titles correctly.
5473         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
5474         properly.
5475         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
5476         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
5477         argument.  Extend to check titles printed by ./micro-suite and
5478         ./micro-suite -l and the title in micro-suite.log.
5479         (Backquote in a test title,
5480         Single-quote in a test title,
5481         Double-quote in a test title): Don't expect failure anymore.
5482         (Backslash in a test title): Put a non-whitespace character after the
5483         backslash so that Bourne shells might actually see it as an escape
5484         sequence.
5485         (Brackets in a test title,
5486         Pound in a test title,
5487         Comma in a test title,
5488         Quoted Macro in a test title,
5489         Macro in a test title,
5490         Macro with single-quote in a test title): New tests.
5491         (Macro with backquote in a test title,
5492         Macro with double-quote in a test title,
5493         Macro with backslash in a test title): New tests expected to fail.
5494         * tests/torture.at (#define header templates): M4-quote this title in
5495         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
5496         The visible effect was a stray [] in the testsuite output.
5498 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5500         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
5501         `trap ... 0' inside a function, for AIX sh.
5503 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5505         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
5506         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
5507         5363) simply issues a warning when dividing by zero at compile
5508         time.  Problem reported by Elias Pipping.
5510 2006-10-26  Eric Blake  <ebb9@byu.net>
5512         * THANKS: Update.
5513         * doc/autoconf.texi (Evaluation Macros): Improve the example to
5514         show effect on macros that expand with commas.
5515         Reported by Joel E. Denny.
5517         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5518         Also work with M4 1.4.8.
5520 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5522         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
5523         Jim Meyering.
5525 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
5527         * tests/tools.at (autom4te --force): New test, verifies that
5528         `--force' always rewrites the output file.
5530 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5532         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
5533         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
5535 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
5537         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
5539 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5541         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5542         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
5543         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
5544         reported by Nelson H. F. Beebe for Coreutils 6.4.
5546         * tests/tools.at (autoconf --trace: user macros): Remove test
5547         for tracing multiline macros, since m4 1.4.7a uses a different
5548         way to number lines.  Problem reported by Ralf Wildenhues.
5550 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
5552         * bin/autom4te.in (handle_m4): Do not redirect stdin to
5553         /dev/null since the heuristics for interactive behaviour was
5554         fixed in CVS m4.
5556         * bin/autom4te.in: With --force, always refresh the output
5557         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
5559         * bin/autoconf.as: Fix the verbose message at the end.
5561 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5563         * configure.ac (AC_INIT): Bump to 2.60c.
5564         * NEWS: Likewise.
5566 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5568         * NEWS: Version 2.60b.
5570         Import this change from Texinfo:
5571         2006-10-15  Karl Berry  <karl@gnu.org>
5572         * build-aux/texinfo.tex: automake 1.10
5574         * NEWS: Remove AC_CACHE_CHECK_INT.
5575         * doc/autoconf.texi (Caching Results): Likewise.
5576         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
5577         AC_CACHE_CHECK_INT, since it's no longer public.
5578         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
5579         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
5581 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5583         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
5585 2006-10-19  Eric Blake  <ebb9@byu.net>
5587         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
5588         (m4_maketemp): Avoid warnings with M4 1.9a.
5589         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
5590         m4_mkstemp.
5591         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
5592         * NEWS: Likewise.
5594 2006-10-16  Eric Blake  <ebb9@byu.net>
5596         * doc/autoconf.texi (Setting Output Variables): Fix typo.
5598         * bin/autoconf.as (version): Reword to match GNU Coding
5599         Standards.
5600         * bin/autoheader.in (version): Likewise.
5601         * bin/autom4te.in (version): Likewise.
5602         * bin/autoreconf.in (version): Likewise.
5603         * bin/autoscan.in (version): Likewise.
5604         * bin/autoupdate.in (version): Likewise.
5605         * bin/ifnames.in (version): Likewise.
5607 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
5609         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
5610         looking for special shell characters.
5611         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
5612         macro defined by AS_VAR_PUSHDEF before passing it as a
5613         parameter.
5614         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
5615         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
5616         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
5617         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
5618         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
5619         Likewise.
5620         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
5621         AS_VAR_* properly.
5622         * tests/m4sh.at (AS_LITERAL_IF): New test.
5624 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
5626         (Imported from Automake.)
5627         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
5628         which incorrectly sets the mode of an existing destination
5629         directory.  In some cases the unpatched install-sh could do the
5630         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
5631         system.  We hope this is rare in practice, but it's clearly worth
5632         fixing.  Problem reported by Alex Unleashed in
5633         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
5634         Also, don't bother to check for -m bugs unless we're using -m;
5635         suggested by Stepan Kasal.
5637 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
5639         Import this change from Automake:
5641         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
5642         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
5643         is enabled by default with gnu and gnits strictness.
5644         Report from Bruno Haible.
5646         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
5647         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
5648         gnu and gnits modes.
5650         Import this change from Config:
5652         2006-09-20  Ben Elliston  <bje@gnu.org>
5653         * build-aux/config.sub (score, score-*): New.
5655         Import this change from Gnulib:
5657         2006-09-16  Karl Berry  <karl@gnu.org>
5658         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
5659         to avoid sectioning errors.
5661         Import these changes from Texinfo:
5663         2006-10-04  Karl Berry  <karl@gnu.org>
5664         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
5665         (\quoteexpand): rename to \rquoteexpand.
5666         (\codequoteleft): new def, to look for @set codequotebacktick.
5667         (\lquoteexpand, \quoteexpand): new defs.
5668         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
5669         (\code): must use new \...Char values, since now ` is active.
5671         2006-08-26  Karl Berry  <karl@gnu.org>
5672         * build-aux/texinfo.tex (\textdegree): New command.
5674         2006-08-12  Karl Berry  <karl@gnu.org>
5675         * build-aux/texinfo.tex (error \box0): smaller font.
5677 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5679         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
5681 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
5683         * doc/autoconf.texi (Autoheader Macros): Warn that the text
5684         added to the template can get mangled.
5686 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5688         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
5689         include the default headers, and redefine obstack_chunk_alloc
5690         and obstack_chunk_free.  Fixes false failure with glibc.
5692 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
5694         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
5695         for backward compatibility with Libtool 1.5.22.  Problem reported
5696         by Ralf Wildenhues.
5698 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5700         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
5701         AC_PROG_CC.
5702         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
5704 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5706         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
5707         the NonStop platform.
5708         * doc/autoconf.texi (Posix Variants): Likewise.
5709         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5711         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
5712         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
5713         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
5714         Use a better substitute, by inspecting the output of "ls"
5715         rather than just using ":".
5716         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
5717         rather than AS_EXECUTABLE_P, since we needn't worry about
5718         non-regular files here.
5720         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
5721         due to configuration hassles with this.  See Tonya Underwood's report
5722         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
5723         * doc/autoconf.texi (Special Shell Variables): Likewise.
5725 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5726             Stepan Kasal  <kasal@ucw.cz>
5728         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
5729         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
5731 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
5733         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
5734           initialization which is not inherited through the environment
5735         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
5736         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
5738 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
5740         * doc/autoconf.texi (Limitations of Usual Tools): Describe
5741         problems with mkdir -p -m.
5743 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
5745         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
5746         comment about ac_cpp_err; it was incorrect, and anyway
5747         ac_cpp_err is being removed below.
5748         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
5749         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
5750         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
5751         nobody uses it.
5752         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
5753         with werror_flag and conftest.err and so forth.  This is more
5754         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
5755         and anyway the user shouldn't normally want to see this gorp logged.
5756         Problem reported by Ralf Wildenhues.
5757         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
5758         empty, not 'no', since the rest of the code uses 'test -z'.
5760 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
5762         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
5763         Use a single call to AC_DO_TOKENS rather than multiple, for
5764         efficiency.
5765         (_AC_LINK_IFELSE): Test that resulting file is executable.
5766         Problem reported by mwoehlke in
5767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
5769         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
5770         than creating a file to use with test -x; this is much faster.
5772 2006-10-02  Bruno Haible  <bruno@clisp.org>
5774         * lib/autom4te.in (Automake-preselections): Add
5775         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
5777 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
5779         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
5780         standard error, `experr' should be used, not `expout'.
5782 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5784         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
5785         fseeko testing program twice; just use the earlier result.
5786         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5787         Set cache var to 'unknown' (not 'no') if leaving the macro unset
5788         still doesn't let the program compile.
5789         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
5790         failed.
5792         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
5793         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
5794         include it, without including anything else.
5795         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
5796         expressions.
5797         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
5799 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5801         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
5802         `error.h', and include it, for a `error_at_line' prototype.
5803         Use a nonempty format string in the link test.
5804         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
5805         for a declaration of wait3.
5807 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5809         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
5810         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
5811         can apply to constants too, and that it checks for macro defns.
5812         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
5813         and simply cast the identifier to void.  This handles structure
5814         values.  Problem reported by Ralf Wildenhues.
5815         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
5817 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5819         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
5820         structure, and function symbols.
5822 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5824         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
5825         member.
5827 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5829         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
5830         * README: Likewise.
5831         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5833 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5834         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5836         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
5837         warnings (uninitialized value).
5838         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
5839         present.
5840         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
5841         parentheses.
5842         (AC_STRUCT_TM): Likewise, avoid unused variables.
5844 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5846         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
5847         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
5848         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
5849         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
5850         Report by Olly Betts.
5852 2006-09-19  Eric Blake  <ebb9@byu.net>
5854         * m4/m4.m4: Change copyright.
5855         * configure: Regenerate.
5856         * Makefile.in: Likewise.
5857         * bin/Makefile.in: Likewise.
5858         * doc/Makefile.in: Likewise.
5859         * lib/Makefile.in: Likewise.
5860         * lib/Autom4te/Makefile.in: Likewise.
5861         * lib/autoconf/Makefile.in: Likewise.
5862         * lib/autoscan/Makefile.in: Likewise.
5863         * lib/autotest/Makefile.in: Likewise.
5864         * lib/emacs/Makefile.in: Likewise.
5865         * lib/m4sugar/Makefile.in: Likewise.
5866         * man/Makefile.in: Likewise.
5867         * tests/Makefile.in: Likewise.
5869         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
5870         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
5871         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
5872         --error-output, to avoid warnings with M4 2.0.
5874 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
5876         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
5877           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
5878         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
5880 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
5882         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
5883         expansion of AC_CHECK_FUNCS.
5885 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
5887         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
5888         mistaken comment: the path has to be relative; do not use
5889         the path at runtime.
5891 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5893         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
5894         argument to `--prefix' for sub-configure scripts.
5895         Pass `--silent' to sub-configure scripts.
5896         * tests/torture.at (Configuring subdirectories): Add tests
5897         for both changes.
5898         * doc/autoconf.texi (Setting Output Variables): Fix example to
5899         not show `--silent' being passed to a `configure' re-run.
5901 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5903         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
5904         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
5905         for the existence of the directory at configure-time.  That's
5906         too late, anyway.  Problem reported by Stefan Seefeld.
5908         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
5909         7.1.4 /usr/bin/posix/sh described by Tim Rice in
5910         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
5912 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
5914         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
5915         works with GNU M4 1.4.3 again; make the normalized form
5916         match the current m4 message; fix the description.
5917         * test/tools.at (autom4te cache): Adapt to the change.
5919 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5921         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
5922         to catch glibc bug 2821
5923         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5925         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
5926         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
5927         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
5928         assume C89.
5930 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
5932         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
5933         preselections ...
5934         (Autoconf): ... here.
5935         (Autoscan-preselections): Delete.
5937 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
5939         * lib/autom4te.in (Automake-preselections): Preselect
5940         AM_ENABLE_MULTILIB.
5942 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5944         * doc/autoconf.texi (Preset Output Variables): srcdir and
5945         top_srcdir are not necessarily relative.  Problem reported
5946         by Dries Kimpe.
5948 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5950         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
5951         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
5952         accept files with extension `.f'.  For consistency, also prefer
5953         xlf over f77.
5954         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
5955         from last patch.
5957 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
5959         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
5960         of ERLANG_LIB_VER_* variables.
5961         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
5962         variables.
5964 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5965         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5967         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
5968         bugs of Bash 2.01 and 2.05a.
5969         (Fortran Compiler): Document that AC_PROG_CC should be called
5970         before AC_PROG_FC, due to a bug in Autoconf.
5972 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5974         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
5975         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
5976         except the first two arguments are reversed.
5977         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
5978         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
5979         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
5980         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
5981         equivalent to the old AC_COMPUTE_INT.
5982         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
5983         All uses changed to AC_CACHE_CHECK_INT.
5984         * tests/base.at (AC_CACHE_CHECK_INT): New test.
5985         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
5987 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5989         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
5990         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
5991         programs should use their Gnulib counterparts.
5992         * doc/autoconf.texi (Particular Functions): Likewise.
5993         (Macro Names, testsuite Invocation): Replace uses of these
5994         obsolete macros with uses of non-obsolete macros.
5996 2006-08-29  Eric Blake  <ebb9@byu.net>
5998         * configure.ac (AC_INIT): Bump to 2.60b.
5999         * NEWS: Update.
6001 2006-08-28  Eric Blake  <ebb9@byu.net>
6003         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
6004         mistakenly swapped on 2006-08-15.
6006 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6008         * NEWS: Version 2.60a.
6010 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
6012         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
6013         file created by the PGI compiler.
6015 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
6017         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
6018         simplify the code.
6020 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6022         Fix Lex library problem reported to us by Julio Garvia.
6023         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
6024         for the default, which the user can override.
6025         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
6026         deal with LEXLIB.
6027         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
6028         didn't work if some values were cached but not others.  Test for
6029         broken lex libraries like native ia64-hp-hpux11.22; see
6030         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
6031         work around the problem by preferring an empty LEXLIB to -lfl or
6032         -ll.  Let the user set LEXLIB='' to indicate no library needed.
6034         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
6035         * README: Likewise.
6036         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6038 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6040         Rework to use more-modern build style.
6041         Many files are renamed; all uses of their names were changed.
6042         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
6043         * .x-sc_useless_cpp_parens: New file.
6044         * build-aux/config.guess: Renamed from config/config.guess.  Update.
6045         * build-aux/config.sub: Renamed from config/config.sub.  Update.
6046         * build-aux/elisp-comp: Renamed from config/elisp-comp.
6047         * build-aux/install-sh: Renamed from config/install-sh.  Update.
6048         * build-aux/mdate-sh: Renamed from config/mdate-sh.
6049         * build-aux/missing: Renamed from config/missing.
6050         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
6051         * build-aux/vc-list-files: Renamed from config/vc-list-files.
6052         * config/Makefile.am: Removed.
6053         * config/mkinstalldirs: Removed.
6054         * config/move-if-change: Removed.
6055         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
6056         * Makefile.am (SUBDIRS): Remove config.
6057         (ACLOCAL_AMFLAGS): Include from m4, not config.
6058         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
6059         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
6060         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
6061         Fail if there's an error.
6062         * Makefile.cfg (move_if_change): Remove.
6063         (wget_files): Remove.
6064         (cvs_executable_files): New macro.
6065         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
6066         (executable-update): Use $(cvs_executable_files).
6067         (local-checks-to-skip): Remove.
6068         * Makefile.maint: Merge from coreutils, plus add our own changes
6069         (gzip_rsyncable): New macro.
6070         (GZIP_ENV): Use it.
6071         (CVS_LIST): Use build-aux/vc-list-files.
6072         (VERSION_REGEXP): New macro.
6073         (local-checks-available): Add patch-check, $(syntax-check-rules),
6074         check-AUTHORS.
6075         (syntax-check-rules): Compute dynamically.
6076         (sc_cast_of_x_alloc_return_value): Work even if no source files.
6077         (sc_cast_of_alloca_return_value): Likewise.
6078         (sc_prohibit_atoi_atof): Simplify regexp.
6079         (sc_no_if_have_config_h, sc_require_config_h):
6080         (sc_prohibit_assert_without_use,
6081         (sc_obsolete_symbols): Check for O_NDELAY.
6082         (sc_texi_notab): Remove.
6083         (sc-changelog): Don't make an exception for '----' lines.
6084         (.re-list): Remove, so we don't have a junk file behind.
6085         (sc_system_h_headers): Remove the need for .re-list.
6086         (sc_the_the):  New rule.
6087         (sc_tight_scope): Simplify.
6088         (sc_trailing_blank): Renamed from sc_trailing_space.
6089         (longopt_re): New macro.
6090         (sc_two_space_separator_in_usage): New rule.
6091         (sc_unmarked_diagnostics): Look at all files under CVS.
6092         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
6093         (news-date-check, changelog-check): Version is OK.
6094         (po-check): Look for lib files even if not in CVS.
6095         (copyright-check): Use $() not ``.
6096         (maintainer-distcheck): Do not depend on changelog-check.
6097         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
6098         Also check for -Wpointer-arith.
6099         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
6100         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
6101         Remove.
6102         (announcement): Add --gpg-key-id arg.
6103         (cvs-sv): Remove.
6104         (move_if_change): Just use mv.
6105         (local_updates: Remove wget-update, po-update.
6106         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
6107         (config.guess-url_prefix, config.sub-url_prefix): Remove.
6108         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
6109         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
6110         ($(get-targets)): Remove.
6111         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
6112         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
6113         (cvs-update): Get from gnulib.
6114         (emut_upload_commands): gnupload is in build-aux now.
6115         (alpha beta major): Add changelog-check.  Check version.
6116         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
6117         (AC_CONFIG_FILES): Remove.
6118         * bin/autoconf.as: Add spaces to avoid distcheck warning.
6119         * config/announce-gen: Sync from coreutils.
6120         * doc/make-stds.texi: Sync from gnulib.
6121         * doc/standards.texi: Likewise.
6122         * man/Makefile.am: Adjust for config -> build-aux renaming.
6123         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
6124         * tests/local.at: Adjust from config -> build-aux renaming.
6125         * tests/tools.at: Likewise.
6126         * tests/torture.at: Likewise.
6128         * NEWS: The C99 check now tests for vararg macros and 64-bit
6129         preprocessor ints.
6130         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
6131         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
6132         64-bit preprocessor ints.  Check for static initialization of
6133         long long.  Remove unnecessary casts.
6135 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6137         * doc/autoconf.texi (Particular Programs): Mention that
6138         @INSTALL@ and @MKDIR_P@ may vary for different output files.
6139         Reported by Alexandre Duret-Lutz.
6141 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6143         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
6144         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
6145         Bill Northcott in
6146         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
6148 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
6150         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
6151         pacify insanely picky compilers.  Problem reported by Eric Blake.
6153         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
6154         longer supported by Sun.
6156 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6158         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
6159         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
6160         -Wundef -Werror".  Problem reported by David Fang in
6161         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
6162         * doc/autoconf.texi (Header Templates, Default Includes):
6163         (Particular Functions, Generic Functions, Header Portability):
6164         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
6165         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
6166         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
6167         Prefer #ifdef to #if.
6168         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
6169         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
6170         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
6171         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
6172         Likewise.
6173         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
6174         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
6175         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
6176         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6177         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
6178         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
6179         this.
6181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6183         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
6184         problems with arg script text that doesn't end in newline, and
6185         with '-e a...'.  Problems reported by Ralf Wildenhues.
6187 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
6189         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
6190         check for libXt by a check for libX11.
6192 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6194         * doc/autoconf.texi (config.status Invocation): Adjust according
6195         to last change.
6197 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6199         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
6200         --help' should mention that `--version' outputs configuration
6201         settings.  Report by Bruno Haible.
6203 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6205         Fix test suite failures reported by Pierre in
6206         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
6207         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
6208         the compiler created a file "b.out" when it didn't create anything
6209         at all.
6210         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
6211         Discard stderr too, when invoking the test script.
6213 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
6215         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
6216         in the restoring of the werror flag.
6218 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6220         * doc/autoconf.texi (Volatile Objects): Be even a little
6221         less skeptical about "volatile", after discussion with
6222         Bruno Haible on bug-gnulib.
6223         (Limitations of Usual Tools): Warn about sed stripping
6224         leading white space from text.  From Bruno Haible.
6226 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6228         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
6229         compiler complains about it, even if things works after the
6230         complaint.  Problem reported by Peter O'Gorman.
6232         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
6233         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
6234         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
6236 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
6238         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
6239         after -R regardless of host.  Patrick Welche reports that this
6240         fixes things on NetBSD 3.99.
6242         * NEWS: Recommend M4 1.4.5.
6243         * README: Likewise.
6244         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6245         * tests/tools.at (autom4te cache): Update wording of diagnostic
6246         to match M4 1.4.5.
6248 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6250         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
6251         under AC_C_VOLATILE.
6252         (Volatile Objects): Be a little less skeptical about what
6253         "volatile" means.  Derived from thoughts by Ben Pfaff in
6254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
6256 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6258         * doc/autoconf.texi: Fix some typos.
6260 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6262         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
6263         more globally, since the 2006-06-30 patch didn't suffice.  Problem
6264         reported by Keith Marshall.  Also, don't bother with builddir2,
6265         since it shouldn't be needed any more.
6267 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
6269         * doc/autoconf.texi (Generic compiler characteristics):
6270         Document AC_COMPUTE_INT.  Fix wrong statements on Default
6271         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
6273         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
6274         (_AC_COMPUTE_INT): Add obsoletion warnings.
6275         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
6276         AC_COMPUTE_INT.
6278         * NEWS: Document change.
6280 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6282         * doc/autoconf.texi (Volatile Objects): New section.
6284         * NEWS: Document previous change.
6286 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
6288         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
6289         Require that long long int be at least 64 bits wide.  C99 requires
6290         this and enough programs depend on it so we should check for it.
6291         Bruno Haible reports in
6292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
6293         that long long int is 32 bits wide with some nonstandard compilers.
6294         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6296 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6298         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
6299         to a nonexistent file, so that we don't have to worry about
6300         a local site configuration that doesn't use /usr/local.
6301         Problem reported by Keith Marshall in
6302         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
6304 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6306         * doc/autoconf.texi: Be more consistent about using @acronym with
6307         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
6308         quite right (it talked about "OSF/Tru64", even though the
6309         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
6310         and it even mentioned "OSF 4"!) and at this point there's little
6311         reason to talk about OSF any more, since it died in 1994.
6312         (Specific Compiler Characteristics): Simplify example of
6313         negative-size array.
6314         (File Descriptors): Reorder to make the text flow better.
6315         Remove joke about "appreciate the various levels"; I didn't get it.
6316         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
6317         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
6318         (File Descriptors, Limitations of Usual Tools):
6319         Tone down the advice against renaming or removing open files.
6320         (Limitations of Usual Tools): Add a new section, on 'rm'.
6322 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
6324         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
6325         -lXt in LIBS, idea from Karsten Hopp; this was due since
6326         this change:
6328         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6329         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
6330         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
6331         (which belong to Xt, not X itself).  See Debian bug 327655.
6333 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6335         * configure.ac (AC_INIT): Bump to 2.60a.
6336         * NEWS: Update.
6338 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6340         Version 2.60.
6342         * configure.ac, NEWS: Update.
6344 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6346         * config/texinfo.tex: Sync from upstream.
6348         * bin/autom4te.in (handle_traces): Transform the `@S|@'
6349         quadrigraph correctly in traces.
6351         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
6352         Fix typos.
6354         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
6355         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
6356         not defined.
6357         * doc/autoconf.texi (Changed Directory Variables): New node,
6358         to document the whole `datarootdir' business a bit better.
6359         * NEWS: Update.
6360         * tests/torture.at (datarootdir workaround): Extend test.
6361         Prompted by report by Alexandre Julliard.
6363 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
6365         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
6366         when using default mode of IBM C 6 for AIX.  Problem and two-line
6367         fix reported by Larry Jones.
6369 2006-06-22  Alexandre Julliard <julliard@winehq.org>
6371         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
6372         about literal '${datarootdir}' if a definition is found in the
6373         output file.
6375 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6377         * NEWS: Use "M4" rather than "m4" when appropriate.
6378         Problem reported by Eric Blake.
6379         * doc/autoconf.texi: Likewise.
6380         Use @acronym around BSD, GCC, and GNU when appropriate.
6381         (Why GNU M4): Renamed from "Why GNU m4".
6382         (Redefined M4 Macros): Mention that Posix
6383         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
6384         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
6385         to int.
6387 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6389         * bin/autom4te.in (handle_output): Do not forbid the empty
6390         pattern.
6391         * tests/tools.at (autoconf: the empty token): New test.
6393 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
6395         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
6396         calls, so that we do not care whether they are LIFO or FIFO;
6397         in the m4_wrap, do not check which diversion is the topmost
6398         one, just check that the stack is balanced at the end.
6399         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
6400         base diversion forever--pop the previous diversion before
6401         opening the new one; consequently, remove the m4_wrap call.
6402         * lib/autotest/general.m4 (AT_INIT): Likewise.
6403         * tests/m4sugar.at: Do not use
6404         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
6406 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
6407         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6409         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
6410         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
6411         Rework example of m4wrap token-pasting trouble so that it doesn't
6412         care whether it's LIFO or FIFO.
6413         Fix some "contrary to"s that are awkward in English.
6415 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6417         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
6418         to `yes' instead of `int$1_t' if the type is found, for more
6419         consistent configure output (where $1 is the number of bits).
6420         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
6421         Suggested by Bruno Haible.
6423         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
6424         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
6425         with system headers.  Report by Bruno Haible.
6427 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6429         * config/config.guess, config/config.sub: Sync from upstream.
6431         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
6432         in order to avoid picking up an older installed frozen m4sh.m4f.
6433         Besides an outdated shell startup, this could have been created
6434         by an earlier M4 version with incompatible frozen file format.
6436 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6438         * README: Recommend m4 1.4.4 instead of 1.4.3..
6439         * doc/autoconf.texi: Likewise.
6440         (Special Chars in Names): Say that $(.FOO) is portable, as
6441         suggested by Stepan Kasal.
6442         (Installation Directory Variables, Build Directories):
6443         (Automatic Remaking, Subdirectories, Fortran Compiler):
6444         (Making testsuite Scripts, Defining Directories):
6445         Quote variable usages better.
6446         (Making testsuite Scripts): Add clean-local rule to makefile
6447         snippet, by Eric Blake.
6448         (Installation Directory Variables): Fix table item font.
6449         Reword slightly to clarify.  Generalize advice about
6450         not using special characters to include all file-related
6451         vars, not just VPATH.
6452         (Special Chars in Variables): Warn about special characters in
6453         $(srcdir) too.
6454         (Assignments): Clarify default-value example as suggested by
6455         Ralf Wildenhues in
6456         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
6457         (Special Shell Variables): Note leading ./ or ../, as suggested
6458         by Eric Blake.
6459         (Limitations of Builtins): Under cd, warn about CDPATH.
6460         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
6461         Ralf Wildenhues.
6463 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6465         * doc/autoconf.texi (Configuration Actions): Remove duplicate
6466         `@var', for texi2html.
6467         (Systemology): Some more word wrapping, for DVI output.
6468         (autom4te Invocation): The short option for `--melt' is `-M',
6469         not `-m'.
6471 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6473         * doc/autoconf.texi: More formatting and English tweaks,
6474         many suggested by Ralf Wildenhues.
6475         Reword to avoid "@code{...}'s" and the like, since it's ugly
6476         with Emacs info mode.  discontents -> woes.
6477         Put a few "will"s back.  time stamp -> timestamp.
6478         side-effect -> side effect.
6480 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6482         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
6483         Warn about $@ not persisting.  Problem reported by Julien Danjou in
6484         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
6485         (Special Chars in Names): Renamed from Leading _ in Macro Names.
6486         Mention other special chars, too.
6488 2006-06-14  Eric Blake  <ebb9@byu.net>
6490         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
6492 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6494         * doc/autoconf.texi: Some systematic minor improvements, as
6495         follows.  Use "makefile" when talking about makefiles
6496         generally (which might be named "makefile" or "Makefile" or even
6497         "foo.mk"), "Makefile" when talking about a specific makefile
6498         called "Makefile".  This unclutters the text from weird quotes
6499         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
6500         values" rather than "@var{foo}s" and similar constructs containing
6501         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
6502         English-language improvements.  Change the prefix "sub-" to "sub"
6503         and "re-" to "re".
6504         Put blank lines around examples more consistently.
6505         Avoid "rather" and "very" as intensifiers.
6506         Avoid "will" as an auxiliary.
6507         (Limitations of Make): Split this node into....
6508         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
6509         (Leading _ in Macro Names, Backslash-Newline-Newline):
6510         (Backslash-Newline Comments, Long Lines in Makefiles):
6511         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
6512         (obj/ and Make, make -k Status, VPATH and Make):
6513         (VPATH and Double-colon, $< in Explicit Rules):
6514         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
6515         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
6516         New nodes, resulting from splitup of Limitations of Make.
6517         All cross-references changed.  Raise the top node from
6518         a section to a chapter, and all subnodes accordingly.
6519         Redo the introductory wording to match the new organization.
6520         (Installation Directory Variables): Use an example that is
6521         closer to what Autoconf actually does.  Mention that VPATH's
6522         value should not contain metacharacters or white space.
6523         (Fortran Compiler): Fix a VPATH bug in an example.
6524         (Leading _ in Macro Names): Mention that this problem is no longer
6525         of practical concern.
6526         (VPATH and Make): Reword the advice to make it clearer
6527         that Autoconf and Automake support VPATH in non-GNU make, but
6528         many packages have bugs in this area.
6529         ($< in Explicit Rules): Refer to Build Directories rather
6530         than using a (non-VPATH-safe) example.
6531         (Automatic Rule Rewriting): Mention the sort of disaster that
6532         can ensue with Solaris-style rule rewriting with VPATH.
6534 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6536         * doc/install.texi (Compilers and Options): Weaken the
6537         suggestion to use GNU make for VPATH builds.
6539         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
6540         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
6542         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
6543         in regular expression.
6545 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6547         * doc/autoconf.texi (Installation Directory Variables):
6548         Drop extra @samp from `@table @samp' item.
6549         (Limitations of Usual Tools): Comment fix.
6550         Do not nest @samp just to point to other table items.
6551         (Writing testsuite.at) <AT_CHECK>: The second argument to
6552         `@dvar' is already @samp'ed.
6553         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
6554         do not use @var in the second argument.
6556 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6558         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
6559         $as_shell.exe too.  Problem reported by Andreas Buening in
6560         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
6562 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6564         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
6565         `unused variable' compiler warning, for `-Wall -Werror'.
6566         Reported by Jaap Haitsma in
6567         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
6569 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6571         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
6572         case the compiler dumps core.  Problem reported for
6573         OpenServer 5.0.7 by Tim Rice in
6574         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
6575         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
6576         Likewise.
6578 2006-06-06  Tim Rice <tim@multitalents.net>.
6580         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
6581         "ERROR" only shows up in "make check" output if there is an
6582         error.
6584 2006-06-06  Eric Blake  <ebb9@byu.net>
6586         * tests/tools.at (automatically allowed tokens): Fix typo.
6588 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
6590         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
6592         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
6593         typically overflows on x86 CPUs, even though the C standard
6594         requires otherwise.
6596 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6598         * configure.ac (AC_INIT): Bump to 2.59e.
6599         * NEWS: Update.
6601 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6603         Version 2.59d.
6605         * config/texinfo.tex: Sync from upstream.
6607         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
6608         seen, invoke libtoolize with `--ltdl' argument.
6609         * lib/autom4te.in (Autoreconf-preselections): Adjust.
6610         * NEWS: Update.
6611         Suggested by Eric Blake.
6613 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
6615         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
6616         reported by Ralf Wildenhues.
6617         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
6619 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6621         * THANKS: Update.
6623 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
6625         * doc/autoconf.texi: Modernize some of the references to Solaris.
6627 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
6629         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
6630         message issued by AC_REQUIRE.
6631         * tests/m4sugar.at: Check m4_require's error message.
6632         * tests/base.at: Check AC_REQUIRE's error message.
6633         * tests/local.at (AT_CHECK_M4): New macro, almost identical
6634         to...
6635         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
6636         AT_CHECK_M4.
6637         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
6638         `expout' as the last parameter.
6639         * tests/tools.at: Adapt to the above change.
6641 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
6643         * doc/autoconf.texi (Limitations of Usual Tools): Correct
6644         information about race-free implementations of mkdir.
6646 2006-06-04  Eric Blake  <ebb9@byu.net>
6648         * bin/autoreconf.in (help): Document M4 environment variable.
6649         * bin/autoconf.as (Usage): Likewise.
6650         * bin/autom4te.in (help): Likewise.
6651         * doc/autoconf.texi (autom4te Invocation): Likewise.
6653 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6655         * NEWS: GNU make now recommended for VPATH builds.
6656         Mention that some macros are now documented to be obsolescent.
6657         * doc/autoconf.texi:
6658         Prefer "current" to "modern" to describe
6659         currently-used (albeit perhaps old-fashioned) hosts.
6660         Mention which ancient features no longer need to be worried about.
6661         setgid -> set-group-ID
6662         setuid -> set-user-ID (these are the Posix terms)
6663         Fix some misuses of "only".
6664         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
6665         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
6666         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
6667         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
6668         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
6669         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
6670         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
6671         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
6672         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
6673         Mention that these macros are obsolescent.
6674         (Installation Directory Variables): shall -> should
6675         (File Descriptors): Mention that 0, 1, 2 might get reopened.
6676         Mention that it's now safe to use 3 and 4.
6677         (Limitations of Usual Tools): cp -r is now specified by Posix.
6678         Omit longwinded and obsolescent discussion of cp -f.
6679         Modernize discussion of expr, ls.
6680         (Limitations of Make): Modernize discussion of VPATH builds.
6681         Mention $? as a workaround in some cases.
6682         * doc/install.texi (Basic Installation):
6683         Mention "./configure; make; make install" first.  Be more
6684         specific about why this file is generic.  Remove unnecessary
6685         parens.  Remove misleading "only".  Remove obsolete advice
6686         about csh.  Don't say "configure" takes awhile; say it
6687         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
6688         and CC=c99 rather than CC=c89, as these are blessed by current
6689         Posix.  Recommend GNU make if doing a VPATH build.
6691 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
6693         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
6694         examples involving shell prompts.
6696 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
6697         and Paul Eggert  <eggert@cs.ucla.edu>
6699         * doc/autoconf.texi (Here-Documents): Add details about the
6700         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
6701         use "here-documents" instead of "here documents".
6703 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6705         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
6707 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6709         * doc/autoconf.texi (File System Conventions): Warn about ":"
6710         anywhere in directory names.
6712 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6714         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
6715         about quoting the case statement, just in case.
6716         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
6717         was fixed in ksh93g; reported by Ralf Wildenhues.
6719 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
6721         * doc/autoconf.texi (System Services): Do not document
6722         overriding EXEEXT via ac_cv_exeext=ext.
6723         (Particular Programs) <AC_PROG_MKDIR_P>:
6724         Document that ${MKDIR_P} understands --.
6725         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
6726         comment.
6728 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6730         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
6731         argument with leading hyphen.  Problem reported by Paul Eggert.
6733 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
6735         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
6736         about quoting ac_try: quote all of it, if any of it seems suspicious.
6737         This means we don't have to worry about ${ or sed any more.
6738         Also, double-quote the case statement, to work around misuses via
6739         underquoting as reported by Ralf Wildenhues in
6740         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
6741         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
6742         undocumented and dangerous macro.
6743         Problem reported by Ralf Wildenhues in
6744         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
6746 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6748         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
6749         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
6750         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
6752 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
6754         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
6755         since evidently some packages rely on the old, broken behavior.
6756         Problem reported by Ralf Wildenhues in
6757         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
6758         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
6759         pre-2006-05-26 definitions, but leave in the comments that
6760         these macros are dangerous and should not be used.
6761         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
6762         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
6763         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
6764         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
6765         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
6767 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6769         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
6770         the use of 'tr', since this is our only use of 'tr'.
6772 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6773         and Paul Eggert  <eggert@cs.ucla.edu>
6775         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
6776         Don't assume 'grep' works on long lines, since AIX grep doesn't.
6778 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6780         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
6781         the output file in the `${datarootdir}' test.
6783 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
6784         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6786         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
6787         mention of `datarootdir' in the input file(s), but literal
6788         `${datarootdir}' in the output file, and we haven't warned yet,
6789         then warn as well: the user may have (erroneously) used
6790         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
6791         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
6792         * tests/torture.at (datarootdir workaround): Extend this test.
6793         * NEWS: Update.
6795 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6796         and Paul Eggert  <eggert@cs.ucla.edu>
6798         * doc/autoconf.texi (autoheader Invocation): The first argument to
6799         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
6800         alternatives and clear up the language a bit.
6802 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
6804         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
6805         ac_config_guess, ac_config_sub, ac_configure.
6806         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6807         Fix typo that prevented an unnecessary space from being removed.
6808         Problems reported by Ralf Wildenhues in:
6809         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
6811 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
6813         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
6814         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
6815         Don't use the term "thread-safe" to talk about mkdir race
6816         conditions, since the problem is more a process than a thread
6817         issue.  Problem reported by Stepan Kasal in:
6818         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
6819         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
6820         the test for 'install' more closely.  Look at MKDIR_P first.
6821         Look in the PATH, and at /opt/sfw/bin.
6822         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
6823         Don't bother to try mkdir -p, since we already check mkdir --version;
6824         just look at the version number.  (There's no easy way to check
6825         for race-free implementations.)
6826         * tests/tools.at (autoconf: subdirectories): Adjust to above
6827         changes, since MKDIR_P now might end in "/mkdir -p".
6829         * doc/autoconf.texi (autoheader Invocation): Mention that the
6830         first arg of AC_DEFINE_UNQUOTED must be a literal.
6831         Problem reported by Ben Pfaff in
6832         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
6834         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
6835         * doc/autoconf.texi (Special Chars in Variables): New section.
6836         (Preset Output Variables): Warn about special chars in CPPFLAGS.
6837         (Installation Directory Variables): Quote $(datadir) better.
6838         (Limitations of Builtins): Describe some of eval's trickiness.
6840         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
6841         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
6842         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
6843         in front of every arg, not just trailing args.  Quote apostrophes.
6844         (_AC_EVAL_ECHO): New macro.
6845         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
6846         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
6847         removed.
6848         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
6849         exposed by quoting of eval argument.  Put the command on line line
6850         so it logs better.
6851         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
6852         (_AC_PATH_X, AC_PATH_X): Quote more safely.
6853         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
6854         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
6855         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
6856         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
6857         Use eval more safely.
6858         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
6859         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
6860         to be replaced.
6861         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
6862         lines, exposed by quoting of eval argument.
6864 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
6865         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6867         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
6868         initialization of `ac_cv_exeext', do not override it if it was
6869         already set, unless it was set to `no', for compatibility with
6870         Autoconf-2.13, and comment this.
6871         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
6872         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
6873         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
6874         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
6875         Document that this test may be overridden by setting
6876         `ac_cv_exeext'.
6878 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6880         Revert these two patches:
6882         2006-04-06  Eric Blake  <ebb9@byu.net>
6883         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
6884         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
6885         2006-04-01.
6887         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
6888         Clean up _AC_COMPILER_EXEEXT* macros.
6889         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
6890           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
6891           ac_file to the name of the default output file and call
6892           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
6893           initial `rm' of the candidate files...
6894         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
6895           the same list in subsequent `rm' calls, and for the temporary
6896           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
6897           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
6898         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
6899         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
6900           no longer needed) by libtool.  Make it a cache check.
6901         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
6902           copied here by mistake.
6903         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
6904           _AC_COMPILER_EXEEXT.
6905         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
6906           _AC_COMPILER_OBJEXT directly.
6907         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6909 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6911         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
6912         Fix description of how the buggy `sed' works.
6914 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
6916         Sync from Automake:
6918         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
6919         ENOLCK.  Only mention `make -j' when applicable.  Only raise
6920         fatal errors when `make -j' is involved.  Improve error message.
6922 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6924         * doc/autoconf.texi (Here-Documents): We now know more about
6925         the variable expansion in here documents bug.
6926         Thanks to Tim Rice and Stepan Kasal.
6928         * doc/autoconf.texi (Making testsuite Scripts): Add an example
6929         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
6931 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6933         * tests/autotest.at (Multiline command from M4 expansion):
6934         No failure to be expected if the shell quotes newlines in
6935         commands in the `set -x' output.  Report by Tim Rice.
6936         * THANKS: Update.
6938 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6940         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
6941         expansion in the here-documents used by config.status, as that
6942         runs afoul of the Korn shell version M-12/28/93d bug described in
6943         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
6944         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
6945         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
6947 2006-05-23  Jim Meyering  <jim@meyering.net>
6949         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6950         Fix typo introduced with 2006-04-02 change.  It reversed the sense
6951         of the test.
6953 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6955         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
6956         ac_dB slightly, to save bytes in the script.
6957         Max out at 50 lines, rather than 96; this is more likely
6958         (though not guaranteed) to avoid obscure 'sed' failures.
6960 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6962         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
6963         `tr -d -' as bad option argument.  Work around this by deleting
6964         an unrelated character.
6965         Report by Tim Rice <tim@multitalents.net>.
6967 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
6968             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
6969             Stepan Kasal  <kasal@ucw.cz>
6971         * doc/autoconf.texi (Particular Programs): Do not promise that
6972         we always prefer the GNU version of the program, and that we
6973         search according to PATH; both rules can have exceptions.
6974         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
6975         AC_PROG_SED.  Move descriptions of limitations
6976         to the Limitations of Usual Tools section.
6977         (Limitations of Usual Tools) <sed>: Mention script length
6978         limitations with Solaris /usr/ucb/sed.
6979         <grep>: Fix wording for empty alternative.  Mention that -c and
6980         -l should not be combined, and that -E and -F should not be
6981         combined.
6983 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6984         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6986         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
6987         limits in Solaris 8 /usr/ucb/sed by testing a long script.
6989 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
6991         * doc/autoconf.texi (Defining Symbols): Literal parameter of
6992         AC_DEFINE is now passed to m4_pattern_allow.
6993         * NEWS: Mention that; likewise for AC_SUBST.
6994         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
6995         the parameter to m4_pattern_allow.
6996         * tests/tools.at: Add a check for that.
6998 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
7000         * lib/autoconf/status.m4: Fix typos.
7002 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7004         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
7005         only the files that this macro generates.
7007 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7009         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
7010         the HP-UX sed limitation of 99 commands, labels do not count.
7011         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
7012         in the comment.
7013         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
7015 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7017         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
7018         Import the following fix from coreutils:
7020         2006-01-13  Jim Meyering  <jim@meyering.net>
7022         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7023         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
7024         not double-quote uses of that variable, to accommodate the rare
7025         case in which getmntent is available in none of the libraries
7026         checked.  This happens at least on FreeBSD 5.0.
7028 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7030         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
7031         ac_config_guess, ac_config_sub, and ac_configure, since evidently
7032         some other programs unwisely rely on these undocumented vars.
7033         But put in warning comments about them.
7034         Problem reported by Ralf Wildenhues in
7035         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
7036         * NEWS: Document that these variables are intended to go away.
7038 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7040         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
7041         and set the language to C++ (analogous to the equivalent Fortran
7042         tests).
7044         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
7045         * doc/autoconf.texi (C++ Compiler): Document it.
7046         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
7047         * NEWS: Update.
7049 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7051         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
7052         that caused config.status to generate 100-command sed scripts; the
7053         portable limit is 99.
7055 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7057         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
7058         variable `ac_d' instead of `d' to avoid infringing namespace.
7059         Report by Ralf Menzel.
7061 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
7063         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
7064         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
7065         * tests/tools.at (autoconf: subdirectories): New test, taken from
7066         the corresponding problem report by Ralf Wildenhues in:
7067         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
7069         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
7070         Quote some uses of shell variables if they might suffer unexpected
7071         globbing.  This doesn't fix all instances of quoting problems that
7072         I found, just the easy ones that look safe.
7073         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
7074         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
7075         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
7076         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
7077         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
7078         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
7079         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
7080         Likewise.
7081         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
7082         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
7084 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7086         * bin/autoreconf.in ($help): Reword according to the manual.
7087         Suggested by Olly Betts.
7089 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
7090         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7092         * bin/autoreconf.in: Pass the directory argument to
7093         `require_configure_ac'.  Fix comment.
7094         * tests/torture.at (Configuring subdirectories): Expose this.
7095         Reported by Olly Betts.
7097 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7099         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
7100         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
7101         Automake as follows:
7103         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
7104         `$configure_in' instead of `configure.in', to preserve
7105         directory component.
7107 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7109         * config/config.guess, config/config.sub, config/texinfo.tex,
7110         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
7112 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7114         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7115         test for C99 conformance; (bool) 0.5 is an integer constant
7116         expression, but (bool) -0.5 is not.  Problem reported by Fedor
7117         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7119 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7121         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
7122         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
7123         Warn about obsolete install-sh files.  Remove stray sentence
7124         fragment and fix cross reference.
7125         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
7126         install -d; this undoes the 2006-05-10 change.
7127         (MKDIR_P): Mark with AN_MAKEVAR.
7128         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
7129         that we don't require $INSTALL to be thread-safe.  Move comments
7130         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
7131         of AC_PROG_INSTALL.  Output a message saying that we're checking
7132         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
7133         MKDIR_P instead of AC_SUBST.
7134         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
7135         Special magic for MKDIR_P, too.
7136         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
7137         a dnl.
7138         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
7140 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7142         Sync from Automake, as follows:
7144         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7145         * config/install-sh: Initialize IFS, so field splitting isn't
7146         turned off later.
7147         * config/mkinstalldirs: Likewise.
7148         * config/missing: Remove superfluous quotes.  Replace all uses of
7149         `[' by `test', for consistency, and for..
7150         * config/missing (sed_minuso, sed_output): New variables.
7151         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
7152         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
7153         Fixes `missing' to detect `--output' for help2man.  Fixes
7154         PR automake/483.  Report by Dennis J. Linse.
7155         (autom4te): Document in `missing --help'.
7157 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7159         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
7160         * config/install-sh: Don't use 'path' to talk about file names,
7161         as per GNU coding standards.  Close a race condition reported by Ralf
7162         Wildenhues and Stepan Kasal.  There is still a race condition
7163         on hosts that predate Posix 1003.1-1992, but we can't help this.
7164         Don't mishandle weird characters like space on pre-Posix hosts.
7165         Invoke mkdir at most once per dir arg on pre-Posix hosts.
7166         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
7167         AC_PROG_MKDIR_P from AS_MKDIR_P.
7168         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
7169         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
7170         earlier editions are not (including Automake 1.8.3).
7171         Do not suggest mkinstalldirs for thread-safety.
7172         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
7173         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
7174         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
7175         presence of special characters and race conditions.
7176         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
7177         in Autoconf's name space.
7179 2006-05-10  Bruno Haible  <bruno@clisp.org>
7180         and Paul Eggert  <eggert@cs.ucla.edu>
7182         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
7183         from Automake with minor changes.
7184         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
7186 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7188         * config/install-sh: Update to Automake CVS version, as follows:
7189         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
7190         * lib/install-sh: Simplify the expr implementation of dirname.
7191         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7192         * lib/install-sh: Handle --, and diagnose unknown options.
7194 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7196         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
7197         `./autom4te' to create `./testsuite', since the `all' target
7198         will ensure its presence, but `installcheck' should not create
7199         the uninstalled wrappers.
7201         * tests/torture.at (Unusual Automake input files): Skip if we
7202         detect automake < 1.8.
7204 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7206         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
7207         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
7208         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
7209         * NEWS: Update.
7211 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7213         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
7214         munge (multiple) white space and other oddities.
7215         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
7216         single quotes in variable assignment.
7217         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
7218         and similar failures by adding multiple spaces, tabs, and other
7219         special characters.
7220         Report and different test suggested by Francesco Romani
7221         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
7223         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
7224         single quotes, we only need to search for single quotes; this
7225         both simplifies the search pattern, and makes us less
7226         susceptible to `echo' variations for arguments not containing
7227         single quotes.
7228         (_AC_ARG_VAR_VALIDATE): Likewise.
7230 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7232         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
7233         `$*' and IFS concatenation issue with traditional shells and
7234         bash-2.04.  Report by Seanster@Seanster.com.
7236 2006-05-03  Bruno Haible  <bruno@clisp.org>
7238         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
7239         precisely which Mac OS X versions have the od problem.
7241 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7243         * doc/autoconf.texi: Use @option systematically.
7245 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7246         and Bruno Haible  <bruno@clisp.org>
7248         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
7249         about 'od'.
7250         (Integer Overflow): Mention the special case of integer division
7251         overflow.
7253 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7255         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
7256         traditional shells like the Solaris one that do not use the
7257         first IFS character for assembling `$*'.
7258         Prompted by a related report from autoconf_bug@nro.ca.
7260 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7261         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7263         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
7264         Mention more problems with the -e option.
7266 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7268         * NEWS: Typo.
7269         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
7271         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
7272         in URLs to improve DVI formatted output (requires texinfo 4.6).
7273         (System Services, Systemology, Shellology): Likewise.
7274         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
7275         output.
7277         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
7278         continuous text.
7279         (Runtime): Fix macro argument names to match description:
7280         `action-if-found' -> `action-if-true' and similarly.
7281         (Obsolete Macros): Likewise.
7282         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
7283         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
7284         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
7286 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7288         * doc/autoconf.texi (Limitations of Make): Clean up markup.
7290         * ChangeLog: Typo.
7291         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
7292         DVI output.
7294 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7296         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
7297         /bin/sh set unsorted output.
7298         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
7299         * tests/local.at: Likewise.
7301 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7303         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
7304         (Integer Overflow, Null Pointers, Buffer Overruns):
7305         (Floating Point Portability, Exiting Portably): New sections.
7306         (Writing Test Programs): Fix some langauge.  Recommend exiting
7307         with status 1, not merely nonzero.  Clarify exit declaration.
7308         (Run Time): Move C exit status stuff to new Exiting Portably section.
7309         (Systemology): Mention Posix and levenez.  Update v7 reference.
7310         (Portable Shell): Mention the Posix shell.
7312 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
7314         * bin/autoconf.as (me): Replace by as_me.
7316 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7318         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
7319         since as_me isn't set yet.
7321 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7323         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
7324         a few minor bugs in this area.
7326         * doc/autoconf.texi (Programming in M4sh): Comment out the
7327         documentation of AS_BASENAME, for now.
7328         (Shell Substitutions): Do not use AS_DIRNAME in an example.
7329         (Limitations of Builtins) <basename>: Do not refer to
7330         AS_BASENAME.
7331         * bin/autoconf.as (me): Don't use AS_BASENAME.
7332         (dir): Remove the unused variable.
7333         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
7334         AS_DETECT_REQUIRED.  All uses changed.
7335         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
7336         All uses changed.
7337         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
7338         (AS_BASENAME): Use "basename --" to protect against leading "-".
7339         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
7340         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
7341         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
7342         (_AS_DIRNAME_PREPARE): Likewise.
7343         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
7344         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
7345         (AS_DIRNAME): Use "dirname --".
7347 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7349         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
7350         of "run time" and "run-time" changed to "runtime", for consistency.
7351         * lib/autoconf/fortran.m4: Likewise (in comment).
7352         * lib/autoconf/functions.m4: Likewise.
7353         * lib/autoconf/general.m4: Likewise.
7354         * lib/autoconf/headers.m4: Likewise.
7356         * doc/autoconf.texi (Run Time): Document the exit status situation
7357         with more accuracy and detail.
7359 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7361         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
7362         Archive is not officially `GNU' any more.  Update URL.
7363         (Defining Directories): Likewise
7364         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
7366 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7368         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
7369         newline from the `trap' code to finish `config.log'; the NetBSD
7370         /bin/sh resets the exit status after an empty command, as
7371         documented in doc/autoconf.texi.
7372         Reported by Dalibor Topic <robilad@kaffe.org>.
7374 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
7376         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
7377         Suggested by Bruno Haible.
7379 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
7381         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
7382         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
7383         Instead, just list the shells that we know work.
7384         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
7385         changed.  Be more cautious about the _cv_ variable.
7386         * tests/tools.at (Syntax of the shell scripts): Check the
7387         _cv_ variable once, at first, to avoid an internal autoconf error
7388         when sh -n does not work.
7390 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7392         * lib/Autom4te/FileUtils.pm: Sync from Automake.
7394 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
7396         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
7397         use ">&-" since we're only 99.999% sure that this is portable,
7398         and since the MinGW bug is fixed in a different way.
7399         * lib/autotest/general.m4 (AT_INIT): Likewise.
7401 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
7403         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
7404         before opening config.log, to avoid hitting a bug on MinGW.
7406 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
7408         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
7409         AS_MESSAGE_LOG_FD before reopening it onto the log file.
7410         This works around a MinGW bug reported by Eric Paire.
7411         Make sure that all writes to the log file append to it,
7412         rather than possibly losing data.
7413         * lib/autotest/general.m4 (AT_INIT): Likewise.
7415 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
7417         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
7418         description.
7420 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7422         * NEWS: Update.
7424         * configure.ac (AC_INIT): Bump to 2.59d.
7426 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7428         Version 2.59c.
7430         * Makefile.maint (news-date-check): Do not require a leading `*'
7431         before the release date in NEWS.
7433 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
7434         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7436         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
7437         the instantiated file do not contain the string 'datarootdir'
7438         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
7439         @mandir@, replace the reference '${datarootdir}' by the value.
7440         * tests/torture.at (datarootdir workaround): New test.
7441         * NEWS: Advertise this temporary fixup.
7442         Based on a patch by Bruno Haible, reported and analyzed by
7443         Paul Eggert and Noah Misch.
7445 2006-04-12  Eric Blake  <ebb9@byu.net>
7447         * tests/autotest.at (Debugging a failed test): Fix comment.
7449 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
7451         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
7452         all the changes since 2006-04-07.
7454 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7456         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
7457         succeeded, but `ln -s file dir' failed, take care to remove the
7458         leftover target before the next test, to prevent its spurious
7459         failure; also make sure `ln file dir' works before selecting it.
7460         Thanks to Keith Marshall for pointing this out.
7461         * THANKS: Update.
7463         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
7464         assignments in `at_debug_args', so that we put them correctly
7465         in the `run' script.
7466         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
7467         Reported by Eric Blake.
7469 2006-04-11  Eric Blake  <ebb9@byu.net>
7471         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
7472         top-level tests after micro-suite has been run.   Used in...
7473         (Debugging a successful test, Debugging script and environment),
7474         (Debugging a failed test): ...these new tests.  The first of these
7475         is fixed by...
7476         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
7477         macro, split out from...
7478         (AT_INIT): ...here, so that using -d also generates a run script.
7479         Document that -d inhibits top-level logging.
7480         * doc/autoconf.texi (testsuite Invocation): Document that -d only
7481         inhibits top-level logging; debug scripts are created.
7483         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
7484         check.
7485         * tests/autotest.at (Empty test, Empty check): New test to check it.
7487         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
7488         from gcc.
7490 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
7492         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
7493         the files if a problem appears.  Make the empty *.at files
7494         read-only, too.  Proposed by Ralf Wildenhues.
7496 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7498         * config/Makefile.am: Add comment to force updated Makefile.in.
7500         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
7501         space only patch to this file, this patch causes the Makefile.in
7502         files that include freeze.mk to be updated, and thus have a
7503         newer time stamp again, which in turn makes a pristine CVS
7504         checkout have correct time stamps.
7506         * Makefile.maint (cvs-sv): New macro, to be used..
7507         (config.guess-url_prefix, config.sub-url_prefix)
7508         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
7509         point to CVS text checkout of Gnulib files.
7510         (copyright-check): Bump current year.
7511         (announcement): Do not hard-wire `./announce-gen'.
7512         (cvs-update): Propagate failures of `cvs' and `move-if-change'
7513         correctly.
7514         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
7515         `chmod +x'.
7516         (wget_files): Update config.guess, config.sub, texinfo.tex by
7517         `wget-update', now that their URLs work again.
7519 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
7521         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
7522         Problem noted by Paul D. Smith.
7524 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7526         * doc/autoconf.texi: Remove unused words from word list.
7527         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
7528         .x-sc_trailing_space: New files.
7530         * doc/standards.texi: Sync from gnulib.
7532         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
7533         `LIBOBJDIR' as experimental.
7535         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
7536         with a target directory; it's internally implemented as `cp'
7537         anyway, but since Autoconf advertises the possibility to use
7538         a target directory when LN_S is `ln -s', we need to find out.
7539         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
7540         analyzed by Keith Marshall <keith.marshall@total.com>.
7542         * THANKS: Update.
7544 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
7546         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
7547         confdefs.h as-is.  In general, if it has backslash-newline or the
7548         like, then it doesn't work either to sort or to remove empty
7549         lines.
7551 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
7553         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
7555 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
7557         * lib/autom4te.in (Automake-preselections): Preselect
7558         _AM_SUBST_NOTMAKE.
7560 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7562         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
7563         apostrophe within a single-quoted string, as this is the usual
7564         tradition and is easier to read than '"'"'.  Don't rely on the
7565         shell treating "$/" like '$/'.  Use a more-consistent indenting
7566         style for the trap.
7568 2006-04-09  Eric Blake  <ebb9@byu.net>
7570         * tests/autotest.at (Backquote command substitution),
7571         (Multiline backquote command substitution): Remove mistaken
7572         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
7573         applied...
7574         (Parenthetical command substitution, Multiline parenthetical
7575         command substitution): here.
7577 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7579         Import macros from gnulib (often changing their name).
7581         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
7582         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
7583         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
7584         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
7585         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
7586         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
7587         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
7588         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
7589         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
7590         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
7591         The manual mentions Gnulib more prominently.
7592         * doc/autoconf.texi (Gnulib): New node.
7593         (Pointers): Add Gnulib URL.
7594         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
7595         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
7596         Gnulib section.
7597         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
7598         suggest a #define rather than a typedef for _Bool, and mention
7599         Gnulib rather than trying to substitute stdbool code.
7600         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
7601         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
7602         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
7603         AC_STRUCT_DIRENT_D_TYPE.
7604         (Particular Types): Mention stdint.h and inttypes.h as standard
7605         headers too.
7606         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
7607         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
7608         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
7609         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
7610         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
7611         (C Compiler): Move AC_C_LONG_DOUBLE to ...
7612         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
7613         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
7614         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
7615         (Coding Style).  Don't mention m4_expand_once.
7616         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
7617         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
7618         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
7619         (AC_CHECK_FUNCS): Use it.
7620         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
7621         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
7622         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
7623         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
7624         (AC_HEADER_ASSERT): New macro.
7625         (AC_HEADER_STDBOOL): Don't assume "#error" works.
7626         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
7627         Catch a bug in an HP-UX C compiler.
7628         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
7629         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
7630         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
7631         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
7632         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
7633         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
7634         New macros.
7636         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
7637         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
7639 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
7641         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
7642         of the warning introduced by the 2001-08-28 change.
7644 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
7645             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7647         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
7648         variables shall be overriden by the cache.
7649         * tests/torture.at (AC_ARG_VAR): Test also with a first value
7650         that contains braces.
7652 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
7654         Revert the patch from 2006-04-01 and only improve
7655         _AS_DETECT_BETTER_SHELL:
7657         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
7658         skip nonexistent directories.
7659         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
7660         only shell candidates which exist.
7661         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
7662         * lib/autotest/general.m4 (AT_INIT): No need to give three
7663         parameters to _AS_PATH_WALK.
7665 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
7666             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7668         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
7669         distinguish m4sugar macros.
7670         * tests/tools.at (autoupdating with aclocal and m4_include):
7671         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
7672         test case by Noah Misch <noah@cs.caltech.edu>.
7674 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
7676         Revert my change from 2006-03-17, in other words:
7677         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
7678           and DUALCASE=1.
7679         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
7680         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
7681           it is set.
7683 2006-04-07  Eric Blake  <ebb9@byu.net>
7685         * doc/autoconf.texi (Programming in M4sh): Document that
7686         AS_MKDIR_P exits the script on failure.
7687         * lib/autotest/general.m4: Remove redundant AS_ERROR.
7689 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7691         * config/elisp-comp, config/install-sh, config/mdate-sh,
7692         config/missing, config/mkinstalldirs: Sync from Automake.
7694         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
7695         from Automake.
7697         * doc/make-stds.texi: Sync from gnulib.
7699 2006-04-06  Eric Blake  <ebb9@byu.net>
7701         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7702         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
7703         2006-04-01.
7705 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
7706             Eric Blake  <ebb9@byu.net>,
7707             Paul Eggert  <eggert@cs.ucla.edu>,
7708             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7710         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
7711         whether `set' quotes correctly: redirect stderr of the tested
7712         `set', and use a subshell, for Ultrix; use `sed' instead of
7713         `grep' for zsh `set' which may write binary output; match only
7714         at the beginning of a line, to avoid false positives.
7715         In order to avoid false positives by unrelated variables with
7716         multiline content, put the dump algorithm in a subshell and
7717         unset all variables containing newlines (except some which are
7718         special to the shell).  Warn about cache variables that are
7719         unset.
7721 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7723         * config/config.guess, config/config.sub, config/texinfo.tex:
7724         Sync from upstream.
7726         * tests/mktests.sh: Reword comments.
7728         * tests/mktests.sh: Only skip internal macros starting with
7729         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
7730         Update exclusion lists for the test suite to this end:
7731         (AC_ARG_VAR): Do test this now.
7732         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
7733         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
7734         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
7735         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
7737         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
7738         shell issue with double-quoted command substitutions of native
7739         commands.
7740         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
7741         Marshall.
7743         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
7744         no file matches the glob, discard the warning, set `nullglob'.
7745         (syntax-check): Likewise.
7746         (sc_cast_of_x_alloc_return_value): Likewise.
7747         (sc_cast_of_alloca_return_value, sc_error_exit_success)
7748         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
7749         (m4-check): Likewise.
7750         (sc_system_h_headers): Do not print rule on execution.
7751         (sc_tight_scope): Do not fail for non-existing `src' directory.
7752         (sc_changelog): Skip the Copyright footer.
7753         * lib/autoconf/lang.m4: Remove trailing space.
7755         * lib/autoconf/status.m4: More replacements to
7756         <tab><space> where this makes sense.
7758 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
7760         * tests/Makefile.am (maintainer-check-posix):
7761           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
7763         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
7764           ac_config_<foo>s again, sometimes normalized, sometimes not.
7765         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
7766         (AC_CONFIG_COMMANDS): Do not do so here.
7767         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
7768           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
7769           2005-07-25 rewrite.  Noticed by Noah Misch.
7771         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
7772           _AC_PRESERVE_HELP_ORDER, ...
7773         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
7775         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
7776           inside m4_expand_once; it is redundant.
7778         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
7779           for --help from Cygnus `configure.'
7781 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7783         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
7784         on a patch proposed by Ralf Wildenhues.
7786 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7788         * lib/autoconf/status.m4: Replace <space>''<tab> with
7789         <tab><space> where this makes sense.
7791 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
7792             Noah Misch  <noah@cs.caltech.edu>
7794         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
7795         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
7796         * doc/autoconf.texi (Help Formatting): New node.
7797         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
7799 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7801         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
7802         lib/autoconf/specific.m4, lib/autoconf/status.m4,
7803         lib/autoconf/types.m4, lib/autotest/general.m4,
7804         tests/mktests.sh, tests/torture.at: White space cleanup:
7805         remove some SPACE before TAB, or add quoting ('' or @&t@).
7807         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
7809         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
7811 2006-04-05  Eric Blake  <ebb9@byu.net>
7813         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
7814         empty test suite works.
7815         * tests/autotest.at (Empty test suite): Remove xfail.
7817 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
7819         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
7820         TAGS to ac_config_<foo>s.
7821         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
7822         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
7823         normalizing it, consistent it with previous releases.
7824         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
7826 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7828         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
7829         Use simplified args that Eric Blake originally suggested.
7831 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
7833         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
7834         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
7835         Use 'comm' rather than N instances of grep; this also fixes a bug
7836         whereby substrings were incorrectly matched, causing us to not
7837         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
7838         (exclude_list): Exclude empty macros.
7839         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
7841         Use awk rather than grep -E or egrep, to avoid
7842         portability problems with regular expressions containing newlines.
7843         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
7844         Switch from grep to awk syntax.
7845         (ac_exclude_script): Renamed from ac_exclude_egrep.
7846         (au_exclude_script): Renamed from au_exclude_egrep.
7848 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
7850         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
7851         a subdirectory subject to Cygnus `configure'.
7852         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
7854         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
7855         report request when we have no AC_PACKAGE_BUGREPORT.
7857 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7859         * THANKS: Update.
7861         * tests/mktests.sh: Update copyright year in the header of the
7862         generated files.
7864         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
7865         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
7866         typedef'ed restricted pointer, to catch a compiler bug on
7867         HP-UX 11.x, and fix warnings so it passes with -Werror.
7868         (_AC_PROG_CC_C99): Likewise.
7869         Reported by Albert Chin <china@thewrittenword.com>.
7870         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
7872 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
7874         * bin/autoscan.in (subdirs): New global.
7875         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
7876         (output): Emit AC_CONFIG_SUBDIRS as needed.
7877         * tests/autoscan.at (autoscan): Remove XFAIL.
7879 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
7881         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
7883 2006-04-03  Eric Blake  <ebb9@byu.net>
7885         * THANKS: Add myself.
7887 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7889         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
7890         to log, point to testsuite output tree.
7892 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
7894         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
7895         * doc/autoconf.texi (Function Portability): Mention that C++
7896         has trouble with 'exit'.
7897         (Guidelines): Test programs shouldn't use 'exit'.
7898         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
7899         Remove; all uses removed.
7900         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
7901         Return from 'main' instead of calling 'exit'.
7902         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
7903         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
7904         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
7905         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7906         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
7907         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
7908         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
7909         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
7910         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7911         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
7912         * tests/compile.at: Likewise.
7914 2006-04-02  Pavel Roskin  <proski@gnu.org>
7916         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
7918 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7920         Clean up _AC_COMPILER_EXEEXT* macros.
7922         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7923           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7924           ac_file to the name of the default output file and call
7925           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
7926           initial `rm' of the candidate files...
7927         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
7928           the same list in subsequent `rm' calls, and for the temporary
7929           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7930           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7931         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7932         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7933           no longer needed) by libtool.  Make it a cache check.
7934         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7935           copied here by mistake.
7936         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7937           _AC_COMPILER_EXEEXT.
7938         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7939           _AC_COMPILER_OBJEXT directly.
7940         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7942 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7944         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
7945         (AS_DIRNAME): Use it.
7946         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
7948         * tests/*.at: Remove the generated ones.
7950 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
7952         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
7954 2006-04-01  Eric Blake  <ebb9@byu.net>
7956         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
7957         directories, unless optional third argument supplied.
7958         (AS_UNAME): Don't optimize PATH walk.
7960         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
7962 2006-04-01  Eric Blake  <ebb9@byu.net>
7963         and Stepan Kasal  <kasal@ucw.cz>
7965         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
7966         and fix some typos.
7968 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
7970         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
7971         Autoconf version number despite a zero- or one-argument AC_INIT.
7973         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
7974         subordinate tools.
7975         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
7976         * doc/autoconf.texi (autoreconf Invocation): Document it.
7978         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
7979         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
7981 2006-04-01  Eric Blake  <ebb9@byu.net>
7983         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
7984         * lib/autotest/general.m4: Be tolerant of existing directory when
7985           rm failed to remove it.
7987 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7989         * bin/autoupdate.in: Redefine m4_location so that warnings print
7990         the correct lines of the input file by subtracting..
7991         (_au__first_line): ..this new definition.
7993         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
7994         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
7995         Remove stray newline in output.
7996         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
7997         AC_DEFUN this for autoconf, including the obsoletion diagnose.
7998         Fixes autoupdating of code where the replacement output contains
7999         m4sugar macros.
8000         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
8001         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
8002          (au_exclude_list): Add AC_LANG_SAVE.
8003         * tests/tools.at: Several new tests for all of this.
8004         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
8005         hairy details.
8006         The AC_LANG_SAVE issue was reported against Libtool by
8007         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
8008         Kristian Kvilekval <kris@cs.ucsb.edu>.
8010 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
8012         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
8013           switch all of them on and of when necessary.  Fixes the bug when
8014           m4sugar macros (e.g., m4_define) were expanded after the first
8015           automatic update (e.g., after AC_PREREQ or AC_INIT).
8017 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
8019         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
8020         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
8022         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
8023         correctly.  Problem reported by Eric Blake.
8024         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
8025         Ralf Wildenhues.
8027 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
8029         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
8030         Tighten up the basename/dirname wording.
8032 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8034         * Makefile.maint (sc_texi_notab): New check: do not use TABs
8035         in texinfo files outside of verbatim environments.
8036         (syntax-check-rules): Update.
8037         * doc/autoconf.texi (Configuration Headers): Conform to it.
8039 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
8041         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
8042           aclocal cannot be given on the command line.
8044 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8046         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
8047         Give an example for AS_DIRNAME instead of referring to Posix..
8048         (File System Conventions): Put discussion of // versus / here, and
8049         modernize it a bit.
8050         (Limitations of Usual Tools): Add basename.  Remove verbiage
8051         after dirname, since it got moved to the above sections.
8052         All this was inspired by a patch proposed earlier by Eric Blake.
8054 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8056         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
8057         `$0' to protect against spaces.
8058         * lib/autotest/general.m4 (AT_INIT): Likewise.
8059         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
8060         `$0', $as_me.
8062 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8064         * bin/autoscan.in: The value of find_configure_ac should be
8065         checked for existence, so we don't barf over a nonexisting
8066         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
8068 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8070         * bin/autoupdate.in: Fix some typos.
8072 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
8074         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
8076         * lib/autoscan/autoscan.list: Refreshed.
8078 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8080         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
8081         and Erlang related variables.
8083         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
8084         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
8085         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
8086         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
8087         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
8088         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
8089         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
8090         (_AC_PROG_OBJC_G): New macros.
8091         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
8092         * doc/autoconf.texi (Objective C Compiler): New node.
8093         (Preset Output Variables): Document OBJCFLAGS.
8094         (Language Choice): Document `Objective C' language.
8095         (Fortran Compiler): Fix typo.
8096         * NEWS: Updated.
8097         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
8099 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
8101         * doc/autoconf.texi (Default Includes): Fix typo
8102           s/AC_HEADERS_STDC/AC_HEADER_STDC/
8103         (Limitations of Usual Tools): s/unwriteable/unwritable/
8104         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
8105           Fix typos in the comments.
8107 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
8109         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
8110           Factor out the warning to...
8111         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
8112         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
8113         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
8115         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
8116           case `ac_delim' when writing the sed script.
8118         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
8119           moved DUALCASE=1 ...
8120         (AS_SHELL_SANITIZE): ... here.
8121         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
8122           that it is set.
8124         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
8125           AC_SUBST.
8126         (_AC_PATH_PROG): Store the result to VARIABLE.
8127         (AC_PATH_PROG): No need to set VARIABLE again.
8129         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
8130           the first one is usual AT_CHECK_MACRO test, the second one checks
8131           that the same works when cross-compiling.
8132         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
8133         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
8135 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8137         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
8138         the directory `/usr/bin/posix' in the shell search, to prefer
8139         the Posix shell not only in subsequent spawns as with `$BIN_SH'
8140         on Tru64.
8142         * doc/autoconf.texi (contents): To fix texi2html output, hide
8143         `@setcontentsaftertitlepage' for HTML.
8144         (Writing Autoconf Macros): Likewise, insert space after `@c'.
8145         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
8146         `@,{c}'.
8148 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
8150         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
8151           sanitizing...
8152         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
8153         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
8154           why IFS is restored so late; thank you, Ralf, for reminding us.
8156 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
8158         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
8159           variables in the examples.
8161 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
8163         * doc/autoconf.texi (several sections): Cleaned up documentation for
8164         macros in erlang.m4.
8166 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8168         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
8169         failure condition for `$(cmd)' style command substitutions.
8170         (Parenthetical command substitution, Multiline parenthetical
8171         command substitution): Use it.
8173         * doc/autoconf.texi (Special Shell Variables): Missing word.
8174         Reported by Keith Marshall <keith.marshall@total.com>.
8176         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
8177         IFS even in case of empty `$PATH'.
8179 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8181         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
8182         `expr' away if there is nothing to do.
8183         < --keywords >: Simplify and robustify argument handling.
8184         Revert erroneous comment from 2005-08-23.  Extend to allow
8185         keyword negation with `!'.
8186         Update help message.  Remove broken code to prevent running
8187         tests multiple times.
8188         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
8189         Update and fix the documentation accordingly.
8190         * tests/autotest.at (Keywords): Renamed to..
8191         (Keywords and ranges): .. this.  Extended to make sure negated
8192         keywords, keywords taken from AT_SETUP arguments, and numeric
8193         test ranges work, and that matching is case-insensitive.
8195 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8197         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
8198         allow to pass unnamed structs even in C++.
8199         (AC_CHECK_SIZEOF):  Likewise.
8200         Also fix quoting error in `AC_MSG_FAILURE' arguments.
8201         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
8202         struct): New tests for unnamed structs, each both native and
8203         cross-compiling.
8205         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
8206         a structure inside a cast, for C++ conformance.
8207         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
8208         Also fix quoting error in `AC_MSG_FAILURE' arguments.
8210         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
8211         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
8212         trying to execute the command `no'.
8214         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
8215         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
8216         expanded outside.
8218         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
8219         example.  Do not emphasize `$%', it is hardly new and special.
8220         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
8222         * doc/autoconf.texi (Limitations of Usual Tools): Document
8223         OpenBSD and traditional `grep' failure to handle multiple
8224         patterns separated by newlines.
8226 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
8228         * doc/autoconf.texi (several sections): Add documentation for macros
8229         in erlang.m4.
8231 2006-03-10  Eric Blake  <ebb9@byu.net>
8233         * doc/autoconf.texi (Obsolete Macros): Fix wording of
8234         AC_TRY_LINK_FUNC.
8236 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
8238         * doc/autoconf.texi: Use @acronym more consistently for acronyms
8239         like BSD, GPL, LGPL.  Fix minor English typos.
8240         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
8241         Mention that these macros are becoming obsolete.
8242         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
8243         Use more modern terminology for which standard is what.
8244         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
8245         and to ansi2knr.
8246         (AC_PROG_CXX): Likewise.
8247         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
8248         Remove obsolete discussion about how to port to K&R.
8249         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
8250         the obsolescent AC_HEADER_STDC.
8251         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
8252         can't rely on it.
8254 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8256         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8257         Remove stdin redirection from /dev/null to allow pipe to work.
8259 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
8261         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8262         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
8263         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
8264         Ralf Wildenhues.
8266 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8268         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
8269         HP-UX sed is 99 commands, not 100.
8270         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
8271         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
8272         newline for portability.
8273         * tests/torture.at (Torturing config.status): Also test 100
8274         AC_SUBST_FILE invocations.  Fix test to actually verify the
8275         AC_CONFIG_FILES output.
8276         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
8277         command, label, and read-file `r' limits.  Unify HP-UX spelling.
8279         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
8280         non-suffix rule.
8281         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
8282         non-GNU make.
8283         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
8284         * tests/mktests.sh: Small shell portability fixes.
8286 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8288         * doc/autoconf.texi (Caching Results): Fix the examples to use a
8289         recommended quoting style and discard unwanted output.
8291 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
8293         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
8294         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
8295         cases, and to work around Tru64 expr bug.
8297 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8299         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
8300         expr bug that turns the result of a regex match into a number if
8301         possible.
8303 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8305         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
8306         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
8307         in section `Specific Compiler Characteristics'.
8309 2006-03-04  Eric Blake  <ebb9@byu.net>
8311         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
8312         variable warning.
8314 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8316         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
8317         order of variable initialization, so even the Solaris 2.6 shell
8318         can create a config header correctly.  Fixes lots of test suite
8319         failures.
8321 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8323         * doc/autoconf.texi (Text processing Macros): New node to
8324         document the m4sugar macros m4_re_escape, m4_tolower,
8325         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
8327 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8329         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
8330         XrmInitialize (0) -> XrmInitialize ().
8331         Reported by Toshio Kuratomi.
8333 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8335         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
8336         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
8337         * doc/autoconf.texi (Programming in M4sh): Adjusted.
8338         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
8339         both macros are defun'ed so that required macros are evaluated
8340         outside.
8342         * doc/autoconf.texi (Prerequisite Macros): State more precisely
8343         where a required macro will be expanded.
8344         (Coding Style): Another reason not to use `m4_define'.
8346 2006-02-21  Eric Blake  <ebb9@byu.net>
8348         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
8350 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8352         * doc/autoconf.texi (Looping constructs): New node, to
8353         document m4_for, m4_foreach, m4_foreach_w, and mention
8354         obsolete AC_FOREACH.
8355         (Obsolete Macros): Document AC_FOREACH.
8356         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
8357         (m4_for): Fix to never loop (almost) endlessly, work correctly
8358         with arithmetic expressions in arguments, a step of zero or
8359         non-integer multiple of the interval, and avoid integer
8360         overflow.
8361         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
8362         m4_foreach_w.
8364 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
8366         Add basic support for Erlang, both for configuring Erlang/OTP
8367         tools, and Erlang as a conf test language.
8368         * lib/autoconf/erlang.m4: New file.
8369         * lib/autoconf/autoconf.m4: Add erlang.m4.
8370         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
8371         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
8372         * NEWS: Add short description of new macros.
8373         * THANKS: Add Romain Lenglet.
8375 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8377         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
8378         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
8380 2006-02-15  Eric Blake  <ebb9@byu.net>
8382         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
8383         warning.
8385 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8387         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
8388         (_AS_CASE): Private helper macro.
8389         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
8390         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
8391         Fix syntax of AS_IF description
8392         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
8393         for the AC_REQUIRE mess.
8394         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
8395         AS_SHELL_SANITIZE.
8397 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8399         * doc/autoconf.texi: Minor style cleanup.
8400         Be consistent about spaces after commas.
8401         Insert [] where empty args look a bit funny.
8402         Fix some "i.e." and "e.g." usages.
8403         Try to avoid "X/Y" usages.
8404         Don't be pedantic about "ISO C99"; just say C99.
8405         Prefer GNU style for spaces in front of parens.
8406         (Function Portability): Comment about C89 versus C99
8407         signed integer division.
8408         (Particular Headers): Use current gnulib style for dirent
8409         includes.
8411 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
8412         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8414         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
8415         macros without parameters.
8416         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
8417         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
8418         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
8419         `$#' bug.
8420         (autoupdate): Updated to match AU_ALIAS fix.
8422 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8423         and Paul Eggert  <eggert@cs.ucla.edu>
8425         * doc/autoconf.texi (Programming in M4sh): Document
8426         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
8428 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8430         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
8431         (AS_BOURNE_COMPATIBLE): ..this.
8432         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
8434 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8436         * doc/install.texi (Defining Variables): Tighten up the
8437         CONFIG_SHELL wording.
8439 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
8440         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8442         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
8443         of (set -o) rather than testing whether (set -o posix) succeeds,
8444         to work around a bug in the AIX 5.3 shell.  Problem originally
8445         reportd by Howard Chu for libtool.
8447 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
8449         * doc/autoconf.texi (Running the Compiler, Running the Linker):
8450         Changes the macro arguments in summaries to match the
8451         descriptions.
8453 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
8455         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
8456         hint as ``a workaround for a bug.''
8458 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8460         * bin/autoreconf.in: New option `--no-recursive'.
8461         Improve wording for subpackages a bit.
8462         * doc/autoconf.texi (autoreconf Invocation): Updated.
8463         * NEWS: Updated.
8465         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
8466         in environment of `configure', not the command line.
8467         Reported by Howard Chu <hyc@highlandsun.com>.
8469 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8471         * doc/autoconf.texi (Limitations of Builtins): Document the
8472         problem with "trap -".
8474 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
8476         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
8477         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
8478         messages to differentiate Fortran and Fortran 77 tests.
8479         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
8480         AC_LANG_ASSERT, to allow use in mixed-language projects.
8482 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8484         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
8485         FOO" to "defined (FOO)".
8486         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
8487         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
8488         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
8489         * tests/tools.at (ifnames): Likewise.
8491 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8493         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
8494         * lib/Autom4te/General.pm (mktmpdir): Likewise.
8495         (END): Improve error message a bit.
8496         Reported by Bruce Korb <bkorb@gnu.org>.
8498 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8500         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
8501         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
8503 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
8505         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
8506         requires sys/stream.h.  Reported by Oliver Kiddle.
8508 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8509             Stepan Kasal  <kasal@ucw.cz>
8511         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
8512         before the removals of test dirs, use `find' to avoid modification
8513         of symlinked directories.
8515 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
8517         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
8518         Don't ignore the macro arguments.
8520 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
8522         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
8523         declaration that works for MSVC.
8525 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8527         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
8528         Add `*.map' and `.inf' for Green Hills compiler.
8529         Reported by Stefan Seefeld <stefan@codesourcery.com>.
8531         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
8532         correctly: pad with spaces after FIRST_PREFIX if necessary,
8533         and compute string lenghts with `m4_qlen' instead of `m4_len'.
8534         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
8535         * tests/m4sh.at (AS_HELP_STRING): Test extended.
8536         * NEWS: Updated.
8537         Reported by numerous people, numerous times.
8539 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8541         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
8542         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
8543         * lib/autoconf/general.m4, lib/autoconf/status.m4:
8544         * lib/autotest/general.m4, tests/local.at:
8545         Update copyright year to 2006.
8547         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
8548         sed substitutions.
8549         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
8550         for file names, again.  Reported by Noah Misch.
8551         (Coding Style): Explain that s|a|b| is preferred for file names.
8552         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
8553         (AC_OUTPUT_MAKE_DEFS): Likewise.
8554         * lib/autotest/general.m4 (AT_INIT): Likewise.
8555         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
8556         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
8558         Fix Posix-conformance bugs re use of { command in sed scripts,
8559         and improve the sed-related documentation a bit.
8560         * doc/autoconf.texi (Installation Directory Variables): Use
8561         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
8562         rather than "sed" when talking about Sed in general.
8563         (Particular Programs): Likewise.
8564         (Coding Style): y is like s with respect to / and ,.
8565         (Limitations of Usual Tools): Document the weird restrictions
8566         that Posix has about { }.  Use better quoting.
8567         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
8568         Rewrite to conform to Posix rules about { } in sed scripts.
8569         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
8570         * tests/foreign.at (Libtool): Likewise.
8571         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
8572         Use our own style advice re 's,a,b,' versus 's|a|b|'.
8574 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8576         * lib/autoconf/status.m4: Fix typo.
8578         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
8579         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
8580         `-def', for the benefit of Portland `pgf90 -Mipa'.
8581         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
8583 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8585         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
8586         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
8587         shell from zsh to bash.
8589 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
8591         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
8592           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
8594 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8596         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
8597         parentheses in $(...).  Problem reported by Eric Blake.
8599 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8601         * doc/autoconf.texi (Limitations of Usual Tools):
8602         Mention which characters can be escaped with \ in portable regular
8603         expressions used in grep, sed, expr.  Mention the leading ^ problem
8604         with expr.  Clean up some confusing wording.  Mention which
8605         grep options are portable.
8607 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
8609         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
8611 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8613         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
8614         patch, noted by Ralf Wildenhues.
8616 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8618         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
8619         posix' unconditionally, for pdksh in `native sh' emulation.
8621 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8623         * doc/autoconf.texi (Shellology): Document eval $? problem
8624         with ash.
8625         (Limitations of Builtins): Likewise.
8627 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8629         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
8630         CONFIG_SHELL in the environment of the configure rerun.
8631         * doc/autoconf.texi (Here-Documents, config.status Invocation):
8632         Suggest passing CONFIG_SHELL absolute, and in the environment
8633         rather than as option.
8635 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8637         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
8638         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
8639         Fix macro quoting.  Fix output for n * 98 substituted variables.
8641 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8643         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
8644         `tmp' to avoid file removal race.
8646 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8648         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
8649         ac_clean_files and LIBOBJS.
8651 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8653         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
8654         Factor functionality to..
8655         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
8656         `AC_SUBST($1)' in the public version.
8657         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
8658         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
8659         ac_pt_* variables.
8661 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
8663         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
8664         filesystems.
8666 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8668         * NEWS: Move AH_HEADER mention to right place.
8670 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
8672         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
8673         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8675 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
8677         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
8678         conftst2.$ac_objext.
8679         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8681 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
8683         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
8684         conftest.o, to see whether the compiler really obeys; rm the object
8685         file before and after the test and register it with ac_clean_files.
8686         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8688 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
8690         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
8691         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
8692         code so that the most common case requires less forks.
8694 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
8696         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
8697         not portable; thanks to Paul Eggert and Alexandre.
8699         * NEWS: Fix an old typo.
8701 2005-10-20  Jim Meyering  <jim@meyering.net>
8703         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
8704         the latter'', in two places.
8706 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8708         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
8709         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
8710         the inner workings of AC_LANG_FUNC_LINK_TRY.
8711         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
8712         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
8713         by the function rather than ignoring it.
8714         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
8715         comparing its address.  Intel's interprocedural optimization was
8716         outsmarting the old heuristic.  Problem reported by
8717         Mikulas Patocka.
8719 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
8721         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
8723 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8725         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
8726         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
8728 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
8730         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
8731         before removing it (chmod -R u+rwx); there are three instances of this.
8733 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8734             Stepan Kasal  <kasal@ucw.cz>
8736         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
8737         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
8738         make its content writable before removing it.  Remove an errorneous
8739         comment from the end, where the logs of the failed tests are copied
8740         to the main log file.
8742 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
8744         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
8745           in case the computer is too quick.  Double quote the configure.ac
8746           snippets.
8748         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
8749           problems if the testsuite were running too fast.
8751 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8753         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
8754         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
8755         (which belong to Xt, not X itself).  See Debian bug 327655.
8756         * NEWS: Mention this.
8758 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
8760         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
8762 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8764         * config/move-if-change: Don't output "$2 is unchanged";
8765         suggested by Ben Elliston.  Handle weird characters correctly.
8767 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
8769         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
8770           calls, so that the final expansion of this macro is shorter.
8771           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
8772           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
8773           the cleanup there.  Use AS_VAR_* macros, to be more general.
8774         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
8776         * lib/autoconf/general.m4: Use AS_IF where appropriate.
8778         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
8780 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
8782         * doc/autoconf.texi (Configuration Headers): Add an index entry
8783           for AH_HEADER.
8785 2005-08-26  Pavel Roskin  <proski@gnu.org>
8787         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
8788         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
8789         running xmkmf.
8791 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
8793         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
8794         The previous patch didn't work, so try a better one.
8796 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
8798         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
8799         in the example.  Reported by Bruno Haible.
8800         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
8801         "if $undefined_var;" succeeds with my shell.
8803         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
8804         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
8805         but change the m4_divert_text to m4_divert_once.
8807 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8809         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
8810         Work around bug in Solaris /usr/xpg4/bin/awk.
8811         The bug is present in at least Solaris 8 through 10.
8813 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
8815         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
8816         some evil values and relying on the fact that $* concatenates the
8817         parameters by the first character from IFS.
8819 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
8820             Stepan Kasal  <kasal@ucw.cz>
8822         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
8823         first header appears, define AH_HEADER.
8824         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
8825         Update limitations about when to call AC_CONFIG_HEADERS.
8826         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
8827         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
8828         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
8829         ``Configuration Actions''; fix their index entries.
8831         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
8832         options correctly.  Process N-M as M-N if M is smaller than N.
8833         Process ranges correctly so that N-N will run only N.
8834         Sort and uniquify the tests that will be run.  If there is more
8835         than one test, reinsert the banners for the tests.
8836         * tests/autotest.at (Keywords): Unmark XFAIL.
8838 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
8840         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
8841           before passing the macro name to AH_TEMPLATE.
8843         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
8844           now opens log after option processing; in particular, --version
8845           and --help do not touch config.log.
8847         * Makefile.maint: Revert the change from 2005-08-12.
8849 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
8851         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
8852           common code to...
8853         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
8855 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8857         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
8858         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
8859         Language cleanup.
8861         * doc/autoconf.texi (Defining Symbols, Changed Results):
8862         Prepend to LIBS, not append, in examples.
8864 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
8866         When building in place, set srcdir="."; suggested by Tim Van Holder.
8868         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
8869           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
8870         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
8871         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
8872           does not mean "no --srcdir option".
8874 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8876         * tests/autoscan.at (autoscan): New file.
8877         * tests/suite.at: Use it.
8878         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
8879         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
8881         * tests/autotest.at (Keywords): Test keywords combinations.
8883 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
8885         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
8886           add "2>&1"; gzip 1.2.4 prints help on stderr.
8888 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
8890         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
8891         was pushdef'ed twice while popped only once.  Push it only once.
8892         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
8894 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
8896         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
8897         prefixed by mere "===", not "configure: === ".
8899 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8901         * Makefile.maint: Update from Bison.
8903         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
8904         "<tab>" in comment, so that the point is understandable.
8906 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
8908         Rewrite substantial part of lib/autoconf/status.m4.
8909         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
8910         and CONFIG_COMMANDS are not processed in four separate loops.
8911         Instead, there is one main loop.  This alows that the common code
8912         is expanded only once, thus config.status (and configure) is smaller.
8914         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
8915         the AC_LIST_FILES and cousins macros are no longer used.
8917         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
8918         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
8919         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
8920         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
8921         contain the initialization, nor the for loop, nor the associated
8922         commands; all these go to ...
8923         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
8924         _AC_OUTPUT_CONFIG_STATUS.
8925         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
8926         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
8927         (_AC_OUTPUT_FILE): The creation of the sed script ...
8928         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
8929         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
8930         _AC_OUTPUT_MAIN_LOOP.
8931         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
8932         _AC_CONFIG_COMMANDS): Use ...
8933         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
8934         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
8935         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
8936         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
8937         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
8938         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
8939         ... new macros.
8940         (_AC_CONFIG_UNIQUE): Update.
8941         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
8942         Replaced by this ...
8943         (_AC_LIST_TAGS): ... new common macro.
8944         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
8945         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
8946         (_AC_LIST_TAG_COMMANDS): ... new common macro.
8947         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
8948         this didn't belong to the `config commands' section.
8949         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
8950         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
8951         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
8952         to the `config commands' section either.
8953         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
8954         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
8956         ... and many changes to the comments nearby.
8958         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
8959         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
8960         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
8961         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
8962         (#define header templates): The comment at the top of the generated
8963         header now includes the name(s) of the source file(s).
8965         Several unrelated small changes:
8967         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
8968         parameter to AC_DIAGNOSE.
8969         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
8970         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
8971         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
8972         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
8973         with AU::AC_OUTPUT.
8974         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
8975         in AC_OUTPUT doesn't double-quote it either.
8976         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
8977         parameters.
8979 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
8981         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
8982         versions of Portland Group compiler produce single- and double-quoted
8983         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
8984         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
8986 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
8988         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
8989         This is a corrected version of yesterday's patch.
8991 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
8993         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
8994         path, too; insert a "===" to emphasize the line.
8996         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
8997           ac_cv_build_alias to ac_build_alias.
8998         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
9000         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
9001         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
9002         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
9003         (AC_ARG_VAR): ... here.
9004         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
9005           target_alias.
9007         Keep a list of all precious variables and process them with one simple
9008         for loop, instead of expanding all commands, or, OTOH, complicated
9009         processing of output of "set".
9010         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
9011         variable names in new macro...
9012         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
9013         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
9014           a loop to assign all ac_env_* and ac_cv_env_* variables.
9015         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
9016           to INIT_PREPARE.
9017         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
9018           its value to shell variable ac_precious_vars and call
9019           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
9020         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
9021           _AC_ARG_VAR_VALIDATE.
9023         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
9024           and the AC_SUBSTs ...
9025         (AC_INIT): ... here.
9027         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
9028           the ac_subst_files section in config.log.
9030         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
9032 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9034         * NEWS: New macro AC_C_TYPEOF.
9035         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
9036         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
9037         * tests/c.at (C keywords): Test AC_C_TYPEOF.
9039         Fix problems reported by Nicolas Joly.
9040         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
9041         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9042         They are generated by the Tru64 v5.1B shell.
9044 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
9046         Fix my changes from 2005-07-01; reported by Noah Misch.
9047         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
9048         description, the macro now accepts only a single tag.
9049         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
9051         Fix cases when the varsions of Autoconf and Autotest don't match.
9052         Reported by Noah Misch.
9053         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
9054         at_top_builddir, for compatibility with older autotest.
9055         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
9056         is not set, use at_top_builddir, for compatibility with older
9057         versions of autoconf.
9059 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
9061         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
9062         Problem reported by Patrick Welche.
9064 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9066         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
9067         sed substitution command, so that we allow | in program prefixes
9068         and program suffixes.  (& is a problem anyway; we're not fixing
9069         that here.)
9070         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
9071         configure_input, top_builddir, srcdir, etc.
9072         * lib/autotest/general.m4 (AT_INIT): Likewise, for
9073         PATH_SEPARATOR in AUTOTEST_PATH.
9075 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
9077         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
9078         for loop over config.site files using `set', to allow
9079         directory names containing IFS characters.
9081 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
9083         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
9084         directories with weird names.  Apparently some people like living
9085         on the edge.  However, improve the test that "pwd" actually does
9086         report a name for the working directory.
9087         * NEWS: Remove the claim that we test for funny chars in dir names.
9089 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
9091         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
9092         replaced ...
9093         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
9094         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
9095         Now accept a single tag, not whitespace separated list.
9096         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
9098 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
9100         * doc/autoconf.texi (Configuration Headers): Change the explanation
9101         about #include <config.h>.
9102         (Generic Functions): Mention the Gnulib project.
9103         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
9105         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
9106         document to output the default config_* lists to config.status.
9107         Don't recognize option --file, if the functionality is not there.
9108         Likewise for --header; moreover, recognize --he and --h as shortcuts
9109         for --help in that case.
9111         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
9112         matches the order of execution.  No code changed.
9114 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9116         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
9117         single-quoted -cmdline argument in Portland Group compiler.
9118         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
9120 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
9122         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
9124 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
9126         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
9127         descriptors to child processes; reported by Norman Gray.
9129 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
9131         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
9133         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
9134         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
9135         (AC_SUBST): Call it.
9136         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
9137         the directory specific variables; but don't call it for configure_input.
9139 2005-06-28  Derek Price  <derek@ximbiot.com>
9141         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
9142         addition.
9144 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9146         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
9147         directory have inherent problems with special characters like spaces,
9148         due to limitations in Make syntax.  Problem reported by Alexandre
9149         Duret-Lutz.
9150         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
9151         Also, fix Tru64 porting problem with shell patterns,
9152         reported by Ralf Wildenhues.
9154 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9156         * doc/autoconf.texi (Subdirectories): Fix markup typos.
9158 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9160         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
9162         Fix some more shell quoting problems.  Prompted by a bug report
9163         from Justace Clutter.
9164         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
9165         variable into diagnostic.  Make the diagnostic an error, not a warning,
9166         because we really don't support spaces and suchlike in dir names.
9167         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
9168         Don't worry about backslashes in srcdir; it can't happen now.
9169         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
9170         Simplify ac_optarg handling.
9171         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
9173 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
9175         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
9176         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
9177         * tests/atlocal.in: Propagate $EGREP and $SED.
9178         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
9179         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
9181         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
9182         that '\|' is not allowed in BREs; recommend using newline separated
9183         list of patterns instead of multiple -e options.
9185         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
9187         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
9189 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9191         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
9193 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
9195         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
9196         b, t, r, w commands require single space, while : cannot have any.
9197         (Special Shell Variables): Fix sed code this in the example.
9198         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
9199         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
9201         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
9202         expand to the empty list.  Don't use two pairs of m4_changequote,
9203         it's not necessary.
9205 2005-06-20  Derek Price  <derek@ximbiot.com>
9207         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
9209 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
9211         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
9212         * doc/autoconf.texi:
9213         Don't mention Solaris versions so much, if a
9214         problem is common to all extant versions of Solaris.  Say "SunOS
9215         4" instead of "SunOS" for SunOS 4.
9216         (awk): Mention more of the limitations of traditional Awk.
9217         (cat): Don't talk about cat -v.
9219 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9221         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
9222         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
9223         but the implementation is entirely different and is designed
9224         to be compatible with glibc strverscmp.
9225         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
9227         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
9228         on Mac OS X 10.4 reported by Peter O'Gorman in:
9229         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
9230         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
9231         Use shell builtins rather than 'expr', to work around expr bug.
9233 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
9235         * doc/autoconf.texi: "filesystem" -> "file system".
9236         "behaviour" -> "behavior".
9237         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
9238         * lib/autoconf/general.m4: Omit blank after ":" sed command,
9239         as per POSIX.
9240         * lib/m4sugar/m4sh.m4: Likewise.
9241         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
9242         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
9244         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
9245         (.x.1): Ignore the time stamp in the .TH line when deciding whether
9246         to update the man page.  That way, we don't have to check in new
9247         man pages every month.
9249         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
9250         quotes and backslashes.  Patch from Derek Price.
9252 2005-06-10  Derek Price  <derek@ximbiot.com>
9254         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
9255         AS_TR_SH.
9257 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
9259         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
9260         -u, since it outputs chatter if the input files are the same.
9261         Problem reported by Ralf Menzel.
9263 2005-06-08  Derek Price  <derek@ximbiot.com>
9265         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
9266         renaming them since they are about to be redefined anyhow.
9268 2005-06-08  Derek Price  <derek@ximbiot.com>
9270         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
9271         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
9272         Move m4_undefine to alphabetical order.
9274 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9276         * README: Recommend GNU M4 1.4.3 or later.
9277         * doc/autoconf.texi (Introduction): Likewise.
9278         Reword to avoid some formatting glitches.
9279         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
9280         Clarify explanation of HP compiler bug.
9281         Redo example output tp match current CVS snapshot.
9282         Use @example.org in email addresses when the examples
9283         might get inadvertently cut-and-pasted into user code.
9284         Remove example of autom4te usage that doesn't seem to work now.
9285         Use modern AC_INIT (except when the example is meant to be
9286         shown with Autoconf 2.13).
9287         Update ksh info for Solaris 9 and later.
9288         KB -> kB.
9289         Modernize description of Automake versions a bit.
9290         Don't claim a future version of Autoconf is near.
9291         * doc/install.texi: Reword to avoid some formatting glitches.
9293 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9295         * doc/autoconf.texi: Add [] to examples, so that the manual
9296         follows its own advice about quoting better.
9297         Reword to avoid some formatting glitches.
9298         * doc/installt.exi: Reword to avoid some formatting glitches.
9300         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
9301         Tru64 ksh pattern matching bug.  Reported against Libtool by
9302         Albert Chin <libtool@mlists.thewrittenword.com> and
9303         Nicolas Joly <njoly@pasteur.fr>.
9305 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
9307         m4_cdr of one-member list was [[]] (one-member list containing an
9308         empty string) instead of [] (an empty list.  Callers were skewed to
9309         match this misbehaviour.  As a consequence of this:
9310          - m4_foreach([x], [], [foo]) expanded to `foo', while
9311          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
9312         This bug has been fixed:
9314         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
9315           expand to an empty string; print error msg if called without
9316           an argument list.
9317         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
9318           misbehaviour; handle [] and [[]] correctly.
9320 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
9322         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
9323         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
9324           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
9326 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
9328         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
9329           swallow records with more than 99 fields.
9330         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
9331           parse the long line.
9333 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
9335         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
9336           swallow literals longer than 399.  Reported by Ralf Wildenhues.
9337         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
9338           to workaround this limitation.
9340 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
9342         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
9343         to gfortran, and make these the first two compiler names
9344         checked (following the general autoconf preference for gcc).
9346 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
9348         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
9349         (DISTCLEANFILES): Remove $(check_SCRIPTS).
9350         (testsuite): Make sure autotest.m4f is up-to-date before using it.
9352 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9354         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
9355         expression of unbounded size when processing the --list
9356         option.  This runs afoul of a limit of 399 bytes per regular
9357         expression on AIX.  Problem reported by Ralf Wildenhues.
9359 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
9361         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
9362         * doc/autoconf.texi (Particular Headers): Reword example
9363         for multiline stdbool replacement.
9364         (Setting Output Variables): Reword text a bit.  Don't
9365         give all the details about |#_!!_#|.
9366         Reword description of line replacement.
9368 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
9370         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
9371         now contain newlines, and substituted files must be referenced on
9372         a line alone; the sed scripts to substitute them are now very
9373         different.
9374         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
9375         commands can be put in a sed script portably.
9376         * doc/autoconf.texi (Setting Output Variables): Document above
9377         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
9378         use of multiline substitution.
9379         * tests/torture.at: No longer expect substitution of newline to fail.
9381 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
9383         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
9384         From Ralf Menzel (trivial change).
9386 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
9388         * tests/local.at: Don't attempt to check for negated character
9389         classes in shell scripts.  The test was too brittle.
9391 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
9393         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
9394         * doc/autoconf.texi (Limitations of Builtins): Document this
9395           limitation.
9397 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
9399         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
9400           common code; used in many places in the tree.
9401         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
9402         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
9404         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
9406         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
9407           messages when ac_unique_file is not found.
9408         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
9409         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
9410           commands, for consistency with AC_MSG_ERROR and such.
9412         * bin/autoconf.as: Make more use of "shift 2" in option processing.
9414         * bin/Makefile.am: Merge the two rules for creating scripts.
9416 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
9418         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
9419         obsolete; it was never documented.
9420         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
9422 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
9424         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
9425         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
9426         (ac_top_builddir): ... this ...
9427         (ac_top_build_prefix): ... to this; the old name is also kept, for
9428           backward compatibility.
9429         (ac_top_builddir_sub): New variable, without the trailing slash,
9430           always nonempty.
9431         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
9432         * doc/autoconf.texi (Configuration Actions): Rename
9433           ac_top_builddir to ac_top_build_prefix.
9434         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
9435           at_top_builddir to at_top_build_prefix.
9436         * lib/autotest/general.m4 (AT_INIT): Likewise.
9438 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
9440         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
9441           of confdefs.h .
9443 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
9445         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
9446           argument to m4_foreach.  I guess it was necessary in the past,
9447           but I think it's a no-op now.
9449 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
9451         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
9452           ``cat <<_ACEOF'' commands to one.
9453         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
9454         * lib/autoconf/status.m4: On various places, use expr instead of
9455           ``echo|sed.''
9456         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
9457         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
9458         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
9459           a range.
9460         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
9461           the wrong patterns between ``case'' and ``esac.''  The previous
9462           code had false positives.
9464 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
9466         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
9467         as on 2005-05-02.
9468         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
9469         Mention LIBOBJDIR.
9471 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9473         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
9474         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
9475         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
9476         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
9477         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
9478         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
9479         config/config.guess, config/config.sub, config/elisp-comp,
9480         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
9481         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
9482         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
9483         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
9484         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
9485         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
9486         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
9487         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
9488         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
9489         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
9490         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
9491         lib/autoconf/general.m4, lib/autoconf/headers.m4,
9492         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
9493         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
9494         lib/autoconf/specific.m4, lib/autoconf/status.m4,
9495         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
9496         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
9497         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
9498         lib/autotest/general.m4, lib/emacs/Makefile.am,
9499         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
9500         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
9501         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
9502         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
9503         tests/compile.at, tests/foreign.at, tests/fortran.at,
9504         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
9505         tests/semantics.at, tests/suite.at, tests/tools.at,
9506         tests/torture.at, tests/wrapper.as:
9507         Update FSF postal mail address.
9509 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
9511         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
9512           check.
9513         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
9514           enough arguments, similarly as in m4_bpatsubsts.
9516 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
9518         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
9519           of absolute paths.
9521 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
9523         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
9524           for absolute directory names in one loop.
9525         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
9526           abbreviations of --version and --debug.
9528 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9530         * doc/autoconf.texi (Autoconf Language): Be more precise about
9531         quoting rules.  Problems noted by Stepan Kasal.
9532         Also, throughout this document, be more careful about white space.
9533         "blank", "white space", and "space" all have different meanings
9534         and we should be careful to say what we mean.
9536 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9538         Fix C++ related problems reported by Werner Lemberg.
9539         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
9540         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
9541         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
9542         avoid problems with C++ and throw.
9543         * tests/compile.at: .cpp, not .cc.
9545         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
9547 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9549         * doc/autoconf.texi (Generic Functions): Typos.
9551 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
9553         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
9554         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
9555         set by latest automake.
9557 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
9559         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
9560         outputs 0 on GNU/Linux these days.
9562 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
9564         * doc/autoconf.texi (Autoconf Language): Add more description
9565         about quoting heuristics.
9566         (Limitations of Builtins): Describe "set -" problems.
9568 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9570         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
9571         not newline.
9573         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
9574         by AC_DEFINE; it was a mistake.
9575         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
9577 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
9579         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
9581 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
9583         * doc/autoconf.texi (External Software): Quadrigraphs are not
9584           processed correctly in AS_HELP_STRING; avoid this in the examples.
9585         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
9586         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
9587           comment and reduce m4_default([foo], []) to [foo].
9588         (m4_strip): Update the explanation.
9590 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
9592         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
9593         Remove core.conftest.* too; it's generated by Tru64 5.1.
9594         Problem reported by Jennis Pruett.
9595         * lib/autoconf/functions.m4
9596         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9597         Don't bother to remove core files; AC_RUN_IFELSE should do that
9598         for you.
9600 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
9602         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
9604 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
9606         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
9607         Report from Horst Wente.
9609 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
9611         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
9612           the comment.
9614 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
9616         * doc/autoconf.texi (External Software, Package Options): Add
9617           examples showing how to implement --with-* and --enable-* options.
9619 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9621         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
9622         as well as configure.in.  Problem reported by Gregorio Guidi.
9624 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
9626         * doc/autoconf.texi (Particular Functions): Use gnulib's current
9627         pattern for alloca snippet.
9629 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
9631         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
9633 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
9635         * doc/autoconf.texi (Generic Programs): Fix a typo.
9637 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
9639         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
9640         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
9642 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9644         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
9645         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
9646         whole-archive (-zallextract, -zdefaultextract) options in the hope of
9647         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
9648         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
9650 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9652         * NEWS: The configure command now warns you if you attempt to use
9653         a directory whose name contains a special character like space,
9654         newline, or "\".
9655         * doc/autoconf.texi (Installation Directory Variables): Allow
9656         "," in file names.  Do not use \@; it's not a portable regexp.
9657         * bin/Makefile.am (edit): Likewise.
9658         * lib/Makefile.am (edit): Likewise.
9659         * tests/Makefile.am (edit): Likewise.
9660         * tests/semantics.at: Likewise.
9661         * tests/torture.at: Likewise.
9662         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
9663         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
9664         * doc/autoconf.texi (File System Conventions): Warn about
9665         unportable file names.
9666         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
9667         (AC_INIT): Use it.
9668         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
9669         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
9670         ac_pwd, and quote srcdir.
9671         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
9673         * doc/autoconf.texi: Fix some systematic formatting problems.
9674         ".)"  needs a following @: if not at the end of a sentence, and
9675         similarly for "!)".  "etc." should be preceded by a comma.
9676         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
9678 2005-03-22  Bruno Haible  <bruno@clisp.org>
9680         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
9681         argument is often called 'build-aux'.
9683 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
9685         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
9686           macro AC_TRY_LINK is obsolete.
9687         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
9688           `AC_CONFIG_FILES'.
9690 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
9692         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
9693           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
9694           from a Common Lisp's `cl'.
9695         (AC_PROG_CXX): Behave according to the documentation: don't
9696           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
9697           make the variable CCC precious; use `cl.exe', not `cl'.
9699 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9700             Alexandre Duret-Lutz  <adl@gnu.org>
9702         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
9703         /dev/null, as "configure" shouldn't read stdin, and this insulates
9704         us from problems (e.g., when testing for "cl").  Also, do this
9705         redirection before invoking "hostname" or "uname", and keep the
9706         original input stream available via...
9707         (AS_ORIGINAL_STDIN_FD): ... this new macro.
9708         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
9709         bother with "</dev/null" since it's now done at the top of
9710         'configure'.
9711         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
9712         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9713         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
9714         * doc/autoconf.texi (File Descriptor Macros): New section.
9715         (Printing Messages): Mention it.
9716         * tests/base.at (Input/Output): New test.
9718 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9720         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
9721         newline if neither \c nor -n work, as that would output two
9722         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
9724 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
9726         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
9727         This causes that any required macros inside will get before the if.
9728         * doc/autoconf.texi (autom4te.cache): A typo.
9730 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9732         Undo previous change, except keep the change to
9733         lib/autoconf/programs.m4 that replaced grep with shell
9734         pattern-matching.  This is because net-snmp configure reads stdin.
9735         Reported by Noah Misch.
9737 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
9739         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
9740         from /dev/null, as "configure" shouldn't read stdin, and this
9741         insulates us from problems (e.g., when testing for "cl").
9742         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
9743         before invoking "hostname" or "uname".
9744         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
9745         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
9746         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
9747         "</dev/null" since it's now done at the top of 'configure'.
9748         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9749         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
9750         Also, replace grep with shell pattern-matching, to save a process.
9752 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
9754         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
9755         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
9756         avoid thinking that Allegro Common Lisp's "cl" command is a C++
9757         compiler.
9759 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9761         * doc/autoconf.texi (Limitations of Usual Tools): Document that
9762         grep -q isn't portable.  Improve grep -s explanation.
9763         Problem reported by Dan Manthey.
9765 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9767         * doc/autoconf.texi (Special Shell Variables): Clarify
9768         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
9770 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9772         * doc/autoconf.texi: Use @acronym for DJGPP.
9773         Fix some @code's that should have been @env's, and vice versa.
9774         Sort environment variable names.
9775         Mention that shells no longer inherit IFS.
9776         Don't recommend PATH_SEPARATOR=';' so strongly.
9777         Mention that $RANDOM might expand to the empty string.
9778         "symlink" and "soft link" -> "symbolic link".
9779         Improve mktemp description (reported by Bruno Haible).
9781 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9783         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
9784         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
9785         Likewise.
9786         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
9787         Likewise.
9789 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9791         * NEWS: Mention AT_COPYRIGHT.
9793         * tests/local.at (AT_CMP): Use diff directly on input files rather
9794         than copying them.
9796         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
9797         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
9799 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
9800         and Paul Eggert  <eggert@cs.ucla.edu>
9802         * tests/autotest.at (Empty test suite): New test.
9803         * tests/torture.at (Substitute and define special characters)
9804         (Substitute a 2000-byte string, Define to a 2000-byte string)
9805         (Substitute a newline, Define a newline): New tests.
9807 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
9809         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
9810         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
9811         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
9812         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
9813         (Standard regular expressions): New test.
9814         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
9815         excess test name quoting.
9816         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
9817         CPPFLAGS to `configure' instead of setting it in `configure'.
9819         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
9820         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
9821         on some platforms.
9823         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
9824         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
9826         * tests/local.at (AT_CMP): New macro.
9827         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
9828         (AC_SAVE_STATE): Move environment grep...
9829         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
9830         (AT_CONFIG_CMP): New macro.
9831         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
9832         * tests/c.at (Extensions): Do not exit early.
9833         * tests/atlocal.in: Inherit $GREP.
9835         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
9836         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
9838         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
9839         (AC_COPYRIGHT): Factor header comment portion out and move into...
9840         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
9841         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
9842         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
9843         --version output.
9844         * tests/local.at: Add Autoconf test suite copyright notice.
9845         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
9847 2005-02-04  Bruno Haible  <bruno@clisp.org>
9848         and Paul Eggert  <eggert@cs.ucla.edu>
9850         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
9852 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9854         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
9855         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
9857         Try not to generated lines of unlimited length, as POSIX places a
9858         2047-byte limit on line length of portable text files.
9859         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
9860         Use newline as a separator, not space.
9861         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
9862         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
9863         space.
9865 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9867         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
9868         as_func_*.  Add test to check whether positional parameters
9869         are restored after function return.
9871 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9873         * doc/autoconf.texi (Special Shell Variables): Mention _,
9874         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
9875         if they contain a lower-case letter.  The DUALCASE problem was
9876         reported by Ralf Wildenhues.
9878         * bin/autoconf.as: Don't exit with status 0 after write failure
9879         with --help or --version.
9880         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
9881         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
9883 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9885         * doc/autoconf.texi (Limitations of Usual Tools):
9886         Unicos 9 sed limitations.
9887         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
9888         to get the option-enhanced interface on older Crays.  Try ftn for
9889         Fortran 95 (newer Crays).
9891 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
9893         * man/Makefile.am (.x.1): Go back to the simple solution, but take
9894         care to echo the commands, so the user knows what's going on.
9895         Modified from a suggestion by Stepan Kasal.
9897         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
9898         with a cross reference.  Derived from a suggestion by Bruce Korb.
9900 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
9902         * doc/autoconf.texi (config.status Invocation): Warn about
9903         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
9904         * doc/install.texi (Defining Variables): Likewise.
9905         Based on a proposed patch by Ralf Wildenhues.
9907         * man/Makefile.am (.x.1): Make sure the required generated files
9908         are up to date.  Problem and original solution proposed by Stepan Kasal.
9909         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
9910         implicit-man-prerequisites): New rules, used by the above.
9912         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
9913         * config/config.guess, config/config.sub, config/install-sh: Likewise.
9914         * config/missing, config/texinfo.tex: Likewise.
9916 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
9918         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
9919         Update the long comment explaining it.
9921         m4_require no longer writes an ``is required by'' line to the
9922         execution stack.  It contains only one bit of non-redundant
9923         information: that the macro was required, not called.  And even
9924         this bit is useless in most situations: have you ever met a macro
9925         which both calls and requires the same macro?
9927         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
9928         (_m4_defun_pro_outer): ... only via this macro, for the outermost
9929           macro.
9930         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
9931         (m4_expansion_stack_pop): Remove the misplaced comment.
9932         (m4_require): Don't put the ``is required by'' line to the
9933           execution stack; slightly improve the out-of-a-defun error message.
9934         (_m4_divert_grow): New macro, counter for the temporary diversions.
9935         (_m4_require_call): Use it.
9936         * tests/m4sugar.at (m4_require): Expect output without the
9937           ``is required by'' messages.
9939 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9941         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
9942         rather than x for expr.
9944         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
9945         this is safe.
9946         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
9947         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
9948         * lib/autotest/general.m4 (AT_INIT): Likewise.
9949         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
9950         * tests/mktests.sh: Likewise.
9952 2005-01-27  Akim Demaille  <akim@epita.fr>
9954         Have autoheader honor --force.
9956         * doc/make-stds.texi, doc/standards.texi: Update from masters.
9957         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
9958         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
9959         from masters, so that FileUtils.pm's update_file provide --force
9960         support.
9961         * bin/autoheader.in: Pass $force to update_file so that
9962         config.h.in is always recreated when --force.
9964 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
9966         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
9968 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9970         * doc/autoconf.texi (Limitations of Builtins): Clarify that
9971         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
9973 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9975         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
9976         Warn about newline stripping in `` and $().  Update Solaris
9977         version to 9.
9978         (Limitations of Builtins): Use expr "X...", not expr "x...", as
9979         X insulates us from future changes to Posix.
9980         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
9981         stripping.
9983 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
9985         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
9986           you cannot use AC_DEFINE to define macros containing `[' or `]'.
9988 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9990         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
9991         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
9992         bug-tar mailing list.
9994 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
9996         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
9998 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10000         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
10001         ulongval to be static, to avoid unwanted GCC warning.  Problem
10002         reported by Michael Jennings via Daniel Reed; see
10003         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
10005 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
10007         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
10008         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
10009         datadir, infodir, and mandir.  Adjust argument parsing code.
10010         (_AC_INIT_HELP): Update help text.
10011         * doc/autoconf.texi (Installation Directory Variables): Document
10012         new variables.
10014 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
10016         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
10017         not seem to work, assume it does set $(MAKE).
10018         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
10020 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
10022         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
10024 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
10026         A cleanup of the diversion support in m4sugar.
10028         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
10029         (_m4_divert_n_stack): New macro; the expansion is
10030           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
10031           otherwise.
10032         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
10033         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
10034           stored in _m4_divert_diversion or _m4_divert_dump.
10035         (m4_divert_pop): When the parameter is given, compare the symbolic
10036           name with the last diversion pushed on the stack.  Previously, the
10037           current diversion was compared with the numeric value of the
10038           diversion given as the parameter.
10039         (m4_require): If the macro hasn't been expanded yet, call ...
10040         (_m4_require_call): this new macro.
10042 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10044         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
10045         Workarounds for documented `case' limitations.
10047 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10049         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
10050         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
10052 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10054         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
10055         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
10056         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
10058         Patch from Roger Leigh (with some minor changes) as follows:
10059         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
10060         Resurrect AC_PROG_CC_STDC.
10061         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
10062         AC_PROG_CC_C89, AC_PROG_CC_C99.
10063         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
10064         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
10065         AC_PROG_CC_C99): New macros.
10066         (AC_PROG_CC_STDC): Use them.
10067         (_AC_PROG_CC_STDC): Remove.
10068         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
10069         * THANKS: Add Roger Leigh.
10071 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
10073         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
10074         signals that the package uses Automake; a `Makefile.am' is typical but
10075         not essential.  Reported by Magnus Therning.
10076         * tests/torture.at (autoreconf.): New banner.
10077         (autoreconf and non-AC configure): Rename to `Non-Autoconf
10078         AC_CONFIG_SUBDIRS'.
10079         (autoreconf an empty directory): Rename to `Empty directory'.
10080         (Unusual Automake input files): New test.
10082 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
10084         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
10085         (AT_SETUP): Clear AT_capture_files.
10086         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
10087         (AT_KEYWORDS): Fix comment typo.
10088         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
10089         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
10090         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
10092 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
10094         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
10095         If the variable to set is already set, set ac_cv_path_$1
10096         to the preset value so caller can assume ac_cv_path_$1
10097         is available.  (trivial change)
10099 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
10101         * BUGS (Minor Problems): Warn about makefile limitations.
10102         * Makefile.am: Find and update `INSTALL' in $(srcdir).
10103         * man/Makefile.am: Find and update manual pages in $(srcdir).
10105 2004-12-24  Eric Blake  <ebb9@byu.net>
10107         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
10108         shells in subshell, to avoid noise from ash.  (trivial change)
10110 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10112         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10113         problems with SunOS ksh and backslash escaping, Bourne shells and
10114         closing brackets (both within character classes).  Bug reported
10115         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
10116         <read>: New entry.  Mention non-availability of -r.
10118 2004-12-21  Akim Demaille  <akim@epita.fr>
10120         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
10121         avoid cluttering displayed messages.  Rather, prepend srcdir where
10122         AT_LINE is used for log files.
10124 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
10126         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
10127         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
10128           no longer part of the macro, quote the occurrence of ``$tmp''.
10129         * doc/autoconf.texi (Forbidden Patterns): Typo.
10131 2004-12-21  Akim Demaille  <akim@epita.fr>
10133         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
10134         separated from the test title by forcing a white space.
10136 2004-12-21  Akim Demaille  <akim@epita.fr>
10138         Enable Emacs navigation within testsuite.log files.
10140         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
10141         use the compilation mode.
10142         (AT_LINE): Point to the srcdir.
10144 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
10146         * tests/Makefile.am (installcheck-local): Use $(bindir).
10147         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
10148         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
10149         Makefile.am scheme Autoconf now uses.
10151 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
10153         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
10154         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
10156 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
10158         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
10159         (_AT_CHECK): Use it.
10160         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
10161         (AS_ESCAPE): Fix comment.
10162         * tests/autotest.at: Adjust section banner comments.
10163         (AT_CHECK_AT): Accept STATUS and STDERR.
10164         (AT_CHECK_AT_TEST): Likewise.
10165         (Invalid brace-enclosed parameter expansion)
10166         (Multiline command from M4 expansion)
10167         (Double-M4-quoted command): New tests.
10169 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10171         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
10173 2004-12-17  Akim Demaille  <akim@epita.fr>
10175         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
10176         m4_pattern_allow.
10177         Suggested by Alexandre Duret-Lutz.
10178         * doc/autoconf.texi (Setting Output Variables): Catch up.
10180 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
10182         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
10184 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
10186         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
10187           remove the comment which said we cannot.
10189 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
10191         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
10192         Reini Urban and Paul Eggert for reporting the dependencies.
10194         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
10195         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
10196         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
10198 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
10200         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
10201           so that eg. ``autoscan --help'' doesn't truncate it.
10203 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
10205         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
10206         generated conftest files.
10208 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
10210         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
10211         tracing on commands with possibly-escaped newlines.
10212         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
10213         discontinued behavior and its implications.
10214         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
10215         (BSx641-newline in command, BS-BS-newline in command)
10216         (BSx640-newline in command, Newline-CODE-BS-newline in command)
10217         (Single-quote-BS-newline in command)
10218         (Single-quote-newline-BS-newline in command): New tests.
10220 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
10222         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
10223           on platforms where it works.
10224         (_AS_TEST_PREPARE): Test for ``test -x''.
10225         (_AS_BROKEN_TEST_PREPARE): Nuke.
10227 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
10229         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
10230         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
10231           give only 4-letter prefix to AS_TMPDIR, comment fixed.
10232         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
10233           create the temporary directory.
10234         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
10236 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
10238         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
10239         (trivial change)
10241 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
10243         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
10245 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
10247         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
10248         to avoid using a negated character class.  Reported by Nicolas Joly.
10249         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
10251 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
10253         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
10254         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
10255         Don't depend on .x file explicitly, since "make" does that for us.
10256         Suggested by Stepan Kasal.
10258         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
10259         Add *.tmp.
10260         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
10261         ifnames): Factor common code.  And they said it couldn't be done!
10263 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10265         * bin/.cvsignore: Add autoconf.in.
10266         * tests/.cvsignore: Add wrapper.in.
10267         * lib/autotest/general.m4: Escape '$' in case pattern.
10269 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
10271         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
10273         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
10275         * tests/autotest.at: New file.
10276         * tests/suite.at: Include it.
10277         * tests/Makefile.am: Distribute it.
10279         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
10280           shell tracing on a command that could contain multiple lines.
10281         * doc/autoconf.text: Document that fact and its implications.
10282         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
10283         * tests/autotest.at (Multiline backquote command substitution,
10284           Multiline parameter expansion, Literal multiline command,
10285           Multiline parenthetical command substitution): Remove XFAIL.
10287 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10289         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
10290         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
10292 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
10294         * configure.ac (test suite): Cease to generate wrapper scripts.
10295         * configure: Regenerate.
10296         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
10297         (m4f_dependencies): Adjust accordingly.
10298         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
10299         (wrapper.in): Generate it in the build directory.
10300         (MAINTAINERCLEANFILES): Delete wrapper.in.
10301         (CLEANFILES): Add wrapper.in.
10302         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
10303         the output.  Replace each $as_me with a @wrap_program@.
10304         * tests/wrapper.in: Delete it; we always build it.
10306         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
10307         (EXTRA_DIST): Remove autoconf.in.
10308         (CLEANFILES): Add autoconf.in.
10309         (autoconf): Find autoconf.in in the build directory.
10310         * bin/autoconf.in: Delete it; we always build it.
10312 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
10314         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
10315         PATH members so as to not prepend an empty element.  Move a comment.
10316         * Makefile.am (SUBDIRS): Build in `tests' last.
10317         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
10319 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
10321         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
10322         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
10323         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
10324         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
10326 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
10328         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
10329         patch: extra "-l"s.
10331 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10333         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
10334         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
10335         * doc/autoconf.texi (Particular Functions): Mention new behavior.
10337 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
10339         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
10340           out the common code to ...
10341         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
10342           value of the #define--default to 1, iff the macro was called
10343           with exactly one parameter.
10345 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10347         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
10348         "char c = '\200';" rather than "char c = 0x80;" as the
10349         latter doesn't conform to the strict C standard due to
10350         overflow on signed char hosts.
10352         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
10353         to -qlanglvl=ansi.  We don't want to disable extensions.
10355 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
10357         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
10358         (Using Autotest, testsuite Scripts, Writing testsuite.at):
10359         Reword slightly to avoid some English-language problems noted
10360         by Ralf Wildenhues in:
10361         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
10363 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
10365         * NEWS: Add ^L above each release.
10367 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
10369         Fix documentation problems reported by Russ Boylan in
10370         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
10371         along with some nearby cruft.
10372         * doc/autoconf.texi (Libtool): Libtool can be used without
10373         Automake (not without Autoconf).
10374         (Introduction): Mention lists.gnu.org.
10375         * BUGS: Don't mention bugs.gnu.org.
10376         Remove mention of ancient libtool compatibility problem.
10377         * NEWS: Mention that bugs.gnu.org is kaput.
10378         * README: Likewise.  Mention where mailing list archives can be found.
10380 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
10382         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
10384 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10386         * doc/autoconf.texi (Pretty Help Strings): Go back to
10387         single-quoting assignments to cache variables.
10389 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
10391         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
10392         with the examples; fix the bug in MY_ARG_WITH example reported
10393         by Alexandre Duret-Lutz.
10394         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
10395         expansion of $1 in the comment emitted to configure.
10397 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
10399         * doc/autoconf.texi (Pretty Help Strings): Fix typo
10400         in my editing of the previous patch.  Problem reported
10401         by Alexandre Duret-Lutz.
10403 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
10405         * doc/autoconf.texi (Autoconf Language): Explain that
10406         ``descriptions'' may not be double quotes.
10407         (Quotation Rule Of Thumb): Likewise.
10408         (Pretty Help Strings): Likewise; remove the wrong comment;
10409         simplify the examples and improve their quoting.
10411 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
10413         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
10414         the $1_found variable, don't test whether the file is executable;
10415         Both things are checked ...
10416         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
10417         the former ``test -f''.
10418         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
10420 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10422         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
10423         use cp -R instead.
10425 2004-11-10  Derek R. Price  <derek@ximbiot.com>
10427         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
10428         limitations.  Reorder paragraphs for clarity.
10430 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10432         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
10433         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
10434         variants", "Unix", and some related minor wording fixups.
10436         (Shellology, Special Shell Variables): Document that the Zsh
10437         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
10438         to Alexandre Duret-Lutz for this info.
10440 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
10442         * doc/autoconf.texi (One-Shot Macros): New node.
10444 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
10446         * doc/autoconf.texi (Function Portability): Fix misdescription
10447         of putenv.  Problem reported by Michael Wardle.
10449 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10451         * doc/autoconf.texi (auindex): New macro.
10452         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
10453         Problem reported by Stepan Kasal.
10455 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10457         Fix problems reported by Andreas Buening in:
10458         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
10459         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
10460         in test makefile.
10461         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
10462         readable; it's not true in OS/2-emx.
10464 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
10466         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
10467         "/usr/include", clear ac_x_includes instead of leaving it as "no"
10468         (trivial change).  Problem and patch reported by Andrew Church in:
10469         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
10471 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10473         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
10474         three args in examples.  Problem reported by Frederik Fouvry in:
10475         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
10476         Also, fix some minor spacing and punctuation bugs.
10478 2004-09-02  Akim Demaille  <akim@epita.fr>
10480         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
10481         "case" to restore ordering.
10482         Reported by Stepan Kasal.
10484 2004-08-26  Akim Demaille  <akim@epita.fr>
10486         * doc/autoconf.texi: Minor typos and stylos.
10488 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10490         * configure.ac (AC_INIT): Bump to 2.59c.
10492 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
10494         Version 2.59b.
10496         * README: Add advice about m4 1.4.2.
10498         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
10499         texinfo.tex for now (done by hand now).
10500         * Makefile.maint (wget_files, cvs_files):
10501         Remove ansi2knr.c; nobody uses it.
10502         (ansi2knr.c-url_prefix): Remove.
10503         (cvs-update): Fix test for failure.  I don't know why it ever
10504         worked...
10506         * doc/autoconf.texi: Update URLs, some of which went stale.
10507         Use @uref rather than @href.
10509         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
10510         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
10512         * config/config.guess, config/config.sub, config/elisp-comp,
10513         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
10514         doc/fdl.texi, doc/standards.texi: Sync with master copy.
10516         * NEWS, TODO, configure.ac, bin/autoscan.in,
10517         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
10518         doc/install.texi, lib/Autom4te/Configure_ac.pm,
10519         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
10520         lib/autoconf/programs.m4, lib/autoconf/status.m4,
10521         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
10522         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
10523         tests/tools.at, tests/torture.at:
10524         Use "file name" rather than "filename" or "path",
10525         to be consistent with the terminology of the GNU coding standards.
10527 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
10529         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
10530         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
10531         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
10532         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
10534         More fixes to support spaces in the name of the build directory.
10535         This isn't a complete fix but it's an improvement.
10537         * bin/autoconf.as (autom4te_options): New var.
10538         Use it instead of appending to AUTOM4TE, so that we can allow
10539         spaces in the build directory's absolute name.
10540         * bin/autoheader.in ($autoconf): Allow spaces in file names.
10541         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
10542         AT_CHECK_NOESCAPE): Likewise.
10543         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
10544         main program): Likewise.
10546 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10548         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
10549         From Ralf Corsepius in:
10550         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
10552 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10554         * doc/autoconf.texi (Function Portability): Document isinf and
10555         and isnan.  From a suggestion by Kevin Ryde.
10557         * lib/Autom4te/General.pm (END): Return correct exit status even
10558         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
10560 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
10562         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
10563         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
10564         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
10566 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
10568         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
10569         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
10570         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
10571         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
10572         * lib/autom4te.in (Automake-preselections): Preselect
10573         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
10575 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
10577         * lib/autom4te.in (Automake-preselections): Preselect
10578         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
10579         trace them.
10581 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
10583         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
10584         Tru64.
10585         * doc/autoconf.texi (Shellology): Mention BIN_SH.
10586         Document problem with "`""`" in pdksh POSIX mode.
10588 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
10590         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
10591         with pdksh, too.  Problem reported by Patrick Welche via
10592         Gary V. Vaughan.
10593         * doc/autoconf.texi (Shellology): Note that set -o posix is
10594         useful for pkdsh, too.
10596 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10598         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
10599         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
10600         Don't fail if ENV or BASH_ENV is readonly.
10601         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
10602         etc. are read only.  Problem reported by Ludovic Courtes.
10604 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
10606         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
10607         zsh, disable GLOB_SUBST to avoid backslash handling problems.
10608         (trivial change)
10610 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10612         * doc/autoconf.texi (File System Conventions): Warn about
10613         names like "aux".  Problem reported by Eric Blake.
10615         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
10616         by zero instead of array size, so that we can use any arithmetic
10617         constant expression (instead of requiring an integer constant
10618         expression).  This allows us to test expressions like DBL_MAX <
10619         LDBL_MAX, which didn't conform to the C standard using the old
10620         method.
10621         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
10622         now that we can do floating-point tests at compile time.
10624 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10626         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
10627         and LDBL_EPSILON, as the resulting expression isn't an
10628         integer constant expression and violates the C standard.
10629         Problem reported by Nelson H. F. Beebe.  Also, check
10630         for "L" suffix, and check that long double doesn't have
10631         worse range or precision than double, that mixed-mode
10632         arithmetic doesn't generate a diagnostic, that double
10633         constants fit in long double.
10635 2004-06-03  Kevin Ryde  <user42@zip.com.au>
10637         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
10638         malloc(0) and realloc(NULL,size).
10640         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
10641         Bob Proulx.
10643 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10645         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
10646         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
10647         by Jim Meyering.
10649 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
10651         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
10652         can be rewritten using if-then-else.  Suggested by Bruno Haible.
10654 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
10656         * doc/autoconf.texi (testsuite Scripts): Fix typo.
10657         Problem reported by Stepan Kasal.
10659 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10661         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
10662         change).  Patch reported by Ralf Wildenhues in
10663         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
10665         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
10666         function F exists if the compiler and linker let you compile an
10667         expression like (F != 0).  Recent versions of GCC optimize away
10668         the reference to F in that case, since every function address must
10669         be nonzero, so the link succeeds even if F does not exist.
10670         Problem reported by Manu in
10671         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
10673         * doc/autoconf.texi (Systemology): Standardize on the spelling of
10674         "Unix".  Many uses changed.
10675         (Limitations of Builtins): Explain better why the ! command isn't
10676         portable.
10678 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
10680         * lib/autom4te.in (Automake-preselections): Preselect
10681         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
10683 2004-05-19  Kevin Ryde  <user42@zip.com.au>
10685         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
10686         referencing AC_FUNC_STRERROR_R.
10688         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
10689         note pessimistic assumption when cross compiling.
10691 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10693         * doc/autoconf.texi (Limitations of Make): Note that BSD make
10694         (until 2004) invoked subcommands with sh -e, contra POSIX.
10695         Reported by Kevin Ryde.
10697 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
10699         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
10700         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
10701         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
10702         `test -f "        /usr/bin/grep"', which _always_ failed.
10703         (AC_PROG_SED): Ditto bogus PATH fix.
10704         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
10705         requires that grep correctly supports _multiple_ `-e' options, rather
10706         than stating only that grep should accept `-e'.
10708 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10710         Port to C99, which requires that 'exit' be declared.
10712         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
10713         to ensure that stdlib.h is included.
10714         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
10715         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
10716         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
10717         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10718         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
10719         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
10720         when using 'exit' in a test; C99 requires that 'exit' be declared.
10722 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
10724         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
10725         now prefers 'grep' implementations that accept -e.
10726         (Limitations of Usual Tools): Describe problems of traditional
10727         egrep and fgrep with long input lines, and of traditional grep
10728         with -e.
10729         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
10730         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
10731         All callers changed.  Append /usr/xpg4/bin to the PATH, for
10732         Solaris.
10733         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
10734         the user with complaints about multiple -e options.
10735         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
10736         Define it with AC_PROG_GREP.
10737         * configure.ac (AC_PROG_GREP): Add.
10738         * lib/freeze.mk (GREP): New macro.
10740 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
10742         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
10743         a possible candidate only after all others fail, rather than
10744         consulting it first.  This improves backward compatibility by
10745         better reflecting the way shell selection occurred in previous
10746         versions of Autoconf, and should help to avoid triggering latent
10747         problems in other packages, such as the one in Automake where zsh
10748         is not handled robustly:
10749         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
10750         Although it is not Autoconf's responsibility to work around
10751         problems in Automake, it nevertheless makes sense to avoid
10752         introducing unnecessary incompatibilites.
10754 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
10755             Gary V. Vaughan  <gary@gnu.org>
10757         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
10758         how deeply nested we are when a suitable tool is found, set the
10759         ac_path_TOOL_found flag.
10760         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
10761         nested we are in this macro.  Break out of all 3 nested loops if
10762         ac_path_TOOL_found is set.
10764 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
10766         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
10767         of the _AS_PATH_WALK loop too if GNU flavor is found.
10769 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
10771         * doc/autoconf.texi (Limitations of Make): Update documentation
10772         for `$<'.  New entry `Long lines', based on a report from Simon
10773         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
10774         paragraph about DJGPP, based on a mail from Richard Dawe.
10776 2004-04-20  Paul Eggert  <eggert@twinsun.com>
10778         * tests/c.at (C keywords): Don't assume that GCC supports
10779         "restrict" and "inline", as sufficiently-old GCC versions do not
10780         (also, GCC configured to be in pedantic C89 mode does not).
10781         Problem reported by Sumit Pandya in:
10782         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
10784         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
10785         consider -g to work if it generates warnings when plain compiles
10786         don't.  Problem reported by Braden McDaniel in:
10787         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
10789         * doc/autoconf.texi (Slashes): New section, to document a problem
10790         reported by Jim Meyering in:
10791         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
10793         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
10794         linker output files before linking, to work around IRIX 6 linker bug.
10795         Problem reported by Rainer Orth in:
10796         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
10798 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
10800         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
10801         best tool so far counter rely on the tool path variable name to
10802         avoid checks for one tool being affected by the results of running
10803         the length check on a previous tool.
10805         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
10806         match expression argument, as different greps have different
10807         regular expression flavours.
10808         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
10809         literals.
10810         (AC_PROG_EGREP): Pass 'EGREP$'.
10811         (AC_PROG_GREP): Pass 'GREP$'.
10813 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
10815         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
10816         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
10818 2004-03-29  Paul Eggert  <eggert@twinsun.com>
10820         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
10821         Types, Specific Compiler Characteristics, System Services,
10822         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
10823         etc. consistently instead of 'long', 'short', 'unsigned' etc.
10824         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
10825         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
10826         Likewise.
10827         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
10828         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
10829         AC_TYPE_OFF_T): Likewise.
10830         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
10831         Likewise.
10833         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
10834         pacify libtool 1.5.2.  Fix quoting problems in sed command.
10836 2004-03-28  Paul Eggert  <eggert@twinsun.com>
10838         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
10839         now defines HAVE_DECL_TZNAME if it is declared, when
10840         HAVE_STRUCT_TM_TM_ZONE is not defined.
10841         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
10842         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
10843         for HAVE_TZNAME.
10845 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
10847         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
10848         superfluous backslashing of quotes (") in sed expressions;
10849         thanks to Paul Eggert.
10851 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
10853         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
10854         Fortran compiler is ifort, also added pghpf; thanks to Nelson
10855         H. F. Beebe for the bug report.
10857 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
10859         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
10860         quoted -cmdline argument in Portland Group compiler (bug
10861         reported by Jeffrey J. Barteet).
10863 2004-03-25  Kevin Ryde  <user42@zip.com.au>
10865         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
10866         (Run Time): ... here, where it's now mentioned.
10868 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
10870         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
10871         inherits from language Autoconf-without-aclocal-m4.
10872         (Customizing autom4te): Adjust example; the cache must now be
10873         disabled for language Autoconf-without-aclocal-m4.
10875 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
10876             Nathanael Nerode  <neroden@twcny.rr.com>
10878         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
10879         AC_CHECK_TOOLS): Warn if a cross-tool is found without
10880         a prefix.
10881         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
10882         AC_CHECK_TARGET_TOOLS): New macros.
10883         * doc/autoconf.texi (Generic Programs): Document
10884         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
10885         AC_CHECK_TARGET_TOOLS, and warn for future changes
10886         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
10887         AC_CHECK_TOOLS.
10888         (Specifying Names): Document the reason for these future
10889         behavioral changes.
10890         * tests/mktests.sh: Do not generate tests for the
10891         new macros.
10892         * NEWS: Document these changes.
10894         * doc/autoconf.texi: Avoid macros with unbraced arguments,
10895         they make TeX hang up.
10897 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
10899         * NEWS: New macro AC_CHECK_ALIGNOF.
10900         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
10901         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
10902         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
10903         vowel.
10904         (AC_CHECK_ALIGNOF): New macro.
10905         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
10906         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
10907         those for sizeof.
10909 2004-03-03  Paul Eggert  <eggert@twinsun.com>
10911         * bin/Makefile.am (edit): Don't use $< in a context where
10912         POSIX doesn't require support for it.  Use $@.in instead.
10913         Problem reported by Anthony N. Frasso in
10914         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
10915         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
10917 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
10919         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
10920         from the next generation of Libtool.
10921         * lib/autom4te.in (Autoreconf-preselections): Ditto.
10923 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
10925         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
10926         is not always thread-safe.  Report from Nathanael Nerode.
10928 2004-02-18  Paul Eggert  <eggert@twinsun.com>
10930         Fix a dependencies problem, stemming from a Autoconf 2.59 build
10931         problem on QNX reported by Stephen Rasku in
10932         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
10934         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
10935         $(m4sh_m4f_dependencies); this removes a FIXME.
10936         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
10937         (MAINTAINERCLEANFILES): Split into pieces,
10938         one per related section.  Add $(srcdir)/wrapper.in.
10940 2004-02-09  Paul Eggert  <eggert@twinsun.com>
10942         * doc/autoconf.texi (Setting Output Variables): Emphasize that
10943         AC_SUBST provides no portable way to escape literal newlines.
10945         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
10946         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
10947         Darwin uses -lcrt2.o and there's little point to cataloging all
10948         the system variants.  Partial fix reported by Andreas Waechter in:
10949         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
10950         for bug reported by Nelson H. F. Beebe in:
10951         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
10953 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
10955         * doc/autoconf.texi (AU_DEFUN): Fix English,
10956         suggested by Paul Eggert.
10957         * lib/autoconf/autoupdate.m4: Correct reference to
10958         acobsolete.m4, suggested by Alexandre Duret-Lutz.
10960 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
10962         * bin/autoupdate.in: Define __file__ so that warnings
10963         refer to the correct file.
10964         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
10965         the behavior of the third argument.
10966         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
10967         correctly the behavior of the third argument.  Document
10968         what the three macros that AU_DEFUN defines do.  Fix
10969         warning message when the third argument includes $0
10970         (reported by Alexandre Duret-Lutz).
10972 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
10973             Eric Sunshine  <sunshine@sunshineco.com>
10974             Paul Eggert  <eggert@twinsun.com>
10976         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
10977         (AS_INIT): Output shell initialization there. Removed optional
10978         parameter. Expand _AS_SHELL_FN_SPY.
10979         (AS_INIT_WITH_SHELL_FN): Removed.
10980         (_AS_SHELL_FN_SPY): New macro.
10981         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
10982         macros.
10983         (AS_SHELL_SANITIZE): Remove loop to find better shell
10984         and documentation for the parameter.
10985         (_AS_DETECT_BETTER_SHELL): Move it here.
10986         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
10987         (_AS_RUN): Move it here, support testing with eval.
10988         (AS_REQUIRE_SHELL_FN): Require shell functions when
10989         it is used.
10990         (_AS_LINENO_WORKS): Put around braces, we do not
10991         trigger the bash bug anymore.
10992         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
10993         use AS_INIT_WITH_SHELL_FN.
10994         * bin/autoconf.in, tests/wrapper.in: Regenerated.
10996 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
10998         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
10999         * doc/autoconf.texi: Don't say that the third parameter
11000         is broken.
11001         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
11002         (AU_DEFUN): Honor the third parameter, create autoupdate
11003         macros with AU_DEFINE.
11004         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
11005         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
11006         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
11007         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
11008         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
11009         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
11010         AC_XENIX_DIR): Likewise.
11011         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
11012         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
11013         * lib/autoconf/status.m4: Remove FIXME.
11014         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
11015         that the macro is not present anymore in the updated
11016         configure.ac.
11017         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
11018         of autoupdate.
11020 2004-01-28  Paul Eggert  <eggert@twinsun.com>
11022         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
11023         copyright years.
11024         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
11025         2003 (except 1997) to the list of copyright years.  This undoes
11026         the 2003-05-22 change, which removed the older years from the list.
11027         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
11029 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
11030             Albert Chin-A-Young  <china@thewrittenword.com>
11032         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
11033         grep or ggrep program in PATH that accepts as long lines as
11034         possible.
11035         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
11036         AC_PROG_GREP.
11037         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
11038         egrep and fgrep respectively if $GREP -E/-F don't work.
11039         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
11040         _AC_PROG_GREP, and AC_PROG_SED.
11041         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
11042         longest input length accepted by a command.
11043         (AC_PROG_SED): Use it.
11044         * doc/autoconf.texi (Particular Programs): Document the changes.
11045         * NEWS: Updated.
11047 2004-01-27  Paul Eggert  <eggert@twinsun.com>
11049         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
11050         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11051         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
11052         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
11054         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
11055         bin/autoconf.in, config/Makefile.in, config/config.guess,
11056         config/config.sub, config/install-sh, config/mdate-sh,
11057         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
11058         lib/Makefile.in, lib/Autom4te/Makefile.in,
11059         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
11060         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
11061         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
11062         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
11063         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
11064         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
11065         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
11066         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
11067         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
11068         tests/actypes.at: Regenerate and/or sync with original
11069         sources.
11071 2004-01-26  Paul Eggert  <eggert@twinsun.com>
11073         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
11074         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
11075         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
11076         not <inttypes.h>.  Problem reported by Tim Mooney in
11077         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
11078         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
11079         Likewise.
11081         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
11082         otherwise "make check" fails because it forbids cmp (I guess
11083         because cmp treats files as binary on DOS-like systems).
11085         * tests/mktests.sh: Update copyright date to 2004, since some tests
11086         have changed in 2004.
11088 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
11090         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
11091         non-truncating sed or gsed program in PATH.
11092         * tests/acprograms.at: Add it.
11093         * doc/autoconf.texi (Particular Programs): Document it.
11094         * NEWS: Updated.
11096 2004-01-15  Paul Eggert  <eggert@twinsun.com>
11098         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
11099         -std1 disables some useful extensions on Tru64.  Problem reported
11100         by N. Lichtmaier in
11101         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
11103 2004-01-14  Paul Eggert  <eggert@twinsun.com>
11105         * doc/autoconf.texi (Programming in M4sh): Document that
11106         AS_MKDIR_P succeeds if the destination is a symbolic link
11107         to an existing directory.
11108         (Limitations of Usual Tools): Note that mkdir -p might not
11109         succeed on symlinks to directories.
11111 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
11113         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
11114         * bin/autoheader.in: Grammar fix in message.
11115         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
11116         Test for dir before calling mkdir -p.  (trivial changes)
11118 2004-01-13  Eric Blake  <ebb9@byu.net>
11120         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
11121         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
11123 2004-01-10  Jim Meyering  <jim@meyering.net>
11125         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
11127 2004-01-09  Paul Eggert  <eggert@twinsun.com>
11129         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
11130         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
11131         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
11132         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
11133         AC_COMPILE_IFELSE, since we now assume our caller invokes
11134         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
11135         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
11136         of AC_RUN_IFELSE; this avoids the warning mentioned above.
11137         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
11139 2004-01-07  Paul Eggert  <eggert@twinsun.com>
11141         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
11142         `"'...'"`, as it's confusing (and I suspect it may not work on
11143         some platforms).  The code was incorrect anyway, as it assumed
11144         that \$ evaluated to itself in that context.  Reported by
11145         Alexandre Duret-Lutz.
11147 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
11149         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
11150         and _LT_AC_TAGCONFIG.
11152 2004-01-06  Paul Eggert  <eggert@twinsun.com>
11154         * doc/autoconf.texi (One Macro Call): Fix an incorrect
11155         example, and add more examples.  Reported by Eric Sunshine.
11157 2004-01-05  Paul Eggert  <eggert@twinsun.com>
11159         * doc/autoconf.texi (Limitations of Usual Tools):
11160         Remove warning against "rm -fr" introduced yesterday; it
11161         was a false alarm.
11163         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
11164         autoscan, autoupdate, ifnames): Don't use chmod -w.
11165         * lib/Makefile.am (autom4te.cfg): Likewise.
11166         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
11167         "chmod -w".
11169 2004-01-04  Paul Eggert  <eggert@twinsun.com>
11170             Paolo Bonzini  <bonzini@gnu.org>
11172         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
11173         by doing lineno substitution only on lines containing "$LINENO".
11175 2004-01-04  Paul Eggert  <eggert@twinsun.com>
11177         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
11178         Use "rm -f" to remove conftest.sed, not plain "rm".
11179         Bug reported by David Relson in
11180         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
11182         * Makefile.am (autom4te-update):
11183         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
11184         * Makefile.maint (my-distcheck, do-po-update): Likewise.
11185         * doc/autoconf.texi (Guidelines): Likewise.
11186         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
11187         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
11188         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11189         * lib/autotest/general.m4 (AT_INIT): Likewise.
11190         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
11191         * tests/Makefile.am (clean-local): Likewise.
11192         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
11193         srcdir): Likewise.
11194         * doc/autoconf.texi (Limitations of Usual Tools):
11195         Warn against "rm -fr".
11197 2004-01-03  Paul Eggert  <eggert@twinsun.com>
11199         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
11200         -c -o might not work.  From a suggestion by Kevin Ryde.
11201         (C Compiler, Generating Sources, Limitations
11202         of Usual Tools, Limitations of Make, Making testsuite Scripts):
11203         Don't put '-o' after non-options, as POSIX doesn't allow this.
11204         Mention that cc's name might be gcc or c89 or whatever.
11206 2004-01-04  Kevin Ryde  <user42@zip.com.au>
11208         * doc/autoconf.texi: Add various further index entries.
11210 2003-12-29  Paul Eggert  <eggert@twinsun.com>
11212         * bin/autoreconf.in (autoreconf_current_directory):
11213         Fix typo: mkdir without umask arg.
11215 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
11217         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
11218         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
11219         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
11220         explanation clearer.
11222 2003-12-24  Andreas Schwab  <schwab@suse.de>
11224         * doc/autoconf.texi (Default Includes): Fix misspelling of
11225         AC_INCLUDES_DEFAULT.
11227 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
11229         * configure.ac: Test if sh -n works.
11230         * configure: Regenerate.
11231         * tests/atlocal.in: Store the result here.
11232         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
11233         tools.at, looking in atlocal's ac_cv_sh_n_works instead
11234         of explicitly testing.
11235         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
11236         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
11237         * tests/tools.at (Syntax of the shell scripts): Simplify
11238         using AT_CHECK_SHELL_SYNTAX.
11239         (Syntax of the Perl scripts): Remove definition of
11240         AT_CHECK_PERL_SYNTAX.
11242 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
11244         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
11245         stderr to /dev/null.
11246         * bin/autoconf.in: Regenerate.
11247         * bin/wrapper.in: Regenerate.
11249 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
11251         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
11252         Extracted from AS_SHELL_SANITIZE.
11253         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
11254         macros.
11255         (AS_SHELL_SANITIZE): Move reinvocation code from
11256         _AS_LINENO_WORKS, use it to find out if shell
11257         functions work.
11258         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
11259         does not work.
11260         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
11261         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
11262         was called.
11263         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
11264         * bin/autoconf.in: Regenerate.
11265         * tests/wrapper.in: Regenerate.
11266         * tests/tools.at: Test the syntax of tests/autoconf
11267         and tests/testsuite.
11269 2003-11-24  Akim Demaille  <akim@epita.fr>
11271         * config/announce-gen (&print_locations, &print_signatures)
11272         (&sizes): New.
11273         Use them.
11274         No longer rely on Gnus to inline the list of signatures: compute
11275         them on the fly.
11277 2003-11-24  Akim Demaille  <akim@epita.fr>
11279         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
11280         override some files.
11281         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
11282         From Debian Autoconf 2.58.
11284 2003-11-24  Akim Demaille  <akim@epita.fr>
11286         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
11287         uses.
11288         From Debian Autoconf 2.58.
11290 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
11292         * TODO: Remove already done things.  Update the part about finding
11293         tools for the target.
11295 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
11297         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
11298         Make wording more consistent.
11299         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
11300         Explain the transition better.
11301         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
11302         the transition better.
11304 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
11306         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
11307         parameter of AU_DEFUN.
11308         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
11309         (AU_DEFUN): Remove the third parameter, it was not used.
11310         Use AC_DEFUN directly, not AU_DEFINE.
11311         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
11312         the expanded body, consistently with other macros such as AC_USG.
11314 2003-11-17  Paul Eggert  <eggert@twinsun.com>
11316         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
11317         into the initial confdefs.h, to work around a bug in NextStep 3.3
11318         patch 3 reported by Eric Sunshine.
11320 2003-11-15  Kevin Ryde  <user42@zip.com.au>
11322         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
11323         than $target since the latter is not usual, add guidelines on when to
11324         use or not use the system type.
11326 2003-11-12  Derek Price  <derek@ximbiot.com>
11328         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
11329         typo misrepaired by an auto-spellcheck.
11331 2003-11-12  Akim Demaille  <akim@epita.fr>
11333         * bin/autoreconf.in (&parse_args): Don't call automake with
11334         --force-missing unless it actually supports it.
11335         From Debian #219336.
11337 2003-11-12  Akim Demaille  <akim@epita.fr>
11339         * configure.ac: Bump to 2.59a.
11340         Require 2.59.
11342 2003-11-06  Akim Demaille  <akim@epita.fr>
11344         Version 2.59.
11346 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
11348         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
11349         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
11350         and ac_abs_top_srcdir are absolute paths.
11351         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
11353 2003-11-05  Akim Demaille  <akim@epita.fr>
11355         * configure.ac: Bump to 2.58a.
11357 2003-11-05  Kevin Ryde  <user42@zip.com.au>
11359         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
11360         it provokes a warning from makeinfo about looking like a cross
11361         reference in info output.
11363         * doc/autoconf.texi (Function Portability): Add notes on signal
11364         handler return type, as per AC_TYPE_SIGNAL.
11366 2003-11-04  Akim Demaille  <akim@epita.fr>
11368         Version 2.58.
11369         * doc/standards.texi: Update from master.
11371         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
11373 2003-11-04  Akim Demaille  <akim@epita.fr>
11375         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
11376         computing the absolute path to d1 in the source hierarchy: it may
11377         not exist at all.  So don't cd into it.
11378         From Alexandre Duret-Lutz.
11379         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
11381         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
11382         From Paul Eggert, but named after Perl's IO::Spec->catfile.
11383         * doc/autoconf.texi (Programming in M4sh): Document.
11384         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
11386 2003-11-03  Pavel Roskin  <proski@gnu.org>
11388         * doc/autoconf.texi (Generic Structure Checks): Describe
11389         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
11391 2003-10-31  Akim Demaille  <akim@epita.fr>
11393         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
11394         (GNU Fortran): New.
11395         * doc/autoconf.texi (Language Choice): Document.
11396         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
11397         the current language is Fortran.
11399 2003-10-31  Akim Demaille  <akim@epita.fr>
11401         * bin/autom4te.in (&freeze): Use a less likely warning separator
11402         than `\n\n', so that `\n\n\n' is valid in warnings.
11403         Reported by Steve Huston.
11405 2003-10-28  Akim Demaille  <akim@epita.fr>
11407         * Makefile.cfg (local_updates, executable-update): Tweak to be
11408         robust to parallel makes.
11409         Suggested by Alexandre Duret-Lutz.
11411 2003-10-27  Akim Demaille  <akim@epita.fr>
11413         * Makefile.cfg (executable-update): New.
11414         (local_updates): Call it.
11416 2003-10-27  Akim Demaille  <akim@epita.fr>
11418         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
11419         Don't remove core.* as it may remove valid user files.
11420         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
11421         (AC_FUNC_UTIME_NULL): Likewise.
11423 2003-10-23  Akim Demaille  <akim@epita.fr>
11425         Version 2.57g.
11426         * config/config.guess, config/config.sub: Upgrade from masters.
11428 2003-10-23  Akim Demaille  <akim@epita.fr>
11430         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
11431         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
11432         hand...
11434 2003-10-23  Akim Demaille  <akim@epita.fr>
11436         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
11437         Don't forget to remove conftest.err.
11439 2003-10-23  Akim Demaille  <akim@epita.fr>
11441         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
11442         same object file in $LIBOBJS.
11443         Reported by Alexandre Duret-Lutz & Derek Robert Price.
11444         * doc/autoconf.texi (Generic Functions): Adjust.
11446 2003-10-20  Paul Eggert  <eggert@twinsun.com>
11448         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
11449         Use 'eval', so that the resulting configure scripts work even if
11450         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
11452 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
11454         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
11455         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
11456         (_AC_LINK_IFELSE): Check the werror flag.
11457         * doc/autoconf.texi (Generic Compiler Characteristics): Document
11458         AC_LANG_WERROR.
11459         * NEWS: Mention it.
11461 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
11463         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
11464         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
11465         override AC_LINK_IFELSE.
11467 2003-10-15  Paul Eggert  <eggert@twinsun.com>
11469         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
11470         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
11471         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
11472         Mention /usr/dt/bin/dtksh on Solaris.
11473         (Shell Substitutions): Warn about $((...)).
11474         (Parentheses): New section.
11476 2003-10-15  Kevin Ryde  <user42@zip.com.au>
11478         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
11479         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
11481 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11483         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
11484         cross test.
11486 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
11488         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
11489         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
11491 2003-10-10  Andreas Schwab  <schwab@suse.de>
11493         * bin/autoheader.in: Avoid empty first line in --version and
11494         --help output.
11495         * bin/ifnames.in: Likewise.
11497 2003-10-09  Paul Eggert  <eggert@twinsun.com>
11499         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
11500         Issue a more-informative diagnostic.
11501         Problems reported by Eric Sunshine.
11503 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
11505         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
11506         -mGLOB_options_string stuff for Intel ifc, which can cause
11507         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
11508         pattern-matching instead of grep.
11510 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
11512         * doc/autoconf.texi: Document new FC Fortran macros.
11514 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
11516         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
11517         that future autopoint/aclocal/automake/autoreconf will be able
11518         to trace to find where to install local m4 macros.
11519         * doc/autoconf.texi (Input): Document it.
11520         * NEWS: Updated.
11522 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
11524         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
11525         -lcrtbegin.o to list of ignored flags and fix underquoting of
11526         -lcrt[01].o.
11528 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
11530         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
11531         cache variable instead of $G77 to decide whether to include -O2,
11532         since $G77 is specific to Fortran 77.
11534 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
11536         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
11537         free" flag.  Re-order flags tested into rough order of popularity.
11539 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
11541         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
11542         arguments so that it can be used with syntax identical to
11543         AC_PROG_F77, and so that we can more easily decide to
11544         remove/deprecate the DIALECT optional argument in the future if it
11545         proves troublesome.
11546         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
11547         non-freeform-supporting compilers.  Document freeform flags.
11549 2003-10-03  Akim Demaille  <akim@epita.fr>
11551         * configure.ac: Look for emacs, not macs.
11552         Reported by Eric Sunshine.
11554 2003-10-03  Akim Demaille  <akim@epita.fr>
11556         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
11557         * bin/autoreconf.in (autoreconf_current_directory): Create the
11558         AUX_DIR if needed, for sake of automake --add-missing etc.
11559         Suggested by Alexandre Duret-Lutz.
11561 2003-10-03  Akim Demaille  <akim@epita.fr>
11563         * configure.ac: Quotation and formatting changes.
11564         (EMACS): Don't set it if it is not recent enough to support
11565         autoconf-mode.el.
11566         From Eric Sunshine.
11568 2003-10-02  Akim Demaille  <akim@epita.fr>
11570         * bin/ifnames.in (&scan_file): Skip C++ comments.
11571         From Jeremy Yallop.
11573 2003-10-01  Pavel Roskin  <proski@gnu.org>
11575         * doc/autoconf.texi (Particular Structure Checks):
11576         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
11578 2003-10-01  Akim Demaille  <akim@epita.fr>
11580         Version 2.57f.
11582 2003-09-30  Paul Eggert  <eggert@twinsun.com>
11584         * lib/Autom4te/XFile.pm: Use Errno.
11585         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
11586         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
11588 2003-09-30  Akim Demaille  <akim@epita.fr>
11590         * config/announce-gen (&print_news_deltas): Extracted from...
11591         (&print_changelog_deltas): here.
11592         (&news_file): Rename as...
11593         (@news_file): this.
11595 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
11597         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
11598         have been created when invoking the compiler.
11599         * tests/fortran.at (GNU Fortran 77): Quote $G77.
11601 2003-09-29  Akim Demaille  <akim@epita.fr>
11603         Version 2.57e.
11605         * config/mkinstalldirs: Upgrade.
11607 2003-09-28  Paul Eggert  <eggert@twinsun.com>
11609         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
11610         Problem reported by Lars J. Aas in
11611         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
11612         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
11613         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
11614         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
11616 2003-09-26  Akim Demaille  <akim@epita.fr>
11618         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
11619         directory for AC_CONFIG_COMMANDS' first argument exists.
11620         This makes valid the invocation of _AC_SRCPATH that follows.
11621         Reported by Eric Sunshine.
11622         * doc/autoconf.texi (Configuration Commands): Adjust.
11624 2003-09-26  Akim Demaille  <akim@epita.fr>
11626         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
11627         Reported by Ralf Corsepius.
11629 2003-09-26  Akim Demaille  <akim@epita.fr>
11631         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
11632         arguments.
11633         Actually, use AU_ALIAS.
11634         From Bruno Haible.
11636 2003-09-26  Paul Eggert  <eggert@twinsun.com>
11638         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
11639         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
11640         Problem reported by Eric Sunshine in:
11641         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
11643 2003-09-26  Akim Demaille  <akim@epita.fr>
11645         The test suite are sometimes assigning timings incorrectly.
11646         Reported by Henk Krus.
11647         Diagnosed by Nicolas Joly.
11649         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
11650         AT_help_all.
11651         Instead of making AT_help a sequence of assignments to grow
11652         $at_help_all, just make AT_help_all be the growing contents of
11653         $at_help_all, and make a single assignment in...
11654         (AT_INIT): here.
11655         (at_times_skip): Flip the meaning and rename as...
11656         (at_times_p): this.
11657         (AT_INIT): When summarizing the test that ran, remove
11658         $at_times_file after use, and check it is present before trying to
11659         use it.
11661 2003-09-25  Akim Demaille  <akim@epita.fr>
11663         Version 2.57d.
11665         * bin/Makefile.am (edit): Handle '@configure_input@'.
11666         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
11667         (ifnames): chmod -w.
11668         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
11669         executables, not bin/ executables!  Otherwise all the magic needed
11670         to find non installed files is turned off.  This caused a failure
11671         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
11672         as found in its environment (sent by tests/autoreconf): pointing
11673         to bin/autom4te that could not find its files.
11674         * tests/mktests.sh: Force the replacement of generated files, for
11675         the sake of "mv" program that are interactive when overwriting a
11676         -w file.
11677         * config/install-sh: Upgrade from CVS Automake.
11679 2003-09-23  Paul Eggert  <eggert@twinsun.com>
11681         * doc/autoconf.texi (Limitations of Builtins): Document test -h
11682         versus test -L issues.
11684 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
11685             Paul Eggert  <eggert@twinsun.com>
11687         Trivial change to support GCC's configuration procedure.
11688         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
11689         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
11690         about inconsistency if the preprocessor is set to give errors for
11691         any warning.
11692         * doc/autoconf.texi (C Compiler Characteristics): Document this.
11694 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
11696         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
11697         and XFile.pm from Automake.
11698         * lib/Autom4te/XFile.pm: Update from Automake.
11700 2003-09-12  Akim Demaille  <akim@epita.fr>
11702         Version 2.57c.
11704 2003-09-12  Akim Demaille  <akim@epita.fr>
11706         * config/config.guess, config/config.sub, config/missing,
11707         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
11708         from masters.
11710 2003-09-12  Akim Demaille  <akim@epita.fr>
11712         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
11713         not asm/types.h.
11715 2003-09-11  Akim Demaille  <akim@epita.fr>
11717         * doc/autoconf.texi (Header Portability): linux/random.h.
11718         From Peter Hendrickson.
11720 2003-09-10  Akim Demaille  <akim@epita.fr>
11722         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
11723         willing to edit the output files.
11725 2003-09-10  Akim Demaille  <akim@epita.fr>
11727         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
11728         and AC_FC_FREEFORM.
11729         * tests/mktests.sh: Skip AC_FC_SRCEXT.
11730         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
11732 2003-09-09  Akim Demaille  <akim@epita.fr>
11734         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
11735         Reported by Gary Vaughan.
11736         * bin/autom4te.in (handle_m4): Likewise.
11738 2003-09-09  Akim Demaille  <akim@epita.fr>
11740         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
11741         trailing files.
11743 2003-09-07  Paul Eggert  <eggert@twinsun.com>
11745         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
11746         Improve the accuracy of the wording about obsolescence.
11747         From a suggestion by Ian Lance Taylor in
11748         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
11750 2003-09-05  Paul Eggert  <eggert@twinsun.com>
11752         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
11753         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
11755 2003-09-04  Akim Demaille  <akim@epita.fr>
11757         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
11758         AC_FUNC_WAIT3.
11760 2003-09-04  Akim Demaille  <akim@epita.fr>
11762         * bin/autom4te.in: Use &fatal where more appropriate than &error.
11763         (freeze): When exiting, use $exit_code.
11764         * lib/autoconf/fortran.m4: Comment changes.
11766 2003-09-04  Akim Demaille  <akim@epita.fr>
11768         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
11770 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
11772         Add support for newer Fortran dialects.  The F77 interface is
11773         unchanged, and continues to support Fortran 77.  New FC macros
11774         correspond to all the old F77 macros, with output variables FC,
11775         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
11776         available dialect, but older dialects can be specified.  There are
11777         new macros AC_FC_SRCEXT to set the source extension, and
11778         AC_FC_FREEFORM to accept free-form source files.
11780         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
11781         New macros.
11782         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
11783         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
11784         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
11785         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
11786         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
11787         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
11788         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
11789         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
11790         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
11791         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
11792         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
11793         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
11794         AC_FC_SRCEXT, AC_FC_FREEFORM):
11795         New macros.
11796         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
11797         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
11798         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
11799         Rewrite in terms of the above.
11800         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
11801         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
11802         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
11803         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
11805 2003-09-02  Paul Eggert  <eggert@twinsun.com>
11807         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
11808         Document problems with timestamp resolution that 'make', 'cp -p', and
11809         'touch -r' have.
11811 2003-08-27  Akim Demaille  <akim@epita.fr>
11813         * tests/m4sugar.at (cross_warning): Make sure to enable the
11814         output, so that we can track spurious m4sugar output.
11815         * tests/local.at: Require 2.57.
11816         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
11817         are defaulted by AT_CHECK anyway.
11818         Use AT_CHECK_AUTOM4TE.
11819         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
11820         missing dnl.
11822 2003-08-27  Akim Demaille  <akim@epita.fr>
11824         * bin/autoheader.in: Issue the "Using auxiliary..." message only
11825         when -Wobsolete is set.
11826         Set it on by default.
11827         Suggested by Klee Dienes.
11829 2003-08-27  Akim Demaille  <akim@epita.fr>
11831         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
11832         documentation.
11833         From Guido Draheim.
11835 2003-08-26  Akim Demaille  <akim@epita.fr>
11837         * doc/autoconf.texi (Output): Make clear that one can run code
11838         after AC_OUTPUT.
11840 2003-08-25  Akim Demaille  <akim@epita.fr>
11842         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
11843         CVS Bison.
11845 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
11847         * bin/autoreconf.in (parse_args): Do not pass --no-force to
11848         Automake versions prior to 1.8.
11850 2003-08-25  Akim Demaille  <akim@epita.fr>
11852         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
11853         From Ville Karaila.
11855 2003-08-24  Akim Demaille  <akim@epita.fr>
11857         * configure.ac: Bump to 2.57c.
11859 2003-08-22  Akim Demaille  <akim@epita.fr>
11861         Version 2.57b.
11863         * Makefile.cfg (local-checks-to-skip): New.
11864         * Makefile.maint (local-check): Rename as...
11865         (local-checks-available): this.
11866         (local-check): New.
11868         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
11869         * configure.ac: Require Automake 1.7.6.
11871 2003-08-22  Akim Demaille  <akim@epita.fr>
11873         Output stack traces in warnings.
11875         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
11876         Replace the former...
11877         (m4_warn): Pass the call stack to _m4_warn.
11878         * bin/autom4te.in: Adjust to output the call stack.
11879         * tests/m4sugar.at (m4@&t@_warn): Adjust.
11881 2003-08-22  Akim Demaille  <akim@epita.fr>
11883         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
11884         * bin/autom4te.in: Adjust.
11886 2003-08-21  Akim Demaille  <akim@epita.fr>
11888         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
11889         (&verbose): Remove.
11890         (&getopt): Adjust the note and verb channels, depending upon
11891         --verbose.
11892         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
11893         * bin/autoupdate.in: Adjust.
11894         Use &verb, not &verbose.
11896 2003-08-21  Akim Demaille  <akim@epita.fr>
11898         * bin/autoheader.in (&parse_args): Use &parse_warnings and
11899         &parse_WARNINGS.
11900         ($help): Use Autom4te::ChannelDefs::usage.
11901         * bin/autoscan.in: Use Autom4te::ChannelDefs.
11902         * lib/Autom4te/General.pm: Don't export error: you don't own it.
11904 2003-08-21  Akim Demaille  <akim@epita.fr>
11906         First stab at preserving warnings between calls to autom4te,
11907         including when the cache is used.
11909         There are still several issues: (i) there are too many runs of m4
11910         (one for include, one for warnings, and some more), (ii) warnings
11911         spreading on several lines are not handled gracefully, (iii) the
11912         code meant to have the call stack display for errors does not work
11913         (its handling should move from m4 to autom4te).
11915         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
11916         Use them.
11917         (@preselect): Add m4_warn.
11918         ($exit_status): Remove, use $exit_code.
11919         ($help): Use Autom4te::ChannelDefs::usage.
11920         (&handle_m4): No longer define the m4_warnings.
11921         At each run, extract and report the warnings.
11922         Always cache the result, including if the exit status is on
11923         failure, since if nothing changes, we should result in the same
11924         failure, hence we can use the cache.
11925         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
11926         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
11927         Remove.
11928         (m4_warn): Redefine as a do-nothing: it is its invocation that
11929         matters, as warnings are now reported via traces.
11930         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
11931         the contents of m4_warn: make it _call_ m4_warn, so that tracing
11932         the latter reveals calls to the former.
11934         Adjust the tests.
11936         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
11938 2003-08-21  Akim Demaille  <akim@epita.fr>
11940         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
11941         Use them.
11943 2003-08-21  Akim Demaille  <akim@epita.fr>
11945         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
11946         forward order.
11947         * lib/Autom4te/ChannelDefs.pm: Doc typos.
11948         (&parse_warnings): Accept a list of warning requests.
11949         (&usage): Return a string, not a side effect.
11950         (cross): New warning category.
11952 2003-08-21  Akim Demaille  <akim@epita.fr>
11954         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
11955         (&require_configure_ac): Accept an optional directory argument.
11956         ($configure_ac): Remove.
11957         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
11958         (&catfile): Remove.
11959         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
11960         * bin/autoscan.in: Adjust.
11962 2003-08-20  Akim Demaille  <akim@epita.fr>
11964         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
11965         Reported by Alexandre Duret-Lutz.
11967 2003-08-20  Akim Demaille  <akim@epita.fr>
11969         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
11970         * bin/autom4te: Adjust.
11971         In particular, be Autoconf tools are really silent when properly
11972         working, bind the verbosity of the 'note' channel to $verbose.
11973         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
11974         (&xsystem, &contents): Remove, since they are exported by...
11975         * lib/Autom4te/FileUtils.pm: this.
11976         More perldoc.
11977         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
11978         * lib/Autom4te/FileUtils.pm: here.
11980 2003-08-20  Akim Demaille  <akim@epita.fr>
11982         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
11983         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
11984         from CVS Automake.
11986 2003-08-20  Akim Demaille  <akim@epita.fr>
11988         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
11989         (autom4te-update): New.
11990         * Makefile.cfg (update): Bind autom4te-update.
11992 2003-08-19  Derek Price  <derek@ximbiot.com>
11994         * lib/autotest/general.m4: Comment various HELP_* diversions.
11995         (PARSE_ARGS_BEGIN): New section for option parsing related
11996         initialization.
11997         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
11998         package specific options and associated help.
12000 2003-08-19  Akim Demaille  <akim@epita.fr>
12002         * config/announce-gen, Makefile.cfg: New.
12003         * Makefile.am: Adjust.
12004         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
12006 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
12008         * lib/autom4te.in (Automake-preselections): Preselect
12009         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
12010         and m4_sinclude.
12012 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
12014         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
12015         (Autoconf-without-aclocal-m4): ... this new language.
12016         * doc/autoconf.texi (autom4te Invocation): Mention
12017         Autoconf-without-aclocal-m4.
12019 2003-08-18  Derek Price  <derek@ximbiot.com>
12021         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
12022         RUN-IF-PASS optional arguments.
12024 2003-08-18  Derek Price  <derek@ximbiot.com>
12026         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
12028 2003-08-16  Derek Price  <derek@ximbiot.com>
12030         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
12031         STDOUT & STDERR arguments.
12033 2003-08-14  Derek Price  <derek@ximbiot.com>
12035         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
12036         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
12037         shorter column three.  Add DESCRIPTION to log file content.
12039 2003-08-13  Derek Price  <derek@ximbiot.com>
12041         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
12042         output.
12044 2003-08-12  Derek Price  <derek@ximbiot.com>
12046         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
12047         (AT_CHECK_NOESCAPE): Move core functionality to...
12048         (_AT_CHECK): ...this new macro.
12050 2003-08-07  Derek Price  <derek@ximbiot.com>
12052         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
12053         (AT_CHECK_NOESCAPE): ...to this new macro.
12055 2003-07-31  Paul Eggert  <eggert@twinsun.com>
12057         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
12058         in Bash 2.01.  Problem reported by Brian Gough in
12059         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
12061 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
12063         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
12064         -lcrt1.o, for OS X.  (trivial change)
12066 2003-07-07  Paul Eggert  <eggert@twinsun.com>
12068         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
12069         inside '#ifndef __cplusplus'.  Problem reported by
12070         Bob Friesenhahn.
12072 2003-07-06  Bill Clarke  <llib@computer.org>
12074         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
12075         'long', not 'int', for benefit of Sun's recent C++ compilers
12076         (trivial change).  See:
12077         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
12078         (This really should be 'intptr_t', not 'long', but that would
12079         take more work.)
12081 2003-06-25  Akim Demaille  <akim@epita.fr>
12083         * lib/Makefile.am (autom4te.cfg): Make it read only.
12084         Depend on Makefile since it contains substitutions.
12085         From Paolo Bonzini.
12086         * lib/autom4te.in (args): Add local.at? for Autotest args.
12087         This change was made on autom4te.cfg which is generated.
12088         Reported by Raja R. Harinath.
12090 2003-06-25  Akim Demaille  <akim@epita.fr>
12092         * doc/autoconf.texi (Header Portability): sys/mount.h.
12093         From Gareth McCaughan.
12095 2003-06-23  Akim Demaille  <akim@epita.fr>
12097         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
12098         not all of them.  This fixes 1. the fact that when testing
12099         Autoconf there are many many config.log, 2. the incorrect use of
12100         top_srcdir to find config.log.
12101         Don't mix the detailed output of failed test with the summary of
12102         failures.  Rather, append detailed log afterwards.
12104 2003-06-23  Akim Demaille  <akim@epita.fr>
12106         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
12107         always run: output config.log on $at_group_log.
12109 2003-06-23  Akim Demaille  <akim@epita.fr>
12111         * tests/torture.at (#define header templates): Don't use quotes in
12112         C++ comments as it puzzles Emacs' sh font-lock-mode.
12114 2003-06-23  Akim Demaille  <akim@epita.fr>
12116         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
12117         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
12118         * tests/atspecific.m4: Rename as...
12119         * tests/local.at: This.
12120         * tests/suite.at: Move the globals into...
12121         * tests/local.at: here.
12122         * tests/Makefile.am: Adjust.
12123         * doc/autoconf.texi (testsuite Scripts): Adjust.
12125 2003-06-21  Kevin Ryde  <user42@zip.com.au>
12127         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
12128         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
12129         ensuring we add -std1 for full-ANSI.
12131         * doc/autoconf.texi (hdrindex): New macro.
12132         Add index entries for portability of various standard header files.
12134 2003-06-20  Akim Demaille  <akim@epita.fr>
12136         * configure.ac: Bump to 2.57b.
12138 2003-06-20  Akim Demaille  <akim@epita.fr>
12140         Version 2.57a.
12142 2003-06-20  Akim Demaille  <akim@epita.fr>
12144         * bin/autom4te.in: Don't rely on $HOME being defined.
12145         Reported by Marc Espie as PR/233.
12147 2003-06-20  Akim Demaille  <akim@epita.fr>
12149         * lib/autotest/general.m4: Use at_times_file only if used.
12150         From Nicolas Joly.
12152 2003-06-20  Akim Demaille  <akim@epita.fr>
12154         * config/config.guess, config/config.sub, config/elisp-comp,
12155         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
12156         Update from masters.
12158 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
12160         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
12161         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
12162         (TEST_SCRIPT): New diversion.
12163         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
12164         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
12165         (AT_INIT): Support for expected failures.
12167 2003-06-02  Akim Demaille  <akim@epita.fr>
12169         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
12170         changes.
12171         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
12172         Autoconf nor Automake.
12173         (&contents): New, from Automake.
12174         PODify.
12176 2003-05-28  Paul Eggert  <eggert@twinsun.com>
12178         * NEWS, doc/autoconf.texi (Particular Functions),
12179         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
12180         is the inverse of localtime.
12182 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
12184         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
12185         (handle_exec_errors): New function.  Work around $! being
12186         altered by WEXITSTATUS.
12187         (xqx, xsystem): Use handle_exec_errors.
12189 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
12191         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
12192         Do not call `_exit()', simply modify `$?'.
12193         (xsystem): Reset $! before running system, and check it afterward.
12194         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
12195         63 for version mismatches.
12197 2003-05-23  Akim Demaille  <akim@epita.fr>
12199         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
12200         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
12201         the middle of a line).
12202         * lib/m4sugar/m4sugar.m4: Likewise.
12203         Remove useless spaces in comments.
12205 2003-05-23  Akim Demaille  <akim@epita.fr>
12207         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
12208         exit 63, so that we (or Automake's "missing") can tell the
12209         difference with a plain failure.
12210         * doc/autoconf.texi (Notices): Adjust.
12212 2003-05-23  Akim Demaille  <akim@epita.fr>
12214         * Makefile.am, bin/Makefile.am, config/Makefile.am,
12215         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
12216         White spaces cleanup.
12218 2003-05-22  Jim Meyering  <jim@meyering.net>
12219             Paul Eggert  <eggert@twinsun.com>
12221         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
12222         Remove `#include <stdlib.h>' from the list; we should never
12223         make confdefs.h include <stdlib.h> or <cstdlib>, because the
12224         resulting namespace pollution would cause other tests to fail.
12225         Configure scripts run with some older versions of g++ and HP's
12226         aCC would fail due to such an #include.  Problems reported by
12227         Matthew Mueller in <http://bugs.debian.org/120704> and by
12228         Keith Bostic in
12229         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
12230         In the test, use the test declaration before including <stdlib.h>,
12231         as that's closer to how it'll be used.
12233 2003-05-23  Akim Demaille  <akim@epita.fr>
12235         * doc/autoconf.texi (Header Portability): ucred.h.
12236         From Ian Redfern.
12238 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
12240         Overhaul Autotest's logging: generate separate log files
12241         in testsuite.dir/NNN/testsuite.log, and append them to
12242         testsuite.log instead of re-running the test verbosely.
12244         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
12245         file descriptor, write 0 to at_status_file instead of setting
12246         at_status=0, initialize some new variables (at_status_file,
12247         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
12248         to rerun the tests, instead append the at_group_log to the
12249         at_suite_log when a test fails.
12250         (AT_SETUP): pipe the test case's output into at_tee_pipe,
12251         with the AS_MESSAGE_LOG_FD redirected to stdout.
12252         (AT_CLEANUP): save the output status in $at_status_file
12253         and restore it, redirect the AS_MESSAGE_LOG_FD back to
12254         its original place.
12255         (AT_CHECK): since tests are run with a redirected stdout,
12256         and used to be re-run in verbose mode, turn some $at_verbose
12257         into echo, and don't redirect the output of testing stdout
12258         and stderr.
12260         * lib/autotest/autoconf.texi (testsuite Scripts): Update
12261         the name of the debugging directory and information about
12262         its contents.
12264 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
12266         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
12267         parameter.
12269 2003-05-22  Akim Demaille  <akim@epita.fr>
12271         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
12272         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
12273         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
12274         * lib/autoconf/status.m4: Fix and adjust copyright notices.
12276 2003-05-22  Akim Demaille  <akim@epita.fr>
12278         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
12279         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
12280         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
12281         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
12282         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
12283         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
12284         * lib/autoconf/status.m4, lib/autoconf/types.m4,
12285         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
12286         * tests/atspecific.m4, tests/base.at, tests/compile.at,
12287         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
12288         * tests/tools.at, tests/torture.at:
12289         Whitespace clean up.
12290         Suggested by Jim Meyering.
12292 2003-05-22  Akim Demaille  <akim@epita.fr>
12294         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
12295         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
12296         Reported by Jim Meyering.
12298 2003-05-22  Akim Demaille  <akim@epita.fr>
12300         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
12301         Add AC_HELP_STRING  to the obsolete macros section.
12302         Typos.
12303         Use '@.' for sentences that ended in a capital letter.
12304         From Art Haas.
12306 2003-05-22  Akim Demaille  <akim@epita.fr>
12308         * config/config.guess, config/config.sub, config/elisp-comp,
12309         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
12310         * config/texinfo.tex, doc/standards.texi: Update from masters.
12312 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
12314         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
12315         it to eval.
12317 2003-05-21  Akim Demaille  <akim@epita.fr>
12319         * bin/autoupdate.in ($m4): Fix quotation.
12320         Reported by Martin Mokrejs.
12322 2003-05-19  Paul Eggert  <eggert@twinsun.com>
12324         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
12325         Remove non-ASCII characters.
12327 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
12329         * tests/semantics.at (AC_SEARCH_LIBS): New test.
12330         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
12331         AC_CHECK_HEADERS_NEW): New tests.
12333 2003-05-17  Akim Demaille  <akim@epita.fr>
12335         * lib/autoconf/functions.m4: Use the default includes so that
12336         memcmp be declared before being tested.
12337         Reported by Sander Niemeijer.
12338         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
12339         * doc/autoconf.texi (Default Includes): Document
12340         AC_INCLUDES_DEFAULT.
12342 2003-05-17  Akim Demaille  <akim@epita.fr>
12344         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
12345         * doc/autoconf.texi (Obsolete Macros): Adjust.
12346         Reported by Werner LEMBERG and Debian Bug 190886.
12348 2003-05-16  Akim Demaille  <akim@epita.fr>
12350         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
12351         user name space clashes.
12352         Reported by Bruno Haible.
12354 2003-05-16  Akim Demaille  <akim@epita.fr>
12356         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12357         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
12358         them uniform, and more robust to Perl special characters.
12359         Reported by Martin Mokrejs.
12361 2003-05-14  Akim Demaille  <akim@epita.fr>
12363         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
12365 2003-05-14  Akim Demaille  <akim@epita.fr>
12367         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
12368         linux/irda.h.
12370 2003-05-12  Akim Demaille  <akim@epita.fr>
12372         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
12373         message.
12374         From Matthias Andree.
12376 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
12378         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
12379         and truncate.
12381 2003-05-06  Akim Demaille  <akim@epita.fr>
12383         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
12384         longer updates aclocal.m4 if useless, (ii) if a file m4_included
12385         by aclocal.m4 is changed it might require the importing of another
12386         m4 extension file, i.e., aclocal must be run.
12388         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
12389         (&parse_args): Use --force with aclocal if required and supported.
12390         (&autoreconf_current_directory): Use &run_aclocal.
12392 2003-05-06  Akim Demaille  <akim@epita.fr>
12394         Lock autom4te's cache.
12396         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
12397         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
12398         argument instead of a file name, so that the request file remains
12399         open during the whole autom4te run.
12400         ($icache_file): New.
12401         (&freeze): Lock the $icache_file.
12403 2003-04-29  Derek Price  <derek@ximbiot.com>
12405         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
12406         seperator with m4_append_uniq().  It doesn't work.
12407         (AT_CLEANUP): Add `;' to end of at_help_all.
12408         (AT_INIT): Allow --keywords to be specified more than once.  When
12409         grepping $at_help_all for keywords, use the field and keyword
12410         seperators to ensure a complete keyword match.  Alter at_prev handling
12411         to support the new --keywords behavior.
12413 2003-04-27  Karl Berry  <karl@freefriends.org>
12415         * doc/autoconf.texi: Make the dir entries in the autoconf manual
12416         align better with others.  I also made some of the individual
12417         entries on one line, for brevity and to make it easier for me to
12418         sort my dir-example file in the Texinfo distribution :).
12420 2003-04-12  Jim Meyering  <jim@meyering.net>
12422         * NEWS: Mention the new macro.
12423         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
12424         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
12425         * tests/c.at: Test AC_C_RESTRICT.
12426         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
12428 2003-04-08  Akim Demaille  <akim@epita.fr>
12430         * bin/ifnames.in: Skip C++ comments.
12431         From Jeremy Yallop.
12433 2003-04-08  Akim Demaille  <akim@epita.fr>
12435         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
12436         From Ilya Zakharevich.
12438 2003-04-08  Akim Demaille  <akim@epita.fr>
12440         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
12441         net/if.h, stdlib.h.
12443 2003-04-01  Derek Price  <derek@ximbiot.com>
12445         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
12446         from Akim's checkin of 2003-03-29.
12448 2003-04-01  Derek Price  <derek@ximbiot.com>
12450         * tests/torture.at (Configuring subdirectories): Add missing
12451         close-quote for Akim's change from 2003-03-28.
12453 2003-04-01  Akim Demaille  <akim@epita.fr>
12455         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
12456         (AC, AT, MS): these.
12457         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
12458         New.
12459         Use them.
12460         * doc/Makefile.am (CLEANFILES): Adjust.
12461         (TEXI2DVI): Make it --batch.
12463 2003-03-31  Derek Price  <derek@ximbiot.com>
12465         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
12466         which removed the main loop.
12467         Thanks to Akim Demaille.
12469 2003-03-29  Akim Demaille  <akim@epita.fr>
12471         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
12472         that starts a GUI.
12473         From Ilya Zakharevich.
12475 2003-03-29  Akim Demaille  <akim@epita.fr>
12477         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
12478         documentation to read is Autoconf's.
12479         Suggested by Paul Eggert.
12481 2003-03-28  Akim Demaille  <akim@epita.fr>
12483         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
12484         reading the section "Present But Cannot Be Compiled" when the
12485         header causes problems.
12487 2003-03-28  Akim Demaille  <akim@epita.fr>
12489         * tests/torture.at (Configuring subdirectories): Require aclocal
12490         1.4, otherwise the test fails, as it does support configure.ac.
12491         This fixes the "test 40 failed" bug reports.
12493 2003-03-28  Akim Demaille  <akim@epita.fr>
12495         * doc/autoconf.texi (C Compiler): `#line' portability.
12496         From Paul Eggert and Nelson H. F. Beebe.
12498 2003-03-27  Derek Price  <derek@ximbiot.com>
12500         * lib/autotest/general.m4: Eliminate main loop and reorganize test
12501         layout in order to allow scripting around test groups.
12503 2003-03-27  Derek Price  <derek@ximbiot.com>
12505         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
12506         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
12507         use new diversions in preparation for accepting new arguments and
12508         allowing scripting around tests.
12509         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
12511 2003-03-26  Derek Price  <derek@ximbiot.com>
12513         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
12514         obsolete AC_HELP_STRING.
12515         (AC_HELP_STRING): AU_DEFUN to...
12516         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
12517         * tests/m4sh.at (AS_HELP_STRING): New test.
12519         * tests/acgeneral.at: Regenerated.
12521 2003-03-26  Derek Price  <derek@ximbiot.com>
12523         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
12524         sense.  Verbosify the diversion definitions comment.
12526 2003-03-26  Derek Price  <derek@ximbiot.com>
12528         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
12529         AS_PREPARE.
12531 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
12533         * doc/autoconf.texi (Present But Cannot Be Compiled):
12534         Grammar fixes and minor rewording. (trivial change)
12536 2003-03-06  Paul Eggert  <eggert@twinsun.com>
12538         Work around a problem noted by Nelson H. F. Beebe with coreutils
12539         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
12540         2002/05/09) rejects '#line 32768 "configure"' because the line
12541         number overflows.
12542         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
12543         #line directives.
12544         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
12545         * doc/autoconf.texi (Generating Sources): Document this.
12547 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
12549         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
12550         file name for the m4 program, when it has an "exe" file extension.
12551         DJGPP's error messages include the error code in brackets -
12552         remove the error code during normalization.
12554 2003-02-28  Akim Demaille  <akim@epita.fr>
12556         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
12558 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
12560         * doc/autoconf.texi (Limitations of Make): Remove the section
12561         about `$<' in inference rules, it was a bogus interpretation of
12562         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
12563         Tru64 make in the "target lookup" section.
12564         (Automake): Automake 1.5+ no longer requires special tools to be
12565         present on the developer's host.
12567 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
12569         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
12570         to a shell that can handle redirection or quoting correctly.
12571         Override SHELL with the shell detected by configure.
12572         Use of $^O suggested by Tim van Holder.
12573         * bin/autom4te.in (BEGIN): Likewise.
12574         * bin/autoreconf.in (BEGIN): Likewise.
12575         * bin/autoscan.in (BEGIN): Likewise.
12576         * bin/autoupdate.in (BEGIN): Likewise.
12577         * bin/ifnames.in (BEGIN): Likewise.
12579         * bin/ifnames.in: Add final newline to help and version messages.
12581         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
12582         to cope with DOS-style absolute paths, when constructing
12583         ${ac_make}.
12585         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
12586         When constructing paths with IFS=:, quote the path. If we're
12587         constructing a DOS-style absolute path, we don't want to split it
12588         on the colon.
12590         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
12591         in description.
12593 2003-02-25  Pavel Roskin  <proski@gnu.org>
12595         * bin/autoheader.in: Add missing newline when printing
12596         suggestion how change AC_DEFINE call.
12598 2003-02-24  Paul Eggert  <eggert@twinsun.com>
12600         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
12601         2002-09-01 patch by replacing "test -n" with "test -z".
12602         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
12603         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
12605         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
12606         to fix a mismatch between example and discussion.
12608 2003-02-24  Kevin Ryde  <user42@zip.com.au>
12610         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
12611         format starting with "-".
12613 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
12615         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
12616         is not portable inside Makefile.
12618 2003-02-20  Akim Demaille  <akim@epita.fr>
12620         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
12621         compiler says yeah, but preproc says nope, compiler is right.
12622         Conversely, prompt the reader to send a bug report to the
12623         maintainers of the package, not of Autoconf.
12625 2003-02-20  Klee Dienes  <kdienes@apple.com>
12627         * bin/autoreconf.in (autoreconf_current_directory): Properly
12628         handle an empty aclocal.m4.
12630 2003-02-20  Akim Demaille  <akim@epita.fr>
12632         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
12633         $ac_prefix_program.
12634         From Larry Jones.
12636 2002-12-23  Paul Eggert  <eggert@twinsun.com>
12638         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
12639         innocuous variant befor including <limits.h> or <assert.h>.  This
12640         works around a bug reported by Albert Chin: HP-UX 11i
12641         (and earlier versions) have a <limits.h> that declares
12642         gettimeofday and many other functions.
12644 2002-12-03  Paul Eggert  <eggert@twinsun.com>
12646         Version 2.57.
12648         * NEWS, configure.ac: Update version.
12650         * doc/fdl.texi: Upgrade to FDL version 1.2.
12652         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
12653         nontrivially in main's body, so that f's external declaration is
12654         not optimized away in AIX.  This should fix the bug reported by
12655         Martin Frydl in
12656         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
12658         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
12659         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
12660         defined, to support freestanding compilers.  This should fix the
12661         bug reported by Momchil Velkov in
12662         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
12664         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
12665         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
12666         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
12667         by Simon Josefsson in
12668         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
12670         * Makefile.maint (www-gnu): New macro.
12671         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
12672         the location has moved.
12674 2002-12-02  Martin Frydl  <martin@systinet.com>
12676         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
12677         \(.*\) match is too long and there is something more to be checked.
12678         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
12680 2002-11-15  Akim Demaille  <akim@epita.fr>
12682         Version 2.56.
12684         * config/install-sh: chmod +x.
12685         From Paul Eggert.
12686         * config/move-if-change: Indenting changes.
12687         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
12688         * configure.ac (AM_INIT_AUTOMAKE): here.
12689         Require 1.7.1.
12691 2002-11-14  Akim Demaille  <akim@epita.fr>
12693         Version 2.55.
12695         * config/config.guess, config/config.sub, config/install-sh:
12696         Update from masters.
12698 2002-11-14  Akim Demaille  <akim@epita.fr>
12700         * Makefile.maint: Sync with Bison, i.e.:
12701         (po-check): Scan .l and .y files instead of the
12702         .c and the .h files that they generate.  This fixes the bug
12703         reported by Tim Van Holder in:
12704         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
12705         Look for N_ as well as for _.  Try to avoid matching #define for
12706         N_ and _.
12707         From Paul Eggert.
12709 2002-11-14  Akim Demaille  <akim@epita.fr>
12711         * doc/autoconf.texi (C Compiler): Compiling several files at once.
12712         From Paul Eggert and Albert Chin-A-Young.
12714 2002-11-14  Akim Demaille  <akim@epita.fr>
12716         * doc/autoconf.texi (C Compiler): Solitary backslashes.
12717         From Paul Eggert and Albert Chin-A-Young.
12719 2002-11-14  Kevin Ryde  <user42@zip.com.au>
12721         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
12722         than assigning in main, to avoid HP cc +O3 optimizing it away.
12724 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
12726         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
12727         option.  Process --recheck after parsing all options.  Pass -q
12728         option to configure on --recheck.
12729         (AC_OUTPUT): Pass -q from configure to config.status.
12730         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
12731         arguments to record.
12732         * doc/autoconf.texi (config.status Invocation): Document
12733         config.status -q option.
12735 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
12737         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
12738         Makefile.in if Makefile.am exists.
12739         (output): Strip `.am' from Makefiles.  Don't
12740         output AC_CONFIG_FILES if no Makefiles were found.
12742 2002-11-07  Akim Demaille  <akim@epita.fr>
12744         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
12745         (local_updates): New.
12746         * Makefile.maint: Update, from CVS Bison.
12747         (local_updates): New.
12749 2002-11-06  Akim Demaille  <akim@epita.fr>
12751         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
12752         declaration in extern "C" too.
12753         Reported by Roberto Bagnara.
12755 2002-11-06  Akim Demaille  <akim@epita.fr>
12757         * tests/torture.at (Configuring subdirectories): Don't use grep
12758         -w.
12759         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
12760         Reported by Ezra Peisach.
12762 2002-11-05  Akim Demaille  <akim@epita.fr>
12764         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
12765         Remove.
12766         We _have_ to stop using the old compatibility scheme that tried to
12767         avoid useless backslashes because Libtool 1.4.3 contains a
12768         AC_DEFINE([error_t], [int],
12769         [Define to a type to use for \`error_t' if it is not
12770         otherwise available.])
12771         We _have_ to quote the single quote and backslashes with \.  The
12772         old compatibility scheme saw that ` was backslashed, and therefore
12773         did not quote the single quote.  Hence before this patch, Autoconf
12774         was not compatible with Libtool.
12776 2002-11-04  Paul Eggert  <eggert@twinsun.com>
12778         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
12779         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
12780         LC_NAME, LC_PAPER, LC_TELEPHONE.
12781         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
12783 2002-11-04  Akim Demaille  <akim@epita.fr>
12785         Version 2.54c.
12787         * Makefile.maint (update, cvs-update, po-update, do-po-update):
12788         New.
12789         * config/texinfo.tex: Update.
12791 2002-11-03  Akim Demaille  <akim@epita.fr>
12793         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
12794         from...
12795         (&autoreconf): here.
12796         ($help, $make, &parse_args, &autoreconf_current_directory):
12797         Support -m/--make.
12798         * doc/autoconf.texi (autoreconf Invocation): Adjust.
12800 2002-10-31  Bruno Haible  <bruno@clisp.org>
12802         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
12803         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
12804         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
12805         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
12806         to ac_cv_func_realloc_0_nonnull.
12807         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
12809 2002-10-31  Akim Demaille  <akim@epita.fr>
12811         The test suite was no longer checking for trailing envvars and files.
12813         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
12814         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
12816 2002-10-31  Akim Demaille  <akim@epita.fr>
12818         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
12819         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
12820         Make variable, not a shell variable.
12821         Suggested by Bruno Haible.
12823 2002-10-31  Akim Demaille  <akim@epita.fr>
12825         * bin/autom4te.in (load_configuration): Reject #args out of any
12826         language.
12828 2002-10-31  Akim Demaille  <akim@epita.fr>
12830         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
12831         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
12832         (_AC_RUN_IFELSE): Use it.
12833         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
12834         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
12835         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
12836         inline it.
12838 2002-10-30  Akim Demaille  <akim@epita.fr>
12840         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
12841         * doc/autoconf.texi (autom4te Invocation): Adjust.
12842         Suggested by Tim van Holder.
12844 2002-10-29  Paul Eggert  <eggert@twinsun.com>
12846         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
12847         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
12848         Problem reported by Bruno Haible.
12850 2002-10-29  Akim Demaille  <akim@epita.fr>
12852         * doc/autoconf.texi (Header Templates): Put also in words what the
12853         pictures says to assist free style readers.
12854         (Customizing autom4te): s/--cache=/--cache /.
12856 2002-10-29  Akim Demaille  <akim@epita.fr>
12858         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
12859         sys/wait.h.
12860         sparc_address_test returns void.
12861         Use it with an argument, as prototyped.
12862         From Bruno Haible.
12864 2002-10-29  Akim Demaille  <akim@epita.fr>
12866         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
12867         configure.in, not configure.ac.
12868         Reported by Bruno Haible.
12870 2002-10-29  Akim Demaille  <akim@epita.fr>
12872         * tests/torture.at (Deep Package): New test.
12873         (Configuring subdirectories): Don't use a testSubDir as Autotest
12874         now does it itself.
12876 2002-10-29  Akim Demaille  <akim@epita.fr>
12878         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
12879         * doc/autoconf.texi (Invoking autom4te): Rename as...
12880         (autom4te Invocation): this, for consistency with the other nodes.
12882 2002-10-29  Akim Demaille  <akim@epita.fr>
12884         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
12885         Reported by Ralf Corsepius.
12887 2002-10-29  Akim Demaille  <akim@epita.fr>
12889         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
12890         characters is a back as an `obsolete' warning now.
12891         Reported by Ralf Corsepius.
12893 2002-10-28  Akim Demaille  <akim@epita.fr>
12895         * configure.ac: Bump to 2.54c.
12897 2002-10-28  Akim Demaille  <akim@epita.fr>
12899         Version 2.54b.
12901         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
12903 2002-10-28  Akim Demaille  <akim@epita.fr>
12905         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
12906         m4 executable names, and different GNU M4 version.
12907         Reported by Ezra Peisach and Paul Jarc.
12909 2002-10-27  Akim Demaille  <akim@epita.fr>
12911         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
12912         AC_RUN_IFELSE.
12914 2002-10-27  Akim Demaille  <akim@epita.fr>
12916         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
12917         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
12918         Die when a simple Fortran program cannot be compiled.
12919         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
12920         Issue a warning if no function is given.
12922 2002-10-27  Akim Demaille  <akim@epita.fr>
12924         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
12925         Move the documentation of AC_TRY_RUN to...
12926         (Obsolete Macros): here.
12927         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
12928         (autoconf Invocation): Remove the duplicates with `invoking
12929         autom4te'.
12930         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
12931         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
12933 2002-10-27  Akim Demaille  <akim@epita.fr>
12935         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
12936         and AC_LANG_FUNC_LINK_TRY.
12937         (Examining Libraries): Rename as...
12938         (Running the Linker): this.
12939         Document AC_LINK_IFELSE.
12940         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
12941         (Obsolete Macros): here.
12942         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
12943         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
12944         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
12945         * lib/autoconf/headers.m4 (AC_USG): Likewise.
12947 2002-10-27  Akim Demaille  <akim@epita.fr>
12949         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
12951         More `check config.log' messages.
12953         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
12954         * doc/autoconf.texi (Printing Messages): Document it.
12955         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
12956         appropriate.
12957         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
12958         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
12959         (_AC_COMPILER_OBJEXT): Likewise.
12960         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
12961         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
12962         Likewise.
12963         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
12964         Likewise.
12966         Deprecate macros with unusual interfaces.
12968         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
12969         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
12971         Document the new ones, and proper style.
12973         * doc/autoconf.texi (Generating Sources): New.
12974         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
12975         (Examining Declarations): Rename as...
12976         (Running the Preprocessor): this.
12977         Document AC_PREPROC_IFELSE.
12978         (Examining Syntax): Rename as...
12979         (Running the Compiler): this.
12980         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
12981         (Obsolete Macros): Move the definition of AC_TRY_CPP and
12982         AC_TRY_COMPILE here.
12984 2002-10-27  Akim Demaille  <akim@epita.fr>
12986         Move sections around.
12988         * doc/autoconf.texi (Customizing autom4te): Remove a lost
12989         sentence.
12990         Reported by Burno Haible.
12991         (Language Choice): Now the first section of...
12992         (Writing Tests): this section.
12993         Make the introduction less C-centric.
12994         (Guidelines, Test Functions): Move to...
12995         (Writing Test Programs): this new section.
12996         (Test Programs): Merge into...
12997         (Run Time): this.
12999 2002-10-27  Akim Demaille  <akim@epita.fr>
13001         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
13002         autom4te.in that resulted in the need for two `make' runs.
13004 2002-10-27  Akim Demaille  <akim@epita.fr>
13006         * configure.ac: Bump to 2.54b.
13008 2002-10-25  Akim Demaille  <akim@epita.fr>
13010         Version 2.54a.
13012         * Makefile.maint: Update from the Coreutils.
13013         (AMTAR): Remove, obsolete.
13014         (automake_repo): Update to redhat.com.
13015         (cvs_file): New.
13016         Adjust to the fact that ansi2knr is now hosted by Automake.
13017         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
13018         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
13019         Update from masters.
13020         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
13021         autoscan.pre is not to be installed, and autoscan.list is not to
13022         be shipped.
13023         (CLEANFILES): Add autoscan.list.
13024         (autoscan.list): Disable the cache.
13025         * bin/Makefile.am: Include freeze.mk.
13027 2002-10-25  Akim Demaille  <akim@epita.fr>
13029         * bin/autom4te.in (&load_configuration): Take the file as
13030         argument.
13031         (&parse_args): Handle -C, --cache.
13032         ($help): Adjust.
13033         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
13034         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
13035         * doc/autoconf.texi (Invoking autom4te): Document --cache.
13036         Now a subsection of...
13037         (Using autom4te): This new section.
13038         (Customizing autom4te): New.
13039         (autom4te.cache): Adjust.
13041 2002-10-25  Akim Demaille  <akim@epita.fr>
13043         * doc/autoconf.texi (Generic Headers): More information on how to
13044         use AC_CHECK_HEADERS.
13046 2002-10-25  Akim Demaille  <akim@epita.fr>
13048         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
13049         Space changes.
13051 2002-10-25  Akim Demaille  <akim@epita.fr>
13053         * bin/autoscan.in (output): Output AC_PREREQ.
13054         (%needed_macros): Add AC_PREREQ so that configure.ac without one
13055         be reported.
13057 2002-10-23  Akim Demaille  <akim@epita.fr>
13059         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
13060         document _Bool.
13062 2002-10-23  Akim Demaille  <akim@epita.fr>
13064         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
13065         Reported by Peter Eisentraut.
13067 2002-10-23  Akim Demaille  <akim@epita.fr>
13069         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
13070         type _Bool.
13071         Fix a typo.
13072         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
13073         Eggert's recommandations.
13075 2002-10-22  Akim Demaille  <akim@epita.fr>
13077         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
13078         Bison, by Paul Eggert.
13079         * doc/autoconf.texi (Particular Headers): Document it.
13081 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
13083         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
13084         `$ac_configure_args'.
13086 2002-10-22  Akim Demaille  <akim@epita.fr>
13088         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
13089         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
13090         From Art Haas.
13092 2002-10-22  Akim Demaille  <akim@epita.fr>
13094         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
13096         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
13097         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
13098         (_AC_CHECK_HEADER_NEW): Rename as...
13099         (AC_CHECK_HEADER): this.
13101 2002-10-22  Akim Demaille  <akim@epita.fr>
13103         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
13104         words about HP-UX cmp: it was actually a user-written cmp.
13106 2002-10-22  Akim Demaille  <akim@epita.fr>
13108         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
13109         are a few warnings.
13110         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
13111         Quote for Perl '' strings, not "".
13112         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
13113         strings.
13115 2002-10-22  Akim Demaille  <akim@epita.fr>
13117         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13118         characters is a syntax warning now.
13119         (_AS_QUOTE): Accept $2 as list of characters to quote.
13120         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
13121         Quote for Perl, not sh.
13122         * bin/autoheader.in: When $debug, report the file which is
13123         `do'ne.
13124         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
13125         `@', to tickle Perl's lists.
13126         Reported by Carlos Velasco.
13128 2002-10-18  Akim Demaille  <akim@epita.fr>
13130         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
13131         missing included files _are_ errors.
13132         Thanks to Alexandre Duret-Lutz.
13133         * tests/tools.at (autom4te cache): Adjust.
13134         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
13135         (AT_CHECK_M4SUGAR): Use it.
13136         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
13137         Adjust.
13138         * tests/tools.at (autom4te): Now it does exit 1.
13140 2002-10-17  Akim Demaille  <akim@epita.fr>
13142         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
13143         Fixes the `AC_ARG_VAR' test failures.
13144         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
13145         * lib/freeze.mk (check-forbidden-patterns): New.
13146         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
13147         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
13148         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
13149         /dev/null.
13150         Reported months ago by H. Merijn Brand.
13152 2002-10-17  Akim Demaille  <akim@epita.fr>
13154         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
13156 2002-10-16  Paul Eggert  <eggert@twinsun.com>
13158         * Makefile.maint (wget_files): Remove ansi2knr.c.
13159         (ansi2knr.c-url_prefix): Remove.
13161 2002-10-16  Akim Demaille  <akim@epita.fr>
13163         Because of caching, some files that no longer exist and are no
13164         longer required can still cause errors.
13165         Reported by Alexandre Duret-Lutz.
13167         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
13168         to frozen files in @ARGV, as @ARGV must remain being a list of
13169         files.  Rather, at M4 call sites, use this...
13170         (&files_to_options): New function.
13171         (&freeze): Use &error.
13172         (&up_to_date): If a file that was included according to the cache
13173         is no longer there, then the output is out dated.
13174         (&main): Don't even check whether a file is up to date is anyway
13175         --force is given.
13176         * tests/tools.at (autom4te cache): New.
13178 2002-10-16  Akim Demaille  <akim@epita.fr>
13180         * bin/autoconf.as: Kill dead options.
13181         * bin/autoupdate.in (&parse_args): Kill old options.
13182         * bin/autoreconf.in (&parse_args): Remove dead options.
13183         Factor some code.
13184         (&autoreconf): Report the directories we enter *and leave*, so
13185         that error messages can be easily located, and use GNU Make
13186         format, so that Emacs' compile mode understands us.
13187         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
13188         if some file was changed instead of `print'.
13189         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
13190         (&parse_args): Remove the dead options.
13191         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
13192         autoheader's quiet mode.
13193         (AT_CHECK_AUTOUPDATE): Likewise.
13194         * tests/tools.at (autoupdate): Adjust.
13195         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
13197 2002-10-11  Akim Demaille  <akim@epita.fr>
13199         No longer use CPP to check for the existing of headers: use CC to
13200         check for compilability.
13202         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
13203         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
13204         (_AC_CHECK_HEADER_NEW): Rename as...
13205         (AC_CHECK_HEADER): this.
13207         * lib/autotest/general.m4 (AT_INIT): Include the failed test
13208         numbers in the Subject suggestion.
13210 2002-10-11  Akim Demaille  <akim@epita.fr>
13212         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
13213         Suggest using AC_CHECK_DECLS instead.
13215 2002-10-11  Akim Demaille  <akim@epita.fr>
13217         * tests/torture.at (AC_ARG_VAR): Have configure report the value
13218         of `precious'.
13220 2002-10-11  Akim Demaille  <akim@epita.fr>
13222         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
13223         file name to enable parallel executions.
13224         From Sam Varshavchik.
13226 2002-10-08  Akim Demaille  <akim@epita.fr>
13228         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
13229         aclocal invocation, as Gettext macros might not be visible to
13230         aclocal.
13231         Instead of blindly running autopoint, scan configure.ac (not the
13232         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
13233         Reported by Paul D. Smith.
13235 2002-10-08  Paul Eggert  <eggert@twinsun.com>
13237         Work around problems found when POSIXLY_CORRECT=1 is set.
13238         None of this seems to have anything to do with POSIX, really,
13239         but it's how Perl getopt works.
13240         * bin/autom4te.in (parse_args): Configure GetOpt with
13241         "permute", too.
13242         * doc/autoconf.texi (Invoking autom4te):
13243         --warning -> --warnings.
13244         * lib/autom4te.in: --warning -> --warnings.
13246 2002-09-28  Akim Demaille  <akim@epita.fr>
13248         * doc/autoconf.texi (autom4te.cache): New section.
13250 2002-09-28  Akim Demaille  <akim@epita.fr>
13252         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
13253         (Automake-preselections): Update.
13254         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
13256 2002-09-28  Akim Demaille  <akim@epita.fr>
13258         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
13259         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
13260         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
13261         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
13263 2002-09-28  Akim Demaille  <akim@epita.fr>
13265         * tests/torture.at (Configuring subdirectories): Be robust to
13266         users who use config.site to require for a cache: in this case,
13267         the two last configure runs, using two different sets of
13268         arguments, trigger a legitimate error.
13270 2002-09-28  Akim Demaille  <akim@epita.fr>
13272         * tests/m4sh.at (Functions Support, Functions and return Support):
13273         New.
13275 2002-09-28  Akim Demaille  <akim@epita.fr>
13277         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
13278         autoheader are Perl programs.
13279         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
13280         (autom4te): Specify that the sources are in the $srcdir.
13281         * doc/autoconf.texi (Installation Directory Variables): Adjust.
13283 2002-09-28  Akim Demaille  <akim@epita.fr>
13285         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
13286         (tm_zone): Move their rules to...
13287         * lib/autoconf/types.m4: here, using AN_ macros.
13288         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
13289         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
13290         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
13291         * lib/autoconf/programs.m4: here.
13292         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
13293         (ETAGS_FOR_AUTOCONF): New.
13294         Use it.
13296 2002-09-28  Akim Demaille  <akim@epita.fr>
13298         * lib/autoconf/autoscan.m4: New file.
13299         * lib/autoconf/autoconf.m4: Include it.
13300         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
13301         that were listed in the original autoscan.list.
13302         * lib/autoconf/headers.m4: Similarly with headers.
13303         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
13304         (.m4.m4f): Don't pass --prepend-include, since that's done by
13305         tests/autom4te itself.
13306         * lib/autoscan/Makefile.am: Include freeze.mk.
13307         (autoscan.list): New target --this file is no longer a source.
13308         (autoscan.pre): New file.
13310 2002-09-28  Akim Demaille  <akim@epita.fr>
13312         * bin/autoscan.in (@kinds): Make them singular.
13313         Adjust all uses.
13314         (&init_tables): When --debug, report the list of rules to ease
13315         tracking changes in autoscan.list.
13316         * lib/autoscan/autoscan.list (function): Strip comments, sort.
13318 2002-09-28  Akim Demaille  <akim@epita.fr>
13320         * lib/autoscan/functions, lib/autoscan/headers,
13321         * lib/autoscan/identifiers, lib/autoscan/makevars,
13322         * lib/autoscan/programs: Merge into...
13323         * lib/autoscan/autoscan.list: this.
13324         * bin/autoscan.in (&init_tables): Adjust.
13326 2002-09-28  Akim Demaille  <akim@epita.fr>
13328         * lib/autoscan/functions, lib/autoscan/headers,
13329         * lib/autoscan/identifiers, lib/autoscan/makevars,
13330         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
13331         `functions' line is now prefixed with `function:'.
13332         * bin/autoscan.in (&init_tables): Adjust.
13334 2002-09-28  Akim Demaille  <akim@epita.fr>
13336         From now on, autoscan files must always map a macro name to a
13337         word: there is no `default' macro for autoscan.
13339         * bin/autoscan.in (&init_tables): Reject entries with no macro at
13340         all.
13341         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
13342         explicit.
13344 2002-09-28  Akim Demaille  <akim@epita.fr>
13346         * bin/autoscan.in (%c_keywords): Remove.
13347         (&used): Keep only track of the words we might be interested in.
13348         (&output_kind): It is no longer needed to look for non active
13349         checks.
13351 2002-09-27  Akim Demaille  <akim@epita.fr>
13353         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
13354         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
13355         * lib/autoscan/functions: Adjust.
13356         * doc/autoconf.texi (Particular Functions): Adjust.
13358 2002-09-27  Akim Demaille  <akim@epita.fr>
13360         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
13361         from /tmp.
13362         Thanks to Bill Moseley and Paul Eggert.
13363         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
13364         the tmpdir must be created.
13365         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
13366         dir be in the build tree, instead of $TMPDIR.
13368 2002-09-27  Akim Demaille  <akim@epita.fr>
13370         * bin/autoscan.in: Improve the comments.
13371         (&parse_args): Drop obsolete undocumented options.
13372         (&output_kind): Output warnings.
13373         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
13374         (getwd): Trigger a warning.
13376 2002-09-26  Akim Demaille  <akim@epita.fr>
13378         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
13379         Reported by Ralf Corsepius.
13380         * doc/autoconf.texi (autoreconf Invocation): Likewise.
13382 2002-09-26  Akim Demaille  <akim@epita.fr>
13384         Single suffix rules and seperated dependencies are not portable.
13386         * doc/autoconf.texi (Installation Directory Variables): Update.
13387         (Limitations of Make): Some about `Single Suffix Rules and
13388         Separated Dependencies'.
13389         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
13390         (ifnames, autoscan, autom4te): Un-factor into several rules.
13392 2002-09-25  Paul Eggert  <eggert@twinsun.com>
13394         * BUGS (Interoperability bugs): New section.  Mention libtool
13395         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
13397 2002-09-24  Paul Eggert  <eggert@twinsun.com>
13399         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
13400         make handles suffix-rules differently from GNU make.
13402         * bin/Makefile.am (SUFFIXES, .in): Remove.
13403         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
13404         Move the body of the old .in rule here.
13406 2002-09-16  Akim Demaille  <akim@epita.fr>
13408         i960 compilers create `b.out' files by default.
13409         Reported by Ralf Corsepius.
13411         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
13412         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
13414 2002-09-13  Paul Eggert  <eggert@twinsun.com>
13416         * doc/autoconf.texi (Particular Headers): Remove obsolete
13417         reference to `struct timezone' in the description of
13418         AC_HEADER_TIME.
13420 2002-09-13  Akim Demaille  <akim@epita.fr>
13422         Version 2.54.
13424         * config/config.sub, config/config.guess: Update.
13425         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
13426         * Makefile.am: Adjust.
13428 2002-09-13  Akim Demaille  <akim@epita.fr>
13430         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
13431         reading config.log when the compiler is rejected.
13432         Suggested by Guido Draheim.
13434 2002-09-13  Akim Demaille  <akim@epita.fr>
13436         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
13437         (chdir_init) might hang when stat'ing mounted directories.
13438         Reported by Vance Shipley.
13440 2002-09-12  Akim Demaille  <akim@epita.fr>
13442         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
13443         the lists.
13445 2002-09-12  Akim Demaille  <akim@epita.fr>
13447         * doc/autoconf.texi (Defining Symbols): Present two different
13448         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
13449         difference between 1 argument calls, and 2-3 argument calls.
13451 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
13453         * doc/autoconf.texi: Review grammar and punctuation.
13455 2002-09-11  Paul Eggert  <eggert@twinsun.com>
13457         * doc/autoconf.texi: Fix minor formatting, spelling, and
13458         grammatical typos.
13459         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
13460         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
13461         is obsolescent.
13463 2002-09-11  Akim Demaille  <akim@epita.fr>
13465         * doc/autoconf.texi (Questions): Rename as...
13466         (FAQ): this.
13467         (Defining Directories): New.
13469 2002-09-09  Akim Demaille  <akim@epita.fr>
13471         * doc/autoconf.texi (Making testsuite Scripts): Update.
13472         Suggested by Nishio Futoshi.
13474 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
13476         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
13477         plain `@' is wanted.
13479 2002-09-09  Akim Demaille  <akim@epita.fr>
13481         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
13482         `duplicates', since the algorithm was too naive and could keep
13483         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
13484         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
13485         Reported by Ralf Corsepius.
13486         * tests/torture.at (Configuring subdirectories): Exercise these
13487         cases.
13489 2002-09-09  Akim Demaille  <akim@epita.fr>
13491         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
13492         looking for a replacement file.
13493         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
13494         directory is relative.
13495         * doc/autoconf.texi (Generic Functions): Clarify the replacement
13496         directory definition.
13497         Reported by Andreas Schwab and Jim Meyering.
13499 2002-09-06  Akim Demaille  <akim@epita.fr>
13501         * doc/autoconf.texi (Setting Output Variables): Clarify what
13502         precious variables are.
13503         Suggested by Pontus Skoeld.
13505 2002-09-05  Akim Demaille  <akim@epita.fr>
13507         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
13508         (ifnames, autoscan, autom4te): Since we don't only depend on
13509         configure.ac variables (such as VERSION etc.), but also on prefix
13510         and so forth, depend on Makefile, not configure.ac.
13511         Reported by Alexandre Duret-Lutz.
13512         * doc/autoconf.texi (Installation Directory Variables): Adjust.
13514 2002-09-05  Kevin Ryde  <user42@zip.com.au>
13516         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
13517         doesn't seem to be confined to ia64, just say "some versions".
13519 2002-09-04  Akim Demaille  <akim@epita.fr>
13521         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
13522         Automake 1.6c.
13523         * Makefile.am (maintainer-clean-local): Remove.
13524         (MAINTAINERCLEANFILES): Remove COPYING.
13526 2002-09-03  Paul Eggert  <eggert@twinsun.com>
13528         * doc/autoconf.texi (Configuration Commands): Remove obsolete
13529         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
13530         Brinkmann.
13532 2002-09-03  Akim Demaille  <akim@epita.fr>
13534         * configure.ac: Bump to 2.53d.
13535         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
13536         as of today, on Automake's team suggestion.
13538 2002-09-03  Akim Demaille  <akim@epita.fr>
13540         Version 2.53c.
13542 2002-09-02  Akim Demaille  <akim@epita.fr>
13544         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
13545         SITE_MACRO_DIR.
13546         * configure.ac: Disable SITE_MACRO_DIR.
13548 2002-09-02  Jim Meyering  <meyering@lucent.com>
13550         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
13551         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
13552         Also, tweak grammar: s/make sure to/be sure to/.
13554 2002-09-02  Paul Eggert  <eggert@twinsun.com>
13556         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
13557         directory names are generally preferable to physical names.
13559 2002-09-02  Akim Demaille  <akim@epita.fr>
13561         * lib/Autom4te/General.pm (&update_file): s/die/error/.
13562         Reported by Raja R. Harinath.
13563         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
13564         * bin/autoupdate.in: Use error instead of die.
13566 2002-09-01  Paul Eggert  <eggert@twinsun.com>
13568         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
13569         ordinary shell concatenation rather than echo+tr+sed command that
13570         runs afoul of a long-line-related sed bug in Solaris 8.
13572         * bin/autoheader.in (parse_args): --warning -> --warnings.
13574         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
13575         stdout, as traditional "ls" does.
13576         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
13577         _AC_COMPILER_EXEEXT_O): Likewise.
13578         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
13580         * bin/autoconf.as: Add --prepend-include option.  This patch was
13581         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
13582         but bin/autoconf.in is generated automatically from bin/autoconf.as.
13584         * bin/autoconf.in, configure: Regenerate.
13586         * doc/autoconf.texi (Special Shell Variables): Mention
13587         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
13589         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
13590         MAILPATH and set PS1, PS2, PS4 to default values, to work
13591         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
13592         For LC_ALL etc, first try to set to "C" as POSIX requires and as
13593         the Autoconf documentation specifies; fall back to "unset" only if
13594         this fails.  Use a shell for-loop for this rather than an m4 loop,
13595         to shorten the output script.
13597 2002-08-30  Paul Eggert  <eggert@twinsun.com>
13599         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
13600         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
13601         for the CDPATH problem.  Document PWD.
13602         (Limitations of Builtins): Document the problem that "cd $foo" and
13603         "ls $foo" may refer to different directories in shells conforming
13604         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
13605         example, since the old example is now out of date.
13607         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
13608         FOO" and "ls FOO" talk about different directories; this catches
13609         problems when POSIX 1003.1-2001 "cd" fails due to symlink
13610         spaghetti.
13612         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
13613         of rolling our own unset.
13614         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
13615         in practice we needn't worry about CDPATH if unset doesn't work.
13617         * Makefile.in, aclocal.m4, bin/Makefile.in,
13618         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
13619         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
13620         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
13621         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
13622         tests/Makefile.in: Regenerate with Automake 1.6.3.
13624         * config/config.guess, config/config.sub, config/mkinstalldirs:
13625         Update.
13627         * configure: Regenerate with self.
13629 2002-08-30  Kevin Ryde  <user42@zip.com.au>
13631         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
13632         default output.
13634 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13636         * bin/autom4te.in (Request::load): Correctly test for "do" read
13637         failure.
13639 2002-08-29  Akim Demaille  <akim@epita.fr>
13641         * lib/Autom4te/General.pm (&xqx): New.
13642         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
13643         hand, which is not portable.
13644         (&error): New.
13645         * bin/autom4te.in: Use them.
13646         Use &error instead of die.
13647         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
13648         Adjust.
13650 2002-08-17  Paul Eggert  <eggert@twinsun.com>
13652         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
13653         default list of compilers to try, since it was long ago superseded
13654         by the ksh fc builtin.  Suggested by Steven G. Johnson.
13656 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
13658         * doc/autoconf.texi (Invoking autom4te): End the option table,
13659         fixing a bug introduced by the previous patch.
13660         (Limitations of Make): Add a 'target lookup' subentry in the
13661         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
13663 2002-07-29  Mark D. Roth  <roth@feep.net>
13665         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
13666         options and use $AUTOM4TE_PATH.
13667         * doc/autoconf.texi: Remove documentation of autom4te
13668         --include-envvar and --site-macro-subdir options and document
13669         use of $AUTOM4TE_PATH.
13670         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
13671         arguments from each language section.
13673 2002-07-29  Paul Eggert  <eggert@twinsun.com>
13675         * doc/install.texi: Include copyright symbol in copyright notice.
13677         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
13678         Replace with:
13679         (AM_MAKEINFOFLAGS): New macro.
13680         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
13681         * Makefile.am (INSTALL): Use the new macros.
13682         Use -o rather than --output, since "missing" does not grok --output.
13684 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
13686         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
13687         comments do not always work. Never trust the exit status of
13688         `make -k'.
13690 2002-07-24  Kevin Ryde  <user42@zip.com.au>
13692         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
13693         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
13695 2002-07-23  Paul Eggert  <eggert@twinsun.com>
13697         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
13698         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
13699         apparently treats PATH="nonexistent" as if it contained ".".
13700         Bug reported by Stefan `Sec' Zehl.
13702 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
13704         * doc/autoconf.texi (Limitations of Make): Mention the special
13705         handling of the obj/ directory by BSD make.
13707 2002-07-20  Kevin Ryde  <user42@zip.com.au>
13709         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
13710         backslashes.
13712 2002-07-19  Akim Demaille  <akim@epita.fr>
13714         * doc/autoconf.texi (Function Portability): `exit'.
13715         (Programming in M4sh): Ethymology of M4sh.
13717 2002-07-19  Akim Demaille  <akim@epita.fr>
13719         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
13721 2002-07-18  Akim Demaille  <akim@epita.fr>
13723         Version 2.53b.
13725 2002-07-18  Akim Demaille  <akim@epita.fr>
13727         * config/config.guess, config/config.sub: Update.
13729 2002-07-18  Akim Demaille  <akim@epita.fr>
13731         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
13732         Automake's parts.
13734         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
13735         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
13736         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
13738 2002-07-18  Akim Demaille  <akim@epita.fr>,
13739             Alexandre Duret-Lutz  <duret_g@epita.fr>
13741         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
13742         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
13744 2002-07-17  Russ Allbery  <rra@stanford.edu>
13746         * doc/autoconf.texi (Initializing configure): Clarify the
13747         description of the tarname default.
13749 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
13751         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
13752         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
13753         latter was not run.
13755 2002-07-17  Akim Demaille  <akim@epita.fr>
13757         * lib/Autom4te/General.pm (find_file): Browse the directories in
13758         the order they are given.
13760 2002-07-17  Akim Demaille  <akim@epita.fr>
13762         * tests/wrapsh.as, tests/wrappl.as: Merge into...
13763         * tests/wrapper.as: this.
13764         * tests/Makefile.am, configure.ac: Adjust.
13766 2002-07-17  Mark D. Roth  <roth@feep.net>
13768         * configure.ac: Add --enable-site-macro-dir option.
13769         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
13770         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
13771         --site-macro-subdir options.
13772         * bin/autoconf.in: Add --prepend-include option.
13773         * bin/autoheader.in: Add --prepend-include option.
13774         * bin/autoreconf.in: Add --prepend-include option.
13775         * bin/autoscan.in: Add --prepend-include option.
13776         * bin/autoupdate.in: Add --prepend-include option.
13777         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
13778         macro directory, remove note that include path directories are
13779         used in reverse order, and document --prepend-include option.
13780         * lib/autom4te.in: Use --prepend-include instead of --include.
13781         * tests/wrapsh.in: Use --prepend-include instead of --include.
13783 2002-07-17  Akim Demaille  <akim@epita.fr>
13785         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
13786         tarnames.
13787         * doc/autoconf.texi (Initializing configure): Adjust.
13789 2002-07-17  Akim Demaille  <akim@epita.fr>
13791         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
13792         (_AC_FUNC_MALLOC): New.
13793         (AC_FUNC_MALLOC): Use the latter.
13794         Define HAVE_MALLOC to 0 if broken.
13795         * doc/autoconf.texi (Particular Functions): Adjust.
13797 2002-07-16  Akim Demaille  <akim@epita.fr>
13799         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
13800         * doc/autoconf.texi (C Compiler): Adjust.
13802 2002-07-09  Akim Demaille  <akim@epita.fr>
13804         * doc/autoconf.texi: Properly set the ``header'' part.
13806 2002-07-09  Akim Demaille  <akim@epita.fr>
13808         * doc/autoconf.texi (Systemology): Some about Darwin.
13810 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
13812         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
13813         Don't use AC_REQUIRE in AU_DEFUN.
13815 2002-07-09  Art Haas  <ahaas@neosoft.com>
13817         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
13819 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
13821         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13822         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
13823         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
13824         so that Emacs setups GNU style for perl-mode and cperl-mode.
13826 2002-06-27  Paul Eggert  <eggert@twinsun.com>
13828         * config/install-sh: Quote $src.  Prefer || to test's -o option,
13829         as per "Limitations of Builtins".
13830         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
13831         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
13833         * tests/mktests.sh: Use grep instead of fgrep, as per
13834         "Limitations of Builtins".
13836 2002-06-15  Paul Eggert  <eggert@twinsun.com>
13838         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
13839         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
13840         so that we consistently test the just-built programs.
13841         * tests/wrappl.as: Likewise.
13843 2002-06-12  Paul Eggert  <eggert@twinsun.com>
13845         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
13846         name, so that symlinks to 'autoconf' work properly.  Bug reported
13847         by Bruno Haible.
13848         * bin/autoheader.in (AUTOM4TE): Likewise.
13849         * bin/autoreconf.in (autoconf, autoheader): Likewise.
13850         * bin/autoscan.in (autom4te): Likewise.
13851         * bin/autoupdate.in (autom4te): Likewise.
13853         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
13854         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
13855         on Solaris 2.5.1.
13857 2002-06-11  Andreas Schwab  <schwab@suse.de>
13859         * doc/autoconf.texi: Add more dir entries.
13861 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
13863         * bin/autom4te.in ($cache): Don't define using `$me', the name
13864         of the cache should not depend on the name under which autom4te
13865         was installed.
13867 2002-06-07  Akim Demaille  <akim@epita.fr>
13869         * tests/tools.at (autoconf: forbidden tokens, basic)
13870         (autoconf: forbidden tokens, exceptions): Adjust to the change of
13871         words in autom4te.in.
13873 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
13875         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
13876         _AC_LANG_PROGRAM_C_F77_HOOKS.
13878 2002-06-07  Akim Demaille  <akim@epita.fr>
13880         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
13881         rename as...
13882         (AC_REPLACE_FNMATCH): this.
13883         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
13884         AC_FUNC_FNMATCH_GNU.
13886 2002-06-07  Akim Demaille  <akim@epita.fr>
13888         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
13889         Rosetta Stone for Unix.
13891 2002-06-07  Akim Demaille  <akim@epita.fr>
13893         * bin/autom4te.in (warn_forbidden): When rejecting a token,
13894         suggest m4_pattern_allow.
13895         Suggested by Adam J. Richter.
13897 2002-06-07  Akim Demaille  <akim@epita.fr>
13899         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
13900         ac_config_libobj_dir.
13901         (AC_CONFIG_LIBOBJ_DIR): New.
13902         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
13903         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
13904         Use ac_config_libobj_dir to find the replacement files.
13905         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
13906         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
13907         (AC_REPLACE_FNMATCH_GNU): these.
13908         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
13909         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
13910         * tests/mktests.sh (ac_exclude_list): Don't check
13911         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
13913 2002-06-06  Paul Eggert  <eggert@twinsun.com>
13915         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
13916         if ln doesn't work.
13917         * NEWS: Likewise.
13918         * doc/autoconf.texi (Configuration Links): Likewise.
13919         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
13921 2002-06-05  Paul Eggert  <eggert@twinsun.com>
13923         * config/config.guess, config/config.sub, config/texinfo.tex:
13924         Update from masters.
13926 2002-05-29  Paul Eggert  <eggert@twinsun.com>
13928         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
13929         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13930         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
13931         Likewise.
13932         * lib/autoconf/Makefile.am (check-local): Likewise.
13933         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
13934         * lib/autoconf/types.m4 (commentary only): Likewise.
13935         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
13936         * lib/autotest/Makefile.am (check-local): Likewise.
13937         * lib/m4sugar/Makefile.am (check-local): Likewise.
13938         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
13939         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
13941         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
13942         * doc/autoconf.texi (Particular Programs): Document them.
13943         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
13944         * NEWS: Likewise.
13946 2002-05-27  Paul Eggert  <eggert@twinsun.com>
13948         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
13949         * NEWS, doc/autoconf.texi (Particular Types): Document it.
13950         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
13951         instead of AC_MBSTATE_T, which never existed.
13953 2002-05-23  Akim Demaille  <akim@epita.fr>
13955         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
13956         version of Autoconf that is discussed.
13958 2002-05-22  Paul Eggert  <eggert@twinsun.com>
13960         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
13961         from the default list of compilers to try.  Suggested by
13962         Kate Hedstrom.
13963         * NEWS: Document the above.
13964         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
13966 2002-05-17  Paul Eggert  <eggert@twinsun.com>
13968         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
13969         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
13970         This improves on an earlier suggestion by H. Peter Anvin.
13972 2002-05-16  Paul Eggert  <eggert@twinsun.com>
13974         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
13975         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
13976         Both macros now accept an optional source-dir arg.
13977         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
13979         * NEWS: Document this.
13980         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
13982         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
13983         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
13984         not for GNU extensions; this undoes part of the 2000-11-03 change,
13985         reverting to 2.13-compatible behavior.
13986         Add new optional argument DIR.
13987         (AC_FUNC_FNMATCH_GNU): New macro.
13989         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
13991 2002-05-08  Paul Eggert  <eggert@twinsun.com>
13993         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
13994         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
13995         and it causes a 'test' syntax error if it fails.
13996         Bug reported by Stephen Gildea.
13998         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
13999         If prototypes are supported, use them to check this at compile-time,
14000         instead of trying to check it at run-time.  If we must do a run-time
14001         check, assume that setvbuf is standard when cross-compiling, as
14002         nonstandard setvbuf occurs only on ancient and unlikely hosts.
14003         Bug reported by Paul D. Smith.
14005         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
14006         argument specifying location of getloadavg.c.  This removes a
14007         FIXME.  This idea was taken from Jim Meyering's implementation in
14008         textutils.
14009         * doc/autoconf.texi (Particular Functions): Document this.
14010         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
14011         that's what the code does; this fixes a bug reported by
14012         Paul D. Smith.
14014 2002-05-03  Akim Demaille  <akim@epita.fr>
14016         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
14017         autopoint instead of gettextize.
14018         ($uses_alocal): Rename as...
14019         ($uses_aclocal): this.
14020         * doc/autoconf.texi (autoreconf Invocation): Adjust.
14021         Suggested by Bruno Haible.
14023 2002-05-03  Akim Demaille  <akim@epita.fr>
14025         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
14027 2002-04-29  Paul Eggert  <eggert@twinsun.com>
14029         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
14030         files to be 1 second older; just set them to be the same time.
14031         Also, sleep 1 second after the first aclocal, to work around
14032         problems with sub-second time stamps on the input files.
14034 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
14036         * doc/autoconf.texi: Mention "set -e -x" lossage
14037         under node "Limitations of Builtins".
14039 2002-04-29  Akim Demaille  <akim@epita.fr>
14041         * doc/install.texi: Better wording for setting variables when
14042         running configure.
14043         From Christian Cornelssen.
14045 2002-04-29  Akim Demaille  <akim@epita.fr>
14047         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
14048         of lack of $LINENO support, then the test will compare the $LINENO
14049         in testsuite vs. the lineno in the test file.  This is wrong, of
14050         course.
14051         Be sure to protect it.
14052         Reported by Patrick Welche.
14054 2002-04-25  Akim Demaille  <akim@epita.fr>
14056         * doc/autoconf.texi (Obsolete Macros): Typo.
14057         Reported by Vladimir Volovich.
14059 2002-04-25  Akim Demaille  <akim@epita.fr>
14061         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
14062         than some of the input files, hence, on the second run of aclocal,
14063         if some of its input are younger, make them older.
14064         Suggested by Paul Eggert.
14066 2002-04-25  Akim Demaille  <akim@epita.fr>
14068         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
14069         Thanks to Paul Eggert.
14071 2002-04-25  Akim Demaille  <akim@epita.fr>
14073         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
14074         and ac_subst_vars be sh variables containing the list of
14075         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
14076         DEFAULT diversion.
14077         (_AC_INIT_PREPARE): Use them to log them.
14078         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
14079         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
14080         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
14081         _AC_SUBST_FILES and _AC_SUBST_VARS.
14082         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
14084 2002-04-24  Akim Demaille  <akim@epita.fr>
14086         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
14087         autoheader, so that automake does not complain about a missing
14088         config.h.in that was to be created.
14090 2002-04-23  Akim Demaille  <akim@epita.fr>
14092         * bin/autoheader.in (parse_args): --warning takes an argument.
14093         Fixes PR/220.
14095 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
14097         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
14098         and bb.out when cleaning up.
14100 2002-04-22  Akim Demaille  <akim@epita.fr>
14102         Version 2.53a.
14104 2002-04-22  Akim Demaille  <akim@epita.fr>
14106         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
14108 2002-04-22  Akim Demaille  <akim@epita.fr>
14110         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
14111         comma.
14112         Reported by Gregory Giannoni.
14114 2002-04-22  Akim Demaille  <akim@epita.fr>
14116         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
14117         Fixes false failures on Darwin.
14119 2002-04-21  Paul Eggert  <eggert@twinsun.com>
14121         * TODO, bin/autoupdate.in, doc/autoconf.texi,
14122         lib/autoconf/general.m4, lib/autoconf/libs.m4,
14123         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
14124         tests/tools.at: Minor spelling and grammar fixes.
14126 2002-04-20  Paul Eggert  <eggert@twinsun.com>
14128         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
14129         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
14130         * lib/autotest/general.m4 (AT_INIT): Likewise.
14131         * tests/atgeneral.m4 (AT_INIT): Likewise.
14133 2002-04-19  Paul Eggert  <eggert@twinsun.com>
14135         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
14136         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
14137         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
14138         lib/autoconf/functions.m4, lib/autoconf/general.m4,
14139         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
14140         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
14141         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
14142         Minor spelling and grammar fixes.
14144         * doc/autoconf.texi: Follow the outline suggested in the GNU
14145         Sample Texts sections of the Texinfo 4.2 manual.  Most
14146         importantly, this makes sure that the copyright notices appear in
14147         all output formats.  You probably need Texinfo 4.2 to generate
14148         the manual now.
14150         Fix some bugs when using "$@" when there might be zero positional
14151         arguments in cases where this matters.
14153         * bin/autoconf.as: Rewrite so that the problem does not come up.
14154         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
14155         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
14156         * lib/autotest/general.m4 (AT_INIT): Likewise.
14158         * bin/autoheader.in: Use 'case' statement to work around problem.
14159         * bin/auto4mte.in: Likewise.
14160         * bin/autoreconf.in: Likewise.
14161         * bin/autoscan.in: Likewise.
14162         * bin/autoupdate.in: Likewise.
14163         * bin/ifnames.in: Likewise.
14165         * doc/autoconf.texi (Shell Substitutions): Document the problem.
14167         * lib/autotest/general.m4 (AT_INIT):
14168         Use Zsh alias to work around problem.
14169         * tests/atgeneral.m4 (AT_INIT): Likewise.
14171         * tests/c.at: We can't have zero arguments, so remove workaround
14172         that is not portable to Zsh.
14174 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
14176         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
14177         from aclocal.m4 too.
14179 2002-04-12  Akim Demaille  <akim@epita.fr>
14181         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
14183 2002-04-10  Akim Demaille  <akim@epita.fr>
14185         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
14186         workaround for ${1+"$@"}.
14187         * doc/autoconf.texi (Shell Substitutions): Explain it.
14188         From Oliver Kiddle and Peter Stephenson.
14190         Have M4sh perform minimal shell sanitizing.
14192         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
14193         part into...
14194         (_AS_PREPARE): this new macro.
14195         (AS_PREPARE): New.
14196         (AS_INIT): Invoke AS_SHELL_SANITIZE.
14197         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
14199         Adjust Autoconf and Autotest.
14201         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
14202         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
14203         * lib/autotest/general.m4 (AT_INIT): Likewise.
14204         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
14205         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
14206         AS_SHELL_SANITIZE.
14208         Use this M4sh to generate Autoconf's shell scripts.
14210         * tests/wrapsh.as: New, precursor of wrapsh.in.
14211         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
14212         on Autotest and M4sh.
14213         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
14214         (wrapsh.in): New target.
14215         * bin/autoconf.as: New, precursor of autoconf.in.
14216         (autoconf.in): New target.
14218 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
14220         * doc/autoconf.texi (Limitations of Make): Mention the issue
14221         with indented comments in rules.
14223 2002-04-09  Andreas Schwab  <schwab@suse.de>
14225         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
14226         ac_top_builddir when setting ac_abs_top_builddir.
14228 2002-04-06  Kevin Ryde  <user42@zip.com.au>
14230         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
14231         (Portable Shell): Cross reference to Systemology.
14233 2002-04-05  Akim Demaille  <akim@epita.fr>
14235         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
14236         directories when descending in a SUBDIRS.
14237         Reported by Ezra Peisach.
14239 2002-04-04  Andreas Schwab  <schwab@suse.de>
14241         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
14242         contains no literal separators.
14244 2002-04-03  Akim Demaille  <akim@epita.fr>
14246         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
14247         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
14248         Use dnl, not the KILL diversion.
14249         Extracted from...
14250         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
14251         (AC_CONFIG_LINKS): here.
14252         Adjust.
14253         Don't use the KILL diversion, as it kills spurious output, which
14254         results in failures being hidden.
14255         Use m4_defn where appropriate.
14256         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
14257         after the second argument.
14258         Use m4_defn.
14259         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
14260         syntax, as it is provided by M4sugar.
14261         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
14263 2002-04-03  Andreas Schwab  <schwab@suse.de>
14265         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
14266         expanded if $# <= 2.
14268         * bin/autoreconf.in (autoreconf): Run automake after rerunning
14269         aclocal.
14271 2002-04-03  Akim Demaille  <akim@epita.fr>
14273         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
14274         (_AC_COMPILER_EXEEXT_REJECT): New.
14275         Also recognize *.bb and *.bbg as compilation byproducts.
14276         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
14277         (_AC_COMPILER_OBJEXT): Use them.
14278         Fixes Debian #138666.
14280 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
14282         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
14284         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
14285         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
14286         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
14287         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
14288         (AC_C_CONST): Same.
14289         (AC_C_INLINE): Same.
14290         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
14291         * doc/autoconf.texi, NEWS: Document.
14292         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
14293         AC_C_CROSS.
14295 2002-04-02  Akim Demaille  <akim@epita.fr>
14297         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
14298         _AS_MKDIR_P_PREPARE.
14300 2002-03-28  Kevin Ryde  <user42@zip.com.au>
14302         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
14303         to avoid versions of HP C which don't allow that.
14305 2002-03-27  Paul Eggert  <eggert@twinsun.com>
14307         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
14308         (AS_SHELL_SANITIZE): Invoke it.
14309         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
14311 2002-03-26  Akim Demaille  <akim@epita.fr>
14313         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
14315 2002-03-26  Akim Demaille  <akim@epita.fr>
14317         * doc/autoconf.texi (Introduction): The GNATS base moved.
14319 2002-03-25  Paul Eggert  <eggert@twinsun.com>
14321         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
14322         as POSIX requires, as it doesn't work with Zsh.
14323         * doc/autoconf.texi (Assignments): Document the problem.
14325 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
14327         * doc/autoconf.texi (Limitations of Make): Mention more issue
14328         about VPATH, overriding of macros in sub-makes, and handling of
14329         SHELL.
14331 2002-03-21  Paul Eggert  <eggert@twinsun.com>
14333         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
14334         problem with here-document buffer boundaries.
14336         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
14337         when reinvoking the shell, to work around problems with installers
14338         who put strange things like "cd" commands in their environments.
14340 2002-03-19  Akim Demaille  <akim@epita.fr>
14342         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
14343         From Aaron Ucko.
14345 2002-03-19  Akim Demaille  <akim@epita.fr>
14347         * bin/autoscan.in (scan_file): Specify the location in `&used'
14348         invocations.
14349         From Nicolas Joly.
14351 2002-03-19  Akim Demaille  <akim@epita.fr>
14353         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
14354         From Nishio Futoshi.
14356 2002-03-19  Akim Demaille  <akim@epita.fr>
14358         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
14360 2002-03-18  Paul Eggert  <eggert@twinsun.com>
14362         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
14363         (Limitations of Usual Tools): Add mkdir section.
14365         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
14366         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
14367         back on AS_DIRNAME to compute prefixes otherwise; this is
14368         roughly what mkinstalldirs does.  That way, we need not have
14369         our own filename disassembler.  The old disassembler did not
14370         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
14372         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
14373         Create at_test_all by a series of assignments,
14374         not by a single assignment of a long string.  The latter causes ksh
14375         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
14376         presumably because of a buffer overrun.
14378 2002-03-14  Paul Eggert  <eggert@twinsun.com>
14380         * lib/autotest/general.m4 (at_times_skip):
14381         Renamed from at_times.  Now a boolean.
14382         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
14383         says 'times: not found'.
14385 2002-03-14  Akim Demaille  <akim@epita.fr>
14387         * bin/autoreconf.in (&study_gettextize): New.
14388         (&autoreconf): Handle newest gettextize.
14389         Rerun aclocal if needed.
14390         Suggested by Andreas Schwab.
14392 2002-03-13  Akim Demaille  <akim@epita.fr>
14394         * doc/autoconf.texi (Special Shell Variables): More about IFS.
14396 2002-03-13  Akim Demaille  <akim@epita.fr>
14398         * doc/autoconf.texi (Header Portability): New.
14399         Add information about stdint.h and inttypes.h from Paul Eggert.
14401 2002-03-13  Akim Demaille  <akim@epita.fr>
14403         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
14404         -p'.
14405         From Bob Proulx.
14407 2002-03-12  Akim Demaille  <akim@epita.fr>
14409         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
14410         m4_require.
14412 2002-03-11  Andreas Schwab  <schwab@suse.de>
14414         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
14415         does not do it if --with-lispdir is given.
14417 2002-03-08  Akim Demaille  <akim@epita.fr>
14419         Version 2.53.
14421 2002-03-08  Akim Demaille  <akim@epita.fr>
14423         * doc/autoconf.texi (Subdirectories): Clarify that the
14424         subdirectory should exist.
14426 2002-03-08  Akim Demaille  <akim@epita.fr>
14428         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
14430 2002-03-08  Akim Demaille  <akim@epita.fr>
14432         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
14433         aliases the actual variables, and modifications of the former
14434         affect the latter.
14436 2002-03-08  Akim Demaille  <akim@epita.fr>
14438         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
14439         because of C-c: have m4 output in tmp files, then mv them.
14441 2002-03-08  Akim Demaille  <akim@epita.fr>
14443         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
14444         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14445         * bin/ifnames.in: Copyright update.
14447 2002-03-08  Akim Demaille  <akim@epita.fr>
14449         * doc/autoconf.texi (Invoking autom4te): New.
14451 2002-03-05  Akim Demaille  <akim@epita.fr>
14453         * doc/autoconf.texi (Specifying Names): Clarification suggested by
14454         Kevin Ryde.
14456 2002-03-05  Akim Demaille  <akim@epita.fr>
14458         Version 2.52i.
14460 2002-03-04  Akim Demaille  <akim@epita.fr>
14462         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
14463         * lib/autoconf/general.m4 (AC_INIT): More informative error
14464         message for LIBOBJ.
14466 2002-03-04  Akim Demaille  <akim@epita.fr>
14468         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
14469         parallel builds.
14471 2002-03-04  Akim Demaille  <akim@epita.fr>
14473         * doc/autoconf.texi (Transforming Names): Equality between target
14474         and host is irrelevant.
14475         (Specifying Names, Canonicalizing): Remove all references to the
14476         backward compatibility hooks.  Rather, collect them all into...
14477         (Hosts and Cross-Compilation): this new section.
14478         * doc/install.texi (System Type): Ditto.
14479         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
14480         that `--host' implies cross-compilation.
14482 2002-03-04  Akim Demaille  <akim@epita.fr>
14484         * doc/autoconf.texi (Evaluation Macros): New.
14485         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
14486         useless.
14487         (_m4_foreach): Define the variant with immediate evaluation so
14488         that it contains exactly the items, not an expression which
14489         evaluation is the current item.
14490         (m4_re_string, m4_re_word): Don't over quote them.
14492 2002-03-04  Akim Demaille  <akim@epita.fr>
14494         Instead of having stacking `shift's evaluated at the end, let
14495         `foreach' loops immediately evaluate them.
14497         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
14498         $*.  This is the n-th time I change my mind, but hopefully this is
14499         the last...
14500         (m4_lquote): New.
14501         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
14502         efficient.
14503         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
14504         it was only a hack for m4_text_wrap.
14505         (m4_car2): Remove, replaced by...
14506         (m4_cdr): New.
14507         (_m4_foreach): Adjust.
14508         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
14509         m4_bpatsubst for clarification.
14511 2002-03-04  Akim Demaille  <akim@epita.fr>
14513         * doc/autoconf.texi (Changequote is Evil): New.
14515 2002-03-03  Kevin Ryde  <user42@zip.com.au>
14517         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
14518         on old systems like SunOS.
14520 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
14522         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
14523         lib/autoconf/functions.m4, lib/autoconf/general.m4,
14524         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
14525         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
14526         of messages.
14528 2002-02-28  Akim Demaille  <akim@epita.fr>
14530         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
14531         message to be sent.
14533 2002-02-28  Kevin Ryde  <user42@zip.com.au>
14535         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
14537 2002-02-25  Akim Demaille  <akim@epita.fr>
14539         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
14540         From Akinori Musha.
14542 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
14544         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
14545         translate \r\n to \n.
14547 2002-02-07  Akim Demaille  <akim@epita.fr>
14549         Version 2.52h.
14551 2002-02-07  Akim Demaille  <akim@epita.fr>
14553         Fix Autoconf PR/209.
14554         Also reported by Frank Denis.
14556         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
14558 2002-02-07  Akim Demaille  <akim@epita.fr>
14560         Fix Autoconf PR/207:
14561         AC_PREFIX_PROGRAM fails with dashed program names
14563         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
14564         variable when looking for the prefix program.
14565         Now it also works for shell variables.
14567 2002-02-07  Akim Demaille  <akim@epita.fr>
14569         * doc/autoconf.texi (Limitations of Builtins): More about
14570         case/esac.
14572 2002-02-06  Akim Demaille  <akim@epita.fr>
14574         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
14575         case/esac, some shells don't support it.
14576         Reported by Zack Weinberg.
14577         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
14579 2002-02-06  Akim Demaille  <akim@epita.fr>
14581         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
14582         sure not to introduce newlines in at_groups.
14583         * lib/autotest/Makefile.am (autotest.m4f): Typo.
14585 2002-02-06  Akim Demaille  <akim@epita.fr>
14587         * tests/torture.at (Configuring subdirectories): Skip if aclocal
14588         is not available.
14590 2002-02-05  Paul Eggert  <eggert@twinsun.com>
14592         * doc/autoconf.texi (Specific Compiler Characteristics):
14593         Describe HP-UX cc bug workaround more accurately.
14594         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
14595         not unsigned long.
14596         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
14597         cross-compilers, too.  This undoes some of the most recent change
14598         to this file.
14600 2002-02-05  Akim Demaille  <akim@epita.fr>
14602         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
14603         to make sure they are up to date when `check' is run.
14605 2002-02-05  Akim Demaille  <akim@epita.fr>
14607         * doc/autoconf.texi (Making testsuite Scripts): Document
14608         package.m4.
14610 2002-02-05  Akim Demaille  <akim@epita.fr>
14612         * lib/freeze.mk: New.
14614 2002-02-05  Akim Demaille  <akim@epita.fr>
14616         Implement `autom4te --freeze'.
14618         * bin/autom4te.in (&freeze): New.
14619         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
14620         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
14622 2002-02-05  Akim Demaille  <akim@epita.fr>
14624         * bin/autom4te.in (&parse_args): Implement `frozen files are
14625         optional are the sum of the previous files on the command line'.
14626         Also, pass `--reload-state=' on them, so...
14627         (handle_m4): don't.
14628         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
14629         (M4sh): Rely on M4sugar.
14630         (Autotest, M4sh, M4sugar): Use frozen files.
14632 2002-01-31  Akim Demaille  <akim@epita.fr>
14634         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
14635         * doc/autoconf.texi (Initializing configure): Adjust.
14637 2002-01-30  Akim Demaille  <akim@epita.fr>
14639         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
14640         alphanumeric to `-' instead of `_'.
14642 2002-01-30  Akim Demaille  <akim@epita.fr>
14644         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
14645         for plain code, the other for cross-compilation code.  The latter
14646         is now run with GCC only.
14647         * doc/autoconf.texi (Compilers and Preprocessors): New.
14649 2002-01-30  Akim Demaille  <akim@epita.fr>
14651         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
14652         values.
14653         * doc/autoconf.texi (Initializing configure): Explain how to
14654         change AC_INIT default values.
14656 2002-01-29  Akim Demaille  <akim@epita.fr>
14658         * tests/torture.at (Configuring subdirectories): Use configure.in,
14659         so that aclocal 1.4 works.
14660         Reported by Alexandre Duret-Lutz and Larry Schmitt.
14662 2002-01-28  Akim Demaille  <akim@epita.fr>
14664         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
14665         needs an argument.
14667 2002-01-28  Akim Demaille  <akim@epita.fr>
14669         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
14670         AUTOTEST_PATH *after* it was set.
14671         Don't put `.' in the PATH: the user should be precise and `./' if
14672         needed.  In addition, given that the test suite does some `cd', if
14673         `.' is in the path, the `tested programs' sections will report
14674         programs found in the test suite's directory, while during the
14675         tests (performed in their own directory), these programs are no
14676         longer visible.  In other words, the results is confusing and
14677         useless.
14678         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
14680 2002-01-24  Akim Demaille  <akim@epita.fr>
14682         Version 2.52g.
14684 2002-01-24  Akim Demaille  <akim@epita.fr>
14686         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
14687         * doc/autoconf.texi: Finally add Akim as an author.
14689 2002-01-24  Akim Demaille  <akim@epita.fr>
14691         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
14692         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
14693         Bourne. Use /bin/sh.
14694         From Andreas Buening.
14696 2002-01-24  Akim Demaille  <akim@epita.fr>
14698         * config/config.guess, config/config.sub, config/texinfo.tex:
14699         Update from masters.
14701 2002-01-24  Akim Demaille  <akim@epita.fr>
14703         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
14704         * config/auxdir.m4, config/cond.m4, config/depend.m4,
14705         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
14706         * config/missing.m4, config/sanity.m4, config/select.m4,
14707         * config/strip.m4: Remove, to ease sync'ing with any version of
14708         Automake.
14710 2002-01-24  Akim Demaille  <akim@epita.fr>
14712         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
14713         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
14714         Reported by Geir Ove Myhr.
14716 2002-01-21  Akim Demaille  <akim@epita.fr>
14718         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
14720 2002-01-21  Akim Demaille  <akim@epita.fr>
14722         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
14723         message on invalid options.
14724         * bin/autom4te.in (parse_args): Don't use
14725         Autoconf::General::getopt with non valid options.
14727 2002-01-17  Jim Meyering  <meyering@lucent.com>
14729         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
14730         $ac_cv_exeext so we don't use an old, invalid, cached value.
14732 2002-01-11  Akim Demaille  <akim@epita.fr>
14734         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
14735         Meyering.
14736         * doc/autoconf.texi (Function Portability): Document the strnlen
14737         limitation.
14738         (Particular Functions): Document AC_FUNC_STRNLEN.
14739         * lib/autoscan/functions: Adjust.
14741 2002-01-06  Akim Demaille  <akim@epita.fr>
14743         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
14744         package.m4, since is really depends upon configure.ac, not
14745         configure.
14746         * doc/autoconf.texi (testsuite Scripts): Adjust.
14747         * tests/Makefile.am (package.m4): New.
14748         EXTRA_DIST it since its a source.
14750 2002-01-06  Akim Demaille  <akim@epita.fr>
14752         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
14753         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
14754         and PACKAGE_BUGREPORT from here...
14755         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
14756         arguments.
14757         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
14758         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
14759         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
14760         * tests/tools.at (autoheader): Adjust.
14761         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
14763 2002-01-06  Akim Demaille  <akim@epita.fr>
14765         * bin/autoscan.in (scan_file): Use `&used'.
14767 2002-01-03  Akim Demaille  <akim@epita.fr>
14769         * doc/autoconf.texi (Output): Improved wording regarding use of
14770         AC_OUTPUT.
14771         From Olly Betts.
14773 2001-12-18  Kevin Ryde  <user42@zip.com.au>
14775         * doc/autoconf.texi (Function Portability): Add notes on sscanf
14776         sometimes needing writable input.
14778 2001-12-17  Jim Meyering  <meyering@lucent.com>
14780         * doc/autoconf.texi (New Macros): Tweak wording.
14782 2001-12-14  Akim Demaille  <akim@epita.fr>
14784         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
14785         trailing files, don't apply `-rf' to files which might not be
14786         created by configure (core, core.*, and *.core), but just `rm -f'.
14787         Suggested by Jonathan Kamens.
14789 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
14791         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
14793 2001-12-14  Akim Demaille  <akim@epita.fr>
14795         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
14797 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
14799         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
14800         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
14801         abs_srcdir, top_srcpath to abs_top_srcdir.
14802         (_AC_OUTPUT_FILES): Adjust.
14803         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
14804         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
14805         * tests/wrappl.in, tests/wrapsh.in: Adjust.
14807 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
14809         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
14810         C/Fortran linking on HP/UX, by extracting the Fortran library
14811         search path from the LPATH line in the $F77 -v output.
14813 2001-12-12  Kevin Ryde  <user42@zip.com.au>
14815         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
14816         forbidden file descriptors table.
14818 2001-11-26  Akim Demaille  <akim@epita.fr>
14820         * bin/autoscan.in (%c_keywords): Build it at top level.
14821         Map to 1 in order to simplify its uses.
14823 2001-11-26  Akim Demaille  <akim@epita.fr>
14825         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
14826         Remove $filepath, useless.
14827         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
14828         variables, they are really part of the tokens.
14829         Split the input line on spaces and then look for tokens.
14830         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
14831         because of `lex$U.$(OBJEXT)'.
14832         (&scan_files): Use "@list" instead of join.
14833         * doc/Makefile.am (CLEANFILES): Add *.fns.
14835 2001-11-26  Akim Demaille  <akim@epita.fr>
14837         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
14838         Remove, replaced by...
14839         * tests/wrappl.in: Be common for all the Perl executables.
14840         In particular autoscan and autoheader want -I.
14841         * configure.ac: Adjust.
14842         * lib/autoscan/headers: errno.h is portable.
14844 2001-11-26  Akim Demaille  <akim@epita.fr>
14846         * bin/autoscan.in (used): New.
14847         Use it.
14849 2001-11-26  Akim Demaille  <akim@epita.fr>
14851         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
14852         directives.
14853         (&scan_sh_file): Remove a duplicate pattern.
14854         (&check_configure_ac): Use long options.
14855         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
14857 2001-11-26  Akim Demaille  <akim@epita.fr>
14859         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
14860         Before, having a line containing the opening of a multi line
14861         comment made the whole line be ignored.
14863 2001-11-26  Akim Demaille  <akim@epita.fr>
14865         * doc/autoconf.texi (Using an Autotest Test Suite): New.
14866         (testsuite Scripts): Be one of its subsection.
14867         (Autotest Logs): New.
14869 2001-11-26  Akim Demaille  <akim@epita.fr>
14871         Test groups are now run two directories deeper.
14873         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
14874         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
14875         at_top_builddir.
14876         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
14877         top_srcdir, builddir and top_builddir.
14878         Use `at_*dir' relatively to the directory containing the
14879         suite, use `*dir' when relatively to the current group dir.
14881 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
14883         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
14884         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
14885         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
14886         spelling errors.
14888 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
14890         * doc/autoconf.texi (Using System Type): Add an example of `case
14891         $host' usage so people quit using `case $target' everywhere.
14893 2001-11-22  Akim Demaille  <akim@epita.fr>
14895         * doc/autoconf.texi (Installation Directory Variables): Englishoes
14896         spotted by Jim Meyering.
14898 2001-11-16  Paul Eggert  <eggert@twinsun.com>
14900         This patch implements a `long double' suggestion by Oliver Kiddle.
14902         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
14903         static, to catch errors if the value isn't known at compile-time
14904         and the compiler supports dynamic arrays.  Change its name from
14905         `_array_' to `test_array' to avoid potential name clashes.
14906         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
14907         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
14908         better than double.  Catch a bug in GCC 2.95.2 x86.
14909         * doc/autoconf.texi (C Compiler): Document the above.
14910         * NEWS: Likewise.
14912 2001-11-13  Akim Demaille  <akim@epita.fr>
14914         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
14915         hand.
14916         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
14918 2001-11-13  Akim Demaille  <akim@epita.fr>
14920         * lib/autotest/general.m4 (AT_INIT): After having run the test
14921         group, go back to the initial directory, not to at_suite_dir.
14923 2001-11-13  Akim Demaille  <akim@epita.fr>
14925         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
14926         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
14927         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
14928         option.
14929         (AT_CHECK_CONFIGURE): Use absolute paths.
14930         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
14931         The problem is still the old one: there is no means in M4 (that I
14932         know about) to create a defining macro, because there is no means
14933         to create `$1' etc., therefore, the defining macro ``swallows''
14934         all the arguments meant to the defined macro.
14936 2001-11-13  Akim Demaille  <akim@epita.fr>
14938         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
14939         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
14940         configure.ac.
14941         * tests/aclocal.m4: Remove, as it is no longer used.
14943 2001-11-13  Akim Demaille  <akim@epita.fr>
14945         * lib/autotest/general.m4: Change `tests?' into `groups?' in
14946         variable names when referring to a single test group, or to
14947         `suite' when referring to the whole test suite.
14948         `at_last_test' is removed: m4 compute at_format itself.
14949         (at_stdout, at_stder1, at_stderr): New variables.
14950         (AT_CHECK): Use them.
14952 2001-11-13  Akim Demaille  <akim@epita.fr>
14954         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
14955         in PATH.
14956         Create `testsuite.dir/003/run' instead of `testsuite.003'.
14957         Do it as soon as a test fails, don't wait till the end of the test
14958         suite.
14959         Don't remove $as_me.[0-9]*, since these files no longer exist.
14961 2001-11-13  Akim Demaille  <akim@epita.fr>
14963         * tests/tools.at: Use absolute paths, since we are no longer run
14964         in place.
14966 2001-11-13  Akim Demaille  <akim@epita.fr>
14968         Now that tests are running in their own private dir, there is no
14969         need to list the files to remove at the end of tests groups.
14971         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
14972         (AT_data_files, at_data_files): Remove.
14973         (AT_CLEANUP, AT_DATA): Simplify.
14974         (AT_INIT): Adjust.
14975         Remove the group dir if !debug && !failed.
14976         * tests/atspecific.m4: Adjust.
14978 2001-11-13  Akim Demaille  <akim@epita.fr>
14980         Start a new layout for Autotest: `testsuite' creates
14981         `testsuite.dir' in which the at-check-line etc. files are to be
14982         found, and `testsuite.dir/003' where the test group 3 is run.
14984         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
14985         at_check_line_file, at_format, at_test_normalized, at_group_dir
14986         are new variables.
14987         Create the directories.
14988         Use absolute paths for at- files.
14989         (AT_CHECK): Adjust.
14991 2001-11-11  Michael Matz  <matz@kde.org>
14993         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
14994         (m4_car2): New.
14995         (m4_car): Properly quote arguments.
14997 2001-11-13  Akim Demaille  <akim@epita.fr>
14999         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
15000         with stricter rules on LIBOBJS.
15002 2001-11-12  Paul Eggert  <eggert@twinsun.com>
15004         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
15005         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
15006         __PROTOTYPES too.
15008 2001-11-12  Akim Demaille  <akim@epita.fr>
15010         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
15012 2001-11-12  Akim Demaille  <akim@epita.fr>
15014         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15015         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
15016         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
15017         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
15018         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
15019         specify to what the macro should be defined (typically to 1).
15021 2001-11-12  Akim Demaille  <akim@epita.fr>
15023         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
15024         From Jim Meyering.
15026 2001-11-12  Akim Demaille  <akim@epita.fr>
15028         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15029         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
15030         definition used by Automake where LEX is +/- "${missing} lex" and
15031         `missing' itself contains variables.
15033 2001-11-12  Akim Demaille  <akim@epita.fr>
15035         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
15036         Now that M4sh pushes BODY, the comments were output at the end of
15037         the test suites.
15039 2001-11-08  Akim Demaille  <akim@epita.fr>
15041         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
15042         that we can trace macros from aclocal.m4.
15043         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
15044         obsoleted, and redirect to the former anyway.
15045         Reported by Ralf Corsepius.
15047 2001-11-08  Akim Demaille  <akim@epita.fr>
15049         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
15050         processed only if present.
15051         * tests/torture.at (Configuring subdirectories): Use autoreconf
15052         instead of successive calls to autoconf.
15053         Add a nonexistent subdirectory to exercise the patch above.
15054         Reported by Ralf Corsepius.
15056 2001-11-08  Kevin Ryde  <user42@zip.com.au>
15058         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
15059         doesn't accept .S files.
15061 2001-11-07  Akim Demaille  <akim@epita.fr>
15063         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
15064         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
15065         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
15066         * bin/autom4te.in (warn_forbidden): New.
15067         (handle_output): Use it.
15068         Read m4_pattern_forbid with messages.
15070 2001-11-05  Akim Demaille  <akim@epita.fr>
15072         * bin/autom4te.in (--normalize): Remove.
15073         * lib/autom4te.in: Adjust.
15075 2001-11-05  Akim Demaille  <akim@epita.fr>
15077         * tests/Makefile.am (testsuite): Rename this target as...
15078         ($(TESTSUITE)): this.
15079         From Nicolas Joly.
15081 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
15083         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
15084         the --prefix option, also remove it's argument.
15086 2001-11-05  Akim Demaille  <akim@epita.fr>
15088         * doc/autoconf.texi (testsuite Invocation): Update.
15089         (Writing testsuite.at): Update.
15091 2001-11-03  Akim Demaille  <akim@epita.fr>
15093         * doc/autoconf.texi: s/@code/@command/ where appropriate.
15095 2001-11-03  Akim Demaille  <akim@epita.fr>
15097         * lib/Autom4te/General.pm: (&catfile, &canonfile)
15098         (&file_name_is_absolute): New, wrappers around routines from
15099         File::Spec.
15100         Use and export them.
15101         (&find_configure_ac): Optionally take a directory where to look at.
15102         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
15103         the arguments.
15104         Default @ARGV to `.', not find_configure_ac.
15105         (&autoreconf): Argument is a directory.
15106         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
15107         * doc/autoconf.texi (autoreconf Invocation): Update.
15109 2001-11-03  Akim Demaille  <akim@epita.fr>
15111         * lib/Autom4te/General.pm (@export_vars, @export_subs)
15112         (@export_forward_subs): New.
15113         Add basename, dirname, and fileparse.
15114         (@EXPORT): Adjust.
15115         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
15116         Don't look for aclocal flags if we already know aclocal is not
15117         used.
15118         Move aclocal.m4t only if it exists.
15119         Reported by Ezra Peisach.
15121 2001-11-03  Akim Demaille  <akim@epita.fr>
15123         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
15124         passed on command line, defaulting to ./configure.ac if present.
15125         (&maybe_autoreconf, File::Find): Remove, unused.
15126         (&autoreconf): If autoconf is not used, don't try to trace.
15128 2001-11-02  Akim Demaille  <akim@epita.fr>
15130         * configure.ac: Bump to 2.52g.
15132 2001-11-02  Akim Demaille  <akim@epita.fr>
15134         Version 2.52f.
15136 2001-11-02  Akim Demaille  <akim@epita.fr>
15138         * config/config.guess, config/config.sub, doc/standards.texi:
15139         * config/lispdir.m4: Update from masters.
15140         * configure.ac: Bump to 2.52f.
15142 2001-11-02  Akim Demaille  <akim@epita.fr>
15144         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
15145         Don't run aclocal when aclocal.m4 is not from aclocal.
15146         From Ezra Peisach.
15147         Don't run libtoolize and gettextize if --install is not given.
15149 2001-11-01  Paul Eggert  <eggert@twinsun.com>
15151         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
15152         be invoked before _AS_LINENO_PREPARE.
15153         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
15154         than character ranges.
15156         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
15157         invoking AS_BASENAME.  Set the locale variables to 'C' if
15158         possible, as POSIX requires this to get the traditional
15159         behavior.
15160         * doc/autoconf.texi (Special Shell Variables): Describe the above.
15162 2001-10-31  Paul Eggert  <eggert@twinsun.com>
15164         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
15165         with {}, as that triggers a bug in Bash 2.05.
15167         (_AS_LINENO_PREPARE): Use Sed rather than
15168         Awk.  Fix the sed prepass to work even if there are multiple
15169         instances of $LINENO on the same line.  Do not substitute for
15170         other variables like $LINENOT.  Do not check file dates; such a
15171         check is unreliable on sufficiently fast machines, and removing
15172         the check makes the code simpler and more reliable.  Check for
15173         output and chmod failures.
15175         * doc/autoconf.texi (Special Shell Variables): Document
15176         the above.
15178 2001-10-31  Akim Demaille  <akim@epita.fr>
15180         * tests/Makefile.am (atconfig): Remove this target, Automake
15181         handles it now.
15183 2001-10-31  Akim Demaille  <akim@epita.fr>
15185         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
15186         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
15187         provided, while it is optional.
15188         * configure.ac: Adjust.
15190 2001-10-26  Paul Eggert  <eggert@twinsun.com>
15192         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
15193           lib/Autom4te/Struct.pm:
15194         Require Perl 5.005_03 instead of just 5.005, as some tests fail
15195         with 5.005_02.
15197         * doc/autoconf.texi (Special Shell Variables): Document some
15198         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
15200         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
15201         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
15202         eval $LINENO is not portable in practice.
15204 2001-10-24  Akim Demaille  <akim@epita.fr>
15206         * lib/Autom4te/General.pm (backname): New.
15208 2001-10-24  Akim Demaille  <akim@epita.fr>
15210         * m4/: Remove, merged into...
15211         * config/: here.
15213 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
15215         * doc/autoconf.texi (Shellology): Mention the problems with bash
15216         2.05's use of ANSI quoting in its `set' builtin.
15218 2001-10-22  Paul Eggert  <eggert@twinsun.com>
15220         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
15221         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
15222         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
15223         POSIX decided to standardize on the int flavor of strerror_r.
15224         Always do char* test, as there's no reason not to.
15225         Assign to a char* var, to catch strerror_r that returns int*.
15227         * doc/autoconf.texi (Particular Functions):
15228         Document the above changes.  Also, document the fact that
15229         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
15231         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
15233 2001-10-20  Akim Demaille  <akim@epita.fr>
15235         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
15236         the executable was missing from the log.
15238 2001-10-20  Akim Demaille  <akim@epita.fr>
15240         * lib/Autom4te/General.pm (&update_file): If destination is
15241         unchanged, remove the source.
15242         (&up_to_date_p): Don't be verbose, be debug.
15243         * bin/autoreconf.in: No longer support --m4dir.
15244         (&autoreconf): Display the full path of the configure.ac we are
15245         studying.
15246         Trace it only once.
15247         Be sure to honor --force with gettextize.
15248         Always run aclocal.
15249         * doc/autoconf.texi: Adjust.
15251 2001-10-20  Akim Demaille  <akim@epita.fr>
15253         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
15254         Remove, dead.
15255         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
15256         `intl' is already present, as it refuses unless --force.
15257         (&parse_args): Use -I, --include instead of the old Autoconf
15258         options.
15259         ($localdir, $autoconf_dir): Remove.
15260         (@include): New.
15261         (&maybe_autoreconf): New, to preserve $_ for File::Find.
15263 2001-10-19  Jens Petersen  <petersen@redhat.com>
15265         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
15266         * doc/autoconf.texi (Particular Programs): Likewise.
15268 2001-10-19  Akim Demaille  <akim@epita.fr>
15270         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
15271         file in @configure_input@.
15272         Don't mention `automatically' in addition to `generated'.
15273         * tests/torture.at (#define header templates): Adjust.
15275 2001-10-19  Akim Demaille  <akim@epita.fr>
15277         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
15278         comment, explain how to install automatic mode selection.
15279         From Russ Allbery.
15281 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
15283         * bin/autoreconf.in (autoreconf): Display the path to the
15284         configure.ac being studied.
15286 2001-10-18  Paul Eggert  <eggert@twinsun.com>
15288         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
15289         long, to work around a bug in the HP C compiler version HP92453-01
15290         B.11.11.23709.GP.
15292         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
15293         (AS_BASENAME_EXPR): New macro.
15294         (AS_BASENAME_SED): Do not assume GNU sed semantics.
15295         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
15296         and fall back on 'sed' only if the other two fail.  This makes
15297         AS_BASENAME act more like AS_DIRNAME.
15298         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
15299         contains white space.
15300         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
15301         Use AS_DIRNAME, since I think it's now DOS-friendly.
15302         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
15303         Allow "dirname //FOO" to return either / or //, as POSIX allows
15304         either behavior.
15306 2001-10-10  Akim Demaille  <akim@epita.fr>
15308         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
15309         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
15310         From Eric Sharkey.
15312 2001-10-10  Akim Demaille  <akim@epita.fr>
15314         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
15315         m4_define, since...
15316         (_AS_ECHO_N): AS_REQUIREs it.
15318 2001-10-10  Akim Demaille  <akim@epita.fr>
15320         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
15321         (AC_INCLUDES_DEFAULT): Move to...
15322         * lib/autoconf/headers.m4: here.
15323         * lib/autoconf/types.m4: Comment changes.
15324         * doc/autoconf.texi: Specify where the default includes are used
15325         in the macro prototypes.
15327 2001-10-09  Akim Demaille  <akim@epita.fr>
15329         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
15330         transition code.
15332 2001-10-08  Akim Demaille  <akim@epita.fr>
15334         * bin/autoreconf.in (&autoreconf): Remove debugging code.
15335         (&parse_args): Pass verbosity/debugging options to subtools when
15336         --debug, not when --verbose.
15337         * lib/autom4te.in (Autoreconf-preselections): New.
15338         (Autoconf): Use it.
15340 2001-10-08  Akim Demaille  <akim@epita.fr>
15342         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
15344 2001-10-08  Akim Demaille  <akim@epita.fr>
15346         * doc/autoconf.texi (autoreconf Invocation): Adjust.
15347         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
15349 2001-10-08  Akim Demaille  <akim@epita.fr>
15351         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
15352         (Syntax of the shell scripts): Don't.
15353         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
15354         bother with $force since...
15355         * lib/Autom4te/General.pm: does.
15357 2001-10-08  Akim Demaille  <akim@epita.fr>
15359         * bin/autoreconf.in: Rewrite in Perl.
15360         * configure.ac: Adjust.
15361         * lib/Autom4te/General.pm (&up_to_date_p): New.
15362         * bin/autom4te.in (&up_to_date_p): Use it.
15363         Rename as...
15364         (&up_to_date): this.
15366 2001-10-08  Akim Demaille  <akim@epita.fr>
15368         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
15369         (m4_list_cmp): Use $0 to reinvoke yourself.
15370         (m4_patsubsts): New.
15371         (m4_strip, m4_version_unletter): Use it.
15372         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
15374 2001-10-08  Akim Demaille  <akim@epita.fr>
15376         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
15377         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
15378         * lib/autoconf/types.m4, lib/autotest/general.m4,
15379         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
15380         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
15381         m4_bregexp, m4_bpatsubst, and m4_bmatch.
15382         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
15384 2001-10-08  Akim Demaille  <akim@epita.fr>
15386         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
15388 2001-10-08  Akim Demaille  <akim@epita.fr>
15390         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
15391         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
15392         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
15393         * tests/tools.at, tests/m4sh.at: Use it.
15394         * tests/m4sh.at: Don't rely on Autoconf macros.
15395         (DIRNAME_TEST): Also exercise the expr variant.
15396         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
15397         preferred M4sugar extension is now `.4s'.
15398         * tests/README: Remove.
15400 2001-10-08  Akim Demaille  <akim@epita.fr>
15402         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
15403         (m4_provide_if): this.
15404         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
15405         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
15406         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
15407         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
15409 2001-10-08  Akim Demaille  <akim@epita.fr>
15411         Use `add-log-current-defun-function' for ChangeLog creation.
15412         Suggested by Tom Tromey.
15414         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
15415         (autotest-mode): Adjust.
15416         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
15417         'comment-region onto `C-c ;'.
15418         Comments are `#', not `dnl'.
15419         (autoconf-current-defun): New.
15420         (autoconf-font-lock-keywords): Recognize `m4_defun'.
15422 2001-10-08  Akim Demaille  <akim@epita.fr>
15424         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
15425         * lib/m4sugar/m4sh.m4: here.
15426         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
15427         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
15428         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
15429         include handle the m4_pattern_*, no longer push the
15430         BODY diversion nor set the /bin/sh line, AS_INIT does it.
15431         * lib/autotest/general.m4 (AT_INIT): Likewise.
15432         * tests/base.at: Adjust the tests to use AS_INIT.
15433         * tests/tools.at (AT_DATA_FORBIDDEN): New.
15434         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
15435         Autoconf.
15437 2001-10-07  Paul Eggert  <eggert@twinsun.com>
15439         * doc/autoconf.texi (config.status Invocation):
15440         CONFIG_SHELL defaults to a shell that supports LINENO if available.
15442         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
15443         shell does not support LINENO, and if CONFIG_SHELL is unset or
15444         empty, and if we can find a shell that does support LINENO,
15445         then set CONFIG_SHELL to that shell and then re-execute
15446         ourselves with CONFIG_SHELL.
15448 2001-10-05  Paul Eggert  <eggert@twinsun.com>
15450         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
15451         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
15452         build of $(TESTSUITE).
15454 2001-10-05  Akim Demaille  <akim@epita.fr>
15456         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
15457         iff we are a bareword.
15458         Reported by Raja R Harinath.
15460 2001-10-05  Akim Demaille  <akim@epita.fr>
15462         * tests/m4sh.at (LINENO): New.
15463         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
15464         PATH_SEPARATOR before using it.
15465         Fix the absolute path case/esac pattern.
15466         Provide $0 as fallback for as_myself.
15467         Reported by Raja R Harinath.
15469 2001-10-05  Akim Demaille  <akim@epita.fr>
15471         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
15472         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
15474 2001-10-05  Akim Demaille  <akim@epita.fr>
15476         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
15477         (AS_SHELL_SANITIZE): here.  Use it.
15478         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
15479         From Paul Eggert.
15481 2001-10-04  Akim Demaille  <akim@epita.fr>
15483         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
15484         combination of Awk and sed to replace $LINENO.
15486 2001-10-02  Paul Eggert  <eggert@twinsun.com>
15488         * doc/autoconf.texi (Limitations of Builtins): You can't use
15489         "source"; it's not portable.  Remove confusing and
15490         somewhat-incorrect example involving "." and "/".
15492         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
15493         compatibility with POSIX shells.
15495 2001-10-02  Akim Demaille  <akim@epita.fr>
15497         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
15498         instead of exec'ing to preserve $0 and $@.
15500 2001-10-01  Akim Demaille  <akim@epita.fr>
15502         * tests/testsuite (AT_INIT) <at_pass_list>: New.
15503         Don't run twice the same test.
15505 2001-10-01  Akim Demaille  <akim@epita.fr>
15507         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
15508         No longer output the list of tests.
15509         <--list>: New option.
15510         <--full-help>: Remove.
15511         Complete the short/long options duality.
15512         Various small adjustments.
15514 2001-10-01  Akim Demaille  <akim@epita.fr>
15516         * doc/autoconf.texi: Use @kbd for user input.
15517         Always use `$' as shell prompt.
15519 2001-09-30  Paul Eggert  <eggert@twinsun.com>
15521         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
15522         Don't use nested parenthesization.  This patch was originally
15523         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
15524         but somehow it didn't get incorporated then.
15525         * doc/autoconf.texi (Limitations of Usual Tools):
15526         Clarify remark about sed and nested parenthesization.
15528         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
15529         Report an error if the size cannot be determined even though
15530         the type exists.
15531         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
15532         Check for `expr' arithmetic overflow, and for compilation failure,
15533         and invoke a new argument $4 if either is discovered.
15534         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
15535         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
15537 2001-09-28  Akim Demaille  <akim@epita.fr>
15539         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
15540         * m4/lispdir.m4: New.
15541         * aclocal.m4, configure.ac: Adjust.
15543 2001-09-28  Akim Demaille  <akim@epita.fr>
15545         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
15546         (AT_TESTED): this.
15547         (AT_INIT): More the wrapped section to where it will be expanded.
15548         Output `AT_tested' only when existing.
15549         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
15551 2001-09-27  Akim Demaille  <akim@epita.fr>
15553         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
15554         generates too many bug reports.
15556         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
15557         status when executing the ACTION-IF-FALSE.
15558         * tests/base.at (AC_TRY_*): Rename as...
15559         (AC_TRY_COMMAND): this.
15560         (AC_RUN_IFELSE): New.
15561         * tests/compile.at (Extensions, C keywords)
15562         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
15563         (Broken/missing compilers, AC_PROG_CPP with warnings)
15564         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
15565         * tests/c.at (Extensions, C keywords)
15566         (Broken/missing compilers, AC_PROG_CPP with warnings)
15567         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
15568         (AC_PROG_CPP requires AC_PROG_CC): here and...
15569         * tests/fortran.at (GNU Fortran 77): there.
15570         * doc/autoconf.texi (autoconf Invocation): Fix the example:
15571         AC_TRY_RUN is about compilation, not shell commands.
15572         (Test Programs): AC_TRY_RUN works as used to be advertised.
15574 2001-09-27  Akim Demaille  <akim@epita.fr>
15576         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
15577         Raja R Harinath:
15578         Be sure to detect when $LINENO always returns the same value.
15579         Look for the original script, basename($0) is certainly not
15580         enough.
15581         Pass the CLI arguments to `$as_me.lineno'.
15583 2001-09-25  Akim Demaille  <akim@epita.fr>
15585         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
15586         Be sure the close and reopen the LOG fd before and after using tee
15587         to extend the log.
15588         <at_tests_pattern>: Adjust to the new format of at_help_all.
15590 2001-09-23  Akim Demaille  <akim@epita.fr>
15592         * bin/autom4te.in (parse_args): There can be several invocations
15593         of --language now.
15595 2001-09-23  Akim Demaille  <akim@epita.fr>
15597         * doc/autoconf.texi (Top): Wrap in @ifnottex.
15599 2001-09-23  Akim Demaille  <akim@epita.fr>
15601         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
15602         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
15603         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
15604         builddir, buildpath, top_builddir, and top_buildpath.
15605         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
15606         the current directory.
15607         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
15608         variables *before* changing the current directory.
15609         Skip nonexistent dirs.
15610         * doc/autoconf.texi (Preset Output Variables): Document these
15611         variables.
15613         * lib/autotest/general.m4: Do not reset AT_victims.
15614         Don't compute at_srcdir nor at_top_srcdir.
15616         * tests/tools.at: Hence use top_srcdir.
15618         * tests/Makefile.am, tests/autoconf, tests/autoheader,
15619         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
15620         Remove.
15621         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
15622         * tests/wrapsh.in, tests/autoupdate.in: New.
15623         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
15624         * configure.ac: Build the position independent wrappers.
15626         * man/Makefile.am: Now that test wrappers are position
15627         independent, use them and drop dark envvar magic.
15629 2001-09-23  Akim Demaille  <akim@epita.fr>
15631         * doc/autoconf.texi (Common Shell Constructs): Rename as...
15632         (Programming in M4sh): this.
15633         Promote to @section.
15635 2001-09-23  Akim Demaille  <akim@epita.fr>
15637         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
15638         Pass $at_debug_args to the rerun test suite.
15639         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
15640         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
15641         From Paul Eggert.
15643 2001-09-23  Akim Demaille  <akim@epita.fr>
15645         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
15647 2001-09-23  Akim Demaille  <akim@epita.fr>
15649         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
15650         over-escaping.
15652 2001-09-23  Akim Demaille  <akim@epita.fr>
15654         * lib/Autom4te/General.pm (&debug): New.
15655         * bin/autom4te.in ($language): Move to...
15656         (parse_args): here.
15657         Handle --language in languages.
15658         * lib/autom4te.in (Automake-selections, Autoheader-selections)
15659         (Autoscan-selections): New.
15660         (Autoconf): Adjust.
15662 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
15664         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
15665         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
15666         to match current versions from CVS Automake.
15668 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
15670         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
15671         for $LINENO.
15673 2001-09-22  Akim Demaille  <akim@epita.fr>
15675         * lib/autoconf/autotest.m4: Create `package.m4'.
15676         * tests/Makefile.am (package.m4): Remove.
15678 2001-09-22  Akim Demaille  <akim@epita.fr>
15680         Rely on `$LINENO' when possible instead of `__oline__'.
15682         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
15683         `$LINENO' support replacement when not supported.
15684         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
15685         them explicitly to be sure they are not output before this section
15686         (via m4_require).  Cosmetic only.
15687         * lib/autoconf/c.m4, lib/autoconf/general.m4,
15688         * lib/autoconf/programs.m4: Replace all the occurrences of
15689         `__oline__' with `$LINENO'.
15690         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
15692 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
15694         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
15695         character (u: -> ue) in a code comment.
15696         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
15697         it works.
15699 2001-09-21  Akim Demaille  <akim@epita.fr>
15701         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
15702         Suggested by Jim Meyering.
15704 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15706         * lib/autoconf/programs.m4: Use extensions listed in
15707         $ac_executable_extensions when looking for programs.
15709 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15711         * lib/autoconf/general.m4: Fix a small Englisho.
15712         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
15713         setting up ac_dir_suffix and ac_top_builddir.
15714         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
15716 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15718         * doc/autoconf.texi (File System Conventions): Clarify the use of
15719         PATH_SEPARATOR.
15720         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
15721         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
15722         be used instead of ':'.
15723         * lib/autotest/general.m4: Replace occurrences of ':' in
15724         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
15726 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15728         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
15729         arguments.  Fixed a typo.
15731 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15733         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
15734         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
15736 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15738         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
15739         * bin/autoupdate.in: Ditto.
15740         * bin/autoheader.in: Reworded a few comments.
15741         * bin/autoconf.in: Reworded help text for a few options.
15742         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15743         * bin/autoscan.in, bin/autoupdate.in: Ditto.
15745 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
15747         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
15748         already have $file).  Set output files to binary mode (helps avoid
15749         CR issues on DOSish systems).
15751 2001-09-19  Akim Demaille  <akim@epita.fr>
15753         * lib/autotest/general.m4: Englishoes.
15754         From Tim Van Holder and Alexey Mahotkin.
15756 2001-09-18  Paul Eggert  <eggert@twinsun.com>
15758         * doc/autoconf.texi (Common Shell Constructs): New node,
15759         documenting AS_DIRNAME.
15760         (Limitations of Usual Tools): Refer to it when discussing dirname.
15761         Also, update discussion of POSIX standard to reflect latest draft.
15763         * lib/autoconf/c.m4:
15764         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
15766         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
15767         Do not pass a first argument with leading '-'
15768         to expr, by parenthesizing initial integers that might be negative.
15770         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
15771         now merely checks whether it is an error to pass an argument
15772         to getpgrp.
15774         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
15775         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
15776         whether it is a (compile-time) error to pass an argument to
15777         getpgrp.  This simpler test supports the revised documentation,
15778         and is all that AC_FUNC_GETPGRP's users really need.
15780 2001-09-18  Akim Demaille  <akim@epita.fr>
15782         * doc/autoconf.texi (Limitations of Make) <$<>: New.
15784 2001-09-18  Akim Demaille  <akim@epita.fr>
15786         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
15787         `{}'.
15788         * lib/autotest/general.m4 (AT_INIT): Adjust.
15790 2001-09-18  Paul Wagland  <paul@wagland.net>
15792         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
15793         correctly.
15794         Add test for AS_BASENAME.
15795         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
15796         added test. It now correctly handles /1/2/3/, returning '3' not ''.
15797         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
15798         * tests/base.at: Fixed the expected responses. The old ones were
15799         one line out...
15800         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
15801         the documentation claims it should (and how it behaved in 2.13).
15803 2001-09-18  Akim Demaille  <akim@epita.fr>
15805         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
15806         the AC_CONFIG_COMMANDS invocation.
15807         This also solves the name clash problems.
15808         Don't set the package's ID.
15809         * lib/m4sugar/Makefile.am (version.m4): Revamp.
15810         No longer to be shipped.
15811         (version.in): Remove.
15812         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
15813         * lib/autoconf/status.m4: Adjust.
15814         Use `m4_PACKAGE_STRING'.
15815         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
15816         the only optional argument is the name of the test suite.
15817         Expect `package.m4' to define the package signature.
15818         * lib/autom4te.in (Autotest): Add `package.m4?'.
15819         * tests/Makefile.am (package.m4): New.
15820         * tests/suite.at: ifnames is a victim.
15822 2001-09-18  Akim Demaille  <akim@epita.fr>
15824         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
15825         AC_LIBSOURCE, AC_CONFIG_FILES.
15826         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
15827         program version string doesn't match the package's.
15828         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
15829         after `(cached)'.
15831 2001-09-17  Paul Eggert  <eggert@twinsun.com>
15833         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
15834         Allow expression to return any value that can fit into unsigned long
15835         (not int, as before).  Check for output errors.
15837 2001-09-17  Bruno Haible  <haible@ilog.fr>
15839         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
15840         Always include <stdio.h> and <stdlib.h>. Evaluate
15841         the expression in an extra function before these includes. Call
15842         fprintf "%d" only after ensuring the argument is of type 'int'.
15843         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
15845 2001-09-17  Paul Eggert  <eggert@twinsun.com>
15847         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
15848         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
15849         fatal errors, and AC_CHECK_LIB causes it to include libraries even
15850         when they don't exist.
15852         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
15853         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
15854         need it.
15856         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
15857         version with the version used by fileutils 4.1, except use
15858         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
15859         we don't need it.
15861         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
15863 2001-09-13  Akim Demaille  <akim@epita.fr>
15865         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
15866         _first_.
15867         Reported by Gerrit P. Haase.
15869 2001-09-13  Akim Demaille  <akim@epita.fr>
15871         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
15872         m4_defn'ing is valid.
15874 2001-09-13  Akim Demaille  <akim@epita.fr>
15876         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
15877         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
15878         Use it.
15880 2001-09-13  Akim Demaille  <akim@epita.fr>
15882         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
15883         m4_match.
15884         (m4_re_escape): New.
15885         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
15886         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
15887         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
15888         Likewise.
15889         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
15890         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
15891         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
15892         AT_tests_all for consistency.
15893         Set at_victims.
15894         (AT_VICTIMS): Similar to AT_KEYWORDS.
15895         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
15897 2001-09-13  Akim Demaille  <akim@epita.fr>
15899         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
15901 2001-09-13  Akim Demaille  <akim@epita.fr>
15903         * lib/autotest/general.m4 (AT_INIT): Create and remove
15904         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
15905         test suites can cohabit.
15907 2001-09-13  Akim Demaille  <akim@epita.fr>
15909         * tests/mktests.sh: Don't output banners for empty test files.
15911 2001-09-13  Akim Demaille  <akim@epita.fr>
15913         Test suites can be run independently of configure.
15915         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
15916         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
15917         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
15918         ECHO_N etc.
15919         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
15920         and at_c.
15921         * lib/autotest/general.m4: Use ECHO_*.
15923 2001-09-13  Akim Demaille  <akim@epita.fr>
15925         * bin/ifnames.in: Rewrite in Perl.
15926         * configure.ac: Don't look for AWK.
15927         * tests/tools.at (AWK portability): Remove.
15928         (Syntax of the shell scripts): Don't check ifnames.
15929         (AT_CHECK_PERL_SYNTAX): New.
15930         (Syntax of the Perl scripts): Check ifnames.
15931         * tests/ifnames: New.
15933 2001-09-13  Akim Demaille  <akim@epita.fr>
15935         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
15936         test group titles.
15937         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
15938         Remove all the other keywords.
15940 2001-09-10  Akim Demaille  <akim@epita.fr>
15942         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
15943         SETUP: no longer used.
15944         Support -k, --keywords.
15945         <at_help>: Be `no', `short', or `long'.
15946         <at_help_all>: New variable.
15947         (AT_KEYWORDS): New.
15948         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
15949         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
15950         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
15951         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
15952         No longer fill the HELP diversion.
15953         (AT_CLEANUP): Use them.
15954         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
15955         (m4_list_append): Remove.
15957         Spread a few keywords in the Autoconf test suite.
15959 2001-09-10  Akim Demaille  <akim@epita.fr>
15961         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
15962         PATH_SEPARATOR, let M4sh compute it.
15963         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
15964         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
15965         Move to...
15966         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
15967         Simplify when the path is not a literal.
15968         (AS_UNAME): Use it to report PATH.
15969         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
15970         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
15971         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
15972         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
15973         normalize the path, and to look for victims.
15974         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
15975         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
15977 2001-09-07  Akim Demaille  <akim@epita.fr>
15979         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
15980         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
15981         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
15982         related variables into `at_package_*'.
15983         * lib/autotest/general.m4 (AT_VICTIMS): New.
15984         (AT_INIT): Adjust for stand-alone/embedded test suites.
15985         (AS_MESSAGE_LOG_FD): Define and use it.
15986         * tests/suite.at (AT_VICTIMS): Use it.
15987         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
15988         at_version.
15990 2001-09-07  Akim Demaille  <akim@epita.fr>
15992         Move toward possibly stand-alone test suites.
15994         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
15995         in addition, it introduces useless differences in logs.
15996         (AT_INIT): Let atconfig and atlocal be both optional.
15997         Adjust PATH computation.
15998         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
16000 2001-09-07  Akim Demaille  <akim@epita.fr>
16002         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
16003         m4sugar/version.m4.
16005 2001-09-05  Akim Demaille  <akim@epita.fr>
16007         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
16008         to avoid GCC warnings.
16009         From Uwe Seimet.
16011 2001-09-05  Akim Demaille  <akim@epita.fr>
16013         * bin/autom4te.in: --language is -l, not -s.
16015 2001-09-05  Akim Demaille  <akim@epita.fr>
16017         Be ready to handle filenames as stupid as `dnl.at', for if even
16018         the maintainer is dumb enough to do that...
16020         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
16021         excellence in M4 quotation: consider `__file__' is active.
16023         And BTW, when invoking m4, pass the --include in the right order:
16024         the wrong one.
16026         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
16027         4m.
16029 2001-09-05  Akim Demaille  <akim@epita.fr>
16031         * lib/Autom4te/XFile.pm: New lib file.
16032         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
16033         * bin/autoheader.in: Use it.
16035 2001-09-05  Akim Demaille  <akim@epita.fr>
16037         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
16038         defined.
16040 2001-09-05  Akim Demaille  <akim@epita.fr>
16042         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
16043         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
16045         * bin/autoscan.in: Use `getopt' and `find_files' etc.
16046         Add -I, --include support.
16047         * doc/autoconf.texi (autoscan Invocation): Adjust.
16049 2001-09-05  Akim Demaille  <akim@epita.fr>
16051         CVS GNU M4 doesn't like `undefine(undefined)'.
16053         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
16054         New, extracted from main.
16055         Use IO::File wherever possible.
16056         (input.m4): Be constant, use -I instead of hard coding $tmp.
16057         Therefore be a quoted heredoc.
16058         Don't invoke `_au_disable', since ac was not loaded, but just
16059         `unm4.m4'.
16061 2001-08-31  Akim Demaille  <akim@epita.fr>
16063         Version 2.52d.
16065 2001-08-31  Akim Demaille  <akim@epita.fr>
16067         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
16068         previous patch.
16069         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
16071 2001-08-31  Akim Demaille  <akim@epita.fr>
16073         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
16074         serious problems handling heredocs in heredocs.
16075         Reported by Nicolas Joly.
16077 2001-08-31  Akim Demaille  <akim@epita.fr>
16079         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
16080         (Making testsuite Scripts): Update.
16082 2001-08-31  Akim Demaille  <akim@epita.fr>
16084         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
16086 2001-08-31  Akim Demaille  <akim@epita.fr>
16088         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
16089         (testsuite Scripts): There is no such thing as `atconfig.in'.
16090         And actually one diagram is missing: test suite runtime.
16092 2001-08-31  Akim Demaille  <akim@epita.fr>
16094         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
16095         inverse order.
16097 2001-08-31  Akim Demaille  <akim@epita.fr>
16099         * bin/autoupdate.in (@include): `installcheck' revealed the path
16100         to m4sugar was lacking!
16102 2001-08-31  Akim Demaille  <akim@epita.fr>
16104         * man/Makefile.am (.x.1): We really have to pass
16105         autom4te_perllibdir.
16107 2001-08-31  Akim Demaille  <akim@epita.fr>
16109         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
16110         debug scripts, in particular passing explicitly listed tests to
16111         run is stupid.
16113 2001-08-31  Akim Demaille  <akim@epita.fr>
16115         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
16116         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
16117         Use directly autom4te, not autoconf.
16118         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
16120 2001-08-31  Akim Demaille  <akim@epita.fr>
16122         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
16123         * bin/autoheader.in (%symbol): Strip arguments of macros.
16125 2001-08-31  Akim Demaille  <akim@epita.fr>
16127         * doc/autoconf.texi: Catch up -I, --include changes.
16129 2001-08-31  Akim Demaille  <akim@epita.fr>
16131         * bin/autom4te.in (&parse_args): Die on unknown languages.
16132         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
16133         need for autoconf.
16134         Promote --include over --macrodir and other obsolete options.
16136 2001-08-31  Akim Demaille  <akim@epita.fr>
16138         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
16139         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
16140         * bin/autom4te.in ($autoconf): Pass --force.
16141         `print $out' doesn't print `$_' but `$out'.
16142         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
16143         (autoheader): Pass --force since the test suite goes too fast for
16144         the time stamps.
16145         Adjust to the new autoheader messages.
16147 2001-08-31  Akim Demaille  <akim@epita.fr>
16149         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
16150         Check the completeness of the #template.
16151         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
16152         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
16153         invocation.
16155 2001-08-31  Akim Demaille  <akim@epita.fr>
16157         * lib/Autom4te/General.pm (&find_file, &update_file): New.
16158         * bin/autoupdate.in, bin/autoheader.in: Adjust.
16159         Drop AC_MACRODIR dead for real.
16160         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
16161         `autoheader: `config.hin' is created'.
16162         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
16164 2001-08-31  Akim Demaille  <akim@epita.fr>
16166         * bin/autoheader.in: Rewrite in Perl.
16167         * tests/autoheader: Adjust.
16169 2001-08-31  Akim Demaille  <akim@epita.fr>
16171         * bin/autoconf.in (--include, -I): New option.
16172         Map --localdir, --autoconf-dir onto it.
16173         Forward autom4te's options instead of interpreting them.
16174         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
16175         There is no such envvar since the inception of autom4te.cfg.
16176         * bin/autom4te.in (&parse_args): Uniquify `@include'.
16177         * bin/autoupdate.in: Adjust, and perform more control.
16178         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
16179         * tests/autoconf: Dittowise.
16181 2001-08-31  Akim Demaille  <akim@epita.fr>
16183         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
16184         * bin/autom4te.in (&find_file): Support `FILE?' standing for
16185         optionally `FILE'.
16186         Use -e, not -f, since /dev/null for instance is OK.
16187         (&parse_args): Adjust.
16188         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
16190 2001-08-31  Akim Demaille  <akim@epita.fr>
16192         * configure.ac: Also find tested executables in bin.
16193         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
16194         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
16195         installed peer executables, only PATH is allowed to resolve it.
16196         Pass `autoconf_dir' via options, not via invisible envvars.
16197         * lib/Autom4te/General.pm (&find_peer): Remove.
16198         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
16199         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
16200         * man/Makefile.am: Let help2man rely on PATH instead of trying to
16201         find the executables for it.
16202         * tests/Makefile.am: Major cleanup.  Too lazy to document...
16203         * tests/atlocal.in: Remove all the obscure envvar manipulations.
16204         We only need PERL.
16205         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
16206         indeed related to running the test suite, while passing
16207         --autoconf-dir and others is related to running non installed
16208         Autoconf executables.  So don't do that, leave it to...
16209         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
16210         * tests/autoscan: New.
16211         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
16212         refer to library files: rely on --language.
16214 2001-08-29  Akim Demaille  <akim@epita.fr>
16216         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
16217         s/--set/--language/.
16219 2001-08-29  Akim Demaille  <akim@epita.fr>
16221         * doc/autoconf.texi: Strip the @nodes.
16222         Suggested by Paul Eggert.
16223         (Initializing configure): Typo.
16225 2001-08-29  Akim Demaille  <akim@epita.fr>
16227         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
16228         Suggested by Paul Eggert.
16230 2001-08-29  Akim Demaille  <akim@epita.fr>
16232         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
16233         download in a tmp dir.
16235 2001-08-29  Akim Demaille  <akim@epita.fr>
16237         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
16238         case insensitive OSes out there :(
16239         From Tim Van Holder.
16241 2001-08-29  Akim Demaille  <akim@epita.fr>
16243         * lib/autom4te.in: New.
16244         * lib/Makefile.am (edit, autom4te.cfg): New.
16245         * bin/autom4te.in (BEGIN): Simplify.
16246         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
16247         (&load_configuration): New.  Use it.
16248         (&parse_args): Support --mode, --set, and --melt.
16249         * bin/autoconf.in: Simplify and adjust.
16250         * tests/Makefile.am (AUTOMAKE): Use --set.
16251         * tests/atlocal.in: Adjust.
16252         * BUGS: distcheck and check are weak.
16254 2001-08-29  Akim Demaille  <akim@epita.fr>
16256         * lib/autotest/general.m4: Use
16257                 foo=`(command) 2>/dev/null`
16258         not
16259                 foo=`command` 2>/dev/null
16260         (at-devnull): Rename as...
16261         (AT-devnull): this.
16262         (--clean): Remove AT-* files too.
16263         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
16264         Reported by Nicolas Joly.
16266 2001-08-28  Akim Demaille  <akim@epita.fr>
16268         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
16269         quotes inside single quotes.
16270         Reported by Nicolas Joly.
16272 2001-08-28  Kevin Ryde  <user42@zip.com.au>
16274         * doc/autoconf.texi (Function Portability): Mention C right shifts.
16276 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
16278         * lib/autotest/general.m4: Reword some messages.
16279         (AT_INIT): Check for the `times' builtin before using it.
16280         Support test ranges as arguments to the testsuite.
16281         Have -e imply -d as the help text suggested.
16283 2001-08-27  Akim Demaille  <akim@epita.fr>
16285         * Makefile.maint: Formatting changes.
16286         (do-po-update, po-update, cvs-update, update): New targets.
16287         (AMTAR): Remove.
16289 2001-08-27  Akim Demaille  <akim@epita.fr>
16291         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
16292         <at_cmd_line>: New.
16293         Pass it to debug-*.sh scripts.
16294         <AUTOTEST_PATH>: May contain absolute dir names.
16296 2001-08-27  Akim Demaille  <akim@epita.fr>
16298         * lib/autotest/general.m4 (AT_INIT): Log the command line.
16299         Support `VAR=VAL' as arguments.
16300         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
16301         may be set via the command line.
16303 2001-08-27  Akim Demaille  <akim@epita.fr>
16305         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
16306         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
16307         first the build dirs, then the src dirs.
16308         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
16310 2001-08-27  Akim Demaille  <akim@epita.fr>
16312         * lib/autotest/general.m4 (AT_INIT): Output the definition of
16313         at_data_files earlier.
16314         (--clean, -c): New option.
16315         * tests/Makefile.am: Use this option.
16317 2001-08-27  Akim Demaille  <akim@epita.fr>
16319         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
16320         `ac_top_builddir' to mimic Automake's vocabulary, which much more
16321         readable.
16322         Adjust callers.
16323         * doc/autoconf.texi (Configuration Actions): Document the vars
16324         available in commands.
16325         Emphasize the risks of collisions in init-cmds.
16327 2001-08-27  Akim Demaille  <akim@epita.fr>
16329         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
16330         (Initializing configure): this new node.
16332 2001-08-27  Akim Demaille  <akim@epita.fr>
16334         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
16336 2001-08-27  Akim Demaille  <akim@epita.fr>
16338         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
16339         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
16340         New file.
16341         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
16343 2001-08-27  Akim Demaille  <akim@epita.fr>
16345         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
16346         to...
16347         * lib/autoconf/autoheader.m4: this new file.
16348         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
16349         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
16350         Move to...
16351         * lib/autoconf/autoupdate.m4: this new file.
16353 2001-08-27  Akim Demaille  <akim@epita.fr>
16355         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
16356         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
16357         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
16358         -> ac_dir).
16359         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
16360         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
16362 2001-08-27  Akim Demaille  <akim@epita.fr>
16364         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
16365         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
16366         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
16367         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
16368         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
16369         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
16370         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
16371         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
16372         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
16373         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
16374         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
16375         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
16376         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
16377         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
16378         (_AC_OUTPUT_SUBDIRS): Move to...
16379         * lib/autoconf/status.m4: this new file.
16380         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
16381         * tests/Makefile.am, tests/suite.at: Adjust.
16383 2001-08-27  Akim Demaille  <akim@epita.fr>
16385         Automake 1.5.
16387         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
16388         (AMTAR): Help automake define it.
16389         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
16390         needed, 1.5 can have a macro and a target with the same name.
16391         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
16392         * m4/strip.m4: New.
16393         * m4/init.m4, m4/sanity.m4: Update.
16394         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
16395         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
16396         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
16397         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
16399 2001-08-27  Akim Demaille  <akim@epita.fr>
16401         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
16403         * lib/autoconf/version.in: Remove.
16404         * lib/m4sugar/version.in: New.
16405         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
16406         Adjust callers.
16407         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
16408         the name of the directory they're in, instead of the filename,
16409         since version.m4 is now in m4sugar, but m4_acversion must not be
16410         classified as an Autoconf macro.
16411         ($input_m4): Don't qualify the path to m4sugar.
16412         Rather, pass autoconf_dir to m4.
16413         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
16414         * tests/suite.at: Require 2.52c.
16416 2001-08-27  Akim Demaille  <akim@epita.fr>
16418         testsuite.log should include config.log.
16420         * lib/autotest/autotest.m4: New.
16421         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
16422         * tests/suite.at : Adjust.
16423         (AT_INIT): Log config.log.
16424         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
16425         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
16426         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
16427         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
16428         of config.log on traps.
16429         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
16430         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
16431         for config.status'.
16432         Open the log as soon as possible.
16433         Use the same log introduction as configure's.
16435 2001-08-22  Paul Eggert  <eggert@twinsun.com>
16437         * doc/autoconf.texi (Indices): New node.
16438         Move indices out of the top level menu and into this submenu.
16440 2001-08-22  Akim Demaille  <akim@epita.fr>
16442         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
16443         AC_TRY_COMMAND.
16444         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
16446 2001-08-22  Akim Demaille  <akim@epita.fr>
16448         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
16449         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
16450         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
16451         * lib/autoconf/programs.m4: here.
16452         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
16453         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
16454         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
16455         * lib/autoconf/programs.m4: here.
16456         (_AC_DECL_YYTEXT): Rename as...
16457         (_AC_PROG_LEX_YYTEXT_DECL): this.
16458         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
16459         * tests/Makefile.am, tests/suite.am: Adjust.
16461 2001-08-22  Akim Demaille  <akim@epita.fr>
16463         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
16464         Move to...
16465         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
16466         here.
16467         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
16468         * lib/autoconf/functions.m4: here.
16469         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
16470         (AH_CHECK_LIB): Move to...
16471         * lib/autoconf/libs: this new file.
16472         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
16473         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
16474         * lib/autoconf/libs.m4: here.
16475         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
16477 2001-08-22  Akim Demaille  <akim@epita.fr>
16479         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
16480         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
16481         (AC_SITE_LOAD): Better logging of config.site.
16483 2001-08-20  Akim Demaille  <akim@epita.fr>
16485         * configure.ac (AT_CONFIG): Fix the path.
16486         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
16487         can be used.
16489 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
16491         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
16492         program with AC_LANG_PROGRAM before feeding it to
16493         AC_COMPILE_IFELSE.  Cleanup grep usage.
16495 2001-08-20  Akim Demaille  <akim@epita.fr>
16497         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
16498         * NEWS, README, README-alpha, TODO, tests/README: This package is
16499         `Autoconf', not `autoconf' (the executable).
16501 2001-08-20  Akim Demaille  <akim@epita.fr>
16503         Info readers seem to need `Index' in the index node title :(
16505         * doc/autoconf.texi: Reverse the 2001-08-15 change which
16506         simplified index node names.
16508 2001-08-20  Akim Demaille  <akim@epita.fr>
16510         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
16511         arguments are not literals.
16512         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
16513         Specify the output variables, and macros defined.
16515 2001-08-20  Akim Demaille  <akim@epita.fr>
16517         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
16518         (Examining Syntax) <AC_TRY_COMPILE>
16519         (Examining Libraries) <AC_TRY_LINK>
16520         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
16521         their arguments.
16522         Reported by Werner Lemberg.
16524 2001-08-20  Akim Demaille  <akim@epita.fr>
16526         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
16527         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
16528         Load atlocal late enough to dump it in the log.
16529         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
16531 2001-08-20  Akim Demaille  <akim@epita.fr>
16533         * tests/torture.at (Configuring subdirectories): New test.
16534         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
16535         looking for.
16536         * m4/atconfig.m4: Be sure the let $[0] be expandable.
16537         (top_srcdir): Fix its computation.
16539 2001-08-20  Akim Demaille  <akim@epita.fr>
16541         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
16542         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
16543         test suite lives.
16544         Create `atconfig' automagically.
16545         Configure atlocal.in if present.
16546         * tests/atconfig.in: Remove.
16547         * tests/atlocal.in: New.
16548         * tests/Makefile.am: Adjust.
16550 2001-08-20  Akim Demaille  <akim@epita.fr>
16552         Huh!?!?!  There are still some user EOF tags used, which prevents
16553         their use in AC_CONFIG_COMMANDS for instance...
16555         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
16556         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
16557         `_CSEOF', or `_ATEOF', as appropriate.
16558         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
16559         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
16561 2001-08-20  Akim Demaille  <akim@epita.fr>
16563         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
16564         * tests/semantics.at, tests/tools.at, tests/torture.at:
16565         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
16567 2001-08-20  Akim Demaille  <akim@epita.fr>
16569         Autotest invokes M4sh's initialization.
16571         * lib/autotest/general.m4: Adjust the diversion names.
16572         (AT_INIT): Run AS_INIT.
16573         Use the BINSH diversion to invoke /bin/sh.
16574         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
16575         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
16577 2001-08-20  Akim Demaille  <akim@epita.fr>
16579         Let M4sh have its own diversions.
16581         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
16582         (_m4_divert(NOTICE)): Rename as...
16583         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
16584         (_m4_divert(HEADER-COMMENT)): these.
16585         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
16586         (_m4_divert(NOTICE)): New, for Libtool.
16587         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
16588         long ago with `_m4_divert(GROW)'.
16589         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
16591 2001-08-20  Akim Demaille  <akim@epita.fr>
16593         * tests/base.at, tests/compile.at, tests/foreign.at,
16594         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
16595         * tests/semantics.at, tests/suite.at, tests/tools.at,
16596         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
16598 2001-08-20  Akim Demaille  <akim@epita.fr>
16600         * bin/autom4te.in (handle_output): Handle @__@.
16602 2001-08-20  Akim Demaille  <akim@epita.fr>
16604         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
16605         * lib/autotest/general.m4: Adjust the license.
16607 2001-08-17  Paul Eggert  <eggert@twinsun.com>
16609         * doc/autoconf.texi (Function Portability): Mention snprintf,
16610         following up on a suggestion by Kevin Ryde.
16612 2001-08-17  Akim Demaille  <akim@epita.fr>
16614         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
16615         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
16617 2001-08-17  Akim Demaille  <akim@epita.fr>
16619         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
16620         `$0.log' as for projects where testsuite is in src, we'd have
16621         testsuite.log created in src.
16623 2001-08-17  Akim Demaille  <akim@epita.fr>
16625         * bin/autom4te.in (&parse_args): Recognize --normalize.
16627 2001-08-17  Akim Demaille  <akim@epita.fr>
16629         Start implementing the AC_CHECK_HEADER transition scheme.
16631         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
16632         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
16633         (AC_CHECK_HEADER): Use them.
16635 2001-08-17  Akim Demaille  <akim@epita.fr>
16637         * doc/autoconf.texi: Work around Texinfo buglets.
16638         (Transformation Rules): One example is enough, users are expected
16639         to have their brains on. And BTW, use DESTDIR.
16640         (dvar): New macro.  Use it.
16642 2001-08-17  Akim Demaille  <akim@epita.fr>
16644         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
16645         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
16646         looking for ChangeLogs.
16648 2001-08-17  Akim Demaille  <akim@epita.fr>
16650         * bin/autom4te.in: --normalize is a new option.
16651         * bin/autoconf.in: Use it.
16653 2001-08-17  Akim Demaille  <akim@epita.fr>
16655         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
16656         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
16658 2001-08-16  Paul Eggert  <eggert@twinsun.com>
16660         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
16661         start, not at end.
16663 2001-08-15  Akim Demaille  <akim@epita.fr>
16665         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
16666         Use it.
16668 2001-08-15  Akim Demaille  <akim@epita.fr>
16670         * doc/autoconf.texi (pr): New index.
16671         (prindex, findex): Use, merge, and output them.
16672         (Environment Variable Index, Output Variable Index)
16673         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
16674         (Autotest Macro Index): Rename as...
16675         (Environment Variables, Output Variables,Preprocessor Symbols)
16676         (Autoconf Macros, M4 Macros, Autotest Macros): these.
16677         * doc/install.texi: Use @command.
16678         (Environment Variables): Rename as...
16679         (Defining Variables): this.
16681 2001-08-15  Akim Demaille  <akim@epita.fr>
16683         * doc/autoconf.texi (Function Portability): sprintf's return
16684         value.
16685         From Kevin Ryde.
16687 2001-08-15  Akim Demaille  <akim@epita.fr>
16689         * Makefile.maint (CVS): New.
16690         (local-check): Run changelog-check. last.
16691         (alpha): Don't depend upon local-check, since...
16692         (cvs-dist): depends upon it.
16694 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
16696         * tests/Makefile.am: Use a clean-local rule to remove
16697         autom4te.cache (it's a directory, not a file.
16698         * Makefile.am: Ditto (but maintainer-clean-local).
16700 2001-08-15  Akim Demaille  <akim@epita.fr>
16702         * bin/autom4te.in (@m4_warning): New.
16703         (&handle_m4): Use it.
16704         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
16705         warnings are issued at each run.
16706         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
16707         is in the src tree.
16709 2001-08-15  Akim Demaille  <akim@epita.fr>
16711         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
16712         don't waste time running `autoupdate --version' works.
16713         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
16715 2001-08-13  Akim Demaille  <akim@epita.fr>
16717         * doc/autoconf.texi (ma): Rename this index as...
16718         (ac): this.
16720 2001-08-13  Akim Demaille  <akim@epita.fr>
16722         * Makefile.am: Remove dead code and dead comments.
16723         (pdf, html): New targets.
16724         * doc/autoconf.texi (Using Autotest): New chapter.
16725         * doc/Makefile.am (pdf): New targets.
16726         (CLEANFILES): Adjust.
16728 2001-08-13  Akim Demaille  <akim@epita.fr>
16730         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
16731         duration of the test suite.
16733 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
16735         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
16736         endianness for comparison instead of relying on AT_CHECK_ENV.
16738 2001-08-11  Paul Eggert  <eggert@twinsun.com>
16740         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
16741         to the INSTALL file.
16743 2001-08-11  Paul Eggert  <eggert@twinsun.com>
16745         * NEWS: The autoconf manual now is distributed under the terms
16746         of the GNU Free Documentation License.
16748         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
16749         Add an appendix "Copying This Manual" for the FDL.
16751         * doc/fdl.texi: New file, from
16752         <http://www.gnu.org/licenses/fdl.texi>.
16754         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
16756 2001-08-10  Paul Eggert  <eggert@twinsun.com>
16758         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
16759         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
16760         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
16761         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
16762         m4/sanity.m4, tests/README, tests/aclocal.m4,
16763         tests/atspecific.m4, tests/base.at, tests/compile.at,
16764         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
16765         tests/semantics.at, tests/suite.at, tests/tools.at,
16766         tests/torture.at: Add copyright notice.
16768         * tests/mktests.sh: Update year in copyright notice.
16770 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
16772         * tests/semantics.at (AC_C_BIGENDIAN): New test.
16774 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
16776         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
16777         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
16778         * doc/autoconf.texi (C Compiler Characteristics): Update
16779         documentation for AC_C_BIGENDIAN.
16781 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
16783         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
16784         magic values from an object file when cross-compiling.
16785         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
16787 2001-08-10  Akim Demaille  <akim@epita.fr>
16789         * bin/autom4te.in (&handle_output): Don't use `grep' with side
16790         effects.
16791         Suggested by Russ Allbery.
16793 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
16795         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
16796         current $prefix to the sub-configures.
16798 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
16800         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
16801         extension (needed on BeOS).  Reported by Guido van Rossum.
16803 2001-08-09  Akim Demaille  <akim@epita.fr>
16805         * bin/autom4te.in ($icache): Load it only if older than autom4te.
16807 2001-08-07  Akim Demaille  <akim@epita.fr>
16809         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
16810         removed.
16811         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
16812         No need to remove the files before and after the each test, before
16813         each test and at the end of the suite is enough.
16814         Display only the children `times', not the shell's.
16815         If the test failed or was skipped, at-times is not available.
16817 2001-08-07  Akim Demaille  <akim@epita.fr>
16819         Always produce testsuite.log, including when there are no
16820         failures.  This helps getting information on skipped tests, and
16821         duration of the tests.  Err, implement the latter btw.
16823         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
16824         Dump information on the first run of each test.
16825         (AT_CLEANUP): Create `at-times' containing the duration of the
16826         test group.
16828 2001-08-07  Akim Demaille  <akim@epita.fr>
16830         The use of `dumpstat' revealed that `len' was used although it
16831         should not.  m4_text_wrap was using it, but in the Autoconf world
16832         where it is legal.  Hence (i) test M4sh in its own world, not
16833         Autoconf's, and (ii), ahem, fix the bug :)
16835         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
16836         does not like `' instead of [].
16837         (AT_INIT): Forbid `^_?AT_'.
16838         And don't output such tokens.
16839         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
16840         `script.as', and `autom4te.cache'.
16841         Remove `empty' and `macro' which are no longer used.
16842         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
16843         * tests/m4sugar.at: Use it.
16844         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
16846 2001-08-07  Akim Demaille  <akim@epita.fr>
16848         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
16850 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
16852         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
16854 2001-08-04  Akim Demaille  <akim@epita.fr>
16856         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
16857         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
16858         AC_TRY_LINK.
16859         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
16860         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
16861         (AC_F77_MAIN): Likewise.
16863 2001-08-04  Akim Demaille  <akim@epita.fr>
16865         Don't rely on M4sugar outputting the patterns in files, since we
16866         might process the output _without_ running m4, hence without these
16867         files.
16869         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
16870         * bin/autom4te.in (@Request::includes): Remove, unused.
16871         (@Request::source): Rename as...
16872         (@Request::input): this.
16873         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
16874         (&handle_output): Fetch the patterns from the traces.
16875         `$forbidden' and `$allowed' are constant: use m//o.
16876         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
16877         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
16879 2001-08-04  Akim Demaille  <akim@epita.fr>
16881         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
16882         autoconf', i.e., in addition to caching traces, cache the output.
16884         * bin/autom4te.in (Request::cache): Rename as...
16885         (Request::id): this.
16886         ($cache, $icache, $tcache, $ocache): New.
16887         (&handle_m4): Save M4 output in the cache instead of $tmp.
16888         (&handle_output): Adjust.
16889         (&up_to_date_p): Check that the output cache is up to date too.
16890         (top level): Run `&handle_m4' iff force or the cache is invalid.
16891         Run `&handle_output' if the output cache is more recent.
16893 2001-08-04  Akim Demaille  <akim@epita.fr>
16895         * bin/autom4te.in ($force): New.
16896         (&parse_args, &print_usage): -f, --force is a new option.
16897         (&handle_output): CPP directives might have spaces after `#'.
16898         (&parse_args): The first file only can be frozen.
16900 2001-08-04  Akim Demaille  <akim@epita.fr>
16902         Don't let autom4te compute the `include' traces several times:
16903         first check that the trace cache file is up to date, and then
16904         compare its timestamp with that of the output.
16906         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
16907         the preamble.  Don't require 5.005 as Autom4te::General does it,
16908         and better yet (use `use', not `require'!).
16909         * lib/Autom4te/Struct.pm: Rename the last occurrences of
16910         Class::Struct as Autom4te::Struct.
16911         * lib/Autom4te/General.pm (File::stat): Use it.
16912         (&mtime): New, export it.
16913         * bin/autom4te.in: Use it.
16914         Declare `$req' is invalid if it is outdated.
16915         Don't declare it valid before saving it if something went wrong.
16917 2001-08-04  Akim Demaille  <akim@epita.fr>
16919         Autom4te shall not encode Autoconf data, and preselecting traces
16920         must be proposed to the users.
16922         * bin/autom4te.in (@required_trace): Remove.
16923         (@preselect): New.
16924         (&parse_args, &print_usage): -p, --preselect is a new option.
16925         (&up_to_date_p): Adjust.
16926         * bin/autoconf.in: Preselect some Autoconf macros.
16928 2001-08-04  Akim Demaille  <akim@epita.fr>
16930         * tests/tools.at (autoconf --trace: user macros): Check traces on
16931         macros invoked without arguments, and macros invoked with multiple
16932         lines arguments.
16934 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
16936         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
16937         arguments.
16939 2001-08-03  Akim Demaille  <akim@epita.fr>
16941         * bin/autoconf.in ($@): Work around the usual sh bug.
16942         From Nicolas Joly.
16944 2001-08-03  Akim Demaille  <akim@epita.fr>
16946         Clean up the handling of the M4 builtins tracing exception.
16948         * bin/autom4te.in (Request::request): Don't complete M4 builtins
16949         trace requests.
16950         (@m4_builtins): Rename as...
16951         (@m4_builtin): this.
16952         (%m4_builtin_alternate_name): New.
16953         (&parse_args): Complete the trace requests with alternate names.
16954         (&handle_traces): Hence no longer do it here.
16955         (&trace_requests): Remove, unused.
16957 2001-08-03  Akim Demaille  <akim@epita.fr>
16959         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
16960         m4_if, and m4_wrap.
16962 2001-08-03  Akim Demaille  <akim@epita.fr>
16964         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
16965         (m4_divert_pop): Dump the whole diversion stack when a diversion
16966         mismatch happens.
16967         * bin/autom4te.in (&handle_output): Remember of the first
16968         occurrence of a possibly undefined macro, not the last.
16969         Complain about the possibly undefined macros in the same order as
16970         the appear in the output.
16971         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
16972         * tests/tools.at (autoconf: forbidden tokens, basic)
16973         (autoconf: forbidden tokens, exceptions): No longer sort
16974         autoconf's stderr, as it is now deterministic.
16975         Check that `dnl' is caught.
16977 2001-08-01  Akim Demaille  <akim@epita.fr>
16979         * configure.ac: Bump to 2.52c.
16981 2001-08-01  Akim Demaille  <akim@epita.fr>
16983         Version 2.52b.
16985         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
16987 2001-08-01  Akim Demaille  <akim@epita.fr>
16989         Version 2.52a.
16991 2001-08-01  Akim Demaille  <akim@epita.fr>
16993         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
16994         `die'.
16995         (&END): New.
16996         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
16997         `END', as `Autom4te::General::END' will be triggered.
16998         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
16999         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
17000         system to run `mv', `rm', and `cmp'.
17002 2001-08-01  Akim Demaille  <akim@epita.fr>
17004         * lib/Autom4te/General.pm (&unique): New.
17005         * bin/autoscan.in (&output): Use it to issue trace requests once.
17007 2001-08-01  Akim Demaille  <akim@epita.fr>
17009         * lib/Autom4te/General.pm: New.
17010         * bin/autom4te.in (Autom4te::General): Use it.
17011         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
17012         (&find_configure_ac, &find_slave): Remove.
17013         * bin/autoscan.in: Likewise.
17014         * bin/autoupdate.in: Likewise.
17016 2001-08-01  Akim Demaille  <akim@epita.fr>
17018         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
17019         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
17020         * bin: here, new directory.
17021         * lib/Autoconf: Rename as...
17022         * lib/Autom4te: this, to please case insensitive junkie OSes.
17024 2001-08-01  Akim Demaille  <akim@epita.fr>
17026         * autom4te.in ($m4): Handle the --nesting-limit.
17027         * autoconf.in (M4): Remove.
17029 2001-08-01  Akim Demaille  <akim@epita.fr>
17031         * autoconf.in ($AWK): Remove, no longer used.
17032         * test/tools.at: Use AT_CHECK_AUTOCONF.
17033         (AWK portability): Remove, for autoconf no longer uses AWK.
17034         (Syntax of the Perl scripts): New.
17035         * configure.ac: autoconf no longer needs an AWK with a good
17036         regexp engine.
17037         Use a static test on AC_PACKAGE_VERSION.
17038         * autom4te.in (&up_to_date_p): Output depends on the arguments.
17039         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
17040         * tests/atconfig.in (PERL): New.
17042 2001-08-01  Akim Demaille  <akim@epita.fr>
17044         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
17045         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
17046         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
17047         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
17048         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
17049         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
17050         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
17051         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
17052         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
17053         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
17054         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
17055         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
17056         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
17057         * lib/autoconf/c.m4: here, new file.
17059         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
17060         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
17061         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
17062         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
17063         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
17064         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
17065         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
17066         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
17067         (AC_F77_FUNC): Move to...
17068         * lib/autoconf/fortran.m4: here, new file.
17070 2001-08-01  Akim Demaille  <akim@epita.fr>
17072         * acfunctions.m4: Rename as...
17073         * lib/autoconf/functions.m4: this.
17074         * acgeneral.m4: Rename as...
17075         * lib/autoconf/general.m4: this.
17076         * acheaders.m4: Rename as...
17077         * lib/autoconf/headers.m4: this.
17078         * aclang.m4: Rename as...
17079         * lib/autoconf/lang.m4: this.
17080         * acoldnames.m4: Rename as...
17081         * lib/autoconf/oldnames.m4: this.
17082         * acspecific.m4: Rename as...
17083         * lib/autoconf/specific.m4: this.
17084         * actypes.m4: Rename as...
17085         * lib/autoconf/types.m4: this.
17086         * autoconf.m4: Rename as...
17087         * lib/autoconf/autoconf.m4: this.
17089         * m4sugar.m4: Rename as...
17090         * lib/m4sugar/m4sugar.m4: this.
17091         * m4sh.m4: Rename as...
17092         * lib/m4sugar/m4sh.m4: this.
17094         * tests/atgeneral.m4: Rename as...
17095         * lib/autotest/general.m4: this.
17097         * acfunctions: Rename as...
17098         * lib/autoscan/functions: this.
17099         * acheaders: Rename as...
17100         * lib/autoscan/headers: this.
17101         * acidentifiers: Rename as...
17102         * lib/autoscan/identifiers: this.
17103         * aclibraries: Rename as...
17104         * lib/autoscan/libraries: this.
17105         * acmakevars: Rename as...
17106         * lib/autoscan/makevars: this.
17107         * acprograms: Rename as...
17108         * lib/autoscan/programs: this.
17110 2001-08-01  Akim Demaille  <akim@epita.fr>
17112         * doc/autoconf.texi: Moving/deleting open files is not portable.
17113         Portability issues for `.' (source), and more information about sed.
17115 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
17117         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
17118         which has a special meaning and is not a reference to libibmil.a.
17119         Reported by Matteo Frigo.
17121 2001-07-25  Pavel Roskin  <proski@gnu.org>
17123         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
17124         output.
17126 2001-07-25  Akim Demaille  <akim@epita.fr>
17128         * autoconf.in: Try to define the variables before using them.
17129         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
17130         instead of `$perllibdir'.
17131         * tests/atconfig.in ($autom4te_perllibdir): Export it.
17133 2001-07-25  Akim Demaille  <akim@epita.fr>
17135         * autoconf.in (ac_LF_and_DOT): Remove, unused.
17137 2001-07-24  Akim Demaille  <akim@epita.fr>
17139         Let autoconf use autom4te for traces.
17141         * autoconf.in ($task, task trace): Remove, merely pass --trace to
17142         autom4te.
17143         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
17144         (Because I found no way for autom4te to accept `-').
17145         * autom4te.in (&Request::request): Beware of M4 builtins.
17146         (END): Don't try to remove the content of an empty dir.
17147         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
17148         (&handle_output): Set a default value to `$forbidden'.
17149         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
17150         ($autoconf): Pass --debug and --verbose.
17151         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
17152         cache.
17154 2001-07-24  Akim Demaille  <akim@epita.fr>
17156         Let autoconf use autom4te to create configure.
17158         * autoconf.in ($automate): New var.
17159         (task script): Use autom4te.
17160         * autom4te.in (File::Spec): Use it.
17161         (&find_file): New.
17162         (&parse_args): --warning is -W, not -w.
17163         Find the top level files.
17164         (&handle_m4): Pass the warnings flags.
17165         Don't report verbosely m4's failures, unless requested.
17166         (&handle_output): Don't complain for forbidden tokens in comments.
17167         Be sure to report all the forbidden tokens within a single line.
17168         (&trace_format_to_m4): Preserve `$_'.
17169         (&handle_traces): Sort the output macros.
17170         (&up_to_date_p): Find the files before trying to get its time stamp.
17172 2001-07-24  Akim Demaille  <akim@epita.fr>
17174         * Makefile.am: Ship, build and install Autom4te.
17175         (SUBDIRS): Add lib.
17176         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
17177         * configure.in: Require Perl.
17178         * man/autom4te.in: New.
17180 2001-07-19  Paul Eggert  <eggert@twinsun.com>
17182         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
17183         example, rather than (exit 1); exit (which isn't portable).
17185 2001-07-18  Akim Demaille  <akim@epita.fr>
17187         Version 2.52.
17189 2001-07-18  Akim Demaille  <akim@epita.fr>
17191         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
17192         was run, while they are needed also when it is expanded.
17193         Reported by Nicolas Joly.
17195         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
17196         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
17197         AC_F77_DUMMY_MAIN being expanded.
17199 2001-07-18  Akim Demaille  <akim@epita.fr>
17201         * configure.in: Bump to 2.51a.
17203 2001-07-17  Akim Demaille  <akim@epita.fr>
17205         Version 2.51.
17207 2001-07-17  Akim Demaille  <akim@epita.fr>
17209         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
17210         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
17212 2001-07-17  Akim Demaille  <akim@epita.fr>
17214         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
17215         used.  Well, then use the prototypes when you can, and runtime as
17216         a last resort.
17217         Reported by Artur Frysiak
17219         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
17220         (AC_FUNC_GETPGRP): Use it.
17221         First try to compile with 0-ary or 1-ary calls.
17223 2001-07-17  Akim Demaille  <akim@epita.fr>
17225         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
17226         replacement type.
17227         From Paul Eggert.
17229 2001-07-17  Akim Demaille  <akim@epita.fr>
17231         * Makefile.maint: Sync. with cppi 1.10.
17233 2001-07-17  Akim Demaille  <akim@epita.fr>
17235         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
17236         AC_F77_DUMMY_MAIN has been run.
17237         From Pavel Roskin and Steven G. Johnson.
17239 2001-07-17  Akim Demaille  <akim@epita.fr>
17241         * configure.in: Rename as...
17242         * configure.ac: this.
17244 2001-07-17  Akim Demaille  <akim@epita.fr>
17246         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
17247         rules.
17248         From Marc Espie.
17249         * Makefile.maint (release-archive-dir): Rename as...
17250         (release_archive_dir): this, so that it can be specialized in
17251         Makefile.
17253 2001-07-14  Akim Demaille  <akim@epita.fr>
17255         * configure.in: Bump to 2.50d.
17257 2001-07-14  Akim Demaille  <akim@epita.fr>
17259         Version 2.50c.
17260         * Makefile.maint (alpha): Typo.
17262 2001-07-14  Akim Demaille  <akim@epita.fr>
17264         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
17266 2001-07-14  Akim Demaille  <akim@epita.fr>
17268         * config/config.guess, config/config.sub, config/texinfo.tex
17269         * doc/standards.texi, doc/make-stds.texi: Update.
17271 2001-07-14  Akim Demaille  <akim@epita.fr>
17273         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
17275 2001-07-14  Akim Demaille  <akim@epita.fr>
17277         * Makefile.maint (maintainer-check): Rename as...
17278         (maintainer-distcheck): this.
17279         (changelog-check, static-check): New.
17280         Use them.
17282 2001-07-14  Kevin Ryde  <user42@zip.com.au>
17284         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
17285         for CXX is g++, not gcc.
17287 2001-07-14  Akim Demaille  <akim@epita.fr>
17289         * doc/autoconf.texi (Files): New subsection.
17291 2001-07-14  Akim Demaille  <akim@epita.fr>
17293         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
17294         of...
17295         (Generic Compiler Characteristics): this.
17296         (C++ Compiler): New subsection.
17298 2001-07-14  Akim Demaille  <akim@epita.fr>
17300         * autoscan.in: Use IO::File.
17301         Adjust all the routines to use it.
17302         ($log): New file (autoscan.log).
17303         (output): Dump detailed logs into $log, and a shortened version to
17304         stderr.
17305         (&scan_makefile): Refine the regexp catching tokens in the code.
17306         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
17307         and the `configure.ac' checking feature.
17309 2001-07-12  Akim Demaille  <akim@epita.fr>
17311         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
17312         Reported by Michael Elizabeth Chastain.
17314         * autoconf.in: Refuse such AWK.
17315         * configure.in: Likewise.
17316         * Makefile.am (acversion.m4): Do not use move-if-change this file
17317         has dependencies.
17318         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
17320 2001-07-10  Jens Petersen  <petersen@redhat.com>
17322         * autoscan.in (&scan_makefile): Improve programs regexp to parse
17323         things like "g++", "file.c" and "some-conf" as tokens.
17324         (&scan_file): Match C++ files extensions.
17325         If the filename extension is C++ then ask for c++.
17327 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
17329         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
17330         AC_TRY_LINK_FUNC, to check whether defining a dummy
17331         main-like routine is needed for linking with F77 libs.
17333 2001-07-05  Pavel Roskin  <proski@gnu.org>
17335         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
17336         after using break.
17337         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
17338         linking.
17340 2001-07-05  Akim Demaille  <akim@epita.fr>
17342         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
17343         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
17344         Makes' lives.
17345         Reported by Nicolas Joly.
17347 2001-07-04  Akim Demaille  <akim@epita.fr>
17349         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
17350         up.
17351         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
17352         warnings from compilers.
17353         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
17354         for all the compilers, not only GNU.  Hence move from here...
17355         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
17357 2001-07-04  Akim Demaille  <akim@epita.fr>
17359         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
17360         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
17361         AC_COMPILE_IFELSE.
17363 2001-07-04  Akim Demaille  <akim@epita.fr>
17365         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
17366         the ``strings.h'' change claimed below.
17368 2001-07-04  Akim Demaille  <akim@epita.fr>
17370         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
17372 2001-07-04  Akim Demaille  <akim@epita.fr>
17374         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
17375         strings.h if usable with string.h.
17376         Suggested by Paul Eggert.
17378 2001-07-04  Akim Demaille  <akim@epita.fr>
17380         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
17381         From Jens Petersen.
17383 2001-07-03  Akim Demaille  <akim@epita.fr>
17385         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
17386         etc. in the log.
17388 2001-07-03  Akim Demaille  <akim@epita.fr>
17390         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
17391         compiler, not the preprocessor.
17392         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
17393         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
17394         the right thing.
17395         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
17396         earlier if there are.
17398 2001-07-03  Akim Demaille  <akim@epita.fr>
17400         * autoscan.in ($initfile): Remove.
17401         (&find_file): Rename as...
17402         (&scan_file): this.
17403         Immediately scan the current file, instead of gathering them, and
17404         later having them handled by &scan_files.
17405         (&scan_files): Merely invoke Find::File.
17406         Adjust.
17408 2001-07-02  Akim Demaille  <akim@epita.fr>
17410         * autoscan.in: Formatting changes, matching the invocation order.
17411         (File::Find): Use it instead of Perl 4's `find.pl'.
17412         (&wanted): Rename as...
17413         (&find_file): this.
17415 2001-07-01  Pavel Roskin  <proski@gnu.org>
17417         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
17418         break in the argument to AC_TRY_LINK_FUNC.
17419         (AC_F77_MAIN): Remove conftest* after using break in the
17420         argument to AC_TRY_LINK.
17422 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
17424         Add alternate 'main' routine detection for linking C/C++ with Fortran,
17425         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
17427         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
17428         dummy alternate main is required even if the user provides her own
17429         'main'.
17430         (AC_F77_MAIN): New macro to detect whether it is possible to
17431         provide an alternate 'main' function name, using the 'main' from
17432         the Fortran libraries.
17433         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
17434         cross-language link tests can be performed successfully.
17435         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
17436         after $LIBS, for consistency; this should be the general rule since
17437         the user may want to link to Fortran libraries that require $FLIBS.
17438         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
17440 2001-06-29  Pavel Roskin  <proski@gnu.org>
17442         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
17443         at-stdout and at-stderr instead of removing the newline
17444         from the echo output, which is not guaranteed to work.
17446 2001-06-28  Jens Petersen  <petersen@redhat.com>
17448         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
17449         confdefs.h when non-zero.
17451 2001-06-28  Akim Demaille  <akim@epita.fr>
17453         * configure.in: Bump to 2.50c.
17455 2001-06-26  Akim Demaille  <akim@epita.fr>
17457         Version 2.50b.
17459 2001-06-26  Akim Demaille  <akim@epita.fr>
17461         Version 2.50a.
17463 2001-06-25  Pavel Roskin  <proski@gnu.org>
17465         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
17466         argument, AUTOCONF-FLAGS.
17467         * tests/mktests.sh (update_exclude_list): Add
17468         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
17469         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
17470         AC_FUNC_WAIT3 with "-W no-obsolete".
17472 2001-06-25  Akim Demaille  <akim@epita.fr>
17474         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
17476 2001-06-25  Akim Demaille  <akim@epita.fr>
17478         * autoscan.in (%macro): Now maps from word to list of macros.
17479         (&init_tables): Die when a word which is already handled by
17480         explicit macros is mapped to the default macro.
17481         (&print_unique): Remove, inlined in...
17482         (&output_kind): here.
17483         (File::Basename): Use it.
17484         (&output): Sort the CONFIG_FILES.
17485         * acheaders: Normalize.
17486         * acfunctions: Likewise.
17488 2001-06-25  Akim Demaille  <akim@epita.fr>
17490         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
17491         characteristics in the logs.
17492         Suggested by Mo DeJong.
17494 2001-06-24  Akim Demaille  <akim@epita.fr>
17496         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
17497         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
17498         * doc/autoconf.texi (Autoconf 2.13): New section.
17500 2001-06-24  Akim Demaille  <akim@epita.fr>
17502         * autoconf.in (Task traces): Separate the error messages from the
17503         traces to improve robustness.
17505 2001-06-23  Akim Demaille  <akim@epita.fr>
17507         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
17508         three as failures are unlikely, and speed matters.
17510 2001-06-23  Akim Demaille  <akim@epita.fr>
17512         * doc/autoconf.texi (Redefined M4 Macros): New.
17514 2001-06-23  Akim Demaille  <akim@epita.fr>
17516         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
17517         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
17518         5.3.
17520 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
17522         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
17523         config.status targets to after the evaluation of the INIT-CMDS.
17524         Double quote config.status targets (used to be single quoted).
17526 2001-06-23  Akim Demaille  <akim@epita.fr>
17528         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
17529         Check the content of the created file.
17530         Check the ./config.status command line invocation.
17532 2001-06-23  Akim Demaille  <akim@epita.fr>
17534         * tests/foreign.at (Libtool): Reject prehistoric versions.
17536 2001-06-23  Akim Demaille  <akim@epita.fr>
17538         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
17539         preexisting files matching a.*.
17541 2001-06-23  Akim Demaille  <akim@epita.fr>
17543         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
17544         stderr.
17545         * doc/autoconf.texi (AC_ARG_VAR): Update.
17547 2001-06-21  Akim Demaille  <akim@epita.fr>
17549         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
17550         precious variables have changed.
17551         * tests/torture.at (AC_ARG_VAR): Adjust.
17553 2001-06-21  Akim Demaille  <akim@epita.fr>
17555         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
17556         but some sed choke on multiple `;', and other tools (e.g.,
17557         Automake), include the separator themselves.
17559         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
17561 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
17563         * doc/autoconf.texi (Functions Portability): Rename as...
17564         (Function Portability): this.
17565         (Function Portability): Document potential problems with unlink().
17567 2001-06-19  Paul Eggert  <eggert@twinsun.com>
17569         * NEWS, doc/autoconf.texi: Document quadrigraphs.
17571 2001-06-18  Akim Demaille  <akim@epita.fr>
17573         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
17575 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
17577         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
17578         (_AC_FUNC_VFORK): this.
17579         Remove AC_DEFINEs and don't guess cross-compilation values.
17580         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
17581         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
17582         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
17583         vfork doesn't work.
17584         Guess values if cross-compiling, but warn.
17585         * acfunctions: Add AC_FUNC_FORK.
17586         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
17587         and vfork appropriately.
17589 2001-06-18  Akim Demaille  <akim@epita.fr>
17591         * doc/autoconf.texi (Functions Portability): New section.
17593 2001-06-18  Akim Demaille  <akim@epita.fr>
17595         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
17596         in $M4.
17597         Suggested by Andreas Schwab.
17599 2001-06-18  Akim Demaille  <akim@epita.fr>
17601         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
17602         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
17603         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
17604         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
17605         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
17606         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
17607         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
17608         the converse).
17610 2001-06-18  Akim Demaille  <akim@epita.fr>
17612         * doc/autoconf.texi (ms): New index.
17613         (Macro Index): Rename as...
17614         (Autoconf Macro Index): this.
17615         (M4 Macro Index): New appendix.
17616         (Programming in M4): New chapter.
17617         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
17618         (Quoting): Rename as...
17619         (M$ Quotation): this.
17620         Be part of `Programming in M4).
17622 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
17624         * tests/torture.at (AC_ARG_VAR): Set variables and export them
17625         in separate statements for compatibility with Tru64 v5.1.
17627 2001-06-17  Akim Demaille  <akim@epita.fr>
17629         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
17630         current values of the precious variables, not the previously
17631         cached values.
17632         Pass precious variables which are set to config.status.
17633         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
17634         * tests/torture.at (AC_ARG_VAR): New.
17636 2001-06-15  Paul Eggert  <eggert@twinsun.com>
17638         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
17639         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
17640         and explain why and how to replace them.
17641         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
17642         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
17644 2001-06-15  Akim Demaille  <akim@epita.fr>
17646         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
17647         Reported by Bruno Haible.
17649         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
17650          (_AC_ARG_VAR_PRECIOUS): to here.
17652 2001-06-15  Pavel Roskin  <proski@gnu.org>
17654         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
17655         an unused pointer use cast to this type and `if' statement to
17656         avoid warnings from the compiler.
17657         (AC_HEADER_TIME): Likewise.
17658         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
17659         in `if' statement to avoid warnings from the compiler. Declare
17660         ac_aggr static to avoid the need to initialize it.
17662 2001-06-14  Akim Demaille  <akim@epita.fr>
17664         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
17665         Macros'.
17667 2001-06-13  Akim Demaille  <akim@epita.fr>
17669         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
17670         Suggested by Alexander Mai.
17672 2001-06-13  Akim Demaille  <akim@epita.fr>
17674         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
17675         sys/types.h and sys/stat.h, and check for them.
17677 2001-06-13  Akim Demaille  <akim@epita.fr>
17679         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
17680         INCLUDES.
17682 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
17684         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
17685         succeeds and only try adding libdnet upon a failure.
17687 2001-06-12  Akim Demaille  <akim@epita.fr>
17689         * autoscan.in (&output_kind): Output the comment only if it exists.
17690         (%kind_comment): Add entry for `programs'.
17691         (&output_programs): Use &output_kind.
17692         (&output_functions, &output_identifiers, &output_headers)
17693         (&output_programs): Inline, and remove.
17695 2001-06-12  Akim Demaille  <akim@epita.fr>
17697         * autoscan.in (%kind_comment): New.
17698         (output_kind): New.
17699         (output_functions, output_identifiers, output_headers): Use it.
17701 2001-06-12  Akim Demaille  <akim@epita.fr>
17703         * autoscan.in (&print_unique): Take `$kind' and `$word' as
17704         arguments, to factor indirections into `%macro' and `%used'.
17705         (%generic_macro): Fix a typo.
17707 2001-06-12  Akim Demaille  <akim@epita.fr>
17709         * aclibraries: New.
17710         * autoscan.in (@kinds): Add `libraries'.
17711         Use `@kinds' instead of hard coded lists.
17712         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
17713         Remove, replaced by...
17714         (%used): this.
17716 2001-06-12  Akim Demaille  <akim@epita.fr>
17718         * autoscan.in (%functions_macros %headers_macros)
17719         (%identifiers_macros %programs_macros %makevars_macros): Remove,
17720         replaced by...
17721         (%macro): New.
17723 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
17725         * aclang.m4 (AC_NO_EXECUTABLES): Override
17726         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
17728 2001-06-11  Akim Demaille  <akim@epita.fr>
17730         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
17731         trailing new line.
17732         Reported by Andreas Schwab.
17734 2001-06-11  Akim Demaille  <akim@epita.fr>
17736         * Makefile.am, Makefile.maint: Typos.
17738 2001-06-09  Akim Demaille  <akim@epita.fr>
17740         * doc/autoconf.texi (Here-Documents): New section, gathering
17741         documentation about here-documents.
17742         Use `href', not `uref', and other changes.
17744 2001-06-09  Akim Demaille  <akim@epita.fr>
17746         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
17747         chapter.
17749 2001-06-09  Akim Demaille  <akim@epita.fr>
17751         * doc/autoconf.texi (Limitations of Builtins): Complete the
17752         description of the here-docs penalties with Alexandre Oliva's
17753         explanations.
17755 2001-06-01  Paul Eggert  <eggert@twinsun.com>
17757         * doc/autoconf.texi: Talk about here documents and speedups.
17758         Do not use "echo" on arbitrary strings.
17759         Spell "here-documents" consistently with the standard.
17761 2001-06-09  Akim Demaille  <akim@epita.fr>
17763         * doc/autoconf.texi (Concept Index): Introduce it.
17764         Regenerate the menus.
17766 2001-06-09  Akim Demaille  <akim@epita.fr>
17768         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
17769         * config/prev-version.txt: New.
17770         * config/move-if-change: New, for GNU libc.
17772 2001-06-06  Pavel Roskin  <proski@gnu.org>
17774         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
17776 2001-06-06  Akim Demaille  <akim@epita.fr>
17778         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
17779         properly when $1 is not a literal.
17780         Fixes PR Autoconf/187, reported by Bram Moolenaar.
17782 2001-06-06  Akim Demaille  <akim@epita.fr>
17784         Invoking AC_COPYRIGHT before AC_INIT fails.
17786         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
17787         * acgeneral.m4 (_m4_divert(VERSION_FSF))
17788         (_m4_divert(VERSION_USER)): New.
17789         (AC_COPYRIGHT): $2 is the diversion to use.
17790         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
17791         (AC_INIT): Remove dead comments as now it's commutative.
17793 2001-06-06  Akim Demaille  <akim@epita.fr>
17795         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
17796         PR autoconf/187.
17798 2001-06-05  Akim Demaille  <akim@epita.fr>
17800         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
17801         can be empty.
17802         `*dir' variables cannot be NONE.
17803         Reported by Mark Kettenis.
17805 2001-06-05  Paul Eggert  <eggert@twinsun.com>
17807         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
17809 2001-06-04  Akim Demaille  <akim@epita.fr>
17811         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
17812         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
17813         (AC_TR_SH): Move as...
17814         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
17815         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
17816         (AS_TR_SH): these.
17817         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
17818         (_AS_TR_SH_PREPARE): New.
17819         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
17820         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
17822 2001-06-02  Akim Demaille  <akim@epita.fr>
17824         * Makefile.am (.m4.m4f): Pass the options first.
17825         Fixes PR autoconf/182.
17827 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
17829         GNU getopt, when POSIXLY_CORRECT does not permute options and
17830         arguments.  So pass the options first.
17831         Fixes PR autoconf/184.
17833         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
17834         (run_m4): Remove files.
17835         (run_m4f): Remove.
17836         Update remainder of script to use them.
17837         (for warning in): Do not use a literal comma as it will not be
17838         split by IFS.
17840 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
17842         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
17843         Fortran compilers to check.
17844         (_AC_PROG_F77_V): Add '-###' as a possible option to print
17845         information on library and object files.
17846         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
17847         to check.
17849 2001-06-02  Akim Demaille  <akim@epita.fr>
17851         * autom4te.in (Request::@request): Declare with `vars', not `my',
17852         as it prevents updates via `do FILENAME'.
17854 2001-06-02  Akim Demaille  <akim@epita.fr>
17856         * configure.in (standards_texi): Remove, dead code.
17858 2001-06-02  Akim Demaille  <akim@epita.fr>
17860         * autom4te.in: New.
17862 2001-06-02  Pavel Roskin  <proski@gnu.org>
17864         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
17865         for signals other than 0 - exit with code 1.
17866         * m4sh.m4 (AS_TMPDIR): Likewise.
17867         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
17868         * autoheader.in: Likewise.
17869         * autoreconf.in: Likewise.
17870         * tests/torture.at (Signal handling): New test for the above.
17872 2001-06-01  Akim Demaille  <akim@epita.fr>
17874         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
17875         message.
17877 2001-05-31  Akim Demaille  <akim@epita.fr>
17879         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
17880         Add copyright and comments.
17881         * acheaders: Add stdint.h.
17882         Suggested by Paul Eggert.
17884 2001-05-31  Akim Demaille  <akim@epita.fr>
17886         * atgeneral.m4 (AT_INIT): Use $SHELL.
17887         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
17889 2001-05-31  Akim Demaille  <akim@epita.fr>
17891         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
17892         stdint.h.
17893         From Paul Eggert and Lars Hecking.
17895 2001-05-31  Akim Demaille  <akim@epita.fr>
17897         * tests/base.at: Adjust line numbers in error messages.
17899 2001-05-31  Akim Demaille  <akim@epita.fr>
17901         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
17902         to emit the bangshe line.
17903         Reported by David Carter.
17905 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
17907         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
17908         Fortran (95) compilers to check.
17910 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
17912         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
17913         Macro Archive URL.
17915 2001-05-23  Pavel Roskin  <proski@gnu.org>
17917         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
17918         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
17919         (AC_PROG_CXXCPP): Likewise.
17921 2001-05-22  Akim Demaille  <akim@epita.fr>
17923         * config: New directory.
17924         * configure.in: AC_CONFIG_AUX_DIR it.
17925         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
17927 2001-05-22  Akim Demaille  <akim@epita.fr>
17929         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
17930         * autoupdate.in: Specify the Emacs mode.
17931         * acversion.m4.in: Rename as...
17932         * acversion.m4: this.
17933         * tests/Makefile.am (CLEANFILES): More garbage.
17935 2001-05-22  Akim Demaille  <akim@epita.fr>
17937         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
17938         Rename as...
17939         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
17940         these.
17942 2001-05-21  Akim Demaille  <akim@epita.fr>
17944         * configure.in: Bump to 2.50a.
17947         -----
17949         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
17950         Software Foundation, Inc.
17952         Copying and distribution of this file, with or without
17953         modification, are permitted provided the copyright notice and this
17954         notice are preserved.