1 2008-11-10 Eric Blake <ebb9@byu.net>
4 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
5 than m4_bpatsubst to grab string prefix.
6 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
7 (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
8 (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
9 m4_bpatsubst to change bytes.
10 (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
11 m4_bmatch to find byte.
12 (_AC_CONFIG_COMPUTE_DEST): New helper macro.
14 Use more efficient macros in AC_CONFIG_SUBDIRS.
15 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
17 (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
18 (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
20 Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
21 * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
23 (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
24 (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
26 (AC_LIBSOURCES): Use m4_map_args.
28 Use more efficient macros in AC_CHECK_TYPES.
29 * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
31 (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
33 Use more efficient macros in AC_CHECK_HEADERS.
34 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
35 (AH_CHECK_HEADERS_DIRENT): Rename...
36 (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
37 argument, rather than a list.
38 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
39 Adjust callers to use m4_map_args_w.
40 (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
41 (_AC_CHECK_HEADER_ONCE): New helper macro.
43 Use more efficient macros in AC_CHECK_FUNCS.
44 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
45 (_AH_CHECK_FUNC): ...and take only one argument, rather than a
47 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
49 (_AC_CHECK_FUNC_ONCE): New helper macro.
50 (AC_REPLACE_FUNCS): Use m4_map_args_w.
52 Use more efficient macro in AT_INIT.
53 * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
55 2008-11-10 Eric Blake <ebb9@byu.net>
58 * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
59 * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
61 * doc/fdl.texi: Delete.
62 * doc/gnu-oids.texi: New upstream file.
63 * doc/standards.texi: Resync from upstream.
64 * doc/make-stds.texi: Likewise.
65 * build-aux/announce-gen: Likewise.
66 * build-aux/texinfo.tex: Likewise.
68 2008-11-10 Clinton Roy <clinton.roy@gmail.com> (tiny change)
70 Pass autoreconf -I to aclocal -I
71 * bin/autoreconf.in (parse_args): Pass --include to aclocal.
72 * doc/autoconf.texi (autoreconf Invocation): Updates for above.
76 2008-11-10 Eric Blake <ebb9@byu.net>
78 Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
79 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
80 * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
82 Idea by Paolo Bonzini.
84 2008-11-10 Eric Blake <ebb9@byu.net>
86 Provide a section on all tools allowed in GNU Coding Standards.
87 * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
89 (Limitations of Usual Tools) <awk>: Make table entry consistent.
90 <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
92 2008-11-09 Paolo Bonzini <bonzini@gnu.org>
94 Balance parentheses in _AC_CACHE_DUMP.
95 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
96 without introducing \).
98 2008-11-07 Eric Blake <ebb9@byu.net>
100 Further doc updates for AC_CHECK_HEADER change.
101 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
102 new default, and make it more obvious that using [-] is generally
105 2008-11-07 Eric Blake <ebb9@byu.net>
107 * ChangeLog: Enforce UTF-8 encoding.
109 2008-11-06 Eric Blake <ebb9@byu.net>
111 Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
112 * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
113 argument to speed up check.
115 2008-11-06 Eric Blake <ebb9@byu.net>
117 Speed up AC_CHECK_TYPE.
118 * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
119 regex when enough arguments are present.
121 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
123 Remove three forks per _AC_RUN_LOG_STDERR in the common case.
124 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
125 sequence when the program's stderr was empty, while providing a
126 conftest.err file even in that case.
127 (_AC_CACHE_DUMP): Fix mismatched parenthesis.
129 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
131 Change `present but cannot be compiled' behavior to use compiler result.
133 * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
134 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
136 * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
138 2008-11-05 Eric Blake <ebb9@byu.net>
141 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
143 (_m4_split): Allow user control over separator.
144 (m4_split): Adjust caller.
145 (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
147 * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
148 (M4 loops): Test new interface.
150 Use m4_set_map_sep in more places.
151 * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
152 (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
153 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
154 Enhance documentation.
155 <m4_set_foreach>: Mention faster alternative.
156 (Looping constructs) <m4_foreach>: Likewise.
158 Unify m4_set_foreach and m4_set_map.
159 * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
161 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
162 (m4_set_map): Adjust callers.
164 Use _m4_foreach in more places.
165 * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
166 (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
168 * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
169 instead of m4_foreach or m4_map_args.
171 Unify _m4_foreach and _m4_map.
172 * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
173 (_m4_foreach): ...this.
174 (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
175 (m4_map_args, m4_map_args_sep): Adjust callers.
176 * lib/m4sugar/foreach.m4 (_m4_map): Rename...
177 (_m4_foreach): ...to this, overwriting old definition.
179 2008-11-04 Eric Blake <ebb9@byu.net>
181 Add m4_map_args_sep, undocumented for now.
182 * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
183 (_m4_map): Change API to cover more of m4_map*.
184 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
185 (m4_map_args): Delete.
186 * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
189 Improve m4_for performance.
190 * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
191 avoid m4_define by some clients.
192 (m4_for): Adjust caller.
193 * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
194 (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
195 (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
196 (_m4_list_cmp): Likewise.
198 2008-11-04 Eric Blake <ebb9@byu.net>
200 Adjust expected output.
201 * tests/torture.at (Missing templates): Reflect added quoting.
202 Detected by Bob Proulx's buildbot.
204 Reject arguments with leading =.
205 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
206 missing variable name, with fewer forks. Quote invalid arguments
207 in message, in case they include spaces.
208 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
209 (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
210 * lib/autotest/general.m4 (AT_INIT): Likewise.
211 * tests/base.at (configure arguments): Test this.
212 Reported by Jeff Squyres.
214 2008-11-04 Eric Blake <ebb9@byu.net>
217 * cfg.mk (fetch): Add fdl-1.3.texi.
218 * .gitattributes: Likewise.
219 * doc/autoconf.texi (GNU Free Documentation License): Point to new
221 * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
222 (standards_TEXINFOS): Mention current dependence on older license.
223 * doc/fdl-1.3.texi: New upstream file.
224 * GNUmakefile: Resync from upstream.
225 * build-aux/announce-gen: Likewise.
226 * build-aux/texinfo.tex: Likewise.
228 2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
230 Point at AM_SUBST_NOTMAKE.
231 * doc/autoconf.texi (Setting Output Variables): Add cross
232 reference to new Automake macro AM_SUBST_NOTMAKE.
234 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
236 Eliminate a fork per invocation of AC_LANG_CONFTEST.
237 * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
239 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
240 top of confdefs.h, which also works around cpp deficiencies.
241 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
242 (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
243 (AC_LANG_CONFTEST()): New.
245 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
247 Reorganize definition of languages.
248 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
249 _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
250 _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
251 Replace definitions with usage of AC_LANG_DEFINE.
252 (Sections 2b, 2c): Delete.
253 (Sections 1b, 1c): Move after section 2a.
254 * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
255 _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
256 with usage of AC_LANG_DEFINE.
257 (AC_LANG_ERLANG): Define using AU_DEFUN.
258 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
259 _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
260 _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
261 _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
262 definitions with usage of AC_LANG_DEFINE.
263 * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
265 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
267 Use preprocessor in cpp tests.
268 * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
270 2008-10-31 Paolo Bonzini <bonzini@gnu.org>
272 Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
273 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
274 (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
275 (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
276 (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
277 (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
278 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
281 2008-10-31 Eric Blake <ebb9@byu.net>
283 Support multiple undiverts and dumpdefs at once.
284 * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
286 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
287 <m4_undivert>: Document argument list change.
288 * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
291 Simplify diversion stack handling.
292 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
293 avoid extra newlines.
294 (m4_divert_stack_push): Compute location here, rather than caller.
295 (m4_divert_push): Update caller.
296 (m4_divert): Likewise, and also adjust current diversion name.
297 (m4_divert_pop): Simplify rule that diversion stack must never go
299 (_m4_require_call): Bypass diversion stack when collecting
301 (m4_init): Set current diversion without requiring m4_init.
302 * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
303 * lib/autotest/general.m4 (AT_INIT): Likewise.
304 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
305 text to run prior to m4sugar cleanup.
306 * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
308 (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
309 * NEWS: Undo blurb about m4_divert.
310 * tests/m4sugar.at (m4@&t@_divert_stack): New test.
312 Simplify expansion stack handling.
313 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
314 always output 'top level'.
315 (_m4_expansion_stack_entry): New macro, to format the string only
317 (m4_expansion_stack_push): Only push a macro name.
318 (m4_warn, _m4_defun_pro): Update callers.
319 (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
320 (_m4_defun_epi, m4_fatal): Inline the calls.
321 * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
323 2008-10-30 Eric Blake <ebb9@byu.net>
325 Better documentation of AC_CHECK_HEADER's fourth argument.
326 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
327 how to suppress compiler or preprocessor header check.
328 Reported by Jeff Squyres.
330 2008-10-30 Eric Blake <ebb9@byu.net>
332 Fix LINENO testsuite failure.
333 * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
334 undocumented _AS_PREPARE, and move unset earlier in script.
336 Update LINENO documentation.
337 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
338 (Special Shell Variables) <LINENO>: Mention that LINENO support in
339 child scripts may be broken. Modernize example.
341 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
343 Do not check for $LINENO in generated scripts.
344 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
347 2008-10-30 Eric Blake <ebb9@byu.net>
349 Don't check for non-POSIX extensions in suggested tests.
350 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
351 we still use += if available, but should not reject shells (like
352 dash) that don't provide it.
353 (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
354 Reported by Paolo Bonzini.
356 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
358 Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
359 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
360 with a given CONFIG_SHELL, move it to SHELL.
361 (AS_INIT_GENERATED): Re-export SHELL.
363 2008-10-30 Eric Blake <ebb9@byu.net>
365 Work around Solaris /bin/sh case bug.
366 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
367 a non-empty command list.
368 (AS_CASE): Always guarantee that a case will match.
369 * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
370 Solaris bug, and mention AS_CASE.
372 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
374 Require _AS_CR_PREPARE where appropriate.
375 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
376 (AS_PREPARE): Require _AS_CR_PREPARE.
378 Avoid walking the entire PATH when looking for a better shell.
379 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
380 as the PATH is walked.
382 Add third argument to _AS_PATH_WALK
383 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
384 (_AS_PATH_WALK): Add third optional argument.
386 Trim down the length of the shell function test.
387 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
389 2008-10-29 Eric Blake <ebb9@byu.net>
391 Fix LINENO detection to work around bash and pdksh limitations.
392 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
393 that we can choose which of two tests to trust.
394 (_AS_RUN): Set flag when alternate shell is running.
395 (_AS_DETECT_EXPAND): New macro.
396 (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
398 2008-10-29 Eric Blake <ebb9@byu.net>
400 Mention proper fix for zsh users.
401 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
402 version known to work.
403 Suggested by Paolo Bonzini.
405 Document current beta-quality status.
406 * configure.ac: Reflect fact that change to git-version-gen
407 produces -, but not always a letter, on non-release builds.
408 * BUGS: Mention known issues.
409 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
410 debugging platforms with deficient shells.
412 2008-10-29 Eric Blake <ebb9@byu.net>
414 Alter signature of AS_INIT_GENERATED.
415 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
416 manage here-doc and chmod in place. This also allows future
417 changes for optimizing the child via diversion/m4_wrap magic.
418 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
420 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
421 Update the documentation.
423 2008-10-29 Eric Blake <ebb9@byu.net>
425 Use _m4_stack_reverse in m4_set.
426 * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
427 (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
429 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
430 (m4_set_map): Adjust callers to new API.
432 Add m4_stack_foreach_sep.
433 * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
434 (m4_stack_foreach_sep_lifo): New macros.
435 (_m4_stack_reverse): Adjust prototype, to support it.
436 (m4_copy): Use fewer macros.
437 * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
438 (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
440 2008-10-29 Bruno Haible <bruno@clisp.org>
442 Mention Sun WorkShop 6.2 OpenMP bug.
443 * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
445 2008-10-29 Paolo Bonzini <bonzini@gnu.org>
447 Rewrite handling of diversion and expansion stack.
448 * NEWS: Document stricter requirement on m4_init.
449 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
451 (_m4_divert_stack_push): New.
452 (m4_divert): Use _m4_divert_stack_push and replace m4_define with
454 (m4_divert_push): Use _m4_divert_stack_push.
455 (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
456 pop _m4_divert_stack instead of m4_divert_stack.
457 (m4_expansion_stack): New. Update comment above it.
458 (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
459 _m4_expansion_stack instead of m4_expansion_stack.
460 (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
461 instead of m4_expansion_stack. Use m4_expansion_stack's expansion
462 instead of the definition, and compensate for the trailing newline
464 (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
465 _m4_expansion_stack instead of m4_expansion_stack.
466 (m4_newline): Expand first argument after the newline.
467 (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
468 * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
469 * tests/tools.at (whitespace in file names, the empty token): Likewise.
471 2008-10-28 Eric Blake <ebb9@byu.net>
473 Reduce forks while searching for better shell.
474 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
475 (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
476 already does the job.
477 (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
480 Undo needless efforts to protect $2 in $2_t.
481 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
482 (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
484 2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
486 Fix parallel test execution output lossage.
487 * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
488 standard output and standard error before the test, use append
491 Caught by Bob Proulx' build daemons, analysis and suggested fix
492 by Stéphane Chazelas.
494 2008-10-28 Eric Blake <ebb9@byu.net>
496 Use m4_map_args in more places.
497 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
498 (m4_undefine, m4_combine): Use m4_map_args, rather than
501 2008-10-28 Eric Blake <ebb9@byu.net>
503 Override m4 1.4.x dumpdef, as it breaks autom4te.
504 * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
505 (m4_copy): Formatting touchup.
506 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
507 semantic differences as well as m4_dumpdefs.
509 * tests/m4sugar.at (m4@&t@_dumpdef): New test.
511 2008-10-28 Eric Blake <ebb9@byu.net>
513 Allow m4sugar to be used without autom4te, such as in bison.
514 * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
515 alternate escape sequences can be used.
516 (m4_text_box): Likewise. Don't output quadrigraphs.
517 (m4_qdelta): Delete unused macro.
519 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
521 Add m4_stack_foreach and m4_stack_foreach_lifo.
522 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
523 (m4_stack_foreach, m4_stack_foreach_lifo): New.
524 (m4_copy): Use m4_stack_foreach and m4_curry.
525 (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
526 (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
527 * tests/m4sugar.at (m4_stack_foreach): New test.
529 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
531 use a shell function for AC_TYPE_INTx_T
532 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
534 (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
536 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
538 * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
539 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
540 _AC_CHECK_HEADER_NEW): Likewise.
541 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
543 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
545 * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
546 (AC_CHECK_MEMBER): Define and use a shell function.
548 2008-10-27 Eric Blake <ebb9@byu.net>
550 Prefer m4_fatal over AC_FATAL.
551 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
552 (AC_CHECK_MEMBER): Use non-obsolete macro name.
553 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
554 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
556 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
557 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
558 (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
560 2008-10-27 Eric Blake <ebb9@byu.net>
562 Avoid raw carriage return in scripts.
563 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
564 via tr, rather than with literal byte.
566 Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
568 2008-10-27 Eric Blake <ebb9@byu.net>
571 * lib/autotest/general.m4 (at_func_arith): Delete; replace all
572 clients with AS_VAR_ARITH instead.
573 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
575 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
576 * tests/torture.at (Torturing config.status): Likewise.
577 * tests/tools.at (autom4te --force): Likewise.
580 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
581 (AS_VAR_ARITH): New macros.
582 (_AS_PREPARE, AS_PREPARE): Emit preparation.
583 * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
584 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
586 (Limitations of Usual Tools) <expr>: Mention portability problem
587 if first argument starts with -.
588 (Shell Substitutions) <$((expression))>: Mention it.
591 2008-10-27 Eric Blake <ebb9@byu.net>
593 Use read, rather than `cat`, for safe one-line files.
594 * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
595 known that the file has only one line and no \.
596 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
598 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
600 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
601 _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
602 (_AC_COMPUTE_INT_BODY): New.
603 (AC_COMPUTE_INT): Define and use a shell function.
605 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
607 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
608 test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
609 (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
611 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
613 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
614 (AC_CHECK_DECL): Use a shell function.
616 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
618 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
619 _AC_CHECK_HEADER_NEW): Use a shell function.
621 2008-10-25 Eric Blake <ebb9@byu.net>
623 Track recent copyright assignments.
626 2008-10-25 Paolo Bonzini <bonzini@gnu.org>
627 and Eric Blake <ebb9@byu.net>
629 Use a shell function for _AC_CHECK_HEADER_MONGREL.
630 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
632 (_AC_CHECK_HEADER_MONGREL): Use a shell function.
634 2008-10-25 Eric Blake <ebb9@byu.net>
636 Simplify _AS_PREPARE handling of functions.
637 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
638 (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
639 (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
641 (_AS_LINENO_PREPARE): Make more efficient.
642 (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
643 (_AS_UNSET_PREPARE): Avoid blank newline.
644 (AS_INIT): Emit as_func_unset alongside other functions.
646 2008-10-25 Eric Blake <ebb9@byu.net>
649 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
651 (Limitations of Builtins): Mention AS_EXIT.
654 Use AS_EXIT in autoconf.as.
655 * bin/autoconf.as: Consistently use AS_EXIT.
657 2008-10-24 Eric Blake <ebb9@byu.net>
659 Fix m4 underquoting in AC_PROG_INSTALL.
660 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
663 Speed up AC_CHECK_HEADER.
664 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
666 2008-10-24 Paolo Bonzini <bonzini@gnu.org>
667 and Eric Blake <ebb9@byu.net>
669 Use a shell function for AC_CHECK_FUNC.
670 * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
671 (AC_CHECK_FUNC): Use a shell function.
672 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
674 2008-10-24 Eric Blake <ebb9@byu.net>
676 Work around fact that gnulib-tool doesn't use m4_copy.
677 * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
678 define, so that an initial location is present, to account for
679 fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
681 Make m4_defun_init more robust.
682 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
683 names, and correct number of arguments.
684 (m4_copy): Also set up location of the copy.
685 (m4_defun): When copied, use current macro name, not original.
686 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
689 Optimize clients of AS_REQUIRE.
690 * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
692 (m4_defun_init): New undocumented macro.
693 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
694 (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
695 (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
696 (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
697 simplify these macros once the one-shot initialization is
699 * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
703 * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
705 (_m4_copy): New macro, which preserves pushdef stacks.
706 (_m4_defun_pro_outer): Bypass it, for speed.
707 (m4_init): Bypass new implementation, since it breaks on m4_defn.
708 * bin/autoupdate.in (handle_autoconf_macros): Likewise.
709 * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
710 now that m4_copy checks this.
711 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
712 this, as well as m4_rename.
713 * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
714 renaming builtins, since it breaks on m4_ifdef.
716 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
718 2008-10-24 Eric Blake <ebb9@byu.net>
720 AC_FUNC_GETGROUPS: Revert regression.
721 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
722 ac_cv_func_getgroups_works=no when it is not available.
724 2008-10-23 Eric Blake <ebb9@byu.net>
727 * lib/autoconf/fortran.m4: Consistently use tabs.
729 2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
731 For gfortran on sh, ignore -little.
732 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
733 list of ignored arguments.
736 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
738 Eliminate empty lines after AC_*_IFELSE.
739 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
740 _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
742 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
744 Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
745 * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
746 Return a boolean status code based on $ac_status.
748 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
750 Ensure actions can look at conftest* files.
751 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
752 _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
753 Move rm commands, except IPA files and Apple debug symbols...
754 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
755 _AC_RUN_IFELSE): ...in here.
756 * tests/compile.at: Add regression test.
758 2008-10-23 Eric Blake <ebb9@byu.net>
760 Remove excess dnl from m4sh.
761 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
762 (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
763 (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
764 (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
765 (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
766 (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
767 (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
768 (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
769 (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
770 (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
772 2008-10-23 Paolo Bonzini <bonzini@gnu.org>
773 and Eric Blake <ebb9@byu.net>
775 Use a shell function for _AC_RUN_IFELSE.
776 * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
777 (_AC_RUN_IFELSE): Use a shell function.
778 (_AC_RUN_LOG): Avoid subshell for logging.
780 2008-10-23 Eric Blake <ebb9@byu.net>
782 Formatting tweak: balance () with m4sh case statements.
783 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
784 (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
785 (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
786 (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
787 allow output of strategic shell comments.
788 (AS_VERSION_COMPARE): Use AS_CASE.
789 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
791 2008-10-22 Jim Meyering <meyering@redhat.com>
793 AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
794 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
795 the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
796 it is set to "yes" in the environment and configure is run on
797 a system like mingw that lacks the getgroups function, it would
798 mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
799 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
801 2008-10-22 Paolo Bonzini <bonzini@gnu.org>
802 and Eric Blake <ebb9@byu.net>
804 Use a shell function for _AC_LINK_IFELSE.
805 * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
806 (_AC_LINK_IFELSE): Use a shell function.
808 2008-10-22 Eric Blake <ebb9@byu.net>
810 Fix autoconf logging commands.
811 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
812 (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
813 (_AC_DO_ECHO): Likewise, and use fewer dnl.
814 (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
816 2008-10-22 Eric Blake <ebb9@byu.net>
818 Fix testsuite failure.
819 * tests/mktests.sh (ac_exclude_list): Don't generate test for
822 2008-10-21 Eric Blake <ebb9@byu.net>
824 Improve wording related to automake and autotest.
825 * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
826 relation to automake. Mention dependency on package.m4.
827 Consolidate examples. Define AUTOM4TE.
829 Reported by William Pursell.
831 2008-10-21 Eric Blake <ebb9@byu.net>
833 Allow AS_VAR_SET_IF in shell lists.
834 * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
836 * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
837 provided by AS_VAR_SET_IF.
838 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
840 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
841 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
843 Allow AS_VAR_IF in shell lists.
844 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
845 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
846 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
848 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
849 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
850 (_AC_CHECK_HEADER_DIRENT): Likewise.
851 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
852 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
854 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
856 Allow AS_CASE in shell lists.
857 * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
858 side effects. Allow continuation of script on same line as esac.
859 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
860 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
861 * NEWS: Document the subtle change.
863 Allow AS_IF in shell lists.
864 * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
865 side effects. Allow continuation of script on same line as fi.
866 (_AS_DETECT_BETTER_SHELL): Adjust clients.
867 (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
869 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
870 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
871 (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
872 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
873 * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
874 (Polymorphic Variables): Move mention of dnl to the only two
875 AS_VAR functions that need it.
877 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
878 and Eric Blake <ebb9@byu.net>
880 Use a shell function for _AC_COMPILE_IFELSE.
881 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
882 (_AC_COMPILE_IFELSE): Use a shell function.
884 2008-10-21 Eric Blake <ebb9@byu.net>
887 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
888 * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
889 (_AC_LIBOBJS_NORMALIZE): Likewise.
890 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
891 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
892 (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
893 * lib/autotest/general.m4 (AT_INIT): Likewise.
896 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
897 (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
898 (AS_PREPARE, _AS_PREPARE): Emit preparation.
899 * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
900 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
902 <AS_VAR_SET>: Mention ramification of `""` rules.
903 * NEWS: Mention new macro.
905 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
906 and Eric Blake <ebb9@byu.net>
908 Use a shell function for _AC_PREPROC_IFELSE.
909 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
910 (_AC_PREPROC_IFELSE): Use a shell function.
911 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
912 (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
915 2008-10-21 Eric Blake <ebb9@byu.net>
917 Add banners to generated files.
918 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
920 (AS_INIT): Add new banners at strategic points.
921 * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
922 make consistent with other banners.
923 * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
925 2008-10-20 Paolo Bonzini <bonzini@gnu.org>
927 Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
928 * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
929 (m4_divert(SHELL_FN)): New.
931 2008-10-20 Eric Blake <ebb9@byu.net>
933 Avoid unportable use of echo in testsuite.
934 * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
937 2008-10-18 Paolo Bonzini <bonzini@gnu.org>
939 Make sure that nested AS_REQUIRE do not lose the desired diversion.
940 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
941 passing it to m4_divert_require, so that its content is not used
943 * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
945 2008-10-18 Eric Blake <ebb9@byu.net>
947 Document bugs in { } handling.
948 * doc/autoconf.texi (Limitations of Builtins): Mention bug on
951 Fix some testsuite failures introduced two days ago.
952 * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
953 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
955 Reported by Ralf Wildenhues.
957 2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
959 Show how to extract single substitutions from config.status.
960 * doc/autoconf.texi (config.status Invocation): Show example
963 2008-10-17 Eric Blake <ebb9@byu.net>
966 * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
967 * tests/m4sugar.at (m4@&t@_map_args): Rename...
968 (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
969 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
970 currying as a way to add parameters.
971 (Evaluation Macros) <m4_curry>: Document the new macro.
974 Improve suggested test filtering.
975 * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
977 (_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
978 check for an empty required set.
981 * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
982 * tests/m4sugar.at (m4@&t@_set): Enhance test.
983 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
987 Document m4_map_args.
988 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
990 (m4_map_args, m4_map_args_pair): ...to these names, and document.
991 (m4_version_unletter): Use the interface.
992 * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
993 (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
994 Perform same renames.
995 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
996 * tests/m4sugar.at (m4@&t@_map_args): New test.
997 (recursion): Adjust caller.
998 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
999 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1001 * NEWS: Mention the new macros.
1003 2008-10-17 Eric Blake <ebb9@byu.net>
1005 Reduce vertical whitespace in configure.
1006 * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
1007 m4 side effect initializations.
1008 * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
1010 2008-10-17 Eric Blake <ebb9@byu.net>
1012 Document AS_VAR interfaces.
1013 * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
1014 (Polymorphic Variables): New node.
1015 * NEWS: Update accordingly.
1017 Test AS_VAR interfaces.
1018 * tests/m4sh.at (AS@&t@_VAR): New test.
1019 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
1020 _AS_TR_SH_PREPARE at top level, rather than argument collection.
1021 (AS_TR_SH): Support command substitution.
1024 * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
1025 (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
1026 * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
1027 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1028 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
1030 Sort AS_VAR_* interfaces.
1031 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
1032 (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
1035 2008-10-16 Eric Blake <ebb9@byu.net>
1037 Allow comments before functions emitted by m4sh.
1038 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
1039 argument. Supply closing comment, to ease readability.
1040 (_AS_MKDIR_P_PREPARE): Adjust caller.
1041 (_AS_UNSET_PREPARE): Add comment.
1043 Add AS_FUNCTION_DESCRIBE.
1044 * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
1045 * lib/autotest/general.m4 (AT_INIT): Use it.
1047 2008-10-16 Eric Blake <ebb9@byu.net>
1049 Speed up m4_qlen with caching.
1050 * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
1051 (m4_qlen): Cache results for speed.
1053 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
1055 Add a testcase using more then one language.
1056 * tests/compile.at (Multiple languages): New test.
1058 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
1060 Fix Libtool's config.lt test.
1061 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
1064 2008-10-15 Eric Blake <ebb9@byu.net>
1066 Break circular require chain in _AS_LINENO_PREPARE.
1067 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
1068 disabled when reporting LINENO failure, since logging requires
1070 * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
1071 not m4_rename, since the latter is undocumented.
1072 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
1073 m4_rename, as it does not yet handle pushdef stacks.
1074 Reported by Ralf Wildenhues.
1076 2008-10-15 Eric Blake <ebb9@byu.net>
1078 Cleanups to previous patches.
1079 * doc/autoconf.texi (Portable Shell): Minor edits.
1080 (Limitations of Builtins): Touch up wording.
1081 * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
1082 (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
1084 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1086 Updates to shell portability documentation.
1087 * doc/autoconf.texi: Updates all references to "Portable Shell" and
1088 "Limitations of Builtins" to use three-argument commands.
1089 (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
1090 (Portable Shell): Move here discussion about "Where is the POSIX
1091 shell?" Mention that M4sh provides a SVR2 shell and takes care
1092 of unsetting variables if necessary. Talk about M4sh and not only
1093 Autoconf-generated scripts.
1094 (Special Shell Variables): Talk about M4sh and not only
1095 Autoconf-generated scripts. Don't talk about things that Autoconf
1096 does not do. Mention problems of $LINENO with shell functions.
1097 (Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
1098 discussion of eval bugs before discussion on proper use of eval.
1099 Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
1100 unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
1101 * NEWS: Update list of documented M4sh macros.
1103 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1105 Assume a (possibly buggy) `unset' is present after a
1106 `better shell' was found.
1107 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
1108 * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
1109 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
1110 alias for AS_UNSET, for backwards compatibility.
1111 (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
1112 the shell does not support unset.
1113 (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
1114 (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
1115 (AS_UNSET): Assume it is there but it might fail if the variable is
1116 not set. Use it throughout instead of $as_unset.
1118 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1120 Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
1121 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
1122 m4_require of _AS_DETECT_BETTER_SHELL.
1123 (_AS_CLEANUP): Add it here.
1124 (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
1126 (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
1127 (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
1128 (AS_PREPARE): Use _AS_SHELL_SANITIZE.
1129 (AS_INIT): Add m4_provide of itself.
1131 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1133 Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
1134 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
1135 "test x$foo = xyes".
1137 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1139 Trim down the size of the better-shell test.
1140 * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
1141 snippets into shell variables.
1144 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1146 Support a stack of LINENO values for AS_MESSAGE.
1147 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
1148 the line number emitted to the log file.
1149 (AS_LINENO_PUSH, AS_LINENO_POP): New.
1150 * tests/m4sh.at (LINENO Stack): New test.
1152 2008-10-14 Eric Blake <ebb9@byu.net>
1154 Correct previous patch.
1155 * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
1158 Document shell function environment pitfall.
1159 * doc/autoconf.texi (Shell Functions): Document bugs in bash,
1162 2008-10-14 Paolo Bonzini <bonzini@gnu.org>
1164 Use m4_require to implement AS_REQUIRE.
1165 * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
1166 (m4_require): Pass it.
1167 (m4_divert_require): New.
1168 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
1169 Remove comment about differences with m4_require.
1170 * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
1171 the expected behavior.
1172 (Nested AS_REQUIRE_SHELL_FN): New test.
1174 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1176 Test AS_LINENO_PREPARE.
1177 * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
1179 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1182 * tests/m4sh.at (as_me): New test.
1184 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1186 Add and document AS_INIT_GENERATED.
1187 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
1188 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
1189 * doc/autoconf.texi (Initialization macros): Document it.
1191 2008-10-13 Eric Blake <ebb9@byu.net>
1193 Use consistent shell function style.
1194 * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
1195 (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
1198 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1200 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
1201 contributors under m4 rather than shell comments.
1203 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1205 * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
1206 * doc/autoconf.texi (Initialization macros): Document them.
1207 (Portable Shell): Refer to AS_LINENO_PREPARE.
1208 * NEWS: Mention them.
1210 * bin/autoconf.as: Invoke AS_ME_PREPARE.
1211 * lib/autotest/general.m4: Likewise.
1213 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1215 * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
1217 2008-10-10 Eric Blake <ebb9@byu.net>
1219 Fix _AS_MKDIR_P usage.
1220 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
1221 match implementation.
1222 (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
1223 * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
1224 wording to better match behavior.
1226 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1228 * doc/autoconf.texi: Be less wary of shell functions.
1229 * NEWS: Document the increased use of shell functions.
1231 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1233 * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
1234 meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
1235 (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
1236 (_AS_PREPARE): Define shell functions.
1237 (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
1238 Define shell functions.
1240 2008-10-09 Eric Blake <ebb9@byu.net>
1242 Only prepare $as_me if it will be used.
1243 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
1245 (_AS_ECHO_LOG): Depend on $LINENO preparation.
1246 (AS_MESSAGE): Depend on $as_me preparation.
1247 (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
1249 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1251 * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
1252 until the M4SH-INIT diversion using _AS_ME_PREPARE.
1253 (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
1254 and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
1255 before _AS_LINENO_PREPARE.
1256 (AS_PREPARE): Include all the AS_REQUIREs manually.
1257 (_AS_ME_PREPARE): New.
1258 (_AS_LINENO_PREPARE): Use m4_defun.
1260 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1262 * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
1263 require _AS_EXPR_PREPARE.
1264 (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
1265 (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
1267 2008-10-08 Eric Blake <ebb9@byu.net>
1270 * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
1271 (fetch): ...into new target.
1272 (executable-update): Delete, now that it is unused.
1273 * maint.mk (update, local_updates, cvs_files, gnulib_repo)
1274 (wget-update, cvs-update): Likewise.
1275 * HACKING (Update the foreign files): Document new procedure.
1276 * GNUmakefile: Resync from upstream, via new 'make fetch'.
1277 * build-aux/config.guess: Likewise.
1279 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
1281 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
1282 (AS_INIT): Do not call it.
1284 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
1286 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
1287 _AS_UNSET_PREPARE in M4SH-SANITIZE.
1289 2008-10-08 Eric Blake <ebb9@byu.net>
1291 Avoid repeating required shell tests in suggested set.
1292 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
1293 Use m4_set, rather than m4_expand_once/m4_append.
1294 (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
1295 required tests out of suggested tests.
1296 Reported by Paolo Bonzini.
1298 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
1300 Add m4sh keyword to all m4sh.at tests.
1301 * tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
1304 2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1306 Document AS_VERSION_COMPARE.
1307 * doc/autoconf.texi (Programming in M4sh): Document
1311 Do not write to testsuite log fd before initialization.
1312 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
1313 Define fds only when initializing the log fd so early error
1314 messages do not try to write to it.
1315 * tests/autotest.at (Startup error messages): New test.
1316 * NEWS: Document this 2.63 regression.
1318 2008-10-07 Eric Blake <ebb9@byu.net>
1320 Ensure _AS_CLEANUP is defined.
1321 * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
1322 * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
1324 Improve m4sh maintainability.
1325 * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
1328 Fix m4 quoting in previous patch.
1329 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
1330 name prior to invoking AS_REQUIRE.
1331 Reported by Ralf Wildenhues.
1333 2008-09-18 Paolo Bonzini <bonzini@gnu.org>
1334 and Eric Blake <ebb9@byu.net>
1336 Add a separate diversion for shell functions.
1337 * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
1338 (AS_REQUIRE): Accept diversion parameter.
1339 (AS_REQUIRE_SHELL_FN): Use it.
1341 2008-10-06 Eric Blake <ebb9@byu.net>
1343 Add m4_default_quoted.
1344 * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
1345 (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
1346 * doc/autoconf.texi (Conditional constructs): Document it.
1349 Fix build with case-insensitive make, again.
1350 * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
1351 Reported via Keith Marshall, originally by newthinker in
1352 <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
1354 2008-10-06 Bruno Haible <bruno@clisp.org>
1356 Warn about /usr/ucb on Solaris.
1357 * doc/install.texi (Particular Systems): Recommend putting
1358 /usr/ucb late in PATH, if at all.
1360 2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1362 Fix more testsuite hang corner cases.
1363 * lib/autotest/general.m4: Use the serial code path if no test
1365 * tests/autotest.at (parallel test execution): Test -j and -jN
1366 with `-k notmatched'.
1368 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1370 Fix hang with `testsuite -k notmatched'.
1371 * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
1372 to one. Fixes hang with `-k notmatched'.
1374 2008-10-02 Eric Blake <ebb9@byu.net>
1376 Document more binary file portability traps.
1377 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
1378 reader that NUL and sed don't always mix.
1379 <tr>: Mention Solaris /usr/ucb/tr bug with \0.
1381 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1383 Implement parallel Autotest test execution: testsuite --jobs.
1384 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
1385 (AT_INIT): <at_jobs>: New variable.
1386 Accept -j, -jN, --jobs[=N], document them in --help output.
1387 Implement parallel driver loop using a FIFO, enabled with --jobs
1388 and if mkfifo works; otherwise, fall back to sequential loop.
1389 (AT_SETUP): Store, do not output summary progress line if
1391 * tests/autotest.at (parallel test execution, parallel truth)
1392 (parallel fallacy, parallel skip): New tests.
1393 * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
1394 the mkfifo requirement, and that --errexit may cause concurrent
1398 2008-09-20 Eric Blake <ebb9@byu.net>
1400 Fix sample isinf definition.
1401 * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
1404 Reported by David Cournapeau.
1406 2008-09-16 Eric Blake <ebb9@byu.net>
1408 Fix Erlang regression, introduced 2006-11-17.
1409 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
1410 caused by underquoting.
1411 * NEWS: Mention this fix.
1413 Reported by BJ Terry.
1415 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1417 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
1419 Mention Solaris sh ':' redirection bug.
1420 * doc/autoconf.texi (File Descriptors): Redirecting ':'
1421 in a loop causes bogus optimization with Solaris sh.
1423 2008-09-10 Eric Blake <ebb9@byu.net>
1425 Avoid testsuite bug when autom4te cache is disabled by user.
1426 * tests/tools.at (autoconf: forbidden tokens, basic): Enable
1427 cache, even if user normally disabled it.
1428 Reported by Bruno Haible.
1430 Avoid testsuite bug in presence of verbose config.site.
1431 * tests/base.at (Input/Output): Nullify config.site during test.
1432 Reported by Bob Friesenhahn.
1434 2008-09-09 Eric Blake <ebb9@byu.net>
1436 Release Version 2.63.
1437 * NEWS: Mention the release.
1439 Formatting tweaks to the manual.
1440 * doc/autoconf.texi (Introduction, Systemology)
1441 (File System Conventions, Portable C and C++)
1442 (Floating Point Portability): Allow URLs to split as needed.
1443 (Indices): Add entries, to work around texinfo bug on indices that
1444 start too close to a page break.
1445 (Particular Functions): Mention ftello.
1446 (Introduction, Language Choice): Use @enddots at sentence end.
1449 * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
1450 although for now, they are still manually sync'd.
1451 * build-aux/gnupload: Update.
1452 * build-aux/config.sub: Likewise.
1453 * GNUmakefile: Likewise.
1455 2008-09-06 Eric Blake <ebb9@byu.net>
1457 Mention that Automake already supports VPATH.
1458 * doc/autoconf.texi (Build Directories): Details in this section
1459 only apply to users avoiding automake.
1461 Reported by Matej Tyc.
1463 Relax tone when warning about cross-compiler names.
1464 * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
1465 with poorly named tools; the issue has been reported too many
1466 times in the last four years to pull support.
1467 * doc/autoconf.texi (Specifying Names, Generic Programs): Update
1468 documentation accordingly.
1470 Reported by Josef Tran and others, wording suggested by Ralf
1473 2008-09-01 Eric Blake <ebb9@byu.net>
1475 Improve AC_C_BIGENDIAN.
1476 * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
1477 universal builds require a config header.
1478 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments. Check
1479 AH_HEADER at the last possible moment, so that users can use
1480 AC_CONFIG_HEADER after this macro.
1481 Reported by Stepan Kasal.
1483 Fix manual date information.
1484 * doc/autoconf.tex: UPDATED refers to the day the manual was
1485 built, not the release date of Autoconf.
1486 Based on a bison patch by Akim Demaille.
1488 2008-08-27 Eric Blake <ebb9@byu.net>
1490 Fix off-by-one bug in _m4_shiftn.
1491 * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
1493 * tests/m4sugar.at (M4 loops): Test it.
1494 Reported by Akim Demaille.
1496 2008-08-26 Eric Blake <ebb9@byu.net>
1498 Improve INSTALL formatting.
1499 * doc/install.texi [!autoconf]: Ensure first paragraphs are
1500 indented like all others in a plain text rendering.
1501 * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
1502 Reported by Bruno Haible.
1504 2008-08-26 Stepan Kasal <skasal@redhat.com>
1506 Check for case sensitive make.
1507 * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
1508 * configure.ac: ... called here.
1509 * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
1510 ($(srcdir)/INSTALL): ...this, but enclose the rule in
1511 "if MAKE_CASE_SENSITIVE".
1513 2008-08-26 Eric Blake <ebb9@byu.net>
1515 Update invocation documentation.
1516 * doc/autoconf.texi (autoscan Invocation): Mention --debug.
1517 (autoreconf Invocation): Mention -v.
1518 (autom4te Invocation): Tie --freeze to -F, not -f.
1519 (autoupdate Invocation): Mention --prepend-include.
1520 * doc/install.texi (configure Invocation): Mention --help=short,
1521 --help=recursive, -n/--no-create, --prefix. Avoid TABs.
1522 * bin/autoscan.in ($help): Omit space before `...'.
1523 * bin/ifnames.in ($help): Likewise.
1524 * bin/autoconf.as (Usage): Likewise.
1525 * bin/autoreconf.in ($help): Likewise.
1526 * bin/autoheader.in ($help): Likewise.
1527 * bin/autom4te.in ($help): Likewise.
1528 * bin/autoupdate.in ($help): Likewise.
1529 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
1530 `[OPTION]...', rather than `[OPTIONS]'. Mention --silent. Indent
1533 Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
1534 * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
1535 (files_to_options): Avoid inheriting __m4_version__ from frozen
1536 file if current M4 does not support it.
1538 2008-08-25 Eric Blake <ebb9@byu.net>
1540 Adjust to recent m4 1.6 change to support m4_debugmode(d).
1541 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
1542 freeze-time decision of using faster 1.6 implementation...
1543 (m4_init): ...to a runtime decision, and add use of new debugmode
1546 2008-08-22 Peter O'Gorman <pogma@thewrittenword.com>
1548 Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
1549 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
1550 __APPLE_CC__ with possible -arch flags.
1551 * NEWS: Document it.
1553 2008-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1557 2008-08-22 Eric Blake <ebb9@byu.net>
1559 * TODO: Add an item for additional m4sugar looping constructs.
1560 Suggested by Ralf Wildenhues.
1562 Add reminder to keep dual implementations in sync.
1563 * lib/m4sugar/m4sugar.m4: Add comments.
1564 * lib/m4sugar/foreach.m4: Likewise.
1565 Suggested by Ralf Wildenhues.
1567 2008-08-22 Peter Eisentraut <peter_e@gmx.net> (tiny change)
1569 Format warning and error messages to match GCS.
1570 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
1571 (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
1572 messages with a lowercase letter, end them without punctuation.
1573 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
1574 * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
1575 * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
1577 * tests/fortran.at (GNU Fortran): Likewise.
1578 * tests/torture.at (Deep Package): Likewise.
1580 2008-08-21 Eric Blake <ebb9@byu.net>
1582 Avoid extra side effects in m4sugar list expansion.
1583 * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
1585 (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
1586 duplicate side effects.
1587 (m4_version_compare): Adjust caller.
1588 * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
1589 (_m4_list_cmp_raw): ...to match m4sugar.
1590 * doc/autoconf.texi (Looping constructs): Document the behavior of
1592 * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
1593 Ensure only one side effect.
1594 (recursion): Fix test typo.
1595 Reported by Ralf Wildenhues.
1597 2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1599 * TODO: Add item for compiler default flags.
1600 Suggested by Bruno Haible.
1602 * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
1605 2008-08-21 Eric Blake <ebb9@byu.net>
1607 Formatting improvements.
1608 * doc/autoconf.texi: Use @file and @command, rather than @code,
1611 Document another make bug.
1612 * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
1613 make, GNU make <= 3.80.
1615 Tweak wording about SHELL in Makefile.
1616 * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
1617 the importance of proper SHELL settings.
1618 Reported by Bruno Haible, in
1619 http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
1621 2008-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1623 Avoid timestamp races for updated input.
1624 * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
1626 * tests/tools.at (autotools and whitespace in file names): Add
1627 --force for repeated invocations.
1629 2008-08-20 Bruno Haible <bruno@clisp.org>
1631 Add section to INSTALL about particular systems.
1632 * doc/install.texi (Particular systems): New node.
1633 * doc/autoconf.texi: Adjust menus.
1635 2008-08-19 Bruno Haible <bruno@clisp.org>
1636 and Peter O'Gorman <peter@pogma.com>
1638 Mention universal binaries in INSTALL.
1639 * doc/install.texi (Compiling For Multiple Architectures): Explain
1640 how to create universal binaries on MacOS X.
1642 2008-08-19 Jim Meyering <jim@meyering.net>
1643 Eric Blake <ebb9@byu.net>
1644 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1646 Avoid shell parse errors after interrupt due to empty ``.
1647 * doc/autoconf.texi (Shell Substitutions): Document the issue.
1648 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
1649 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
1650 "test AS_VAR_GET([...]) = yes"
1651 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
1652 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
1653 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
1654 (_AC_CHECK_HEADER_DIRENT): Likewise.
1655 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1656 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1657 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
1658 temporary variable to work around the issue.
1659 * tests/foreign.at (Libtool): Quote result of command
1662 2008-08-18 Eric Blake <ebb9@byu.net>
1664 Test m4_transform without tickling shell bugs.
1665 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
1666 something more manageable.
1667 * tests/m4sugar.at (recursion): Move stress test of
1668 m4_transform_pair here.
1669 Reported by Ralf Wildenhues.
1671 Let 'git diff' give better context for doc updates.
1672 * .gitattributes (*.texi*): Add new entry.
1673 * README-hacking: Mention how to use it.
1674 Inspired by a coreutils patch by Jim Meyering.
1676 2008-08-15 Eric Blake <ebb9@byu.net>
1678 Fix m4_map regression from 2007-10-16.
1679 * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
1680 (m4_map): Ignore empty sublists. For a list consisting of only an
1681 empty sublist, this restores 2.61 behavior of being a no-op.
1682 (m4_map_sep): Likewise, and expand separator.
1683 (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
1684 (_m4_map): Rewrite, to be common base for all four variants.
1685 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
1686 * tests/m4sugar.at (m4@&t@_map): Add tests.
1687 * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
1688 macros, and mention ramifications of expanded separator.
1689 * NEWS: Mention the change.
1691 2008-08-14 Eric Blake <ebb9@byu.net>
1693 Implement m4_transform_pair, to speed up AS_IF.
1694 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
1695 macros, undocumented for now.
1696 * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
1697 the m4 1.4.x counterparts.
1698 * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
1699 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
1701 2008-08-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1703 * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
1704 (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
1705 warn about previous AC_CANONICAL_TARGET.
1706 (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
1707 unusable in the non-cross-compiling case.
1708 * NEWS, THANKS: Update.
1709 Report by Dave Erickson.
1711 2008-08-12 Eric Blake <ebb9@byu.net>
1714 * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
1715 implementation for m4 1.4.x.
1716 * tests/m4sugar.at (m4@&t@_bmatch): New test.
1717 (recursion): Test the linear nature.
1718 * NEWS: Document the fix.
1720 Fix m4_cond corner case.
1721 * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
1722 implementation allows concatenation with subsequent text.
1723 * tests/m4sugar.at (m4@&t@_cond): Enhance test.
1725 Add test for m4_cond.
1726 * tests/m4sugar.at (m4@&t@_cond): New test.
1727 Reported by Ralf Wildenhues.
1729 2008-08-06 Eric Blake <ebb9@byu.net>
1731 Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
1732 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
1733 unique key for the AH_VERBATIM.
1734 * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
1735 * NEWS: Mention the fix.
1736 Reported by Andreas Schwab, analyzed by Stepan Kasal.
1738 Add linear m4_cond for m4 1.4.x.
1739 * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
1740 (_m4_cond): ...this, for fewer macros per iteration.
1741 * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
1742 * tests/m4sugar.at (recursion): Test it.
1743 * NEWS: Document the linear guarantee.
1745 Speed up diversion handling.
1746 * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
1747 (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
1750 AC_C_CHAR_UNSIGNED is not strictly necessary.
1751 * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
1752 portable alternative to this macro.
1754 Reported by Hallvard B Furuseth.
1756 Update some files from upstream.
1757 * GNUmakefile: Update.
1758 * build-aux/announce-gen: Likewise.
1759 * build-aux/config.guess: Likewise.
1760 * build-aux/config.sub: Likewise.
1761 * build-aux/git-version-gen: Likewise.
1762 * build-aux/texinfo.tex: Likewise.
1763 * build-aux/vc-list-files: Likewise.
1764 * doc/make-stds.texi: Likewise.
1765 * doc/standards.texi: Likewise.
1767 2008-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1769 Fix AC_CONFIG_FILES([$var]) 2.62 regression.
1770 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
1771 whitespace in $ac_config_files and $ac_config_headers.
1772 * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
1773 Report by Andreas Schwab and Per Øyvind Karlsen.
1776 2008-07-30 Eric Blake <ebb9@byu.net>
1778 Fix bugs in previous version of m4_bpatsubsts.
1779 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
1780 allow concatenation with subsequent text.
1781 * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
1783 2008-07-29 Eric Blake <ebb9@byu.net>
1785 Add linear m4_bpatsubsts for m4 1.4.x.
1786 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
1787 about anchors, even for only one substitution.
1788 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
1789 * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
1790 Clarify behavior with regard to quoting.
1791 * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
1792 (m4@&t@_bpatsubsts): New test.
1793 * NEWS: Document the linear guarantee.
1795 Tweak m4_do semantics.
1796 * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
1798 * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
1799 arguments, and avoid infinite loop.
1800 * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
1802 * tests/m4sugar.at (m4@&t@_do): New test.
1805 * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
1806 (_m4_for): Take additional parameter, for fewer m4_indir calls.
1807 * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
1808 (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
1809 * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
1810 semantic change caused by the optimization.
1811 * tests/m4sugar.at (M4 loops): Test the new semantics.
1813 One more m4_list_cmp tweak.
1814 * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
1815 * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
1816 * tests/m4sugar.at (recursion): Test both directions of list
1819 Add m4_reverse, and improve m4_list_cmp.
1820 * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
1821 (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
1823 * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
1825 * tests/m4sugar.at (recursion): Test it.
1826 * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
1828 (Text processing Macros) <m4_append>: Cross-reference to m4_set.
1829 * NEWS: Mention new macro.
1831 2008-07-28 Eric Blake <ebb9@byu.net>
1833 Avoid _m4_shiftn for m4 1.6 speedup.
1834 * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
1835 (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
1836 * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
1838 Implement O(n) unique element set creation.
1839 * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
1840 (m4_set_contains, m4_set_contents, m4_set_delete)
1841 (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
1842 (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
1843 (m4_set_size, m4_set_union): New macros.
1844 * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
1846 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
1847 new m4_set API for the set most likely to be large.
1848 * doc/autoconf.texi (Set manipulation Macros): New node.
1849 * NEWS: Mention new macros.
1850 * tests/m4sugar.at (m4@&t@_set): New test.
1852 2008-07-25 Eric Blake <ebb9@byu.net>
1854 Avoid infinite aclocal loop.
1855 * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
1856 that aclocal doesn't insist on finding m4sugar/foreach.m4.
1858 Provide O(n) replacement macros for M4 1.4.x.
1859 * lib/m4sugar/foreach.m4: New file.
1860 (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
1861 (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
1862 macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
1863 1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
1865 * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
1866 older M4 is assumed.
1867 (m4_map_sep): Optimize.
1868 (m4_max, m4_min): Refactor, by adding...
1869 (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
1870 (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
1871 * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
1873 * tests/m4sugar.at (M4 loops): Add a stress test that takes
1874 forever if m4_foreach and friends are quadratic.
1875 * NEWS: Mention this.
1877 2008-07-21 Eric Blake <ebb9@byu.net>
1879 Ignore undefined macros, necessary with m4 1.6.
1880 * bin/autoupdate.in (_au___undefine): New macro,...
1881 (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
1882 Reported by Ralf Wildenhues.
1885 * GNUmakefile: Grab from upstream, to fix issue where 'make
1886 install' would allow installation of stale version string.
1888 2008-07-19 Eric Blake <ebb9@byu.net>
1890 Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
1891 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
1892 through all variables, per POSIX and newer m4.
1893 (_m4_text_wrap): Exploit the looping capabilities.
1894 * tests/m4sugar.at (m4@&t@_defn): Test this.
1895 * NEWS: Document it.
1896 * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
1897 <m4_undefine>: Likewise.
1899 Reduce overhead of m4_builtin([defn]).
1900 * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
1901 internal macros, which are slightly more efficient than
1902 m4_builtin([defn]) and company.
1903 (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
1904 (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
1905 (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
1906 (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
1907 (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
1908 (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
1909 (m4_version_prereq): Use them.
1911 Use warnings from m4 when available.
1912 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
1913 define slower wrapper if m4 will warn on our behalf; key off of
1914 __m4_version__, added alongside the new warnings in m4 1.6.
1915 * tests/m4sugar.at (m4@&t@_defn): New test.
1917 2008-07-18 Eric Blake <ebb9@byu.net>
1920 * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
1921 * tests/m4sugar.at (m4@&t@_join): Test them.
1922 * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
1926 2008-07-17 Stepan Kasal <skasal@redhat.com>
1927 and Eric Blake <ebb9@byu.net>
1929 Improve documentation of config.h.in template rules.
1930 * doc/autoconf.texi (Header Templates): Mention rules on comments
1931 and whitespace, and that the user cannot rely on #undef to survive
1932 through config.status.
1934 2008-07-16 Eric Blake <ebb9@byu.net>
1936 Revert m4_prepend; it is less efficient, and unused by bison.
1937 * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
1938 (m4_prepend_uniq_w): Delete addition from 2008-07-11.
1939 (_m4_grow_uniq_1): Rename back...
1940 (_m4_append_uniq): ...to this.
1941 * NEWS: Revert NEWS blurb.
1942 * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
1943 * tests/m4sugar.at (m4@&t@_prepend): Delete.
1945 2008-07-15 Eric Blake <ebb9@byu.net>
1947 Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
1948 * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
1949 definition for non-Autoconf clients of m4sugar.
1951 2008-07-14 Eric Blake <ebb9@byu.net>
1953 Tighten bound of potential speed of m4_append.
1954 * doc/autoconf.texi (Text processing Macros) <m4_append>
1955 <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
1957 * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
1958 Analysis by Bruno Haible.
1960 2008-07-11 Eric Blake <ebb9@byu.net>
1962 Inherit improvements from bison's fork of m4sugar.
1963 * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
1964 find version.texi, since bison does not provide it.
1965 (m4_prepend): Add new macro, from bison.
1966 (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
1968 (_m4_append_uniq): Rename...
1969 (_m4_grow_uniq_1): ...to this to share implementation, and
1970 optimize initial assignment.
1971 (m4_append_uniq_w): Adjust caller.
1972 * NEWS: Document new macros.
1973 * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
1974 speed consideration.
1975 <m4_prepend>: Document the new prepend variants.
1976 * tests/m4sugar.at (m4@&t@_prepend): New test.
1978 Work around M4 1.6 warning on undefined macros.
1979 * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
1980 not already available as builtins.
1982 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1984 * doc/autoconf.texi (@dvar): Remove trailing newline.
1985 (@ovar): Likewise. Fix macro documentation.
1987 2008-07-02 Stepan Kasal <skasal@redhat.com>
1989 Add quotes to the header of autoscan-generated source.
1990 * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
1992 2008-06-28 Andreas Schwab <schwab@suse.de>
1994 * doc/autoconf.texi (autoscan Invocation): Fix spacing.
1995 (autoconf Invocation): Likewise.
1996 (autoreconf Invocation): Likewise.
1997 (autoheader Invocation): Likewise.
1998 (autom4te Invocation): Likewise.
2000 2008-06-19 Eric Blake <ebb9@byu.net>
2002 Add comment explaining recent patch.
2003 * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
2004 of * vs. ? globbing.
2006 2008-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
2009 linking a file to itself.
2010 Report by Bruno Haible.
2012 2008-06-19 Eric Blake <ebb9@byu.net>
2015 * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
2016 Reported by Stepan Kasal.
2018 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2020 Reorganize autotest files, factorize for parallel execution.
2021 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
2022 earlier in the file.
2023 (AT_INIT): Create line number cache in
2024 $at_suite_dir/at-source-lines.
2025 <at_helper_dir>: New directory at-groups below $at_suite_dir.
2026 Add comment explaining the new directory structure.
2027 (at_func_group_prepare, at_func_group_postprocess): New shell
2028 functions to factorize per-test group work. Keep the actual
2029 test execution outside of a shell function in order to avoid
2030 zsh 4.x exit status bugs.
2031 <at_check_line_file, at_status_file, at_stdout, at_stder1>
2032 <at_stderr, at_test_source>: Turn these into per-group files
2033 below $at_helper_dir. Also store test results there in files
2034 named pass, fail, xpass, xfail, skip. Let the parent collect
2035 results from $at_helper_dir. Adjust summary statistics
2036 computation and result output.
2038 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2040 Fix '#undef variable /* comment */' transform in config headers.
2041 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
2042 undefined preprocessor macros that are followed by a comment
2043 in the header template, do not create nested comments in the
2045 * tests/torture.at (@%:@define header templates): Extend test.
2047 Report by Karsten Hopp <karsten@redhat.com>.
2049 2008-06-09 Eric Blake <ebb9@byu.net>
2051 Mark AC_TYPE_SIGNAL as obsolete.
2052 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
2053 * doc/autoconf.texi (Function Portability): Update documentation.
2054 (Particular Types): Move AC_TYPE_SIGNAL...
2055 (Obsolete Macros): ...here, and mention why.
2056 * NEWS: Mention the change.
2058 Allow lib64 as a default X library location.
2059 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
2060 * NEWS: Mention the change.
2062 Reported by Brad Walker.
2064 2008-06-05 Eric Blake <ebb9@byu.net>
2066 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
2067 * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
2068 converting it to lower case.
2069 * tests/autotest.at (Keywords and ranges): Test this.
2070 * NEWS: Document the fix.
2072 Reported via Karsten Hopp, by Jochen Schmitt in
2073 https://bugzilla.redhat.com/show_bug.cgi?id=449973
2075 2008-06-03 Eric Blake <ebb9@byu.net>
2077 Fix 'make dist' regression from 2008-05-08.
2078 * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
2079 GNUmakefile's _autoconf rule removes INSTALL.
2081 2008-05-27 Eric Blake <ebb9@byu.net>
2083 Document Solaris /bin/sh redirection pitfall.
2084 * doc/autoconf.texi (File Descriptors): Mention redirection bug.
2086 2008-05-14 Eric Blake <ebb9@byu.net>
2088 Improve documentation of ! issues.
2089 * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
2090 Reported by Noah Misch.
2092 Document some FreeBSD shell bugs.
2093 * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
2094 in compound pipe commands.
2095 <export>: Mention difference of exporting an undefined variable.
2096 (Shell Functions): Mention loss of $? in entry to shell functions.
2097 Extracted from the git mailing list.
2099 2008-05-13 Stepan Kasal <kasal@ucw.cz>
2101 Work around MSYS and Cygwin bugs when dealing with trailing space.
2102 * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
2103 even when platform bugs are tickled.
2104 Reported by Keith Marshall and Eric Blake.
2106 2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2108 Let AC_MSG_FAILURE report pwd.
2109 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
2110 Output $ac_pwd along with fatal failure.
2111 * tests/torture.at (Deep Package): Extend test.
2112 Reported numerous times against GCC, and probably other packages.
2114 2008-05-12 Eric Blake <ebb9@byu.net>
2116 Enforce --help and --version compliance.
2117 * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
2119 2008-05-08 Keith Marshall <keithmarshall@users.sourceforge.net> (tiny change)
2121 Avoid case-insensitive `make install' vs. `INSTALL' conflict.
2122 * Makefile.am ($(srcdir)/INSTALL): Replace all references...
2123 ($(abs_srcdir)/INSTALL): ...with this.
2125 2008-05-06 Eric Blake <ebb9@byu.net>
2128 * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
2130 Avoid overfull \hbox.
2131 * doc/autoconf.texi (Versioning): Reword to fit line size.
2133 Document $(( )) pitfalls.
2134 * doc/autoconf.texi (Shell Substitutions): Mention octal
2135 vs. decimal. Mention autotest's at_func_arith.
2137 Improve behavior of './testsuite 01'.
2138 * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
2139 Alter usage to eval its arguments, in order to normalize away
2140 leading zero. All callers updated.
2141 * tests/autotest.at (Keywords and ranges): Test range
2142 normalization with leading 0.
2144 2008-04-26 Eric Blake <ebb9@byu.net>
2146 Mention Solaris /usr/ucb/tr pitfall.
2147 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
2148 Reported by Bruno Haible and Jim Meyering.
2150 2008-04-24 Eric Blake <ebb9@byu.net>
2152 Mention m4sugar's internal quote strings.
2153 * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
2154 in m4sugar, and how to still output it literally.
2155 * tests/m4sugar.at (m4@&t@_split): And test it.
2156 Reported by Joel E. Denny.
2158 2008-04-23 Eric Blake <ebb9@byu.net>
2160 Allow unbalanced () in m4_expand.
2161 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
2163 (m4_noquote, _m4_split): Use consistent complex quote.
2164 * tests/autotest.at (Left paren, Right paren): Test this.
2165 (Parentheses): Ensure new quadrigraphs still work.
2166 (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
2167 * NEWS: Mention the fix.
2168 * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
2169 require quadrigraphs for ().
2170 (Evaluation Macros) <m4_expand>: Relax the restriction against
2172 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2173 (Writing Testsuites) <AT_SETUP>: Likewise.
2174 Reported by Joel E. Denny, fix suggested by Noah Misch.
2176 2008-04-22 Eric Blake <ebb9@byu.net>
2178 Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
2179 * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
2180 (handle_traces): Likewise.
2181 * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
2182 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
2183 * doc/autoconf.texi (Quadrigraphs): Document them.
2184 (Evaluation Macros) <m4_expand>: Enhance documentation.
2185 (Text processing Macros) <m4_text_box>: Document cases where
2186 quadrigraphs can help for problemetic unbalanced parentheses.
2187 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2188 (Writing Testsuites) <AT_SETUP>: Likewise.
2189 (Limitations of Builtins) <case>: Consolidate text on unbalanced
2190 parentheses, and add an example of creative comments.
2191 * NEWS: Document the addition.
2192 Reported by Joel E. Denny.
2194 2008-04-16 Eric Blake <ebb9@byu.net>
2196 Document pdksh exec behavior.
2197 * doc/autoconf.texi (Limitations of Builtins) <exec>: New
2199 Discovered by Jim Meyering.
2201 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2203 * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
2204 arguments to the inner suite.
2205 (errexit, input from stdin): New tests.
2207 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2209 * NEWS: Post-release update.
2211 2008-04-10 Eric Blake <ebb9@byu.net>
2213 AC_AUTOCONF_VERSION might contain arbitrary macro names.
2214 * doc/autoconf.texi (Versioning): Mention problem with expansion.
2215 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
2217 2008-04-09 Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de> (tiny change)
2219 Flush buffered output before exit.
2220 * bin/autom4te.in (handle_output): Explicitly close file.
2222 See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
2224 2008-04-08 Eric Blake <ebb9@byu.net>
2226 Generate web docs for 2.62.
2227 * doc/autoconf.texi (Evaluation Macros): Fix typo.
2228 (Notices): Use recommended means to escape RCS keyword.
2229 * cfg.mk (gnulib_dir): New macro.
2230 (web-manual): New target.
2232 2008-04-05 Eric Blake <ebb9@byu.net>
2234 Release Version 2.62.
2235 * NEWS: Mention the release.
2237 2008-04-04 Stepan Kasal <kasal@ucw.cz>
2238 and Eric Blake <ebb9@byu.net>
2240 Return back to GPLv2+, until the text of the exceptions is
2241 finalized, reverting the change from 2007-07-03 and the first
2242 part of the change from 2007-07-20.
2243 * COPYING: Revert to GPLv2.
2244 * COPYINGv3: New file, since some auxiliary build tools, used for
2245 building autoconf and not installed, are GPLv3.
2246 * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
2247 * NEWS: Remove mention of GPLv3.
2248 * README: Clarify situation regarding GPLv3.
2250 2008-04-05 Eric Blake <ebb9@byu.net>
2252 Prepare for release.
2253 * maint.mk (announcement): Avoid deleted option.
2254 * cfg.mk (release_archive_dir): Use default.
2255 * build-aux/gnupload: New file, from automake/gnulib.
2256 * Makefile.am (EXTRA_DIST): Distribute it.
2257 * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
2260 2008-04-05 Jim Meyering <meyering@redhat.com>
2261 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2263 Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
2264 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
2265 is the EOL marker, skip a step that would remove and translate
2266 carriage return bytes.
2268 Reported by Elbert Pol.
2270 2008-04-05 Eric Blake <ebb9@byu.net>
2272 Avoid some autoreconf -Wall warnings.
2273 * configure.ac: Use proper quoting, to be a good example.
2274 (PACKAGE_NAME): Remove setting covered by autoconf.
2275 (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
2276 * doc/Makefile.am (TEXI2DVI): Remove settings covered by
2278 (html, autoconf_1.html, standards_1.html): Likewise.
2279 (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
2280 * Makefile.am (html): Likewise.
2281 * doc/autoconf.texi (Quoting and Parameters): Add missing section
2283 * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
2284 warning about our override, until Automake is fixed.
2285 * README-hacking: Document minimum requirements for bootstrap.
2287 2008-04-03 Eric Blake <ebb9@byu.net>
2289 Fix version number generation in man pages.
2290 * Makefile.am (EXTRA_DIST): Distribute .version.
2291 (.version): New rule.
2292 * man/Makefile.am (common_dep): Depend on .version, not
2294 (.x.1): Use package name for version string.
2295 * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
2296 * build-aux/git-version-gen: Sync from upstream.
2298 More maintainer tweaks: pass 'make maintainer-distcheck'.
2299 * GNUmakefile (_is-dist-target): Sync from upstream.
2300 * build-aux/vc-list-files: Sync from upstream, yet again.
2301 * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
2302 * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
2304 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
2306 Fix VPATH 'make syntax-check'.
2307 * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
2308 (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
2309 (author_mark_check): Avoid error message.
2310 * build-aux/vc-list-files: Sync from upstream again.
2311 * build-aux/texinfo.tex: Likewise.
2313 Sync files from upstream, and pass 'make syntax-check'.
2314 * config/announce-gen: Move...
2315 * build-aux/announce-gen: ...here, and sync from gnulib.
2316 * Makefile.am (EXTRA_DIST): Adjust accordingly.
2317 * cfg.mk (announce_gen): Likewise.
2318 (prev_version_file): Delete, relying on default in maint.mk.
2319 (gpg_key_ID): New macro.
2320 (url_dir_list): Rewrite to match coreutils.
2321 * config/prev-version.txt: Move...
2322 * .prev-version: ...here, and adjust to 2.61.
2323 * build-aux/vc-list-files: Sync from coreutils.
2324 * maint.mk: Resynchronize with coreutils, where possible.
2325 (ME): Remove $(srcdir) from definition.
2327 (GIT, VC, VC-tag): New macros.
2328 (CVS_LIST, CVS_LIST_EXCEPT): Rename...
2329 (VC_LIST, VC_LIST_EXCEPT): ...to this.
2330 (cvs-tag-check): Delete.
2331 (cvs-diff-check): Rename...
2332 (vc-diff-check): ...to this.
2333 (sc_file_system): Allow FHS acronym.
2334 * doc/autoconf.texi (Particular Functions): Recommend
2335 unconditional <config.h>.
2336 * build-aux/config.guess: Sync from upstream (manually).
2337 * build-aux/config.sub: Likewise.
2338 * build-aux/texinfo.tex: Likewise.
2339 * doc/make-stds.texi: Likewise.
2340 * doc/standards.texi: Likewise.
2341 * .gitattributes: Ignore whitespace problems in upstream files.
2343 2008-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2345 * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
2347 Report by Peter O'Gorman.
2349 2008-04-02 Eric Blake <ebb9@byu.net>
2351 Recommend the just-released M4 1.4.11.
2352 * NEWS: Update recommendation.
2354 * doc/autoconf.texi (Introduction): Likewise.
2355 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
2357 2008-04-01 Eric Blake <ebb9@byu.net>
2359 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
2362 2008-03-28 Peter O'Gorman <peter@pogma.com>
2364 Find X11 on Mac OS X too.
2365 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
2366 Check for libX11 with extensions dylib la and dll too.
2368 Reported by Martin Costabel.
2370 2008-03-28 Eric Blake <ebb9@byu.net>
2372 Update TODO based on completed tasks.
2373 * TODO (AC_PROG_INSTALL takes multiple files): Done.
2374 (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
2375 (AC_COMPILE_IFELSE documentation): Done.
2376 (Tracing builtins): Done, now that we require M4 1.4.5.
2377 (AC_PROG_CC_POSIX suggestion, providing header files)
2378 (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
2379 (cache consistency): Done with precious variables.
2381 2008-03-26 Eric Blake <ebb9@byu.net>
2383 Document --trace=macro:format in --help output.
2384 * bin/autom4te.in (help): Mention optional trace format.
2385 * bin/autoconf.as (usage): Likewise.
2387 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
2388 typos in last patch.
2389 Reported by Ralf Wildenhues.
2391 2008-03-26 Jim Meyering <meyering@redhat.com>
2393 Fix texinfo syntax error.
2394 * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
2396 2008-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2398 Warn, not fail on whitespace-only precious variable differences.
2399 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
2400 precious variable differences less ambiguous with `ugly-quotes'.
2401 If their settings differ only in whitespace, do not fail, but
2402 reuse the old value.
2403 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
2404 an optional status and expected-warning argument. Fix m4
2405 quotation for initial value.
2406 (AC_ARG_VAR): Also test for whitespace-only differences, and
2407 that the old value is retained in this case.
2408 * doc/autoconf.texi (Setting Output Variables): Document this.
2410 Report and initial patch by Paolo Bonzini.
2412 2008-03-26 Eric Blake <ebb9@byu.net>
2414 Document busybox sed bug.
2415 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
2416 restrictions when using back-references.
2417 Reported by Vincent Lefevre:
2418 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
2420 Document Automake interaction with AC_CONFIG_MACRO_DIR.
2421 * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
2424 Reported by Chris Pickett.
2426 2008-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2428 * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
2430 * tests/local.at (AT_CHECK_M4): Factorize warning output
2432 Suggested by Eric Blake.
2434 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2436 Fix .exe-related test failure on MinGW.
2437 * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
2438 for comparing warning output.
2440 Fix Fortran testsuite failures with gfortran 4.3.
2441 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
2442 verbose compiler output, skip lines that set variables; gfortran
2443 4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
2445 Report by Vincent Lefèvre.
2447 2008-03-21 Eric Blake <ebb9@byu.net>
2449 * GNUmakefile: Resynchronize with gnulib.
2451 Document more uses of $cross_compiling.
2452 * doc/autoconf.texi (Runtime): Document that a temporary override
2455 Reported by Ineiev, example by Ralf Wildenhues.
2457 Don't swallow $1 in textual local variables.
2458 * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
2459 expansion of text arguments, as that swallows $1.
2460 (m4_text_wrap): Likewise, by splitting out...
2461 (_m4_text_wrap): ...new helper macro. Also, allow arbitrary
2462 expression for width.
2463 * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
2464 (m4@&t@_combine): Likewise.
2466 2008-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2468 Avoid leftover files on Leopard.
2469 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
2470 directory created on darwin.
2471 (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
2472 left over from a broken link.
2473 * tests/c.at (AC_NO_EXECUTABLES (working linker))
2474 (AC_NO_EXECUTABLES (broken linker)): New tests.
2475 Report by Gary V. Vaughan.
2477 * lib/autom4te.in (Automake-preselections): Trace
2478 _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
2480 2008-03-20 Eric Blake <ebb9@byu.net>
2482 Kill more CVS references.
2483 * README-cvs: Delete. See README-hacking instead.
2484 * README-hacking: Update wording, based on older file.
2485 * BUGS: Remove CVS mention.
2487 2008-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2489 * tests/tools.at (autotools and whitespace in file names): Skip
2490 if aclocal is not present.
2492 2008-03-20 Eric Blake <ebb9@byu.net>
2494 Sync GNUmakefile with gnulib.
2495 * GNUmakefile (Makefile.cfg): Rename...
2496 (cfg.mk): ...to this, and make optional.
2497 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
2498 (Makefile.maint): Rename...
2499 (maint.mk): ...to this.
2500 (all) [!_have-Makefile]: Rename...
2501 (abort-due-to-no-makefile): ...to this, and invoke via
2502 .DEFAULT_GOAL to pick up all targets.
2503 * Makefile.cfg: Rename...
2504 * cfg.mk: ...to this.
2505 * Makefile.maint: Rename...
2506 * maint.mk ...to this.
2507 (ME): Reflect name change.
2508 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
2509 rather than hard-coded name.
2510 * GNUmakefile.cfg: Delete; move rules into cfg.mk.
2511 * Makefile.am (EXTRA_DIST): Reflect file name changes.
2512 * .x-sc_prohibit_atoi_atof: Likewise.
2513 * lib/freeze.mk: Likewise.
2515 2008-03-19 Stepan Kasal <kasal@ucw.cz>
2517 * doc/autoconf.texi (Introduction): Improve the paraphrase of
2518 Henry Spencer's quotation.
2520 2008-03-19 Eric Blake <ebb9@byu.net>
2522 AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
2523 * bin/autoscan.in (output): Avoid obsolete spelling.
2524 * tests/local.at (AC_STATE_SAVE): Update usage.
2526 Reported by John Calcote.
2528 Emphasize that ease of configure triumphs over ease of autoconf.
2529 * doc/autoconf.texi (Introduction): Expand on primary
2530 vs. secondary goal of autoconf.
2532 Inspired by Paul Smith.
2534 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2536 * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
2537 $hint, show if the executing program does not exist.
2538 (xsystem_hint): New function, like xsystem but allows to pass
2540 * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
2542 Report by Bruce Korb.
2544 2008-03-14 Stepan Kasal <kasal@ucw.cz>
2546 * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
2547 tests/mktests.sh, tests/wrapper.as: Fix typos.
2549 2008-03-12 Eric Blake <ebb9@byu.net>
2551 Fix yesterday's regression in m4_wrap([$1]).
2552 * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
2553 text, since it may contain text that looks like parameters.
2554 * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
2556 2008-03-11 Eric Blake <ebb9@byu.net>
2558 Improve error messages for common testsuite bugs.
2559 * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
2560 macros for defining order-enforced macros.
2561 (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
2562 (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
2563 messages when order violations are detected.
2564 * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
2565 (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
2566 (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
2567 (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
2568 (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
2569 (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
2570 (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
2571 (Banner-only test suite): New tests.
2572 Reported by Christopher Hulbert.
2574 Tweak m4_wrap to force FIFO or LIFO semantics.
2575 * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
2576 (m4_wrap_lifo, _m4_wrap): New macros.
2577 * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
2578 order, prior to m4sugar's.
2579 (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
2581 * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
2582 known order, prior to m4sh's.
2583 * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
2585 (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
2587 * tests/m4sh.at (AS_INIT cleanup): New test.
2588 * NEWS: Document the change.
2590 2008-03-10 Eric Blake <ebb9@byu.net>
2592 Encode nested autotest data.
2593 * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
2594 (unusual file names): Likewise.
2595 (m4_pattern_allow): Remove loophole, to make it easier to catch
2596 poorly written tests.
2598 Factor some autotest tests.
2599 * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
2600 common initialization.
2601 (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
2602 (whitespace in absolute testdir, unusual file names): Use it.
2604 2008-03-06 Eric Blake <ebb9@byu.net>
2606 Minor documentation fix.
2607 * doc/autoconf.texi (Evaluation Macros): Fix typo.
2609 2008-03-04 Eric Blake <ebb9@byu.net>
2611 Make AT_CHECK act like a simple command.
2612 * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
2613 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
2615 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2617 On MinGW, substitution of CR and 0xFF fails.
2618 * tests/torture.at (Substitute and define special characters):
2619 MinGW awk cannot handle 0xFF, and on MinGW, the test does the
2622 2008-03-04 Eric Blake <ebb9@byu.net>
2624 Pull in recent maintainer improvements from coreutils.
2625 * GNUmakefile (_is-dist-target): 'make distclean' should not
2627 (_dummy): Change directories before removing autom4te.cache.
2628 (check dist distcheck install) [!_have-Makefile]: Provide nicer
2630 * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
2631 builds, after initial bootstrap.
2632 * Makefile.am (distclean-local): Work around current automake bug.
2633 * Makefile.maint (ME): Allow VPATH usage.
2635 Use git-merge-changelog when available.
2636 * .gitattributes: New file.
2637 * README-hacking: Document use of git-merge-changelog.
2639 Work around cygwin bug.
2640 * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
2641 "touch 't\'" creates regular file 't'.
2643 Ignore tests that require read-only directories under root.
2644 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
2645 no-write portion if user has root-like privileges.
2647 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2649 * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
2651 2008-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2653 autoreconf -m now honors $MAKE.
2654 * bin/autoreconf.in ($run_make): Renamed from ...
2655 ($make): ... this. Use now as command to run `make',
2656 overridden by $MAKE. Document this in --help output.
2657 * doc/autoconf.texi (autoreconf Invocation): Document
2658 all environment variables honored by autoreconf.
2660 Report by Paul Eggert.
2662 2008-03-03 Eric Blake <ebb9@byu.net>
2664 Documentation improvements.
2665 * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
2666 (Evaluation Macros): Drop `1' suffix from metasyntax variable name
2667 that preceeds @dots. Improve wording.
2668 (Text processing Macros): Drop `1' suffix from metasyntax variable
2669 name that preceeds @dots.
2670 (Number processing Macros): Drop `1' suffix from metasyntax
2671 variable name that preceeds @dots. Improve wording.
2672 * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
2673 Suggested by Ralf Wildenhues.
2675 2008-03-02 Jim Meyering <meyering@redhat.com>
2677 Don't infloop upon "make dist".
2678 * GNUmakefile: Merge from coreutils.
2679 * Makefile.am (dist-hook): Inject .tarball-version into tarball,
2681 * configure.ac (AC_INIT): Use .tarball-version, not .version.
2682 * build-aux/git-version-gen: Update from gnulib.
2684 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2686 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2687 Before using /dev/full, check that it is a writable character
2689 Report by Benoit Sigoure and Eric Blake.
2691 Actually test that @configure_input@ is expanded correctly.
2692 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2693 Actually check generated file contents for the name of the
2694 generated file, using AC_PROG_FGREP and $FGREP.
2696 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
2698 Be nice with file systems that don't handle unusual characters.
2699 * tests/atlocal.in (func_sanitize_file_name)
2700 (func_sanitize_dir_name): New shell functions.
2701 * tests/tools.at (autom4te and whitespace in file names)
2702 (autotools and whitespace in file names): Use them.
2703 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2704 Cover more potentially problemtic file names. Use the new
2707 Properly handle funny file names for headers in config.status.
2708 The test suite did not cover this bug because the code was not
2709 quoting properly the arguments of `rm -f' (which "fails" silently)
2710 as well as the arguments of `diff' (whose output was redirected to
2711 /dev/null so we couldn't see its error message).
2712 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
2713 file names passed to `rm' and `diff'.
2714 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2715 Add a regression test.
2717 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
2718 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2720 Properly expand @configure_input@ in config.status.
2721 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
2722 Escape the backslashes and ampersands in $configure_input before
2723 using it in the sed replacement string to expand @configure_input@.
2724 Report by Eric Blake and Patrick Welche.
2726 2008-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2728 Ignore errors from ./run on w32.
2729 * tests/autotest.at (whitespace in absolute testdir):
2730 Ignore stderr for `./run' which fails to remove the
2731 busy test directory on w32.
2733 2008-02-22 Eric Blake <ebb9@byu.net>
2735 Improve documentation for writing autotest suites.
2736 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
2737 checks must live inside a test group.
2738 Reported by Christopher Hulbert.
2740 2008-02-21 Eric Blake <ebb9@byu.net>
2742 Sync git-version-gen from upstream.
2743 * build-aux/git-version-gen: Pull from gnulib.
2744 * configure.ac (AC_INIT): Adjust to new calling convention.
2746 2008-02-12 Eric Blake <ebb9@byu.net>
2748 Avoid trailing space in config.h with AC_DEFINE([var], []).
2749 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
2750 defines with a comment.
2752 2008-02-08 Eric Blake <ebb9@byu.net>
2754 Fix texinfo typos in previous patch.
2755 * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
2756 Reported by Ralf Wildenhues.
2758 Describe a config.site that can be used for FHS compliance.
2759 * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
2762 Reported by Jules Colding and Ralf Wildenhues.
2764 2008-02-02 Eric Blake <ebb9@byu.net>
2766 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
2768 2008-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2770 * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
2771 again, broken since introduction of `-C dir'.
2772 * tests/autotest.at (Choosing where testsuite is run): Test it.
2774 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
2776 * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
2778 2008-01-29 Eric Blake <ebb9@byu.net>
2780 Fix more autotest regressions.
2781 * lib/autotest/general.m4 (AT_LINE): Fix regression from
2782 2007-10-04 when file name is `dnl'.
2783 (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
2784 <TESTS_BEGIN>: ...to this new diversion, to fix regression from
2785 yesterday in libtool's testsuite.
2786 (_AT_ARG_OPTION): Detect write failure.
2787 * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
2788 make libtool's use kosher. Document m4_init.
2789 (Programming in M4sh): Document AS_INIT.
2790 (Writing Testsuites): Document limitation of AT_DATA file name.
2791 * tests/autotest.at (unusual file names): New test.
2792 (Banners, Keywords and ranges): Use correct shell.
2794 More corner cases in testsuite VAR=VALUE handling.
2795 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
2797 <PARSE_ARGS_END>: Also detect leading digits in assignments.
2798 * tests/autotest.at (Using atlocal): Enhance test to catch last
2801 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
2804 2008-01-28 Eric Blake <ebb9@byu.net>
2806 Fix regression in handling VAR=VALUE arguments to testsuite.
2807 * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
2808 leading = as invalid. Defer use of command-line variable
2810 <PREPARE_TESTS>: ...here, after atconfig has been sourced. Fix
2811 regression in sourcing files.
2812 * tests/autotest.at (Using atlocal): New test to catch this.
2813 (Debugging a successful test, Choosing where testsuite is run):
2815 Reported by Ralf Wildenhues.
2817 Document grep peculiarity.
2818 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
2819 BSD behavior on binary input.
2821 Minor testsuite improvements.
2822 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
2823 forks when sanitizing PATH. Always output machine information,
2824 not just when atconfig was located.
2826 Add 'testsuite -C dir'.
2827 * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
2829 (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
2831 <DEFAULTS>: Delay computation of variables based on $at_dir...
2832 <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
2833 <TESTS>: Re-invoke via absolute name, since -C may be in effect.
2834 <PARSE_ARGS>: Parse new option.
2835 <HELP_TUNING>: Document it.
2836 * tests/autotest.at (Choosing where testsuite is run): New test
2838 (Keywords and ranges): Add test for missing -k argument.
2839 * NEWS: Document this.
2840 * doc/autoconf.texi (testsuite Invocation): Likewise.
2842 2008-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2844 * build-aux/config.guess, build-aux/config.sub,
2845 build-aux/texinfo.tex: Sync from gnulib.
2846 * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
2849 2008-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2851 * doc/autoconf.texi (Particular Programs): Do not mention the
2852 Autoconf version in which the AC_PROG_INSTALL change was done.
2853 Suggested by Paul Eggert.
2855 2008-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2857 Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
2858 * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
2859 mode, we change to the source directory, also set $ac_pwd so we
2860 do not go back to the build tree for the next config subdir.
2861 * tests/torture.at (Deep Package): Extend test to contain two
2862 config subdirs on the top level.
2864 Fix parallel `maintainer-check'.
2865 * Makefile.am (maintainer-check-tests): Depend on `all'.
2866 Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
2867 * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
2869 (maintainer-check): Serialize the testsuite runs.
2871 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
2872 in feature string for --enable/--with. Convert to underscore
2875 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
2876 `install -c file1 file2 dir' works.
2877 * doc/autoconf.texi (Particular Programs): Document this.
2880 2008-01-21 Eric Blake <ebb9@byu.net>
2882 Improve documentation about default include directives.
2883 * doc/autoconf.texi (Generic Headers, Generic Declarations)
2884 (Generic Structures, Generic Types)
2885 (Generic Compiler Characteristics): Add links to
2886 AC_INCLUDES_DEFAULT.
2887 Reported by Reuben Thomas.
2889 2008-01-15 Eric Blake <ebb9@byu.net>
2891 * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
2893 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2895 * tests/Makefile.am (noinst_SCRIPTS): Renamed from
2896 check_SCRIPTS. Building the wrappers for `all' allows help2man
2897 to use them for the manpages.
2898 Report by Benoit Sigoure.
2900 * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
2902 2007-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2904 Fix some write failure cases in Autotest.
2905 * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
2906 upon write failures for --help, --version, --list.
2907 Guard against write failures for intermediate created scripts.
2908 <at_func_create_debugging_script>: Do not make the debugging
2909 script executable if it is not complete.
2911 2007-12-12 Eric Blake <ebb9@byu.net>
2913 Fix thinko in earlier patch - m4_join isn't defined yet.
2914 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
2915 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
2916 (m4_require): Use m4_do, not m4_join.
2918 Fix some whitespace tests on cygwin.
2919 * tests/tools.at (autom4te and whitespace in file names): Restore
2920 font-lock. Create $TMPDIR before it might be used.
2922 Fix spurious testsuite failure with M4 1.4.11.
2923 * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
2925 Optimize AC_REQUIRE.
2926 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
2927 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
2928 (m4_require): Avoid extra macro calls.
2930 2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2932 * tests/torture.at (srcdir): Fix quoting.
2934 Do not pass top_srcdir to configure scripts in testsuite.
2935 * tests/autotest.at (srcdir propagation): Copy install-sh to
2937 (my only test): Drop setting of `top_srcdir'.
2938 * tests/base.at (Input/Output): Likewise.
2939 * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
2940 config.guess, and config.sub to test source tree.
2941 Drop AC_CONFIG_AUX_DIR setting.
2942 (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
2943 * tests/torture.at (Substitute a 2000-byte string): Drop
2944 AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
2945 (Substitute a newline, datarootdir workaround): Likewise.
2946 (Define a newline): Adjust for linenumber changes in configure.ac.
2947 * tests/foreign.at (Libtool): Adjust comment to reflect changes.
2949 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
2950 if `pwd` contains whitespace.
2952 Quote $abs_top_srcdir in tests.
2953 * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
2954 * tests/tools.at (Syntax of the shell scripts): Likewise.
2956 * tests/m4sh.at (LINENO): Quote $0.
2958 Fix testsuite program wrapper for whitespace in `pwd`.
2959 The problem here is that the usual mantra is that command
2960 variables can contain arguments, thus we cannot just escape
2961 $AUTOCONF, $AUTOM4TE etc. The compromise is to put the
2962 $top_builddir/tests directory early in $PATH, so that the
2963 wrappers are found by their plain name.
2964 * tests/wrapper.as: Put $testdir early in $PATH.
2965 (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
2967 Proper config.status --file/--header and $srcdir escaping.
2968 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
2969 characters in $ac_file_inputs.
2970 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
2972 * tests/torture.at (datarootdir workaround): Adjust.
2973 (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
2975 Fix Autotest for whitespace in `pwd`.
2976 * lib/autotest/general.m4 (AT_INIT)
2977 <at_func_create_debugging_script, Driver Loop>:
2978 Quote $at_group_dir.
2979 * tests/autotest.at (whitespace in absolute testdir): New test.
2981 * lib/autom4te.in: Quote @datadir@.
2983 Proper file name escaping in Autoconf programs and Perl modules.
2984 This includes escaping of characters special to the shell
2985 as well as special to Perl, e.g., leading `<' or `>'.
2986 For example, when $file starts with `>', `open ">$file"'
2987 wrongly tries to append to a different file.
2988 * bin/autoconf.as: Fix quoting for autom4te options.
2989 * lib/Autom4te/General.pm (shell_quote): New function, taken
2990 from coreutils, written by Jim Meyering.
2992 * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
2994 * bin/autoreconf.in (parse_args): Likewise.
2995 * bin/autoscan.in (main): Likewise.
2996 * bin/autoupdate.in (main): Likewise.
2997 * bin/autoheader.in: Likewise, fixing old insufficient escaping.
2998 * bin/ifnames.in: Likewise, XFile usage fixes.
2999 * tests/tools.at (autom4te and whitespace in file names): Extend
3000 test. Test twice, with special characters allowed on w32, and the
3001 rest. Test leading and trailing whitespace, for `open_quote'.
3002 (autotools and whitespace in file names): New, analogous test.
3003 Reported by Paul Eggert and Benoit Sigoure, additional suggestions
3004 by Russ Allbery and Eric Blake.
3007 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3008 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
3009 * lib/Autom4te/FileUtils.pm (open_quote): New function.
3010 (update_file, contents): Use it.
3012 * Makefile.am (autom4te-update): Rewrite for git.
3014 2007-12-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3016 * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
3018 Fix copyright years.
3019 * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
3020 lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
3022 2007-12-04 Eric Blake <ebb9@byu.net>
3024 Manually resync with gnulib, since 'make cvs-update' no longer works.
3025 * build-aux/config.guess: New upstream version.
3026 * build-aux/config.sub: Likewise.
3028 When using older automake, don't downgrade build-aux/texinfo.tex.
3029 * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
3030 * doc/Makefile.am (TEXINFO_TEX): Add.
3032 2007-11-27 Paul Eggert <eggert@cs.ucla.edu>
3034 Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
3035 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
3036 #undef as this runs afoul of our new way of creating config.h.
3037 Problem reported by Jim Meyering in
3038 <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
3040 2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3042 Fix autom4te for unusual characters in input file names.
3043 * bin/autom4te.in (files_to_options): Quote active characters
3045 * tests/tools.at (autom4te and white space in file names):
3048 * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
3049 Document that Tru64 awk always splits $0.
3051 2007-11-24 Stepan Kasal <kasal@ucw.cz>
3053 * lib/autotest/general.m4 (AT_INIT): Do not extract the
3054 `#AT_STOP_...' line at the end of each test.
3056 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3058 * lib/autotest/general.m4 (AT_INIT): For awk line number
3059 extraction script, ensure `$at_group' has a defined value
3060 even for the empty set, and properly quote its usage inside
3063 2007-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3065 * doc/autoconf.texi (Shell Functions): New chapter. Document
3066 IRIX sh $0 issue in functions, move content from ...
3067 (Portable Shell): ... here.
3068 (Shell Script Compiler): Note that shell functions are not
3069 totally unportable any more.
3071 2007-11-22 Stepan Kasal <kasal@ucw.cz>
3072 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3074 * lib/autotest/general.m4 (AT_INIT): Exit awk script after
3075 extracting the line numbers of the last needed test.
3077 2007-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3079 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
3082 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3084 Fix IRIX testsuite debugging failures: $0 in functions.
3085 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
3086 Do not use $0 inside a function, as IRIX sh will set that to the
3087 function name rather than the script invocation name.
3089 2007-11-19 Paolo Bonzini <bonzini@gnu.org>
3090 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3092 * lib/autotest/general.m4 (at_func_test): Use cached line numbers
3093 to extract test scripts.
3094 (AT_INIT): Extract and cache test script line numbers.
3096 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3098 * lib/autotest/general.m4: Revert 2007-11-15 patch and
3099 subsequent fixups; the awk -> here-document conversion trashes
3100 performance too much with AIX sh.
3102 2007-11-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3104 * tests/local.at: Do not test m4, perl with AT_TESTED.
3106 Diagnose and guard against write errors dealing with config.status.
3107 The general idea is this: all write failures from `configure'
3108 writing `config.status' are indicated by $ac_write_error, which
3109 is only checked at the end. This is safe because config.status
3110 code is not executed before the file is complete. Other write
3111 failures, be they inside config.status, or in sub shell/awk
3112 scripts spawned from configure or config.status, typically need
3113 earlier checking, as their results are used right afterwards.
3114 * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
3115 before writing config.status, check afterwards.
3116 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
3117 (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
3118 Set `ac_write_error' for write failures to config.status. Barf
3119 upon write failures to temporary files.
3120 Adjust note about closing and reopening the here-document.
3121 (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
3122 (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
3123 reopening the here-document.
3124 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3125 Ensure `ac_write_error' does not escape into config.status.
3126 Also, add a couple of code paths not yet exercised in the test
3127 suite: a config file with input from stdin, and a config header
3129 Suggestion for catching write errors by Bruno Haible.
3131 2007-11-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3133 Avoid error with Tru64 awk and testsuite lines with many words.
3134 * lib/autotest/general.m4 (AT_INIT): In the awk script that
3135 reads the testsuite, set the field separator to an unusual value,
3136 in order to not run over the limit of 199 fields. Tru64 4.0D awk
3137 even splits the input if $i, i>0, was never accessed in the script.
3139 Revert 2007-10-17 change.
3140 * TODO: Multiline args in config files and headers mean something
3141 different and are not fixed, see
3142 <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
3143 Report by Stepan Kasal.
3145 * doc/autoconf.texi (Generic Programs): Fix typo.
3147 2007-11-16 Stepan Kasal <kasal@ucw.cz>
3149 AC_*_TOOL does not canonicalize the prefix
3150 * doc/autoconf.texi (Generic Programs): Do not say that
3151 the *_TOOL macros canonicalize, they simply use the `host_alias'.
3153 2007-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3155 Diagnose write errors in config.status instantiations.
3156 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
3157 (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
3159 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3160 Extend test to also check for some write error failures, using...
3161 <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
3162 Report by Bruno Haible.
3165 * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
3167 (_AT_CHECK): Use less indentation, to save space.
3169 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3171 Add witness macro for @top_build_prefix@ substitution.
3172 * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
3173 (_AC_OUTPUT_FILE): Mention it here.
3175 2007-11-15 Paolo Bonzini <bonzini@gnu.org>
3176 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3178 * lib/autotest/general.m4 (at_func_test): Remove.
3179 (AT_INIT): Pre-extract test groups into separate files.
3180 (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
3181 Remove at-test-source files together with the $at_group_dir.
3182 * tests/autotest.at (Long test source lines): New test.
3184 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3186 Shell functions and variables may share a namespace.
3187 * doc/autoconf.texi (Portable Shell): Mention Solaris sh
3190 2007-11-14 Paul Eggert <eggert@cs.ucla.edu>
3192 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
3195 2007-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3197 * lib/autoconf/status.m4: Fix a couple of comment typos.
3199 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
3201 2007-11-13 Jim Meyering <meyering@redhat.com>
3203 Clean up the rule to create "expr".
3204 * tests/Makefile.am (expr): Don't redirect directly to target.
3205 Redirect just once, not for each echo statement.
3206 Use $@, not literal "expr".
3208 2007-11-13 Paul Eggert <eggert@cs.ucla.edu>
3210 Don't worry about preprocessor when testing long long.
3211 See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
3212 * doc/autoconf.texi (Preprocessor Arithmetic): New section.
3213 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
3214 These no longer check for preprocessor flaws.
3215 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
3216 Do not check for preprocessor flaws.
3218 2007-11-13 Jim Meyering <meyering@redhat.com>
3220 Adapt dependencies, now that a version change doesn't modify configure.ac
3221 * GNUmakefile: Remove "make clean" kludge.
3222 * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
3224 Don't redirect directly to target.
3225 Use $@, not literal "version.m4".
3227 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3229 * doc/autoconf.texi (Making testsuite Scripts): Document
3230 ":;{" shorthand as in previous patch.
3232 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
3234 * doc/autoconf.texi (Limitations of Builtins): Document problem
3235 with { ... } a bit more clearly. Suggest ":;{" as a shorthand
3237 * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
3238 Use ":;{" shorthand.
3239 * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
3241 2007-11-12 Jim Meyering <meyering@redhat.com>
3243 Add more non-srcdir build support.
3244 * GNUmakefile (dummy): Split a long line.
3245 Add -v option to autoreconf invocation.
3247 Remove the autoreconf-provided INSTALL, so that we regenerate it.
3248 * GNUmakefile (dummy): Remove INSTALL.
3250 Remove racy commands to build scripts in bin/ and tests/.
3251 * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
3252 are guaranteed to be built, remove the rules that tried to build
3253 them. Before, with a parallel build, these rules could lead to
3254 two processes writing tests/wrapper.in concurrently.
3256 Build in man/ only *after* building in bin/ and tests/.
3257 * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
3258 in both bin/ and tests/.
3260 Accommodate non-srcdir build-from-checkout.
3261 * build-aux/git-version-gen: Require an additional parameter: $srcdir.
3262 Use git's --git-dir=$srcdir/.git option.
3263 Add quotes, in case tarball_version_file contains shell meta-characters.
3264 * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
3265 * configure.ac: Pass "." to git-version-gen.
3267 Avoid spurious test failures due to version skew.
3268 * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
3270 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3272 Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
3273 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
3274 Remove conftest.dSYM directory.
3275 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
3276 (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
3277 Remove `conftest.*' recursively.
3278 * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
3279 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
3281 (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
3283 Report and analysis by Jeff Squyres and Peter O'Gorman.
3285 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
3287 Fix typos in variable names.
3288 * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
3290 2007-11-11 Benoit Sigoure <tsuna@lrde.epita.fr>
3292 Document that $((expression)) is not portable.
3293 * doc/autoconf.texi (Shell Substitutions): Here.
3295 2007-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3297 Ignore configure --help* errors due to LINENO-impaired shells.
3298 * tests/torture.at (Configuring subdirectories, Deep Package):
3299 In the --help* tests in read-only trees, make `.' temporarily
3300 writable again for the `stderr' file, and ignore errors due to
3301 the attempt to write configure.lineno.
3302 Report by Patrick Welche.
3304 2007-11-10 Jim Meyering <meyering@redhat.com>
3306 Generate package.m4 in build-dir, not srcdir.
3307 * tests/Makefile.am (package.m4): Adjust target.
3308 Don't redirect directly to $@.
3309 (CLEANFILES): Add package.m4.
3310 ($(TESTSUITE)): Depend on just-built package.m4, not the one
3312 When running $(AUTOTEST), search "." before searching $(srcdir).
3314 Avoid a race condition that would make parallel "distclean" fail.
3315 * tests/Makefile.am (distclean-generic): Replace the default,
3316 automake-provided rule with an identical one, but with an additional
3317 dependency on distclean-local. Simply adding the dependency would
3318 cause automake not to emit the rule at all.
3319 * BUGS: Building with -jN works, now.
3321 Distribute git-version-gen.
3322 * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
3323 since GNUmakefile is distributed, and requires it for dist* rules.
3325 Remove two more generated files from version control.
3326 * INSTALL: Remove generated file.
3327 * lib/autoscan/autoscan.list: Remove generated file.
3329 2007-11-09 Paul Eggert <eggert@cs.ucla.edu>
3331 * GNUmakefile (PATH): Remove stray apostrophes; they become
3332 part of PATH, which isn't wanted here.
3334 2007-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3336 New config files output variable `top_build_prefix'.
3337 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
3339 * doc/autoconf.texi (Preset Output Variables): Document it.
3341 Report by Bob Friesenhahn.
3343 Avoid expr for arithmetic evaluation if the shell accepts $((...)).
3344 * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
3345 function, to parametrize arithmetic with expr vs. the shell.
3346 Use it where possible.
3347 Suggestion by Benoit Sigoure.
3349 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
3351 Adjust the documentation of autotest WRT atlocal.
3352 * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
3353 when using Automake, to write a rule to produce atlocal, since it's
3354 an AC_CONFIG_FILES. Mention that atlocal.in needs to be
3355 distributed, not atconfig.in.
3357 2007-11-04 Eric Blake <ebb9@byu.net>
3359 Update list information.
3360 * README: Mention new autoconf-commit list.
3361 * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
3363 2007-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3365 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
3367 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
3369 * build-aux/.gitignore: Ignore mkinstalldirs.
3371 * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
3373 2007-11-03 Jim Meyering <meyering@redhat.com>
3375 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
3376 * build-aux/git-version-gen: This syncs from coreutils.
3378 Adjust the build procedure so "make check" works reliably.
3379 * README-hacking: Include an extra step between "make" and
3380 "make check" to ensure that the latter passes.
3382 Use just-built tools, when possible.
3383 * GNUmakefile (PATH): Set and export here, ...
3384 (dummy): ... rather than here.
3386 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3387 and Andreas Schwab <schwab@suse.de>
3389 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
3392 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3394 * configure.ac (AC_PREREQ): Require version 2.60, for
3395 AC_PROG_SED, AC_PROG_GREP.
3397 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
3398 and Jim Meyering <meyering@redhat.com>
3399 and Andreas Schwab <schwab@suse.de>
3400 and Eric Blake <ebb9@byu.net>
3402 Document a bug in GNU Bash with compound commands and redirections.
3403 * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
3404 Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
3407 2007-11-03 Eric Blake <ebb9@byu.net>
3409 Support m4 1.4.5 in testsuite.
3410 * tests/torture.at (Define a newline): Exclude line numbers in
3412 Reported by Ralf Wildenhues.
3414 2007-11-03 Jim Meyering <meyering@redhat.com>
3416 Remove automake-provided files from version control.
3417 * build-aux/elisp-comp: Remove file.
3418 * build-aux/install-sh: Remove file.
3419 * build-aux/missing: Remove file.
3420 * build-aux/mdate-sh: Remove file.
3421 * build-aux/.gitignore: New file.
3422 Suggestion from Ralf Wildenhues.
3424 2007-11-03 Eric Blake <ebb9@byu.net>
3426 Adjust version comparison to account for git snapshot numbers.
3427 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
3428 component separator.
3429 * doc/autoconf.texi (Number processing Macros)
3430 <m4_version_compare>: Document this change.
3431 * tests/m4sugar.at (m4@&t@_version_compare): Test it.
3433 2007-10-30 Bruno Haible <bruno@clisp.org>
3435 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
3436 extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
3437 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
3438 Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
3439 <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
3440 Suggested by Paul Eggert.
3442 2007-10-28 Jim Meyering <meyering@redhat.com>
3444 * README-hacking: Autoconf, Automake, and Perl are required to build.
3445 List Gzip and Tar separately. Suggested by Ralf Wildenhues.
3447 2007-10-28 Jim Meyering <meyering@redhat.com>
3449 README-hacking: Recommend running autoreconf -vi.
3450 * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
3451 so that we use just-built tools when they're available.
3452 Suggestions from Ralf Wildenhues.
3454 2007-10-28 Jim Meyering <meyering@redhat.com>
3456 Make inter-release --version output more useful.
3458 Now, each unofficial build has a version "number" like 2.61a-19-58dd,
3459 which indicates that it is built using the 19th change set
3460 (in _some_ repository) following the "v2.61a" tag, and that 58dd
3461 is a prefix of the commit SHA1.
3462 * build-aux/git-version-gen: New file.
3463 * configure.ac: Run it to set the version.
3464 (AM_INIT_AUTOMAKE): Don't check NEWS here.
3465 * Makefile.am (dist-hook): Arrange so that .version appears only
3466 in distribution tarballs, never in a checked-out repository.
3467 * .gitignore: Add .version here, too. Just in case.
3468 * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
3469 not configure.ac, now that the version number changes automatically.
3471 Ensure that $(VERSION) is up to date for dist-related targets.
3472 * GNUmakefile: Arrange to rerun autoconf, if the version reported by
3473 git-version-gen doesn't match $(VERSION), but only for dist targets.
3475 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3477 Fix `Deep Package' failure with a configure script early in PATH
3478 * tests/torture.at (Deep Package): Add `.' early in PATH.
3479 Report by Jim Meyering.
3481 2007-10-27 Jim Meyering <meyering@redhat.com>
3483 Remove all generated files from version control.
3484 * aclocal.m4: Remove.
3485 * configure: Remove.
3486 * Makefile.in: Remove, along with all other Makefile.in in subdirs.
3487 * .gitignore: Add aclocal.m4, configure and Makefile.in. Sort.
3488 * README-hacking: New file: how to build from just-checked-out sources.
3490 2007-10-23 Eric Blake <ebb9@byu.net>
3492 Improve corner case of m4_expand.
3493 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
3495 * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
3496 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
3499 2007-10-23 Paul Eggert <eggert@cs.ucla.edu>
3501 * doc/make-stds.texi: Update from gnulib.
3503 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3504 and Eric Blake <ebb9@byu.net>
3506 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
3507 problem reported by Bruno Haible in
3508 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
3510 2007-10-22 Eric Blake <ebb9@byu.net>
3512 * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
3515 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3517 Don't check for bug in HP-UX 11.00 cpp.
3518 * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3519 Use -1ull rather than -1u, since that causes problems with gnulib; see
3520 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3522 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3524 * tests/autotest.at (Backquote command substitution)
3525 (Multiline backquote command substitution)
3526 (Parenthetical command substitution)
3527 (Multiline parenthetical command substitution): Fix typos in
3530 2007-10-21 Eric Blake <ebb9@byu.net>
3532 * configure: Regenerate.
3534 2007-10-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3536 Fix config status generation with Tru64 ksh.
3537 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
3538 escaping of backslash in here-documents.
3540 Fix `Deep Package' test failure on FreeBSD.
3541 * tests/torture.at (Deep Package): Do not add `.' to $PATH
3542 unnecessarily. Do not try running `/bin/sh configure' with a
3543 configure script to be found in $PATH, if the shell does not do
3544 this resolution. Fixes test failure on FreeBSD.
3546 Fix config header generation with AIX awk.
3547 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
3548 script, use helper array D_is_set, as `" 0"' does not evaluate
3549 to true for AIX awk.
3551 2007-10-21 Eric Blake <ebb9@byu.net>
3553 * tests/autotest.at (Banners): Reinstate test, with typo
3556 2007-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3558 * lib/autotest/general.m4 (Defaults): Validate input ranges ...
3559 <at_func_validate_ranges>: ... using this new function.
3560 * tests/autotest.at (Keywords and ranges): Test invalid ranges.
3561 Test --list with ranges and keywords.
3562 (Banners): Remove one now-failing test.
3564 2007-10-20 Eric Blake <ebb9@byu.net>
3566 Fix testsuite --list subset.
3567 * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
3568 back to spaces, before listing subset of tests.
3569 Reported by Ralf Wildenhues.
3571 2007-10-19 Eric Blake <ebb9@byu.net>
3573 s/parenthesis/parentheses/ where appropriate.
3574 * doc/autoconf.texi: Fix typos.
3575 * lib/m4sugar/m4sugar.m4: Likewise.
3576 Reported by Ralf Wildenhues.
3578 Document m4_expand limitation.
3579 * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
3581 * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
3582 (Writing Testsuites): Mention limitations inherited from
3585 Improve AT_BANNER handling.
3586 * lib/autotest/general.m4 (BANNERS): New named diversion.
3587 (TESTS_END): Diversion no longer used.
3588 (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
3589 shell function, which prints only as needed, using an associative
3590 array of banner text from a special diversion.
3591 <PARSE_ARGS_END>: No longer need awk to find banners.
3592 <TESTS>: Banners are no longer processed by main driver loop, so
3593 we no longer need case statement.
3594 (AT_BANNER): Rewrite to populate new diversion.
3595 (AT_SETUP): Each test invokes its own banner. No output is needed
3596 to the TESTS diversion.
3597 * doc/autoconf.texi (Writing Testsuites): Document slight
3599 * tests/autotest.at (AT_BANNERS): Enhance test.
3600 * NEWS: Document AT_BANNER.
3602 Document and test AT_BANNER.
3603 * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
3604 * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
3605 (AT_CHECK_BANNERS): New test.
3608 * doc/autoconf.texi (Text processing Macros) <m4_strip>
3609 <m4_text_wrap>: Clarify and fix typos.
3611 2007-10-18 Eric Blake <ebb9@byu.net>
3613 Ignore `make dist' changelogs in testsuite.log.
3614 * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
3615 directories matching AT_PACKAGE_TARNAME-*.
3617 Fix AT_TESTED, AT_KEYWORDS.
3618 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
3619 occurs in string, as duplicates may be added.
3620 (_m4_append_uniq): New helper macro.
3621 (m4_append_uniq_w): New macro.
3622 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
3623 duplication bug by using new macro.
3624 (AT_INIT) <at_tested>: Restore newline separators. Invoke tested
3625 programs with stdin redirected, so programs that don't
3626 understand --version won't try to behave interactively.
3627 * tests/autotest.at (Tested programs): Catch this bug.
3628 * tests/m4sugar.at (m4@&t@_append): Test new macro.
3629 * tests/local.at (AT_TESTED): Add m4, perl.
3630 * doc/autoconf.texi (Text processing Macros): Document
3631 m4_append_uniq_w, and update text on m4_append.
3632 * NEWS: Document the addition.
3634 2007-10-17 Eric Blake <ebb9@byu.net>
3637 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
3639 (AT_INIT) <at_func_create_debugging_script>: ...to shell
3641 (AT_INIT): Defer function declarations until after --help,
3642 --version. Format functions consistently, trying to fit in 80
3644 (TEST_FUNCTIONS): Based on recent changes, rename...
3645 (TEST_GROUPS): ...to this.
3648 * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
3649 * configure: Regenerate.
3650 Reported by Bob Friesenhahn.
3652 Test recent additions.
3653 * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
3654 (m4@&t_max and m4@&t_min): New tests.
3655 * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
3658 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3660 * TODO: multiline args in config files and headers work now.
3662 Autotest: do not use shell functions for individual tests.
3663 * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
3664 extract the source test source, do not invoke it.
3665 (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
3666 * tests/autotest.at (Fallacy): Actually let the inner suite fail,
3667 expect exit status of 1.
3668 * tests/autotest.at (Skip): New test, for bogus zsh exit status.
3670 * lib/autotest/general.m4 (at_func_test): Fix test extraction
3673 2007-10-17 Eric Blake <ebb9@byu.net>
3675 Fix m4_combine for empty suffix list.
3676 * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
3677 * doc/autoconf.texi (Text processing Macros): Document this.
3679 Add m4_combine, based on Libtool's lt_combine.
3680 * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
3681 * doc/autoconf.texi (Text processing Macros): Document it.
3684 2007-10-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3686 Fix `configure --help=recursive' in unconfigured/read-only trees.
3687 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
3688 is not writable, use 'cp -p' in this case, in the hope that it
3689 will not actually be needed. Still try removing files, in case
3690 of other write errors.
3691 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
3692 use $as_myself, not $0.
3693 (_AC_INIT_HELP): For --help=recursive, if the subdir does not
3694 exist, try again in the the source tree. This change assumes
3695 that the subpackage configure script is capable of running
3696 --help=recursive in the source tree.
3697 * tests/torture.at (Configuring subdirectories, Deep Package):
3698 Adjust tests to expose both issues, also try invocation as
3699 `sh configure ...' and plain `configure ...' with PATH adjusted.
3700 * NEWS, THANKS: Update.
3701 Report by Hans Ulrich Niedermann.
3703 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
3705 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
3706 Problem reported by H.Merijn Brand in
3707 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
3708 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
3709 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3710 Check that preprocessor handles 64-bit ints, too.
3712 2007-10-16 Eric Blake <ebb9@byu.net>
3714 m4_map is a looping construct.
3715 * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
3717 Fix m4_map, and add some more utility macros.
3718 * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
3719 (m4_echo, m4_make_list): New documented macros.
3720 (_m4_quote, _m4_shift2): New helper macros.
3721 (m4_map): Change semantics to allow calling macro without
3723 (m4_map_sep): Likewise. Also change semantics to quote separator,
3724 to match m4_join and m4_append.
3725 (m4_version_unletter): Fix use of m4_map.
3726 * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
3727 m4_count, m4_dquote_elt, m4_echo, m4_make_list.
3728 (Text processing Macros): Mention m4_dquote as a faster
3729 alternative to joining with commas.
3730 (Looping constructs): Document m4_map, m4_map_sep.
3731 * NEWS: Mention new macros.
3733 A few more m4sugar improvements, to benefit libtool.
3734 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
3735 of expansion by avoiding extra uses of $@.
3736 (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
3737 (_m4_cdr): New helper macro.
3738 (_m4_map, m4_map_sep): Use it to reduce size of expansion.
3739 (_m4_shift3): New helper macro.
3740 (_m4_foreach): Swap argument order, and use new macro to reduce
3742 * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
3743 count must be positive.
3745 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
3746 Reported by Ralf Wildenhues.
3748 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3750 * doc/autoconf.texi (Portable Shell): Improve description of zsh
3751 4.x function subshell bug with exit and trap.
3753 2007-10-15 Eric Blake <ebb9@byu.net>
3755 Enhance AS_HELP_STRING.
3756 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
3757 and reduce number of expansions.
3758 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
3759 and to take indent and wrap column numbers.
3760 * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
3761 * doc/autoconf.texi (Pretty Help Strings): Document details about
3763 (Text processing Macros): Minor tweaks.
3764 * NEWS: Document this change.
3766 Fix 2007-10-03 regression with AT_SETUP([a, b]).
3767 * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
3768 (m4_text_box): Use it.
3769 * lib/autotest/general.m4 (AT_SETUP): Use it.
3770 * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
3771 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
3772 * NEWS: Revert caveat about semantics change on comma.
3773 * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
3775 2007-10-13 Eric Blake <ebb9@byu.net>
3777 Change m4_join to match libtool's ltsugar semantics.
3778 * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
3779 Ignore empty arguments, using...
3780 (_m4_join): ...this new helper.
3781 * tests/m4sugar.at (m4@&t@_join): New test.
3782 * doc/autoconf.texi (Text processing Macros): Document new
3783 semantics of m4_join.
3785 Make AC_PREREQ faster and more robust.
3786 * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
3787 (m4_version_prereq): Inline constant expansions.
3788 (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
3789 Rewrite in terms of [] list, not () list.
3790 (_m4_list_cmp, _m4_version_unletter): New helper macros.
3791 (m4_version_unletter): Write wrapper around new implementation to
3792 preserve old semantics.
3793 (m4_version_compare): Pass correct type of list, and avoid
3794 overhead of flattening expressions too early.
3795 (m4_do): Move to be near other quoting macros.
3796 (m4_max, m4_min): Always result in decimal output.
3797 * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
3799 (Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
3800 (Text processing Macros): Move m4_version_compare...
3801 (Number processing Macros): ...to this new node; document m4_cmp,
3802 m4_list_cmp, m4_sign, m4_max, m4_min.
3803 * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
3804 up on bugs fixed by this patch.
3805 * NEWS: Document new macros.
3807 2007-10-12 Eric Blake <ebb9@byu.net>
3809 * doc/autoconf.texi (Text processing Macros): Fix bad merge.
3810 (Reporting Messages): Fix underfull hbox.
3812 Some more m4sugar documentation.
3813 * lib/m4sugar/m4sugar.m4: Clean up macro order.
3814 * doc/autoconf.texi (Programming in M4): Lighten the warning on
3815 using m4sugar; it is stabilizing and useful.
3816 (Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
3817 m4_divert, m4_undivert, __file__, __line__, __oline__.
3818 (Diagnostics): New node, documenting m4_assert, m4_errprintn,
3819 m4_fatal, m4_location, m4_warn.
3820 (Diversion support): New node, documenting m4_divert_push,
3821 m4_divert_pop, m4_divert_text, m4_divert_once.
3822 (Text processing Macros): Sort. Add m4_flatten, m4_join,
3823 m4_newline, m4_strip, m4_text_box, m4_text_wrap.
3824 (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
3826 (Printing Messages): Change cross-reference.
3828 Document interaction of recent m4_append change with Libtool HEAD.
3829 * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
3830 (m4_append_uniq): Add new parameters, based on lt_append_uniq.
3831 * tests/m4sugar.at (m4@&t@_append): New test.
3832 * NEWS: Document semantics change.
3833 * doc/autoconf.texi (Text processing Macros): Likewise.
3835 s/AC_VERSION/AC_AUTOCONF_VERSION/.
3836 * doc/autoconf.texi (Versioning): Change the name.
3838 * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
3839 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
3840 Suggested by Ralf Wildenhues.
3843 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
3844 (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
3846 * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
3847 (Programming in M4sh, Macro Names): Beef up description of
3848 namespaces reserved for autoconf.
3849 * configure: Regenerate.
3851 2007-10-12 Eric Blake <ebb9@byu.net>
3852 and Paolo Bonzini <bonzini@gnu.org>
3854 Speed up execution of subset of testsuite.
3855 * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
3856 (AT_INIT) <at_func_test>: New shell function.
3857 (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
3858 (AT_INIT) <at_test_source> New variable, names file that holds
3859 current test function definition.
3860 (AT_SETUP): Start the shell function at_func_test_#, into the
3861 TEST_FUNCTIONS diversion.
3862 (AT_CLEANUP): End the shell function. Simplify the TESTS
3863 diversion to invoke the function.
3865 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3867 * .gitignore: Ignore tags and TAGS files.
3869 2007-10-11 Eric Blake <ebb9@byu.net>
3871 Config header generation followup.
3872 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
3873 which won't work with the preprocessor nor with the awk
3875 * tests/torture.at (Define a newline): Test raw newline detection,
3877 * doc/autoconf.texi (Defining Symbols): Document recent change to
3878 allow backslash-newline.
3881 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3883 * lib/autotest/general.m4: Put function braces in separate line.
3885 2007-10-10 Eric Blake <ebb9@byu.net>
3887 Avoid some overhead from m4_defn and m4_popdef.
3888 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
3889 pass on first argument, since we are documented that way.
3890 (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
3891 check where it is safe to do so.
3892 (m4_append): Likewise, and quote the separator.
3893 (m4_text_box): Likewise, and avoid regex, also be robust to
3894 expansion and quadrigraphs.
3896 Another AC_DEFINE speedup.
3897 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
3899 (_AC_DEFINE_Q): ...here, and only do it once.
3900 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
3901 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
3902 introduced 2007-10-05.
3905 * lib/autoconf/general.m4: Use consistent indentation.
3906 * configure: Regenerate.
3908 * NEWS: Announce recent round of speed optimizations.
3910 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3912 * NEWS: Announce shell function usage in Autotest.
3914 2007-10-10 Eric Blake <ebb9@byu.net>
3915 and Paul Eggert <eggert@cs.ucla.edu>
3917 Reduce number of forks at startup.
3918 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
3920 * configure: Regenerate.
3922 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3923 and Paul Eggert <eggert@cs.ucla.edu>
3925 Use awk for config header generation.
3926 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
3927 (_AC_OUTPUT_HEADERS_PREPARE): New macro. Rewrite of the config
3928 header machinery for use with awk and placement outside the main
3929 config.status instantiation loop. Retain multi-line defines
3930 through backslash-newline combinations, do not split the script
3932 (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
3933 (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
3935 (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
3938 * tests/torture.at (#define header templates): Extend test by
3939 several more cases: white space before and after `#', macros
3940 with parameters in config.hin and as defines, multi-line macro
3942 (Torturing config.status): Use a define value twice the length
3943 in order to exercise the awk literal string limit.
3944 (Substitute and define special characters): Also try special
3945 delimiter, to exercise the special-case code.
3946 Suggestion by Eric Lemings.
3948 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3950 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3952 2007-10-09 Eric Blake <ebb9@byu.net>
3954 Improve header of bin/autoconf.
3955 * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
3956 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
3958 * bin/autoconf.as: Put copyright up front in generated file.
3960 * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
3962 2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3964 * doc/install.texi (Basic Installation): Document `uninstall'.
3965 * INSTALL: Regenerate.
3966 Suggestion by Roberto Bagnara.
3968 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
3970 * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
3972 Adjust doc. to match latest gnulib.
3973 * build-aux/texinfo.tex: Sync from gnulib.
3974 * doc/standards.texi: Likewise.
3975 * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
3976 Documentation License" and remove the subsection. This simplifies
3977 the manual a bit and is more like what other GNU projects do
3980 2007-10-08 Eric Blake <ebb9@byu.net>
3983 * configure: Regenerate.
3985 Fix regression in m4_text_wrap from 2007-10-05.
3986 * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
3988 (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
3990 * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
3991 * tests/autotest.at (Long test title, Longer test title): Test
3992 this fix, beyond what AS_HELP_STRING already tests.
3994 Avoid m4 warnings on bad m4_format usage.
3995 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
3997 * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
3998 enough arguments are provided.
4000 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
4002 * doc/autoconf.texi (Shell portability): Document shell function
4005 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
4007 * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
4008 at_func_check_skip, at_func_check_status, at_func_filter_trace,
4009 at_func_log_failure shell functions. Use test -s to avoid
4010 useless diff invocations.
4011 (at_func_check_newline): Renamed from at_check_newline.
4012 (AT_SETUP): Define AT_captured_files to empty.
4013 (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
4014 (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir. Use all
4015 the shell functions.
4017 2007-10-05 Paul Eggert <eggert@cs.ucla.edu>
4019 Don't assume "." is writeable, for commands like "autoconf --version".
4020 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
4021 different heuristic instead, one that doesn't rely on creating
4024 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
4027 2007-10-05 Jim Meyering <meyering@redhat.com>
4029 Avoid makeinfo warnings.
4030 * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
4031 (Looping constructs): Add ` ' after @defmac'd name, m4_do.
4033 2007-10-05 Eric Blake <ebb9@byu.net>
4035 Resolve Python issue 1676135 regarding configure directory args.
4036 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
4037 slashes from directory arguments.
4038 * tests/base.at (configure directories): New test.
4039 * doc/autoconf.texi (Installation Directory Variables): Document
4043 Reported by Björn Lindqvist.
4045 Provide better short-circuiting operation.
4046 * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
4047 (m4_text_wrap): Use it. Also avoid useless m4_for.
4048 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
4050 (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
4051 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
4053 * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
4054 documentation. Sort m4_mkstemp, m4_undefine. Move m4_ifndef...
4055 (Conditional constructs): ...here, to new section. Also document
4056 m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
4057 m4_bpatsubsts, and m4_default.
4058 (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
4061 2007-10-04 Eric Blake <ebb9@byu.net>
4063 Fix recent testsuite failures.
4064 * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
4065 that must not be re-expanded after AS_ESCAPE.
4066 * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
4067 checking if it is an identifier.
4070 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
4071 leading whitespace, as it caused space-tab in testsuite.
4072 (AT_INIT): Avoid trailing newlines in testsuite.
4074 One more round of m4_foreach_w speedups.
4075 * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
4077 (_m4_split): Avoid useless expansions inside definition. Move
4078 argument defaulting...
4079 (m4_split): ...here. Change alternate quote to something less
4080 likely to appear in $1. Also, special case space as regexp...
4081 (m4_foreach_w): ...to avoid regexp on single-term list.
4082 (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
4083 useless expansions inside definition.
4084 * tests/m4sugar.at (m4@&t@_split): Add tests.
4086 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
4088 * general.m4 (AT_INIT): Add at_check_newline function.
4089 (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
4090 (_AT_CHECK): Don't use at_trace_this.
4092 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
4094 Fix previous commit.
4095 * lib/autotest/general.m4 (AT_LINE): Fix regex.
4097 2007-10-04 Eric Blake <ebb9@byu.net>
4099 Speed up building testsuites.
4100 * lib/autotest/general.m4 (AT_LINE): Only use regex when file
4101 changed since last time. Use simpler regex.
4103 2007-10-03 Eric Blake <ebb9@byu.net>
4105 Optimize checking for identifiers.
4106 * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
4107 macros, more efficient than regex on m4_re_word.
4108 * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
4109 Rewrite in terms of new macro. As a side-effect, AC_DEFINE can
4111 * configure: Regenerate.
4113 Remove some XFAILs, and make AT_SETUP output line up.
4114 * lib/autotest/general.m4 (AT_SETUP): Only expand description
4115 once; thereafter, use its expansion, properly quoted.
4116 * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
4117 expansion with arguments, and check for aligned output.
4118 (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
4119 Add a test for macros with parameters.
4120 * NEWS: Document the semantics change.
4121 * tests/base.at: Fix test titles containing commas.
4122 * tests/compile.at: Likewise.
4123 * tests/tools.at: Likewise.
4124 * tests/torture.at: Likewise.
4126 Another round of regex avoidance.
4127 * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
4128 (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
4129 (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
4130 (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
4131 character ranges useful in m4_translit.
4132 (m4_toupper, m4_tolower): Optimize the constant portion of
4134 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
4135 creates $, and reject [] thanks to AS_TR_SH rewrite.
4136 (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
4137 (AS_ESCAPE): Factor...
4138 (_AS_ESCAPE): ...into new macro, with second argument required.
4139 Avoid regex in common case.
4140 (_AS_QUOTE): Use new macro.
4143 * lib/autoconf/types.m4: Avoid space-tab.
4144 * lib/m4sugar/m4sh.m4: Use tab consistently.
4146 2007-10-03 Paul Eggert <eggert@cs.ucla.edu>
4148 * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
4149 (m4_shiftn): Remove no-longer-needed optimization. Perhaps we
4150 should remove m4_shiftn entirely?
4151 (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
4152 Prefer m4_shift2 and m4_shift3 to m4_shiftn.
4153 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4154 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
4155 * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
4157 2007-10-03 Eric Blake <ebb9@byu.net>
4160 * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
4162 2007-10-02 Eric Blake <ebb9@byu.net>
4164 Optimize appending text.
4165 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
4169 * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
4170 lot of hot spots; optimize it for 2 and 3 shifts.
4172 Optimize AC_PREREQ and other m4sugar numerics.
4173 * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
4174 (m4_cmp): Compare arbitrary expressions, without overflow.
4175 (m4_version_unletter): Also recognize capital letters.
4176 (m4_version_compare): Avoid regex when splitting version number
4179 2007-10-01 Eric Blake <ebb9@byu.net>
4181 Once again, reject IRIX m4.
4182 * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
4183 implementations that ignore --trace.
4184 * configure: Regenerate.
4185 Reported by Ralf Wildenhues.
4187 Fix regression in AC_DEFINE([macro(with_arg)]).
4188 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
4189 quotes with a careless m4_substr.
4191 2007-09-30 Eric Blake <ebb9@byu.net>
4193 Allow nameless iteration.
4194 * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
4196 * tests/m4sugar.at (myvar): Test this.
4198 2007-09-29 Eric Blake <ebb9@byu.net>
4200 Speed optimization: avoid m4 regex when other algorithms work.
4201 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
4202 (_AS_QUOTE_IFELSE): Likewise.
4203 * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
4204 (m4_bpatsubsts): Split...
4205 (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
4207 (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
4208 (m4_qlen): Optimize on short strings, to avoid regex.
4209 (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
4210 * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
4211 (AC_DEFINE_TRACE): Likewise.
4213 2007-09-28 Eric Blake <ebb9@byu.net>
4215 Oops - my earlier 'optimization' caused a regression.
4216 * tests/local.at (AT_CHECK_M4): Fix typo.
4218 2007-09-27 Eric Blake <ebb9@byu.net>
4219 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4221 Catch even more common AC_CACHE_VAL mistakes.
4222 * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
4223 lacks '_cv_', or if AC_SUBST appears in body.
4224 * tests/base.at (AC_CACHE_CHECK): Test this change.
4226 2007-09-27 Stepan Kasal <kasal@ucw.cz>
4227 and Eric Blake <ebb9@byu.net>
4229 Autotest no longer caters to Ultrix redirection limitation.
4230 * doc/autoconf.texi (Writing testsuite.at): Remove the
4231 limitation that the first parameter of AT_CHECK cannot
4232 contain redirection.
4233 (File Descriptors): Mention that Ultrix limitation is no longer a
4234 show-stopper in modern code.
4235 * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
4236 parameter is `stderr' or `experr'. Optimize if it was `ignore'.
4237 * lib/autotest/general.m4 (AT_CHECK): Update comment.
4239 2007-09-27 Eric Blake <ebb9@byu.net>
4241 Squelch changeword in m4sugar.
4242 * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
4243 feature of m4 1.4.x.
4245 Configure whitespace touchups.
4246 * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
4247 installation directories, and avoid TAB, in configure --help
4249 * configure.ac: Avoid extra trailing newline.
4250 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
4251 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
4252 config.status --help output.
4253 * configure: Regenerate.
4255 Fix underquotation in AS_HELP_STRING.
4256 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
4258 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
4259 first-prefix argument.
4260 * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
4261 * NEWS: Document AS_HELP_STRING fix.
4263 Autotest formatting touchups.
4264 * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
4266 (PATH): Simplify computation of new PATH.
4268 2007-09-26 Eric Blake <ebb9@byu.net>
4270 Fix testsuite breakage in last patch.
4271 * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
4273 * tests/torture.at (@%:@define header templates): Rename, so that
4274 output lines up correctly.
4276 More font-lock happiness.
4277 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
4280 2007-09-25 Eric Blake <ebb9@byu.net>
4283 * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
4284 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
4286 Improve documentation of M4 parameter expansion.
4287 * doc/autoconf.texi (Quoting and Parameters): New section.
4288 (Quotation and Nested Macros): Improve wording.
4290 Improve C99 detection.
4291 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
4292 avoid deprecation warning with icc.
4294 Reported by Ted Bullock.
4296 2007-09-24 Jim Meyering <jim@meyering.net>
4298 Whenever possible, use the vertical bar as sed delimiter.
4299 * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
4301 * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
4302 [ac_dir_suffix]: Use "|", not "," as sed delimiter.
4303 * tests/mktests.sh (as_me): Likewise.
4304 * lib/freeze.mk (check-forbidden-patterns): Likewise.
4305 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
4306 * configure: Regenerate.
4307 * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
4308 * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
4309 in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
4310 This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
4312 2007-09-22 Jim Meyering <jim@meyering.net>
4315 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
4316 2004-05-31 change also with a comment in the code.
4318 2007-09-20 Eric Blake <ebb9@byu.net>
4320 More contribution housekeeping.
4322 * AUTHORS: Sort, reflect recent assignment from Helge Deller.
4324 Ignore additional files, when copying cross-repository.
4325 * .gitignore: Ignore CVS directories, emacs edits.
4326 * .cvsignore: Ignore .git directory, emacs edits.
4328 2007-09-15 Eric Blake <ebb9@byu.net>
4330 Provide AC_VERSION, not m4_AUTOCONF_VERSION.
4331 * doc/autoconf.texi (Text processing Macros): Remove mention of
4332 m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
4334 (Notices): Move AC_PREREQ...
4335 (Versioning): ...to this new section, alongside the new AC_VERSION
4336 alias for the undocumented m4_PACKAGE_VERSION.
4337 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
4338 * lib/autoconf/general.m4 (AC_VERSION): New macro.
4339 * NEWS: Update to match this rename.
4340 * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
4342 * tests/tools.at (autoconf: AC_VERSION): New test.
4343 Suggested by Paolo Bonzini and Benoit Sigoure.
4345 2007-09-14 Eric Blake <ebb9@byu.net>
4347 Prepare for conversion to git.
4348 * doc/.cvsignore: Avoid multiple listings on one line.
4349 * bin/.cvsignore: Likewise.
4350 * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
4351 lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
4352 lib/autoscan/.gitignore, lib/autotest/.gitignore,
4353 lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
4354 tests/.gitignore: New files, identical to .cvsignore counterpart.
4356 2007-09-13 Eric Blake <ebb9@byu.net>
4359 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
4361 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
4362 * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
4363 * configure: Regenerate.
4365 Clean up 'make dist' of previous patch.
4366 * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
4367 (CLEANFILES): Don't clean the stamp, since we distribute the
4368 generated files pre-built.
4369 (MAINTAINERCLEANFILES): Clean it here instead.
4370 * tests/Makefile.in: Regenerate.
4372 Avoid parallel 'make check' issue.
4373 * tests/Makefile.am (mktests.stamp): New witness.
4374 (TESTSUITE_GENERATED_AT): Use it.
4375 (CLEANFILES): Clean the witness.
4376 * tests/.cvsignore (mktests.stamp): Ignore the witness.
4378 Document another awk pitfall.
4379 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
4380 limitation of field variables in END.
4381 Reported by Gary V. Vaughan.
4383 * AUTHORS: Add missing entries.
4385 2007-09-12 Eric Blake <ebb9@byu.net>
4387 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
4388 * doc/autoconf.texi (Text processing Macros): Document
4389 m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
4390 (Redefined M4 Macros): Document m4_ifndef.
4391 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
4392 can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
4393 used it while it was undocumented.
4394 * NEWS: Document this change.
4395 * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
4396 * lib/m4sugar/Makefile.in: Regenerate.
4397 * tests/m4sugar.at (m4@&t@_version_compare): New test.
4398 Reported by Bruno Haible.
4400 * doc/autoconf.texi (Generic Compiler Characteristics): Add
4401 missing index entries.
4403 2007-09-11 Eric Blake <ebb9@byu.net>
4405 Centralize all system extensions checks.
4406 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
4407 from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
4408 (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
4409 AC_USE_SYSTEM_EXTENSIONS.
4410 (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
4411 (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
4412 * doc/autoconf.texi (Posix Variants): Reword this section,
4413 emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
4414 rather than a series of system-specific checks.
4415 (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
4417 * NEWS: Document this change.
4419 Reported by Martin Koeppe.
4421 2007-09-08 Eric Blake <ebb9@byu.net>
4423 Clean up obsolete macros references.
4424 * doc/autoconf.texi: Add anchors to support better
4426 (Particular Structures): Move obsolete macros descriptions...
4427 (External Software): Likewise.
4428 (Package Options): Likewise.
4429 (Obsolete Macros): ...to here. Add cross-references to
4430 documentation on replacements.
4431 * NEWS: Mention that these macros have been obsolete for a while
4432 now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
4434 Improve M4 path searching during configure.
4435 * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
4437 (_AC_PATH_PROG_FEATURE_CHECK): Rename...
4438 (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
4439 parameter, and kill side effects.
4440 (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
4441 (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
4442 * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
4444 (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
4445 allow bootstrapping with autoconf 2.61.
4446 * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
4447 * configure: Regenerate.
4448 * doc/autoconf.texi (Generic Programs): Document new macro.
4449 * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
4451 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
4452 * NEWS: Document the change.
4454 Reported by Hans Aberg.
4456 * doc/autoconf.texi (Generic Programs): Fix typo.
4458 2007-09-06 Eric Blake <ebb9@byu.net>
4460 * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
4461 :, and make it clear that optional @var{path} defaults to $PATH.
4462 (Erlang Compiler and Interpreter): Likewise.
4465 * doc/autoconf.texi: Avoid lines > 80 columns when possible.
4466 Reword some paragraphs to avoid overfull, underfull hbox
4467 warnings. Add index entries to avoid overfull vbox warnings.
4469 2007-09-05 Eric Blake <ebb9@byu.net>
4471 * NEWS: Adjust wording for AC_CONFIG_LINKS.
4472 Reported by Ralf Wildenhues.
4474 2007-09-03 Eric Blake <ebb9@byu.net>
4476 * NEWS: Document fixes that have been applied since 2.61a.
4479 * THANKS: Update, and convert to UTF-8 encoding.
4480 * AUTHORS: Likewise.
4482 2007-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4484 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
4485 names beginning with `-' again.
4487 2007-08-22 Stepan Kasal <kasal@ucw.cz>
4488 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4490 * doc/autoconf.texi (Defining Directories): Mention
4491 AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
4493 2007-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4495 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
4496 here, this macro is expanded by AC_INIT. Fixes 2.60 regression.
4497 * tests/base.at (configure arguments): New test.
4499 Report by Olaf Lenz.
4501 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
4502 arguments in comment.
4503 Report by Vincent Torri <vtorri at univ minus evry dot fr>.
4505 2007-08-20 Benoit Sigoure <tsuna@lrde.epita.fr>
4507 * doc/autoconf.texi (File System Conventions): Index the proper
4508 way of detecting absolute file names.
4510 2007-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4512 * build-aux/config.guess, build-aux/config.sub,
4513 build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
4514 build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
4515 doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
4516 * doc/autoconf.texi (GNU Free Documentation License): Adjust for
4517 sectioning change in fdl.texi.
4519 * bin/autoconf.as: Update --version output to match current GCS.
4520 * bin/autoheader.in: Likewise.
4521 * bin/autom4te.in: Likewise.
4522 * bin/autoreconf.in: Likewise.
4523 * bin/autoscan.in: Likewise.
4524 * bin/autoupdate.in: Likewise.
4525 * bin/ifnames.in: Likewise.
4527 2007-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4529 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
4530 file to itself if source and build trees coincide.
4531 * tests/torture.at (AC_CONFIG_LINKS and identical files): New
4533 Report by Sebastian Freundt <hroptatyr@gna.org>.
4535 2007-07-20 Paul Eggert <eggert@cs.ucla.edu>
4537 Reword the copyright notices to match what's suggested in GPLv3.
4538 In ChangeLog files, use more-permissive notice rather than GPL, as
4539 per usual GNU standards these days.
4541 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
4543 * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
4544 limitation reported by Leo Moisio in
4545 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
4547 2007-07-03 Paul Eggert <eggert@cs.ucla.edu>
4549 * COPYING: Update to GPLv3. All uses changed.
4551 2007-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4552 and Paul Eggert <eggert@cs.ucla.edu>
4554 * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
4557 2007-06-17 Noah Misch <noah@cs.caltech.edu>
4559 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
4560 * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
4561 `srcdir' as subdirectory of `builddir'.
4563 2007-06-13 Noah Misch <noah@cs.caltech.edu>
4565 * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
4566 * tests/autotest.at (srcdir propagation): New test.
4568 Reported by Mike Frysinger.
4570 2007-06-13 Paul Eggert <eggert@cs.ucla.edu>
4572 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
4573 Problem reported by Fred Kreek in
4574 <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
4575 * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
4576 (Macro Names, Defining Directories): Don't mention PATH as a name
4577 for a fully qualified file name, as this usage violates the GNU
4578 coding standards and we shouldn't recommend it.
4580 * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
4581 string and then assume shell builtins like "test" will work.
4583 2007-06-12 Noah Misch <noah@cs.caltech.edu>
4585 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
4586 not a valid shell variable name.
4587 * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
4588 * tests/torture.at (AC_SUBST: variable name validation): New test.
4589 Reported by Andreas Schwab.
4591 2007-06-04 Noah Misch <noah@cs.caltech.edu>
4593 * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
4594 works with both C and C++.
4596 2007-06-03 Noah Misch <noah@cs.caltech.edu>,
4597 Bruno Haible <bruno@clisp.org>
4599 * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
4602 2007-05-31 Paul Eggert <eggert@cs.ucla.edu>
4604 * doc/autoconf.texi (Particular Types): Give example of use for
4607 2007-05-29 Stepan Kasal <kasal@ucw.cz>
4609 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
4611 2007-05-28 Paul Eggert <eggert@cs.ucla.edu>
4613 * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
4614 define HAVE_INT8_T, and likewise for similar macros.
4615 Problem reported by Patrick Welche in
4616 <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
4618 2007-05-25 Noah Misch <noah@cs.caltech.edu>
4620 * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
4622 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
4624 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
4625 choice, since that's what we do with --enable-largefile etc.
4626 Redo indenting and assignments to simplify things a bit, and make
4627 the parens work with Emacs.
4629 * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
4630 in my previous change: AC_C_OPENMP -> AC_OPENMP. Reported by Bruno
4633 2007-05-21 Noah Misch <noah@cs.caltech.edu>
4635 * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
4636 * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
4638 2007-05-21 Bruno Haible <bruno@clisp.org>
4640 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
4641 * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
4642 * doc/autoconf.texi (Generic Compiler Characteristics): Move
4643 renamed AC_OPENMP documentation here, from "C compiler".
4644 Mention C++ and Fortran.
4646 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
4648 * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
4650 2007-05-21 Bruno Haible <bruno@clisp.org>
4652 * NEWS: Mention AC_C_OPENMP.
4653 * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
4654 * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
4655 Based in part on Steven G. Johnson's investigations for the AX_OPENMP
4656 macro in the Autoconf macro archive.
4658 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4660 * bin/autom4te.in: Fix typos.
4662 2007-05-16 Noah Misch <noah@cs.caltech.edu>
4664 * bin/autoconf.as: Handle `-' just like other input files.
4665 * bin/autom4te.in (parse_args): Pass `-' through.
4666 (handle_output): Skip the forbidden token search if we read from stdin.
4667 (up_to_date): Always treat stdin as out of date.
4668 * tests/tools.at (autoconf: input from stdin): New test.
4669 (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
4671 2007-05-16 Stepan Kasal <kasal@ucw.cz>
4673 * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
4674 parameters for AT_CLEANUP.
4675 * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
4677 2007-05-14 Paul Eggert <eggert@cs.ucla.edu>
4679 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
4680 * doc/autoconf.texi (C Compiler): Likewise.
4682 2007-05-14 Noah Misch <noah@cs.caltech.edu>
4684 * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
4686 2007-05-09 Stepan Kasal <kasal@ucw.cz>
4688 * doc/autoconf.texi: Direntry for "autoconf Invocation"
4689 renamed to "autoconf-invocation"
4691 * doc/autoconf.texi (Caching Results): The CACHE-ID variable
4692 in the examples should not use the internal "ac_" prefix.
4694 2007-05-05 Noah Misch <noah@cs.caltech.edu>
4696 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
4697 * doc/autoconf.texi ($@, case): Document Zsh limitations.
4699 2007-05-03 Stepan Kasal <kasal@ucw.cz>
4701 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
4702 Reorganize the comments before and in the macro.
4704 2007-05-02 Stepan Kasal <kasal@ucw.cz>
4706 * lib/autoconf/lang.m4, lib/autoconf/c.m4,
4707 lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
4708 section titles and other comments; no code change.
4710 2007-05-01 Kevin Ryde <user42@zip.com.au>
4712 * doc/autoconf.texi (Particular Programs): Typo
4713 @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
4715 2007-04-30 Paul Eggert <eggert@cs.ucla.edu>
4717 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
4718 'configure' will fail if the shell lacks proper support for shell
4719 functions. Suggested by RMS.
4721 2007-04-29 Paul Eggert <eggert@cs.ucla.edu>
4723 * doc/autoconf.texi (Limitations of Builtins): Correct the warning
4724 about Solaris /bin/printf '%010000x' 123. Problem reported by
4727 2007-04-28 Paul Eggert <eggert@cs.ucla.edu>
4729 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
4730 for a.* when searching for executables, as this prevents users
4731 from having files like a.c. Problem reported by Ralf Wildenhues in:
4732 http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
4733 This fixes a problem introduced on 2000-12-19.
4735 2007-04-26 Paul Eggert <eggert@cs.ucla.edu>
4737 * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
4738 /bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
4741 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
4743 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
4744 AC_CHECK_TYPE, AC_CHECK_TYPES.
4745 * doc/autoconf.texi (Generic types): C types must be type-names
4746 (the C terminology), not type-ids (the C++ term). C++ types
4747 must not be anonymous.
4748 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
4749 for C++; this drops support for anonymous struct and union types,
4750 which were problematic anyway.
4751 * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
4754 2007-04-12 Jim Meyering <jim@meyering.net>
4756 * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
4758 2007-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4760 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
4761 to prefer a link source from the build tree, if it exists.
4762 Report by Pallav Gupta <pallavgupta@gmail.com>.
4764 2007-04-11 Paul Eggert <eggert@cs.ucla.edu>
4766 * doc/autoconf.texi (Generic Types): Document the restrictions
4767 on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
4768 (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
4769 with objects too. Document the restrictions on its use.
4770 Document the restrictions on AC_CHECK_ALIGNOF's type argument.
4771 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
4772 For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
4773 works but the latter doesn't, then it's a valid type.
4774 This lets people use function types and so forth.
4775 For C++ there doesn't seem to be a simple solution, so leave it alone.
4776 (AC_CHECK_SIZEOF): Allow argument to be a variable.
4777 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
4778 AC_CHECK_TYPE; that wasn't documented or necessary.
4780 2007-04-11 Stepan Kasal <kasal@ucw.cz>
4782 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
4783 when cross-compiling.
4785 2007-04-11 Stepan Kasal <kasal@ucw.cz>
4787 * doc/autoconf.texi (External Software): Fix a typo in the
4790 2007-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4792 * doc/autoconf.texi (External Software, Package Options):
4793 Fix ambiguous wording. Report by Reuben Thomas <rrt@sc3d.org>.
4795 2007-04-06 Paul Eggert <eggert@cs.ucla.edu>
4797 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
4798 obsolescent. Suggested by Bruno Haible.
4799 * NEWS: Document this.
4801 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4803 * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
4804 (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
4805 default still has the problem. Problem reported by Bruce Korb.
4807 2007-03-28 Stepan Kasal <kasal@ucw.cz>
4808 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4810 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
4811 comment in the generated config.status.
4813 2007-03-27 Stepan Kasal <kasal@ucw.cz>
4815 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
4817 2007-03-26 Paul Eggert <eggert@cs.ucla.edu>
4819 * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
4820 command and case statements to make it a bit clearer and describe
4823 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4825 * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
4826 checks for unsigned long long int.
4828 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4830 * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
4831 nonstandard grep R.E. escape sequences.
4833 2007-03-17 Jim Meyering <jim@meyering.net>
4835 * doc/autoconf.texi: Adjust grammar around use of "heuristics".
4836 (Limitations of Usual Tools): Also list \< and \>, and mention that
4837 HP-UX's grep, like the one from Solaris, does not support that syntax.
4839 2007-03-09 Stepan Kasal <kasal@ucw.cz>
4841 * doc/autoconf.texi (Specifying Names): `--host' does not
4842 change the build type.
4844 2007-03-05 Paul Eggert <eggert@cs.ucla.edu>
4846 * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
4847 suggests AC_CONFIG_HEADERS.
4848 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
4849 AC_CONFIG_HEADERS. Problem reported by
4852 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
4854 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
4855 Problem reported by Paolo Bonzini in:
4856 http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
4857 * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
4858 universal binaries. Problem reported by Elias Pipping.
4860 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
4862 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
4863 * doc/autoconf.texi (C Compiler): Document this. There is a new
4864 extra argument ACTION-IF-UNIVERSAL.
4865 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
4866 Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
4867 Reindent for sanity's sake.
4869 2007-02-24 Eric Blake <ebb9@byu.net>
4871 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
4873 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
4874 * lib/autotest/general.m4 (AT_INIT): Likewise.
4875 (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
4877 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4879 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
4880 status of rm so we know when it failed.
4881 If cleaning of test dir failed before running the test, warn.
4882 Output the line separator in verbose mode before the warning
4883 to make clear the warning belongs to the following test.
4885 2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
4887 * doc/autoconf.texi (Parentheses): Mention problem with (( in
4890 2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4891 and Paul Eggert <eggert@cs.ucla.edu>
4893 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
4894 errors introduced in last change.
4896 2007-02-07 Paul Eggert <eggert@cs.ucla.edu>
4898 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
4899 an actual carriage return. Use "ac_cr" to contain the actual
4901 * doc/autoconf.texi (Limitations of Usual Tools): Document problem
4902 with traditional Awk and begin.
4903 * tests/torture.at (Limitations of Builtins): Document the problem
4904 with Bash 2.03 printf.
4905 (Substitute and define special characters):
4906 Remove trailing white space. Work around a bug in Solaris 8 /bin/bash.
4908 2007-02-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
4910 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
4911 input from /dev/null in awk test, so even Solaris /usr/bin/awk
4912 will not wait for input with a script containing only a BEGIN
4915 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
4917 * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
4921 2007-02-02 Eric Blake <ebb9@byu.net>
4923 * NEWS: Update copyright.
4925 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
4927 * configure.ac: Update error message.
4928 * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
4929 Reported by Gary Vaughan and Jim Meyering, and problem analyzed
4931 http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
4933 2007-01-31 Eric Blake <ebb9@byu.net>
4935 * THANKS (people): Update.
4937 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
4939 * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
4941 (Shell Substitutions): Note problems with @{var:=value} etc.
4942 Add a new section for problems with @{#var} etc. Problem noted
4943 by Ralf Wildenhues. See:
4944 http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
4946 2007-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4948 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
4949 AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
4950 trace, if a package uses AC_PROG_MKDIR_P explicitly. The actual
4951 substitution will still be done by the special code.
4952 Report by Jim Meyering.
4954 * doc/autoconf.texi (File System Conventions): Mention that
4955 $PATH_SEPARATOR is for the build system only.
4956 Report by Keith Marshall.
4958 2007-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4960 * doc/autoconf.texi (Setting Output Variables): Mention that
4961 all non-NUL characters are ok in substituted values.
4962 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
4963 (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
4964 carriage return for $AWK, needed for BSD awk.
4965 * tests/torture.at (Substitute and define special characters):
4966 Test all 8 bit non-NUL characters.
4967 Report against Automake by Patrick Welche.
4969 2007-01-15 Stepan Kasal <kasal@ucw.cz>
4971 * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
4973 2007-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4975 * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
4976 early on the reader side, drop stderr of the input to avoid
4977 `broken pipe' error output; this may happen even with shell
4978 builtin `echo' of some bash versions. Reports by Ian Macdonald
4979 <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
4981 2007-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4983 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
4984 separate items of `ac_user_opts', to avoid long lines.
4985 (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
4987 2007-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4989 * doc/autoconf.texi: Fix some typos.
4991 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
4993 Fix some wording problems noted by Paolo Bonzini in:
4994 http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
4995 * doc/autoconf.texi (Signed Overflow Examples): Give more
4996 discussion about the allow_superuser_privileges example,
4997 and change it a bit to make things clearer.
4998 (Optimization and Wraparound): Clarify whether the compiler
4999 will generate an infinite loop for the example derived from
5000 Autoconf's mktime test.
5001 (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
5002 Also, clarify unsigned multiplication overflow.
5004 2007-01-04 Eric Blake <ebb9@byu.net>
5006 * bin/Makefile.am (RELEASE_YEAR): New macro.
5007 (edit): Use it to supply correct copyright year to scripts.
5008 * bin/autoconf.as (version): Use it.
5009 * bin/autoheader.in ($version): Likewise.
5010 * bin/autom4te.in ($version): Likewise.
5011 * bin/autoreconf.in ($version): Likewise.
5012 * bin/autoscan.in ($version): Likewise.
5013 * bin/autoupdate.in ($version): Likewise.
5014 * bin/ifnames.in ($version): Likewise.
5016 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
5018 * doc/autoconf.texi (Integer Overflow): Revised based on today's
5019 feedback. The most important changes document what happens when
5020 you convert an out-of-range value to a signed integer type, and
5021 say that (sum < a) != (b < 0) reliably detects overflow when sum =
5024 * doc/autoconf.texi (Integer Overflow): Greatly expand and
5025 rewrite, taking notions from the recent discussion on the gcc and
5026 autoconf mailing lists; please see
5027 http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
5028 and follow the many links.
5029 (Integer Overflow Basics, Signed Overflow Examples):
5030 (Optimization and Wraparound, Signed Overflow Advice):
5031 (Signed Integer Division): New sections.
5033 2006-12-28 Steven G. Johnson <stevenj@alum.mit.edu>
5035 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
5036 preprocessor macro arguments in traced name.
5037 * doc/autoconf.texi (Defining symbols): Document longstanding
5038 support for AC_DEFINE-ing macros with arguments, and document
5039 behavior when the same variable has multiple AC_DEFINEs.
5040 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
5041 old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
5042 macros directly, giving much shorter and simpler code.
5044 2006-12-28 Malcolm Purvis <malcolmp@xemacs.org> (trivial change)
5046 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
5047 space before "$ac_configure_args" to prevent a 'config.status
5048 --recheck' failure if ac_configure_args doesn't contain a leading
5049 space. This works around a problem with the XEmacs configure.ac,
5050 which uses the (undocumented) ac_configure_args variable
5051 inconsistently with Autoconf.
5053 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
5055 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
5056 Include <limits.h>, and use its INT_MAX to rewrite the
5057 j loop so that it does not overflow 'int'. Problem reported by
5059 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
5060 Play it safe by shifting left by 1 rather than multiplying by 2,
5061 as GCC is less likely to optimize this away when the value
5062 is signed (when it assumes overflow leads to undefined behavior).
5063 Also, don't assume time_t uses two's complement.
5065 2006-12-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5067 * tests/torture.at (Substitute a 2000-byte string): Avoid using
5068 a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
5069 dumps core on it. Report by Tim Rice.
5071 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
5073 * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
5074 --disable-option-checking to --help output even when
5075 AC_PRESERVE_HELP_ORDER is not used.
5076 (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
5077 --with argument, rather than argument with [-.] replaced by
5079 * NEWS: Fix typo in previous change; the news was in the
5082 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
5084 * NEWS: Warnings are now generated by default for unknown
5085 --enable-* and --with-* options.
5086 * doc/autoconf.texi (Option Checking): Renamed from
5087 (Configure Option Checking). Tighten up the wording a bit.
5088 (External Software, Package Options): Cross-reference to Option
5089 Checking, and use this to shorten our section.
5090 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
5091 "$x" to test "x$foo" != x.
5092 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
5093 Don't warn if $enable_option_checking is "no".
5094 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
5095 ac_unrecognized_opts to the empty string.
5096 Don't echo the unrecognized opts, as this might mishandle
5097 backslashes or leading -.
5098 (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
5099 usage next to the other --disable-FEATURE options in the
5102 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
5104 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
5105 (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
5106 Print warning for unrecognized --with and --enable options
5107 (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
5108 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
5109 Disable option checking when subdirs are configured.
5110 (AC_OUTPUT): If warnings are enabled, print warning about
5111 unrecognized --with and --enable options at the end of
5112 the configure output (as well as at the beginning).
5113 * doc/autoconf.texi (Option Checking): New node.
5114 Document new option warning functionality.
5116 2006-12-16 Eric Blake <ebb9@byu.net>
5118 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
5119 * NEWS: Start news for current version.
5121 2006-12-15 Paul Eggert <eggert@cs.ucla.edu>
5123 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
5124 Define HAVE_GETMNTENT to 1, not to the empty string.
5125 Problem originally reported by Jochen Friedrich in
5126 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
5128 This change prompted by a problem report by Andrey Simonenko in
5129 <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
5130 * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
5131 object-like macros only, in the traditional portable character
5133 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
5134 Warn about attempts to define things that are not identifiers.
5135 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
5136 awful hack that AC_DEFINEd macro names containing parentheses.
5138 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
5140 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
5141 too drastic, even if Texinfo in theory requires it for info mode.
5143 (config.status Invocation): Renamed back from Recreating a
5145 (Obsolete config.status Use): Renamed back from Obsolete Recreation.
5146 (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
5148 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5150 * NEWS: Version 2.61a.
5152 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5153 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5155 * NEWS: Document changes with echo and printf, and the lack
5156 of limits on the total size of multi-line values of substituted
5157 variables, and the AC_FUNC_FSEEKO fix.
5159 2006-12-10 Paul Eggert <eggert@cs.ucla.edu>
5161 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
5162 Writing configure.ac.
5163 (Autoconf Input Layout): Renamed from configure.ac Layout.
5164 (Recreating a Configuration): Renamed from config.status Invocation.
5165 (Obsolete Recreation): Renamed from Obsolete config.status Use.
5166 (acconfig Header): Renamed from acconfig.h.
5167 (20th-century Autoconf 2): Renamed from Autoconf 2.13.
5168 (Writing Testsuites): Renamed from Writing testsuite.at.
5169 (Autom4te Cache): Renamed from autom4te.cache.
5171 * BUGS: Remove mention of VPATH problem, since it's now documented
5172 not to be a bug in the Autoconf build procedure itself, but rather
5173 a problem with the proprietary `make' programs.
5175 * doc/autoconf.texi (Build Directories): Add a cross reference
5178 * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
5179 * doc/standards.texi: Sync from gnulib.
5181 * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
5182 * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
5183 * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
5184 generated automatically.
5186 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
5188 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
5189 C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses
5190 the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
5192 2006-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5194 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
5195 `CEOF$ac_eof' special marker, the awk script cannot contain a
5196 line matching `^CEOF', so this is not needed any more.
5197 * tests/torture.at (Substitute a newline): Expose the `%!_!# '
5198 special marker in the test.
5200 2006-12-06 Stepan Kasal <kasal@ucw.cz>
5202 * tests/tools.at (autom4te preselections): Use `find -newer';
5203 remove one of the sleeps.
5205 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
5206 more readable, using ...
5207 (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
5209 * doc/autoconf.texi (autoheader Invocation): Do not double-
5210 quote the parameter of `AH_BOTTOM' in the example.
5212 2006-12-05 Stepan Kasal <kasal@ucw.cz>
5214 * doc/autoconf.texi (Configuration Headers): Remove the
5215 example with multiple input files.
5216 (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
5217 multiple input files.
5219 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5221 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
5222 creating the awk substitution script, handle one input line at a
5223 time, so that the maximum length of a substituted (multi-line)
5224 value is not limited by the size of the sed pattern space.
5225 The trade-off is a slightly repetitive sed script.
5226 * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
5227 can only have up to 7 characters, due to Solaris 10 /bin/sed.
5228 * tests/torture.at (Substitute a 2000-byte string): Increase the
5229 test with several long lines, they should not be caught by sed
5232 * tests/tools.at (autom4te preselections): New test, to flag
5233 entries missing from autom4te.cfg.
5234 Report by David Byron <dbyron@hheld.com>.
5236 * tests/torture.at (Substitute a 2000-byte string): Actually use
5237 AC_PROG_AWK, so the last change works as intended.
5238 (Substitute and define special characters): Likewise.
5239 (Substitute a newline): Likewise.
5241 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
5242 instead of `awk' consistently.
5243 (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
5244 * tests/torture.at (Torturing config.status): Test both the
5245 result of AC_PROG_AWK and plain awk.
5246 (Substitute a 2000-byte string): Likewise.
5247 (Substitute and define special characters): Likewise.
5248 (Substitute a newline): Likewise.
5250 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
5252 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
5253 can be assigned to a function pointer. Problem reported by
5254 Peter Palfrader in <http://bugs.debian.org/401377>. Based on
5255 part of a patch by Ralf Wildenhues in that same bug report.
5257 2006-12-01 Paul Eggert <eggert@cs.ucla.edu>
5259 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
5260 * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
5262 2006-12-01 Eric Blake <ebb9@byu.net>
5264 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
5265 cross-compiling from cygwin to mingw.
5266 Reported by Bob Rossi. This resurrects the 2000-11-30 patch to
5267 aclang.m4, which was mistakenly removed in the 2001-09-17 patch
5268 to lib/autoconf/c.m4.
5270 2006-12-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5272 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
5273 string for more reliable failure. Wrap the entire test that
5274 causes the broken Solaris printf to dump core, in a subshell,
5275 so the segmentation fault message is reliably suppressed.
5276 Fix shell expansion errors by using /usr/ucb/echo always;
5277 avoid an error on systems without it by another subshell.
5278 Avoid m4 expansion of `$1'. Set the zeroth argument of the
5279 subshell-$as_echo to `as_echo', for better error message.
5281 2006-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5283 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
5284 `BASH_SOURCE' contain a newline, set them to empty, as they may
5287 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
5289 Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
5290 years and is too hard to maintain now. The last straw was
5291 reported by Jerker Baeck in
5292 <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
5293 * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
5294 * doc/autoconf.texi (Particular Functions): Move
5295 AC_FUNC_SETVBUF_REVERSED from here...
5296 (Obsolete Macros): ... to here. Say that it does nothing now.
5297 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
5298 Turn into (almost) a no-op.
5300 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
5302 Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
5303 These macros are obsolescent and new applications shouldn't need them.
5304 * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
5305 (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
5306 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
5307 (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
5308 (AC_FUNC_VPRINTF): Likewise.
5309 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
5310 (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
5311 * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
5313 * doc/autoconf.texi (Setting Output Variables): Mention that
5314 @VAR1@VAR2 has unspecified behavior. Problem reported by
5316 * NEWS: Mention this.
5318 * Makefile.am: Put only a single '#' into the copyright notice,
5319 so that it's also present in the output file. Standardize wording
5320 in makefile copyright notices to match GNU coding standards.
5321 * bin/Makefile.am: Likewise.
5322 * doc/Makefile.am: Likewise.
5323 * lib/Makefile.am: Likewise.
5324 * lib/freeze.mk: Likewise.
5325 * lib/autoconf/Makefile.am: Likewise.
5326 * lib/autoscan/Makefile.am: Likewise.
5327 * lib/autotest/Makefile.am: Likewise.
5328 * lib/m4sugar/Makefile.am: Likewise.
5329 * man/Makefile.am: Likewise.
5330 * tests/Makefile.am: Likewise.
5331 * lib/emacs/Makefile.am: Remove copyright notice; it's just a
5334 2006-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5336 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
5337 in the sed script that mangles the awk script: delete up to the
5338 first exclamation mark only.
5339 * tests/torture.at (Substitute and define special characters):
5342 2006-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5344 Rewrite config files generation: avoid quadratic growth in
5345 the number of substituted variables by using awk instead of sed
5346 for the bulk of the substitutions.
5347 * NEWS: Mention this.
5348 * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
5349 forbidden in the output (and thus input) file.
5350 * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
5351 (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
5352 generate just one large awk script for substitutions,
5353 eliminating much of the earlier complexity, while adding some
5354 new complexity. Only expand the substitution templates at
5355 configure time, for smaller configure script size. If
5356 _AC_SUBST_FILES are used, test 'awk' for working getline support
5357 at config.status time. If absent, interpolate through the
5358 shell. The awk script was written with much help
5359 from Paolo Bonzini and Paul Eggert.
5360 (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
5361 (_AC_SED_FRAG_NUM): Likewise.
5362 (_AC_SUBST_CMDS): Renamed from...
5363 (_AC_SED_CMDS): ...this.
5364 (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
5365 * tests/torture.at (Substitute a 2000-byte string): Also
5366 substitute a line with 1000 words, and a variable with several
5368 (Substitute and define special characters): Test awk special
5369 characters, and put substitution input strings `@foo@' in the
5370 output, to test that no recursion happens; test several other
5371 combinations from Paolo Bonzini.
5373 2006-11-25 Paul Eggert <eggert@cs.ucla.edu>
5375 * lib/autotest/general.m4 (AT_INIT): Undo recent changes
5376 that replaced echo with AS_ECHO where this wasn't necessary.
5377 Problem reportd by Ralf Wildenhues.
5378 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
5379 where "/usr/bin/printf '%s\n' S" dumps core if S is long.
5380 This is Sun bug 4206210. Problem reportd by Ralf Wildenhues.
5382 2006-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5384 * lib/freeze.mk (GREP): Removed, no need to initialize this.
5386 2006-11-21 Paul Eggert <eggert@cs.ucla.edu>
5388 * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
5389 that traditional Awk lacks 3-arg "split". It has it.
5390 Mention that FS must be a single character, and a few other
5391 99-byte limits of traditional Awk.
5392 Mention that if (i in a) doesn't work with traditional Awk.
5394 2006-11-18 Paul Eggert <eggert@cs.ucla.edu>
5396 * tests/autotest.at (BSx641-newline in command):
5397 (BS-BS-newline in command, BSx640-newline in command):
5398 (Newline-CODE-BS-newline in command):
5399 (Single-quote-BS-newline in command):
5400 (Single-quote-newline-BS-newline in command):
5401 Use printf '%s\n' instead of echo, for portability to hosts
5402 where echo interprets backslashes. This will break on hosts
5403 that lack printf, but for now let's assume all such hosts
5404 are dead (if not, we should get reports of test failures).
5406 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
5408 'echo' has some portability problems, when given a first argument
5409 with a leading '-', or when given any argument containing '\'.
5410 Avoid using 'echo' in these cases.
5411 * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
5412 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
5413 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5414 * lib/autotest/general.m4 (AT_INIT): Likewise.
5415 * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
5416 argument might be unportable.
5417 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
5418 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
5419 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
5420 (_AC_FC_LIBRARY_LDFLAGS): Likewise.
5421 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
5422 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
5423 (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
5424 (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
5425 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
5426 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
5427 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
5428 (AC_PROG_MAKE_SET): Likewise.
5429 * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
5430 (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
5431 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
5432 (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
5433 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
5434 (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
5435 (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
5436 * bin/autoconf.as: Redo verbose flag implementation, as the old
5437 scheme wouldn't work with AS_ECHO.
5438 * lib/autotest/general.m4 (AT_INIT): Likewise.
5439 * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
5440 Don't use ECHO_T, since ECHO_N is now reliable.
5441 * lib/autotest/general.m4 (AT_INIT): Likewise.
5442 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
5443 rather than using a here-document to put the script into a file.
5444 (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
5446 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
5447 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
5448 AS_ECHO_N rather than ECHO_N and ECHO_C. This doesn't fix any
5449 bug, but we might as well stop using ECHO_N and ECHO_C internally.
5450 * lib/autotest/general.m4 (AT_SETUP): Likewise.
5451 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
5452 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
5453 (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
5454 operand, as AS_ECHO requires. Avoid double file name expansion.
5455 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
5456 Don't set as_nl, since _AS_ECHO_PREPARE does that now.
5457 (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
5458 (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
5459 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
5460 Double-quote strings that would otherwise contain M4 comments.
5461 * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
5463 * configure.ac (AC_INIT): Bump to 2.61a.
5466 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
5470 * configure.ac (AC_INIT): Bump to 2.61.
5473 * tests/autotest.at (Macro with backslash in a test title):
5474 Comment out for now, as this tests neither fails nor passes
5475 reliably. Problem reported by Ralf Wildenhues.
5477 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
5479 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
5480 in previous change, which caused test failures.
5482 2006-11-16 Stepan Kasal <kasal@ucw.cz>
5484 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
5485 code for --enable, --disable, --with, and --without to...
5486 (_AC_INIT_PARSE_ENABLE): ... a new macro.
5487 * doc/autoconf.texi (Package Options):
5488 * NEWS: Document that AC_ARG_ENABLE allows dots, too.
5490 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
5492 Import these changes from config via gnulib:
5494 2006-11-15 Ben Elliston <bje@gnu.org>
5496 From Josselin Mouette <joss@debian.org>:
5497 * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
5499 2006-11-08 Ben Elliston <bje@gnu.org>
5501 * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
5503 2006-11-07 Steve Woodford <scw@NetBSD.org>
5504 Ben Elliston <bje@gnu.org>
5506 * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
5507 * build-aux/config.sub (sh5el): New basic_machine.
5510 Import this change from coreutils:
5512 2006-02-13 Jim Meyering <jim@meyering.net>
5514 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
5517 Import this change from gnustandards via gnulib:
5519 2006-11-15 Karl Berry <karl@gnu.org>
5521 * standards.texi: core -> memory, throughout.
5522 (CPU Portability): show correct example of calling write
5523 on a char value; thanks to Paul Eggert for the code.
5524 Both of these suggestions from Eugene Y. Vasserman.
5527 Import these changes from texinfo via gnulib:
5529 2006-11-08 Karl Berry <karl@gnu.org>
5531 * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
5532 as well as pdf images, since they are supported in pdftex with
5535 2006-11-05 Karl Berry <karl@gnu.org>
5537 * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
5539 2006-11-13 Paul Eggert <eggert@cs.ucla.edu>
5541 * NEWS: Document the AC_ARG_WITH change.
5543 2006-11-13 Bruno Haible <bruno@clisp.org>
5545 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
5546 options, transliterate also dots to underscores.
5547 (_AC_ENABLE_IF): Transliterate also dots to underscores.
5548 * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
5549 first argument may also contain dots.
5551 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
5553 * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
5554 benefit of platforms like Solaris+GCC where it is common to have a
5555 non-working g++ installation.
5557 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5558 and Joel E. Denny <jdenny@ces.clemson.edu>
5559 and Paul Eggert <eggert@cs.ucla.edu>
5561 * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
5562 and non-portable sed scripts, and use $CONFIG_SHELL when invoking
5565 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
5567 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
5568 ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
5569 Imported from a similar patch to gnulib by Bruno Haible.
5571 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
5573 * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
5574 * doc/autoconf.texi (C Compiler): Document them.
5575 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
5576 New macros, taken from gnulib.
5578 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
5580 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
5581 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
5584 2006-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5586 * tests/torture.at (Configuring subdirectories): Do not skip
5587 Automake 1.10 nor future Automake 11.1 (sic).
5589 2006-10-26 Joel E. Denny <jdenny@ces.clemson.edu>
5590 and Stepan Kasal <kasal@ucw.cz>
5592 Handle special characters in test case titles correctly.
5593 * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
5595 (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
5596 * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
5597 argument. Extend to check titles printed by ./micro-suite and
5598 ./micro-suite -l and the title in micro-suite.log.
5599 (Backquote in a test title,
5600 Single-quote in a test title,
5601 Double-quote in a test title): Don't expect failure anymore.
5602 (Backslash in a test title): Put a non-whitespace character after the
5603 backslash so that Bourne shells might actually see it as an escape
5605 (Brackets in a test title,
5606 Pound in a test title,
5607 Comma in a test title,
5608 Quoted Macro in a test title,
5609 Macro in a test title,
5610 Macro with single-quote in a test title): New tests.
5611 (Macro with backquote in a test title,
5612 Macro with double-quote in a test title,
5613 Macro with backslash in a test title): New tests expected to fail.
5614 * tests/torture.at (#define header templates): M4-quote this title in
5615 AT_SETUP call so that no M4 code is commented inadvertently somewhere.
5616 The visible effect was a stray [] in the testsuite output.
5618 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5620 * doc/autoconf.texi (Limitations of Builtins): Do not invoke
5621 `trap ... 0' inside a function, for AIX sh.
5623 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
5625 * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
5626 since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
5627 5363) simply issues a warning when dividing by zero at compile
5628 time. Problem reported by Elias Pipping.
5630 2006-10-26 Eric Blake <ebb9@byu.net>
5633 * doc/autoconf.texi (Evaluation Macros): Improve the example to
5634 show effect on macros that expand with commas.
5635 Reported by Joel E. Denny.
5637 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5638 Also work with M4 1.4.8.
5640 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
5642 * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
5645 2006-10-25 Stepan Kasal <kasal@ucw.cz>
5647 * tests/tools.at (autom4te --force): New test, verifies that
5648 `--force' always rewrites the output file.
5650 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5652 * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
5653 needs operands on NetBSD 2.0.2. Problem reported by Bruno Haible.
5655 2006-10-24 Stepan Kasal <kasal@ucw.cz>
5657 * tools/trace.at (autoconf --trace: user macros): Test `$%'.
5659 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
5661 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5662 If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
5663 AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
5664 reported by Nelson H. F. Beebe for Coreutils 6.4.
5666 * tests/tools.at (autoconf --trace: user macros): Remove test
5667 for tracing multiline macros, since m4 1.4.7a uses a different
5668 way to number lines. Problem reported by Ralf Wildenhues.
5670 2006-10-24 Stepan Kasal <kasal@ucw.cz>
5672 * bin/autom4te.in (handle_m4): Do not redirect stdin to
5673 /dev/null since the heuristics for interactive behaviour was
5676 * bin/autom4te.in: With --force, always refresh the output
5677 file. Problem reported by Greg Schafer <gschafer@zip.com.au>.
5679 * bin/autoconf.as: Fix the verbose message at the end.
5681 2006-10-23 Paul Eggert <eggert@cs.ucla.edu>
5683 * configure.ac (AC_INIT): Bump to 2.60c.
5686 2006-10-22 Paul Eggert <eggert@cs.ucla.edu>
5688 * NEWS: Version 2.60b.
5690 Import this change from Texinfo:
5691 2006-10-15 Karl Berry <karl@gnu.org>
5692 * build-aux/texinfo.tex: automake 1.10
5694 * NEWS: Remove AC_CACHE_CHECK_INT.
5695 * doc/autoconf.texi (Caching Results): Likewise.
5696 * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
5697 AC_CACHE_CHECK_INT, since it's no longer public.
5698 * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
5699 * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
5701 2006-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5703 * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
5705 2006-10-19 Eric Blake <ebb9@byu.net>
5707 * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
5708 (m4_maketemp): Avoid warnings with M4 1.9a.
5709 * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
5711 * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
5714 2006-10-16 Eric Blake <ebb9@byu.net>
5716 * doc/autoconf.texi (Setting Output Variables): Fix typo.
5718 * bin/autoconf.as (version): Reword to match GNU Coding
5720 * bin/autoheader.in (version): Likewise.
5721 * bin/autom4te.in (version): Likewise.
5722 * bin/autoreconf.in (version): Likewise.
5723 * bin/autoscan.in (version): Likewise.
5724 * bin/autoupdate.in (version): Likewise.
5725 * bin/ifnames.in (version): Likewise.
5727 2006-10-14 Stepan Kasal <kasal@ucw.cz>
5729 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
5730 looking for special shell characters.
5731 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
5732 macro defined by AS_VAR_PUSHDEF before passing it as a
5734 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
5735 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
5736 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
5737 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
5738 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
5740 * lib/autotest/general.m4 (AT_INIT): Quote parameters of
5742 * tests/m4sh.at (AS_LITERAL_IF): New test.
5744 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
5746 (Imported from Automake.)
5747 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
5748 which incorrectly sets the mode of an existing destination
5749 directory. In some cases the unpatched install-sh could do the
5750 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
5751 system. We hope this is rare in practice, but it's clearly worth
5752 fixing. Problem reported by Alex Unleashed in
5753 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
5754 Also, don't bother to check for -m bugs unless we're using -m;
5755 suggested by Stepan Kasal.
5757 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
5759 Import this change from Automake:
5761 2006-08-23 Alexandre Duret-Lutz <adl@gnu.org>
5762 * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
5763 is enabled by default with gnu and gnits strictness.
5764 Report from Bruno Haible.
5766 2006-03-10 Alexandre Duret-Lutz <adl@gnu.org>
5767 * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
5768 gnu and gnits modes.
5770 Import this change from Config:
5772 2006-09-20 Ben Elliston <bje@gnu.org>
5773 * build-aux/config.sub (score, score-*): New.
5775 Import this change from Gnulib:
5777 2006-09-16 Karl Berry <karl@gnu.org>
5778 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
5779 to avoid sectioning errors.
5781 Import these changes from Texinfo:
5783 2006-10-04 Karl Berry <karl@gnu.org>
5784 * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
5785 (\quoteexpand): rename to \rquoteexpand.
5786 (\codequoteleft): new def, to look for @set codequotebacktick.
5787 (\lquoteexpand, \quoteexpand): new defs.
5788 (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
5789 (\code): must use new \...Char values, since now ` is active.
5791 2006-08-26 Karl Berry <karl@gnu.org>
5792 * build-aux/texinfo.tex (\textdegree): New command.
5794 2006-08-12 Karl Berry <karl@gnu.org>
5795 * build-aux/texinfo.tex (error \box0): smaller font.
5797 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5799 * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
5801 2006-10-13 Stepan Kasal <kasal@ucw.cz>
5803 * doc/autoconf.texi (Autoheader Macros): Warn that the text
5804 added to the template can get mangled.
5806 2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5808 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
5809 include the default headers, and redefine obstack_chunk_alloc
5810 and obstack_chunk_free. Fixes false failure with glibc.
5812 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5814 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
5815 for backward compatibility with Libtool 1.5.22. Problem reported
5818 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5820 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
5822 Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
5824 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5826 * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
5827 the NonStop platform.
5828 * doc/autoconf.texi (Posix Variants): Likewise.
5829 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
5831 * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
5832 (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
5833 (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
5834 Use a better substitute, by inspecting the output of "ls"
5835 rather than just using ":".
5836 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
5837 rather than AS_EXECUTABLE_P, since we needn't worry about
5838 non-regular files here.
5840 * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
5841 due to configuration hassles with this. See Tonya Underwood's report
5842 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
5843 * doc/autoconf.texi (Special Shell Variables): Likewise.
5845 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5846 Stepan Kasal <kasal@ucw.cz>
5848 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
5849 (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
5851 2006-10-11 Stepan Kasal <kasal@ucw.cz>
5853 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
5854 initialization which is not inherited through the environment
5855 (_AS_BOURNE_COMPATIBLE): ... to this new macro.
5856 (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
5858 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
5860 * doc/autoconf.texi (Limitations of Usual Tools): Describe
5861 problems with mkdir -p -m.
5863 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
5865 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
5866 comment about ac_cpp_err; it was incorrect, and anyway
5867 ac_cpp_err is being removed below.
5868 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
5869 set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
5870 are both 'yes'. In fact, don't bother setting ac_cpp_err at all;
5872 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
5873 with werror_flag and conftest.err and so forth. This is more
5874 compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
5875 and anyway the user shouldn't normally want to see this gorp logged.
5876 Problem reported by Ralf Wildenhues.
5877 * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
5878 empty, not 'no', since the rest of the code uses 'test -z'.
5880 2006-10-04 Paul Eggert <eggert@cs.ucla.edu>
5882 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
5883 Use a single call to AC_DO_TOKENS rather than multiple, for
5885 (_AC_LINK_IFELSE): Test that resulting file is executable.
5886 Problem reported by mwoehlke in
5887 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
5889 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
5890 than creating a file to use with test -x; this is much faster.
5892 2006-10-02 Bruno Haible <bruno@clisp.org>
5894 * lib/autom4te.in (Automake-preselections): Add
5895 AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
5897 2006-09-27 Stepan Kasal <kasal@ucw.cz>
5899 * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
5900 standard error, `experr' should be used, not `expout'.
5902 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5904 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
5905 fseeko testing program twice; just use the earlier result.
5906 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
5907 Set cache var to 'unknown' (not 'no') if leaving the macro unset
5908 still doesn't let the program compile.
5909 (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
5912 * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
5913 (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h. Just
5914 include it, without including anything else.
5915 (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
5917 (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
5919 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5921 * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
5922 `error.h', and include it, for a `error_at_line' prototype.
5923 Use a nonempty format string in the link test.
5924 * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
5925 for a declaration of wait3.
5927 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5929 * NEWS: AC_CHECK_DECL now also works with aggregate objects.
5930 * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
5931 can apply to constants too, and that it checks for macro defns.
5932 * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
5933 and simply cast the identifier to void. This handles structure
5934 values. Problem reported by Ralf Wildenhues.
5935 * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
5937 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5939 * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
5940 structure, and function symbols.
5942 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5944 * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
5947 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5949 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
5951 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
5953 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5954 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5956 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
5957 warnings (uninitialized value).
5958 (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
5960 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
5962 (AC_STRUCT_TM): Likewise, avoid unused variables.
5964 2006-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5966 * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
5967 (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
5968 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
5969 * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
5970 Report by Olly Betts.
5972 2006-09-19 Eric Blake <ebb9@byu.net>
5974 * m4/m4.m4: Change copyright.
5975 * configure: Regenerate.
5976 * Makefile.in: Likewise.
5977 * bin/Makefile.in: Likewise.
5978 * doc/Makefile.in: Likewise.
5979 * lib/Makefile.in: Likewise.
5980 * lib/Autom4te/Makefile.in: Likewise.
5981 * lib/autoconf/Makefile.in: Likewise.
5982 * lib/autoscan/Makefile.in: Likewise.
5983 * lib/autotest/Makefile.in: Likewise.
5984 * lib/emacs/Makefile.in: Likewise.
5985 * lib/m4sugar/Makefile.in: Likewise.
5986 * man/Makefile.in: Likewise.
5987 * tests/Makefile.in: Likewise.
5989 * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
5990 * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
5991 * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
5992 --error-output, to avoid warnings with M4 2.0.
5994 2006-09-19 Stepan Kasal <kasal@ucw.cz>
5996 * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
5997 consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
5998 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
6000 2006-09-15 Stepan Kasal <kasal@ucw.cz>
6002 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
6003 expansion of AC_CHECK_FUNCS.
6005 2006-09-14 Stepan Kasal <kasal@ucw.cz>
6007 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
6008 mistaken comment: the path has to be relative; do not use
6009 the path at runtime.
6011 2006-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6013 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
6014 argument to `--prefix' for sub-configure scripts.
6015 Pass `--silent' to sub-configure scripts.
6016 * tests/torture.at (Configuring subdirectories): Add tests
6018 * doc/autoconf.texi (Setting Output Variables): Fix example to
6019 not show `--silent' being passed to a `configure' re-run.
6021 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
6023 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
6024 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
6025 for the existence of the directory at configure-time. That's
6026 too late, anyway. Problem reported by Stefan Seefeld.
6028 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
6029 7.1.4 /usr/bin/posix/sh described by Tim Rice in
6030 <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
6032 2006-09-11 Stepan Kasal <kasal@ucw.cz>
6034 * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
6035 works with GNU M4 1.4.3 again; make the normalized form
6036 match the current m4 message; fix the description.
6037 * test/tools.at (autom4te cache): Adapt to the change.
6039 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6041 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
6042 to catch glibc bug 2821
6043 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6045 Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
6046 AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
6047 AC_CHECK_FUNCS. Don't check for stdlib.h, since we now
6050 2006-09-08 Stepan Kasal <kasal@ucw.cz>
6052 * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
6054 (Autoconf): ... here.
6055 (Autoscan-preselections): Delete.
6057 2006-09-07 Stepan Kasal <kasal@ucw.cz>
6059 * lib/autom4te.in (Automake-preselections): Preselect
6062 2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
6064 * doc/autoconf.texi (Preset Output Variables): srcdir and
6065 top_srcdir are not necessarily relative. Problem reported
6068 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6070 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
6071 f90/f95 because the latter drivers of AIX Fortran 9.1 do not
6072 accept files with extension `.f'. For consistency, also prefer
6074 * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
6077 2006-09-05 Romain Lenglet <rlenglet@users.forge.objectweb.org>
6079 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
6080 of ERLANG_LIB_VER_* variables.
6081 * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
6084 2006-09-03 Paul Eggert <eggert@cs.ucla.edu>
6085 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6087 * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
6088 bugs of Bash 2.01 and 2.05a.
6089 (Fortran Compiler): Document that AC_PROG_CC should be called
6090 before AC_PROG_FC, due to a bug in Autoconf.
6092 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6094 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
6095 old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
6096 except the first two arguments are reversed.
6097 * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
6098 (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
6099 caches nor outputs a diagnostic. Suggested by Bruno Haible.
6100 * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
6101 equivalent to the old AC_COMPUTE_INT.
6102 (AC_COMPUTE_INT): No longer caches or reports. New signature.
6103 All uses changed to AC_CACHE_CHECK_INT.
6104 * tests/base.at (AC_CACHE_CHECK_INT): New test.
6105 * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
6107 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6109 * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
6110 and AC_REPLACE_FNMATCH are now obsolescent in Autoconf. New
6111 programs should use their Gnulib counterparts.
6112 * doc/autoconf.texi (Particular Functions): Likewise.
6113 (Macro Names, testsuite Invocation): Replace uses of these
6114 obsolete macros with uses of non-obsolete macros.
6116 2006-08-29 Eric Blake <ebb9@byu.net>
6118 * configure.ac (AC_INIT): Bump to 2.60b.
6121 2006-08-28 Eric Blake <ebb9@byu.net>
6123 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
6124 mistakenly swapped on 2006-08-15.
6126 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6128 * NEWS: Version 2.60a.
6130 2006-08-25 Stepan Kasal <kasal@ucw.cz>
6132 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
6133 file created by the PGI compiler.
6135 2006-08-25 Noah Misch <noah@cs.caltech.edu>
6137 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
6140 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6142 Fix Lex library problem reported to us by Julio Garvia.
6143 * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
6144 for the default, which the user can override.
6145 * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
6147 (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
6148 didn't work if some values were cached but not others. Test for
6149 broken lex libraries like native ia64-hp-hpux11.22; see
6150 <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
6151 work around the problem by preferring an empty LEXLIB to -lfl or
6152 -ll. Let the user set LEXLIB='' to indicate no library needed.
6154 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
6156 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6158 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6160 Rework to use more-modern build style.
6161 Many files are renamed; all uses of their names were changed.
6162 * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
6163 * .x-sc_useless_cpp_parens: New file.
6164 * build-aux/config.guess: Renamed from config/config.guess. Update.
6165 * build-aux/config.sub: Renamed from config/config.sub. Update.
6166 * build-aux/elisp-comp: Renamed from config/elisp-comp.
6167 * build-aux/install-sh: Renamed from config/install-sh. Update.
6168 * build-aux/mdate-sh: Renamed from config/mdate-sh.
6169 * build-aux/missing: Renamed from config/missing.
6170 * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update.
6171 * build-aux/vc-list-files: Renamed from config/vc-list-files.
6172 * config/Makefile.am: Removed.
6173 * config/mkinstalldirs: Removed.
6174 * config/move-if-change: Removed.
6175 * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice.
6176 * Makefile.am (SUBDIRS): Remove config.
6177 (ACLOCAL_AMFLAGS): Include from m4, not config.
6178 (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
6179 (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
6180 (autom4te-update): Rewrite with a loop. Get from gnulib, not automake.
6181 Fail if there's an error.
6182 * Makefile.cfg (move_if_change): Remove.
6183 (wget_files): Remove.
6184 (cvs_executable_files): New macro.
6185 (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi.
6186 (executable-update): Use $(cvs_executable_files).
6187 (local-checks-to-skip): Remove.
6188 * Makefile.maint: Merge from coreutils, plus add our own changes
6189 (gzip_rsyncable): New macro.
6191 (CVS_LIST): Use build-aux/vc-list-files.
6192 (VERSION_REGEXP): New macro.
6193 (local-checks-available): Add patch-check, $(syntax-check-rules),
6195 (syntax-check-rules): Compute dynamically.
6196 (sc_cast_of_x_alloc_return_value): Work even if no source files.
6197 (sc_cast_of_alloca_return_value): Likewise.
6198 (sc_prohibit_atoi_atof): Simplify regexp.
6199 (sc_no_if_have_config_h, sc_require_config_h):
6200 (sc_prohibit_assert_without_use,
6201 (sc_obsolete_symbols): Check for O_NDELAY.
6202 (sc_texi_notab): Remove.
6203 (sc-changelog): Don't make an exception for '----' lines.
6204 (.re-list): Remove, so we don't have a junk file behind.
6205 (sc_system_h_headers): Remove the need for .re-list.
6206 (sc_the_the): New rule.
6207 (sc_tight_scope): Simplify.
6208 (sc_trailing_blank): Renamed from sc_trailing_space.
6209 (longopt_re): New macro.
6210 (sc_two_space_separator_in_usage): New rule.
6211 (sc_unmarked_diagnostics): Look at all files under CVS.
6212 (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
6213 (news-date-check, changelog-check): Version is OK.
6214 (po-check): Look for lib files even if not in CVS.
6215 (copyright-check): Use $() not ``.
6216 (maintainer-distcheck): Do not depend on changelog-check.
6217 (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
6218 Also check for -Wpointer-arith.
6219 (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
6220 (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
6222 (announcement): Add --gpg-key-id arg.
6224 (move_if_change): Just use mv.
6225 (local_updates: Remove wget-update, po-update.
6226 (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
6227 (config.guess-url_prefix, config.sub-url_prefix): Remove.
6228 (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
6229 (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
6230 ($(get-targets)): Remove.
6231 (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
6232 (gnulib_repo): Renamed from automake_repo. Get from gnulib now.
6233 (cvs-update): Get from gnulib.
6234 (emut_upload_commands): gnupload is in build-aux now.
6235 (alpha beta major): Add changelog-check. Check version.
6236 * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
6237 (AC_CONFIG_FILES): Remove.
6238 * bin/autoconf.as: Add spaces to avoid distcheck warning.
6239 * config/announce-gen: Sync from coreutils.
6240 * doc/make-stds.texi: Sync from gnulib.
6241 * doc/standards.texi: Likewise.
6242 * man/Makefile.am: Adjust for config -> build-aux renaming.
6243 * tests/Makefile.am: Prefer $(FOO) to @FOO@.
6244 * tests/local.at: Adjust from config -> build-aux renaming.
6245 * tests/tools.at: Likewise.
6246 * tests/torture.at: Likewise.
6248 * NEWS: The C99 check now tests for vararg macros and 64-bit
6250 * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
6251 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
6252 64-bit preprocessor ints. Check for static initialization of
6253 long long. Remove unnecessary casts.
6255 2006-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6257 * doc/autoconf.texi (Particular Programs): Mention that
6258 @INSTALL@ and @MKDIR_P@ may vary for different output files.
6259 Reported by Alexandre Duret-Lutz.
6261 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6263 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
6264 -lgcc?* and -lSystem, for Darwin/MacOS X. Problem reported by
6266 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
6268 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6270 * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
6271 pacify insanely picky compilers. Problem reported by Eric Blake.
6273 * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
6274 longer supported by Sun.
6276 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6278 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
6279 rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
6280 -Wundef -Werror". Problem reported by David Fang in
6281 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
6282 * doc/autoconf.texi (Header Templates, Default Includes):
6283 (Particular Functions, Generic Functions, Header Portability):
6284 (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
6285 (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
6286 (Present But Cannot Be Compiled, Preprocessor Symbol Index):
6287 Prefer #ifdef to #if.
6288 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
6289 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
6290 (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
6291 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
6293 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
6294 (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
6295 * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
6296 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6297 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
6298 S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
6301 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6303 * doc/autoconf.texi (Limitations of Usual Tools): Document sed
6304 problems with arg script text that doesn't end in newline, and
6305 with '-e a...'. Problems reported by Ralf Wildenhues.
6307 2006-08-12 Alexandre Julliard <julliard@winehq.org> (tiny change)
6309 * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
6310 check for libXt by a check for libX11.
6312 2006-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6314 * doc/autoconf.texi (config.status Invocation): Adjust according
6317 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6319 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
6320 --help' should mention that `--version' outputs configuration
6321 settings. Report by Bruno Haible.
6323 2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
6325 Fix test suite failures reported by Pierre in
6326 <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
6327 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
6328 the compiler created a file "b.out" when it didn't create anything
6330 * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
6331 Discard stderr too, when invoking the test script.
6333 2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
6335 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
6336 in the restoring of the werror flag.
6338 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
6340 * doc/autoconf.texi (Volatile Objects): Be even a little
6341 less skeptical about "volatile", after discussion with
6342 Bruno Haible on bug-gnulib.
6343 (Limitations of Usual Tools): Warn about sed stripping
6344 leading white space from text. From Bruno Haible.
6346 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
6348 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
6349 compiler complains about it, even if things works after the
6350 complaint. Problem reported by Peter O'Gorman.
6352 * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
6353 CPPFLAGS, and LDFLAGS better. Problem reported by Bruno Haible.
6354 Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
6356 2006-07-17 Paul Eggert <eggert@cs.ucla.edu>
6358 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
6359 after -R regardless of host. Patrick Welche reports that this
6360 fixes things on NetBSD 3.99.
6362 * NEWS: Recommend M4 1.4.5.
6364 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6365 * tests/tools.at (autom4te cache): Update wording of diagnostic
6368 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
6370 * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
6371 under AC_C_VOLATILE.
6372 (Volatile Objects): Be a little less skeptical about what
6373 "volatile" means. Derived from thoughts by Ben Pfaff in
6374 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
6376 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6378 * doc/autoconf.texi: Fix some typos.
6380 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
6382 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
6383 more globally, since the 2006-06-30 patch didn't suffice. Problem
6384 reported by Keith Marshall. Also, don't bother with builddir2,
6385 since it shouldn't be needed any more.
6387 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
6389 * doc/autoconf.texi (Generic compiler characteristics):
6390 Document AC_COMPUTE_INT. Fix wrong statements on Default
6391 Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
6393 * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
6394 (_AC_COMPUTE_INT): Add obsoletion warnings.
6395 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
6398 * NEWS: Document change.
6400 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
6402 * doc/autoconf.texi (Volatile Objects): New section.
6404 * NEWS: Document previous change.
6406 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
6408 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
6409 Require that long long int be at least 64 bits wide. C99 requires
6410 this and enough programs depend on it so we should check for it.
6411 Bruno Haible reports in
6412 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
6413 that long long int is 32 bits wide with some nonstandard compilers.
6414 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6416 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
6418 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
6419 to a nonexistent file, so that we don't have to worry about
6420 a local site configuration that doesn't use /usr/local.
6421 Problem reported by Keith Marshall in
6422 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
6424 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
6426 * doc/autoconf.texi: Be more consistent about using @acronym with
6427 "HP" and "HP-UX". Remove mention of OSF; the old version wasn't
6428 quite right (it talked about "OSF/Tru64", even though the
6429 operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
6430 and it even mentioned "OSF 4"!) and at this point there's little
6431 reason to talk about OSF any more, since it died in 1994.
6432 (Specific Compiler Characteristics): Simplify example of
6433 negative-size array.
6434 (File Descriptors): Reorder to make the text flow better.
6435 Remove joke about "appreciate the various levels"; I didn't get it.
6436 Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
6437 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
6438 (File Descriptors, Limitations of Usual Tools):
6439 Tone down the advice against renaming or removing open files.
6440 (Limitations of Usual Tools): Add a new section, on 'rm'.
6442 2006-06-26 Stepan Kasal <kasal@ucw.cz>
6444 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
6445 -lXt in LIBS, idea from Karsten Hopp; this was due since
6448 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
6449 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
6450 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
6451 (which belong to Xt, not X itself). See Debian bug 327655.
6453 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6455 * configure.ac (AC_INIT): Bump to 2.60a.
6458 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6462 * configure.ac, NEWS: Update.
6464 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6466 * config/texinfo.tex: Sync from upstream.
6468 * bin/autom4te.in (handle_traces): Transform the `@S|@'
6469 quadrigraph correctly in traces.
6471 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
6474 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
6475 datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
6477 * doc/autoconf.texi (Changed Directory Variables): New node,
6478 to document the whole `datarootdir' business a bit better.
6480 * tests/torture.at (datarootdir workaround): Extend test.
6481 Prompted by report by Alexandre Julliard.
6483 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
6485 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
6486 when using default mode of IBM C 6 for AIX. Problem and two-line
6487 fix reported by Larry Jones.
6489 2006-06-22 Alexandre Julliard <julliard@winehq.org>
6491 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
6492 about literal '${datarootdir}' if a definition is found in the
6495 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
6497 * NEWS: Use "M4" rather than "m4" when appropriate.
6498 Problem reported by Eric Blake.
6499 * doc/autoconf.texi: Likewise.
6500 Use @acronym around BSD, GCC, and GNU when appropriate.
6501 (Why GNU M4): Renamed from "Why GNU m4".
6502 (Redefined M4 Macros): Mention that Posix
6503 m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
6504 (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
6507 2006-06-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6509 * bin/autom4te.in (handle_output): Do not forbid the empty
6511 * tests/tools.at (autoconf: the empty token): New test.
6513 2006-06-20 Stepan Kasal <kasal@ucw.cz>
6515 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
6516 calls, so that we do not care whether they are LIFO or FIFO;
6517 in the m4_wrap, do not check which diversion is the topmost
6518 one, just check that the stack is balanced at the end.
6519 * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
6520 base diversion forever--pop the previous diversion before
6521 opening the new one; consequently, remove the m4_wrap call.
6522 * lib/autotest/general.m4 (AT_INIT): Likewise.
6523 * tests/m4sugar.at: Do not use
6524 m4_wrap([m4_diversion_pop([..])]), for educational purposes.
6526 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
6527 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6529 * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
6530 * doc/autoconf.texi (Redefined M4 Macros): Likewise.
6531 Rework example of m4wrap token-pasting trouble so that it doesn't
6532 care whether it's LIFO or FIFO.
6533 Fix some "contrary to"s that are awkward in English.
6535 2006-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6537 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
6538 to `yes' instead of `int$1_t' if the type is found, for more
6539 consistent configure output (where $1 is the number of bits).
6540 (_AC_TYPE_UINT): Likewise for `uint$1_t'.
6541 Suggested by Bruno Haible.
6543 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
6544 needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
6545 with system headers. Report by Bruno Haible.
6547 2006-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6549 * config/config.guess, config/config.sub: Sync from upstream.
6551 * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
6552 in order to avoid picking up an older installed frozen m4sh.m4f.
6553 Besides an outdated shell startup, this could have been created
6554 by an earlier M4 version with incompatible frozen file format.
6556 2006-06-16 Paul Eggert <eggert@cs.ucla.edu>
6558 * README: Recommend m4 1.4.4 instead of 1.4.3..
6559 * doc/autoconf.texi: Likewise.
6560 (Special Chars in Names): Say that $(.FOO) is portable, as
6561 suggested by Stepan Kasal.
6562 (Installation Directory Variables, Build Directories):
6563 (Automatic Remaking, Subdirectories, Fortran Compiler):
6564 (Making testsuite Scripts, Defining Directories):
6565 Quote variable usages better.
6566 (Making testsuite Scripts): Add clean-local rule to makefile
6567 snippet, by Eric Blake.
6568 (Installation Directory Variables): Fix table item font.
6569 Reword slightly to clarify. Generalize advice about
6570 not using special characters to include all file-related
6571 vars, not just VPATH.
6572 (Special Chars in Variables): Warn about special characters in
6574 (Assignments): Clarify default-value example as suggested by
6576 <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
6577 (Special Shell Variables): Note leading ./ or ../, as suggested
6579 (Limitations of Builtins): Under cd, warn about CDPATH.
6580 (The Make Macro MAKEFLAGS): Untabify. Problem reported by
6583 2006-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6585 * doc/autoconf.texi (Configuration Actions): Remove duplicate
6586 `@var', for texi2html.
6587 (Systemology): Some more word wrapping, for DVI output.
6588 (autom4te Invocation): The short option for `--melt' is `-M',
6591 2006-06-15 Paul Eggert <eggert@cs.ucla.edu>
6593 * doc/autoconf.texi: More formatting and English tweaks,
6594 many suggested by Ralf Wildenhues.
6595 Reword to avoid "@code{...}'s" and the like, since it's ugly
6596 with Emacs info mode. discontents -> woes.
6597 Put a few "will"s back. time stamp -> timestamp.
6598 side-effect -> side effect.
6600 2006-06-14 Paul Eggert <eggert@cs.ucla.edu>
6602 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
6603 Warn about $@ not persisting. Problem reported by Julien Danjou in
6604 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
6605 (Special Chars in Names): Renamed from Leading _ in Macro Names.
6606 Mention other special chars, too.
6608 2006-06-14 Eric Blake <ebb9@byu.net>
6610 * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
6612 2006-06-13 Paul Eggert <eggert@cs.ucla.edu>
6614 * doc/autoconf.texi: Some systematic minor improvements, as
6615 follows. Use "makefile" when talking about makefiles
6616 generally (which might be named "makefile" or "Makefile" or even
6617 "foo.mk"), "Makefile" when talking about a specific makefile
6618 called "Makefile". This unclutters the text from weird quotes
6619 (e.g., "`Makefile's" in info mode). Similarly, use "@var{foo}
6620 values" rather than "@var{foo}s" and similar constructs containing
6621 "}s". Use "Make rules" rather than "Makefile rules". Minor
6622 English-language improvements. Change the prefix "sub-" to "sub"
6624 Put blank lines around examples more consistently.
6625 Avoid "rather" and "very" as intensifiers.
6626 Avoid "will" as an auxiliary.
6627 (Limitations of Make): Split this node into....
6628 (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
6629 (Leading _ in Macro Names, Backslash-Newline-Newline):
6630 (Backslash-Newline Comments, Long Lines in Makefiles):
6631 (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
6632 (obj/ and Make, make -k Status, VPATH and Make):
6633 (VPATH and Double-colon, $< in Explicit Rules):
6634 (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
6635 (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
6636 New nodes, resulting from splitup of Limitations of Make.
6637 All cross-references changed. Raise the top node from
6638 a section to a chapter, and all subnodes accordingly.
6639 Redo the introductory wording to match the new organization.
6640 (Installation Directory Variables): Use an example that is
6641 closer to what Autoconf actually does. Mention that VPATH's
6642 value should not contain metacharacters or white space.
6643 (Fortran Compiler): Fix a VPATH bug in an example.
6644 (Leading _ in Macro Names): Mention that this problem is no longer
6645 of practical concern.
6646 (VPATH and Make): Reword the advice to make it clearer
6647 that Autoconf and Automake support VPATH in non-GNU make, but
6648 many packages have bugs in this area.
6649 ($< in Explicit Rules): Refer to Build Directories rather
6650 than using a (non-VPATH-safe) example.
6651 (Automatic Rule Rewriting): Mention the sort of disaster that
6652 can ensue with Solaris-style rule rewriting with VPATH.
6654 2006-06-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6656 * doc/install.texi (Compilers and Options): Weaken the
6657 suggestion to use GNU make for VPATH builds.
6659 * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
6660 AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
6662 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
6663 in regular expression.
6665 2006-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6667 * doc/autoconf.texi (Installation Directory Variables):
6668 Drop extra @samp from `@table @samp' item.
6669 (Limitations of Usual Tools): Comment fix.
6670 Do not nest @samp just to point to other table items.
6671 (Writing testsuite.at) <AT_CHECK>: The second argument to
6672 `@dvar' is already @samp'ed.
6673 (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
6674 do not use @var in the second argument.
6676 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
6678 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
6679 $as_shell.exe too. Problem reported by Andreas Buening in
6680 <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
6682 2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6684 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
6685 `unused variable' compiler warning, for `-Wall -Werror'.
6686 Reported by Jaap Haitsma in
6687 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
6689 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
6691 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
6692 case the compiler dumps core. Problem reported for
6693 OpenServer 5.0.7 by Tim Rice in
6694 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
6695 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
6698 2006-06-06 Tim Rice <tim@multitalents.net>.
6700 * lib/freeze.mk: Quiet check-forbidden-patterns so the string
6701 "ERROR" only shows up in "make check" output if there is an
6704 2006-06-06 Eric Blake <ebb9@byu.net>
6706 * tests/tools.at (automatically allowed tokens): Fix typo.
6708 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
6710 * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
6712 * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
6713 typically overflows on x86 CPUs, even though the C standard
6716 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6718 * configure.ac (AC_INIT): Bump to 2.59e.
6721 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6725 * config/texinfo.tex: Sync from upstream.
6727 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
6728 seen, invoke libtoolize with `--ltdl' argument.
6729 * lib/autom4te.in (Autoreconf-preselections): Adjust.
6731 Suggested by Eric Blake.
6733 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
6735 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
6736 reported by Ralf Wildenhues.
6737 * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
6739 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6743 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
6745 * doc/autoconf.texi: Modernize some of the references to Solaris.
6747 2006-06-05 Stepan Kasal <kasal@ucw.cz>
6749 * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
6750 message issued by AC_REQUIRE.
6751 * tests/m4sugar.at: Check m4_require's error message.
6752 * tests/base.at: Check AC_REQUIRE's error message.
6753 * tests/local.at (AT_CHECK_M4): New macro, almost identical
6755 (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
6757 (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
6758 `expout' as the last parameter.
6759 * tests/tools.at: Adapt to the above change.
6761 2006-06-04 Stepan Kasal <kasal@ucw.cz>
6763 * doc/autoconf.texi (Limitations of Usual Tools): Correct
6764 information about race-free implementations of mkdir.
6766 2006-06-04 Eric Blake <ebb9@byu.net>
6768 * bin/autoreconf.in (help): Document M4 environment variable.
6769 * bin/autoconf.as (Usage): Likewise.
6770 * bin/autom4te.in (help): Likewise.
6771 * doc/autoconf.texi (autom4te Invocation): Likewise.
6773 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
6775 * NEWS: GNU make now recommended for VPATH builds.
6776 Mention that some macros are now documented to be obsolescent.
6777 * doc/autoconf.texi:
6778 Prefer "current" to "modern" to describe
6779 currently-used (albeit perhaps old-fashioned) hosts.
6780 Mention which ancient features no longer need to be worried about.
6781 setgid -> set-group-ID
6782 setuid -> set-user-ID (these are the Posix terms)
6783 Fix some misuses of "only".
6784 (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
6785 (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
6786 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
6787 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
6788 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
6789 (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
6790 (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
6791 (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
6792 (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
6793 Mention that these macros are obsolescent.
6794 (Installation Directory Variables): shall -> should
6795 (File Descriptors): Mention that 0, 1, 2 might get reopened.
6796 Mention that it's now safe to use 3 and 4.
6797 (Limitations of Usual Tools): cp -r is now specified by Posix.
6798 Omit longwinded and obsolescent discussion of cp -f.
6799 Modernize discussion of expr, ls.
6800 (Limitations of Make): Modernize discussion of VPATH builds.
6801 Mention $? as a workaround in some cases.
6802 * doc/install.texi (Basic Installation):
6803 Mention "./configure; make; make install" first. Be more
6804 specific about why this file is generic. Remove unnecessary
6805 parens. Remove misleading "only". Remove obsolete advice
6806 about csh. Don't say "configure" takes awhile; say it
6807 might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
6808 and CC=c99 rather than CC=c89, as these are blessed by current
6809 Posix. Recommend GNU make if doing a VPATH build.
6811 2006-06-03 Paul Eggert <eggert@cs.ucla.edu>
6813 * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
6814 examples involving shell prompts.
6816 2006-06-02 Stepan Kasal <kasal@ucw.cz>
6817 and Paul Eggert <eggert@cs.ucla.edu>
6819 * doc/autoconf.texi (Here-Documents): Add details about the
6820 pre-ksh93g bug. Reword slightly to make it clearer. Consistently
6821 use "here-documents" instead of "here documents".
6823 2006-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6825 * config/texinfo.tex, doc/standards.texi: Sync from upstream.
6827 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
6829 * doc/autoconf.texi (File System Conventions): Warn about ":"
6830 anywhere in directory names.
6832 2006-05-31 Paul Eggert <eggert@cs.ucla.edu>
6834 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
6835 about quoting the case statement, just in case.
6836 * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
6837 was fixed in ksh93g; reported by Ralf Wildenhues.
6839 2006-05-31 Stepan Kasal <kasal@ucw.cz>
6841 * doc/autoconf.texi (System Services): Do not document
6842 overriding EXEEXT via ac_cv_exeext=ext.
6843 (Particular Programs) <AC_PROG_MKDIR_P>:
6844 Document that ${MKDIR_P} understands --.
6845 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
6848 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6850 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
6851 argument with leading hyphen. Problem reported by Paul Eggert.
6853 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
6855 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
6856 about quoting ac_try: quote all of it, if any of it seems suspicious.
6857 This means we don't have to worry about ${ or sed any more.
6858 Also, double-quote the case statement, to work around misuses via
6859 underquoting as reported by Ralf Wildenhues in
6860 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
6861 (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
6862 undocumented and dangerous macro.
6863 Problem reported by Ralf Wildenhues in
6864 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
6866 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6868 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
6869 `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
6870 Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
6872 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
6874 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
6875 since evidently some packages rely on the old, broken behavior.
6876 Problem reported by Ralf Wildenhues in
6877 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
6878 (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
6879 pre-2006-05-26 definitions, but leave in the comments that
6880 these macros are dangerous and should not be used.
6881 (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO. All callers changed.
6882 (_AC_DO): Renamed from _AC_EVAL. All callers changed.
6883 (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR. All callers changed.
6884 (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
6885 (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
6887 2006-05-29 Paul Eggert <eggert@cs.ucla.edu>
6889 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
6890 the use of 'tr', since this is our only use of 'tr'.
6892 2006-05-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6893 and Paul Eggert <eggert@cs.ucla.edu>
6895 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
6896 Don't assume 'grep' works on long lines, since AIX grep doesn't.
6898 2005-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6900 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
6901 the output file in the `${datarootdir}' test.
6903 2005-05-28 Stepan Kasal <kasal@ucw.cz>
6904 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6906 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
6907 mention of `datarootdir' in the input file(s), but literal
6908 `${datarootdir}' in the output file, and we haven't warned yet,
6909 then warn as well: the user may have (erroneously) used
6910 `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
6911 `AC_SUBST([mydatadir], ['${datadir}/my'])'.
6912 * tests/torture.at (datarootdir workaround): Extend this test.
6915 2006-05-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6916 and Paul Eggert <eggert@cs.ucla.edu>
6918 * doc/autoconf.texi (autoheader Invocation): The first argument to
6919 `AC_DEFINE_UNQUOTED' need not be a literal. Mention the
6920 alternatives and clear up the language a bit.
6922 2006-05-27 Paul Eggert <eggert@cs.ucla.edu>
6924 * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
6925 ac_config_guess, ac_config_sub, ac_configure.
6926 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6927 Fix typo that prevented an unnecessary space from being removed.
6928 Problems reported by Ralf Wildenhues in:
6929 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
6931 2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
6933 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
6934 Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
6935 Don't use the term "thread-safe" to talk about mkdir race
6936 conditions, since the problem is more a process than a thread
6937 issue. Problem reported by Stepan Kasal in:
6938 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
6939 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
6940 the test for 'install' more closely. Look at MKDIR_P first.
6941 Look in the PATH, and at /opt/sfw/bin.
6942 Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
6943 Don't bother to try mkdir -p, since we already check mkdir --version;
6944 just look at the version number. (There's no easy way to check
6945 for race-free implementations.)
6946 * tests/tools.at (autoconf: subdirectories): Adjust to above
6947 changes, since MKDIR_P now might end in "/mkdir -p".
6949 * doc/autoconf.texi (autoheader Invocation): Mention that the
6950 first arg of AC_DEFINE_UNQUOTED must be a literal.
6951 Problem reported by Ben Pfaff in
6952 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
6954 * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
6955 * doc/autoconf.texi (Special Chars in Variables): New section.
6956 (Preset Output Variables): Warn about special chars in CPPFLAGS.
6957 (Installation Directory Variables): Quote $(datadir) better.
6958 (Limitations of Builtins): Describe some of eval's trickiness.
6960 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
6961 * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
6962 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
6963 in front of every arg, not just trailing args. Quote apostrophes.
6964 (_AC_EVAL_ECHO): New macro.
6965 (_AC_EVAL, AC_EVAL_STDERR): Use it. Quote arg of eval.
6966 (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
6968 (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
6969 exposed by quoting of eval argument. Put the command on line line
6971 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
6972 (_AC_PATH_X, AC_PATH_X): Quote more safely.
6973 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
6974 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
6975 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
6976 Handle special chars in prefix, ac_srcdir, ac_aux_dir.
6977 Use eval more safely.
6978 (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
6979 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
6981 * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
6982 lines, exposed by quoting of eval argument.
6984 2006-05-26 Stepan Kasal <kasal@ucw.cz>
6985 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6987 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
6988 initialization of `ac_cv_exeext', do not override it if it was
6989 already set, unless it was set to `no', for compatibility with
6990 Autoconf-2.13, and comment this.
6991 Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
6992 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
6993 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
6994 * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
6995 Document that this test may be overridden by setting
6998 2006-05-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7000 Revert these two patches:
7002 2006-04-06 Eric Blake <ebb9@byu.net>
7003 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7004 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
7007 2006-04-01 Stepan Kasal <kasal@ucw.cz>
7008 Clean up _AC_COMPILER_EXEEXT* macros.
7009 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7010 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7011 ac_file to the name of the default output file and call
7012 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
7013 initial `rm' of the candidate files...
7014 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
7015 the same list in subsequent `rm' calls, and for the temporary
7016 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7017 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7018 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7019 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7020 no longer needed) by libtool. Make it a cache check.
7021 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7022 copied here by mistake.
7023 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7024 _AC_COMPILER_EXEEXT.
7025 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7026 _AC_COMPILER_OBJEXT directly.
7027 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7029 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7031 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
7032 Fix description of how the buggy `sed' works.
7034 2006-05-25 Noah Misch <noah@cs.caltech.edu>
7038 * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
7039 ENOLCK. Only mention `make -j' when applicable. Only raise
7040 fatal errors when `make -j' is involved. Improve error message.
7042 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7044 * doc/autoconf.texi (Here-Documents): We now know more about
7045 the variable expansion in here documents bug.
7046 Thanks to Tim Rice and Stepan Kasal.
7048 * doc/autoconf.texi (Making testsuite Scripts): Add an example
7049 how to use TESTSUITEFLAGS. Suggested by Eric Blake.
7051 2006-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7053 * tests/autotest.at (Multiline command from M4 expansion):
7054 No failure to be expected if the shell quotes newlines in
7055 commands in the `set -x' output. Report by Tim Rice.
7058 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
7060 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
7061 expansion in the here-documents used by config.status, as that
7062 runs afoul of the Korn shell version M-12/28/93d bug described in
7063 the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
7064 fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
7065 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
7067 2006-05-23 Jim Meyering <jim@meyering.net>
7069 * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7070 Fix typo introduced with 2006-04-02 change. It reversed the sense
7073 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
7075 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
7076 ac_dB slightly, to save bytes in the script.
7077 Max out at 50 lines, rather than 96; this is more likely
7078 (though not guaranteed) to avoid obscure 'sed' failures.
7080 2006-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7082 * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
7083 `tr -d -' as bad option argument. Work around this by deleting
7084 an unrelated character.
7085 Report by Tim Rice <tim@multitalents.net>.
7087 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>,
7088 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
7089 Stepan Kasal <kasal@ucw.cz>
7091 * doc/autoconf.texi (Particular Programs): Do not promise that
7092 we always prefer the GNU version of the program, and that we
7093 search according to PATH; both rules can have exceptions.
7094 Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
7095 AC_PROG_SED. Move descriptions of limitations
7096 to the Limitations of Usual Tools section.
7097 (Limitations of Usual Tools) <sed>: Mention script length
7098 limitations with Solaris /usr/ucb/sed.
7099 <grep>: Fix wording for empty alternative. Mention that -c and
7100 -l should not be combined, and that -E and -F should not be
7103 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7104 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7106 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
7107 limits in Solaris 8 /usr/ucb/sed by testing a long script.
7109 2006-05-22 Stepan Kasal <kasal@ucw.cz>
7111 * doc/autoconf.texi (Defining Symbols): Literal parameter of
7112 AC_DEFINE is now passed to m4_pattern_allow.
7113 * NEWS: Mention that; likewise for AC_SUBST.
7114 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
7115 the parameter to m4_pattern_allow.
7116 * tests/tools.at: Add a check for that.
7118 2006-05-22 Stepan Kasal <kasal@ucw.cz>
7120 * lib/autoconf/status.m4: Fix typos.
7122 2006-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7124 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
7125 only the files that this macro generates.
7127 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7129 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
7130 the HP-UX sed limitation of 99 commands, labels do not count.
7131 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
7133 (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
7135 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7137 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
7138 Import the following fix from coreutils:
7140 2006-01-13 Jim Meyering <jim@meyering.net>
7142 Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7143 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
7144 not double-quote uses of that variable, to accommodate the rare
7145 case in which getmntent is available in none of the libraries
7146 checked. This happens at least on FreeBSD 5.0.
7148 2006-05-20 Paul Eggert <eggert@cs.ucla.edu>
7150 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
7151 ac_config_guess, ac_config_sub, and ac_configure, since evidently
7152 some other programs unwisely rely on these undocumented vars.
7153 But put in warning comments about them.
7154 Problem reported by Ralf Wildenhues in
7155 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
7156 * NEWS: Document that these variables are intended to go away.
7158 2006-05-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7160 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
7161 and set the language to C++ (analogous to the equivalent Fortran
7164 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
7165 * doc/autoconf.texi (C++ Compiler): Document it.
7166 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
7169 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7171 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
7172 that caused config.status to generate 100-command sed scripts; the
7173 portable limit is 99.
7175 2006-05-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7177 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
7178 variable `ac_d' instead of `d' to avoid infringing namespace.
7179 Report by Ralf Menzel.
7181 2006-05-18 Paul Eggert <eggert@cs.ucla.edu>
7183 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
7184 $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
7185 * tests/tools.at (autoconf: subdirectories): New test, taken from
7186 the corresponding problem report by Ralf Wildenhues in:
7187 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
7189 * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
7190 Quote some uses of shell variables if they might suffer unexpected
7191 globbing. This doesn't fix all instances of quoting problems that
7192 I found, just the easy ones that look safe.
7193 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
7194 (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
7195 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
7196 (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
7197 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
7198 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
7199 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
7201 * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
7202 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
7204 2006-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7206 * bin/autoreconf.in ($help): Reword according to the manual.
7207 Suggested by Olly Betts.
7209 2006-05-17 Olly Betts <olly@survex.com> (tiny change)
7210 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7212 * bin/autoreconf.in: Pass the directory argument to
7213 `require_configure_ac'. Fix comment.
7214 * tests/torture.at (Configuring subdirectories): Expose this.
7215 Reported by Olly Betts.
7217 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7219 * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
7220 lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
7221 Automake as follows:
7223 * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
7224 `$configure_in' instead of `configure.in', to preserve
7225 directory component.
7227 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7229 * config/config.guess, config/config.sub, config/texinfo.tex,
7230 doc/make-stds.texi, doc/standards.texi: Sync from upstream.
7232 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
7234 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7235 test for C99 conformance; (bool) 0.5 is an integer constant
7236 expression, but (bool) -0.5 is not. Problem reported by Fedor
7237 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7239 2006-05-13 Paul Eggert <eggert@cs.ucla.edu>
7241 * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
7242 sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
7243 Warn about obsolete install-sh files. Remove stray sentence
7244 fragment and fix cross reference.
7245 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
7246 install -d; this undoes the 2006-05-10 change.
7247 (MKDIR_P): Mark with AN_MAKEVAR.
7248 (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
7249 that we don't require $INSTALL to be thread-safe. Move comments
7250 out of generated code. Require AC_CONFIG_AUX_DIR_DEFAULT instead
7251 of AC_PROG_INSTALL. Output a message saying that we're checking
7252 mkdir -p. Set MKDIR_P rather than mkdir_p. Do special magic for
7253 MKDIR_P instead of AC_SUBST.
7254 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
7255 Special magic for MKDIR_P, too.
7256 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
7258 * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
7260 2006-05-11 Paul Eggert <eggert@cs.ucla.edu>
7262 Sync from Automake, as follows:
7264 2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7265 * config/install-sh: Initialize IFS, so field splitting isn't
7267 * config/mkinstalldirs: Likewise.
7268 * config/missing: Remove superfluous quotes. Replace all uses of
7269 `[' by `test', for consistency, and for..
7270 * config/missing (sed_minuso, sed_output): New variables.
7271 (autom4te, help2man, makeinfo): Use them. Unifies detection of
7272 `-o FILE', `--output FILE', `--output=FILE', stricter regex.
7273 Fixes `missing' to detect `--output' for help2man. Fixes
7274 PR automake/483. Report by Dennis J. Linse.
7275 (autom4te): Document in `missing --help'.
7277 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
7279 * NEWS: New macro AC_PROG_MKDIR_P. AS_MKDIR_P is now more robust.
7280 * config/install-sh: Don't use 'path' to talk about file names,
7281 as per GNU coding standards. Close a race condition reported by Ralf
7282 Wildenhues and Stepan Kasal. There is still a race condition
7283 on hosts that predate Posix 1003.1-1992, but we can't help this.
7284 Don't mishandle weird characters like space on pre-Posix hosts.
7285 Invoke mkdir at most once per dir arg on pre-Posix hosts.
7286 * doc/autoconf.texi (Programming in M4sh): Cross-reference to
7287 AC_PROG_MKDIR_P from AS_MKDIR_P.
7288 (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
7289 from mkdir. Mention that Autoconf 2.60 install-sh is safe but
7290 earlier editions are not (including Automake 1.8.3).
7291 Do not suggest mkinstalldirs for thread-safety.
7292 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
7293 that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
7294 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
7295 presence of special characters and race conditions.
7296 * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
7297 in Autoconf's name space.
7299 2006-05-10 Bruno Haible <bruno@clisp.org>
7300 and Paul Eggert <eggert@cs.ucla.edu>
7302 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
7303 from Automake with minor changes.
7304 * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
7306 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
7308 * config/install-sh: Update to Automake CVS version, as follows:
7309 2006-04-25 Stepan Kasal <kasal@ucw.cz>
7310 * lib/install-sh: Simplify the expr implementation of dirname.
7311 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
7312 * lib/install-sh: Handle --, and diagnose unknown options.
7314 2006-05-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7316 * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
7317 `./autom4te' to create `./testsuite', since the `all' target
7318 will ensure its presence, but `installcheck' should not create
7319 the uninstalled wrappers.
7321 * tests/torture.at (Unusual Automake input files): Skip if we
7322 detect automake < 1.8.
7324 2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7326 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
7327 is set to `no', then that overrides and sets ac_cv_prog_cc_c89
7328 and ac_cv_prog_cc_c99 to `no', for backward compatibility.
7331 2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7333 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
7334 munge (multiple) white space and other oddities.
7335 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
7336 single quotes in variable assignment.
7337 (AC_ARG_VAR, configure invocation): Adjust tests to expose this
7338 and similar failures by adding multiple spaces, tabs, and other
7340 Report and different test suggested by Francesco Romani
7341 <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
7343 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
7344 single quotes, we only need to search for single quotes; this
7345 both simplifies the search pattern, and makes us less
7346 susceptible to `echo' variations for arguments not containing
7348 (_AC_ARG_VAR_VALIDATE): Likewise.
7350 2006-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7352 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
7353 `$*' and IFS concatenation issue with traditional shells and
7354 bash-2.04. Report by Seanster@Seanster.com.
7356 2006-05-03 Bruno Haible <bruno@clisp.org>
7358 * doc/autoconf.texi (Limitations of Usual Tools): Identify more
7359 precisely which Mac OS X versions have the od problem.
7361 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7363 * doc/autoconf.texi: Use @option systematically.
7365 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7366 and Bruno Haible <bruno@clisp.org>
7368 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
7370 (Integer Overflow): Mention the special case of integer division
7373 2006-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7375 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
7376 traditional shells like the Solaris one that do not use the
7377 first IFS character for assembling `$*'.
7378 Prompted by a related report from autoconf_bug@nro.ca.
7380 2006-05-01 Paul Eggert <eggert@cs.ucla.edu>
7381 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7383 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
7384 Mention more problems with the -e option.
7386 2006-04-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7389 * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
7391 * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
7392 in URLs to improve DVI formatted output (requires texinfo 4.6).
7393 (System Services, Systemology, Shellology): Likewise.
7394 (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
7397 * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
7399 (Runtime): Fix macro argument names to match description:
7400 `action-if-found' -> `action-if-true' and similarly.
7401 (Obsolete Macros): Likewise.
7402 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
7403 (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
7404 (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
7406 2006-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7408 * doc/autoconf.texi (Limitations of Make): Clean up markup.
7411 * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
7414 2006-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7416 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
7417 /bin/sh set unsorted output.
7418 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
7419 * tests/local.at: Likewise.
7421 2006-04-26 Paul Eggert <eggert@cs.ucla.edu>
7423 * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
7424 (Integer Overflow, Null Pointers, Buffer Overruns):
7425 (Floating Point Portability, Exiting Portably): New sections.
7426 (Writing Test Programs): Fix some langauge. Recommend exiting
7427 with status 1, not merely nonzero. Clarify exit declaration.
7428 (Run Time): Move C exit status stuff to new Exiting Portably section.
7429 (Systemology): Mention Posix and levenez. Update v7 reference.
7430 (Portable Shell): Mention the Posix shell.
7432 2006-04-25 Stepan Kasal <kasal@ucw.cz>
7434 * bin/autoconf.as (me): Replace by as_me.
7436 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
7438 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
7439 since as_me isn't set yet.
7441 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
7443 Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
7444 a few minor bugs in this area.
7446 * doc/autoconf.texi (Programming in M4sh): Comment out the
7447 documentation of AS_BASENAME, for now.
7448 (Shell Substitutions): Do not use AS_DIRNAME in an example.
7449 (Limitations of Builtins) <basename>: Do not refer to
7451 * bin/autoconf.as (me): Don't use AS_BASENAME.
7452 (dir): Remove the unused variable.
7453 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
7454 AS_DETECT_REQUIRED. All uses changed.
7455 (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
7457 (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
7458 (AS_BASENAME): Use "basename --" to protect against leading "-".
7459 (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR. All uses changed.
7460 (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED. All uses changed.
7461 (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
7462 (_AS_DIRNAME_PREPARE): Likewise.
7463 (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR. All uses changed.
7464 (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED. All uses changed.
7465 (AS_DIRNAME): Use "dirname --".
7467 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
7469 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
7470 of "run time" and "run-time" changed to "runtime", for consistency.
7471 * lib/autoconf/fortran.m4: Likewise (in comment).
7472 * lib/autoconf/functions.m4: Likewise.
7473 * lib/autoconf/general.m4: Likewise.
7474 * lib/autoconf/headers.m4: Likewise.
7476 * doc/autoconf.texi (Run Time): Document the exit status situation
7477 with more accuracy and detail.
7479 2006-04-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7481 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
7482 Archive is not officially `GNU' any more. Update URL.
7483 (Defining Directories): Likewise
7484 * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
7486 2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7488 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
7489 newline from the `trap' code to finish `config.log'; the NetBSD
7490 /bin/sh resets the exit status after an empty command, as
7491 documented in doc/autoconf.texi.
7492 Reported by Dalibor Topic <robilad@kaffe.org>.
7494 2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
7496 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
7497 Suggested by Bruno Haible.
7499 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
7501 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
7502 some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
7503 Instead, just list the shells that we know work.
7504 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg. All uses
7505 changed. Be more cautious about the _cv_ variable.
7506 * tests/tools.at (Syntax of the shell scripts): Check the
7507 _cv_ variable once, at first, to avoid an internal autoconf error
7508 when sh -n does not work.
7510 2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7512 * lib/Autom4te/FileUtils.pm: Sync from Automake.
7514 2006-04-16 Paul Eggert <eggert@cs.ucla.edu>
7516 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
7517 use ">&-" since we're only 99.999% sure that this is portable,
7518 and since the MinGW bug is fixed in a different way.
7519 * lib/autotest/general.m4 (AT_INIT): Likewise.
7521 2006-04-16 Stepan Kasal <kasal@ucw.cz>
7523 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
7524 before opening config.log, to avoid hitting a bug on MinGW.
7526 2006-04-14 Paul Eggert <eggert@cs.ucla.edu>
7528 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
7529 AS_MESSAGE_LOG_FD before reopening it onto the log file.
7530 This works around a MinGW bug reported by Eric Paire.
7531 Make sure that all writes to the log file append to it,
7532 rather than possibly losing data.
7533 * lib/autotest/general.m4 (AT_INIT): Likewise.
7535 2006-04-14 Stepan Kasal <kasal@ucw.cz>
7537 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
7540 2006-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7544 * configure.ac (AC_INIT): Bump to 2.59d.
7546 2006-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7550 * Makefile.maint (news-date-check): Do not require a leading `*'
7551 before the release date in NEWS.
7553 2006-04-12 Stepan Kasal <kasal@ucw.cz>
7554 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7556 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
7557 the instantiated file do not contain the string 'datarootdir'
7558 but contain @datadir@, @docdir@, @infodir@, @localedir@, or
7559 @mandir@, replace the reference '${datarootdir}' by the value.
7560 * tests/torture.at (datarootdir workaround): New test.
7561 * NEWS: Advertise this temporary fixup.
7562 Based on a patch by Bruno Haible, reported and analyzed by
7563 Paul Eggert and Noah Misch.
7565 2006-04-12 Eric Blake <ebb9@byu.net>
7567 * tests/autotest.at (Debugging a failed test): Fix comment.
7569 2006-04-12 Stepan Kasal <kasal@ucw.cz>
7571 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
7572 all the changes since 2006-04-07.
7574 2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7576 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
7577 succeeded, but `ln -s file dir' failed, take care to remove the
7578 leftover target before the next test, to prevent its spurious
7579 failure; also make sure `ln file dir' works before selecting it.
7580 Thanks to Keith Marshall for pointing this out.
7583 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
7584 assignments in `at_debug_args', so that we put them correctly
7585 in the `run' script.
7586 * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
7587 Reported by Eric Blake.
7589 2006-04-11 Eric Blake <ebb9@byu.net>
7591 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
7592 top-level tests after micro-suite has been run. Used in...
7593 (Debugging a successful test, Debugging script and environment),
7594 (Debugging a failed test): ...these new tests. The first of these
7596 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
7597 macro, split out from...
7598 (AT_INIT): ...here, so that using -d also generates a run script.
7599 Document that -d inhibits top-level logging.
7600 * doc/autoconf.texi (testsuite Invocation): Document that -d only
7601 inhibits top-level logging; debug scripts are created.
7603 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
7605 * tests/autotest.at (Empty test, Empty check): New test to check it.
7607 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
7610 2006-04-10 Stepan Kasal <kasal@ucw.cz>
7612 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
7613 the files if a problem appears. Make the empty *.at files
7614 read-only, too. Proposed by Ralf Wildenhues.
7616 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7618 * config/Makefile.am: Add comment to force updated Makefile.in.
7620 * lib/freeze.mk: Fix typo in comment. Unlike the last, white
7621 space only patch to this file, this patch causes the Makefile.in
7622 files that include freeze.mk to be updated, and thus have a
7623 newer time stamp again, which in turn makes a pristine CVS
7624 checkout have correct time stamps.
7626 * Makefile.maint (cvs-sv): New macro, to be used..
7627 (config.guess-url_prefix, config.sub-url_prefix)
7628 (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
7629 point to CVS text checkout of Gnulib files.
7630 (copyright-check): Bump current year.
7631 (announcement): Do not hard-wire `./announce-gen'.
7632 (cvs-update): Propagate failures of `cvs' and `move-if-change'
7634 * Makefile.cfg (executable-update): Use `chmod a+x' instead of
7636 (wget_files): Update config.guess, config.sub, texinfo.tex by
7637 `wget-update', now that their URLs work again.
7639 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
7641 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
7642 Problem noted by Paul D. Smith.
7644 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7646 * doc/autoconf.texi: Remove unused words from word list.
7647 * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
7648 .x-sc_trailing_space: New files.
7650 * doc/standards.texi: Sync from gnulib.
7652 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
7653 `LIBOBJDIR' as experimental.
7655 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
7656 with a target directory; it's internally implemented as `cp'
7657 anyway, but since Autoconf advertises the possibility to use
7658 a target directory when LN_S is `ln -s', we need to find out.
7659 Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
7660 analyzed by Keith Marshall <keith.marshall@total.com>.
7664 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
7666 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
7667 confdefs.h as-is. In general, if it has backslash-newline or the
7668 like, then it doesn't work either to sort or to remove empty
7671 2006-04-09 Stepan Kasal <kasal@ucw.cz>
7673 * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
7675 2006-04-09 Alexandre Duret-Lutz <adl@gnu.org>
7677 * lib/autom4te.in (Automake-preselections): Preselect
7680 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
7682 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
7683 apostrophe within a single-quoted string, as this is the usual
7684 tradition and is easier to read than '"'"'. Don't rely on the
7685 shell treating "$/" like '$/'. Use a more-consistent indenting
7688 2006-04-09 Eric Blake <ebb9@byu.net>
7690 * tests/autotest.at (Backquote command substitution),
7691 (Multiline backquote command substitution): Remove mistaken
7692 AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
7694 (Parenthetical command substitution, Multiline parenthetical
7695 command substitution): here.
7697 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
7699 Import macros from gnulib (often changing their name).
7701 * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
7702 New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
7703 AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
7704 AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
7705 AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
7706 AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
7707 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
7708 AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
7709 AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
7710 AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
7711 The manual mentions Gnulib more prominently.
7712 * doc/autoconf.texi (Gnulib): New node.
7713 (Pointers): Add Gnulib URL.
7714 (Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
7715 (Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
7717 (Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
7718 suggest a #define rather than a typedef for _Bool, and mention
7719 Gnulib rather than trying to substitute stdbool code.
7720 (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
7721 (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
7722 (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
7723 AC_STRUCT_DIRENT_D_TYPE.
7724 (Particular Types): Mention stdint.h and inttypes.h as standard
7726 Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
7727 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
7728 AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
7729 AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
7730 AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
7731 (C Compiler): Move AC_C_LONG_DOUBLE to ...
7732 (Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
7733 AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
7734 (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
7735 (Coding Style). Don't mention m4_expand_once.
7736 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
7737 AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
7738 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
7739 (AC_CHECK_FUNCS): Use it.
7740 (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
7741 (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
7742 * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
7743 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
7744 (AC_HEADER_ASSERT): New macro.
7745 (AC_HEADER_STDBOOL): Don't assume "#error" works.
7746 Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
7747 Catch a bug in an HP-UX C compiler.
7748 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
7749 * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
7750 (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
7751 (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
7752 (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
7753 (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
7756 * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
7757 use /^foo|bar$/, it does not mean /^(foo|bar)$/.
7759 2006-04-08 Stepan Kasal <kasal@ucw.cz>
7761 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
7762 of the warning introduced by the 2001-08-28 change.
7764 2006-04-08 Stepan Kasal <kasal@ucw.cz>,
7765 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7767 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
7768 variables shall be overriden by the cache.
7769 * tests/torture.at (AC_ARG_VAR): Test also with a first value
7770 that contains braces.
7772 2006-04-07 Stepan Kasal <kasal@ucw.cz>
7774 Revert the patch from 2006-04-01 and only improve
7775 _AS_DETECT_BETTER_SHELL:
7777 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
7778 skip nonexistent directories.
7779 (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
7780 only shell candidates which exist.
7781 (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
7782 * lib/autotest/general.m4 (AT_INIT): No need to give three
7783 parameters to _AS_PATH_WALK.
7785 2006-04-07 Stepan Kasal <kasal@ucw.cz>,
7786 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7788 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
7789 distinguish m4sugar macros.
7790 * tests/tools.at (autoupdating with aclocal and m4_include):
7791 New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
7792 test case by Noah Misch <noah@cs.caltech.edu>.
7794 2006-04-07 Stepan Kasal <kasal@ucw.cz>
7796 Revert my change from 2006-03-17, in other words:
7797 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
7799 (AS_SHELL_SANITIZE): Remove DUALCASE=1.
7800 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
7803 2006-04-07 Eric Blake <ebb9@byu.net>
7805 * doc/autoconf.texi (Programming in M4sh): Document that
7806 AS_MKDIR_P exits the script on failure.
7807 * lib/autotest/general.m4: Remove redundant AS_ERROR.
7809 2006-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7811 * config/elisp-comp, config/install-sh, config/mdate-sh,
7812 config/missing, config/mkinstalldirs: Sync from Automake.
7814 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
7817 * doc/make-stds.texi: Sync from gnulib.
7819 2006-04-06 Eric Blake <ebb9@byu.net>
7821 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7822 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
7825 2006-04-06 Stepan Kasal <kasal@ucw.cz>,
7826 Eric Blake <ebb9@byu.net>,
7827 Paul Eggert <eggert@cs.ucla.edu>,
7828 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7830 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
7831 whether `set' quotes correctly: redirect stderr of the tested
7832 `set', and use a subshell, for Ultrix; use `sed' instead of
7833 `grep' for zsh `set' which may write binary output; match only
7834 at the beginning of a line, to avoid false positives.
7835 In order to avoid false positives by unrelated variables with
7836 multiline content, put the dump algorithm in a subshell and
7837 unset all variables containing newlines (except some which are
7838 special to the shell). Warn about cache variables that are
7841 2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7843 * config/config.guess, config/config.sub, config/texinfo.tex:
7846 * tests/mktests.sh: Reword comments.
7848 * tests/mktests.sh: Only skip internal macros starting with
7849 `_AC_' or `__AC_'. Noted by Stepan Kasal.
7850 Update exclusion lists for the test suite to this end:
7851 (AC_ARG_VAR): Do test this now.
7852 (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
7853 (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
7854 (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
7855 (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
7857 * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
7858 shell issue with double-quoted command substitutions of native
7860 Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
7863 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
7864 no file matches the glob, discard the warning, set `nullglob'.
7865 (syntax-check): Likewise.
7866 (sc_cast_of_x_alloc_return_value): Likewise.
7867 (sc_cast_of_alloca_return_value, sc_error_exit_success)
7868 (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
7869 (m4-check): Likewise.
7870 (sc_system_h_headers): Do not print rule on execution.
7871 (sc_tight_scope): Do not fail for non-existing `src' directory.
7872 (sc_changelog): Skip the Copyright footer.
7873 * lib/autoconf/lang.m4: Remove trailing space.
7875 * lib/autoconf/status.m4: More replacements to
7876 <tab><space> where this makes sense.
7878 2006-04-06 Stepan Kasal <kasal@ucw.cz>
7880 * tests/Makefile.am (maintainer-check-posix):
7881 s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
7883 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
7884 ac_config_<foo>s again, sometimes normalized, sometimes not.
7885 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
7886 (AC_CONFIG_COMMANDS): Do not do so here.
7887 (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
7888 and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
7889 2005-07-25 rewrite. Noticed by Noah Misch.
7891 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
7892 _AC_PRESERVE_HELP_ORDER, ...
7893 (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
7895 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
7896 inside m4_expand_once; it is redundant.
7898 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
7899 for --help from Cygnus `configure.'
7901 2006-04-06 Paul Eggert <eggert@cs.ucla.edu>
7903 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
7904 on a patch proposed by Ralf Wildenhues.
7906 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
7908 * lib/autoconf/status.m4: Replace <space>''<tab> with
7909 <tab><space> where this makes sense.
7911 2006-04-05 Howard Chu <hyc@highlandsun.com> (trivial change)
7912 Noah Misch <noah@cs.caltech.edu>
7914 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
7915 (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
7916 * doc/autoconf.texi (Help Formatting): New node.
7917 * NEWS: Announce AC_PRESERVE_HELP_ORDER.
7919 2006-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7921 * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
7922 lib/autoconf/specific.m4, lib/autoconf/status.m4,
7923 lib/autoconf/types.m4, lib/autotest/general.m4,
7924 tests/mktests.sh, tests/torture.at: White space cleanup:
7925 remove some SPACE before TAB, or add quoting ('' or @&t@).
7927 * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
7929 * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
7931 2006-04-05 Eric Blake <ebb9@byu.net>
7933 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
7934 empty test suite works.
7935 * tests/autotest.at (Empty test suite): Remove xfail.
7937 2006-04-05 Noah Misch <noah@cs.caltech.edu>
7939 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
7940 TAGS to ac_config_<foo>s.
7941 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
7942 (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
7943 normalizing it, consistent it with previous releases.
7944 * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
7946 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
7948 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
7949 Use simplified args that Eric Blake originally suggested.
7951 2006-04-04 Paul Eggert <eggert@cs.ucla.edu>
7953 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
7954 Prefer 'sort -u' to 'sort | uniq'. Filter data before sorting it.
7955 Use 'comm' rather than N instances of grep; this also fixes a bug
7956 whereby substrings were incorrectly matched, causing us to not
7957 generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
7958 (exclude_list): Exclude empty macros.
7959 (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
7961 Use awk rather than grep -E or egrep, to avoid
7962 portability problems with regular expressions containing newlines.
7963 (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
7964 Switch from grep to awk syntax.
7965 (ac_exclude_script): Renamed from ac_exclude_egrep.
7966 (au_exclude_script): Renamed from au_exclude_egrep.
7968 2006-04-04 Noah Misch <noah@cs.caltech.edu>
7970 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
7971 a subdirectory subject to Cygnus `configure'.
7972 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
7974 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
7975 report request when we have no AC_PACKAGE_BUGREPORT.
7977 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7981 * tests/mktests.sh: Update copyright year in the header of the
7984 * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
7985 (AC_C_RESTRICT): Likewise. Furthermore, add a function with a
7986 typedef'ed restricted pointer, to catch a compiler bug on
7987 HP-UX 11.x, and fix warnings so it passes with -Werror.
7988 (_AC_PROG_CC_C99): Likewise.
7989 Reported by Albert Chin <china@thewrittenword.com>.
7990 * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
7992 2006-04-03 Noah Misch <noah@cs.caltech.edu>
7994 * bin/autoscan.in (subdirs): New global.
7995 (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
7996 (output): Emit AC_CONFIG_SUBDIRS as needed.
7997 * tests/autoscan.at (autoscan): Remove XFAIL.
7999 2006-04-03 Noah Misch <noah@cs.caltech.edu>
8001 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
8003 2006-04-03 Eric Blake <ebb9@byu.net>
8005 * THANKS: Add myself.
8007 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8009 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
8010 to log, point to testsuite output tree.
8012 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
8014 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
8015 * doc/autoconf.texi (Function Portability): Mention that C++
8016 has trouble with 'exit'.
8017 (Guidelines): Test programs shouldn't use 'exit'.
8018 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
8019 Remove; all uses removed.
8020 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
8021 Return from 'main' instead of calling 'exit'.
8022 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
8023 (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
8024 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
8025 (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
8026 (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
8027 (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8028 (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
8029 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
8030 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8031 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
8032 * tests/compile.at: Likewise.
8034 2006-04-02 Pavel Roskin <proski@gnu.org>
8036 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
8038 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8040 Clean up _AC_COMPILER_EXEEXT* macros.
8042 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
8043 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
8044 ac_file to the name of the default output file and call
8045 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
8046 initial `rm' of the candidate files...
8047 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
8048 the same list in subsequent `rm' calls, and for the temporary
8049 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
8050 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
8051 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
8052 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
8053 no longer needed) by libtool. Make it a cache check.
8054 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
8055 copied here by mistake.
8056 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
8057 _AC_COMPILER_EXEEXT.
8058 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
8059 _AC_COMPILER_OBJEXT directly.
8060 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8062 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8064 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
8065 (AS_DIRNAME): Use it.
8066 (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
8068 * tests/*.at: Remove the generated ones.
8070 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8072 * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
8074 2006-04-01 Eric Blake <ebb9@byu.net>
8076 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
8077 directories, unless optional third argument supplied.
8078 (AS_UNAME): Don't optimize PATH walk.
8080 * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
8082 2006-04-01 Eric Blake <ebb9@byu.net>
8083 and Stepan Kasal <kasal@ucw.cz>
8085 * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
8088 2006-04-01 Noah Misch <noah@cs.caltech.edu>
8090 * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
8091 Autoconf version number despite a zero- or one-argument AC_INIT.
8093 * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
8095 * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
8096 * doc/autoconf.texi (autoreconf Invocation): Document it.
8098 * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
8099 Append LocalWords so ispell-buffer passes cleanly. Spelling fixes.
8101 2006-04-01 Eric Blake <ebb9@byu.net>
8103 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
8104 * lib/autotest/general.m4: Be tolerant of existing directory when
8105 rm failed to remove it.
8107 2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8109 * bin/autoupdate.in: Redefine m4_location so that warnings print
8110 the correct lines of the input file by subtracting..
8111 (_au__first_line): ..this new definition.
8113 * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
8114 AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
8115 Remove stray newline in output.
8116 (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
8117 AC_DEFUN this for autoconf, including the obsoletion diagnose.
8118 Fixes autoupdating of code where the replacement output contains
8120 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
8121 * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
8122 (au_exclude_list): Add AC_LANG_SAVE.
8123 * tests/tools.at: Several new tests for all of this.
8124 * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
8126 The AC_LANG_SAVE issue was reported against Libtool by
8127 Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
8128 Kristian Kvilekval <kris@cs.ucsb.edu>.
8130 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8132 * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
8133 switch all of them on and of when necessary. Fixes the bug when
8134 m4sugar macros (e.g., m4_define) were expanded after the first
8135 automatic update (e.g., after AC_PREREQ or AC_INIT).
8137 2006-03-31 Paul Eggert <eggert@cs.ucla.edu>
8139 * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
8140 of AS_BASENAME and AS_DIRNAME. Reported by Stepan Kasal.
8142 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
8143 correctly. Problem reported by Eric Blake.
8144 (_AS_EXPR_PREPARE): Detect Tru64 expr bug. Problem reported by
8147 2006-03-30 Paul Eggert <eggert@cs.ucla.edu>
8149 * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
8150 Tighten up the basename/dirname wording.
8152 2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8154 * Makefile.maint (sc_texi_notab): New check: do not use TABs
8155 in texinfo files outside of verbatim environments.
8156 (syntax-check-rules): Update.
8157 * doc/autoconf.texi (Configuration Headers): Conform to it.
8159 2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
8161 * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
8162 aclocal cannot be given on the command line.
8164 2006-03-29 Paul Eggert <eggert@cs.ucla.edu>
8166 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
8167 Give an example for AS_DIRNAME instead of referring to Posix..
8168 (File System Conventions): Put discussion of // versus / here, and
8170 (Limitations of Usual Tools): Add basename. Remove verbiage
8171 after dirname, since it got moved to the above sections.
8172 All this was inspired by a patch proposed earlier by Eric Blake.
8174 2006-03-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8176 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
8177 `$0' to protect against spaces.
8178 * lib/autotest/general.m4 (AT_INIT): Likewise.
8179 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
8182 2006-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8184 * bin/autoscan.in: The value of find_configure_ac should be
8185 checked for existence, so we don't barf over a nonexisting
8186 configure.ac. Reported by Laurence Darby <ldarby@tuffmail.com>.
8188 2006-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8190 * bin/autoupdate.in: Fix some typos.
8192 2006-03-21 Stepan Kasal <kasal@ucw.cz>
8194 * doc/autoconf.texi (Installation Directory Variables): Fix typo.
8196 * lib/autoscan/autoscan.list: Refreshed.
8198 2006-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8200 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
8201 and Erlang related variables.
8203 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
8204 (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
8205 (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
8206 (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
8207 (AC_LANG_BOOL_COMPILE_TRY(Objective C))
8208 (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
8209 (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
8210 (_AC_PROG_OBJC_G): New macros.
8211 (_AC_ARG_VAR_CPPFLAGS): Adjusted.
8212 * doc/autoconf.texi (Objective C Compiler): New node.
8213 (Preset Output Variables): Document OBJCFLAGS.
8214 (Language Choice): Document `Objective C' language.
8215 (Fortran Compiler): Fix typo.
8217 Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
8219 2006-03-20 Stepan Kasal <kasal@ucw.cz>
8221 * doc/autoconf.texi (Default Includes): Fix typo
8222 s/AC_HEADERS_STDC/AC_HEADER_STDC/
8223 (Limitations of Usual Tools): s/unwriteable/unwritable/
8224 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
8225 Fix typos in the comments.
8227 2006-03-17 Stepan Kasal <kasal@ucw.cz>
8229 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
8230 Factor out the warning to...
8231 (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
8232 * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
8233 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
8235 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
8236 case `ac_delim' when writing the sed script.
8238 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
8239 moved DUALCASE=1 ...
8240 (AS_SHELL_SANITIZE): ... here.
8241 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
8244 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
8246 (_AC_PATH_PROG): Store the result to VARIABLE.
8247 (AC_PATH_PROG): No need to set VARIABLE again.
8249 * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
8250 the first one is usual AT_CHECK_MACRO test, the second one checks
8251 that the same works when cross-compiling.
8252 * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
8253 (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
8255 2006-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8257 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
8258 the directory `/usr/bin/posix' in the shell search, to prefer
8259 the Posix shell not only in subsequent spawns as with `$BIN_SH'
8262 * doc/autoconf.texi (contents): To fix texi2html output, hide
8263 `@setcontentsaftertitlepage' for HTML.
8264 (Writing Autoconf Macros): Likewise, insert space after `@c'.
8265 (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
8268 2006-03-16 Stepan Kasal <kasal@ucw.cz>
8270 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
8272 (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
8273 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
8274 why IFS is restored so late; thank you, Ralf, for reminding us.
8276 2006-03-15 Stepan Kasal <kasal@ucw.cz>
8278 * doc/autoconf.texi (Pretty Help Strings): No need to use cached
8279 variables in the examples.
8281 2006-03-14 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8283 * doc/autoconf.texi (several sections): Cleaned up documentation for
8284 macros in erlang.m4.
8286 2006-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8288 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
8289 failure condition for `$(cmd)' style command substitutions.
8290 (Parenthetical command substitution, Multiline parenthetical
8291 command substitution): Use it.
8293 * doc/autoconf.texi (Special Shell Variables): Missing word.
8294 Reported by Keith Marshall <keith.marshall@total.com>.
8296 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
8297 IFS even in case of empty `$PATH'.
8299 2006-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8301 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
8302 `expr' away if there is nothing to do.
8303 < --keywords >: Simplify and robustify argument handling.
8304 Revert erroneous comment from 2005-08-23. Extend to allow
8305 keyword negation with `!'.
8306 Update help message. Remove broken code to prevent running
8307 tests multiple times.
8308 * doc/autoconf.texi (testsuite Invocation) < --keywords >:
8309 Update and fix the documentation accordingly.
8310 * tests/autotest.at (Keywords): Renamed to..
8311 (Keywords and ranges): .. this. Extended to make sure negated
8312 keywords, keywords taken from AT_SETUP arguments, and numeric
8313 test ranges work, and that matching is case-insensitive.
8315 2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8317 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
8318 allow to pass unnamed structs even in C++.
8319 (AC_CHECK_SIZEOF): Likewise.
8320 Also fix quoting error in `AC_MSG_FAILURE' arguments.
8321 * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
8322 struct): New tests for unnamed structs, each both native and
8325 * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
8326 a structure inside a cast, for C++ conformance.
8327 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
8328 Also fix quoting error in `AC_MSG_FAILURE' arguments.
8330 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
8331 nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
8332 trying to execute the command `no'.
8334 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
8335 m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
8338 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
8339 example. Do not emphasize `$%', it is hardly new and special.
8340 Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
8342 * doc/autoconf.texi (Limitations of Usual Tools): Document
8343 OpenBSD and traditional `grep' failure to handle multiple
8344 patterns separated by newlines.
8346 2006-03-10 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8348 * doc/autoconf.texi (several sections): Add documentation for macros
8351 2006-03-10 Eric Blake <ebb9@byu.net>
8353 * doc/autoconf.texi (Obsolete Macros): Fix wording of
8356 2006-03-10 Paul Eggert <eggert@cs.ucla.edu>
8358 * doc/autoconf.texi: Use @acronym more consistently for acronyms
8359 like BSD, GPL, LGPL. Fix minor English typos.
8360 (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
8361 Mention that these macros are becoming obsolete.
8362 (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
8363 Use more modern terminology for which standard is what.
8364 (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
8366 (AC_PROG_CXX): Likewise.
8367 (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
8368 Remove obsolete discussion about how to port to K&R.
8369 (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
8370 the obsolescent AC_HEADER_STDC.
8371 (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
8374 2006-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8376 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8377 Remove stdin redirection from /dev/null to allow pipe to work.
8379 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
8381 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8382 Require that /lib/cpp include stdio.h correctly. Solaris 10's
8383 doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by
8386 2006-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8388 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
8389 HP-UX sed is 99 commands, not 100.
8390 (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
8391 _AC_SUBST_FILES fragment. Separate `{' and `r' commands by
8392 newline for portability.
8393 * tests/torture.at (Torturing config.status): Also test 100
8394 AC_SUBST_FILE invocations. Fix test to actually verify the
8395 AC_CONFIG_FILES output.
8396 * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
8397 command, label, and read-file `r' limits. Unify HP-UX spelling.
8399 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
8401 ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
8403 (autoconfdir, $(AUTOCONF_FILES)): Likewise.
8404 * tests/mktests.sh: Small shell portability fixes.
8406 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8408 * doc/autoconf.texi (Caching Results): Fix the examples to use a
8409 recommended quoting style and discard unwanted output.
8411 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
8413 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
8414 (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
8415 cases, and to work around Tru64 expr bug.
8417 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8419 * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
8420 expr bug that turns the result of a regex match into a number if
8423 2006-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8425 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
8426 HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
8427 in section `Specific Compiler Characteristics'.
8429 2006-03-04 Eric Blake <ebb9@byu.net>
8431 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
8434 2006-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8436 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
8437 order of variable initialization, so even the Solaris 2.6 shell
8438 can create a config header correctly. Fixes lots of test suite
8441 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8443 * doc/autoconf.texi (Text processing Macros): New node to
8444 document the m4sugar macros m4_re_escape, m4_tolower,
8445 m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
8447 2006-02-22 Paul Eggert <eggert@cs.ucla.edu>
8449 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
8450 XrmInitialize (0) -> XrmInitialize ().
8451 Reported by Toshio Kuratomi.
8453 2006-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8455 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
8456 test, as in `if tests; then cmd1; elif ...; else ...; fi'.
8457 * doc/autoconf.texi (Programming in M4sh): Adjusted.
8458 * tests/m4sh.at (AS_IF and AS_CASE): Test this. Also make sure
8459 both macros are defun'ed so that required macros are evaluated
8462 * doc/autoconf.texi (Prerequisite Macros): State more precisely
8463 where a required macro will be expanded.
8464 (Coding Style): Another reason not to use `m4_define'.
8466 2006-02-21 Eric Blake <ebb9@byu.net>
8468 * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
8470 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8472 * doc/autoconf.texi (Looping constructs): New node, to
8473 document m4_for, m4_foreach, m4_foreach_w, and mention
8474 obsolete AC_FOREACH.
8475 (Obsolete Macros): Document AC_FOREACH.
8476 * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
8477 (m4_for): Fix to never loop (almost) endlessly, work correctly
8478 with arithmetic expressions in arguments, a step of zero or
8479 non-integer multiple of the interval, and avoid integer
8481 * tests/m4sugar.at: New test for m4_for, m4_foreach, and
8484 2006-02-20 Romain Lenglet <rlenglet@users.forge.objectweb.org>
8486 Add basic support for Erlang, both for configuring Erlang/OTP
8487 tools, and Erlang as a conf test language.
8488 * lib/autoconf/erlang.m4: New file.
8489 * lib/autoconf/autoconf.m4: Add erlang.m4.
8490 * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
8491 * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
8492 * NEWS: Add short description of new macros.
8493 * THANKS: Add Romain Lenglet.
8495 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8497 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
8498 native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
8500 2006-02-15 Eric Blake <ebb9@byu.net>
8502 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
8505 2006-02-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8507 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
8508 (_AS_CASE): Private helper macro.
8509 * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
8510 * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
8511 Fix syntax of AS_IF description
8512 (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
8513 for the AC_REQUIRE mess.
8514 * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
8517 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
8519 * doc/autoconf.texi: Minor style cleanup.
8520 Be consistent about spaces after commas.
8521 Insert [] where empty args look a bit funny.
8522 Fix some "i.e." and "e.g." usages.
8523 Try to avoid "X/Y" usages.
8524 Don't be pedantic about "ISO C99"; just say C99.
8525 Prefer GNU style for spaces in front of parens.
8526 (Function Portability): Comment about C89 versus C99
8527 signed integer division.
8528 (Particular Headers): Use current gnulib style for dirent
8531 2006-02-14 Stepan Kasal <kasal@ucw.cz>
8532 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8534 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
8535 macros without parameters.
8536 * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
8537 * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
8538 * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
8540 (autoupdate): Updated to match AU_ALIAS fix.
8542 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8543 and Paul Eggert <eggert@cs.ucla.edu>
8545 * doc/autoconf.texi (Programming in M4sh): Document
8546 AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
8548 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8550 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
8551 (AS_BOURNE_COMPATIBLE): ..this.
8552 (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
8554 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
8556 * doc/install.texi (Defining Variables): Tighten up the
8557 CONFIG_SHELL wording.
8559 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
8560 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8562 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
8563 of (set -o) rather than testing whether (set -o posix) succeeds,
8564 to work around a bug in the AIX 5.3 shell. Problem originally
8565 reportd by Howard Chu for libtool.
8567 2006-02-10 J.T. Conklin <jtc@acorntoolworks.com>
8569 * doc/autoconf.texi (Running the Compiler, Running the Linker):
8570 Changes the macro arguments in summaries to match the
8573 2006-02-04 Stepan Kasal <kasal@ucw.cz>
8575 * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
8576 hint as ``a workaround for a bug.''
8578 2006-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8580 * bin/autoreconf.in: New option `--no-recursive'.
8581 Improve wording for subpackages a bit.
8582 * doc/autoconf.texi (autoreconf Invocation): Updated.
8585 * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
8586 in environment of `configure', not the command line.
8587 Reported by Howard Chu <hyc@highlandsun.com>.
8589 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
8591 * doc/autoconf.texi (Limitations of Builtins): Document the
8592 problem with "trap -".
8594 2006-01-23 Steven G. Johnson <stevenj@fftw.org>
8596 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
8597 (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
8598 messages to differentiate Fortran and Fortran 77 tests.
8599 (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
8600 AC_LANG_ASSERT, to allow use in mixed-language projects.
8602 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8604 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
8605 FOO" to "defined (FOO)".
8606 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
8607 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
8608 * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
8609 * tests/tools.at (ifnames): Likewise.
8611 2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8613 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
8614 * lib/Autom4te/General.pm (mktmpdir): Likewise.
8615 (END): Improve error message a bit.
8616 Reported by Bruce Korb <bkorb@gnu.org>.
8618 2006-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8620 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
8621 `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
8623 2006-01-11 Stepan Kasal <kasal@ucw.cz>
8625 * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
8626 requires sys/stream.h. Reported by Oliver Kiddle.
8628 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8629 Stepan Kasal <kasal@ucw.cz>
8631 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
8632 before the removals of test dirs, use `find' to avoid modification
8633 of symlinked directories.
8635 2006-01-11 Steven G. Johnson <stevenj@alum.mit.edu>
8637 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
8638 Don't ignore the macro arguments.
8640 2006-01-11 David Thompson <dthompsn@vizsolutions.com>
8642 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
8643 declaration that works for MSVC.
8645 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8647 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
8648 Add `*.map' and `.inf' for Green Hills compiler.
8649 Reported by Stefan Seefeld <stefan@codesourcery.com>.
8651 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
8652 correctly: pad with spaces after FIRST_PREFIX if necessary,
8653 and compute string lenghts with `m4_qlen' instead of `m4_len'.
8654 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
8655 * tests/m4sh.at (AS_HELP_STRING): Test extended.
8657 Reported by numerous people, numerous times.
8659 2006-01-05 Paul Eggert <eggert@cs.ucla.edu>
8661 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
8662 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
8663 * lib/autoconf/general.m4, lib/autoconf/status.m4:
8664 * lib/autotest/general.m4, tests/local.at:
8665 Update copyright year to 2006.
8667 * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
8669 * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
8670 for file names, again. Reported by Noah Misch.
8671 (Coding Style): Explain that s|a|b| is preferred for file names.
8672 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
8673 (AC_OUTPUT_MAKE_DEFS): Likewise.
8674 * lib/autotest/general.m4 (AT_INIT): Likewise.
8675 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
8676 * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
8678 Fix Posix-conformance bugs re use of { command in sed scripts,
8679 and improve the sed-related documentation a bit.
8680 * doc/autoconf.texi (Installation Directory Variables): Use
8681 our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
8682 rather than "sed" when talking about Sed in general.
8683 (Particular Programs): Likewise.
8684 (Coding Style): y is like s with respect to / and ,.
8685 (Limitations of Usual Tools): Document the weird restrictions
8686 that Posix has about { }. Use better quoting.
8687 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
8688 Rewrite to conform to Posix rules about { } in sed scripts.
8689 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
8690 * tests/foreign.at (Libtool): Likewise.
8691 * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
8692 Use our own style advice re 's,a,b,' versus 's|a|b|'.
8694 2006-01-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8696 * lib/autoconf/status.m4: Fix typo.
8698 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
8699 singly- or doubly-quoted arguments to `-cmdline', `-ignore',
8700 `-def', for the benefit of Portland `pgf90 -Mipa'.
8701 Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
8703 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
8705 * doc/autoconf.texi: Update copyright (and other) dates to 2006.
8706 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
8707 shell from zsh to bash.
8709 2005-12-31 Stepan Kasal <kasal@ucw.cz>
8711 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
8712 ":" caused problems on OS/2-EMX. Suggested by Andrew Belov.
8714 2005-12-29 Paul Eggert <eggert@cs.ucla.edu>
8716 * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
8717 parentheses in $(...). Problem reported by Eric Blake.
8719 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
8721 * doc/autoconf.texi (Limitations of Usual Tools):
8722 Mention which characters can be escaped with \ in portable regular
8723 expressions used in grep, sed, expr. Mention the leading ^ problem
8724 with expr. Clean up some confusing wording. Mention which
8725 grep options are portable.
8727 2005-12-09 Stepan Kasal <kasal@ucw.cz>
8729 * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
8731 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
8733 * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
8734 patch, noted by Ralf Wildenhues.
8736 2005-12-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8738 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
8739 posix' unconditionally, for pdksh in `native sh' emulation.
8741 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
8743 * doc/autoconf.texi (Shellology): Document eval $? problem
8745 (Limitations of Builtins): Likewise.
8747 2005-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8749 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
8750 CONFIG_SHELL in the environment of the configure rerun.
8751 * doc/autoconf.texi (Here-Documents, config.status Invocation):
8752 Suggest passing CONFIG_SHELL absolute, and in the environment
8753 rather than as option.
8755 2005-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8757 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
8758 Fix quoting of output line (triggered for many AC_SUBST_FILEs).
8759 Fix macro quoting. Fix output for n * 98 substituted variables.
8761 2005-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8763 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
8764 `tmp' to avoid file removal race.
8766 2005-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8768 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
8769 ac_clean_files and LIBOBJS.
8771 2005-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8773 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
8774 Factor functionality to..
8775 (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
8776 `AC_SUBST($1)' in the public version.
8777 (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
8778 (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
8781 2005-11-01 Stepan Kasal <kasal@ucw.cz>
8783 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
8786 2005-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8788 * NEWS: Move AH_HEADER mention to right place.
8790 2005-10-27 Stepan Kasal <kasal@ucw.cz>
8792 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
8793 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8795 2005-10-25 Stepan Kasal <kasal@ucw.cz>
8797 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
8798 conftst2.$ac_objext.
8799 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8801 2005-10-24 Stepan Kasal <kasal@ucw.cz>
8803 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
8804 conftest.o, to see whether the compiler really obeys; rm the object
8805 file before and after the test and register it with ac_clean_files.
8806 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
8808 2005-10-21 Stepan Kasal <kasal@ucw.cz>
8810 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
8811 the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
8812 code so that the most common case requires less forks.
8814 2005-10-20 Stepan Kasal <kasal@ucw.cz>
8816 * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
8817 not portable; thanks to Paul Eggert and Alexandre.
8819 * NEWS: Fix an old typo.
8821 2005-10-20 Jim Meyering <jim@meyering.net>
8823 * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
8824 the latter'', in two places.
8826 2005-10-19 Paul Eggert <eggert@cs.ucla.edu>
8828 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
8829 AC_LANG_PROGRAM, fixing a typo. Don't give details about
8830 the inner workings of AC_LANG_FUNC_LINK_TRY.
8831 * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
8832 AC_LANG_FUNC_LINK_TRY. This involves returning the value returned
8833 by the function rather than ignoring it.
8834 (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
8835 comparing its address. Intel's interprocedural optimization was
8836 outsmarting the old heuristic. Problem reported by
8839 2005-10-19 Stepan Kasal <kasal@ucw.cz>
8841 * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
8843 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
8845 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
8846 (m4_map, m4_map_sep): Use it. Handle the empty list correctly.
8848 2005-10-04 Stepan Kasal <kasal@ucw.cz>
8850 * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
8851 before removing it (chmod -R u+rwx); there are three instances of this.
8853 2005-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8854 Stepan Kasal <kasal@ucw.cz>
8856 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
8857 * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
8858 make its content writable before removing it. Remove an errorneous
8859 comment from the end, where the logs of the failed tests are copied
8860 to the main log file.
8862 2005-09-27 Stepan Kasal <kasal@ucw.cz>
8864 * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
8865 in case the computer is too quick. Double quote the configure.ac
8868 * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
8869 problems if the testsuite were running too fast.
8871 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
8873 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
8874 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
8875 (which belong to Xt, not X itself). See Debian bug 327655.
8876 * NEWS: Mention this.
8878 2005-09-07 Stepan Kasal <kasal@ucw.cz>
8880 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
8882 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
8884 * config/move-if-change: Don't output "$2 is unchanged";
8885 suggested by Ben Elliston. Handle weird characters correctly.
8887 2005-09-06 Stepan Kasal <kasal@ucw.cz>
8889 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
8890 calls, so that the final expansion of this macro is shorter.
8891 Create the conftest.$ac_ext outside the `for' loop, to speed the run.
8892 Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
8893 the cleanup there. Use AS_VAR_* macros, to be more general.
8894 * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
8896 * lib/autoconf/general.m4: Use AS_IF where appropriate.
8898 * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
8900 2005-09-01 Stepan Kasal <kasal@ucw.cz>
8902 * doc/autoconf.texi (Configuration Headers): Add an index entry
8905 2005-08-26 Pavel Roskin <proski@gnu.org>
8907 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
8908 XMKMF to locate xmkmf. Make XMKMF precious. Export CC when
8911 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
8913 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
8914 The previous patch didn't work, so try a better one.
8916 2005-08-26 Stepan Kasal <kasal@ucw.cz>
8918 * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
8919 in the example. Reported by Bruno Haible.
8920 <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
8921 "if $undefined_var;" succeeds with my shell.
8923 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
8924 AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
8925 but change the m4_divert_text to m4_divert_once.
8927 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8929 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
8930 Work around bug in Solaris /usr/xpg4/bin/awk.
8931 The bug is present in at least Solaris 8 through 10.
8933 2005-08-24 Stepan Kasal <kasal@ucw.cz>
8935 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
8936 some evil values and relying on the fact that $* concatenates the
8937 parameters by the first character from IFS.
8939 2005-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
8940 Stepan Kasal <kasal@ucw.cz>
8942 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
8943 first header appears, define AH_HEADER.
8944 * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
8945 Update limitations about when to call AC_CONFIG_HEADERS.
8946 (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
8947 parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
8948 that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
8949 ``Configuration Actions''; fix their index entries.
8951 * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
8952 options correctly. Process N-M as M-N if M is smaller than N.
8953 Process ranges correctly so that N-N will run only N.
8954 Sort and uniquify the tests that will be run. If there is more
8955 than one test, reinsert the banners for the tests.
8956 * tests/autotest.at (Keywords): Unmark XFAIL.
8958 2005-08-23 Stepan Kasal <kasal@ucw.cz>
8960 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
8961 before passing the macro name to AH_TEMPLATE.
8963 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
8964 now opens log after option processing; in particular, --version
8965 and --help do not touch config.log.
8967 * Makefile.maint: Revert the change from 2005-08-12.
8969 2005-08-22 Stepan Kasal <kasal@ucw.cz>
8971 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
8973 (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
8975 2005-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8977 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
8978 (Autotest Logs, Writing testsuite.at, testsuite Invocation):
8981 * doc/autoconf.texi (Defining Symbols, Changed Results):
8982 Prepend to LIBS, not append, in examples.
8984 2005-08-16 Stepan Kasal <kasal@ucw.cz>
8986 When building in place, set srcdir="."; suggested by Tim Van Holder.
8988 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
8989 build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
8990 (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
8991 * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
8992 does not mean "no --srcdir option".
8994 2005-08-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8996 * tests/autoscan.at (autoscan): New file.
8997 * tests/suite.at: Use it.
8998 * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
8999 Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
9001 * tests/autotest.at (Keywords): Test keywords combinations.
9003 2005-08-12 Stepan Kasal <kasal@ucw.cz>
9005 * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
9006 add "2>&1"; gzip 1.2.4 prints help on stderr.
9008 2005-07-27 Stepan Kasal <kasal@ucw.cz>
9010 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
9011 was pushdef'ed twice while popped only once. Push it only once.
9012 (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
9014 2005-07-26 Stepan Kasal <kasal@ucw.cz>
9016 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
9017 prefixed by mere "===", not "configure: === ".
9019 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
9021 * Makefile.maint: Update from Bison.
9023 * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
9024 "<tab>" in comment, so that the point is understandable.
9026 2005-07-25 Stepan Kasal <kasal@ucw.cz>
9028 Rewrite substantial part of lib/autoconf/status.m4.
9029 The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
9030 and CONFIG_COMMANDS are not processed in four separate loops.
9031 Instead, there is one main loop. This alows that the common code
9032 is expanded only once, thus config.status (and configure) is smaller.
9034 The registration mechnism in AC_CONFIG_FILES and cousins also changed;
9035 the AC_LIST_FILES and cousins macros are no longer used.
9037 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
9038 _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
9039 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
9040 _AC_OUTPUT_COMMAND): ..., respectively. These macros no longer
9041 contain the initialization, nor the for loop, nor the associated
9042 commands; all these go to ...
9043 (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
9044 _AC_OUTPUT_CONFIG_STATUS.
9045 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
9046 Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
9047 (_AC_OUTPUT_FILE): The creation of the sed script ...
9048 (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
9049 (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
9050 _AC_OUTPUT_MAIN_LOOP.
9051 (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
9052 _AC_CONFIG_COMMANDS): Use ...
9053 (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
9054 (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
9055 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
9056 _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
9057 (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
9058 (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
9060 (_AC_CONFIG_UNIQUE): Update.
9061 (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
9062 Replaced by this ...
9063 (_AC_LIST_TAGS): ... new common macro.
9064 (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
9065 AC_LIST_COMMAND_COMMANDS): Replaced by this ...
9066 (_AC_LIST_TAG_COMMANDS): ... new common macro.
9067 (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
9068 this didn't belong to the `config commands' section.
9069 (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
9070 (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
9071 AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
9072 to the `config commands' section either.
9073 (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
9074 (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
9076 ... and many changes to the comments nearby.
9078 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
9079 set ac_subdirs_all='_AC_LIST_SUBDIRS'.
9080 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
9081 AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
9082 (#define header templates): The comment at the top of the generated
9083 header now includes the name(s) of the source file(s).
9085 Several unrelated small changes:
9087 * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
9088 parameter to AC_DIAGNOSE.
9089 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
9090 (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
9091 with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
9092 (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
9094 (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
9095 in AC_OUTPUT doesn't double-quote it either.
9096 * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
9099 2005-07-10 Stepan Kasal <kasal@ucw.cz>
9101 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
9102 versions of Portland Group compiler produce single- and double-quoted
9103 -cmdline argument. Reported by Steven G. Johnson <stevenj@fftw.org>
9104 and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
9106 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9108 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9109 This is a corrected version of yesterday's patch.
9111 2005-07-07 Stepan Kasal <kasal@ucw.cz>
9113 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
9114 path, too; insert a "===" to emphasize the line.
9116 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
9117 ac_cv_build_alias to ac_build_alias.
9118 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
9120 On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
9121 change eliminates it. Problem reported by Alexandre Duret-Lutz.
9122 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
9123 (AC_ARG_VAR): ... here.
9124 (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
9127 Keep a list of all precious variables and process them with one simple
9128 for loop, instead of expanding all commands, or, OTOH, complicated
9129 processing of output of "set".
9130 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
9131 variable names in new macro...
9132 (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
9133 (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
9134 a loop to assign all ac_env_* and ac_cv_env_* variables.
9135 (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
9137 (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
9138 its value to shell variable ac_precious_vars and call
9139 _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
9140 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
9141 _AC_ARG_VAR_VALIDATE.
9143 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
9144 and the AC_SUBSTs ...
9145 (AC_INIT): ... here.
9147 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
9148 the ac_subst_files section in config.log.
9150 * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
9152 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9154 * NEWS: New macro AC_C_TYPEOF.
9155 * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
9156 * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
9157 * tests/c.at (C keywords): Test AC_C_TYPEOF.
9159 Fix problems reported by Nicolas Joly.
9160 * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
9161 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9162 They are generated by the Tru64 v5.1B shell.
9164 2005-07-05 Stepan Kasal <kasal@ucw.cz>
9166 Fix my changes from 2005-07-01; reported by Noah Misch.
9167 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
9168 description, the macro now accepts only a single tag.
9169 (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
9171 Fix cases when the varsions of Autoconf and Autotest don't match.
9172 Reported by Noah Misch.
9173 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
9174 at_top_builddir, for compatibility with older autotest.
9175 * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
9176 is not set, use at_top_builddir, for compatibility with older
9177 versions of autoconf.
9179 2005-07-04 Paul Eggert <eggert@cs.ucla.edu>
9181 * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
9182 Problem reported by Patrick Welche.
9184 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9186 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
9187 sed substitution command, so that we allow | in program prefixes
9188 and program suffixes. (& is a problem anyway; we're not fixing
9190 * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
9191 configure_input, top_builddir, srcdir, etc.
9192 * lib/autotest/general.m4 (AT_INIT): Likewise, for
9193 PATH_SEPARATOR in AUTOTEST_PATH.
9195 2005-07-02 Alexandre Duret-Lutz <adl@gnu.org>
9197 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
9198 for loop over config.site files using `set', to allow
9199 directory names containing IFS characters.
9201 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9203 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
9204 directories with weird names. Apparently some people like living
9205 on the edge. However, improve the test that "pwd" actually does
9206 report a name for the working directory.
9207 * NEWS: Remove the claim that we test for funny chars in dir names.
9209 2005-07-01 Stepan Kasal <kasal@ucw.cz>
9211 * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
9213 * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
9214 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
9215 Now accept a single tag, not whitespace separated list.
9216 (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
9218 2005-06-30 Stepan Kasal <kasal@ucw.cz>
9220 * doc/autoconf.texi (Configuration Headers): Change the explanation
9221 about #include <config.h>.
9222 (Generic Functions): Mention the Gnulib project.
9223 (Limitations of Usual Tools) <sed>: Another minor rephrasing.
9225 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
9226 document to output the default config_* lists to config.status.
9227 Don't recognize option --file, if the functionality is not there.
9228 Likewise for --header; moreover, recognize --he and --h as shortcuts
9229 for --help in that case.
9231 * lib/autoconf/status.m4: Fix the order of the "sections", so that it
9232 matches the order of execution. No code changed.
9234 2005-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9236 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
9237 single-quoted -cmdline argument in Portland Group compiler.
9238 Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
9240 2005-06-30 Alexandre Duret-Lutz <adl@gnu.org>
9242 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
9244 2005-06-29 Stepan Kasal <kasal@ucw.cz>
9246 * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
9247 descriptors to child processes; reported by Norman Gray.
9249 2005-06-29 Stepan Kasal <kasal@ucw.cz>
9251 * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
9253 * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
9254 instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
9255 (AC_SUBST): Call it.
9256 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
9257 the directory specific variables; but don't call it for configure_input.
9259 2005-06-28 Derek Price <derek@ximbiot.com>
9261 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
9264 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9266 * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
9267 directory have inherent problems with special characters like spaces,
9268 due to limitations in Make syntax. Problem reported by Alexandre
9270 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
9271 Also, fix Tru64 porting problem with shell patterns,
9272 reported by Ralf Wildenhues.
9274 2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9276 * doc/autoconf.texi (Subdirectories): Fix markup typos.
9278 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9280 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
9282 Fix some more shell quoting problems. Prompted by a bug report
9283 from Justace Clutter.
9284 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
9285 variable into diagnostic. Make the diagnostic an error, not a warning,
9286 because we really don't support spaces and suchlike in dir names.
9287 (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
9288 Don't worry about backslashes in srcdir; it can't happen now.
9289 (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
9290 Simplify ac_optarg handling.
9291 (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
9293 2005-06-22 Stepan Kasal <kasal@ucw.cz>
9295 Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
9296 * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
9297 * tests/atlocal.in: Propagate $EGREP and $SED.
9298 * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
9299 (AT_CONFIG_CMP): Use sed instead of grep plumbing.
9301 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
9302 that '\|' is not allowed in BREs; recommend using newline separated
9303 list of patterns instead of multiple -e options.
9305 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
9307 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
9309 2005-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9311 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
9313 2005-06-21 Stepan Kasal <kasal@ucw.cz>
9315 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
9316 b, t, r, w commands require single space, while : cannot have any.
9317 (Special Shell Variables): Fix sed code this in the example.
9318 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
9319 * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
9321 * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
9322 expand to the empty list. Don't use two pairs of m4_changequote,
9325 2005-06-20 Derek Price <derek@ximbiot.com>
9327 * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
9329 2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
9331 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
9332 * doc/autoconf.texi:
9333 Don't mention Solaris versions so much, if a
9334 problem is common to all extant versions of Solaris. Say "SunOS
9335 4" instead of "SunOS" for SunOS 4.
9336 (awk): Mention more of the limitations of traditional Awk.
9337 (cat): Don't talk about cat -v.
9339 2005-06-16 Paul Eggert <eggert@cs.ucla.edu>
9341 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
9342 (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
9343 but the implementation is entirely different and is designed
9344 to be compatible with glibc strverscmp.
9345 * tests/m4sh.at (AS_VERSION_COMPARE): New test.
9347 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
9348 on Mac OS X 10.4 reported by Peter O'Gorman in:
9349 http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
9350 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
9351 Use shell builtins rather than 'expr', to work around expr bug.
9353 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
9355 * doc/autoconf.texi: "filesystem" -> "file system".
9356 "behaviour" -> "behavior".
9357 Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
9358 * lib/autoconf/general.m4: Omit blank after ":" sed command,
9360 * lib/m4sugar/m4sh.m4: Likewise.
9361 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
9362 with Solaris sed. Fix by Ralf Menzel and Stepan Kasal.
9364 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
9365 (.x.1): Ignore the time stamp in the .TH line when deciding whether
9366 to update the man page. That way, we don't have to check in new
9367 man pages every month.
9369 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
9370 quotes and backslashes. Patch from Derek Price.
9372 2005-06-10 Derek Price <derek@ximbiot.com>
9374 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
9377 2005-06-08 Paul Eggert <eggert@cs.ucla.edu>
9379 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
9380 -u, since it outputs chatter if the input files are the same.
9381 Problem reported by Ralf Menzel.
9383 2005-06-08 Derek Price <derek@ximbiot.com>
9385 * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
9386 renaming them since they are about to be redefined anyhow.
9388 2005-06-08 Derek Price <derek@ximbiot.com>
9390 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
9391 redefined M4 macros to this node. Document m4_include & m4_sinclude.
9392 Move m4_undefine to alphabetical order.
9394 2005-06-07 Paul Eggert <eggert@cs.ucla.edu>
9396 * README: Recommend GNU M4 1.4.3 or later.
9397 * doc/autoconf.texi (Introduction): Likewise.
9398 Reword to avoid some formatting glitches.
9399 Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
9400 Clarify explanation of HP compiler bug.
9401 Redo example output tp match current CVS snapshot.
9402 Use @example.org in email addresses when the examples
9403 might get inadvertently cut-and-pasted into user code.
9404 Remove example of autom4te usage that doesn't seem to work now.
9405 Use modern AC_INIT (except when the example is meant to be
9406 shown with Autoconf 2.13).
9407 Update ksh info for Solaris 9 and later.
9409 Modernize description of Automake versions a bit.
9410 Don't claim a future version of Autoconf is near.
9411 * doc/install.texi: Reword to avoid some formatting glitches.
9413 2005-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9415 * doc/autoconf.texi: Add [] to examples, so that the manual
9416 follows its own advice about quoting better.
9417 Reword to avoid some formatting glitches.
9418 * doc/installt.exi: Reword to avoid some formatting glitches.
9420 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
9421 Tru64 ksh pattern matching bug. Reported against Libtool by
9422 Albert Chin <libtool@mlists.thewrittenword.com> and
9423 Nicolas Joly <njoly@pasteur.fr>.
9425 2005-06-06 Stepan Kasal <kasal@ucw.cz>
9427 m4_cdr of one-member list was [[]] (one-member list containing an
9428 empty string) instead of [] (an empty list. Callers were skewed to
9429 match this misbehaviour. As a consequence of this:
9430 - m4_foreach([x], [], [foo]) expanded to `foo', while
9431 - the expansion of m4_foreach([x], [[]], [foo]) was empty.
9432 This bug has been fixed:
9434 * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
9435 expand to an empty string; print error msg if called without
9437 (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
9438 misbehaviour; handle [] and [[]] correctly.
9440 2005-06-06 Stepan Kasal <kasal@ucw.cz>
9442 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
9443 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
9444 scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
9446 2005-06-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (trivial change)
9448 * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
9449 swallow records with more than 99 fields.
9450 * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
9451 parse the long line.
9453 2005-06-04 Stepan Kasal <kasal@ucw.cz>
9455 * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
9456 swallow literals longer than 399. Reported by Ralf Wildenhues.
9457 * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
9458 to workaround this limitation.
9460 2005-06-03 Steven G. Johnson <stevenj@alum.mit.edu>
9462 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
9463 to gfortran, and make these the first two compiler names
9464 checked (following the general autoconf preference for gcc).
9466 2005-06-03 Stepan Kasal <kasal@ucw.cz>
9468 * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
9469 (DISTCLEANFILES): Remove $(check_SCRIPTS).
9470 (testsuite): Make sure autotest.m4f is up-to-date before using it.
9472 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9474 * lib/autotest/general.m4 (AT_INIT): Don't create a regular
9475 expression of unbounded size when processing the --list
9476 option. This runs afoul of a limit of 399 bytes per regular
9477 expression on AIX. Problem reported by Ralf Wildenhues.
9479 2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
9481 * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
9482 * doc/autoconf.texi (Particular Headers): Reword example
9483 for multiline stdbool replacement.
9484 (Setting Output Variables): Reword text a bit. Don't
9485 give all the details about |#_!!_#|.
9486 Reword description of line replacement.
9488 2005-05-31 Dan Manthey <dan_manthey@partech.com>
9490 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
9491 now contain newlines, and substituted files must be referenced on
9492 a line alone; the sed scripts to substitute them are now very
9494 (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
9495 commands can be put in a sed script portably.
9496 * doc/autoconf.texi (Setting Output Variables): Document above
9497 changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
9498 use of multiline substitution.
9499 * tests/torture.at: No longer expect substitution of newline to fail.
9501 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9503 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
9504 From Ralf Menzel (trivial change).
9506 2005-05-25 Paul Eggert <eggert@cs.ucla.edu>
9508 * tests/local.at: Don't attempt to check for negated character
9509 classes in shell scripts. The test was too brittle.
9511 2005-05-25 Stepan Kasal <kasal@ucw.cz>
9513 * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
9514 * doc/autoconf.texi (Limitations of Builtins): Document this
9517 2005-05-24 Stepan Kasal <kasal@ucw.cz>
9519 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
9520 common code; used in many places in the tree.
9521 (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
9522 (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
9524 * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
9526 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
9527 messages when ac_unique_file is not found.
9528 (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
9529 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
9530 commands, for consistency with AC_MSG_ERROR and such.
9532 * bin/autoconf.as: Make more use of "shift 2" in option processing.
9534 * bin/Makefile.am: Merge the two rules for creating scripts.
9536 2005-05-23 Stepan Kasal <kasal@ucw.cz>
9538 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
9539 obsolete; it was never documented.
9540 (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
9542 2005-05-20 Stepan Kasal <kasal@ucw.cz>
9544 * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
9545 * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
9546 (ac_top_builddir): ... this ...
9547 (ac_top_build_prefix): ... to this; the old name is also kept, for
9548 backward compatibility.
9549 (ac_top_builddir_sub): New variable, without the trailing slash,
9551 (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
9552 * doc/autoconf.texi (Configuration Actions): Rename
9553 ac_top_builddir to ac_top_build_prefix.
9554 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
9555 at_top_builddir to at_top_build_prefix.
9556 * lib/autotest/general.m4 (AT_INIT): Likewise.
9558 2005-05-20 Stepan Kasal <kasal@ucw.cz>
9560 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
9563 2005-05-17 Stepan Kasal <kasal@ucw.cz>
9565 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
9566 argument to m4_foreach. I guess it was necessary in the past,
9567 but I think it's a no-op now.
9569 2005-05-17 Stepan Kasal <kasal@ucw.cz>
9571 * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
9572 ``cat <<_ACEOF'' commands to one.
9573 (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
9574 * lib/autoconf/status.m4: On various places, use expr instead of
9576 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
9577 (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
9578 * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
9580 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
9581 the wrong patterns between ``case'' and ``esac.'' The previous
9582 code had false positives.
9584 2005-05-14 Alexandre Duret-Lutz <adl@gnu.org>
9586 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
9588 * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
9591 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9593 * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
9594 ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
9595 Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
9596 bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
9597 bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
9598 bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
9599 config/config.guess, config/config.sub, config/elisp-comp,
9600 config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
9601 doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
9602 lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
9603 lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
9604 lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
9605 lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
9606 lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
9607 lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
9608 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
9609 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
9610 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
9611 lib/autoconf/general.m4, lib/autoconf/headers.m4,
9612 lib/autoconf/lang.m4, lib/autoconf/libs.m4,
9613 lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
9614 lib/autoconf/specific.m4, lib/autoconf/status.m4,
9615 lib/autoconf/types.m4, lib/autoscan/Makefile.am,
9616 lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
9617 lib/autotest/Makefile.am, lib/autotest/autotest.m4,
9618 lib/autotest/general.m4, lib/emacs/Makefile.am,
9619 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
9620 lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
9621 lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
9622 tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
9623 tests/compile.at, tests/foreign.at, tests/fortran.at,
9624 tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
9625 tests/semantics.at, tests/suite.at, tests/tools.at,
9626 tests/torture.at, tests/wrapper.as:
9627 Update FSF postal mail address.
9629 2005-05-13 Stepan Kasal <kasal@ucw.cz>
9631 * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
9633 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
9634 enough arguments, similarly as in m4_bpatsubsts.
9636 2005-05-12 Stepan Kasal <kasal@ucw.cz>
9638 * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
9641 2005-05-11 Stepan Kasal <kasal@ucw.cz>
9643 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
9644 for absolute directory names in one loop.
9645 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
9646 abbreviations of --version and --debug.
9648 2005-05-10 Paul Eggert <eggert@cs.ucla.edu>
9650 * doc/autoconf.texi (Autoconf Language): Be more precise about
9651 quoting rules. Problems noted by Stepan Kasal.
9652 Also, throughout this document, be more careful about white space.
9653 "blank", "white space", and "space" all have different meanings
9654 and we should be careful to say what we mean.
9656 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
9658 Fix C++ related problems reported by Werner Lemberg.
9659 * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
9660 * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
9661 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
9662 avoid problems with C++ and throw.
9663 * tests/compile.at: .cpp, not .cc.
9665 * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
9667 2005-05-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9669 * doc/autoconf.texi (Generic Functions): Typos.
9671 2005-05-02 Gary V. Vaughan <gary@gnu.org>
9673 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
9674 object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
9675 set by latest automake.
9677 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
9679 * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
9680 outputs 0 on GNU/Linux these days.
9682 2005-04-29 Paul Eggert <eggert@cs.ucla.edu>
9684 * doc/autoconf.texi (Autoconf Language): Add more description
9685 about quoting heuristics.
9686 (Limitations of Builtins): Describe "set -" problems.
9688 2005-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9690 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
9693 * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
9694 by AC_DEFINE; it was a mistake.
9695 From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
9697 2005-04-25 Stepan Kasal <kasal@ucw.cz>
9699 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
9701 2005-04-22 Stepan Kasal <kasal@ucw.cz>
9703 * doc/autoconf.texi (External Software): Quadrigraphs are not
9704 processed correctly in AS_HELP_STRING; avoid this in the examples.
9705 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
9706 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
9707 comment and reduce m4_default([foo], []) to [foo].
9708 (m4_strip): Update the explanation.
9710 2005-04-19 Paul Eggert <eggert@cs.ucla.edu>
9712 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
9713 Remove core.conftest.* too; it's generated by Tru64 5.1.
9714 Problem reported by Jennis Pruett.
9715 * lib/autoconf/functions.m4
9716 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
9717 Don't bother to remove core files; AC_RUN_IFELSE should do that
9720 2005-04-19 Stepan Kasal <kasal@ucw.cz>
9722 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
9724 2005-04-19 Alexandre Duret-Lutz <adl@gnu.org>
9726 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
9727 Report from Horst Wente.
9729 2005-04-15 Stepan Kasal <kasal@ucw.cz>
9731 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
9734 2005-04-14 Gregorio Guidi <greg_g@gentoo.org>
9736 * doc/autoconf.texi (External Software, Package Options): Add
9737 examples showing how to implement --with-* and --enable-* options.
9739 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
9741 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
9742 as well as configure.in. Problem reported by Gregorio Guidi.
9744 2005-04-10 Paul Eggert <eggert@cs.ucla.edu>
9746 * doc/autoconf.texi (Particular Functions): Use gnulib's current
9747 pattern for alloca snippet.
9749 2005-04-04 Stepan Kasal <kasal@ucw.cz>
9751 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
9753 2005-04-01 Stepan Kasal <kasal@ucw.cz>
9755 * doc/autoconf.texi (Generic Programs): Fix a typo.
9757 2005-04-01 Paul Eggert <eggert@cs.ucla.edu>
9759 * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
9760 fails if %s isn't supported. Problem reported by Ralf Wildenhues.
9762 2005-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9764 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
9765 Merge `-z option' as well for the benefit of Solaris link flags. Pass
9766 whole-archive (-zallextract, -zdefaultextract) options in the hope of
9767 unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported
9768 against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
9770 2005-03-22 Paul Eggert <eggert@cs.ucla.edu>
9772 * NEWS: The configure command now warns you if you attempt to use
9773 a directory whose name contains a special character like space,
9775 * doc/autoconf.texi (Installation Directory Variables): Allow
9776 "," in file names. Do not use \@; it's not a portable regexp.
9777 * bin/Makefile.am (edit): Likewise.
9778 * lib/Makefile.am (edit): Likewise.
9779 * tests/Makefile.am (edit): Likewise.
9780 * tests/semantics.at: Likewise.
9781 * tests/torture.at: Likewise.
9782 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
9783 * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
9784 * doc/autoconf.texi (File System Conventions): Warn about
9785 unportable file names.
9786 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
9788 (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
9789 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
9790 ac_pwd, and quote srcdir.
9791 * lib/autotest/general.m4 (AT_INIT): Quote file name args.
9793 * doc/autoconf.texi: Fix some systematic formatting problems.
9794 ".)" needs a following @: if not at the end of a sentence, and
9795 similarly for "!)". "etc." should be preceded by a comma.
9796 "n-th" -> "@var{n}th". pdksh is still buggy, so update its date.
9798 2005-03-22 Bruno Haible <bruno@clisp.org>
9800 * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
9801 argument is often called 'build-aux'.
9803 2005-03-07 Stepan Kasal <kasal@ucw.cz>
9805 * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
9806 macro AC_TRY_LINK is obsolete.
9807 (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
9810 2005-02-24 Stepan Kasal <kasal@ucw.cz>
9812 * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
9813 `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
9814 from a Common Lisp's `cl'.
9815 (AC_PROG_CXX): Behave according to the documentation: don't
9816 search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
9817 make the variable CCC precious; use `cl.exe', not `cl'.
9819 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
9820 Alexandre Duret-Lutz <adl@gnu.org>
9822 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
9823 /dev/null, as "configure" shouldn't read stdin, and this insulates
9824 us from problems (e.g., when testing for "cl"). Also, do this
9825 redirection before invoking "hostname" or "uname", and keep the
9826 original input stream available via...
9827 (AS_ORIGINAL_STDIN_FD): ... this new macro.
9828 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
9829 bother with "</dev/null" since it's now done at the top of
9831 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
9832 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9833 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
9834 * doc/autoconf.texi (File Descriptor Macros): New section.
9835 (Printing Messages): Mention it.
9836 * tests/base.at (Input/Output): New test.
9838 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
9840 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
9841 newline if neither \c nor -n work, as that would output two
9842 newlines. Prefer -n to \c. Reported by Stepan Kasal.
9844 2005-02-12 Stepan Kasal <kasal@ucw.cz>
9846 * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
9847 This causes that any required macros inside will get before the if.
9848 * doc/autoconf.texi (autom4te.cache): A typo.
9850 2005-02-12 Paul Eggert <eggert@cs.ucla.edu>
9852 Undo previous change, except keep the change to
9853 lib/autoconf/programs.m4 that replaced grep with shell
9854 pattern-matching. This is because net-snmp configure reads stdin.
9855 Reported by Noah Misch.
9857 2005-02-11 Paul Eggert <eggert@cs.ucla.edu>
9859 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
9860 from /dev/null, as "configure" shouldn't read stdin, and this
9861 insulates us from problems (e.g., when testing for "cl").
9862 Suggested by Alexandre Duret-Lutz. Also, do this redirection
9863 before invoking "hostname" or "uname".
9864 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
9865 _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
9866 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
9867 "</dev/null" since it's now done at the top of 'configure'.
9868 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
9869 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
9870 Also, replace grep with shell pattern-matching, to save a process.
9872 2005-02-10 Paul Eggert <eggert@cs.ucla.edu>
9874 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
9875 _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
9876 avoid thinking that Allegro Common Lisp's "cl" command is a C++
9879 2005-02-09 Paul Eggert <eggert@cs.ucla.edu>
9881 * doc/autoconf.texi (Limitations of Usual Tools): Document that
9882 grep -q isn't portable. Improve grep -s explanation.
9883 Problem reported by Dan Manthey.
9885 2005-02-08 Paul Eggert <eggert@cs.ucla.edu>
9887 * doc/autoconf.texi (Special Shell Variables): Clarify
9888 PATH_SEPARATOR wording; fix typo in IFS. Reported by Gary V. Vaughan.
9890 2005-02-07 Paul Eggert <eggert@cs.ucla.edu>
9892 * doc/autoconf.texi: Use @acronym for DJGPP.
9893 Fix some @code's that should have been @env's, and vice versa.
9894 Sort environment variable names.
9895 Mention that shells no longer inherit IFS.
9896 Don't recommend PATH_SEPARATOR=';' so strongly.
9897 Mention that $RANDOM might expand to the empty string.
9898 "symlink" and "soft link" -> "symbolic link".
9899 Improve mktemp description (reported by Bruno Haible).
9901 2005-02-05 Paul Eggert <eggert@cs.ucla.edu>
9903 * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
9904 * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
9906 * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
9909 2005-02-04 Paul Eggert <eggert@cs.ucla.edu>
9911 * NEWS: Mention AT_COPYRIGHT.
9913 * tests/local.at (AT_CMP): Use diff directly on input files rather
9916 * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
9917 /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
9919 2005-02-04 Noah Misch <noah@cs.caltech.edu>
9920 and Paul Eggert <eggert@cs.ucla.edu>
9922 * tests/autotest.at (Empty test suite): New test.
9923 * tests/torture.at (Substitute and define special characters)
9924 (Substitute a 2000-byte string, Define to a 2000-byte string)
9925 (Substitute a newline, Define a newline): New tests.
9927 2005-02-04 Noah Misch <noah@cs.caltech.edu>
9929 * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
9930 * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
9931 (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
9932 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
9933 (Standard regular expressions): New test.
9934 (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
9935 excess test name quoting.
9936 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
9937 CPPFLAGS to `configure' instead of setting it in `configure'.
9939 * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
9940 any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
9943 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
9944 s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
9946 * tests/local.at (AT_CMP): New macro.
9947 (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
9948 (AC_SAVE_STATE): Move environment grep...
9949 (AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
9950 (AT_CONFIG_CMP): New macro.
9951 (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
9952 * tests/c.at (Extensions): Do not exit early.
9953 * tests/atlocal.in: Inherit $GREP.
9955 * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
9956 (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
9958 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
9959 (AC_COPYRIGHT): Factor header comment portion out and move into...
9960 * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
9961 * lib/autotest/general.at (AT_COPYRIGHT): New macro.
9962 (AT_INIT): Add Autotest copyright notice. Display copyright notices in
9964 * tests/local.at: Add Autoconf test suite copyright notice.
9965 * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
9967 2005-02-04 Bruno Haible <bruno@clisp.org>
9968 and Paul Eggert <eggert@cs.ucla.edu>
9970 * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
9972 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
9974 * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
9975 this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
9977 Try not to generated lines of unlimited length, as POSIX places a
9978 2047-byte limit on line length of portable text files.
9979 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
9980 Use newline as a separator, not space.
9981 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
9982 (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
9985 2005-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9987 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
9988 as_func_*. Add test to check whether positional parameters
9989 are restored after function return.
9991 2005-02-02 Paul Eggert <eggert@cs.ucla.edu>
9993 * doc/autoconf.texi (Special Shell Variables): Mention _,
9994 BIN_SH, DUALCASE. Say that variables other than "status" are safe
9995 if they contain a lower-case letter. The DUALCASE problem was
9996 reported by Ralf Wildenhues.
9998 * bin/autoconf.as: Don't exit with status 0 after write failure
9999 with --help or --version.
10000 * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
10001 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
10003 2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10005 * doc/autoconf.texi (Limitations of Usual Tools):
10006 Unicos 9 sed limitations.
10007 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
10008 to get the option-enhanced interface on older Crays. Try ftn for
10009 Fortran 95 (newer Crays).
10011 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
10013 * man/Makefile.am (.x.1): Go back to the simple solution, but take
10014 care to echo the commands, so the user knows what's going on.
10015 Modified from a suggestion by Stepan Kasal.
10017 * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
10018 with a cross reference. Derived from a suggestion by Bruce Korb.
10020 2005-01-31 Paul Eggert <eggert@cs.ucla.edu>
10022 * doc/autoconf.texi (config.status Invocation): Warn about
10023 discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
10024 * doc/install.texi (Defining Variables): Likewise.
10025 Based on a proposed patch by Ralf Wildenhues.
10027 * man/Makefile.am (.x.1): Make sure the required generated files
10028 are up to date. Problem and original solution proposed by Stepan Kasal.
10029 $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
10030 implicit-man-prerequisites): New rules, used by the above.
10032 * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
10033 * config/config.guess, config/config.sub, config/install-sh: Likewise.
10034 * config/missing, config/texinfo.tex: Likewise.
10036 2005-01-29 Stepan Kasal <kasal@ucw.cz>
10038 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
10039 Update the long comment explaining it.
10041 m4_require no longer writes an ``is required by'' line to the
10042 execution stack. It contains only one bit of non-redundant
10043 information: that the macro was required, not called. And even
10044 this bit is useless in most situations: have you ever met a macro
10045 which both calls and requires the same macro?
10047 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
10048 (_m4_defun_pro_outer): ... only via this macro, for the outermost
10050 (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
10051 (m4_expansion_stack_pop): Remove the misplaced comment.
10052 (m4_require): Don't put the ``is required by'' line to the
10053 execution stack; slightly improve the out-of-a-defun error message.
10054 (_m4_divert_grow): New macro, counter for the temporary diversions.
10055 (_m4_require_call): Use it.
10056 * tests/m4sugar.at (m4_require): Expect output without the
10057 ``is required by'' messages.
10059 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10061 * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
10062 rather than x for expr.
10064 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
10066 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
10067 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10068 * lib/autotest/general.m4 (AT_INIT): Likewise.
10069 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
10070 * tests/mktests.sh: Likewise.
10072 2005-01-27 Akim Demaille <akim@epita.fr>
10074 Have autoheader honor --force.
10076 * doc/make-stds.texi, doc/standards.texi: Update from masters.
10077 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
10078 * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
10079 from masters, so that FileUtils.pm's update_file provide --force
10081 * bin/autoheader.in: Pass $force to update_file so that
10082 config.h.in is always recreated when --force.
10084 2005-01-24 Stepan Kasal <kasal@ucw.cz>
10086 * doc/autoconf.texi (Introduction): Update Peter Simons' address.
10088 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
10090 * doc/autoconf.texi (Limitations of Builtins): Clarify that
10091 "if test ! -d foo; ..." is portable. Suggested by Stepan Kasal.
10093 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10095 * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
10096 Warn about newline stripping in `` and $(). Update Solaris
10098 (Limitations of Builtins): Use expr "X...", not expr "x...", as
10099 X insulates us from future changes to Posix.
10100 (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
10103 2005-01-19 Stepan Kasal <kasal@ucw.cz>
10105 * doc/autoconf.texi (Defining Symbols): Delete the false comment that
10106 you cannot use AC_DEFINE to define macros containing `[' or `]'.
10108 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
10110 * doc/autoconf.texi (Limitations of Usual Tools): Document bug
10111 in Solaris 8 join. Problem reported by Tomohiro Suzuki on
10112 bug-tar mailing list.
10114 2005-01-05 Stepan Kasal <kasal@ucw.cz>
10116 * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
10118 2005-01-05 Paul Eggert <eggert@cs.ucla.edu>
10120 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
10121 ulongval to be static, to avoid unwanted GCC warning. Problem
10122 reported by Michael Jennings via Daniel Reed; see
10123 <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
10125 2005-01-05 Alexandre Duret-Lutz <adl@gnu.org>
10127 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
10128 docdir, htmldir, dvidir, pdfdir, psdir, and localdir. Update
10129 datadir, infodir, and mandir. Adjust argument parsing code.
10130 (_AC_INIT_HELP): Update help text.
10131 * doc/autoconf.texi (Installation Directory Variables): Document
10134 2005-01-04 Noah Misch <noah@cs.caltech.edu>
10136 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
10137 not seem to work, assume it does set $(MAKE).
10138 * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
10140 2005-01-03 Stepan Kasal <kasal@ucw.cz>
10142 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
10144 2005-01-03 Stepan Kasal <kasal@ucw.cz>
10146 A cleanup of the diversion support in m4sugar.
10148 * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
10149 (_m4_divert_n_stack): New macro; the expansion is
10150 <newline>m4_divert_stack, if m4_divert_stack is defined, and void
10152 (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
10153 (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
10154 stored in _m4_divert_diversion or _m4_divert_dump.
10155 (m4_divert_pop): When the parameter is given, compare the symbolic
10156 name with the last diversion pushed on the stack. Previously, the
10157 current diversion was compared with the numeric value of the
10158 diversion given as the parameter.
10159 (m4_require): If the macro hasn't been expanded yet, call ...
10160 (_m4_require_call): this new macro.
10162 2005-01-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10164 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
10165 Workarounds for documented `case' limitations.
10167 2005-01-03 Paul Eggert <eggert@cs.ucla.edu>
10169 * doc/autoconf.texi (Limitations of Usual Tools): Warn about
10170 sed 'command1;command2'. Problem reported by Ralf Wildenhues.
10172 2005-01-02 Paul Eggert <eggert@cs.ucla.edu>
10174 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
10175 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
10176 bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
10178 Patch from Roger Leigh (with some minor changes) as follows:
10179 * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
10180 Resurrect AC_PROG_CC_STDC.
10181 * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
10182 AC_PROG_CC_C89, AC_PROG_CC_C99.
10183 (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
10184 * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
10185 AC_PROG_CC_C99): New macros.
10186 (AC_PROG_CC_STDC): Use them.
10187 (_AC_PROG_CC_STDC): Remove.
10188 (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
10189 * THANKS: Add Roger Leigh.
10191 2004-12-30 Noah Misch <noah@cs.caltech.edu>
10193 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
10194 signals that the package uses Automake; a `Makefile.am' is typical but
10195 not essential. Reported by Magnus Therning.
10196 * tests/torture.at (autoreconf.): New banner.
10197 (autoreconf and non-AC configure): Rename to `Non-Autoconf
10198 AC_CONFIG_SUBDIRS'.
10199 (autoreconf an empty directory): Rename to `Empty directory'.
10200 (Unusual Automake input files): New test.
10202 2004-12-30 Noah Misch <noah@cs.caltech.edu>
10204 * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
10205 (AT_SETUP): Clear AT_capture_files.
10206 (_AT_CHECK): On failure, log each of AT_capture_files. Fix comment.
10207 (AT_KEYWORDS): Fix comment typo.
10208 * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
10209 * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
10210 * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
10212 2004-12-29 Albert Chin-A-Young <china@thewrittenword.com>
10214 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
10215 If the variable to set is already set, set ac_cv_path_$1
10216 to the preset value so caller can assume ac_cv_path_$1
10217 is available. (trivial change)
10219 2004-12-27 Noah Misch <noah@cs.caltech.edu>
10221 * BUGS (Minor Problems): Warn about makefile limitations.
10222 * Makefile.am: Find and update `INSTALL' in $(srcdir).
10223 * man/Makefile.am: Find and update manual pages in $(srcdir).
10225 2004-12-24 Eric Blake <ebb9@byu.net>
10227 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
10228 shells in subshell, to avoid noise from ash. (trivial change)
10230 2004-12-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10232 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10233 problems with SunOS ksh and backslash escaping, Bourne shells and
10234 closing brackets (both within character classes). Bug reported
10235 against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
10236 <read>: New entry. Mention non-availability of -r.
10238 2004-12-21 Akim Demaille <akim@epita.fr>
10240 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
10241 avoid cluttering displayed messages. Rather, prepend srcdir where
10242 AT_LINE is used for log files.
10244 2004-12-21 Stepan Kasal <kasal@ucw.cz>
10246 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
10247 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
10248 no longer part of the macro, quote the occurrence of ``$tmp''.
10249 * doc/autoconf.texi (Forbidden Patterns): Typo.
10251 2004-12-21 Akim Demaille <akim@epita.fr>
10253 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
10254 separated from the test title by forcing a white space.
10256 2004-12-21 Akim Demaille <akim@epita.fr>
10258 Enable Emacs navigation within testsuite.log files.
10260 * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
10261 use the compilation mode.
10262 (AT_LINE): Point to the srcdir.
10264 2004-12-19 Noah Misch <noah@cs.caltech.edu>
10266 * tests/Makefile.am (installcheck-local): Use $(bindir).
10267 (check-local, installcheck-local): Pass TESTSUITEFLAGS.
10268 * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
10269 Makefile.am scheme Autoconf now uses.
10271 2004-12-18 Noah Misch <noah@cs.caltech.edu>
10273 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
10274 * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
10276 2004-12-18 Noah Misch <noah@cs.caltech.edu>
10278 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
10279 (_AT_CHECK): Use it.
10280 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
10281 (AS_ESCAPE): Fix comment.
10282 * tests/autotest.at: Adjust section banner comments.
10283 (AT_CHECK_AT): Accept STATUS and STDERR.
10284 (AT_CHECK_AT_TEST): Likewise.
10285 (Invalid brace-enclosed parameter expansion)
10286 (Multiline command from M4 expansion)
10287 (Double-M4-quoted command): New tests.
10289 2004-12-17 Paul Eggert <eggert@cs.ucla.edu>
10291 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
10293 2004-12-17 Akim Demaille <akim@epita.fr>
10295 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
10297 Suggested by Alexandre Duret-Lutz.
10298 * doc/autoconf.texi (Setting Output Variables): Catch up.
10300 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10302 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
10304 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10306 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
10307 remove the comment which said we cannot.
10309 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10311 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
10312 Reini Urban and Paul Eggert for reporting the dependencies.
10314 * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
10315 * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
10316 (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
10318 2004-12-17 Stepan Kasal <kasal@ucw.cz>
10320 * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
10321 so that eg. ``autoscan --help'' doesn't truncate it.
10323 2004-12-15 Nicolas Joly <njoly@pasteur.fr>
10325 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
10326 generated conftest files.
10328 2004-12-13 Noah Misch <noah@cs.caltech.edu>
10330 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
10331 tracing on commands with possibly-escaped newlines.
10332 * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
10333 discontinued behavior and its implications.
10334 * tests/autotest.at (BS-newline in command, ^BS-newline in command)
10335 (BSx641-newline in command, BS-BS-newline in command)
10336 (BSx640-newline in command, Newline-CODE-BS-newline in command)
10337 (Single-quote-BS-newline in command)
10338 (Single-quote-newline-BS-newline in command): New tests.
10340 2004-12-13 Stepan Kasal <kasal@ucw.cz>
10342 * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
10343 on platforms where it works.
10344 (_AS_TEST_PREPARE): Test for ``test -x''.
10345 (_AS_BROKEN_TEST_PREPARE): Nuke.
10347 2004-12-13 Stepan Kasal <kasal@ucw.cz>
10349 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
10350 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
10351 give only 4-letter prefix to AS_TMPDIR, comment fixed.
10352 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
10353 create the temporary directory.
10354 (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
10356 2004-12-12 Kelley Cook <kcook@gcc.gnu.org>
10358 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
10361 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
10363 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
10365 2004-12-11 Noah Misch <noah@cs.caltech.edu>
10367 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
10368 to avoid using a negated character class. Reported by Nicolas Joly.
10369 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
10371 2004-12-10 Paul Eggert <eggert@cs.ucla.edu>
10373 * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
10374 autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
10375 Don't depend on .x file explicitly, since "make" does that for us.
10376 Suggested by Stepan Kasal.
10378 * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
10380 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
10381 ifnames): Factor common code. And they said it couldn't be done!
10383 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
10385 * bin/.cvsignore: Add autoconf.in.
10386 * tests/.cvsignore: Add wrapper.in.
10387 * lib/autotest/general.m4: Escape '$' in case pattern.
10389 2004-12-09 Noah Misch <noah@cs.caltech.edu>
10391 * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
10393 * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
10395 * tests/autotest.at: New file.
10396 * tests/suite.at: Include it.
10397 * tests/Makefile.am: Distribute it.
10399 * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
10400 shell tracing on a command that could contain multiple lines.
10401 * doc/autoconf.text: Document that fact and its implications.
10402 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
10403 * tests/autotest.at (Multiline backquote command substitution,
10404 Multiline parameter expansion, Literal multiline command,
10405 Multiline parenthetical command substitution): Remove XFAIL.
10407 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
10409 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
10410 and suggest AC_SEARCH_LIBS. Suggested by Noah Misch and Stepan Kasal.
10412 2004-12-08 Noah Misch <noah@cs.caltech.edu>
10414 * configure.ac (test suite): Cease to generate wrapper scripts.
10415 * configure: Regenerate.
10416 * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
10417 (m4f_dependencies): Adjust accordingly.
10418 * tests/Makefile.am (Wrappers): Generate wrapper scripts.
10419 (wrapper.in): Generate it in the build directory.
10420 (MAINTAINERCLEANFILES): Delete wrapper.in.
10421 (CLEANFILES): Add wrapper.in.
10422 * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
10423 the output. Replace each $as_me with a @wrap_program@.
10424 * tests/wrapper.in: Delete it; we always build it.
10426 * bin/Makefile.am (autoconf.in): Generate it in the build directory.
10427 (EXTRA_DIST): Remove autoconf.in.
10428 (CLEANFILES): Add autoconf.in.
10429 (autoconf): Find autoconf.in in the build directory.
10430 * bin/autoconf.in: Delete it; we always build it.
10432 2004-12-08 Noah Misch <noah@cs.caltech.edu>
10434 * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
10435 PATH members so as to not prepend an empty element. Move a comment.
10436 * Makefile.am (SUBDIRS): Build in `tests' last.
10437 * tests/Makefile.am (installcheck-local): Add check-local dependencies.
10439 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
10441 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
10442 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
10443 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
10444 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
10446 2004-12-07 Stepan Kasal <kasal@ucw.cz>
10448 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
10449 patch: extra "-l"s.
10451 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
10453 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
10454 looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
10455 * doc/autoconf.texi (Particular Functions): Mention new behavior.
10457 2004-12-03 Stepan Kasal <kasal@ucw.cz>
10459 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
10460 out the common code to ...
10461 (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
10462 value of the #define--default to 1, iff the macro was called
10463 with exactly one parameter.
10465 2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
10467 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
10468 "char c = '\200';" rather than "char c = 0x80;" as the
10469 latter doesn't conform to the strict C standard due to
10470 overflow on signed char hosts.
10472 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
10473 to -qlanglvl=ansi. We don't want to disable extensions.
10475 2004-11-29 Paul Eggert <eggert@cs.ucla.edu>
10477 * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
10478 (Using Autotest, testsuite Scripts, Writing testsuite.at):
10479 Reword slightly to avoid some English-language problems noted
10480 by Ralf Wildenhues in:
10481 http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
10483 2004-11-29 Stepan Kasal <kasal@ucw.cz>
10485 * NEWS: Add ^L above each release.
10487 2004-11-28 Paul Eggert <eggert@cs.ucla.edu>
10489 Fix documentation problems reported by Russ Boylan in
10490 <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
10491 along with some nearby cruft.
10492 * doc/autoconf.texi (Libtool): Libtool can be used without
10493 Automake (not without Autoconf).
10494 (Introduction): Mention lists.gnu.org.
10495 * BUGS: Don't mention bugs.gnu.org.
10496 Remove mention of ancient libtool compatibility problem.
10497 * NEWS: Mention that bugs.gnu.org is kaput.
10498 * README: Likewise. Mention where mailing list archives can be found.
10500 2004-11-28 Stepan Kasal <kasal@ucw.cz>
10502 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
10504 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
10506 * doc/autoconf.texi (Pretty Help Strings): Go back to
10507 single-quoting assignments to cache variables.
10509 2004-11-23 Stepan Kasal <kasal@ucw.cz>
10511 * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
10512 with the examples; fix the bug in MY_ARG_WITH example reported
10513 by Alexandre Duret-Lutz.
10514 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
10515 expansion of $1 in the comment emitted to configure.
10517 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
10519 * doc/autoconf.texi (Pretty Help Strings): Fix typo
10520 in my editing of the previous patch. Problem reported
10521 by Alexandre Duret-Lutz.
10523 2004-11-22 Stepan Kasal <kasal@ucw.cz>
10525 * doc/autoconf.texi (Autoconf Language): Explain that
10526 ``descriptions'' may not be double quotes.
10527 (Quotation Rule Of Thumb): Likewise.
10528 (Pretty Help Strings): Likewise; remove the wrong comment;
10529 simplify the examples and improve their quoting.
10531 2004-11-13 Stepan Kasal <kasal@ucw.cz>
10533 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
10534 the $1_found variable, don't test whether the file is executable;
10535 Both things are checked ...
10536 (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
10537 the former ``test -f''.
10538 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
10540 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
10542 * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
10545 2004-11-10 Derek R. Price <derek@ximbiot.com>
10547 * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
10548 limitations. Reorder paragraphs for clarity.
10550 2004-10-11 Paul Eggert <eggert@cs.ucla.edu>
10552 * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
10553 to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
10554 variants", "Unix", and some related minor wording fixups.
10556 (Shellology, Special Shell Variables): Document that the Zsh
10557 problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks
10558 to Alexandre Duret-Lutz for this info.
10560 2004-10-10 Alexandre Duret-Lutz <adl@gnu.org>
10562 * doc/autoconf.texi (One-Shot Macros): New node.
10564 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
10566 * doc/autoconf.texi (Function Portability): Fix misdescription
10567 of putenv. Problem reported by Michael Wardle.
10569 2004-09-22 Paul Eggert <eggert@cs.ucla.edu>
10571 * doc/autoconf.texi (auindex): New macro.
10572 (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
10573 Problem reported by Stepan Kasal.
10575 2004-09-05 Paul Eggert <eggert@cs.ucla.edu>
10577 Fix problems reported by Andreas Buening in:
10578 http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
10579 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
10581 * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
10582 readable; it's not true in OS/2-emx.
10584 2004-09-04 Paul Eggert <eggert@cs.ucla.edu>
10586 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
10587 "/usr/include", clear ac_x_includes instead of leaving it as "no"
10588 (trivial change). Problem and patch reported by Andrew Church in:
10589 http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
10591 2004-09-03 Paul Eggert <eggert@cs.ucla.edu>
10593 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
10594 three args in examples. Problem reported by Frederik Fouvry in:
10595 http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
10596 Also, fix some minor spacing and punctuation bugs.
10598 2004-09-02 Akim Demaille <akim@epita.fr>
10600 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
10601 "case" to restore ordering.
10602 Reported by Stepan Kasal.
10604 2004-08-26 Akim Demaille <akim@epita.fr>
10606 * doc/autoconf.texi: Minor typos and stylos.
10608 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
10610 * configure.ac (AC_INIT): Bump to 2.59c.
10612 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
10616 * README: Add advice about m4 1.4.2.
10618 * Makefile.cfg (wget_files): Remove config.guess, config.sub,
10619 texinfo.tex for now (done by hand now).
10620 * Makefile.maint (wget_files, cvs_files):
10621 Remove ansi2knr.c; nobody uses it.
10622 (ansi2knr.c-url_prefix): Remove.
10623 (cvs-update): Fix test for failure. I don't know why it ever
10626 * doc/autoconf.texi: Update URLs, some of which went stale.
10627 Use @uref rather than @href.
10629 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
10630 handle "--" as per POSIX. Suggested by Paul Pogonyshev.
10632 * config/config.guess, config/config.sub, config/elisp-comp,
10633 config/install-sh, config/mkinstalldirs, config/texinfo.tex,
10634 doc/fdl.texi, doc/standards.texi: Sync with master copy.
10636 * NEWS, TODO, configure.ac, bin/autoscan.in,
10637 bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
10638 doc/install.texi, lib/Autom4te/Configure_ac.pm,
10639 lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
10640 lib/autoconf/programs.m4, lib/autoconf/status.m4,
10641 lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
10642 lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
10643 tests/tools.at, tests/torture.at:
10644 Use "file name" rather than "filename" or "path",
10645 to be consistent with the terminology of the GNU coding standards.
10647 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
10649 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
10650 AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
10651 HP-UX 11.23 cc/aCC or Tru64 4.0 cc. Problem reported by Noah Misch in
10652 <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
10654 More fixes to support spaces in the name of the build directory.
10655 This isn't a complete fix but it's an improvement.
10657 * bin/autoconf.as (autom4te_options): New var.
10658 Use it instead of appending to AUTOM4TE, so that we can allow
10659 spaces in the build directory's absolute name.
10660 * bin/autoheader.in ($autoconf): Allow spaces in file names.
10661 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
10662 AT_CHECK_NOESCAPE): Likewise.
10663 * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
10664 main program): Likewise.
10666 2004-08-18 Paul Eggert <eggert@cs.ucla.edu>
10668 * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
10669 From Ralf Corsepius in:
10670 http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
10672 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
10674 * doc/autoconf.texi (Function Portability): Document isinf and
10675 and isnan. From a suggestion by Kevin Ryde.
10677 * lib/Autom4te/General.pm (END): Return correct exit status even
10678 if unlink succeeds and sets $?. Needed with Solaris 8's perl 5.00503.
10680 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
10682 * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
10683 for compatibility with Automake 1.4. Reported by J C Fitzgerald in
10684 <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
10686 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
10688 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
10689 (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
10690 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
10691 * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
10692 * lib/autom4te.in (Automake-preselections): Preselect
10693 AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
10695 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
10697 * lib/autom4te.in (Automake-preselections): Preselect
10698 AC_CANONICAL_BUILD and AC_CANONICAL_TARGET. Automake 1.9.1 will
10701 2004-07-29 Paul Eggert <eggert@cs.ucla.edu>
10703 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
10705 * doc/autoconf.texi (Shellology): Mention BIN_SH.
10706 Document problem with "`""`" in pdksh POSIX mode.
10708 2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
10710 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
10711 with pdksh, too. Problem reported by Patrick Welche via
10713 * doc/autoconf.texi (Shellology): Note that set -o posix is
10714 useful for pkdsh, too.
10716 2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
10718 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
10719 _AS_UNSET_PREPARE, so that we can use $as_unset directly.
10720 Don't fail if ENV or BASH_ENV is readonly.
10721 (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
10722 etc. are read only. Problem reported by Ludovic Courtes.
10724 2004-06-23 Noah Misch <noah@cs.caltech.edu>
10726 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
10727 zsh, disable GLOB_SUBST to avoid backslash handling problems.
10730 2004-06-04 Paul Eggert <eggert@cs.ucla.edu>
10732 * doc/autoconf.texi (File System Conventions): Warn about
10733 names like "aux". Problem reported by Eric Blake.
10735 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
10736 by zero instead of array size, so that we can use any arithmetic
10737 constant expression (instead of requiring an integer constant
10738 expression). This allows us to test expressions like DBL_MAX <
10739 LDBL_MAX, which didn't conform to the C standard using the old
10741 (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
10742 now that we can do floating-point tests at compile time.
10744 2004-06-02 Paul Eggert <eggert@cs.ucla.edu>
10746 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
10747 and LDBL_EPSILON, as the resulting expression isn't an
10748 integer constant expression and violates the C standard.
10749 Problem reported by Nelson H. F. Beebe. Also, check
10750 for "L" suffix, and check that long double doesn't have
10751 worse range or precision than double, that mixed-mode
10752 arithmetic doesn't generate a diagnostic, that double
10753 constants fit in long double.
10755 2004-06-03 Kevin Ryde <user42@zip.com.au>
10757 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
10758 malloc(0) and realloc(NULL,size).
10760 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
10763 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
10765 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
10766 in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
10769 2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
10771 * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
10772 can be rewritten using if-then-else. Suggested by Bruno Haible.
10774 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
10776 * doc/autoconf.texi (testsuite Scripts): Fix typo.
10777 Problem reported by Stepan Kasal.
10779 2004-05-24 Paul Eggert <eggert@cs.ucla.edu>
10781 * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
10782 change). Patch reported by Ralf Wildenhues in
10783 <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
10785 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
10786 function F exists if the compiler and linker let you compile an
10787 expression like (F != 0). Recent versions of GCC optimize away
10788 the reference to F in that case, since every function address must
10789 be nonzero, so the link succeeds even if F does not exist.
10790 Problem reported by Manu in
10791 <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
10793 * doc/autoconf.texi (Systemology): Standardize on the spelling of
10794 "Unix". Many uses changed.
10795 (Limitations of Builtins): Explain better why the ! command isn't
10798 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
10800 * lib/autom4te.in (Automake-preselections): Preselect
10801 LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
10803 2004-05-19 Kevin Ryde <user42@zip.com.au>
10805 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
10806 referencing AC_FUNC_STRERROR_R.
10808 * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
10809 note pessimistic assumption when cross compiling.
10811 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
10813 * doc/autoconf.texi (Limitations of Make): Note that BSD make
10814 (until 2004) invoked subcommands with sh -e, contra POSIX.
10815 Reported by Kevin Ryde.
10817 2004-05-10 Eric Sunshine <sunshine@sunshineco.com>
10819 * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
10820 _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
10821 " $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
10822 `test -f " /usr/bin/grep"', which _always_ failed.
10823 (AC_PROG_SED): Ditto bogus PATH fix.
10824 * autoconf.texi (AC_PROG_GREP): Properly document that this macro
10825 requires that grep correctly supports _multiple_ `-e' options, rather
10826 than stating only that grep should accept `-e'.
10828 2004-05-03 Paul Eggert <eggert@cs.ucla.edu>
10830 Port to C99, which requires that 'exit' be declared.
10832 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
10833 to ensure that stdlib.h is included.
10834 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
10835 AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
10836 _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
10837 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10838 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
10839 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
10840 when using 'exit' in a test; C99 requires that 'exit' be declared.
10842 2004-05-02 Paul Eggert <eggert@cs.ucla.edu>
10844 * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
10845 now prefers 'grep' implementations that accept -e.
10846 (Limitations of Usual Tools): Describe problems of traditional
10847 egrep and fgrep with long input lines, and of traditional grep
10849 * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
10850 (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
10851 All callers changed. Append /usr/xpg4/bin to the PATH, for
10853 (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
10854 the user with complaints about multiple -e options.
10855 * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
10856 Define it with AC_PROG_GREP.
10857 * configure.ac (AC_PROG_GREP): Add.
10858 * lib/freeze.mk (GREP): New macro.
10860 2004-05-02 Eric Sunshine <sunshine@sunshineco.com>
10862 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
10863 a possible candidate only after all others fail, rather than
10864 consulting it first. This improves backward compatibility by
10865 better reflecting the way shell selection occurred in previous
10866 versions of Autoconf, and should help to avoid triggering latent
10867 problems in other packages, such as the one in Automake where zsh
10868 is not handled robustly:
10869 http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
10870 Although it is not Autoconf's responsibility to work around
10871 problems in Automake, it nevertheless makes sense to avoid
10872 introducing unnecessary incompatibilites.
10874 2004-04-22 Albert Chin-A-Young <china@thewrittenword.com>,
10875 Gary V. Vaughan <gary@gnu.org>
10877 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
10878 how deeply nested we are when a suitable tool is found, set the
10879 ac_path_TOOL_found flag.
10880 (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
10881 nested we are in this macro. Break out of all 3 nested loops if
10882 ac_path_TOOL_found is set.
10884 2004-04-21 Gary V. Vaughan <gary@gnu.org>
10886 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
10887 of the _AS_PATH_WALK loop too if GNU flavor is found.
10889 2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
10891 * doc/autoconf.texi (Limitations of Make): Update documentation
10892 for `$<'. New entry `Long lines', based on a report from Simon
10893 Josefsson. Augment the documentation for SHELL = @SHELL@ with a
10894 paragraph about DJGPP, based on a mail from Richard Dawe.
10896 2004-04-20 Paul Eggert <eggert@twinsun.com>
10898 * tests/c.at (C keywords): Don't assume that GCC supports
10899 "restrict" and "inline", as sufficiently-old GCC versions do not
10900 (also, GCC configured to be in pedantic C89 mode does not).
10901 Problem reported by Sumit Pandya in:
10902 http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
10904 * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
10905 consider -g to work if it generates warnings when plain compiles
10906 don't. Problem reported by Braden McDaniel in:
10907 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
10909 * doc/autoconf.texi (Slashes): New section, to document a problem
10910 reported by Jim Meyering in:
10911 http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
10913 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
10914 linker output files before linking, to work around IRIX 6 linker bug.
10915 Problem reported by Rainer Orth in:
10916 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
10918 2004-04-20 Gary V. Vaughan <gary@gnu.org>
10920 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
10921 best tool so far counter rely on the tool path variable name to
10922 avoid checks for one tool being affected by the results of running
10923 the length check on a previous tool.
10925 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
10926 match expression argument, as different greps have different
10927 regular expression flavours.
10928 (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
10930 (AC_PROG_EGREP): Pass 'EGREP$'.
10931 (AC_PROG_GREP): Pass 'GREP$'.
10933 2004-04-20 Albert Chin-A-Young <china@thewrittenword.com>
10935 * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
10936 is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
10938 2004-03-29 Paul Eggert <eggert@twinsun.com>
10940 * doc/autoconf.texi (Particular Headers, Particular Types, Generic
10941 Types, Specific Compiler Characteristics, System Services,
10942 Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
10943 etc. consistently instead of 'long', 'short', 'unsigned' etc.
10944 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
10945 * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
10947 * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
10948 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
10949 AC_TYPE_OFF_T): Likewise.
10950 * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
10953 * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
10954 pacify libtool 1.5.2. Fix quoting problems in sed command.
10956 2004-03-28 Paul Eggert <eggert@twinsun.com>
10958 * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
10959 now defines HAVE_DECL_TZNAME if it is declared, when
10960 HAVE_STRUCT_TM_TM_ZONE is not defined.
10961 * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
10962 Do not assume atoi. Rely on HAVE_DECL_TZNAME when testing
10965 2004-03-28 Steven G. Johnson <stevenj@fftw.org>
10967 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
10968 superfluous backslashing of quotes (") in sed expressions;
10969 thanks to Paul Eggert.
10971 2004-03-26 Steven G. Johnson <stevenj@alum.mit.edu>
10973 * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
10974 Fortran compiler is ifort, also added pghpf; thanks to Nelson
10975 H. F. Beebe for the bug report.
10977 2004-03-26 Steven G. Johnson <stevenj@fftw.org>
10979 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
10980 quoted -cmdline argument in Portland Group compiler (bug
10981 reported by Jeffrey J. Barteet).
10983 2004-03-25 Kevin Ryde <user42@zip.com.au>
10985 * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
10986 (Run Time): ... here, where it's now mentioned.
10988 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
10990 * doc/autoconf.texi (autom4te Invocation): Language Autoconf
10991 inherits from language Autoconf-without-aclocal-m4.
10992 (Customizing autom4te): Adjust example; the cache must now be
10993 disabled for language Autoconf-without-aclocal-m4.
10995 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10996 Nathanael Nerode <neroden@twcny.rr.com>
10998 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
10999 AC_CHECK_TOOLS): Warn if a cross-tool is found without
11001 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11002 AC_CHECK_TARGET_TOOLS): New macros.
11003 * doc/autoconf.texi (Generic Programs): Document
11004 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11005 AC_CHECK_TARGET_TOOLS, and warn for future changes
11006 in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
11008 (Specifying Names): Document the reason for these future
11009 behavioral changes.
11010 * tests/mktests.sh: Do not generate tests for the
11012 * NEWS: Document these changes.
11014 * doc/autoconf.texi: Avoid macros with unbraced arguments,
11015 they make TeX hang up.
11017 2004-03-15 Paul Eggert <eggert@bogus.example.com>
11019 * NEWS: New macro AC_CHECK_ALIGNOF.
11020 * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
11021 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
11022 int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
11024 (AC_CHECK_ALIGNOF): New macro.
11025 * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
11026 * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
11029 2004-03-03 Paul Eggert <eggert@twinsun.com>
11031 * bin/Makefile.am (edit): Don't use $< in a context where
11032 POSIX doesn't require support for it. Use $@.in instead.
11033 Problem reported by Anthony N. Frasso in
11034 <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
11035 * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
11037 2004-02-23 Gary V. Vaughan <gary@gnu.org>
11039 * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
11040 from the next generation of Libtool.
11041 * lib/autom4te.in (Autoreconf-preselections): Ditto.
11043 2004-02-20 Alexandre Duret-Lutz <adl@gnu.org>
11045 * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
11046 is not always thread-safe. Report from Nathanael Nerode.
11048 2004-02-18 Paul Eggert <eggert@twinsun.com>
11050 Fix a dependencies problem, stemming from a Autoconf 2.59 build
11051 problem on QNX reported by Stephen Rasku in
11052 <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
11054 * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
11055 $(m4sh_m4f_dependencies); this removes a FIXME.
11056 * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
11057 (MAINTAINERCLEANFILES): Split into pieces,
11058 one per related section. Add $(srcdir)/wrapper.in.
11060 2004-02-09 Paul Eggert <eggert@twinsun.com>
11062 * doc/autoconf.texi (Setting Output Variables): Emphasize that
11063 AC_SUBST provides no portable way to escape literal newlines.
11065 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
11066 flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
11067 Darwin uses -lcrt2.o and there's little point to cataloging all
11068 the system variants. Partial fix reported by Andreas Waechter in:
11069 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
11070 for bug reported by Nelson H. F. Beebe in:
11071 http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
11073 2004-02-04 Paolo Bonzini <bonzini@gnu.org>
11075 * doc/autoconf.texi (AU_DEFUN): Fix English,
11076 suggested by Paul Eggert.
11077 * lib/autoconf/autoupdate.m4: Correct reference to
11078 acobsolete.m4, suggested by Alexandre Duret-Lutz.
11080 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
11082 * bin/autoupdate.in: Define __file__ so that warnings
11083 refer to the correct file.
11084 * doc/autoconf.texi (AU_DEFUN): Describe more correctly
11085 the behavior of the third argument.
11086 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
11087 correctly the behavior of the third argument. Document
11088 what the three macros that AU_DEFUN defines do. Fix
11089 warning message when the third argument includes $0
11090 (reported by Alexandre Duret-Lutz).
11092 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
11093 Eric Sunshine <sunshine@sunshineco.com>
11094 Paul Eggert <eggert@twinsun.com>
11096 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
11097 (AS_INIT): Output shell initialization there. Removed optional
11098 parameter. Expand _AS_SHELL_FN_SPY.
11099 (AS_INIT_WITH_SHELL_FN): Removed.
11100 (_AS_SHELL_FN_SPY): New macro.
11101 (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
11103 (AS_SHELL_SANITIZE): Remove loop to find better shell
11104 and documentation for the parameter.
11105 (_AS_DETECT_BETTER_SHELL): Move it here.
11106 (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
11107 (_AS_RUN): Move it here, support testing with eval.
11108 (AS_REQUIRE_SHELL_FN): Require shell functions when
11110 (_AS_LINENO_WORKS): Put around braces, we do not
11111 trigger the bash bug anymore.
11112 * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
11113 use AS_INIT_WITH_SHELL_FN.
11114 * bin/autoconf.in, tests/wrapper.in: Regenerated.
11116 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
11118 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
11119 * doc/autoconf.texi: Don't say that the third parameter
11121 * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
11122 (AU_DEFUN): Honor the third parameter, create autoupdate
11123 macros with AU_DEFINE.
11124 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
11125 AC_DIR_HEADER): Use AU_DEFUN's third parameter.
11126 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
11127 * lib/autoconf/programs.m4 (AC_RSH): Likewise.
11128 * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
11129 AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
11130 AC_XENIX_DIR): Likewise.
11131 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
11132 AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
11133 * lib/autoconf/status.m4: Remove FIXME.
11134 * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
11135 that the macro is not present anymore in the updated
11137 * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
11140 2004-01-28 Paul Eggert <eggert@twinsun.com>
11142 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
11144 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
11145 2003 (except 1997) to the list of copyright years. This undoes
11146 the 2003-05-22 change, which removed the older years from the list.
11147 * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
11149 2004-01-27 Gary V. Vaughan <gary@gnu.org>
11150 Albert Chin-A-Young <china@thewrittenword.com>
11152 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
11153 grep or ggrep program in PATH that accepts as long lines as
11155 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
11157 (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
11158 egrep and fgrep respectively if $GREP -E/-F don't work.
11159 (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
11160 _AC_PROG_GREP, and AC_PROG_SED.
11161 (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
11162 longest input length accepted by a command.
11163 (AC_PROG_SED): Use it.
11164 * doc/autoconf.texi (Particular Programs): Document the changes.
11167 2004-01-27 Paul Eggert <eggert@twinsun.com>
11169 * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
11170 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11171 bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
11172 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
11174 * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
11175 bin/autoconf.in, config/Makefile.in, config/config.guess,
11176 config/config.sub, config/install-sh, config/mdate-sh,
11177 config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
11178 lib/Makefile.in, lib/Autom4te/Makefile.in,
11179 lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
11180 lib/autotest/Makefile.in, lib/emacs/Makefile.in,
11181 lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
11182 man/autoheader.1, man/autom4te.1, man/autoreconf.1,
11183 man/autoscan.1, man/autoupdate.1, man/config.guess.1,
11184 man/config.sub.1, man/ifnames.1, tests/Makefile.in,
11185 tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
11186 tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
11187 tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
11188 tests/actypes.at: Regenerate and/or sync with original
11191 2004-01-26 Paul Eggert <eggert@twinsun.com>
11193 * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
11194 HAVE_INTTYPES_H is defined. This is needed on Tru64 5.1b with
11195 Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
11196 not <inttypes.h>. Problem reported by Tim Mooney in
11197 <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
11198 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
11201 * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
11202 otherwise "make check" fails because it forbids cmp (I guess
11203 because cmp treats files as binary on DOS-like systems).
11205 * tests/mktests.sh: Update copyright date to 2004, since some tests
11206 have changed in 2004.
11208 2004-01-23 Gary V. Vaughan <gary@gnu.org>
11210 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
11211 non-truncating sed or gsed program in PATH.
11212 * tests/acprograms.at: Add it.
11213 * doc/autoconf.texi (Particular Programs): Document it.
11216 2004-01-15 Paul Eggert <eggert@twinsun.com>
11218 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
11219 -std1 disables some useful extensions on Tru64. Problem reported
11220 by N. Lichtmaier in
11221 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
11223 2004-01-14 Paul Eggert <eggert@twinsun.com>
11225 * doc/autoconf.texi (Programming in M4sh): Document that
11226 AS_MKDIR_P succeeds if the destination is a symbolic link
11227 to an existing directory.
11228 (Limitations of Usual Tools): Note that mkdir -p might not
11229 succeed on symlinks to directories.
11231 2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
11233 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
11234 * bin/autoheader.in: Grammar fix in message.
11235 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
11236 Test for dir before calling mkdir -p. (trivial changes)
11238 2004-01-13 Eric Blake <ebb9@byu.net>
11240 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
11241 AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/. (trivial change)
11243 2004-01-10 Jim Meyering <jim@meyering.net>
11245 * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
11247 2004-01-09 Paul Eggert <eggert@twinsun.com>
11249 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
11250 with `autoconf -Wall,error'. Bug reported by Eric Blake in:
11251 http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
11252 (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
11253 AC_COMPILE_IFELSE, since we now assume our caller invokes
11254 AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
11255 (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
11256 of AC_RUN_IFELSE; this avoids the warning mentioned above.
11257 (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
11259 2004-01-07 Paul Eggert <eggert@twinsun.com>
11261 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
11262 `"'...'"`, as it's confusing (and I suspect it may not work on
11263 some platforms). The code was incorrect anyway, as it assumed
11264 that \$ evaluated to itself in that context. Reported by
11265 Alexandre Duret-Lutz.
11267 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
11269 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
11270 and _LT_AC_TAGCONFIG.
11272 2004-01-06 Paul Eggert <eggert@twinsun.com>
11274 * doc/autoconf.texi (One Macro Call): Fix an incorrect
11275 example, and add more examples. Reported by Eric Sunshine.
11277 2004-01-05 Paul Eggert <eggert@twinsun.com>
11279 * doc/autoconf.texi (Limitations of Usual Tools):
11280 Remove warning against "rm -fr" introduced yesterday; it
11283 * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
11284 autoscan, autoupdate, ifnames): Don't use chmod -w.
11285 * lib/Makefile.am (autom4te.cfg): Likewise.
11286 * doc/autoconf.texi (Limitations of Usual Tools): Warn against
11289 2004-01-04 Paul Eggert <eggert@twinsun.com>
11290 Paolo Bonzini <bonzini@gnu.org>
11292 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
11293 by doing lineno substitution only on lines containing "$LINENO".
11295 2004-01-04 Paul Eggert <eggert@twinsun.com>
11297 * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
11298 Use "rm -f" to remove conftest.sed, not plain "rm".
11299 Bug reported by David Relson in
11300 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
11302 * Makefile.am (autom4te-update):
11303 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
11304 * Makefile.maint (my-distcheck, do-po-update): Likewise.
11305 * doc/autoconf.texi (Guidelines): Likewise.
11306 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
11307 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
11308 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
11309 * lib/autotest/general.m4 (AT_INIT): Likewise.
11310 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
11311 * tests/Makefile.am (clean-local): Likewise.
11312 * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
11314 * doc/autoconf.texi (Limitations of Usual Tools):
11315 Warn against "rm -fr".
11317 2004-01-03 Paul Eggert <eggert@twinsun.com>
11319 * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
11320 -c -o might not work. From a suggestion by Kevin Ryde.
11321 (C Compiler, Generating Sources, Limitations
11322 of Usual Tools, Limitations of Make, Making testsuite Scripts):
11323 Don't put '-o' after non-options, as POSIX doesn't allow this.
11324 Mention that cc's name might be gcc or c89 or whatever.
11326 2004-01-04 Kevin Ryde <user42@zip.com.au>
11328 * doc/autoconf.texi: Add various further index entries.
11330 2003-12-29 Paul Eggert <eggert@twinsun.com>
11332 * bin/autoreconf.in (autoreconf_current_directory):
11333 Fix typo: mkdir without umask arg.
11335 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
11337 * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
11338 Documents OSF1/Tru64 make behavior. Replace `VPATH = ../src' by
11339 `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
11340 explanation clearer.
11342 2003-12-24 Andreas Schwab <schwab@suse.de>
11344 * doc/autoconf.texi (Default Includes): Fix misspelling of
11345 AC_INCLUDES_DEFAULT.
11347 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
11349 * configure.ac: Test if sh -n works.
11350 * configure: Regenerate.
11351 * tests/atlocal.in: Store the result here.
11352 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
11353 tools.at, looking in atlocal's ac_cv_sh_n_works instead
11354 of explicitly testing.
11355 (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
11356 (AT_CHECK_AUTOCONF): Test for the configure script syntax.
11357 * tests/tools.at (Syntax of the shell scripts): Simplify
11358 using AT_CHECK_SHELL_SYNTAX.
11359 (Syntax of the Perl scripts): Remove definition of
11360 AT_CHECK_PERL_SYNTAX.
11362 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
11364 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
11365 stderr to /dev/null.
11366 * bin/autoconf.in: Regenerate.
11367 * bin/wrapper.in: Regenerate.
11369 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
11371 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
11372 Extracted from AS_SHELL_SANITIZE.
11373 (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
11375 (AS_SHELL_SANITIZE): Move reinvocation code from
11376 _AS_LINENO_WORKS, use it to find out if shell
11378 (_AS_LINENO_WORKS): Don't find another shell if $LINENO
11380 (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
11381 (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
11383 * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
11384 * bin/autoconf.in: Regenerate.
11385 * tests/wrapper.in: Regenerate.
11386 * tests/tools.at: Test the syntax of tests/autoconf
11387 and tests/testsuite.
11389 2003-11-24 Akim Demaille <akim@epita.fr>
11391 * config/announce-gen (&print_locations, &print_signatures)
11394 No longer rely on Gnus to inline the list of signatures: compute
11397 2003-11-24 Akim Demaille <akim@epita.fr>
11399 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
11400 override some files.
11401 (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
11402 From Debian Autoconf 2.58.
11404 2003-11-24 Akim Demaille <akim@epita.fr>
11406 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
11408 From Debian Autoconf 2.58.
11410 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
11412 * TODO: Remove already done things. Update the part about finding
11413 tools for the target.
11415 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
11417 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
11418 Make wording more consistent.
11419 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
11420 Explain the transition better.
11421 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
11422 the transition better.
11424 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
11426 * doc/autoconf.texi (Obsoleting Macros): Don't document the third
11427 parameter of AU_DEFUN.
11428 * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
11429 (AU_DEFUN): Remove the third parameter, it was not used.
11430 Use AC_DEFUN directly, not AU_DEFINE.
11431 * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
11432 the expanded body, consistently with other macros such as AC_USG.
11434 2003-11-17 Paul Eggert <eggert@twinsun.com>
11436 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
11437 into the initial confdefs.h, to work around a bug in NextStep 3.3
11438 patch 3 reported by Eric Sunshine.
11440 2003-11-15 Kevin Ryde <user42@zip.com.au>
11442 * doc/autoconf.texi (Using System Type): Revise, showing $host rather
11443 than $target since the latter is not usual, add guidelines on when to
11444 use or not use the system type.
11446 2003-11-12 Derek Price <derek@ximbiot.com>
11448 * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
11449 typo misrepaired by an auto-spellcheck.
11451 2003-11-12 Akim Demaille <akim@epita.fr>
11453 * bin/autoreconf.in (&parse_args): Don't call automake with
11454 --force-missing unless it actually supports it.
11455 From Debian #219336.
11457 2003-11-12 Akim Demaille <akim@epita.fr>
11459 * configure.ac: Bump to 2.59a.
11462 2003-11-06 Akim Demaille <akim@epita.fr>
11466 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
11468 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
11469 so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
11470 and ac_abs_top_srcdir are absolute paths.
11471 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
11473 2003-11-05 Akim Demaille <akim@epita.fr>
11475 * configure.ac: Bump to 2.58a.
11477 2003-11-05 Kevin Ryde <user42@zip.com.au>
11479 * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
11480 it provokes a warning from makeinfo about looking like a cross
11481 reference in info output.
11483 * doc/autoconf.texi (Function Portability): Add notes on signal
11484 handler return type, as per AC_TYPE_SIGNAL.
11486 2003-11-04 Akim Demaille <akim@epita.fr>
11489 * doc/standards.texi: Update from master.
11491 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
11493 2003-11-04 Akim Demaille <akim@epita.fr>
11495 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
11496 computing the absolute path to d1 in the source hierarchy: it may
11497 not exist at all. So don't cd into it.
11498 From Alexandre Duret-Lutz.
11499 http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
11501 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
11502 From Paul Eggert, but named after Perl's IO::Spec->catfile.
11503 * doc/autoconf.texi (Programming in M4sh): Document.
11504 * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
11506 2003-11-03 Pavel Roskin <proski@gnu.org>
11508 * doc/autoconf.texi (Generic Structure Checks): Describe
11509 action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
11511 2003-10-31 Akim Demaille <akim@epita.fr>
11513 * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
11514 (GNU Fortran): New.
11515 * doc/autoconf.texi (Language Choice): Document.
11516 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
11517 the current language is Fortran.
11519 2003-10-31 Akim Demaille <akim@epita.fr>
11521 * bin/autom4te.in (&freeze): Use a less likely warning separator
11522 than `\n\n', so that `\n\n\n' is valid in warnings.
11523 Reported by Steve Huston.
11525 2003-10-28 Akim Demaille <akim@epita.fr>
11527 * Makefile.cfg (local_updates, executable-update): Tweak to be
11528 robust to parallel makes.
11529 Suggested by Alexandre Duret-Lutz.
11531 2003-10-27 Akim Demaille <akim@epita.fr>
11533 * Makefile.cfg (executable-update): New.
11534 (local_updates): Call it.
11536 2003-10-27 Akim Demaille <akim@epita.fr>
11538 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
11539 Don't remove core.* as it may remove valid user files.
11540 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
11541 (AC_FUNC_UTIME_NULL): Likewise.
11543 2003-10-23 Akim Demaille <akim@epita.fr>
11546 * config/config.guess, config/config.sub: Upgrade from masters.
11548 2003-10-23 Akim Demaille <akim@epita.fr>
11550 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
11551 AC_COMPILE_IFELSE that use break skip the clean up. So do it by
11554 2003-10-23 Akim Demaille <akim@epita.fr>
11556 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
11557 Don't forget to remove conftest.err.
11559 2003-10-23 Akim Demaille <akim@epita.fr>
11561 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
11562 same object file in $LIBOBJS.
11563 Reported by Alexandre Duret-Lutz & Derek Robert Price.
11564 * doc/autoconf.texi (Generic Functions): Adjust.
11566 2003-10-20 Paul Eggert <eggert@twinsun.com>
11568 * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
11569 Use 'eval', so that the resulting configure scripts work even if
11570 the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
11572 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
11574 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
11575 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
11576 (_AC_LINK_IFELSE): Check the werror flag.
11577 * doc/autoconf.texi (Generic Compiler Characteristics): Document
11579 * NEWS: Mention it.
11581 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
11583 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
11584 _AC_COMPILER_EXEEXT to attempt a link. If linking fails,
11585 override AC_LINK_IFELSE.
11587 2003-10-15 Paul Eggert <eggert@twinsun.com>
11589 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
11590 pdksh 5.2.14. Bug reported by Ralf Corsepius.
11591 * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
11592 Mention /usr/dt/bin/dtksh on Solaris.
11593 (Shell Substitutions): Warn about $((...)).
11594 (Parentheses): New section.
11596 2003-10-15 Kevin Ryde <user42@zip.com.au>
11598 * doc/autoconf.texi (Function Portability): Add @prindex for exit.
11599 Add putenv and unsetenv. Add sysconf _SC_PAGE_SIZE.
11601 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
11603 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
11606 2003-10-11 Steven G. Johnson <stevenj@alum.mit.edu>
11608 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
11609 name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
11611 2003-10-10 Andreas Schwab <schwab@suse.de>
11613 * bin/autoheader.in: Avoid empty first line in --version and
11615 * bin/ifnames.in: Likewise.
11617 2003-10-09 Paul Eggert <eggert@twinsun.com>
11619 * lib/Autom4te/XFile.pm: Don't assume -j is solo.
11620 Issue a more-informative diagnostic.
11621 Problems reported by Eric Sunshine.
11623 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
11625 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
11626 -mGLOB_options_string stuff for Intel ifc, which can cause
11627 _AC_FC_LIBRARY_LDFLAGS to fail. Use (faster) case for
11628 pattern-matching instead of grep.
11630 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
11632 * doc/autoconf.texi: Document new FC Fortran macros.
11634 2003-10-08 Gary V. Vaughan <gary@gnu.org>
11636 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
11637 that future autopoint/aclocal/automake/autoreconf will be able
11638 to trace to find where to install local m4 macros.
11639 * doc/autoconf.texi (Input): Document it.
11642 2003-10-06 Gary V. Vaughan <gary@gnu.org>
11644 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
11645 -lcrtbegin.o to list of ignored flags and fix underquoting of
11648 2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
11650 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
11651 cache variable instead of $G77 to decide whether to include -O2,
11652 since $G77 is specific to Fortran 77.
11654 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
11656 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
11657 free" flag. Re-order flags tested into rough order of popularity.
11659 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
11661 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
11662 arguments so that it can be used with syntax identical to
11663 AC_PROG_F77, and so that we can more easily decide to
11664 remove/deprecate the DIALECT optional argument in the future if it
11665 proves troublesome.
11666 (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
11667 non-freeform-supporting compilers. Document freeform flags.
11669 2003-10-03 Akim Demaille <akim@epita.fr>
11671 * configure.ac: Look for emacs, not macs.
11672 Reported by Eric Sunshine.
11674 2003-10-03 Akim Demaille <akim@epita.fr>
11676 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
11677 * bin/autoreconf.in (autoreconf_current_directory): Create the
11678 AUX_DIR if needed, for sake of automake --add-missing etc.
11679 Suggested by Alexandre Duret-Lutz.
11681 2003-10-03 Akim Demaille <akim@epita.fr>
11683 * configure.ac: Quotation and formatting changes.
11684 (EMACS): Don't set it if it is not recent enough to support
11686 From Eric Sunshine.
11688 2003-10-02 Akim Demaille <akim@epita.fr>
11690 * bin/ifnames.in (&scan_file): Skip C++ comments.
11691 From Jeremy Yallop.
11693 2003-10-01 Pavel Roskin <proski@gnu.org>
11695 * doc/autoconf.texi (Particular Structure Checks):
11696 Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
11698 2003-10-01 Akim Demaille <akim@epita.fr>
11702 2003-09-30 Paul Eggert <eggert@twinsun.com>
11704 * lib/Autom4te/XFile.pm: Use Errno.
11705 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
11706 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
11708 2003-09-30 Akim Demaille <akim@epita.fr>
11710 * config/announce-gen (&print_news_deltas): Extracted from...
11711 (&print_changelog_deltas): here.
11712 (&news_file): Rename as...
11713 (@news_file): this.
11715 2003-09-30 Nicolas Joly <njoly@pasteur.fr>
11717 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
11718 have been created when invoking the compiler.
11719 * tests/fortran.at (GNU Fortran 77): Quote $G77.
11721 2003-09-29 Akim Demaille <akim@epita.fr>
11725 * config/mkinstalldirs: Upgrade.
11727 2003-09-28 Paul Eggert <eggert@twinsun.com>
11729 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
11730 Problem reported by Lars J. Aas in
11731 <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
11732 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
11733 "test -d ./-p && rmdir ./-p". Suggested by Andreas Schwab in:
11734 http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
11736 2003-09-26 Akim Demaille <akim@epita.fr>
11738 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
11739 directory for AC_CONFIG_COMMANDS' first argument exists.
11740 This makes valid the invocation of _AC_SRCPATH that follows.
11741 Reported by Eric Sunshine.
11742 * doc/autoconf.texi (Configuration Commands): Adjust.
11744 2003-09-26 Akim Demaille <akim@epita.fr>
11746 * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
11747 Reported by Ralf Corsepius.
11749 2003-09-26 Akim Demaille <akim@epita.fr>
11751 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
11753 Actually, use AU_ALIAS.
11756 2003-09-26 Paul Eggert <eggert@twinsun.com>
11758 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
11759 rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
11760 Problem reported by Eric Sunshine in:
11761 http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
11763 2003-09-26 Akim Demaille <akim@epita.fr>
11765 The test suite are sometimes assigning timings incorrectly.
11766 Reported by Henk Krus.
11767 Diagnosed by Nicolas Joly.
11769 * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
11771 Instead of making AT_help a sequence of assignments to grow
11772 $at_help_all, just make AT_help_all be the growing contents of
11773 $at_help_all, and make a single assignment in...
11775 (at_times_skip): Flip the meaning and rename as...
11776 (at_times_p): this.
11777 (AT_INIT): When summarizing the test that ran, remove
11778 $at_times_file after use, and check it is present before trying to
11781 2003-09-25 Akim Demaille <akim@epita.fr>
11785 * bin/Makefile.am (edit): Handle '@configure_input@'.
11786 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
11787 (ifnames): chmod -w.
11788 * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
11789 executables, not bin/ executables! Otherwise all the magic needed
11790 to find non installed files is turned off. This caused a failure
11791 of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
11792 as found in its environment (sent by tests/autoreconf): pointing
11793 to bin/autom4te that could not find its files.
11794 * tests/mktests.sh: Force the replacement of generated files, for
11795 the sake of "mv" program that are interactive when overwriting a
11797 * config/install-sh: Upgrade from CVS Automake.
11799 2003-09-23 Paul Eggert <eggert@twinsun.com>
11801 * doc/autoconf.texi (Limitations of Builtins): Document test -h
11802 versus test -L issues.
11804 2003-09-23 Daniel Jacobowitz <drow@mvista.com> and
11805 Paul Eggert <eggert@twinsun.com>
11807 Trivial change to support GCC's configuration procedure.
11808 * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
11809 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
11810 about inconsistency if the preprocessor is set to give errors for
11812 * doc/autoconf.texi (C Compiler Characteristics): Document this.
11814 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
11816 * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
11817 and XFile.pm from Automake.
11818 * lib/Autom4te/XFile.pm: Update from Automake.
11820 2003-09-12 Akim Demaille <akim@epita.fr>
11824 2003-09-12 Akim Demaille <akim@epita.fr>
11826 * config/config.guess, config/config.sub, config/missing,
11827 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
11830 2003-09-12 Akim Demaille <akim@epita.fr>
11832 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
11835 2003-09-11 Akim Demaille <akim@epita.fr>
11837 * doc/autoconf.texi (Header Portability): linux/random.h.
11838 From Peter Hendrickson.
11840 2003-09-10 Akim Demaille <akim@epita.fr>
11842 * tests/mktests.sh (au_exclude_egrep): Make it harder to be
11843 willing to edit the output files.
11845 2003-09-10 Akim Demaille <akim@epita.fr>
11847 * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
11848 and AC_FC_FREEFORM.
11849 * tests/mktests.sh: Skip AC_FC_SRCEXT.
11850 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
11852 2003-09-09 Akim Demaille <akim@epita.fr>
11854 * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
11855 Reported by Gary Vaughan.
11856 * bin/autom4te.in (handle_m4): Likewise.
11858 2003-09-09 Akim Demaille <akim@epita.fr>
11860 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
11863 2003-09-07 Paul Eggert <eggert@twinsun.com>
11865 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
11866 Improve the accuracy of the wording about obsolescence.
11867 From a suggestion by Ian Lance Taylor in
11868 <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
11870 2003-09-05 Paul Eggert <eggert@twinsun.com>
11872 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
11873 for the benefit of g77 3.2. Fix suggested by Steven G. Johnson.
11875 2003-09-04 Akim Demaille <akim@epita.fr>
11877 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
11880 2003-09-04 Akim Demaille <akim@epita.fr>
11882 * bin/autom4te.in: Use &fatal where more appropriate than &error.
11883 (freeze): When exiting, use $exit_code.
11884 * lib/autoconf/fortran.m4: Comment changes.
11886 2003-09-04 Akim Demaille <akim@epita.fr>
11888 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
11890 2003-09-02 Steven G. Johnson <stevenj@alum.mit.edu>
11892 Add support for newer Fortran dialects. The F77 interface is
11893 unchanged, and continues to support Fortran 77. New FC macros
11894 correspond to all the old F77 macros, with output variables FC,
11895 FCFLAGS, and FCLIBS. AC_PROG_FC defaults to picking the newest
11896 available dialect, but older dialects can be specified. There are
11897 new macros AC_FC_SRCEXT to set the source extension, and
11898 AC_FC_FREEFORM to accept free-form source files.
11900 * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
11902 (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
11903 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
11904 _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
11905 _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
11906 AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
11907 AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
11908 _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
11909 _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
11910 AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
11911 _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
11912 AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
11913 _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
11914 AC_FC_SRCEXT, AC_FC_FREEFORM):
11916 (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
11917 AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
11918 AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
11919 Rewrite in terms of the above.
11920 (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
11921 * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
11922 * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
11923 AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
11925 2003-09-02 Paul Eggert <eggert@twinsun.com>
11927 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
11928 Document problems with timestamp resolution that 'make', 'cp -p', and
11931 2003-08-27 Akim Demaille <akim@epita.fr>
11933 * tests/m4sugar.at (cross_warning): Make sure to enable the
11934 output, so that we can track spurious m4sugar output.
11935 * tests/local.at: Require 2.57.
11936 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
11937 are defaulted by AT_CHECK anyway.
11938 Use AT_CHECK_AUTOM4TE.
11939 * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
11942 2003-08-27 Akim Demaille <akim@epita.fr>
11944 * bin/autoheader.in: Issue the "Using auxiliary..." message only
11945 when -Wobsolete is set.
11946 Set it on by default.
11947 Suggested by Klee Dienes.
11949 2003-08-27 Akim Demaille <akim@epita.fr>
11951 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
11953 From Guido Draheim.
11955 2003-08-26 Akim Demaille <akim@epita.fr>
11957 * doc/autoconf.texi (Output): Make clear that one can run code
11960 2003-08-25 Akim Demaille <akim@epita.fr>
11962 * config/announce-gen, GNUmakefile, Makefile.maint: Update from
11965 2003-08-25 Alexandre Duret-Lutz <adl@gnu.org>
11967 * bin/autoreconf.in (parse_args): Do not pass --no-force to
11968 Automake versions prior to 1.8.
11970 2003-08-25 Akim Demaille <akim@epita.fr>
11972 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
11973 From Ville Karaila.
11975 2003-08-24 Akim Demaille <akim@epita.fr>
11977 * configure.ac: Bump to 2.57c.
11979 2003-08-22 Akim Demaille <akim@epita.fr>
11983 * Makefile.cfg (local-checks-to-skip): New.
11984 * Makefile.maint (local-check): Rename as...
11985 (local-checks-available): this.
11986 (local-check): New.
11988 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
11989 * configure.ac: Require Automake 1.7.6.
11991 2003-08-22 Akim Demaille <akim@epita.fr>
11993 Output stack traces in warnings.
11995 * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
11996 Replace the former...
11997 (m4_warn): Pass the call stack to _m4_warn.
11998 * bin/autom4te.in: Adjust to output the call stack.
11999 * tests/m4sugar.at (m4@&t@_warn): Adjust.
12001 2003-08-22 Akim Demaille <akim@epita.fr>
12003 * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
12004 * bin/autom4te.in: Adjust.
12006 2003-08-21 Akim Demaille <akim@epita.fr>
12008 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
12009 (&verbose): Remove.
12010 (&getopt): Adjust the note and verb channels, depending upon
12012 * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
12013 * bin/autoupdate.in: Adjust.
12014 Use &verb, not &verbose.
12016 2003-08-21 Akim Demaille <akim@epita.fr>
12018 * bin/autoheader.in (&parse_args): Use &parse_warnings and
12020 ($help): Use Autom4te::ChannelDefs::usage.
12021 * bin/autoscan.in: Use Autom4te::ChannelDefs.
12022 * lib/Autom4te/General.pm: Don't export error: you don't own it.
12024 2003-08-21 Akim Demaille <akim@epita.fr>
12026 First stab at preserving warnings between calls to autom4te,
12027 including when the cache is used.
12029 There are still several issues: (i) there are too many runs of m4
12030 (one for include, one for warnings, and some more), (ii) warnings
12031 spreading on several lines are not handled gracefully, (iii) the
12032 code meant to have the call stack display for errors does not work
12033 (its handling should move from m4 to autom4te).
12035 * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
12037 (@preselect): Add m4_warn.
12038 ($exit_status): Remove, use $exit_code.
12039 ($help): Use Autom4te::ChannelDefs::usage.
12040 (&handle_m4): No longer define the m4_warnings.
12041 At each run, extract and report the warnings.
12042 Always cache the result, including if the exit status is on
12043 failure, since if nothing changes, we should result in the same
12044 failure, hence we can use the cache.
12045 * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
12046 (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
12048 (m4_warn): Redefine as a do-nothing: it is its invocation that
12049 matters, as warnings are now reported via traces.
12050 * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
12051 the contents of m4_warn: make it _call_ m4_warn, so that tracing
12052 the latter reveals calls to the former.
12056 * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
12058 2003-08-21 Akim Demaille <akim@epita.fr>
12060 * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
12063 2003-08-21 Akim Demaille <akim@epita.fr>
12065 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
12067 * lib/Autom4te/ChannelDefs.pm: Doc typos.
12068 (&parse_warnings): Accept a list of warning requests.
12069 (&usage): Return a string, not a side effect.
12070 (cross): New warning category.
12072 2003-08-21 Akim Demaille <akim@epita.fr>
12074 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
12075 (&require_configure_ac): Accept an optional directory argument.
12076 ($configure_ac): Remove.
12077 * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
12078 (&catfile): Remove.
12079 * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
12080 * bin/autoscan.in: Adjust.
12082 2003-08-20 Akim Demaille <akim@epita.fr>
12084 * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
12085 Reported by Alexandre Duret-Lutz.
12087 2003-08-20 Akim Demaille <akim@epita.fr>
12089 * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
12090 * bin/autom4te: Adjust.
12091 In particular, be Autoconf tools are really silent when properly
12092 working, bind the verbosity of the 'note' channel to $verbose.
12093 * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
12094 (&xsystem, &contents): Remove, since they are exported by...
12095 * lib/Autom4te/FileUtils.pm: this.
12097 * lib/Autom4te/General.pm (&up_to_date_p): Move to...
12098 * lib/Autom4te/FileUtils.pm: here.
12100 2003-08-20 Akim Demaille <akim@epita.fr>
12102 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
12103 * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
12106 2003-08-20 Akim Demaille <akim@epita.fr>
12108 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
12109 (autom4te-update): New.
12110 * Makefile.cfg (update): Bind autom4te-update.
12112 2003-08-19 Derek Price <derek@ximbiot.com>
12114 * lib/autotest/general.m4: Comment various HELP_* diversions.
12115 (PARSE_ARGS_BEGIN): New section for option parsing related
12117 (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
12118 package specific options and associated help.
12120 2003-08-19 Akim Demaille <akim@epita.fr>
12122 * config/announce-gen, Makefile.cfg: New.
12123 * Makefile.am: Adjust.
12124 * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
12126 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
12128 * lib/autom4te.in (Automake-preselections): Preselect
12129 AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
12132 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
12134 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
12135 (Autoconf-without-aclocal-m4): ... this new language.
12136 * doc/autoconf.texi (autom4te Invocation): Mention
12137 Autoconf-without-aclocal-m4.
12139 2003-08-18 Derek Price <derek@ximbiot.com>
12141 * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
12142 RUN-IF-PASS optional arguments.
12144 2003-08-18 Derek Price <derek@ximbiot.com>
12146 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
12148 2003-08-16 Derek Price <derek@ximbiot.com>
12150 * doc/autoconf.texi (Writing testsuite.at): Document defaults for
12151 STDOUT & STDERR arguments.
12153 2003-08-14 Derek Price <derek@ximbiot.com>
12155 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
12156 DESCRIPTION rather than FILE and LINE. Shorten result to fit in new,
12157 shorter column three. Add DESCRIPTION to log file content.
12159 2003-08-13 Derek Price <derek@ximbiot.com>
12161 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
12164 2003-08-12 Derek Price <derek@ximbiot.com>
12166 * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
12167 (AT_CHECK_NOESCAPE): Move core functionality to...
12168 (_AT_CHECK): ...this new macro.
12170 2003-08-07 Derek Price <derek@ximbiot.com>
12172 * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
12173 (AT_CHECK_NOESCAPE): ...to this new macro.
12175 2003-07-31 Paul Eggert <eggert@twinsun.com>
12177 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
12178 in Bash 2.01. Problem reported by Brian Gough in
12179 <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
12181 2003-07-25 John W. Eaton <jwe@bevo.che.wisc.edu>
12183 * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
12184 -lcrt1.o, for OS X. (trivial change)
12186 2003-07-07 Paul Eggert <eggert@twinsun.com>
12188 * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
12189 inside '#ifndef __cplusplus'. Problem reported by
12192 2003-07-06 Bill Clarke <llib@computer.org>
12194 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
12195 'long', not 'int', for benefit of Sun's recent C++ compilers
12196 (trivial change). See:
12197 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
12198 (This really should be 'intptr_t', not 'long', but that would
12201 2003-06-25 Akim Demaille <akim@epita.fr>
12203 * lib/Makefile.am (autom4te.cfg): Make it read only.
12204 Depend on Makefile since it contains substitutions.
12205 From Paolo Bonzini.
12206 * lib/autom4te.in (args): Add local.at? for Autotest args.
12207 This change was made on autom4te.cfg which is generated.
12208 Reported by Raja R. Harinath.
12210 2003-06-25 Akim Demaille <akim@epita.fr>
12212 * doc/autoconf.texi (Header Portability): sys/mount.h.
12213 From Gareth McCaughan.
12215 2003-06-23 Akim Demaille <akim@epita.fr>
12217 * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
12218 not all of them. This fixes 1. the fact that when testing
12219 Autoconf there are many many config.log, 2. the incorrect use of
12220 top_srcdir to find config.log.
12221 Don't mix the detailed output of failed test with the summary of
12222 failures. Rather, append detailed log afterwards.
12224 2003-06-23 Akim Demaille <akim@epita.fr>
12226 * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
12227 always run: output config.log on $at_group_log.
12229 2003-06-23 Akim Demaille <akim@epita.fr>
12231 * tests/torture.at (#define header templates): Don't use quotes in
12232 C++ comments as it puzzles Emacs' sh font-lock-mode.
12234 2003-06-23 Akim Demaille <akim@epita.fr>
12236 * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
12237 * lib/autom4te.cfg (args): Add local.at? for Autotest args.
12238 * tests/atspecific.m4: Rename as...
12239 * tests/local.at: This.
12240 * tests/suite.at: Move the globals into...
12241 * tests/local.at: here.
12242 * tests/Makefile.am: Adjust.
12243 * doc/autoconf.texi (testsuite Scripts): Adjust.
12245 2003-06-21 Kevin Ryde <user42@zip.com.au>
12247 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
12248 error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
12249 ensuring we add -std1 for full-ANSI.
12251 * doc/autoconf.texi (hdrindex): New macro.
12252 Add index entries for portability of various standard header files.
12254 2003-06-20 Akim Demaille <akim@epita.fr>
12256 * configure.ac: Bump to 2.57b.
12258 2003-06-20 Akim Demaille <akim@epita.fr>
12262 2003-06-20 Akim Demaille <akim@epita.fr>
12264 * bin/autom4te.in: Don't rely on $HOME being defined.
12265 Reported by Marc Espie as PR/233.
12267 2003-06-20 Akim Demaille <akim@epita.fr>
12269 * lib/autotest/general.m4: Use at_times_file only if used.
12272 2003-06-20 Akim Demaille <akim@epita.fr>
12274 * config/config.guess, config/config.sub, config/elisp-comp,
12275 * config/install-sh, config/mkinstalldirs, doc/standards.texi:
12276 Update from masters.
12278 2003-06-11 Paolo Bonzini <bonzini@gnu.org>
12280 * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
12281 * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
12282 (TEST_SCRIPT): New diversion.
12283 (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
12284 (AT_CLEANUP): ...to here. Undivert TEST_SCRIPT.
12285 (AT_INIT): Support for expected failures.
12287 2003-06-02 Akim Demaille <akim@epita.fr>
12289 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
12291 * lib/Autom4te/General.pm (&backname): Remove, no longer used by
12292 Autoconf nor Automake.
12293 (&contents): New, from Automake.
12296 2003-05-28 Paul Eggert <eggert@twinsun.com>
12298 * NEWS, doc/autoconf.texi (Particular Functions),
12299 lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
12300 is the inverse of localtime.
12302 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
12304 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
12305 (handle_exec_errors): New function. Work around $! being
12306 altered by WEXITSTATUS.
12307 (xqx, xsystem): Use handle_exec_errors.
12309 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
12311 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
12312 Do not call `_exit()', simply modify `$?'.
12313 (xsystem): Reset $! before running system, and check it afterward.
12314 * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
12315 63 for version mismatches.
12317 2003-05-23 Akim Demaille <akim@epita.fr>
12319 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
12320 Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
12321 the middle of a line).
12322 * lib/m4sugar/m4sugar.m4: Likewise.
12323 Remove useless spaces in comments.
12325 2003-05-23 Akim Demaille <akim@epita.fr>
12327 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
12328 exit 63, so that we (or Automake's "missing") can tell the
12329 difference with a plain failure.
12330 * doc/autoconf.texi (Notices): Adjust.
12332 2003-05-23 Akim Demaille <akim@epita.fr>
12334 * Makefile.am, bin/Makefile.am, config/Makefile.am,
12335 * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
12336 White spaces cleanup.
12338 2003-05-22 Jim Meyering <jim@meyering.net>
12339 Paul Eggert <eggert@twinsun.com>
12341 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
12342 Remove `#include <stdlib.h>' from the list; we should never
12343 make confdefs.h include <stdlib.h> or <cstdlib>, because the
12344 resulting namespace pollution would cause other tests to fail.
12345 Configure scripts run with some older versions of g++ and HP's
12346 aCC would fail due to such an #include. Problems reported by
12347 Matthew Mueller in <http://bugs.debian.org/120704> and by
12349 <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
12350 In the test, use the test declaration before including <stdlib.h>,
12351 as that's closer to how it'll be used.
12353 2003-05-23 Akim Demaille <akim@epita.fr>
12355 * doc/autoconf.texi (Header Portability): ucred.h.
12358 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
12360 Overhaul Autotest's logging: generate separate log files
12361 in testsuite.dir/NNN/testsuite.log, and append them to
12362 testsuite.log instead of re-running the test verbosely.
12364 * lib/autotest/general.m4 (AT_INIT): Use a single redirected
12365 file descriptor, write 0 to at_status_file instead of setting
12366 at_status=0, initialize some new variables (at_status_file,
12367 at_group_log, at_suite_log, at_tee_pipe). Remove the cruft
12368 to rerun the tests, instead append the at_group_log to the
12369 at_suite_log when a test fails.
12370 (AT_SETUP): pipe the test case's output into at_tee_pipe,
12371 with the AS_MESSAGE_LOG_FD redirected to stdout.
12372 (AT_CLEANUP): save the output status in $at_status_file
12373 and restore it, redirect the AS_MESSAGE_LOG_FD back to
12374 its original place.
12375 (AT_CHECK): since tests are run with a redirected stdout,
12376 and used to be re-run in verbose mode, turn some $at_verbose
12377 into echo, and don't redirect the output of testing stdout
12380 * lib/autotest/autoconf.texi (testsuite Scripts): Update
12381 the name of the debugging directory and information about
12384 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
12386 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
12389 2003-05-22 Akim Demaille <akim@epita.fr>
12391 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
12392 * lib/autoconf/fortran.m4 lib/autoconf/general.m4
12393 * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
12394 * lib/autoconf/status.m4: Fix and adjust copyright notices.
12396 2003-05-22 Akim Demaille <akim@epita.fr>
12398 * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
12399 * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
12400 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
12401 * lib/autoconf/general.m4, lib/autoconf/headers.m4,
12402 * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
12403 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
12404 * lib/autoconf/status.m4, lib/autoconf/types.m4,
12405 * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
12406 * tests/atspecific.m4, tests/base.at, tests/compile.at,
12407 * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
12408 * tests/tools.at, tests/torture.at:
12409 Whitespace clean up.
12410 Suggested by Jim Meyering.
12412 2003-05-22 Akim Demaille <akim@epita.fr>
12414 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
12415 ' \t' as '\t ' so that Emacs' whitespace.el keep it.
12416 Reported by Jim Meyering.
12418 2003-05-22 Akim Demaille <akim@epita.fr>
12420 * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
12421 Add AC_HELP_STRING to the obsolete macros section.
12423 Use '@.' for sentences that ended in a capital letter.
12426 2003-05-22 Akim Demaille <akim@epita.fr>
12428 * config/config.guess, config/config.sub, config/elisp-comp,
12429 * config/install-sh, config/mdate-sh, config/mkinstalldirs,
12430 * config/texinfo.tex, doc/standards.texi: Update from masters.
12432 2003-05-21 Paolo Bonzini <bonzini@gnu.org>
12434 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
12437 2003-05-21 Akim Demaille <akim@epita.fr>
12439 * bin/autoupdate.in ($m4): Fix quotation.
12440 Reported by Martin Mokrejs.
12442 2003-05-19 Paul Eggert <eggert@twinsun.com>
12444 * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
12445 Remove non-ASCII characters.
12447 2003-05-18 Paolo Bonzini <bonzini@gnu.org>
12449 * tests/semantics.at (AC_SEARCH_LIBS): New test.
12450 * tests/semantics.at (AC_CHECK_HEADERS_OLD,
12451 AC_CHECK_HEADERS_NEW): New tests.
12453 2003-05-17 Akim Demaille <akim@epita.fr>
12455 * lib/autoconf/functions.m4: Use the default includes so that
12456 memcmp be declared before being tested.
12457 Reported by Sander Niemeijer.
12458 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
12459 * doc/autoconf.texi (Default Includes): Document
12460 AC_INCLUDES_DEFAULT.
12462 2003-05-17 Akim Demaille <akim@epita.fr>
12464 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
12465 * doc/autoconf.texi (Obsolete Macros): Adjust.
12466 Reported by Werner LEMBERG and Debian Bug 190886.
12468 2003-05-16 Akim Demaille <akim@epita.fr>
12470 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
12471 user name space clashes.
12472 Reported by Bruno Haible.
12474 2003-05-16 Akim Demaille <akim@epita.fr>
12476 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
12477 * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
12478 them uniform, and more robust to Perl special characters.
12479 Reported by Martin Mokrejs.
12481 2003-05-14 Akim Demaille <akim@epita.fr>
12483 * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
12485 2003-05-14 Akim Demaille <akim@epita.fr>
12487 * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
12490 2003-05-12 Akim Demaille <akim@epita.fr>
12492 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
12494 From Matthias Andree.
12496 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
12498 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
12501 2003-05-06 Akim Demaille <akim@epita.fr>
12503 Don't try to be smart with aclocal 1.8+ because (i) aclocal no
12504 longer updates aclocal.m4 if useless, (ii) if a file m4_included
12505 by aclocal.m4 is changed it might require the importing of another
12506 m4 extension file, i.e., aclocal must be run.
12508 * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
12509 (&parse_args): Use --force with aclocal if required and supported.
12510 (&autoreconf_current_directory): Use &run_aclocal.
12512 2003-05-06 Akim Demaille <akim@epita.fr>
12514 Lock autom4te's cache.
12516 * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
12517 * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
12518 argument instead of a file name, so that the request file remains
12519 open during the whole autom4te run.
12520 ($icache_file): New.
12521 (&freeze): Lock the $icache_file.
12523 2003-04-29 Derek Price <derek@ximbiot.com>
12525 * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
12526 seperator with m4_append_uniq(). It doesn't work.
12527 (AT_CLEANUP): Add `;' to end of at_help_all.
12528 (AT_INIT): Allow --keywords to be specified more than once. When
12529 grepping $at_help_all for keywords, use the field and keyword
12530 seperators to ensure a complete keyword match. Alter at_prev handling
12531 to support the new --keywords behavior.
12533 2003-04-27 Karl Berry <karl@freefriends.org>
12535 * doc/autoconf.texi: Make the dir entries in the autoconf manual
12536 align better with others. I also made some of the individual
12537 entries on one line, for brevity and to make it easier for me to
12538 sort my dir-example file in the Texinfo distribution :).
12540 2003-04-12 Jim Meyering <jim@meyering.net>
12542 * NEWS: Mention the new macro.
12543 * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
12544 * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
12545 * tests/c.at: Test AC_C_RESTRICT.
12546 * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
12548 2003-04-08 Akim Demaille <akim@epita.fr>
12550 * bin/ifnames.in: Skip C++ comments.
12551 From Jeremy Yallop.
12553 2003-04-08 Akim Demaille <akim@epita.fr>
12555 * GNUmakefile (SHELL): Don't assume sh is in /bin/.
12556 From Ilya Zakharevich.
12558 2003-04-08 Akim Demaille <akim@epita.fr>
12560 * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
12561 net/if.h, stdlib.h.
12563 2003-04-01 Derek Price <derek@ximbiot.com>
12565 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
12566 from Akim's checkin of 2003-03-29.
12568 2003-04-01 Derek Price <derek@ximbiot.com>
12570 * tests/torture.at (Configuring subdirectories): Add missing
12571 close-quote for Akim's change from 2003-03-28.
12573 2003-04-01 Akim Demaille <akim@epita.fr>
12575 * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
12576 (AC, AT, MS): these.
12577 (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
12580 * doc/Makefile.am (CLEANFILES): Adjust.
12581 (TEXI2DVI): Make it --batch.
12583 2003-03-31 Derek Price <derek@ximbiot.com>
12585 * lib/autotest/general.m4: Revert the checkin from 2003-03-27
12586 which removed the main loop.
12587 Thanks to Akim Demaille.
12589 2003-03-29 Akim Demaille <akim@epita.fr>
12591 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
12593 From Ilya Zakharevich.
12595 2003-03-29 Akim Demaille <akim@epita.fr>
12597 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
12598 documentation to read is Autoconf's.
12599 Suggested by Paul Eggert.
12601 2003-03-28 Akim Demaille <akim@epita.fr>
12603 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
12604 reading the section "Present But Cannot Be Compiled" when the
12605 header causes problems.
12607 2003-03-28 Akim Demaille <akim@epita.fr>
12609 * tests/torture.at (Configuring subdirectories): Require aclocal
12610 1.4, otherwise the test fails, as it does support configure.ac.
12611 This fixes the "test 40 failed" bug reports.
12613 2003-03-28 Akim Demaille <akim@epita.fr>
12615 * doc/autoconf.texi (C Compiler): `#line' portability.
12616 From Paul Eggert and Nelson H. F. Beebe.
12618 2003-03-27 Derek Price <derek@ximbiot.com>
12620 * lib/autotest/general.m4: Eliminate main loop and reorganize test
12621 layout in order to allow scripting around test groups.
12623 2003-03-27 Derek Price <derek@ximbiot.com>
12625 * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
12626 HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
12627 use new diversions in preparation for accepting new arguments and
12628 allowing scripting around tests.
12629 (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
12631 2003-03-26 Derek Price <derek@ximbiot.com>
12633 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
12634 obsolete AC_HELP_STRING.
12635 (AC_HELP_STRING): AU_DEFUN to...
12636 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
12637 * tests/m4sh.at (AS_HELP_STRING): New test.
12639 * tests/acgeneral.at: Regenerated.
12641 2003-03-26 Derek Price <derek@ximbiot.com>
12643 * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
12644 sense. Verbosify the diversion definitions comment.
12646 2003-03-26 Derek Price <derek@ximbiot.com>
12648 * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
12651 2003-03-21 Eric Siegerman <eric_97@pobox.com>
12653 * doc/autoconf.texi (Present But Cannot Be Compiled):
12654 Grammar fixes and minor rewording. (trivial change)
12656 2003-03-06 Paul Eggert <eggert@twinsun.com>
12658 Work around a problem noted by Nelson H. F. Beebe with coreutils
12659 4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
12660 2002/05/09) rejects '#line 32768 "configure"' because the line
12662 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
12664 * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
12665 * doc/autoconf.texi (Generating Sources): Document this.
12667 2003-03-01 Richard Dawe <rich@phekda.freeserve.co.uk>
12669 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
12670 file name for the m4 program, when it has an "exe" file extension.
12671 DJGPP's error messages include the error code in brackets -
12672 remove the error code during normalization.
12674 2003-02-28 Akim Demaille <akim@epita.fr>
12676 * doc/autoconf.texi (Present But Cannot Be Compiled): New.
12678 2003-02-28 Alexandre Duret-Lutz <adl@gnu.org>
12680 * doc/autoconf.texi (Limitations of Make): Remove the section
12681 about `$<' in inference rules, it was a bogus interpretation of
12682 an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
12683 Tru64 make in the "target lookup" section.
12684 (Automake): Automake 1.5+ no longer requires special tools to be
12685 present on the developer's host.
12687 2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
12689 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
12690 to a shell that can handle redirection or quoting correctly.
12691 Override SHELL with the shell detected by configure.
12692 Use of $^O suggested by Tim van Holder.
12693 * bin/autom4te.in (BEGIN): Likewise.
12694 * bin/autoreconf.in (BEGIN): Likewise.
12695 * bin/autoscan.in (BEGIN): Likewise.
12696 * bin/autoupdate.in (BEGIN): Likewise.
12697 * bin/ifnames.in (BEGIN): Likewise.
12699 * bin/ifnames.in: Add final newline to help and version messages.
12701 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
12702 to cope with DOS-style absolute paths, when constructing
12705 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
12706 When constructing paths with IFS=:, quote the path. If we're
12707 constructing a DOS-style absolute path, we don't want to split it
12710 * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
12713 2003-02-25 Pavel Roskin <proski@gnu.org>
12715 * bin/autoheader.in: Add missing newline when printing
12716 suggestion how change AC_DEFINE call.
12718 2003-02-24 Paul Eggert <eggert@twinsun.com>
12720 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
12721 2002-09-01 patch by replacing "test -n" with "test -z".
12722 This fixes a bug found by Jeff Painter and reported by Tom Epperly in
12723 <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
12725 * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
12726 to fix a mismatch between example and discussion.
12728 2003-02-24 Kevin Ryde <user42@zip.com.au>
12730 * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
12731 format starting with "-".
12733 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
12735 * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
12736 is not portable inside Makefile.
12738 2003-02-20 Akim Demaille <akim@epita.fr>
12740 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
12741 compiler says yeah, but preproc says nope, compiler is right.
12742 Conversely, prompt the reader to send a bug report to the
12743 maintainers of the package, not of Autoconf.
12745 2003-02-20 Klee Dienes <kdienes@apple.com>
12747 * bin/autoreconf.in (autoreconf_current_directory): Properly
12748 handle an empty aclocal.m4.
12750 2003-02-20 Akim Demaille <akim@epita.fr>
12752 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
12753 $ac_prefix_program.
12756 2002-12-23 Paul Eggert <eggert@twinsun.com>
12758 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
12759 innocuous variant befor including <limits.h> or <assert.h>. This
12760 works around a bug reported by Albert Chin: HP-UX 11i
12761 (and earlier versions) have a <limits.h> that declares
12762 gettimeofday and many other functions.
12764 2002-12-03 Paul Eggert <eggert@twinsun.com>
12768 * NEWS, configure.ac: Update version.
12770 * doc/fdl.texi: Upgrade to FDL version 1.2.
12772 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
12773 nontrivially in main's body, so that f's external declaration is
12774 not optimized away in AIX. This should fix the bug reported by
12776 <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
12778 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
12779 _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
12780 defined, to support freestanding compilers. This should fix the
12781 bug reported by Momchil Velkov in
12782 <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
12784 * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
12785 arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
12786 obsolete AC_CHECK_TYPE. The missing empty arg was reported
12787 by Simon Josefsson in
12788 <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
12790 * Makefile.maint (www-gnu): New macro.
12791 (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
12792 the location has moved.
12794 2002-12-02 Martin Frydl <martin@systinet.com>
12796 * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
12797 \(.*\) match is too long and there is something more to be checked.
12798 <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
12800 2002-11-15 Akim Demaille <akim@epita.fr>
12804 * config/install-sh: chmod +x.
12806 * config/move-if-change: Indenting changes.
12807 * Makefile.am (AUTOMAKE_OPTIONS): Move to...
12808 * configure.ac (AM_INIT_AUTOMAKE): here.
12811 2002-11-14 Akim Demaille <akim@epita.fr>
12815 * config/config.guess, config/config.sub, config/install-sh:
12816 Update from masters.
12818 2002-11-14 Akim Demaille <akim@epita.fr>
12820 * Makefile.maint: Sync with Bison, i.e.:
12821 (po-check): Scan .l and .y files instead of the
12822 .c and the .h files that they generate. This fixes the bug
12823 reported by Tim Van Holder in:
12824 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
12825 Look for N_ as well as for _. Try to avoid matching #define for
12829 2002-11-14 Akim Demaille <akim@epita.fr>
12831 * doc/autoconf.texi (C Compiler): Compiling several files at once.
12832 From Paul Eggert and Albert Chin-A-Young.
12834 2002-11-14 Akim Demaille <akim@epita.fr>
12836 * doc/autoconf.texi (C Compiler): Solitary backslashes.
12837 From Paul Eggert and Albert Chin-A-Young.
12839 2002-11-14 Kevin Ryde <user42@zip.com.au>
12841 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
12842 than assigning in main, to avoid HP cc +O3 optimizing it away.
12844 2002-11-12 Peter Eisentraut <peter_e@gmx.net>
12846 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
12847 option. Process --recheck after parsing all options. Pass -q
12848 option to configure on --recheck.
12849 (AC_OUTPUT): Pass -q from configure to config.status.
12850 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
12851 arguments to record.
12852 * doc/autoconf.texi (config.status Invocation): Document
12853 config.status -q option.
12855 2002-11-07 Alexandre Duret-Lutz <adl@gnu.org>
12857 * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
12858 Makefile.in if Makefile.am exists.
12859 (output): Strip `.am' from Makefiles. Don't
12860 output AC_CONFIG_FILES if no Makefiles were found.
12862 2002-11-07 Akim Demaille <akim@epita.fr>
12864 * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
12865 (local_updates): New.
12866 * Makefile.maint: Update, from CVS Bison.
12867 (local_updates): New.
12869 2002-11-06 Akim Demaille <akim@epita.fr>
12871 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
12872 declaration in extern "C" too.
12873 Reported by Roberto Bagnara.
12875 2002-11-06 Akim Demaille <akim@epita.fr>
12877 * tests/torture.at (Configuring subdirectories): Don't use grep
12879 * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
12880 Reported by Ezra Peisach.
12882 2002-11-05 Akim Demaille <akim@epita.fr>
12884 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
12886 We _have_ to stop using the old compatibility scheme that tried to
12887 avoid useless backslashes because Libtool 1.4.3 contains a
12888 AC_DEFINE([error_t], [int],
12889 [Define to a type to use for \`error_t' if it is not
12890 otherwise available.])
12891 We _have_ to quote the single quote and backslashes with \. The
12892 old compatibility scheme saw that ` was backslashed, and therefore
12893 did not quote the single quote. Hence before this patch, Autoconf
12894 was not compatible with Libtool.
12896 2002-11-04 Paul Eggert <eggert@twinsun.com>
12898 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
12899 too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
12900 LC_NAME, LC_PAPER, LC_TELEPHONE.
12901 * doc/autoconf.texi (Special Shell Variables): Mention those vars.
12903 2002-11-04 Akim Demaille <akim@epita.fr>
12907 * Makefile.maint (update, cvs-update, po-update, do-po-update):
12909 * config/texinfo.tex: Update.
12911 2002-11-03 Akim Demaille <akim@epita.fr>
12913 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
12915 (&autoreconf): here.
12916 ($help, $make, &parse_args, &autoreconf_current_directory):
12918 * doc/autoconf.texi (autoreconf Invocation): Adjust.
12920 2002-10-31 Bruno Haible <bruno@clisp.org>
12922 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
12923 Change name of cache variable to ac_cv_func_malloc_0_nonnull.
12924 (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
12925 (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
12926 to ac_cv_func_realloc_0_nonnull.
12927 (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
12929 2002-10-31 Akim Demaille <akim@epita.fr>
12931 The test suite was no longer checking for trailing envvars and files.
12933 * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
12934 (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
12936 2002-10-31 Akim Demaille <akim@epita.fr>
12938 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
12939 `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
12940 Make variable, not a shell variable.
12941 Suggested by Bruno Haible.
12943 2002-10-31 Akim Demaille <akim@epita.fr>
12945 * bin/autom4te.in (load_configuration): Reject #args out of any
12948 2002-10-31 Akim Demaille <akim@epita.fr>
12950 * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
12951 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
12952 (_AC_RUN_IFELSE): Use it.
12953 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
12954 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
12955 * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
12958 2002-10-30 Akim Demaille <akim@epita.fr>
12960 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
12961 * doc/autoconf.texi (autom4te Invocation): Adjust.
12962 Suggested by Tim van Holder.
12964 2002-10-29 Paul Eggert <eggert@twinsun.com>
12966 * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
12967 AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
12968 Problem reported by Bruno Haible.
12970 2002-10-29 Akim Demaille <akim@epita.fr>
12972 * doc/autoconf.texi (Header Templates): Put also in words what the
12973 pictures says to assist free style readers.
12974 (Customizing autom4te): s/--cache=/--cache /.
12976 2002-10-29 Akim Demaille <akim@epita.fr>
12978 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
12980 sparc_address_test returns void.
12981 Use it with an argument, as prototyped.
12984 2002-10-29 Akim Demaille <akim@epita.fr>
12986 * doc/autoconf.texi (Subdirectories): Cygnus dirs have
12987 configure.in, not configure.ac.
12988 Reported by Bruno Haible.
12990 2002-10-29 Akim Demaille <akim@epita.fr>
12992 * tests/torture.at (Deep Package): New test.
12993 (Configuring subdirectories): Don't use a testSubDir as Autotest
12994 now does it itself.
12996 2002-10-29 Akim Demaille <akim@epita.fr>
12998 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
12999 * doc/autoconf.texi (Invoking autom4te): Rename as...
13000 (autom4te Invocation): this, for consistency with the other nodes.
13002 2002-10-29 Akim Demaille <akim@epita.fr>
13004 * lib/autom4te.in (Autoconf): s/automate/autom4te/.
13005 Reported by Ralf Corsepius.
13007 2002-10-29 Akim Demaille <akim@epita.fr>
13009 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13010 characters is a back as an `obsolete' warning now.
13011 Reported by Ralf Corsepius.
13013 2002-10-28 Akim Demaille <akim@epita.fr>
13015 * configure.ac: Bump to 2.54c.
13017 2002-10-28 Akim Demaille <akim@epita.fr>
13021 * tests/foreign.at (Libtool): Adjust to broken libtoolize.
13023 2002-10-28 Akim Demaille <akim@epita.fr>
13025 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
13026 m4 executable names, and different GNU M4 version.
13027 Reported by Ezra Peisach and Paul Jarc.
13029 2002-10-27 Akim Demaille <akim@epita.fr>
13031 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
13034 2002-10-27 Akim Demaille <akim@epita.fr>
13036 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
13037 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
13038 Die when a simple Fortran program cannot be compiled.
13039 * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
13040 Issue a warning if no function is given.
13042 2002-10-27 Akim Demaille <akim@epita.fr>
13044 * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
13045 Move the documentation of AC_TRY_RUN to...
13046 (Obsolete Macros): here.
13047 Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
13048 (autoconf Invocation): Remove the duplicates with `invoking
13050 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
13051 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13053 2002-10-27 Akim Demaille <akim@epita.fr>
13055 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
13056 and AC_LANG_FUNC_LINK_TRY.
13057 (Examining Libraries): Rename as...
13058 (Running the Linker): this.
13059 Document AC_LINK_IFELSE.
13060 Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
13061 (Obsolete Macros): here.
13062 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
13063 AC_TRY_LINK_FUNC nor AC_TRY_LINK.
13064 * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
13065 * lib/autoconf/headers.m4 (AC_USG): Likewise.
13067 2002-10-27 Akim Demaille <akim@epita.fr>
13069 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
13071 More `check config.log' messages.
13073 * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
13074 * doc/autoconf.texi (Printing Messages): Document it.
13075 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
13077 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
13078 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
13079 (_AC_COMPILER_OBJEXT): Likewise.
13080 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
13081 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
13083 * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
13086 Deprecate macros with unusual interfaces.
13088 * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
13089 (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
13091 Document the new ones, and proper style.
13093 * doc/autoconf.texi (Generating Sources): New.
13094 Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
13095 (Examining Declarations): Rename as...
13096 (Running the Preprocessor): this.
13097 Document AC_PREPROC_IFELSE.
13098 (Examining Syntax): Rename as...
13099 (Running the Compiler): this.
13100 (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
13101 (Obsolete Macros): Move the definition of AC_TRY_CPP and
13102 AC_TRY_COMPILE here.
13104 2002-10-27 Akim Demaille <akim@epita.fr>
13106 Move sections around.
13108 * doc/autoconf.texi (Customizing autom4te): Remove a lost
13110 Reported by Burno Haible.
13111 (Language Choice): Now the first section of...
13112 (Writing Tests): this section.
13113 Make the introduction less C-centric.
13114 (Guidelines, Test Functions): Move to...
13115 (Writing Test Programs): this new section.
13116 (Test Programs): Merge into...
13119 2002-10-27 Akim Demaille <akim@epita.fr>
13121 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
13122 autom4te.in that resulted in the need for two `make' runs.
13124 2002-10-27 Akim Demaille <akim@epita.fr>
13126 * configure.ac: Bump to 2.54b.
13128 2002-10-25 Akim Demaille <akim@epita.fr>
13132 * Makefile.maint: Update from the Coreutils.
13133 (AMTAR): Remove, obsolete.
13134 (automake_repo): Update to redhat.com.
13136 Adjust to the fact that ansi2knr is now hosted by Automake.
13137 * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
13138 * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
13139 Update from masters.
13140 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
13141 autoscan.pre is not to be installed, and autoscan.list is not to
13143 (CLEANFILES): Add autoscan.list.
13144 (autoscan.list): Disable the cache.
13145 * bin/Makefile.am: Include freeze.mk.
13147 2002-10-25 Akim Demaille <akim@epita.fr>
13149 * bin/autom4te.in (&load_configuration): Take the file as
13151 (&parse_args): Handle -C, --cache.
13153 (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
13154 * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
13155 * doc/autoconf.texi (Invoking autom4te): Document --cache.
13156 Now a subsection of...
13157 (Using autom4te): This new section.
13158 (Customizing autom4te): New.
13159 (autom4te.cache): Adjust.
13161 2002-10-25 Akim Demaille <akim@epita.fr>
13163 * doc/autoconf.texi (Generic Headers): More information on how to
13164 use AC_CHECK_HEADERS.
13166 2002-10-25 Akim Demaille <akim@epita.fr>
13168 * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
13171 2002-10-25 Akim Demaille <akim@epita.fr>
13173 * bin/autoscan.in (output): Output AC_PREREQ.
13174 (%needed_macros): Add AC_PREREQ so that configure.ac without one
13177 2002-10-23 Akim Demaille <akim@epita.fr>
13179 * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
13182 2002-10-23 Akim Demaille <akim@epita.fr>
13184 * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
13185 Reported by Peter Eisentraut.
13187 2002-10-23 Akim Demaille <akim@epita.fr>
13189 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
13192 * doc/autoconf.texi (Particular Headers): Adjust according to Paul
13193 Eggert's recommandations.
13195 2002-10-22 Akim Demaille <akim@epita.fr>
13197 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
13198 Bison, by Paul Eggert.
13199 * doc/autoconf.texi (Particular Headers): Document it.
13201 2002-10-22 Aaron M. Ucko <amu@alum.mit.edu>
13203 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
13204 `$ac_configure_args'.
13206 2002-10-22 Akim Demaille <akim@epita.fr>
13208 * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
13209 (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
13212 2002-10-22 Akim Demaille <akim@epita.fr>
13214 Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
13216 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
13217 (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
13218 (_AC_CHECK_HEADER_NEW): Rename as...
13219 (AC_CHECK_HEADER): this.
13221 2002-10-22 Akim Demaille <akim@epita.fr>
13223 * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
13224 words about HP-UX cmp: it was actually a user-written cmp.
13226 2002-10-22 Akim Demaille <akim@epita.fr>
13228 * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
13229 are a few warnings.
13230 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
13231 Quote for Perl '' strings, not "".
13232 * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
13235 2002-10-22 Akim Demaille <akim@epita.fr>
13237 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13238 characters is a syntax warning now.
13239 (_AS_QUOTE): Accept $2 as list of characters to quote.
13240 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
13241 Quote for Perl, not sh.
13242 * bin/autoheader.in: When $debug, report the file which is
13244 * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
13245 `@', to tickle Perl's lists.
13246 Reported by Carlos Velasco.
13248 2002-10-18 Akim Demaille <akim@epita.fr>
13250 * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
13251 missing included files _are_ errors.
13252 Thanks to Alexandre Duret-Lutz.
13253 * tests/tools.at (autom4te cache): Adjust.
13254 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
13255 (AT_CHECK_M4SUGAR): Use it.
13256 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
13258 * tests/tools.at (autom4te): Now it does exit 1.
13260 2002-10-17 Akim Demaille <akim@epita.fr>
13262 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
13263 Fixes the `AC_ARG_VAR' test failures.
13264 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
13265 * lib/freeze.mk (check-forbidden-patterns): New.
13266 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
13267 * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
13268 * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
13270 Reported months ago by H. Merijn Brand.
13272 2002-10-17 Akim Demaille <akim@epita.fr>
13274 * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
13276 2002-10-16 Paul Eggert <eggert@twinsun.com>
13278 * Makefile.maint (wget_files): Remove ansi2knr.c.
13279 (ansi2knr.c-url_prefix): Remove.
13281 2002-10-16 Akim Demaille <akim@epita.fr>
13283 Because of caching, some files that no longer exist and are no
13284 longer required can still cause errors.
13285 Reported by Alexandre Duret-Lutz.
13287 * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
13288 to frozen files in @ARGV, as @ARGV must remain being a list of
13289 files. Rather, at M4 call sites, use this...
13290 (&files_to_options): New function.
13291 (&freeze): Use &error.
13292 (&up_to_date): If a file that was included according to the cache
13293 is no longer there, then the output is out dated.
13294 (&main): Don't even check whether a file is up to date is anyway
13296 * tests/tools.at (autom4te cache): New.
13298 2002-10-16 Akim Demaille <akim@epita.fr>
13300 * bin/autoconf.as: Kill dead options.
13301 * bin/autoupdate.in (&parse_args): Kill old options.
13302 * bin/autoreconf.in (&parse_args): Remove dead options.
13304 (&autoreconf): Report the directories we enter *and leave*, so
13305 that error messages can be easily located, and use GNU Make
13306 format, so that Emacs' compile mode understands us.
13307 * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
13308 if some file was changed instead of `print'.
13309 * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
13310 (&parse_args): Remove the dead options.
13311 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
13312 autoheader's quiet mode.
13313 (AT_CHECK_AUTOUPDATE): Likewise.
13314 * tests/tools.at (autoupdate): Adjust.
13315 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
13317 2002-10-11 Akim Demaille <akim@epita.fr>
13319 No longer use CPP to check for the existing of headers: use CC to
13320 check for compilability.
13322 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
13323 (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
13324 (_AC_CHECK_HEADER_NEW): Rename as...
13325 (AC_CHECK_HEADER): this.
13327 * lib/autotest/general.m4 (AT_INIT): Include the failed test
13328 numbers in the Subject suggestion.
13330 2002-10-11 Akim Demaille <akim@epita.fr>
13332 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
13333 Suggest using AC_CHECK_DECLS instead.
13335 2002-10-11 Akim Demaille <akim@epita.fr>
13337 * tests/torture.at (AC_ARG_VAR): Have configure report the value
13340 2002-10-11 Akim Demaille <akim@epita.fr>
13342 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
13343 file name to enable parallel executions.
13344 From Sam Varshavchik.
13346 2002-10-08 Akim Demaille <akim@epita.fr>
13348 * bin/autoreconf.in (&autoreconf): Run autopoint before the first
13349 aclocal invocation, as Gettext macros might not be visible to
13351 Instead of blindly running autopoint, scan configure.ac (not the
13352 traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
13353 Reported by Paul D. Smith.
13355 2002-10-08 Paul Eggert <eggert@twinsun.com>
13357 Work around problems found when POSIXLY_CORRECT=1 is set.
13358 None of this seems to have anything to do with POSIX, really,
13359 but it's how Perl getopt works.
13360 * bin/autom4te.in (parse_args): Configure GetOpt with
13362 * doc/autoconf.texi (Invoking autom4te):
13363 --warning -> --warnings.
13364 * lib/autom4te.in: --warning -> --warnings.
13366 2002-09-28 Akim Demaille <akim@epita.fr>
13368 * doc/autoconf.texi (autom4te.cache): New section.
13370 2002-09-28 Akim Demaille <akim@epita.fr>
13372 * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
13373 (Automake-preselections): Update.
13374 * bin/autoreconf.in, bin/autoheader.in: Comment changes.
13376 2002-09-28 Akim Demaille <akim@epita.fr>
13378 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
13379 * lib/autoconf/c.m4, lib/autoconf/functions.m4,
13380 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
13381 * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
13383 2002-09-28 Akim Demaille <akim@epita.fr>
13385 * tests/torture.at (Configuring subdirectories): Be robust to
13386 users who use config.site to require for a cache: in this case,
13387 the two last configure runs, using two different sets of
13388 arguments, trigger a legitimate error.
13390 2002-09-28 Akim Demaille <akim@epita.fr>
13392 * tests/m4sh.at (Functions Support, Functions and return Support):
13395 2002-09-28 Akim Demaille <akim@epita.fr>
13397 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
13398 autoheader are Perl programs.
13399 (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
13400 (autom4te): Specify that the sources are in the $srcdir.
13401 * doc/autoconf.texi (Installation Directory Variables): Adjust.
13403 2002-09-28 Akim Demaille <akim@epita.fr>
13405 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
13406 (tm_zone): Move their rules to...
13407 * lib/autoconf/types.m4: here, using AN_ macros.
13408 * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
13409 (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
13410 (make, mawk, nawk, ranlib, yacc): Similarly, move to...
13411 * lib/autoconf/programs.m4: here.
13412 * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
13413 (ETAGS_FOR_AUTOCONF): New.
13416 2002-09-28 Akim Demaille <akim@epita.fr>
13418 * lib/autoconf/autoscan.m4: New file.
13419 * lib/autoconf/autoconf.m4: Include it.
13420 * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
13421 that were listed in the original autoscan.list.
13422 * lib/autoconf/headers.m4: Similarly with headers.
13423 * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
13424 (.m4.m4f): Don't pass --prepend-include, since that's done by
13425 tests/autom4te itself.
13426 * lib/autoscan/Makefile.am: Include freeze.mk.
13427 (autoscan.list): New target --this file is no longer a source.
13428 (autoscan.pre): New file.
13430 2002-09-28 Akim Demaille <akim@epita.fr>
13432 * bin/autoscan.in (@kinds): Make them singular.
13434 (&init_tables): When --debug, report the list of rules to ease
13435 tracking changes in autoscan.list.
13436 * lib/autoscan/autoscan.list (function): Strip comments, sort.
13438 2002-09-28 Akim Demaille <akim@epita.fr>
13440 * lib/autoscan/functions, lib/autoscan/headers,
13441 * lib/autoscan/identifiers, lib/autoscan/makevars,
13442 * lib/autoscan/programs: Merge into...
13443 * lib/autoscan/autoscan.list: this.
13444 * bin/autoscan.in (&init_tables): Adjust.
13446 2002-09-28 Akim Demaille <akim@epita.fr>
13448 * lib/autoscan/functions, lib/autoscan/headers,
13449 * lib/autoscan/identifiers, lib/autoscan/makevars,
13450 * lib/autoscan/programs: Make the `kind' explicit, i.e., each
13451 `functions' line is now prefixed with `function:'.
13452 * bin/autoscan.in (&init_tables): Adjust.
13454 2002-09-28 Akim Demaille <akim@epita.fr>
13456 From now on, autoscan files must always map a macro name to a
13457 word: there is no `default' macro for autoscan.
13459 * bin/autoscan.in (&init_tables): Reject entries with no macro at
13461 * lib/autoscan/functions, lib/autoscan/headers: Make the macro
13464 2002-09-28 Akim Demaille <akim@epita.fr>
13466 * bin/autoscan.in (%c_keywords): Remove.
13467 (&used): Keep only track of the words we might be interested in.
13468 (&output_kind): It is no longer needed to look for non active
13471 2002-09-27 Akim Demaille <akim@epita.fr>
13473 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
13474 jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
13475 * lib/autoscan/functions: Adjust.
13476 * doc/autoconf.texi (Particular Functions): Adjust.
13478 2002-09-27 Akim Demaille <akim@epita.fr>
13480 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
13482 Thanks to Bill Moseley and Paul Eggert.
13483 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
13484 the tmpdir must be created.
13485 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
13486 dir be in the build tree, instead of $TMPDIR.
13488 2002-09-27 Akim Demaille <akim@epita.fr>
13490 * bin/autoscan.in: Improve the comments.
13491 (&parse_args): Drop obsolete undocumented options.
13492 (&output_kind): Output warnings.
13493 * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
13494 (getwd): Trigger a warning.
13496 2002-09-26 Akim Demaille <akim@epita.fr>
13498 * bin/autoreconf.in: Clarify that -s is meaningless without -i.
13499 Reported by Ralf Corsepius.
13500 * doc/autoconf.texi (autoreconf Invocation): Likewise.
13502 2002-09-26 Akim Demaille <akim@epita.fr>
13504 Single suffix rules and seperated dependencies are not portable.
13506 * doc/autoconf.texi (Installation Directory Variables): Update.
13507 (Limitations of Make): Some about `Single Suffix Rules and
13508 Separated Dependencies'.
13509 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
13510 (ifnames, autoscan, autom4te): Un-factor into several rules.
13512 2002-09-25 Paul Eggert <eggert@twinsun.com>
13514 * BUGS (Interoperability bugs): New section. Mention libtool
13515 1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
13517 2002-09-24 Paul Eggert <eggert@twinsun.com>
13519 Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
13520 make handles suffix-rules differently from GNU make.
13522 * bin/Makefile.am (SUFFIXES, .in): Remove.
13523 (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
13524 Move the body of the old .in rule here.
13526 2002-09-16 Akim Demaille <akim@epita.fr>
13528 i960 compilers create `b.out' files by default.
13529 Reported by Ralf Corsepius.
13531 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
13532 (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
13534 2002-09-13 Paul Eggert <eggert@twinsun.com>
13536 * doc/autoconf.texi (Particular Headers): Remove obsolete
13537 reference to `struct timezone' in the description of
13540 2002-09-13 Akim Demaille <akim@epita.fr>
13544 * config/config.sub, config/config.guess: Update.
13545 * Makefile.maint: Update from bits of the Coreutils 4.5.1.
13546 * Makefile.am: Adjust.
13548 2002-09-13 Akim Demaille <akim@epita.fr>
13550 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
13551 reading config.log when the compiler is rejected.
13552 Suggested by Guido Draheim.
13554 2002-09-13 Akim Demaille <akim@epita.fr>
13556 * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
13557 (chdir_init) might hang when stat'ing mounted directories.
13558 Reported by Vance Shipley.
13560 2002-09-12 Akim Demaille <akim@epita.fr>
13562 * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
13565 2002-09-12 Akim Demaille <akim@epita.fr>
13567 * doc/autoconf.texi (Defining Symbols): Present two different
13568 prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
13569 difference between 1 argument calls, and 2-3 argument calls.
13571 2002-09-12 Peter Eisentraut <peter_e@gmx.net>
13573 * doc/autoconf.texi: Review grammar and punctuation.
13575 2002-09-11 Paul Eggert <eggert@twinsun.com>
13577 * doc/autoconf.texi: Fix minor formatting, spelling, and
13579 (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
13580 AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
13583 2002-09-11 Akim Demaille <akim@epita.fr>
13585 * doc/autoconf.texi (Questions): Rename as...
13587 (Defining Directories): New.
13589 2002-09-09 Akim Demaille <akim@epita.fr>
13591 * doc/autoconf.texi (Making testsuite Scripts): Update.
13592 Suggested by Nishio Futoshi.
13594 2002-09-09 Koji Arai <JCA02266@nifty.ne.jp>
13596 * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
13597 plain `@' is wanted.
13599 2002-09-09 Akim Demaille <akim@epita.fr>
13601 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
13602 `duplicates', since the algorithm was too naive and could keep
13603 `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
13604 keep `--prefix foo --prefix bar' as `--prefix foo bar'.
13605 Reported by Ralf Corsepius.
13606 * tests/torture.at (Configuring subdirectories): Exercise these
13609 2002-09-09 Akim Demaille <akim@epita.fr>
13611 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
13612 looking for a replacement file.
13613 * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
13614 directory is relative.
13615 * doc/autoconf.texi (Generic Functions): Clarify the replacement
13616 directory definition.
13617 Reported by Andreas Schwab and Jim Meyering.
13619 2002-09-06 Akim Demaille <akim@epita.fr>
13621 * doc/autoconf.texi (Setting Output Variables): Clarify what
13622 precious variables are.
13623 Suggested by Pontus Skoeld.
13625 2002-09-05 Akim Demaille <akim@epita.fr>
13627 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
13628 (ifnames, autoscan, autom4te): Since we don't only depend on
13629 configure.ac variables (such as VERSION etc.), but also on prefix
13630 and so forth, depend on Makefile, not configure.ac.
13631 Reported by Alexandre Duret-Lutz.
13632 * doc/autoconf.texi (Installation Directory Variables): Adjust.
13634 2002-09-05 Kevin Ryde <user42@zip.com.au>
13636 * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
13637 doesn't seem to be confined to ia64, just say "some versions".
13639 2002-09-04 Akim Demaille <akim@epita.fr>
13641 * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
13643 * Makefile.am (maintainer-clean-local): Remove.
13644 (MAINTAINERCLEANFILES): Remove COPYING.
13646 2002-09-03 Paul Eggert <eggert@twinsun.com>
13648 * doc/autoconf.texi (Configuration Commands): Remove obsolete
13649 example for AC_CONFIG_COMMANDS_PRE. Problem reported by Marcus
13652 2002-09-03 Akim Demaille <akim@epita.fr>
13654 * configure.ac: Bump to 2.53d.
13655 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
13656 as of today, on Automake's team suggestion.
13658 2002-09-03 Akim Demaille <akim@epita.fr>
13662 2002-09-02 Akim Demaille <akim@epita.fr>
13664 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
13666 * configure.ac: Disable SITE_MACRO_DIR.
13668 2002-09-02 Jim Meyering <meyering@lucent.com>
13670 * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
13671 i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
13672 Also, tweak grammar: s/make sure to/be sure to/.
13674 2002-09-02 Paul Eggert <eggert@twinsun.com>
13676 * doc/autoconf.texi (Limitations of Builtins): Explain why logical
13677 directory names are generally preferable to physical names.
13679 2002-09-02 Akim Demaille <akim@epita.fr>
13681 * lib/Autom4te/General.pm (&update_file): s/die/error/.
13682 Reported by Raja R. Harinath.
13683 * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
13684 * bin/autoupdate.in: Use error instead of die.
13686 2002-09-01 Paul Eggert <eggert@twinsun.com>
13688 * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
13689 ordinary shell concatenation rather than echo+tr+sed command that
13690 runs afoul of a long-line-related sed bug in Solaris 8.
13692 * bin/autoheader.in (parse_args): --warning -> --warnings.
13694 * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
13695 stdout, as traditional "ls" does.
13696 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
13697 _AC_COMPILER_EXEEXT_O): Likewise.
13698 * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
13700 * bin/autoconf.as: Add --prepend-include option. This patch was
13701 applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
13702 but bin/autoconf.in is generated automatically from bin/autoconf.as.
13704 * bin/autoconf.in, configure: Regenerate.
13706 * doc/autoconf.texi (Special Shell Variables): Mention
13707 ENV, MAIL, MAILPATH, PS1, PS2, PS4. Index PWD.
13709 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
13710 MAILPATH and set PS1, PS2, PS4 to default values, to work
13711 around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
13712 For LC_ALL etc, first try to set to "C" as POSIX requires and as
13713 the Autoconf documentation specifies; fall back to "unset" only if
13714 this fails. Use a shell for-loop for this rather than an m4 loop,
13715 to shorten the output script.
13717 2002-08-30 Paul Eggert <eggert@twinsun.com>
13719 * doc/autoconf.texi (Special Shell Variables): Mention POSIX
13720 1003.1-2001's requirements for CDPATH. Give a simpler workaround
13721 for the CDPATH problem. Document PWD.
13722 (Limitations of Builtins): Document the problem that "cd $foo" and
13723 "ls $foo" may refer to different directories in shells conforming
13724 to POSIX 1003.1-2001. Use PS1 rather than CDPATH for "unset"
13725 example, since the old example is now out of date.
13727 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
13728 FOO" and "ls FOO" talk about different directories; this catches
13729 problems when POSIX 1003.1-2001 "cd" fails due to symlink
13732 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
13733 of rolling our own unset.
13734 (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
13735 in practice we needn't worry about CDPATH if unset doesn't work.
13737 * Makefile.in, aclocal.m4, bin/Makefile.in,
13738 config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
13739 lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
13740 lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
13741 lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
13742 tests/Makefile.in: Regenerate with Automake 1.6.3.
13744 * config/config.guess, config/config.sub, config/mkinstalldirs:
13747 * configure: Regenerate with self.
13749 2002-08-30 Kevin Ryde <user42@zip.com.au>
13751 * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
13754 2002-08-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13756 * bin/autom4te.in (Request::load): Correctly test for "do" read
13759 2002-08-29 Akim Demaille <akim@epita.fr>
13761 * lib/Autom4te/General.pm (&xqx): New.
13762 (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
13763 hand, which is not portable.
13765 * bin/autom4te.in: Use them.
13766 Use &error instead of die.
13767 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
13770 2002-08-17 Paul Eggert <eggert@twinsun.com>
13772 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
13773 default list of compilers to try, since it was long ago superseded
13774 by the ksh fc builtin. Suggested by Steven G. Johnson.
13776 2002-07-31 Alexandre Duret-Lutz <duret_g@epita.fr>
13778 * doc/autoconf.texi (Invoking autom4te): End the option table,
13779 fixing a bug introduced by the previous patch.
13780 (Limitations of Make): Add a 'target lookup' subentry in the
13781 'VPATH' entry. Rewrite all `make' occurences as `@command{make}'.
13783 2002-07-29 Mark D. Roth <roth@feep.net>
13785 * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
13786 options and use $AUTOM4TE_PATH.
13787 * doc/autoconf.texi: Remove documentation of autom4te
13788 --include-envvar and --site-macro-subdir options and document
13789 use of $AUTOM4TE_PATH.
13790 * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
13791 arguments from each language section.
13793 2002-07-29 Paul Eggert <eggert@twinsun.com>
13795 * doc/install.texi: Include copyright symbol in copyright notice.
13797 * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
13799 (AM_MAKEINFOFLAGS): New macro.
13800 * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
13801 * Makefile.am (INSTALL): Use the new macros.
13802 Use -o rather than --output, since "missing" does not grok --output.
13804 2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
13806 * doc/autoconf.texi (Limitations of Make): Escaped newlines in
13807 comments do not always work. Never trust the exit status of
13810 2002-07-24 Kevin Ryde <user42@zip.com.au>
13812 * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
13813 Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
13815 2002-07-23 Paul Eggert <eggert@twinsun.com>
13817 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
13818 Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
13819 apparently treats PATH="nonexistent" as if it contained ".".
13820 Bug reported by Stefan `Sec' Zehl.
13822 2002-07-22 Alexandre Duret-Lutz <duret_g@epita.fr>
13824 * doc/autoconf.texi (Limitations of Make): Mention the special
13825 handling of the obj/ directory by BSD make.
13827 2002-07-20 Kevin Ryde <user42@zip.com.au>
13829 * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
13832 2002-07-19 Akim Demaille <akim@epita.fr>
13834 * doc/autoconf.texi (Function Portability): `exit'.
13835 (Programming in M4sh): Ethymology of M4sh.
13837 2002-07-19 Akim Demaille <akim@epita.fr>
13839 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
13841 2002-07-18 Akim Demaille <akim@epita.fr>
13845 2002-07-18 Akim Demaille <akim@epita.fr>
13847 * config/config.guess, config/config.sub: Update.
13849 2002-07-18 Akim Demaille <akim@epita.fr>
13851 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
13854 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
13855 * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
13856 * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
13858 2002-07-18 Akim Demaille <akim@epita.fr>,
13859 Alexandre Duret-Lutz <duret_g@epita.fr>
13861 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
13862 _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
13864 2002-07-17 Russ Allbery <rra@stanford.edu>
13866 * doc/autoconf.texi (Initializing configure): Clarify the
13867 description of the tarname default.
13869 2002-07-17 Andreas Buening <andreas.buening@nexgo.de>
13871 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
13872 ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
13873 latter was not run.
13875 2002-07-17 Akim Demaille <akim@epita.fr>
13877 * lib/Autom4te/General.pm (find_file): Browse the directories in
13878 the order they are given.
13880 2002-07-17 Akim Demaille <akim@epita.fr>
13882 * tests/wrapsh.as, tests/wrappl.as: Merge into...
13883 * tests/wrapper.as: this.
13884 * tests/Makefile.am, configure.ac: Adjust.
13886 2002-07-17 Mark D. Roth <roth@feep.net>
13888 * configure.ac: Add --enable-site-macro-dir option.
13889 * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
13890 * bin/autom4te.in: Add --prepend-include, --include-envvar, and
13891 --site-macro-subdir options.
13892 * bin/autoconf.in: Add --prepend-include option.
13893 * bin/autoheader.in: Add --prepend-include option.
13894 * bin/autoreconf.in: Add --prepend-include option.
13895 * bin/autoscan.in: Add --prepend-include option.
13896 * bin/autoupdate.in: Add --prepend-include option.
13897 * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
13898 macro directory, remove note that include path directories are
13899 used in reverse order, and document --prepend-include option.
13900 * lib/autom4te.in: Use --prepend-include instead of --include.
13901 * tests/wrapsh.in: Use --prepend-include instead of --include.
13903 2002-07-17 Akim Demaille <akim@epita.fr>
13905 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
13907 * doc/autoconf.texi (Initializing configure): Adjust.
13909 2002-07-17 Akim Demaille <akim@epita.fr>
13911 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
13912 (_AC_FUNC_MALLOC): New.
13913 (AC_FUNC_MALLOC): Use the latter.
13914 Define HAVE_MALLOC to 0 if broken.
13915 * doc/autoconf.texi (Particular Functions): Adjust.
13917 2002-07-16 Akim Demaille <akim@epita.fr>
13919 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
13920 * doc/autoconf.texi (C Compiler): Adjust.
13922 2002-07-09 Akim Demaille <akim@epita.fr>
13924 * doc/autoconf.texi: Properly set the ``header'' part.
13926 2002-07-09 Akim Demaille <akim@epita.fr>
13928 * doc/autoconf.texi (Systemology): Some about Darwin.
13930 2002-07-09 Alexandre Duret-Lutz <duret_g@epita.fr>
13932 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
13933 Don't use AC_REQUIRE in AU_DEFUN.
13935 2002-07-09 Art Haas <ahaas@neosoft.com>
13937 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
13939 2002-07-02 Alexandre Duret-Lutz <duret_g@epita.fr>
13941 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13942 bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
13943 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
13944 so that Emacs setups GNU style for perl-mode and cperl-mode.
13946 2002-06-27 Paul Eggert <eggert@twinsun.com>
13948 * config/install-sh: Quote $src. Prefer || to test's -o option,
13949 as per "Limitations of Builtins".
13950 * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
13951 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
13953 * tests/mktests.sh: Use grep instead of fgrep, as per
13954 "Limitations of Builtins".
13956 2002-06-15 Paul Eggert <eggert@twinsun.com>
13958 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
13959 autom4te_perllibdir): Set to top build dir or src dir as appropriate,
13960 so that we consistently test the just-built programs.
13961 * tests/wrappl.as: Likewise.
13963 2002-06-12 Paul Eggert <eggert@twinsun.com>
13965 * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
13966 name, so that symlinks to 'autoconf' work properly. Bug reported
13968 * bin/autoheader.in (AUTOM4TE): Likewise.
13969 * bin/autoreconf.in (autoconf, autoheader): Likewise.
13970 * bin/autoscan.in (autom4te): Likewise.
13971 * bin/autoupdate.in (autom4te): Likewise.
13973 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
13974 btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
13977 2002-06-11 Andreas Schwab <schwab@suse.de>
13979 * doc/autoconf.texi: Add more dir entries.
13981 2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
13983 * bin/autom4te.in ($cache): Don't define using `$me', the name
13984 of the cache should not depend on the name under which autom4te
13987 2002-06-07 Akim Demaille <akim@epita.fr>
13989 * tests/tools.at (autoconf: forbidden tokens, basic)
13990 (autoconf: forbidden tokens, exceptions): Adjust to the change of
13991 words in autom4te.in.
13993 2002-06-07 Peter Eisentraut <peter_e@gmx.net>
13995 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
13996 _AC_LANG_PROGRAM_C_F77_HOOKS.
13998 2002-06-07 Akim Demaille <akim@epita.fr>
14000 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
14002 (AC_REPLACE_FNMATCH): this.
14003 * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
14004 AC_FUNC_FNMATCH_GNU.
14006 2002-06-07 Akim Demaille <akim@epita.fr>
14008 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
14009 Rosetta Stone for Unix.
14011 2002-06-07 Akim Demaille <akim@epita.fr>
14013 * bin/autom4te.in (warn_forbidden): When rejecting a token,
14014 suggest m4_pattern_allow.
14015 Suggested by Adam J. Richter.
14017 2002-06-07 Akim Demaille <akim@epita.fr>
14019 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
14020 ac_config_libobj_dir.
14021 (AC_CONFIG_LIBOBJ_DIR): New.
14022 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
14023 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
14024 Use ac_config_libobj_dir to find the replacement files.
14025 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
14026 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
14027 (AC_REPLACE_FNMATCH_GNU): these.
14028 (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
14029 * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
14030 * tests/mktests.sh (ac_exclude_list): Don't check
14031 AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
14033 2002-06-06 Paul Eggert <eggert@twinsun.com>
14035 * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
14036 if ln doesn't work.
14038 * doc/autoconf.texi (Configuration Links): Likewise.
14039 (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
14041 2002-06-05 Paul Eggert <eggert@twinsun.com>
14043 * config/config.guess, config/config.sub, config/texinfo.tex:
14044 Update from masters.
14046 2002-05-29 Paul Eggert <eggert@twinsun.com>
14048 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
14049 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
14050 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
14052 * lib/autoconf/Makefile.am (check-local): Likewise.
14053 * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
14054 * lib/autoconf/types.m4 (commentary only): Likewise.
14055 * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
14056 * lib/autotest/Makefile.am (check-local): Likewise.
14057 * lib/m4sugar/Makefile.am (check-local): Likewise.
14058 * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
14059 * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
14061 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
14062 * doc/autoconf.texi (Particular Programs): Document them.
14063 (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
14066 2002-05-27 Paul Eggert <eggert@twinsun.com>
14068 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
14069 * NEWS, doc/autoconf.texi (Particular Types): Document it.
14070 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
14071 instead of AC_MBSTATE_T, which never existed.
14073 2002-05-23 Akim Demaille <akim@epita.fr>
14075 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
14076 version of Autoconf that is discussed.
14078 2002-05-22 Paul Eggert <eggert@twinsun.com>
14080 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
14081 from the default list of compilers to try. Suggested by
14083 * NEWS: Document the above.
14084 * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
14086 2002-05-17 Paul Eggert <eggert@twinsun.com>
14088 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
14089 the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
14090 This improves on an earlier suggestion by H. Peter Anvin.
14092 2002-05-16 Paul Eggert <eggert@twinsun.com>
14094 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
14095 AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
14096 Both macros now accept an optional source-dir arg.
14097 New macro AC_GNU_SOURCE to define _GNU_SOURCE.
14099 * NEWS: Document this.
14100 * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
14102 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
14103 (AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
14104 not for GNU extensions; this undoes part of the 2000-11-03 change,
14105 reverting to 2.13-compatible behavior.
14106 Add new optional argument DIR.
14107 (AC_FUNC_FNMATCH_GNU): New macro.
14109 * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
14111 2002-05-08 Paul Eggert <eggert@twinsun.com>
14113 * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
14114 Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
14115 and it causes a 'test' syntax error if it fails.
14116 Bug reported by Stephen Gildea.
14118 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
14119 If prototypes are supported, use them to check this at compile-time,
14120 instead of trying to check it at run-time. If we must do a run-time
14121 check, assume that setvbuf is standard when cross-compiling, as
14122 nonstandard setvbuf occurs only on ancient and unlikely hosts.
14123 Bug reported by Paul D. Smith.
14125 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
14126 argument specifying location of getloadavg.c. This removes a
14127 FIXME. This idea was taken from Jim Meyering's implementation in
14129 * doc/autoconf.texi (Particular Functions): Document this.
14130 Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
14131 that's what the code does; this fixes a bug reported by
14134 2002-05-03 Akim Demaille <akim@epita.fr>
14136 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
14137 autopoint instead of gettextize.
14138 ($uses_alocal): Rename as...
14139 ($uses_aclocal): this.
14140 * doc/autoconf.texi (autoreconf Invocation): Adjust.
14141 Suggested by Bruno Haible.
14143 2002-05-03 Akim Demaille <akim@epita.fr>
14145 * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
14147 2002-04-29 Paul Eggert <eggert@twinsun.com>
14149 * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
14150 files to be 1 second older; just set them to be the same time.
14151 Also, sleep 1 second after the first aclocal, to work around
14152 problems with sub-second time stamps on the input files.
14154 2002-04-29 Thien-Thi Nguyen <ttn@gnu.org>
14156 * doc/autoconf.texi: Mention "set -e -x" lossage
14157 under node "Limitations of Builtins".
14159 2002-04-29 Akim Demaille <akim@epita.fr>
14161 * doc/install.texi: Better wording for setting variables when
14163 From Christian Cornelssen.
14165 2002-04-29 Akim Demaille <akim@epita.fr>
14167 * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
14168 of lack of $LINENO support, then the test will compare the $LINENO
14169 in testsuite vs. the lineno in the test file. This is wrong, of
14171 Be sure to protect it.
14172 Reported by Patrick Welche.
14174 2002-04-25 Akim Demaille <akim@epita.fr>
14176 * doc/autoconf.texi (Obsolete Macros): Typo.
14177 Reported by Vladimir Volovich.
14179 2002-04-25 Akim Demaille <akim@epita.fr>
14181 * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
14182 than some of the input files, hence, on the second run of aclocal,
14183 if some of its input are younger, make them older.
14184 Suggested by Paul Eggert.
14186 2002-04-25 Akim Demaille <akim@epita.fr>
14188 * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
14189 Thanks to Paul Eggert.
14191 2002-04-25 Akim Demaille <akim@epita.fr>
14193 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
14194 and ac_subst_vars be sh variables containing the list of
14195 AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
14197 (_AC_INIT_PREPARE): Use them to log them.
14198 (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
14199 (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
14200 _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
14201 _AC_SUBST_FILES and _AC_SUBST_VARS.
14202 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
14204 2002-04-24 Akim Demaille <akim@epita.fr>
14206 * bin/autoreconf.in (autoreconf): Run automake after autoconf and
14207 autoheader, so that automake does not complain about a missing
14208 config.h.in that was to be created.
14210 2002-04-23 Akim Demaille <akim@epita.fr>
14212 * bin/autoheader.in (parse_args): --warning takes an argument.
14215 2002-04-22 Peter Eisentraut <peter_e@gmx.net>
14217 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
14218 and bb.out when cleaning up.
14220 2002-04-22 Akim Demaille <akim@epita.fr>
14224 2002-04-22 Akim Demaille <akim@epita.fr>
14226 * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
14228 2002-04-22 Akim Demaille <akim@epita.fr>
14230 * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
14232 Reported by Gregory Giannoni.
14234 2002-04-22 Akim Demaille <akim@epita.fr>
14236 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
14237 Fixes false failures on Darwin.
14239 2002-04-21 Paul Eggert <eggert@twinsun.com>
14241 * TODO, bin/autoupdate.in, doc/autoconf.texi,
14242 lib/autoconf/general.m4, lib/autoconf/libs.m4,
14243 lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
14244 tests/tools.at: Minor spelling and grammar fixes.
14246 2002-04-20 Paul Eggert <eggert@twinsun.com>
14248 * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
14249 ZSH_VERSION fixes. Bug reported by Raja R Harinath.
14250 * lib/autotest/general.m4 (AT_INIT): Likewise.
14251 * tests/atgeneral.m4 (AT_INIT): Likewise.
14253 2002-04-19 Paul Eggert <eggert@twinsun.com>
14255 * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
14256 doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
14257 lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
14258 lib/autoconf/functions.m4, lib/autoconf/general.m4,
14259 lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
14260 lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
14261 tests/atspecific.m4, tests/semantics.at, tests/torture.at:
14262 Minor spelling and grammar fixes.
14264 * doc/autoconf.texi: Follow the outline suggested in the GNU
14265 Sample Texts sections of the Texinfo 4.2 manual. Most
14266 importantly, this makes sure that the copyright notices appear in
14267 all output formats. You probably need Texinfo 4.2 to generate
14270 Fix some bugs when using "$@" when there might be zero positional
14271 arguments in cases where this matters.
14273 * bin/autoconf.as: Rewrite so that the problem does not come up.
14274 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
14275 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
14276 * lib/autotest/general.m4 (AT_INIT): Likewise.
14278 * bin/autoheader.in: Use 'case' statement to work around problem.
14279 * bin/auto4mte.in: Likewise.
14280 * bin/autoreconf.in: Likewise.
14281 * bin/autoscan.in: Likewise.
14282 * bin/autoupdate.in: Likewise.
14283 * bin/ifnames.in: Likewise.
14285 * doc/autoconf.texi (Shell Substitutions): Document the problem.
14287 * lib/autotest/general.m4 (AT_INIT):
14288 Use Zsh alias to work around problem.
14289 * tests/atgeneral.m4 (AT_INIT): Likewise.
14291 * tests/c.at: We can't have zero arguments, so remove workaround
14292 that is not portable to Zsh.
14294 2002-04-19 Alexandre Duret-Lutz <duret_g@epita.fr>
14296 * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
14297 from aclocal.m4 too.
14299 2002-04-12 Akim Demaille <akim@epita.fr>
14301 * tests/wrappl.as: New, M4sh precursor of wrappl.in.
14303 2002-04-10 Akim Demaille <akim@epita.fr>
14305 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
14306 workaround for ${1+"$@"}.
14307 * doc/autoconf.texi (Shell Substitutions): Explain it.
14308 From Oliver Kiddle and Peter Stephenson.
14310 Have M4sh perform minimal shell sanitizing.
14312 * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
14314 (_AS_PREPARE): this new macro.
14316 (AS_INIT): Invoke AS_SHELL_SANITIZE.
14317 * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
14319 Adjust Autoconf and Autotest.
14321 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
14322 AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
14323 * lib/autotest/general.m4 (AT_INIT): Likewise.
14324 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
14325 Invoke _AS_PREPARE (not AS_PREPARE) in addition to
14328 Use this M4sh to generate Autoconf's shell scripts.
14330 * tests/wrapsh.as: New, precursor of wrapsh.in.
14331 * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
14332 on Autotest and M4sh.
14333 ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
14334 (wrapsh.in): New target.
14335 * bin/autoconf.as: New, precursor of autoconf.in.
14336 (autoconf.in): New target.
14338 2002-04-09 Alexandre Duret-Lutz <duret_g@epita.fr>
14340 * doc/autoconf.texi (Limitations of Make): Mention the issue
14341 with indented comments in rules.
14343 2002-04-09 Andreas Schwab <schwab@suse.de>
14345 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
14346 ac_top_builddir when setting ac_abs_top_builddir.
14348 2002-04-06 Kevin Ryde <user42@zip.com.au>
14350 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
14351 (Portable Shell): Cross reference to Systemology.
14353 2002-04-05 Akim Demaille <akim@epita.fr>
14355 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
14356 directories when descending in a SUBDIRS.
14357 Reported by Ezra Peisach.
14359 2002-04-04 Andreas Schwab <schwab@suse.de>
14361 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
14362 contains no literal separators.
14364 2002-04-03 Akim Demaille <akim@epita.fr>
14366 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
14367 (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
14368 Use dnl, not the KILL diversion.
14370 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
14371 (AC_CONFIG_LINKS): here.
14373 Don't use the KILL diversion, as it kills spurious output, which
14374 results in failures being hidden.
14375 Use m4_defn where appropriate.
14376 (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
14377 after the second argument.
14379 * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
14380 syntax, as it is provided by M4sugar.
14381 * tests/torture.at (Multiple AC_CONFIG_FILES): New.
14383 2002-04-03 Andreas Schwab <schwab@suse.de>
14385 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
14386 expanded if $# <= 2.
14388 * bin/autoreconf.in (autoreconf): Run automake after rerunning
14391 2002-04-03 Akim Demaille <akim@epita.fr>
14393 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
14394 (_AC_COMPILER_EXEEXT_REJECT): New.
14395 Also recognize *.bb and *.bbg as compilation byproducts.
14396 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
14397 (_AC_COMPILER_OBJEXT): Use them.
14398 Fixes Debian #138666.
14400 2002-04-02 Peter Eisentraut <peter_e@gmx.net>
14402 Integrate AC_PROG_CC_STDC into AC_PROG_CC.
14404 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
14405 AU_DEFUN old name. Use _AC_COMPILE_IFELSE.
14406 (AC_PROG_CC): Call _AC_PROG_CC_STDC.
14407 (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
14408 (AC_C_CONST): Same.
14409 (AC_C_INLINE): Same.
14410 (AC_C_PROTOTYPES): Same. Require AC_PROG_CC instead.
14411 * doc/autoconf.texi, NEWS: Document.
14412 * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
14415 2002-04-02 Akim Demaille <akim@epita.fr>
14417 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
14418 _AS_MKDIR_P_PREPARE.
14420 2002-03-28 Kevin Ryde <user42@zip.com.au>
14422 * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
14423 to avoid versions of HP C which don't allow that.
14425 2002-03-27 Paul Eggert <eggert@twinsun.com>
14427 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
14428 (AS_SHELL_SANITIZE): Invoke it.
14429 (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
14431 2002-03-26 Akim Demaille <akim@epita.fr>
14433 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
14435 2002-03-26 Akim Demaille <akim@epita.fr>
14437 * doc/autoconf.texi (Introduction): The GNATS base moved.
14439 2002-03-25 Paul Eggert <eggert@twinsun.com>
14441 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
14442 as POSIX requires, as it doesn't work with Zsh.
14443 * doc/autoconf.texi (Assignments): Document the problem.
14445 2002-03-25 Alexandre Duret-Lutz <duret_g@epita.fr>
14447 * doc/autoconf.texi (Limitations of Make): Mention more issue
14448 about VPATH, overriding of macros in sub-makes, and handling of
14451 2002-03-21 Paul Eggert <eggert@twinsun.com>
14453 * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
14454 problem with here-document buffer boundaries.
14456 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
14457 when reinvoking the shell, to work around problems with installers
14458 who put strange things like "cd" commands in their environments.
14460 2002-03-19 Akim Demaille <akim@epita.fr>
14462 * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
14465 2002-03-19 Akim Demaille <akim@epita.fr>
14467 * bin/autoscan.in (scan_file): Specify the location in `&used'
14471 2002-03-19 Akim Demaille <akim@epita.fr>
14473 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
14474 From Nishio Futoshi.
14476 2002-03-19 Akim Demaille <akim@epita.fr>
14478 * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
14480 2002-03-18 Paul Eggert <eggert@twinsun.com>
14482 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
14483 (Limitations of Usual Tools): Add mkdir section.
14485 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
14486 (AS_MKDIR_P): Require it. Use mkdir -p if available, falling
14487 back on AS_DIRNAME to compute prefixes otherwise; this is
14488 roughly what mkinstalldirs does. That way, we need not have
14489 our own filename disassembler. The old disassembler did not
14490 work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
14492 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
14493 Create at_test_all by a series of assignments,
14494 not by a single assignment of a long string. The latter causes ksh
14495 version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
14496 presumably because of a buffer overrun.
14498 2002-03-14 Paul Eggert <eggert@twinsun.com>
14500 * lib/autotest/general.m4 (at_times_skip):
14501 Renamed from at_times. Now a boolean.
14502 ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
14503 says 'times: not found'.
14505 2002-03-14 Akim Demaille <akim@epita.fr>
14507 * bin/autoreconf.in (&study_gettextize): New.
14508 (&autoreconf): Handle newest gettextize.
14509 Rerun aclocal if needed.
14510 Suggested by Andreas Schwab.
14512 2002-03-13 Akim Demaille <akim@epita.fr>
14514 * doc/autoconf.texi (Special Shell Variables): More about IFS.
14516 2002-03-13 Akim Demaille <akim@epita.fr>
14518 * doc/autoconf.texi (Header Portability): New.
14519 Add information about stdint.h and inttypes.h from Paul Eggert.
14521 2002-03-13 Akim Demaille <akim@epita.fr>
14523 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
14527 2002-03-12 Akim Demaille <akim@epita.fr>
14529 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
14532 2002-03-11 Andreas Schwab <schwab@suse.de>
14534 * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
14535 does not do it if --with-lispdir is given.
14537 2002-03-08 Akim Demaille <akim@epita.fr>
14541 2002-03-08 Akim Demaille <akim@epita.fr>
14543 * doc/autoconf.texi (Subdirectories): Clarify that the
14544 subdirectory should exist.
14546 2002-03-08 Akim Demaille <akim@epita.fr>
14548 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
14550 2002-03-08 Akim Demaille <akim@epita.fr>
14552 * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
14553 aliases the actual variables, and modifications of the former
14556 2002-03-08 Akim Demaille <akim@epita.fr>
14558 * bin/autom4te.in (&handle_m4): Protect us from corrupted file
14559 because of C-c: have m4 output in tmp files, then mv them.
14561 2002-03-08 Akim Demaille <akim@epita.fr>
14563 * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
14564 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
14565 * bin/ifnames.in: Copyright update.
14567 2002-03-08 Akim Demaille <akim@epita.fr>
14569 * doc/autoconf.texi (Invoking autom4te): New.
14571 2002-03-05 Akim Demaille <akim@epita.fr>
14573 * doc/autoconf.texi (Specifying Names): Clarification suggested by
14576 2002-03-05 Akim Demaille <akim@epita.fr>
14580 2002-03-04 Akim Demaille <akim@epita.fr>
14582 * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
14583 * lib/autoconf/general.m4 (AC_INIT): More informative error
14584 message for LIBOBJ.
14586 2002-03-04 Akim Demaille <akim@epita.fr>
14588 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
14591 2002-03-04 Akim Demaille <akim@epita.fr>
14593 * doc/autoconf.texi (Transforming Names): Equality between target
14594 and host is irrelevant.
14595 (Specifying Names, Canonicalizing): Remove all references to the
14596 backward compatibility hooks. Rather, collect them all into...
14597 (Hosts and Cross-Compilation): this new section.
14598 * doc/install.texi (System Type): Ditto.
14599 * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
14600 that `--host' implies cross-compilation.
14602 2002-03-04 Akim Demaille <akim@epita.fr>
14604 * doc/autoconf.texi (Evaluation Macros): New.
14605 * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
14607 (_m4_foreach): Define the variant with immediate evaluation so
14608 that it contains exactly the items, not an expression which
14609 evaluation is the current item.
14610 (m4_re_string, m4_re_word): Don't over quote them.
14612 2002-03-04 Akim Demaille <akim@epita.fr>
14614 Instead of having stacking `shift's evaluated at the end, let
14615 `foreach' loops immediately evaluate them.
14617 * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
14618 $*. This is the n-th time I change my mind, but hopefully this is
14621 (m4_text_wrap): Use m4_foreach, which is finally correct _and_
14623 (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
14624 it was only a hack for m4_text_wrap.
14625 (m4_car2): Remove, replaced by...
14627 (_m4_foreach): Adjust.
14628 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
14629 m4_bpatsubst for clarification.
14631 2002-03-04 Akim Demaille <akim@epita.fr>
14633 * doc/autoconf.texi (Changequote is Evil): New.
14635 2002-03-03 Kevin Ryde <user42@zip.com.au>
14637 * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
14638 on old systems like SunOS.
14640 2002-03-01 Peter Eisentraut <peter_e@gmx.net>
14642 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
14643 lib/autoconf/functions.m4, lib/autoconf/general.m4,
14644 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
14645 lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
14648 2002-02-28 Akim Demaille <akim@epita.fr>
14650 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
14651 message to be sent.
14653 2002-02-28 Kevin Ryde <user42@zip.com.au>
14655 * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
14657 2002-02-25 Akim Demaille <akim@epita.fr>
14659 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
14660 From Akinori Musha.
14662 2002-02-13 Alexandre Duret-Lutz <duret_g@epita.fr>
14664 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
14665 translate \r\n to \n.
14667 2002-02-07 Akim Demaille <akim@epita.fr>
14671 2002-02-07 Akim Demaille <akim@epita.fr>
14673 Fix Autoconf PR/209.
14674 Also reported by Frank Denis.
14676 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
14678 2002-02-07 Akim Demaille <akim@epita.fr>
14680 Fix Autoconf PR/207:
14681 AC_PREFIX_PROGRAM fails with dashed program names
14683 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
14684 variable when looking for the prefix program.
14685 Now it also works for shell variables.
14687 2002-02-07 Akim Demaille <akim@epita.fr>
14689 * doc/autoconf.texi (Limitations of Builtins): More about
14692 2002-02-06 Akim Demaille <akim@epita.fr>
14694 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
14695 case/esac, some shells don't support it.
14696 Reported by Zack Weinberg.
14697 * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
14699 2002-02-06 Akim Demaille <akim@epita.fr>
14701 * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
14702 sure not to introduce newlines in at_groups.
14703 * lib/autotest/Makefile.am (autotest.m4f): Typo.
14705 2002-02-06 Akim Demaille <akim@epita.fr>
14707 * tests/torture.at (Configuring subdirectories): Skip if aclocal
14710 2002-02-05 Paul Eggert <eggert@twinsun.com>
14712 * doc/autoconf.texi (Specific Compiler Characteristics):
14713 Describe HP-UX cc bug workaround more accurately.
14714 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
14716 * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
14717 cross-compilers, too. This undoes some of the most recent change
14720 2002-02-05 Akim Demaille <akim@epita.fr>
14722 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
14723 to make sure they are up to date when `check' is run.
14725 2002-02-05 Akim Demaille <akim@epita.fr>
14727 * doc/autoconf.texi (Making testsuite Scripts): Document
14730 2002-02-05 Akim Demaille <akim@epita.fr>
14732 * lib/freeze.mk: New.
14734 2002-02-05 Akim Demaille <akim@epita.fr>
14736 Implement `autom4te --freeze'.
14738 * bin/autom4te.in (&freeze): New.
14739 * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
14740 * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
14742 2002-02-05 Akim Demaille <akim@epita.fr>
14744 * bin/autom4te.in (&parse_args): Implement `frozen files are
14745 optional are the sum of the previous files on the command line'.
14746 Also, pass `--reload-state=' on them, so...
14747 (handle_m4): don't.
14748 * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
14749 (M4sh): Rely on M4sugar.
14750 (Autotest, M4sh, M4sugar): Use frozen files.
14752 2002-01-31 Akim Demaille <akim@epita.fr>
14754 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
14755 * doc/autoconf.texi (Initializing configure): Adjust.
14757 2002-01-30 Akim Demaille <akim@epita.fr>
14759 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
14760 alphanumeric to `-' instead of `_'.
14762 2002-01-30 Akim Demaille <akim@epita.fr>
14764 * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
14765 for plain code, the other for cross-compilation code. The latter
14766 is now run with GCC only.
14767 * doc/autoconf.texi (Compilers and Preprocessors): New.
14769 2002-01-30 Akim Demaille <akim@epita.fr>
14771 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
14773 * doc/autoconf.texi (Initializing configure): Explain how to
14774 change AC_INIT default values.
14776 2002-01-29 Akim Demaille <akim@epita.fr>
14778 * tests/torture.at (Configuring subdirectories): Use configure.in,
14779 so that aclocal 1.4 works.
14780 Reported by Alexandre Duret-Lutz and Larry Schmitt.
14782 2002-01-28 Akim Demaille <akim@epita.fr>
14784 * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
14787 2002-01-28 Akim Demaille <akim@epita.fr>
14789 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
14790 AUTOTEST_PATH *after* it was set.
14791 Don't put `.' in the PATH: the user should be precise and `./' if
14792 needed. In addition, given that the test suite does some `cd', if
14793 `.' is in the path, the `tested programs' sections will report
14794 programs found in the test suite's directory, while during the
14795 tests (performed in their own directory), these programs are no
14796 longer visible. In other words, the results is confusing and
14798 * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
14800 2002-01-24 Akim Demaille <akim@epita.fr>
14804 2002-01-24 Akim Demaille <akim@epita.fr>
14806 * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
14807 * doc/autoconf.texi: Finally add Akim as an author.
14809 2002-01-24 Akim Demaille <akim@epita.fr>
14811 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
14812 (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
14813 Bourne. Use /bin/sh.
14814 From Andreas Buening.
14816 2002-01-24 Akim Demaille <akim@epita.fr>
14818 * config/config.guess, config/config.sub, config/texinfo.tex:
14819 Update from masters.
14821 2002-01-24 Akim Demaille <akim@epita.fr>
14823 * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
14824 * config/auxdir.m4, config/cond.m4, config/depend.m4,
14825 * config/init.m4, config/install-sh.m4, config/lispdir.m4,
14826 * config/missing.m4, config/sanity.m4, config/select.m4,
14827 * config/strip.m4: Remove, to ease sync'ing with any version of
14830 2002-01-24 Akim Demaille <akim@epita.fr>
14832 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
14833 (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
14834 Reported by Geir Ove Myhr.
14836 2002-01-21 Akim Demaille <akim@epita.fr>
14838 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
14840 2002-01-21 Akim Demaille <akim@epita.fr>
14842 * lib/Autom4te/General.pm (getopt): Use a more GNUish error
14843 message on invalid options.
14844 * bin/autom4te.in (parse_args): Don't use
14845 Autoconf::General::getopt with non valid options.
14847 2002-01-17 Jim Meyering <meyering@lucent.com>
14849 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
14850 $ac_cv_exeext so we don't use an old, invalid, cached value.
14852 2002-01-11 Akim Demaille <akim@epita.fr>
14854 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
14856 * doc/autoconf.texi (Function Portability): Document the strnlen
14858 (Particular Functions): Document AC_FUNC_STRNLEN.
14859 * lib/autoscan/functions: Adjust.
14861 2002-01-06 Akim Demaille <akim@epita.fr>
14863 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
14864 package.m4, since is really depends upon configure.ac, not
14866 * doc/autoconf.texi (testsuite Scripts): Adjust.
14867 * tests/Makefile.am (package.m4): New.
14868 EXTRA_DIST it since its a source.
14870 2002-01-06 Akim Demaille <akim@epita.fr>
14872 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
14873 of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
14874 and PACKAGE_BUGREPORT from here...
14875 (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
14877 (_AC_INIT_PREPARE): AC_DEFINE these symbols.
14878 * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
14879 (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
14880 * tests/tools.at (autoheader): Adjust.
14881 * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
14883 2002-01-06 Akim Demaille <akim@epita.fr>
14885 * bin/autoscan.in (scan_file): Use `&used'.
14887 2002-01-03 Akim Demaille <akim@epita.fr>
14889 * doc/autoconf.texi (Output): Improved wording regarding use of
14893 2001-12-18 Kevin Ryde <user42@zip.com.au>
14895 * doc/autoconf.texi (Function Portability): Add notes on sscanf
14896 sometimes needing writable input.
14898 2001-12-17 Jim Meyering <meyering@lucent.com>
14900 * doc/autoconf.texi (New Macros): Tweak wording.
14902 2001-12-14 Akim Demaille <akim@epita.fr>
14904 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
14905 trailing files, don't apply `-rf' to files which might not be
14906 created by configure (core, core.*, and *.core), but just `rm -f'.
14907 Suggested by Jonathan Kamens.
14909 2001-12-14 Aaron M. Ucko <amu@alum.mit.edu>
14911 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
14913 2001-12-14 Akim Demaille <akim@epita.fr>
14915 * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
14917 2001-12-13 Peter Eisentraut <peter_e@gmx.net>
14919 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
14920 abs_builddir, top_buildpath to abs_top_builddir, srcpath to
14921 abs_srcdir, top_srcpath to abs_top_srcdir.
14922 (_AC_OUTPUT_FILES): Adjust.
14923 * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
14924 * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
14925 * tests/wrappl.in, tests/wrapsh.in: Adjust.
14927 2001-12-12 Steven G. Johnson <stevenj@alum.mit.edu>
14929 * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
14930 C/Fortran linking on HP/UX, by extracting the Fortran library
14931 search path from the LPATH line in the $F77 -v output.
14933 2001-12-12 Kevin Ryde <user42@zip.com.au>
14935 * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
14936 forbidden file descriptors table.
14938 2001-11-26 Akim Demaille <akim@epita.fr>
14940 * bin/autoscan.in (%c_keywords): Build it at top level.
14941 Map to 1 in order to simplify its uses.
14943 2001-11-26 Akim Demaille <akim@epita.fr>
14945 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
14946 Remove $filepath, useless.
14947 (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
14948 variables, they are really part of the tokens.
14949 Split the input line on spaces and then look for tokens.
14950 Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
14951 because of `lex$U.$(OBJEXT)'.
14952 (&scan_files): Use "@list" instead of join.
14953 * doc/Makefile.am (CLEANFILES): Add *.fns.
14955 2001-11-26 Akim Demaille <akim@epita.fr>
14957 * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
14958 Remove, replaced by...
14959 * tests/wrappl.in: Be common for all the Perl executables.
14960 In particular autoscan and autoheader want -I.
14961 * configure.ac: Adjust.
14962 * lib/autoscan/headers: errno.h is portable.
14964 2001-11-26 Akim Demaille <akim@epita.fr>
14966 * bin/autoscan.in (used): New.
14969 2001-11-26 Akim Demaille <akim@epita.fr>
14971 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
14973 (&scan_sh_file): Remove a duplicate pattern.
14974 (&check_configure_ac): Use long options.
14975 * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
14977 2001-11-26 Akim Demaille <akim@epita.fr>
14979 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
14980 Before, having a line containing the opening of a multi line
14981 comment made the whole line be ignored.
14983 2001-11-26 Akim Demaille <akim@epita.fr>
14985 * doc/autoconf.texi (Using an Autotest Test Suite): New.
14986 (testsuite Scripts): Be one of its subsection.
14987 (Autotest Logs): New.
14989 2001-11-26 Akim Demaille <akim@epita.fr>
14991 Test groups are now run two directories deeper.
14993 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
14994 top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
14996 * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
14997 top_srcdir, builddir and top_builddir.
14998 Use `at_*dir' relatively to the directory containing the
14999 suite, use `*dir' when relatively to the current group dir.
15001 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
15003 * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
15004 lib/autoconf/functions.m4, lib/autoconf/headers.m4,
15005 tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
15008 2001-11-22 Alexandre Duret-Lutz <duret_g@epita.fr>
15010 * doc/autoconf.texi (Using System Type): Add an example of `case
15011 $host' usage so people quit using `case $target' everywhere.
15013 2001-11-22 Akim Demaille <akim@epita.fr>
15015 * doc/autoconf.texi (Installation Directory Variables): Englishoes
15016 spotted by Jim Meyering.
15018 2001-11-16 Paul Eggert <eggert@twinsun.com>
15020 This patch implements a `long double' suggestion by Oliver Kiddle.
15022 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
15023 static, to catch errors if the value isn't known at compile-time
15024 and the compiler supports dynamic arrays. Change its name from
15025 `_array_' to `test_array' to avoid potential name clashes.
15026 (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
15027 test. Do not define HAVE_LONG_DOUBLE if `long double' is no
15028 better than double. Catch a bug in GCC 2.95.2 x86.
15029 * doc/autoconf.texi (C Compiler): Document the above.
15032 2001-11-13 Akim Demaille <akim@epita.fr>
15034 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
15036 * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
15038 2001-11-13 Akim Demaille <akim@epita.fr>
15040 * lib/autotest/general.m4 (AT_INIT): After having run the test
15041 group, go back to the initial directory, not to at_suite_dir.
15043 2001-11-13 Akim Demaille <akim@epita.fr>
15045 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
15046 (AT_DATA_AUTOCONF): Also protect @&t@ from autom4te.
15047 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
15049 (AT_CHECK_CONFIGURE): Use absolute paths.
15050 (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
15051 The problem is still the old one: there is no means in M4 (that I
15052 know about) to create a defining macro, because there is no means
15053 to create `$1' etc., therefore, the defining macro ``swallows''
15054 all the arguments meant to the defined macro.
15056 2001-11-13 Akim Demaille <akim@epita.fr>
15058 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
15059 (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
15061 * tests/aclocal.m4: Remove, as it is no longer used.
15063 2001-11-13 Akim Demaille <akim@epita.fr>
15065 * lib/autotest/general.m4: Change `tests?' into `groups?' in
15066 variable names when referring to a single test group, or to
15067 `suite' when referring to the whole test suite.
15068 `at_last_test' is removed: m4 compute at_format itself.
15069 (at_stdout, at_stder1, at_stderr): New variables.
15070 (AT_CHECK): Use them.
15072 2001-11-13 Akim Demaille <akim@epita.fr>
15074 * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
15076 Create `testsuite.dir/003/run' instead of `testsuite.003'.
15077 Do it as soon as a test fails, don't wait till the end of the test
15079 Don't remove $as_me.[0-9]*, since these files no longer exist.
15081 2001-11-13 Akim Demaille <akim@epita.fr>
15083 * tests/tools.at: Use absolute paths, since we are no longer run
15086 2001-11-13 Akim Demaille <akim@epita.fr>
15088 Now that tests are running in their own private dir, there is no
15089 need to list the files to remove at the end of tests groups.
15091 * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
15092 (AT_data_files, at_data_files): Remove.
15093 (AT_CLEANUP, AT_DATA): Simplify.
15095 Remove the group dir if !debug && !failed.
15096 * tests/atspecific.m4: Adjust.
15098 2001-11-13 Akim Demaille <akim@epita.fr>
15100 Start a new layout for Autotest: `testsuite' creates
15101 `testsuite.dir' in which the at-check-line etc. files are to be
15102 found, and `testsuite.dir/003' where the test group 3 is run.
15104 * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
15105 at_check_line_file, at_format, at_test_normalized, at_group_dir
15107 Create the directories.
15108 Use absolute paths for at- files.
15109 (AT_CHECK): Adjust.
15111 2001-11-11 Michael Matz <matz@kde.org>
15113 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
15115 (m4_car): Properly quote arguments.
15117 2001-11-13 Akim Demaille <akim@epita.fr>
15119 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
15120 with stricter rules on LIBOBJS.
15122 2001-11-12 Paul Eggert <eggert@twinsun.com>
15124 * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
15125 * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
15128 2001-11-12 Akim Demaille <akim@epita.fr>
15130 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
15132 2001-11-12 Akim Demaille <akim@epita.fr>
15134 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15135 * lib/autoconf/functions.m4, lib/autoconf/general.m4,
15136 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
15137 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
15138 * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
15139 specify to what the macro should be defined (typically to 1).
15141 2001-11-12 Akim Demaille <akim@epita.fr>
15143 * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
15146 2001-11-12 Akim Demaille <akim@epita.fr>
15148 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15149 AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND. This validates the
15150 definition used by Automake where LEX is +/- "${missing} lex" and
15151 `missing' itself contains variables.
15153 2001-11-12 Akim Demaille <akim@epita.fr>
15155 * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
15156 Now that M4sh pushes BODY, the comments were output at the end of
15159 2001-11-08 Akim Demaille <akim@epita.fr>
15161 * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
15162 that we can trace macros from aclocal.m4.
15163 Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
15164 obsoleted, and redirect to the former anyway.
15165 Reported by Ralf Corsepius.
15167 2001-11-08 Akim Demaille <akim@epita.fr>
15169 * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
15170 processed only if present.
15171 * tests/torture.at (Configuring subdirectories): Use autoreconf
15172 instead of successive calls to autoconf.
15173 Add a nonexistent subdirectory to exercise the patch above.
15174 Reported by Ralf Corsepius.
15176 2001-11-08 Kevin Ryde <user42@zip.com.au>
15178 * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
15179 doesn't accept .S files.
15181 2001-11-07 Akim Demaille <akim@epita.fr>
15183 * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
15184 * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
15185 (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
15186 * bin/autom4te.in (warn_forbidden): New.
15187 (handle_output): Use it.
15188 Read m4_pattern_forbid with messages.
15190 2001-11-05 Akim Demaille <akim@epita.fr>
15192 * bin/autom4te.in (--normalize): Remove.
15193 * lib/autom4te.in: Adjust.
15195 2001-11-05 Akim Demaille <akim@epita.fr>
15197 * tests/Makefile.am (testsuite): Rename this target as...
15198 ($(TESTSUITE)): this.
15201 2001-11-05 Alexandre Duret-Lutz <duret_g@epita.fr>
15203 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
15204 the --prefix option, also remove it's argument.
15206 2001-11-05 Akim Demaille <akim@epita.fr>
15208 * doc/autoconf.texi (testsuite Invocation): Update.
15209 (Writing testsuite.at): Update.
15211 2001-11-03 Akim Demaille <akim@epita.fr>
15213 * doc/autoconf.texi: s/@code/@command/ where appropriate.
15215 2001-11-03 Akim Demaille <akim@epita.fr>
15217 * lib/Autom4te/General.pm: (&catfile, &canonfile)
15218 (&file_name_is_absolute): New, wrappers around routines from
15220 Use and export them.
15221 (&find_configure_ac): Optionally take a directory where to look at.
15222 * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
15224 Default @ARGV to `.', not find_configure_ac.
15225 (&autoreconf): Argument is a directory.
15226 Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
15227 * doc/autoconf.texi (autoreconf Invocation): Update.
15229 2001-11-03 Akim Demaille <akim@epita.fr>
15231 * lib/Autom4te/General.pm (@export_vars, @export_subs)
15232 (@export_forward_subs): New.
15233 Add basename, dirname, and fileparse.
15235 * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
15236 Don't look for aclocal flags if we already know aclocal is not
15238 Move aclocal.m4t only if it exists.
15239 Reported by Ezra Peisach.
15241 2001-11-03 Akim Demaille <akim@epita.fr>
15243 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
15244 passed on command line, defaulting to ./configure.ac if present.
15245 (&maybe_autoreconf, File::Find): Remove, unused.
15246 (&autoreconf): If autoconf is not used, don't try to trace.
15248 2001-11-02 Akim Demaille <akim@epita.fr>
15250 * configure.ac: Bump to 2.52g.
15252 2001-11-02 Akim Demaille <akim@epita.fr>
15256 2001-11-02 Akim Demaille <akim@epita.fr>
15258 * config/config.guess, config/config.sub, doc/standards.texi:
15259 * config/lispdir.m4: Update from masters.
15260 * configure.ac: Bump to 2.52f.
15262 2001-11-02 Akim Demaille <akim@epita.fr>
15264 * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
15265 Don't run aclocal when aclocal.m4 is not from aclocal.
15267 Don't run libtoolize and gettextize if --install is not given.
15269 2001-11-01 Paul Eggert <eggert@twinsun.com>
15271 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
15272 be invoked before _AS_LINENO_PREPARE.
15273 (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
15274 than character ranges.
15276 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
15277 invoking AS_BASENAME. Set the locale variables to 'C' if
15278 possible, as POSIX requires this to get the traditional
15280 * doc/autoconf.texi (Special Shell Variables): Describe the above.
15282 2001-10-31 Paul Eggert <eggert@twinsun.com>
15284 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
15285 with {}, as that triggers a bug in Bash 2.05.
15287 (_AS_LINENO_PREPARE): Use Sed rather than
15288 Awk. Fix the sed prepass to work even if there are multiple
15289 instances of $LINENO on the same line. Do not substitute for
15290 other variables like $LINENOT. Do not check file dates; such a
15291 check is unreliable on sufficiently fast machines, and removing
15292 the check makes the code simpler and more reliable. Check for
15293 output and chmod failures.
15295 * doc/autoconf.texi (Special Shell Variables): Document
15298 2001-10-31 Akim Demaille <akim@epita.fr>
15300 * tests/Makefile.am (atconfig): Remove this target, Automake
15303 2001-10-31 Akim Demaille <akim@epita.fr>
15305 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
15306 AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
15307 provided, while it is optional.
15308 * configure.ac: Adjust.
15310 2001-10-26 Paul Eggert <eggert@twinsun.com>
15312 * NEWS, README, configure.ac, lib/Autom4te/General.pm,
15313 lib/Autom4te/Struct.pm:
15314 Require Perl 5.005_03 instead of just 5.005, as some tests fail
15317 * doc/autoconf.texi (Special Shell Variables): Document some
15318 more LINENO gotchas, particularly with respect to the Awk+Sed hack.
15320 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
15321 (_AS_LINENO_PREPARE): Use it instead of shell eval, since
15322 eval $LINENO is not portable in practice.
15324 2001-10-24 Akim Demaille <akim@epita.fr>
15326 * lib/Autom4te/General.pm (backname): New.
15328 2001-10-24 Akim Demaille <akim@epita.fr>
15330 * m4/: Remove, merged into...
15333 2001-10-23 Tim Van Holder <tim.van.holder@pandora.be>
15335 * doc/autoconf.texi (Shellology): Mention the problems with bash
15336 2.05's use of ANSI quoting in its `set' builtin.
15338 2001-10-22 Paul Eggert <eggert@twinsun.com>
15340 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
15341 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
15342 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
15343 POSIX decided to standardize on the int flavor of strerror_r.
15344 Always do char* test, as there's no reason not to.
15345 Assign to a char* var, to catch strerror_r that returns int*.
15347 * doc/autoconf.texi (Particular Functions):
15348 Document the above changes. Also, document the fact that
15349 AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
15351 * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
15353 2001-10-20 Akim Demaille <akim@epita.fr>
15355 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
15356 the executable was missing from the log.
15358 2001-10-20 Akim Demaille <akim@epita.fr>
15360 * lib/Autom4te/General.pm (&update_file): If destination is
15361 unchanged, remove the source.
15362 (&up_to_date_p): Don't be verbose, be debug.
15363 * bin/autoreconf.in: No longer support --m4dir.
15364 (&autoreconf): Display the full path of the configure.ac we are
15366 Trace it only once.
15367 Be sure to honor --force with gettextize.
15368 Always run aclocal.
15369 * doc/autoconf.texi: Adjust.
15371 2001-10-20 Akim Demaille <akim@epita.fr>
15373 * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
15375 * bin/autoreconf.in (&autoreconf): Do not run gettextize when
15376 `intl' is already present, as it refuses unless --force.
15377 (&parse_args): Use -I, --include instead of the old Autoconf
15379 ($localdir, $autoconf_dir): Remove.
15381 (&maybe_autoreconf): New, to preserve $_ for File::Find.
15383 2001-10-19 Jens Petersen <petersen@redhat.com>
15385 * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
15386 * doc/autoconf.texi (Particular Programs): Likewise.
15388 2001-10-19 Akim Demaille <akim@epita.fr>
15390 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
15391 file in @configure_input@.
15392 Don't mention `automatically' in addition to `generated'.
15393 * tests/torture.at (#define header templates): Adjust.
15395 2001-10-19 Akim Demaille <akim@epita.fr>
15397 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
15398 comment, explain how to install automatic mode selection.
15401 2001-10-19 Ezra Peisach <epeisach@zif.mit.edu>
15403 * bin/autoreconf.in (autoreconf): Display the path to the
15404 configure.ac being studied.
15406 2001-10-18 Paul Eggert <eggert@twinsun.com>
15408 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
15409 long, to work around a bug in the HP C compiler version HP92453-01
15412 * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
15413 (AS_BASENAME_EXPR): New macro.
15414 (AS_BASENAME_SED): Do not assume GNU sed semantics.
15415 (AS_BASENAME): Use 'basename' if that works; then try 'expr';
15416 and fall back on 'sed' only if the other two fail. This makes
15417 AS_BASENAME act more like AS_DIRNAME.
15418 (as_me): Shell-quote the argument of AS_BASENAME, in case $0
15419 contains white space.
15420 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
15421 Use AS_DIRNAME, since I think it's now DOS-friendly.
15422 * tests/m4sh.at (DIRNAME_TEST): New arg $3.
15423 Allow "dirname //FOO" to return either / or //, as POSIX allows
15426 2001-10-10 Akim Demaille <akim@epita.fr>
15428 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
15429 `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
15432 2001-10-10 Akim Demaille <akim@epita.fr>
15434 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
15435 m4_define, since...
15436 (_AS_ECHO_N): AS_REQUIREs it.
15438 2001-10-10 Akim Demaille <akim@epita.fr>
15440 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
15441 (AC_INCLUDES_DEFAULT): Move to...
15442 * lib/autoconf/headers.m4: here.
15443 * lib/autoconf/types.m4: Comment changes.
15444 * doc/autoconf.texi: Specify where the default includes are used
15445 in the macro prototypes.
15447 2001-10-09 Akim Demaille <akim@epita.fr>
15449 * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
15452 2001-10-08 Akim Demaille <akim@epita.fr>
15454 * bin/autoreconf.in (&autoreconf): Remove debugging code.
15455 (&parse_args): Pass verbosity/debugging options to subtools when
15456 --debug, not when --verbose.
15457 * lib/autom4te.in (Autoreconf-preselections): New.
15458 (Autoconf): Use it.
15460 2001-10-08 Akim Demaille <akim@epita.fr>
15462 * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
15464 2001-10-08 Akim Demaille <akim@epita.fr>
15466 * doc/autoconf.texi (autoreconf Invocation): Adjust.
15467 * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
15469 2001-10-08 Akim Demaille <akim@epita.fr>
15471 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
15472 (Syntax of the shell scripts): Don't.
15473 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
15474 bother with $force since...
15475 * lib/Autom4te/General.pm: does.
15477 2001-10-08 Akim Demaille <akim@epita.fr>
15479 * bin/autoreconf.in: Rewrite in Perl.
15480 * configure.ac: Adjust.
15481 * lib/Autom4te/General.pm (&up_to_date_p): New.
15482 * bin/autom4te.in (&up_to_date_p): Use it.
15484 (&up_to_date): this.
15486 2001-10-08 Akim Demaille <akim@epita.fr>
15488 * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
15489 (m4_list_cmp): Use $0 to reinvoke yourself.
15490 (m4_patsubsts): New.
15491 (m4_strip, m4_version_unletter): Use it.
15492 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
15494 2001-10-08 Akim Demaille <akim@epita.fr>
15496 * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
15497 * lib/autoconf/libs.m4, lib/autoconf/status.m4,
15498 * lib/autoconf/types.m4, lib/autotest/general.m4,
15499 * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
15500 * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
15501 m4_bregexp, m4_bpatsubst, and m4_bmatch.
15502 * doc/autoconf.texi (Redefined M4 Macros): Adjust.
15504 2001-10-08 Akim Demaille <akim@epita.fr>
15506 * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
15508 2001-10-08 Akim Demaille <akim@epita.fr>
15510 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
15511 * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
15512 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
15513 * tests/tools.at, tests/m4sh.at: Use it.
15514 * tests/m4sh.at: Don't rely on Autoconf macros.
15515 (DIRNAME_TEST): Also exercise the expr variant.
15516 * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
15517 preferred M4sugar extension is now `.4s'.
15518 * tests/README: Remove.
15520 2001-10-08 Akim Demaille <akim@epita.fr>
15522 * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
15523 (m4_provide_if): this.
15524 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
15525 * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
15526 (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
15527 M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
15529 2001-10-08 Akim Demaille <akim@epita.fr>
15531 Use `add-log-current-defun-function' for ChangeLog creation.
15532 Suggested by Tom Tromey.
15534 * lib/emacs/autotest-mode.el (autotest-mode-map): New.
15535 (autotest-mode): Adjust.
15536 * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
15537 'comment-region onto `C-c ;'.
15538 Comments are `#', not `dnl'.
15539 (autoconf-current-defun): New.
15540 (autoconf-font-lock-keywords): Recognize `m4_defun'.
15542 2001-10-08 Akim Demaille <akim@epita.fr>
15544 * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
15545 * lib/m4sugar/m4sh.m4: here.
15546 (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
15547 * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
15548 (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
15549 include handle the m4_pattern_*, no longer push the
15550 BODY diversion nor set the /bin/sh line, AS_INIT does it.
15551 * lib/autotest/general.m4 (AT_INIT): Likewise.
15552 * tests/base.at: Adjust the tests to use AS_INIT.
15553 * tests/tools.at (AT_DATA_FORBIDDEN): New.
15554 (autoconf: forbidden tokens): Adjust to work on M4sh instead of
15557 2001-10-07 Paul Eggert <eggert@twinsun.com>
15559 * doc/autoconf.texi (config.status Invocation):
15560 CONFIG_SHELL defaults to a shell that supports LINENO if available.
15562 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
15563 shell does not support LINENO, and if CONFIG_SHELL is unset or
15564 empty, and if we can find a shell that does support LINENO,
15565 then set CONFIG_SHELL to that shell and then re-execute
15566 ourselves with CONFIG_SHELL.
15568 2001-10-05 Paul Eggert <eggert@twinsun.com>
15570 * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
15571 doesn't exist. Remove *.tmp, as a .tmp file is created during the
15572 build of $(TESTSUITE).
15574 2001-10-05 Akim Demaille <akim@epita.fr>
15576 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
15577 iff we are a bareword.
15578 Reported by Raja R Harinath.
15580 2001-10-05 Akim Demaille <akim@epita.fr>
15582 * tests/m4sh.at (LINENO): New.
15583 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
15584 PATH_SEPARATOR before using it.
15585 Fix the absolute path case/esac pattern.
15586 Provide $0 as fallback for as_myself.
15587 Reported by Raja R Harinath.
15589 2001-10-05 Akim Demaille <akim@epita.fr>
15591 * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
15592 * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
15594 2001-10-05 Akim Demaille <akim@epita.fr>
15596 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
15597 (AS_SHELL_SANITIZE): here. Use it.
15598 (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
15601 2001-10-04 Akim Demaille <akim@epita.fr>
15603 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
15604 combination of Awk and sed to replace $LINENO.
15606 2001-10-02 Paul Eggert <eggert@twinsun.com>
15608 * doc/autoconf.texi (Limitations of Builtins): You can't use
15609 "source"; it's not portable. Remove confusing and
15610 somewhat-incorrect example involving "." and "/".
15612 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
15613 compatibility with POSIX shells.
15615 2001-10-02 Akim Demaille <akim@epita.fr>
15617 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
15618 instead of exec'ing to preserve $0 and $@.
15620 2001-10-01 Akim Demaille <akim@epita.fr>
15622 * tests/testsuite (AT_INIT) <at_pass_list>: New.
15623 Don't run twice the same test.
15625 2001-10-01 Akim Demaille <akim@epita.fr>
15627 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
15628 No longer output the list of tests.
15629 <--list>: New option.
15630 <--full-help>: Remove.
15631 Complete the short/long options duality.
15632 Various small adjustments.
15634 2001-10-01 Akim Demaille <akim@epita.fr>
15636 * doc/autoconf.texi: Use @kbd for user input.
15637 Always use `$' as shell prompt.
15639 2001-09-30 Paul Eggert <eggert@twinsun.com>
15641 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
15642 Don't use nested parenthesization. This patch was originally
15643 suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
15644 but somehow it didn't get incorporated then.
15645 * doc/autoconf.texi (Limitations of Usual Tools):
15646 Clarify remark about sed and nested parenthesization.
15648 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
15649 Report an error if the size cannot be determined even though
15651 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
15652 Check for `expr' arithmetic overflow, and for compilation failure,
15653 and invoke a new argument $4 if either is discovered.
15654 This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
15655 (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
15657 2001-09-28 Akim Demaille <akim@epita.fr>
15659 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
15660 * m4/lispdir.m4: New.
15661 * aclocal.m4, configure.ac: Adjust.
15663 2001-09-28 Akim Demaille <akim@epita.fr>
15665 * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
15667 (AT_INIT): More the wrapped section to where it will be expanded.
15668 Output `AT_tested' only when existing.
15669 Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
15671 2001-09-27 Akim Demaille <akim@epita.fr>
15673 Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
15674 generates too many bug reports.
15676 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
15677 status when executing the ACTION-IF-FALSE.
15678 * tests/base.at (AC_TRY_*): Rename as...
15679 (AC_TRY_COMMAND): this.
15680 (AC_RUN_IFELSE): New.
15681 * tests/compile.at (Extensions, C keywords)
15682 (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
15683 (Broken/missing compilers, AC_PROG_CPP with warnings)
15684 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
15685 * tests/c.at (Extensions, C keywords)
15686 (Broken/missing compilers, AC_PROG_CPP with warnings)
15687 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
15688 (AC_PROG_CPP requires AC_PROG_CC): here and...
15689 * tests/fortran.at (GNU Fortran 77): there.
15690 * doc/autoconf.texi (autoconf Invocation): Fix the example:
15691 AC_TRY_RUN is about compilation, not shell commands.
15692 (Test Programs): AC_TRY_RUN works as used to be advertised.
15694 2001-09-27 Akim Demaille <akim@epita.fr>
15696 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
15698 Be sure to detect when $LINENO always returns the same value.
15699 Look for the original script, basename($0) is certainly not
15701 Pass the CLI arguments to `$as_me.lineno'.
15703 2001-09-25 Akim Demaille <akim@epita.fr>
15705 * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
15706 Be sure the close and reopen the LOG fd before and after using tee
15708 <at_tests_pattern>: Adjust to the new format of at_help_all.
15710 2001-09-23 Akim Demaille <akim@epita.fr>
15712 * bin/autom4te.in (parse_args): There can be several invocations
15715 2001-09-23 Akim Demaille <akim@epita.fr>
15717 * doc/autoconf.texi (Top): Wrap in @ifnottex.
15719 2001-09-23 Akim Demaille <akim@epita.fr>
15721 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
15722 ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
15723 (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
15724 builddir, buildpath, top_builddir, and top_buildpath.
15725 (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
15726 the current directory.
15727 * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
15728 variables *before* changing the current directory.
15729 Skip nonexistent dirs.
15730 * doc/autoconf.texi (Preset Output Variables): Document these
15733 * lib/autotest/general.m4: Do not reset AT_victims.
15734 Don't compute at_srcdir nor at_top_srcdir.
15736 * tests/tools.at: Hence use top_srcdir.
15738 * tests/Makefile.am, tests/autoconf, tests/autoheader,
15739 * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
15741 * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
15742 * tests/wrapsh.in, tests/autoupdate.in: New.
15743 * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
15744 * configure.ac: Build the position independent wrappers.
15746 * man/Makefile.am: Now that test wrappers are position
15747 independent, use them and drop dark envvar magic.
15749 2001-09-23 Akim Demaille <akim@epita.fr>
15751 * doc/autoconf.texi (Common Shell Constructs): Rename as...
15752 (Programming in M4sh): this.
15753 Promote to @section.
15755 2001-09-23 Akim Demaille <akim@epita.fr>
15757 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
15758 Pass $at_debug_args to the rerun test suite.
15759 * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
15760 * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
15763 2001-09-23 Akim Demaille <akim@epita.fr>
15765 * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
15767 2001-09-23 Akim Demaille <akim@epita.fr>
15769 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
15772 2001-09-23 Akim Demaille <akim@epita.fr>
15774 * lib/Autom4te/General.pm (&debug): New.
15775 * bin/autom4te.in ($language): Move to...
15776 (parse_args): here.
15777 Handle --language in languages.
15778 * lib/autom4te.in (Automake-selections, Autoheader-selections)
15779 (Autoscan-selections): New.
15780 (Autoconf): Adjust.
15782 2001-09-23 Tim Van Holder <tim.van.holder@pandora.be>
15784 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
15785 * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
15786 to match current versions from CVS Automake.
15788 2001-09-23 Alexandre Duret-Lutz <duret_g@epita.fr>
15790 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
15793 2001-09-22 Akim Demaille <akim@epita.fr>
15795 * lib/autoconf/autotest.m4: Create `package.m4'.
15796 * tests/Makefile.am (package.m4): Remove.
15798 2001-09-22 Akim Demaille <akim@epita.fr>
15800 Rely on `$LINENO' when possible instead of `__oline__'.
15802 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
15803 `$LINENO' support replacement when not supported.
15804 (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
15805 them explicitly to be sure they are not output before this section
15806 (via m4_require). Cosmetic only.
15807 * lib/autoconf/c.m4, lib/autoconf/general.m4,
15808 * lib/autoconf/programs.m4: Replace all the occurrences of
15809 `__oline__' with `$LINENO'.
15810 * doc/autoconf.texi (Special Shell Variables): Document LINENO.
15812 2001-09-21 Tim Van Holder <tim.van.holder@pandora.be>
15814 * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
15815 character (u: -> ue) in a code comment.
15816 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
15819 2001-09-21 Akim Demaille <akim@epita.fr>
15821 * Makefile.maint (AUTOM4TE): Neutralize autom4te.
15822 Suggested by Jim Meyering.
15824 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15826 * lib/autoconf/programs.m4: Use extensions listed in
15827 $ac_executable_extensions when looking for programs.
15829 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15831 * lib/autoconf/general.m4: Fix a small Englisho.
15832 * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when
15833 setting up ac_dir_suffix and ac_top_builddir.
15834 * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
15836 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15838 * doc/autoconf.texi (File System Conventions): Clarify the use of
15840 (Special Shell Variables[PATH_SEPARATOR]): Ditto.
15841 (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
15842 be used instead of ':'.
15843 * lib/autotest/general.m4: Replace occurrences of ':' in
15844 AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
15846 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15848 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
15849 arguments. Fixed a typo.
15851 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15853 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
15854 $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly.
15856 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15858 * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
15859 * bin/autoupdate.in: Ditto.
15860 * bin/autoheader.in: Reworded a few comments.
15861 * bin/autoconf.in: Reworded help text for a few options.
15862 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15863 * bin/autoscan.in, bin/autoupdate.in: Ditto.
15865 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
15867 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
15868 already have $file). Set output files to binary mode (helps avoid
15869 CR issues on DOSish systems).
15871 2001-09-19 Akim Demaille <akim@epita.fr>
15873 * lib/autotest/general.m4: Englishoes.
15874 From Tim Van Holder and Alexey Mahotkin.
15876 2001-09-18 Paul Eggert <eggert@twinsun.com>
15878 * doc/autoconf.texi (Common Shell Constructs): New node,
15879 documenting AS_DIRNAME.
15880 (Limitations of Usual Tools): Refer to it when discussing dirname.
15881 Also, update discussion of POSIX standard to reflect latest draft.
15883 * lib/autoconf/c.m4:
15884 (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
15886 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
15887 Do not pass a first argument with leading '-'
15888 to expr, by parenthesizing initial integers that might be negative.
15890 * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
15891 now merely checks whether it is an error to pass an argument
15894 * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
15895 (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check
15896 whether it is a (compile-time) error to pass an argument to
15897 getpgrp. This simpler test supports the revised documentation,
15898 and is all that AC_FUNC_GETPGRP's users really need.
15900 2001-09-18 Akim Demaille <akim@epita.fr>
15902 * doc/autoconf.texi (Limitations of Make) <$<>: New.
15904 2001-09-18 Akim Demaille <akim@epita.fr>
15906 * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
15908 * lib/autotest/general.m4 (AT_INIT): Adjust.
15910 2001-09-18 Paul Wagland <paul@wagland.net>
15912 * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
15914 Add test for AS_BASENAME.
15915 * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
15916 added test. It now correctly handles /1/2/3/, returning '3' not ''.
15917 Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
15918 * tests/base.at: Fixed the expected responses. The old ones were
15920 * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
15921 the documentation claims it should (and how it behaved in 2.13).
15923 2001-09-18 Akim Demaille <akim@epita.fr>
15925 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
15926 the AC_CONFIG_COMMANDS invocation.
15927 This also solves the name clash problems.
15928 Don't set the package's ID.
15929 * lib/m4sugar/Makefile.am (version.m4): Revamp.
15930 No longer to be shipped.
15931 (version.in): Remove.
15932 * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
15933 * lib/autoconf/status.m4: Adjust.
15934 Use `m4_PACKAGE_STRING'.
15935 * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
15936 the only optional argument is the name of the test suite.
15937 Expect `package.m4' to define the package signature.
15938 * lib/autom4te.in (Autotest): Add `package.m4?'.
15939 * tests/Makefile.am (package.m4): New.
15940 * tests/suite.at: ifnames is a victim.
15942 2001-09-18 Akim Demaille <akim@epita.fr>
15944 * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
15945 AC_LIBSOURCE, AC_CONFIG_FILES.
15946 * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
15947 program version string doesn't match the package's.
15948 * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
15951 2001-09-17 Paul Eggert <eggert@twinsun.com>
15953 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
15954 Allow expression to return any value that can fit into unsigned long
15955 (not int, as before). Check for output errors.
15957 2001-09-17 Bruno Haible <haible@ilog.fr>
15959 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
15960 Always include <stdio.h> and <stdlib.h>. Evaluate
15961 the expression in an extra function before these includes. Call
15962 fprintf "%d" only after ensuring the argument is of type 'int'.
15963 Reported by Wayne Chapeskie <waynec@spinnaker.com>.
15965 2001-09-17 Paul Eggert <eggert@twinsun.com>
15967 Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
15968 or CFLAGS=-O5. In that case, the linker has a relaxed view of
15969 fatal errors, and AC_CHECK_LIB causes it to include libraries even
15970 when they don't exist.
15972 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
15973 not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
15976 * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
15977 version with the version used by fileutils 4.1, except use
15978 AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
15981 * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
15983 2001-09-13 Akim Demaille <akim@epita.fr>
15985 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
15987 Reported by Gerrit P. Haase.
15989 2001-09-13 Akim Demaille <akim@epita.fr>
15991 * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
15992 m4_defn'ing is valid.
15994 2001-09-13 Akim Demaille <akim@epita.fr>
15996 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
15997 * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
16000 2001-09-13 Akim Demaille <akim@epita.fr>
16002 * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
16004 (m4_re_escape): New.
16005 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
16006 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
16007 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
16009 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
16010 (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
16011 * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
16012 AT_tests_all for consistency.
16014 (AT_VICTIMS): Similar to AT_KEYWORDS.
16015 (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
16017 2001-09-13 Akim Demaille <akim@epita.fr>
16019 * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
16021 2001-09-13 Akim Demaille <akim@epita.fr>
16023 * lib/autotest/general.m4 (AT_INIT): Create and remove
16024 `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
16025 test suites can cohabit.
16027 2001-09-13 Akim Demaille <akim@epita.fr>
16029 * tests/mktests.sh: Don't output banners for empty test files.
16031 2001-09-13 Akim Demaille <akim@epita.fr>
16033 Test suites can be run independently of configure.
16035 * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
16036 * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
16037 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
16039 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
16041 * lib/autotest/general.m4: Use ECHO_*.
16043 2001-09-13 Akim Demaille <akim@epita.fr>
16045 * bin/ifnames.in: Rewrite in Perl.
16046 * configure.ac: Don't look for AWK.
16047 * tests/tools.at (AWK portability): Remove.
16048 (Syntax of the shell scripts): Don't check ifnames.
16049 (AT_CHECK_PERL_SYNTAX): New.
16050 (Syntax of the Perl scripts): Check ifnames.
16051 * tests/ifnames: New.
16053 2001-09-13 Akim Demaille <akim@epita.fr>
16055 * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
16057 * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
16058 Remove all the other keywords.
16060 2001-09-10 Akim Demaille <akim@epita.fr>
16062 * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
16063 SETUP: no longer used.
16064 Support -k, --keywords.
16065 <at_help>: Be `no', `short', or `long'.
16066 <at_help_all>: New variable.
16067 (AT_KEYWORDS): New.
16068 (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
16069 (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
16070 (_AT_CLEANUP_FILE_IF): Simplify the regexp.
16071 (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
16072 No longer fill the HELP diversion.
16073 (AT_CLEANUP): Use them.
16074 * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
16075 (m4_list_append): Remove.
16077 Spread a few keywords in the Autoconf test suite.
16079 2001-09-10 Akim Demaille <akim@epita.fr>
16081 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
16082 PATH_SEPARATOR, let M4sh compute it.
16083 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
16084 * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
16086 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
16087 Simplify when the path is not a literal.
16088 (AS_UNAME): Use it to report PATH.
16089 * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
16090 (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
16091 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
16092 * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
16093 normalize the path, and to look for victims.
16094 * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
16095 (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
16097 2001-09-07 Akim Demaille <akim@epita.fr>
16099 * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
16100 doesn't neutralize SIGINT, making autoconf etc. non interruptible.
16101 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
16102 related variables into `at_package_*'.
16103 * lib/autotest/general.m4 (AT_VICTIMS): New.
16104 (AT_INIT): Adjust for stand-alone/embedded test suites.
16105 (AS_MESSAGE_LOG_FD): Define and use it.
16106 * tests/suite.at (AT_VICTIMS): Use it.
16107 * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
16110 2001-09-07 Akim Demaille <akim@epita.fr>
16112 Move toward possibly stand-alone test suites.
16114 * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
16115 in addition, it introduces useless differences in logs.
16116 (AT_INIT): Let atconfig and atlocal be both optional.
16117 Adjust PATH computation.
16118 * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
16120 2001-09-07 Akim Demaille <akim@epita.fr>
16122 * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
16123 m4sugar/version.m4.
16125 2001-09-05 Akim Demaille <akim@epita.fr>
16127 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
16128 to avoid GCC warnings.
16131 2001-09-05 Akim Demaille <akim@epita.fr>
16133 * bin/autom4te.in: --language is -l, not -s.
16135 2001-09-05 Akim Demaille <akim@epita.fr>
16137 Be ready to handle filenames as stupid as `dnl.at', for if even
16138 the maintainer is dumb enough to do that...
16140 * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
16141 excellence in M4 quotation: consider `__file__' is active.
16143 And BTW, when invoking m4, pass the --include in the right order:
16146 * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
16149 2001-09-05 Akim Demaille <akim@epita.fr>
16151 * lib/Autom4te/XFile.pm: New lib file.
16152 * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
16153 * bin/autoheader.in: Use it.
16155 2001-09-05 Akim Demaille <akim@epita.fr>
16157 * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
16160 2001-09-05 Akim Demaille <akim@epita.fr>
16162 * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
16163 * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
16165 * bin/autoscan.in: Use `getopt' and `find_files' etc.
16166 Add -I, --include support.
16167 * doc/autoconf.texi (autoscan Invocation): Adjust.
16169 2001-09-05 Akim Demaille <akim@epita.fr>
16171 CVS GNU M4 doesn't like `undefine(undefined)'.
16173 * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
16174 New, extracted from main.
16175 Use IO::File wherever possible.
16176 (input.m4): Be constant, use -I instead of hard coding $tmp.
16177 Therefore be a quoted heredoc.
16178 Don't invoke `_au_disable', since ac was not loaded, but just
16181 2001-08-31 Akim Demaille <akim@epita.fr>
16185 2001-08-31 Akim Demaille <akim@epita.fr>
16187 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
16189 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
16191 2001-08-31 Akim Demaille <akim@epita.fr>
16193 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
16194 serious problems handling heredocs in heredocs.
16195 Reported by Nicolas Joly.
16197 2001-08-31 Akim Demaille <akim@epita.fr>
16199 * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
16200 (Making testsuite Scripts): Update.
16202 2001-08-31 Akim Demaille <akim@epita.fr>
16204 * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
16206 2001-08-31 Akim Demaille <akim@epita.fr>
16208 * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
16209 (testsuite Scripts): There is no such thing as `atconfig.in'.
16210 And actually one diagram is missing: test suite runtime.
16212 2001-08-31 Akim Demaille <akim@epita.fr>
16214 * lib/Autom4te/General.pm (&find_file): Browse the includes in the
16217 2001-08-31 Akim Demaille <akim@epita.fr>
16219 * bin/autoupdate.in (@include): `installcheck' revealed the path
16220 to m4sugar was lacking!
16222 2001-08-31 Akim Demaille <akim@epita.fr>
16224 * man/Makefile.am (.x.1): We really have to pass
16225 autom4te_perllibdir.
16227 2001-08-31 Akim Demaille <akim@epita.fr>
16229 * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
16230 debug scripts, in particular passing explicitly listed tests to
16233 2001-08-31 Akim Demaille <akim@epita.fr>
16235 * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
16236 * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
16237 Use directly autom4te, not autoconf.
16238 * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
16240 2001-08-31 Akim Demaille <akim@epita.fr>
16242 * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
16243 * bin/autoheader.in (%symbol): Strip arguments of macros.
16245 2001-08-31 Akim Demaille <akim@epita.fr>
16247 * doc/autoconf.texi: Catch up -I, --include changes.
16249 2001-08-31 Akim Demaille <akim@epita.fr>
16251 * bin/autom4te.in (&parse_args): Die on unknown languages.
16252 * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
16254 Promote --include over --macrodir and other obsolete options.
16256 2001-08-31 Akim Demaille <akim@epita.fr>
16258 * lib/Autom4te/General.pm ($version, $help, &getopt): New.
16259 * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
16260 * bin/autom4te.in ($autoconf): Pass --force.
16261 `print $out' doesn't print `$_' but `$out'.
16262 * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
16263 (autoheader): Pass --force since the test suite goes too fast for
16265 Adjust to the new autoheader messages.
16267 2001-08-31 Akim Demaille <akim@epita.fr>
16269 * bin/autoheader.in: Handle the acconfig.h etc. junk files.
16270 Check the completeness of the #template.
16271 * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
16272 * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
16275 2001-08-31 Akim Demaille <akim@epita.fr>
16277 * lib/Autom4te/General.pm (&find_file, &update_file): New.
16278 * bin/autoupdate.in, bin/autoheader.in: Adjust.
16279 Drop AC_MACRODIR dead for real.
16280 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
16281 `autoheader: `config.hin' is created'.
16282 * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
16284 2001-08-31 Akim Demaille <akim@epita.fr>
16286 * bin/autoheader.in: Rewrite in Perl.
16287 * tests/autoheader: Adjust.
16289 2001-08-31 Akim Demaille <akim@epita.fr>
16291 * bin/autoconf.in (--include, -I): New option.
16292 Map --localdir, --autoconf-dir onto it.
16293 Forward autom4te's options instead of interpreting them.
16294 * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
16295 There is no such envvar since the inception of autom4te.cfg.
16296 * bin/autom4te.in (&parse_args): Uniquify `@include'.
16297 * bin/autoupdate.in: Adjust, and perform more control.
16298 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
16299 * tests/autoconf: Dittowise.
16301 2001-08-31 Akim Demaille <akim@epita.fr>
16303 * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
16304 * bin/autom4te.in (&find_file): Support `FILE?' standing for
16306 Use -e, not -f, since /dev/null for instance is OK.
16307 (&parse_args): Adjust.
16308 * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
16310 2001-08-31 Akim Demaille <akim@epita.fr>
16312 * configure.ac: Also find tested executables in bin.
16313 * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
16314 * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
16315 installed peer executables, only PATH is allowed to resolve it.
16316 Pass `autoconf_dir' via options, not via invisible envvars.
16317 * lib/Autom4te/General.pm (&find_peer): Remove.
16318 * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
16319 `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
16320 * man/Makefile.am: Let help2man rely on PATH instead of trying to
16321 find the executables for it.
16322 * tests/Makefile.am: Major cleanup. Too lazy to document...
16323 * tests/atlocal.in: Remove all the obscure envvar manipulations.
16325 * tests/atspecific.m4, tests/tools.at: Passing --localdir is
16326 indeed related to running the test suite, while passing
16327 --autoconf-dir and others is related to running non installed
16328 Autoconf executables. So don't do that, leave it to...
16329 * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
16330 * tests/autoscan: New.
16331 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
16332 refer to library files: rely on --language.
16334 2001-08-29 Akim Demaille <akim@epita.fr>
16336 * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
16337 s/--set/--language/.
16339 2001-08-29 Akim Demaille <akim@epita.fr>
16341 * doc/autoconf.texi: Strip the @nodes.
16342 Suggested by Paul Eggert.
16343 (Initializing configure): Typo.
16345 2001-08-29 Akim Demaille <akim@epita.fr>
16347 * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
16348 Suggested by Paul Eggert.
16350 2001-08-29 Akim Demaille <akim@epita.fr>
16352 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
16353 download in a tmp dir.
16355 2001-08-29 Akim Demaille <akim@epita.fr>
16357 * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
16358 case insensitive OSes out there :(
16359 From Tim Van Holder.
16361 2001-08-29 Akim Demaille <akim@epita.fr>
16363 * lib/autom4te.in: New.
16364 * lib/Makefile.am (edit, autom4te.cfg): New.
16365 * bin/autom4te.in (BEGIN): Simplify.
16366 Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
16367 (&load_configuration): New. Use it.
16368 (&parse_args): Support --mode, --set, and --melt.
16369 * bin/autoconf.in: Simplify and adjust.
16370 * tests/Makefile.am (AUTOMAKE): Use --set.
16371 * tests/atlocal.in: Adjust.
16372 * BUGS: distcheck and check are weak.
16374 2001-08-29 Akim Demaille <akim@epita.fr>
16376 * lib/autotest/general.m4: Use
16377 foo=`(command) 2>/dev/null`
16379 foo=`command` 2>/dev/null
16380 (at-devnull): Rename as...
16381 (AT-devnull): this.
16382 (--clean): Remove AT-* files too.
16383 * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
16384 Reported by Nicolas Joly.
16386 2001-08-28 Akim Demaille <akim@epita.fr>
16388 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
16389 quotes inside single quotes.
16390 Reported by Nicolas Joly.
16392 2001-08-28 Kevin Ryde <user42@zip.com.au>
16394 * doc/autoconf.texi (Function Portability): Mention C right shifts.
16396 2001-08-27 Tim Van Holder <tim.van.holder@pandora.be>
16398 * lib/autotest/general.m4: Reword some messages.
16399 (AT_INIT): Check for the `times' builtin before using it.
16400 Support test ranges as arguments to the testsuite.
16401 Have -e imply -d as the help text suggested.
16403 2001-08-27 Akim Demaille <akim@epita.fr>
16405 * Makefile.maint: Formatting changes.
16406 (do-po-update, po-update, cvs-update, update): New targets.
16409 2001-08-27 Akim Demaille <akim@epita.fr>
16411 * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
16412 <at_cmd_line>: New.
16413 Pass it to debug-*.sh scripts.
16414 <AUTOTEST_PATH>: May contain absolute dir names.
16416 2001-08-27 Akim Demaille <akim@epita.fr>
16418 * lib/autotest/general.m4 (AT_INIT): Log the command line.
16419 Support `VAR=VAL' as arguments.
16420 Compute PATH _after_ the options processing, so that AUTOTEST_PATH
16421 may be set via the command line.
16423 2001-08-27 Akim Demaille <akim@epita.fr>
16425 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
16426 * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
16427 first the build dirs, then the src dirs.
16428 * configure.ac (AC_CONFIG_TESTDIR): Adjust.
16430 2001-08-27 Akim Demaille <akim@epita.fr>
16432 * lib/autotest/general.m4 (AT_INIT): Output the definition of
16433 at_data_files earlier.
16434 (--clean, -c): New option.
16435 * tests/Makefile.am: Use this option.
16437 2001-08-27 Akim Demaille <akim@epita.fr>
16439 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
16440 `ac_top_builddir' to mimic Automake's vocabulary, which much more
16443 * doc/autoconf.texi (Configuration Actions): Document the vars
16444 available in commands.
16445 Emphasize the risks of collisions in init-cmds.
16447 2001-08-27 Akim Demaille <akim@epita.fr>
16449 * doc/autoconf.texi (Input) <AC_INIT>: Move to..
16450 (Initializing configure): this new node.
16452 2001-08-27 Akim Demaille <akim@epita.fr>
16454 * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
16456 2001-08-27 Akim Demaille <akim@epita.fr>
16458 * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
16459 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
16461 * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
16463 2001-08-27 Akim Demaille <akim@epita.fr>
16465 * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
16467 * lib/autoconf/autoheader.m4: this new file.
16468 * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
16469 (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
16471 * lib/autoconf/autoupdate.m4: this new file.
16473 2001-08-27 Akim Demaille <akim@epita.fr>
16475 * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
16476 (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
16477 Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
16479 (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
16480 * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
16482 2001-08-27 Akim Demaille <akim@epita.fr>
16484 * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
16485 (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
16486 (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
16487 (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
16488 (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
16489 (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
16490 (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
16491 (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
16492 (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
16493 (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
16494 (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
16495 (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
16496 (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
16497 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
16498 (_AC_OUTPUT_SUBDIRS): Move to...
16499 * lib/autoconf/status.m4: this new file.
16500 * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
16501 * tests/Makefile.am, tests/suite.at: Adjust.
16503 2001-08-27 Akim Demaille <akim@epita.fr>
16507 * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
16508 (AMTAR): Help automake define it.
16509 (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
16510 needed, 1.5 can have a macro and a target with the same name.
16511 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
16512 * m4/strip.m4: New.
16513 * m4/init.m4, m4/sanity.m4: Update.
16514 * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
16515 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
16516 * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
16517 * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
16519 2001-08-27 Akim Demaille <akim@epita.fr>
16521 Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
16523 * lib/autoconf/version.in: Remove.
16524 * lib/m4sugar/version.in: New.
16525 * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
16527 * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
16528 the name of the directory they're in, instead of the filename,
16529 since version.m4 is now in m4sugar, but m4_acversion must not be
16530 classified as an Autoconf macro.
16531 ($input_m4): Don't qualify the path to m4sugar.
16532 Rather, pass autoconf_dir to m4.
16533 * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
16534 * tests/suite.at: Require 2.52c.
16536 2001-08-27 Akim Demaille <akim@epita.fr>
16538 testsuite.log should include config.log.
16540 * lib/autotest/autotest.m4: New.
16541 * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
16542 * tests/suite.at : Adjust.
16543 (AT_INIT): Log config.log.
16544 * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
16545 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
16546 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
16547 (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
16548 of config.log on traps.
16549 (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
16550 Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
16551 for config.status'.
16552 Open the log as soon as possible.
16553 Use the same log introduction as configure's.
16555 2001-08-22 Paul Eggert <eggert@twinsun.com>
16557 * doc/autoconf.texi (Indices): New node.
16558 Move indices out of the top level menu and into this submenu.
16560 2001-08-22 Akim Demaille <akim@epita.fr>
16562 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
16564 (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
16566 2001-08-22 Akim Demaille <akim@epita.fr>
16568 * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
16569 (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
16570 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
16571 * lib/autoconf/programs.m4: here.
16572 * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
16573 (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
16574 (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
16575 * lib/autoconf/programs.m4: here.
16576 (_AC_DECL_YYTEXT): Rename as...
16577 (_AC_PROG_LEX_YYTEXT_DECL): this.
16578 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
16579 * tests/Makefile.am, tests/suite.am: Adjust.
16581 2001-08-22 Akim Demaille <akim@epita.fr>
16583 * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
16585 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
16587 * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
16588 * lib/autoconf/functions.m4: here.
16589 * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
16590 (AH_CHECK_LIB): Move to...
16591 * lib/autoconf/libs: this new file.
16592 * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
16593 (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
16594 * lib/autoconf/libs.m4: here.
16595 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
16597 2001-08-22 Akim Demaille <akim@epita.fr>
16599 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
16600 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
16601 (AC_SITE_LOAD): Better logging of config.site.
16603 2001-08-20 Akim Demaille <akim@epita.fr>
16605 * configure.ac (AT_CONFIG): Fix the path.
16606 * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
16609 2001-08-20 Alexandre Duret-Lutz <duret_g@epita.fr>
16611 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
16612 program with AC_LANG_PROGRAM before feeding it to
16613 AC_COMPILE_IFELSE. Cleanup grep usage.
16615 2001-08-20 Akim Demaille <akim@epita.fr>
16617 * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
16618 * NEWS, README, README-alpha, TODO, tests/README: This package is
16619 `Autoconf', not `autoconf' (the executable).
16621 2001-08-20 Akim Demaille <akim@epita.fr>
16623 Info readers seem to need `Index' in the index node title :(
16625 * doc/autoconf.texi: Reverse the 2001-08-15 change which
16626 simplified index node names.
16628 2001-08-20 Akim Demaille <akim@epita.fr>
16630 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
16631 arguments are not literals.
16632 * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
16633 Specify the output variables, and macros defined.
16635 2001-08-20 Akim Demaille <akim@epita.fr>
16637 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
16638 (Examining Syntax) <AC_TRY_COMPILE>
16639 (Examining Libraries) <AC_TRY_LINK>
16640 (Test Programs) <AC_TRY_RUN>: These macros double quote some of
16642 Reported by Werner Lemberg.
16644 2001-08-20 Akim Demaille <akim@epita.fr>
16646 * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
16647 top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
16648 Load atlocal late enough to dump it in the log.
16649 * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
16651 2001-08-20 Akim Demaille <akim@epita.fr>
16653 * tests/torture.at (Configuring subdirectories): New test.
16654 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
16656 * m4/atconfig.m4: Be sure the let $[0] be expandable.
16657 (top_srcdir): Fix its computation.
16659 2001-08-20 Akim Demaille <akim@epita.fr>
16661 * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
16662 * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
16664 Create `atconfig' automagically.
16665 Configure atlocal.in if present.
16666 * tests/atconfig.in: Remove.
16667 * tests/atlocal.in: New.
16668 * tests/Makefile.am: Adjust.
16670 2001-08-20 Akim Demaille <akim@epita.fr>
16672 Huh!?!?! There are still some user EOF tags used, which prevents
16673 their use in AC_CONFIG_COMMANDS for instance...
16675 * lib/autoconf/general.m4, lib/autoconf/specific.m4,
16676 * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
16677 `_CSEOF', or `_ATEOF', as appropriate.
16678 * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
16679 * lib/autotest/Makefile.am (check-local): Enforce this constraint.
16681 2001-08-20 Akim Demaille <akim@epita.fr>
16683 * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
16684 * tests/semantics.at, tests/tools.at, tests/torture.at:
16685 s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
16687 2001-08-20 Akim Demaille <akim@epita.fr>
16689 Autotest invokes M4sh's initialization.
16691 * lib/autotest/general.m4: Adjust the diversion names.
16692 (AT_INIT): Run AS_INIT.
16693 Use the BINSH diversion to invoke /bin/sh.
16694 * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
16695 * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
16697 2001-08-20 Akim Demaille <akim@epita.fr>
16699 Let M4sh have its own diversions.
16701 * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
16702 (_m4_divert(NOTICE)): Rename as...
16703 * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
16704 (_m4_divert(HEADER-COMMENT)): these.
16705 (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
16706 (_m4_divert(NOTICE)): New, for Libtool.
16707 * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
16708 long ago with `_m4_divert(GROW)'.
16709 (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
16711 2001-08-20 Akim Demaille <akim@epita.fr>
16713 * tests/base.at, tests/compile.at, tests/foreign.at,
16714 * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
16715 * tests/semantics.at, tests/suite.at, tests/tools.at,
16716 * tests/torture.at: Ask Autotest mode, not Autoconf mode.
16718 2001-08-20 Akim Demaille <akim@epita.fr>
16720 * bin/autom4te.in (handle_output): Handle @__@.
16722 2001-08-20 Akim Demaille <akim@epita.fr>
16724 * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
16725 * lib/autotest/general.m4: Adjust the license.
16727 2001-08-17 Paul Eggert <eggert@twinsun.com>
16729 * doc/autoconf.texi (Function Portability): Mention snprintf,
16730 following up on a suggestion by Kevin Ryde.
16732 2001-08-17 Akim Demaille <akim@epita.fr>
16734 * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
16735 `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
16737 2001-08-17 Akim Demaille <akim@epita.fr>
16739 * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
16740 `$0.log' as for projects where testsuite is in src, we'd have
16741 testsuite.log created in src.
16743 2001-08-17 Akim Demaille <akim@epita.fr>
16745 * bin/autom4te.in (&parse_args): Recognize --normalize.
16747 2001-08-17 Akim Demaille <akim@epita.fr>
16749 Start implementing the AC_CHECK_HEADER transition scheme.
16751 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
16752 (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
16753 (AC_CHECK_HEADER): Use them.
16755 2001-08-17 Akim Demaille <akim@epita.fr>
16757 * doc/autoconf.texi: Work around Texinfo buglets.
16758 (Transformation Rules): One example is enough, users are expected
16759 to have their brains on. And BTW, use DESTDIR.
16760 (dvar): New macro. Use it.
16762 2001-08-17 Akim Demaille <akim@epita.fr>
16764 * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
16765 * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
16766 looking for ChangeLogs.
16768 2001-08-17 Akim Demaille <akim@epita.fr>
16770 * bin/autom4te.in: --normalize is a new option.
16771 * bin/autoconf.in: Use it.
16773 2001-08-17 Akim Demaille <akim@epita.fr>
16775 * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
16776 * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
16778 2001-08-16 Paul Eggert <eggert@twinsun.com>
16780 * doc/autoconf.texi, doc/install.texi: Put copyright notice at
16783 2001-08-15 Akim Demaille <akim@epita.fr>
16785 * doc/Makefile.am (fu): New index, can't use fn because of defmac.
16788 2001-08-15 Akim Demaille <akim@epita.fr>
16790 * doc/autoconf.texi (pr): New index.
16791 (prindex, findex): Use, merge, and output them.
16792 (Environment Variable Index, Output Variable Index)
16793 (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
16794 (Autotest Macro Index): Rename as...
16795 (Environment Variables, Output Variables,Preprocessor Symbols)
16796 (Autoconf Macros, M4 Macros, Autotest Macros): these.
16797 * doc/install.texi: Use @command.
16798 (Environment Variables): Rename as...
16799 (Defining Variables): this.
16801 2001-08-15 Akim Demaille <akim@epita.fr>
16803 * doc/autoconf.texi (Function Portability): sprintf's return
16807 2001-08-15 Akim Demaille <akim@epita.fr>
16809 * Makefile.maint (CVS): New.
16810 (local-check): Run changelog-check. last.
16811 (alpha): Don't depend upon local-check, since...
16812 (cvs-dist): depends upon it.
16814 2001-08-15 Tim Van Holder <tim.van.holder@pandora.be>
16816 * tests/Makefile.am: Use a clean-local rule to remove
16817 autom4te.cache (it's a directory, not a file.
16818 * Makefile.am: Ditto (but maintainer-clean-local).
16820 2001-08-15 Akim Demaille <akim@epita.fr>
16822 * bin/autom4te.in (@m4_warning): New.
16823 (&handle_m4): Use it.
16824 * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
16825 warnings are issued at each run.
16826 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
16827 is in the src tree.
16829 2001-08-15 Akim Demaille <akim@epita.fr>
16831 * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
16832 don't waste time running `autoupdate --version' works.
16833 * tests/tools.at (autoupdating AC_PREREQ): Likewise.
16835 2001-08-13 Akim Demaille <akim@epita.fr>
16837 * doc/autoconf.texi (ma): Rename this index as...
16840 2001-08-13 Akim Demaille <akim@epita.fr>
16842 * Makefile.am: Remove dead code and dead comments.
16843 (pdf, html): New targets.
16844 * doc/autoconf.texi (Using Autotest): New chapter.
16845 * doc/Makefile.am (pdf): New targets.
16846 (CLEANFILES): Adjust.
16848 2001-08-13 Akim Demaille <akim@epita.fr>
16850 * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
16851 duration of the test suite.
16853 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
16855 * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
16856 endianness for comparison instead of relying on AT_CHECK_ENV.
16858 2001-08-11 Paul Eggert <eggert@twinsun.com>
16860 * doc/autoconf.texi, doc/install.texi: Add a copyright notice
16861 to the INSTALL file.
16863 2001-08-11 Paul Eggert <eggert@twinsun.com>
16865 * NEWS: The autoconf manual now is distributed under the terms
16866 of the GNU Free Documentation License.
16868 * doc/autoconf.texi: Switch from old style copyright notice to FDL.
16869 Add an appendix "Copying This Manual" for the FDL.
16871 * doc/fdl.texi: New file, from
16872 <http://www.gnu.org/licenses/fdl.texi>.
16874 * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
16876 2001-08-10 Paul Eggert <eggert@twinsun.com>
16878 * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
16879 ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
16880 README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
16881 m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
16882 m4/sanity.m4, tests/README, tests/aclocal.m4,
16883 tests/atspecific.m4, tests/base.at, tests/compile.at,
16884 tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
16885 tests/semantics.at, tests/suite.at, tests/tools.at,
16886 tests/torture.at: Add copyright notice.
16888 * tests/mktests.sh: Update year in copyright notice.
16890 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
16892 * tests/semantics.at (AC_C_BIGENDIAN): New test.
16894 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
16896 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
16897 ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
16898 * doc/autoconf.texi (C Compiler Characteristics): Update
16899 documentation for AC_C_BIGENDIAN.
16901 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
16903 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
16904 magic values from an object file when cross-compiling.
16905 Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
16907 2001-08-10 Akim Demaille <akim@epita.fr>
16909 * bin/autom4te.in (&handle_output): Don't use `grep' with side
16911 Suggested by Russ Allbery.
16913 2001-08-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16915 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
16916 current $prefix to the sub-configures.
16918 2001-08-09 Tim Van Holder <tim.van.holder@pandora.be>
16920 * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
16921 extension (needed on BeOS). Reported by Guido van Rossum.
16923 2001-08-09 Akim Demaille <akim@epita.fr>
16925 * bin/autom4te.in ($icache): Load it only if older than autom4te.
16927 2001-08-07 Akim Demaille <akim@epita.fr>
16929 * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
16931 (at-setup-line): Huh? Be a variable `at_setup_line', not a file.
16932 No need to remove the files before and after the each test, before
16933 each test and at the end of the suite is enough.
16934 Display only the children `times', not the shell's.
16935 If the test failed or was skipped, at-times is not available.
16937 2001-08-07 Akim Demaille <akim@epita.fr>
16939 Always produce testsuite.log, including when there are no
16940 failures. This helps getting information on skipped tests, and
16941 duration of the tests. Err, implement the latter btw.
16943 * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
16944 Dump information on the first run of each test.
16945 (AT_CLEANUP): Create `at-times' containing the duration of the
16948 2001-08-07 Akim Demaille <akim@epita.fr>
16950 The use of `dumpstat' revealed that `len' was used although it
16951 should not. m4_text_wrap was using it, but in the Autoconf world
16952 where it is legal. Hence (i) test M4sh in its own world, not
16953 Autoconf's, and (ii), ahem, fix the bug :)
16955 * lib/autotest/general.m4: Be sure the set good quotes, as tracing
16956 does not like `' instead of [].
16957 (AT_INIT): Forbid `^_?AT_'.
16958 And don't output such tokens.
16959 * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
16960 `script.as', and `autom4te.cache'.
16961 Remove `empty' and `macro' which are no longer used.
16962 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
16963 * tests/m4sugar.at: Use it.
16964 * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
16966 2001-08-07 Akim Demaille <akim@epita.fr>
16968 * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
16970 2001-08-07 Alexandre Duret-Lutz <duret_g@epita.fr>
16972 * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
16974 2001-08-04 Akim Demaille <akim@epita.fr>
16976 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
16977 (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
16979 * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
16980 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
16981 (AC_F77_MAIN): Likewise.
16983 2001-08-04 Akim Demaille <akim@epita.fr>
16985 Don't rely on M4sugar outputting the patterns in files, since we
16986 might process the output _without_ running m4, hence without these
16989 * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
16990 * bin/autom4te.in (@Request::includes): Remove, unused.
16991 (@Request::source): Rename as...
16992 (@Request::input): this.
16993 (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
16994 (&handle_output): Fetch the patterns from the traces.
16995 `$forbidden' and `$allowed' are constant: use m//o.
16996 (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
16997 (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
16999 2001-08-04 Akim Demaille <akim@epita.fr>
17001 `autoconf && autoheader' is sped up. Now, speed up `autoheader &&
17002 autoconf', i.e., in addition to caching traces, cache the output.
17004 * bin/autom4te.in (Request::cache): Rename as...
17005 (Request::id): this.
17006 ($cache, $icache, $tcache, $ocache): New.
17007 (&handle_m4): Save M4 output in the cache instead of $tmp.
17008 (&handle_output): Adjust.
17009 (&up_to_date_p): Check that the output cache is up to date too.
17010 (top level): Run `&handle_m4' iff force or the cache is invalid.
17011 Run `&handle_output' if the output cache is more recent.
17013 2001-08-04 Akim Demaille <akim@epita.fr>
17015 * bin/autom4te.in ($force): New.
17016 (&parse_args, &print_usage): -f, --force is a new option.
17017 (&handle_output): CPP directives might have spaces after `#'.
17018 (&parse_args): The first file only can be frozen.
17020 2001-08-04 Akim Demaille <akim@epita.fr>
17022 Don't let autom4te compute the `include' traces several times:
17023 first check that the trace cache file is up to date, and then
17024 compare its timestamp with that of the output.
17026 * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
17027 the preamble. Don't require 5.005 as Autom4te::General does it,
17028 and better yet (use `use', not `require'!).
17029 * lib/Autom4te/Struct.pm: Rename the last occurrences of
17030 Class::Struct as Autom4te::Struct.
17031 * lib/Autom4te/General.pm (File::stat): Use it.
17032 (&mtime): New, export it.
17033 * bin/autom4te.in: Use it.
17034 Declare `$req' is invalid if it is outdated.
17035 Don't declare it valid before saving it if something went wrong.
17037 2001-08-04 Akim Demaille <akim@epita.fr>
17039 Autom4te shall not encode Autoconf data, and preselecting traces
17040 must be proposed to the users.
17042 * bin/autom4te.in (@required_trace): Remove.
17044 (&parse_args, &print_usage): -p, --preselect is a new option.
17045 (&up_to_date_p): Adjust.
17046 * bin/autoconf.in: Preselect some Autoconf macros.
17048 2001-08-04 Akim Demaille <akim@epita.fr>
17050 * tests/tools.at (autoconf --trace: user macros): Check traces on
17051 macros invoked without arguments, and macros invoked with multiple
17054 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr>
17056 * bin/autom4te.in (handle_traces): Fix rewriting of traces without
17059 2001-08-03 Akim Demaille <akim@epita.fr>
17061 * bin/autoconf.in ($@): Work around the usual sh bug.
17064 2001-08-03 Akim Demaille <akim@epita.fr>
17066 Clean up the handling of the M4 builtins tracing exception.
17068 * bin/autom4te.in (Request::request): Don't complete M4 builtins
17070 (@m4_builtins): Rename as...
17071 (@m4_builtin): this.
17072 (%m4_builtin_alternate_name): New.
17073 (&parse_args): Complete the trace requests with alternate names.
17074 (&handle_traces): Hence no longer do it here.
17075 (&trace_requests): Remove, unused.
17077 2001-08-03 Akim Demaille <akim@epita.fr>
17079 * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
17080 m4_if, and m4_wrap.
17082 2001-08-03 Akim Demaille <akim@epita.fr>
17084 * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
17085 (m4_divert_pop): Dump the whole diversion stack when a diversion
17087 * bin/autom4te.in (&handle_output): Remember of the first
17088 occurrence of a possibly undefined macro, not the last.
17089 Complain about the possibly undefined macros in the same order as
17090 the appear in the output.
17091 * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
17092 * tests/tools.at (autoconf: forbidden tokens, basic)
17093 (autoconf: forbidden tokens, exceptions): No longer sort
17094 autoconf's stderr, as it is now deterministic.
17095 Check that `dnl' is caught.
17097 2001-08-01 Akim Demaille <akim@epita.fr>
17099 * configure.ac: Bump to 2.52c.
17101 2001-08-01 Akim Demaille <akim@epita.fr>
17105 * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
17107 2001-08-01 Akim Demaille <akim@epita.fr>
17111 2001-08-01 Akim Demaille <akim@epita.fr>
17113 * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
17116 * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
17117 `END', as `Autom4te::General::END' will be triggered.
17118 * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
17119 * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
17120 system to run `mv', `rm', and `cmp'.
17122 2001-08-01 Akim Demaille <akim@epita.fr>
17124 * lib/Autom4te/General.pm (&unique): New.
17125 * bin/autoscan.in (&output): Use it to issue trace requests once.
17127 2001-08-01 Akim Demaille <akim@epita.fr>
17129 * lib/Autom4te/General.pm: New.
17130 * bin/autom4te.in (Autom4te::General): Use it.
17131 ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
17132 (&find_configure_ac, &find_slave): Remove.
17133 * bin/autoscan.in: Likewise.
17134 * bin/autoupdate.in: Likewise.
17136 2001-08-01 Akim Demaille <akim@epita.fr>
17138 * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
17139 * autoheader.in, autoreconf.in, autoupdate.in: Move to...
17140 * bin: here, new directory.
17141 * lib/Autoconf: Rename as...
17142 * lib/Autom4te: this, to please case insensitive junkie OSes.
17144 2001-08-01 Akim Demaille <akim@epita.fr>
17146 * autom4te.in ($m4): Handle the --nesting-limit.
17147 * autoconf.in (M4): Remove.
17149 2001-08-01 Akim Demaille <akim@epita.fr>
17151 * autoconf.in ($AWK): Remove, no longer used.
17152 * test/tools.at: Use AT_CHECK_AUTOCONF.
17153 (AWK portability): Remove, for autoconf no longer uses AWK.
17154 (Syntax of the Perl scripts): New.
17155 * configure.ac: autoconf no longer needs an AWK with a good
17157 Use a static test on AC_PACKAGE_VERSION.
17158 * autom4te.in (&up_to_date_p): Output depends on the arguments.
17159 * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
17160 * tests/atconfig.in (PERL): New.
17162 2001-08-01 Akim Demaille <akim@epita.fr>
17164 * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
17165 (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
17166 (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
17167 (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
17168 (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
17169 (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
17170 (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
17171 (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
17172 (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
17173 (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
17174 (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
17175 (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
17176 (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
17177 * lib/autoconf/c.m4: here, new file.
17179 * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
17180 (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
17181 (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
17182 (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
17183 (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
17184 (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
17185 (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
17186 (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
17187 (AC_F77_FUNC): Move to...
17188 * lib/autoconf/fortran.m4: here, new file.
17190 2001-08-01 Akim Demaille <akim@epita.fr>
17192 * acfunctions.m4: Rename as...
17193 * lib/autoconf/functions.m4: this.
17194 * acgeneral.m4: Rename as...
17195 * lib/autoconf/general.m4: this.
17196 * acheaders.m4: Rename as...
17197 * lib/autoconf/headers.m4: this.
17198 * aclang.m4: Rename as...
17199 * lib/autoconf/lang.m4: this.
17200 * acoldnames.m4: Rename as...
17201 * lib/autoconf/oldnames.m4: this.
17202 * acspecific.m4: Rename as...
17203 * lib/autoconf/specific.m4: this.
17204 * actypes.m4: Rename as...
17205 * lib/autoconf/types.m4: this.
17206 * autoconf.m4: Rename as...
17207 * lib/autoconf/autoconf.m4: this.
17209 * m4sugar.m4: Rename as...
17210 * lib/m4sugar/m4sugar.m4: this.
17211 * m4sh.m4: Rename as...
17212 * lib/m4sugar/m4sh.m4: this.
17214 * tests/atgeneral.m4: Rename as...
17215 * lib/autotest/general.m4: this.
17217 * acfunctions: Rename as...
17218 * lib/autoscan/functions: this.
17219 * acheaders: Rename as...
17220 * lib/autoscan/headers: this.
17221 * acidentifiers: Rename as...
17222 * lib/autoscan/identifiers: this.
17223 * aclibraries: Rename as...
17224 * lib/autoscan/libraries: this.
17225 * acmakevars: Rename as...
17226 * lib/autoscan/makevars: this.
17227 * acprograms: Rename as...
17228 * lib/autoscan/programs: this.
17230 2001-08-01 Akim Demaille <akim@epita.fr>
17232 * doc/autoconf.texi: Moving/deleting open files is not portable.
17233 Portability issues for `.' (source), and more information about sed.
17235 2001-07-25 Steven G. Johnson <stevenj@alum.mit.edu>
17237 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
17238 which has a special meaning and is not a reference to libibmil.a.
17239 Reported by Matteo Frigo.
17241 2001-07-25 Pavel Roskin <proski@gnu.org>
17243 * autom4te.in (mktmpdir): Strip trailing newline from mktemp
17246 2001-07-25 Akim Demaille <akim@epita.fr>
17248 * autoconf.in: Try to define the variables before using them.
17249 * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
17250 instead of `$perllibdir'.
17251 * tests/atconfig.in ($autom4te_perllibdir): Export it.
17253 2001-07-25 Akim Demaille <akim@epita.fr>
17255 * autoconf.in (ac_LF_and_DOT): Remove, unused.
17257 2001-07-24 Akim Demaille <akim@epita.fr>
17259 Let autoconf use autom4te for traces.
17261 * autoconf.in ($task, task trace): Remove, merely pass --trace to
17263 * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
17264 (Because I found no way for autom4te to accept `-').
17265 * autom4te.in (&Request::request): Beware of M4 builtins.
17266 (END): Don't try to remove the content of an empty dir.
17267 (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
17268 (&handle_output): Set a default value to `$forbidden'.
17269 * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
17270 ($autoconf): Pass --debug and --verbose.
17271 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
17274 2001-07-24 Akim Demaille <akim@epita.fr>
17276 Let autoconf use autom4te to create configure.
17278 * autoconf.in ($automate): New var.
17279 (task script): Use autom4te.
17280 * autom4te.in (File::Spec): Use it.
17282 (&parse_args): --warning is -W, not -w.
17283 Find the top level files.
17284 (&handle_m4): Pass the warnings flags.
17285 Don't report verbosely m4's failures, unless requested.
17286 (&handle_output): Don't complain for forbidden tokens in comments.
17287 Be sure to report all the forbidden tokens within a single line.
17288 (&trace_format_to_m4): Preserve `$_'.
17289 (&handle_traces): Sort the output macros.
17290 (&up_to_date_p): Find the files before trying to get its time stamp.
17292 2001-07-24 Akim Demaille <akim@epita.fr>
17294 * Makefile.am: Ship, build and install Autom4te.
17295 (SUBDIRS): Add lib.
17296 * lib/Autoconf/Struct.pm: New, from Automake 1.5.
17297 * configure.in: Require Perl.
17298 * man/autom4te.in: New.
17300 2001-07-19 Paul Eggert <eggert@twinsun.com>
17302 * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
17303 example, rather than (exit 1); exit (which isn't portable).
17305 2001-07-18 Akim Demaille <akim@epita.fr>
17309 2001-07-18 Akim Demaille <akim@epita.fr>
17311 The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
17312 was run, while they are needed also when it is expanded.
17313 Reported by Nicolas Joly.
17315 * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
17316 (AC_LANG_PROGRAM(C)): Use it instead of depending upon
17317 AC_F77_DUMMY_MAIN being expanded.
17319 2001-07-18 Akim Demaille <akim@epita.fr>
17321 * configure.in: Bump to 2.51a.
17323 2001-07-17 Akim Demaille <akim@epita.fr>
17327 2001-07-17 Akim Demaille <akim@epita.fr>
17329 * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
17330 Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
17332 2001-07-17 Akim Demaille <akim@epita.fr>
17334 The runtime test for AC_FUNC_GETPGRP fails when prototypes are
17335 used. Well, then use the prototypes when you can, and runtime as
17337 Reported by Artur Frysiak
17339 * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
17340 (AC_FUNC_GETPGRP): Use it.
17341 First try to compile with 0-ary or 1-ary calls.
17343 2001-07-17 Akim Demaille <akim@epita.fr>
17345 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
17349 2001-07-17 Akim Demaille <akim@epita.fr>
17351 * Makefile.maint: Sync. with cppi 1.10.
17353 2001-07-17 Akim Demaille <akim@epita.fr>
17355 * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
17356 AC_F77_DUMMY_MAIN has been run.
17357 From Pavel Roskin and Steven G. Johnson.
17359 2001-07-17 Akim Demaille <akim@epita.fr>
17361 * configure.in: Rename as...
17362 * configure.ac: this.
17364 2001-07-17 Akim Demaille <akim@epita.fr>
17366 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
17369 * Makefile.maint (release-archive-dir): Rename as...
17370 (release_archive_dir): this, so that it can be specialized in
17373 2001-07-14 Akim Demaille <akim@epita.fr>
17375 * configure.in: Bump to 2.50d.
17377 2001-07-14 Akim Demaille <akim@epita.fr>
17380 * Makefile.maint (alpha): Typo.
17382 2001-07-14 Akim Demaille <akim@epita.fr>
17384 * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
17386 2001-07-14 Akim Demaille <akim@epita.fr>
17388 * config/config.guess, config/config.sub, config/texinfo.tex
17389 * doc/standards.texi, doc/make-stds.texi: Update.
17391 2001-07-14 Akim Demaille <akim@epita.fr>
17393 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
17395 2001-07-14 Akim Demaille <akim@epita.fr>
17397 * Makefile.maint (maintainer-check): Rename as...
17398 (maintainer-distcheck): this.
17399 (changelog-check, static-check): New.
17402 2001-07-14 Kevin Ryde <user42@zip.com.au>
17404 * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
17405 for CXX is g++, not gcc.
17407 2001-07-14 Akim Demaille <akim@epita.fr>
17409 * doc/autoconf.texi (Files): New subsection.
17411 2001-07-14 Akim Demaille <akim@epita.fr>
17413 * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
17415 (Generic Compiler Characteristics): this.
17416 (C++ Compiler): New subsection.
17418 2001-07-14 Akim Demaille <akim@epita.fr>
17420 * autoscan.in: Use IO::File.
17421 Adjust all the routines to use it.
17422 ($log): New file (autoscan.log).
17423 (output): Dump detailed logs into $log, and a shortened version to
17425 (&scan_makefile): Refine the regexp catching tokens in the code.
17426 * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
17427 and the `configure.ac' checking feature.
17429 2001-07-12 Akim Demaille <akim@epita.fr>
17431 For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
17432 Reported by Michael Elizabeth Chastain.
17434 * autoconf.in: Refuse such AWK.
17435 * configure.in: Likewise.
17436 * Makefile.am (acversion.m4): Do not use move-if-change this file
17438 * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
17440 2001-07-10 Jens Petersen <petersen@redhat.com>
17442 * autoscan.in (&scan_makefile): Improve programs regexp to parse
17443 things like "g++", "file.c" and "some-conf" as tokens.
17444 (&scan_file): Match C++ files extensions.
17445 If the filename extension is C++ then ask for c++.
17447 2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
17449 * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
17450 AC_TRY_LINK_FUNC, to check whether defining a dummy
17451 main-like routine is needed for linking with F77 libs.
17453 2001-07-05 Pavel Roskin <proski@gnu.org>
17455 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
17457 (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
17460 2001-07-05 Akim Demaille <akim@epita.fr>
17462 * Makefile.am (move_if_change): New. Use it instead of `mv'.
17463 (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
17465 Reported by Nicolas Joly.
17467 2001-07-04 Akim Demaille <akim@epita.fr>
17469 * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
17471 * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
17472 warnings from compilers.
17473 * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
17474 for all the compilers, not only GNU. Hence move from here...
17475 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
17477 2001-07-04 Akim Demaille <akim@epita.fr>
17479 * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
17480 (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
17483 2001-07-04 Akim Demaille <akim@epita.fr>
17485 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
17486 the ``strings.h'' change claimed below.
17488 2001-07-04 Akim Demaille <akim@epita.fr>
17490 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
17492 2001-07-04 Akim Demaille <akim@epita.fr>
17494 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
17495 strings.h if usable with string.h.
17496 Suggested by Paul Eggert.
17498 2001-07-04 Akim Demaille <akim@epita.fr>
17500 * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
17501 From Jens Petersen.
17503 2001-07-03 Akim Demaille <akim@epita.fr>
17505 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
17508 2001-07-03 Akim Demaille <akim@epita.fr>
17510 * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
17511 compiler, not the preprocessor.
17512 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
17513 dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
17515 * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
17516 earlier if there are.
17518 2001-07-03 Akim Demaille <akim@epita.fr>
17520 * autoscan.in ($initfile): Remove.
17521 (&find_file): Rename as...
17522 (&scan_file): this.
17523 Immediately scan the current file, instead of gathering them, and
17524 later having them handled by &scan_files.
17525 (&scan_files): Merely invoke Find::File.
17528 2001-07-02 Akim Demaille <akim@epita.fr>
17530 * autoscan.in: Formatting changes, matching the invocation order.
17531 (File::Find): Use it instead of Perl 4's `find.pl'.
17532 (&wanted): Rename as...
17533 (&find_file): this.
17535 2001-07-01 Pavel Roskin <proski@gnu.org>
17537 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
17538 break in the argument to AC_TRY_LINK_FUNC.
17539 (AC_F77_MAIN): Remove conftest* after using break in the
17540 argument to AC_TRY_LINK.
17542 2001-07-01 Steven G. Johnson <stevenj@alum.mit.edu>
17544 Add alternate 'main' routine detection for linking C/C++ with Fortran,
17545 fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
17547 * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
17548 dummy alternate main is required even if the user provides her own
17550 (AC_F77_MAIN): New macro to detect whether it is possible to
17551 provide an alternate 'main' function name, using the 'main' from
17552 the Fortran libraries.
17553 (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
17554 cross-language link tests can be performed successfully.
17555 (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN. Also put $FLIBS
17556 after $LIBS, for consistency; this should be the general rule since
17557 the user may want to link to Fortran libraries that require $FLIBS.
17558 * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
17560 2001-06-29 Pavel Roskin <proski@gnu.org>
17562 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
17563 at-stdout and at-stderr instead of removing the newline
17564 from the echo output, which is not guaranteed to work.
17566 2001-06-28 Jens Petersen <petersen@redhat.com>
17568 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
17569 confdefs.h when non-zero.
17571 2001-06-28 Akim Demaille <akim@epita.fr>
17573 * configure.in: Bump to 2.50c.
17575 2001-06-26 Akim Demaille <akim@epita.fr>
17579 2001-06-26 Akim Demaille <akim@epita.fr>
17583 2001-06-25 Pavel Roskin <proski@gnu.org>
17585 * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
17586 argument, AUTOCONF-FLAGS.
17587 * tests/mktests.sh (update_exclude_list): Add
17588 AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
17589 * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
17590 AC_FUNC_WAIT3 with "-W no-obsolete".
17592 2001-06-25 Akim Demaille <akim@epita.fr>
17594 * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
17596 2001-06-25 Akim Demaille <akim@epita.fr>
17598 * autoscan.in (%macro): Now maps from word to list of macros.
17599 (&init_tables): Die when a word which is already handled by
17600 explicit macros is mapped to the default macro.
17601 (&print_unique): Remove, inlined in...
17602 (&output_kind): here.
17603 (File::Basename): Use it.
17604 (&output): Sort the CONFIG_FILES.
17605 * acheaders: Normalize.
17606 * acfunctions: Likewise.
17608 2001-06-25 Akim Demaille <akim@epita.fr>
17610 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
17611 characteristics in the logs.
17612 Suggested by Mo DeJong.
17614 2001-06-24 Akim Demaille <akim@epita.fr>
17616 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
17617 (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
17618 * doc/autoconf.texi (Autoconf 2.13): New section.
17620 2001-06-24 Akim Demaille <akim@epita.fr>
17622 * autoconf.in (Task traces): Separate the error messages from the
17623 traces to improve robustness.
17625 2001-06-23 Akim Demaille <akim@epita.fr>
17627 * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
17628 three as failures are unlikely, and speed matters.
17630 2001-06-23 Akim Demaille <akim@epita.fr>
17632 * doc/autoconf.texi (Redefined M4 Macros): New.
17634 2001-06-23 Akim Demaille <akim@epita.fr>
17636 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
17637 inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
17640 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
17642 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
17643 config.status targets to after the evaluation of the INIT-CMDS.
17644 Double quote config.status targets (used to be single quoted).
17646 2001-06-23 Akim Demaille <akim@epita.fr>
17648 * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
17649 Check the content of the created file.
17650 Check the ./config.status command line invocation.
17652 2001-06-23 Akim Demaille <akim@epita.fr>
17654 * tests/foreign.at (Libtool): Reject prehistoric versions.
17656 2001-06-23 Akim Demaille <akim@epita.fr>
17658 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
17659 preexisting files matching a.*.
17661 2001-06-23 Akim Demaille <akim@epita.fr>
17663 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
17665 * doc/autoconf.texi (AC_ARG_VAR): Update.
17667 2001-06-21 Akim Demaille <akim@epita.fr>
17669 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
17670 precious variables have changed.
17671 * tests/torture.at (AC_ARG_VAR): Adjust.
17673 2001-06-21 Akim Demaille <akim@epita.fr>
17675 ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
17676 but some sed choke on multiple `;', and other tools (e.g.,
17677 Automake), include the separator themselves.
17679 * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
17681 2001-06-19 Tim Van Holder <tim.van.holder@pandora.be>
17683 * doc/autoconf.texi (Functions Portability): Rename as...
17684 (Function Portability): this.
17685 (Function Portability): Document potential problems with unlink().
17687 2001-06-19 Paul Eggert <eggert@twinsun.com>
17689 * NEWS, doc/autoconf.texi: Document quadrigraphs.
17691 2001-06-18 Akim Demaille <akim@epita.fr>
17693 * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
17695 2001-06-18 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>
17697 * acfunctions.m4: (AC_FUNC_VFORK) rename as...
17698 (_AC_FUNC_VFORK): this.
17699 Remove AC_DEFINEs and don't guess cross-compilation values.
17700 (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
17701 (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
17702 define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
17703 vfork doesn't work.
17704 Guess values if cross-compiling, but warn.
17705 * acfunctions: Add AC_FUNC_FORK.
17706 * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
17707 and vfork appropriately.
17709 2001-06-18 Akim Demaille <akim@epita.fr>
17711 * doc/autoconf.texi (Functions Portability): New section.
17713 2001-06-18 Akim Demaille <akim@epita.fr>
17715 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
17717 Suggested by Andreas Schwab.
17719 2001-06-18 Akim Demaille <akim@epita.fr>
17721 * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
17722 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
17723 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
17724 (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
17725 Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
17726 and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
17727 (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
17730 2001-06-18 Akim Demaille <akim@epita.fr>
17732 * doc/autoconf.texi (ms): New index.
17733 (Macro Index): Rename as...
17734 (Autoconf Macro Index): this.
17735 (M4 Macro Index): New appendix.
17736 (Programming in M4): New chapter.
17737 Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
17738 (Quoting): Rename as...
17739 (M$ Quotation): this.
17740 Be part of `Programming in M4).
17742 2001-06-18 Nicolas Joly <njoly@pasteur.fr>
17744 * tests/torture.at (AC_ARG_VAR): Set variables and export them
17745 in separate statements for compatibility with Tru64 v5.1.
17747 2001-06-17 Akim Demaille <akim@epita.fr>
17749 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
17750 current values of the precious variables, not the previously
17752 Pass precious variables which are set to config.status.
17753 * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
17754 * tests/torture.at (AC_ARG_VAR): New.
17756 2001-06-15 Paul Eggert <eggert@twinsun.com>
17758 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
17759 AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
17760 and explain why and how to replace them.
17761 * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
17762 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
17764 2001-06-15 Akim Demaille <akim@epita.fr>
17766 `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
17767 Reported by Bruno Haible.
17769 * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
17770 (_AC_ARG_VAR_PRECIOUS): to here.
17772 2001-06-15 Pavel Roskin <proski@gnu.org>
17774 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
17775 an unused pointer use cast to this type and `if' statement to
17776 avoid warnings from the compiler.
17777 (AC_HEADER_TIME): Likewise.
17778 * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
17779 in `if' statement to avoid warnings from the compiler. Declare
17780 ac_aggr static to avoid the need to initialize it.
17782 2001-06-14 Akim Demaille <akim@epita.fr>
17784 * doc/autoconf.texi (Portable Shell): Move to follow `Writing
17787 2001-06-13 Akim Demaille <akim@epita.fr>
17789 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
17790 Suggested by Alexander Mai.
17792 2001-06-13 Akim Demaille <akim@epita.fr>
17794 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
17795 sys/types.h and sys/stat.h, and check for them.
17797 2001-06-13 Akim Demaille <akim@epita.fr>
17799 * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
17802 2001-06-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
17804 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
17805 succeeds and only try adding libdnet upon a failure.
17807 2001-06-12 Akim Demaille <akim@epita.fr>
17809 * autoscan.in (&output_kind): Output the comment only if it exists.
17810 (%kind_comment): Add entry for `programs'.
17811 (&output_programs): Use &output_kind.
17812 (&output_functions, &output_identifiers, &output_headers)
17813 (&output_programs): Inline, and remove.
17815 2001-06-12 Akim Demaille <akim@epita.fr>
17817 * autoscan.in (%kind_comment): New.
17818 (output_kind): New.
17819 (output_functions, output_identifiers, output_headers): Use it.
17821 2001-06-12 Akim Demaille <akim@epita.fr>
17823 * autoscan.in (&print_unique): Take `$kind' and `$word' as
17824 arguments, to factor indirections into `%macro' and `%used'.
17825 (%generic_macro): Fix a typo.
17827 2001-06-12 Akim Demaille <akim@epita.fr>
17829 * aclibraries: New.
17830 * autoscan.in (@kinds): Add `libraries'.
17831 Use `@kinds' instead of hard coded lists.
17832 (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
17833 Remove, replaced by...
17836 2001-06-12 Akim Demaille <akim@epita.fr>
17838 * autoscan.in (%functions_macros %headers_macros)
17839 (%identifiers_macros %programs_macros %makevars_macros): Remove,
17843 2001-06-11 Raja R Harinath <harinath@cs.umn.edu>
17845 * aclang.m4 (AC_NO_EXECUTABLES): Override
17846 _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
17848 2001-06-11 Akim Demaille <akim@epita.fr>
17850 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
17852 Reported by Andreas Schwab.
17854 2001-06-11 Akim Demaille <akim@epita.fr>
17856 * Makefile.am, Makefile.maint: Typos.
17858 2001-06-09 Akim Demaille <akim@epita.fr>
17860 * doc/autoconf.texi (Here-Documents): New section, gathering
17861 documentation about here-documents.
17862 Use `href', not `uref', and other changes.
17864 2001-06-09 Akim Demaille <akim@epita.fr>
17866 * doc/autoconf.texi (Portable Shell Programming): Promoted as a
17869 2001-06-09 Akim Demaille <akim@epita.fr>
17871 * doc/autoconf.texi (Limitations of Builtins): Complete the
17872 description of the here-docs penalties with Alexandre Oliva's
17875 2001-06-01 Paul Eggert <eggert@twinsun.com>
17877 * doc/autoconf.texi: Talk about here documents and speedups.
17878 Do not use "echo" on arbitrary strings.
17879 Spell "here-documents" consistently with the standard.
17881 2001-06-09 Akim Demaille <akim@epita.fr>
17883 * doc/autoconf.texi (Concept Index): Introduce it.
17884 Regenerate the menus.
17886 2001-06-09 Akim Demaille <akim@epita.fr>
17888 * Makefile.maint, GNUmakefile: New, from Jim Meyering.
17889 * config/prev-version.txt: New.
17890 * config/move-if-change: New, for GNU libc.
17892 2001-06-06 Pavel Roskin <proski@gnu.org>
17894 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
17896 2001-06-06 Akim Demaille <akim@epita.fr>
17898 * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
17899 properly when $1 is not a literal.
17900 Fixes PR Autoconf/187, reported by Bram Moolenaar.
17902 2001-06-06 Akim Demaille <akim@epita.fr>
17904 Invoking AC_COPYRIGHT before AC_INIT fails.
17906 * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
17907 * acgeneral.m4 (_m4_divert(VERSION_FSF))
17908 (_m4_divert(VERSION_USER)): New.
17909 (AC_COPYRIGHT): $2 is the diversion to use.
17910 (_AC_INIT_COPYRIGHT): Use the FSF diversion.
17911 (AC_INIT): Remove dead comments as now it's commutative.
17913 2001-06-06 Akim Demaille <akim@epita.fr>
17915 * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
17918 2001-06-05 Akim Demaille <akim@epita.fr>
17920 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
17922 `*dir' variables cannot be NONE.
17923 Reported by Mark Kettenis.
17925 2001-06-05 Paul Eggert <eggert@twinsun.com>
17927 * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
17929 2001-06-04 Akim Demaille <akim@epita.fr>
17931 * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
17932 (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
17933 (AC_TR_SH): Move as...
17934 * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
17935 (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
17937 (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
17938 (_AS_TR_SH_PREPARE): New.
17939 (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
17940 * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
17942 2001-06-02 Akim Demaille <akim@epita.fr>
17944 * Makefile.am (.m4.m4f): Pass the options first.
17945 Fixes PR autoconf/182.
17947 2001-06-02 Nathan Sidwell <nathan@codesourcery.com>
17949 GNU getopt, when POSIXLY_CORRECT does not permute options and
17950 arguments. So pass the options first.
17951 Fixes PR autoconf/184.
17953 * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
17954 (run_m4): Remove files.
17956 Update remainder of script to use them.
17957 (for warning in): Do not use a literal comma as it will not be
17960 2001-06-02 Christian Marquardt <marq@gfz-potsdam.de>
17962 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
17963 Fortran compilers to check.
17964 (_AC_PROG_F77_V): Add '-###' as a possible option to print
17965 information on library and object files.
17966 (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
17969 2001-06-02 Akim Demaille <akim@epita.fr>
17971 * autom4te.in (Request::@request): Declare with `vars', not `my',
17972 as it prevents updates via `do FILENAME'.
17974 2001-06-02 Akim Demaille <akim@epita.fr>
17976 * configure.in (standards_texi): Remove, dead code.
17978 2001-06-02 Akim Demaille <akim@epita.fr>
17980 * autom4te.in: New.
17982 2001-06-02 Pavel Roskin <proski@gnu.org>
17984 * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
17985 for signals other than 0 - exit with code 1.
17986 * m4sh.m4 (AS_TMPDIR): Likewise.
17987 * autoconf.in: Likewise. Also don't rely on exit == exit $?.
17988 * autoheader.in: Likewise.
17989 * autoreconf.in: Likewise.
17990 * tests/torture.at (Signal handling): New test for the above.
17992 2001-06-01 Akim Demaille <akim@epita.fr>
17994 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
17997 2001-05-31 Akim Demaille <akim@epita.fr>
17999 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
18000 Add copyright and comments.
18001 * acheaders: Add stdint.h.
18002 Suggested by Paul Eggert.
18004 2001-05-31 Akim Demaille <akim@epita.fr>
18006 * atgeneral.m4 (AT_INIT): Use $SHELL.
18007 * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
18009 2001-05-31 Akim Demaille <akim@epita.fr>
18011 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18013 From Paul Eggert and Lars Hecking.
18015 2001-05-31 Akim Demaille <akim@epita.fr>
18017 * tests/base.at: Adjust line numbers in error messages.
18019 2001-05-31 Akim Demaille <akim@epita.fr>
18021 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
18022 to emit the bangshe line.
18023 Reported by David Carter.
18025 2001-05-30 Steven G. Johnson <stevenj@alum.mit.edu>
18027 * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
18028 Fortran (95) compilers to check.
18030 2001-05-29 Alexandre Duret-Lutz <duret_g@epita.fr>
18032 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
18035 2001-05-23 Pavel Roskin <proski@gnu.org>
18037 * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
18038 _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
18039 (AC_PROG_CXXCPP): Likewise.
18041 2001-05-22 Akim Demaille <akim@epita.fr>
18043 * config: New directory.
18044 * configure.in: AC_CONFIG_AUX_DIR it.
18045 * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
18047 2001-05-22 Akim Demaille <akim@epita.fr>
18049 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
18050 * autoupdate.in: Specify the Emacs mode.
18051 * acversion.m4.in: Rename as...
18052 * acversion.m4: this.
18053 * tests/Makefile.am (CLEANFILES): More garbage.
18055 2001-05-22 Akim Demaille <akim@epita.fr>
18057 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
18059 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
18062 2001-05-21 Akim Demaille <akim@epita.fr>
18064 * configure.in: Bump to 2.50a.
18073 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
18074 Software Foundation, Inc.
18076 Copying and distribution of this file, with or without
18077 modification, are permitted provided the copyright notice and this
18078 notice are preserved.