1 2009-02-03 Eric Blake <ebb9@byu.net>
3 Mention that packagers should not pre-set CFLAGS.
4 * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
5 advice given by automake on handling variables reserved by GNU
7 Reported by Karl Berry.
9 Document lib64 in config.site.
10 * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
13 Reported by Tom Browder, with help from Peter Breitenlohner.
15 2009-01-28 Eric Blake <ebb9@byu.net>
17 Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
18 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
19 AC_DEFUN_ONCE, since this is a one-shot macro.
20 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
22 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
24 2009-01-28 Eric Blake <ebb9@byu.net>
26 Reduce blank lines in AC_DEFUN_ONCE macros.
27 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
28 line when a defun_once macro is required.
29 (_m4_defun_once): New helper macro, for less memory use.
30 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
32 Silence another false positive expand-before-require.
33 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
34 (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
35 that caused a diversion change, not just diversion number.
36 (m4_require): Factor...
37 (_m4_require_check): ...into new macro, which also checks whether
38 diversion that performed the expansion has been collected.
39 * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
40 Reported by Ralf Wildenhues.
42 2009-01-28 Eric Blake <ebb9@byu.net>
44 Fix AC_C_RESTRICT for Sun Studio 12 C++.
45 * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
46 __restrict__ rather than _Restrict, which still trips up Sun
49 Reported by Rolf Vandevaart.
51 2009-01-28 Eric Blake <ebb9@byu.net>
53 Fix years in copyright notices.
54 * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
56 * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
58 (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
59 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
60 (AC_COPYRIGHT): Add undocumented third parameter.
61 (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
62 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
63 * lib/autotest/general.m4 (AT_INIT): Likewise.
64 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
65 (AT_COPYRIGHT): Add undocumented third parameter.
66 * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
67 parameter; the generic copyright given by autotest is sufficient
68 since we are the package that owns autotest.
70 2009-01-27 Eric Blake <ebb9@byu.net>
72 Use URLs in --help output, part 3: testsuite.
73 * doc/autoconf.texi (Writing Testsuites): Mention autotest
75 (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
76 (Making testsuite Scripts): Document AT_PACKAGE_URL.
77 * tests/Makefile.am (package.m4): Follow our own advice.
78 * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
79 package.m4. Enhance --help output.
80 (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
82 Use URLs in --help output, part 2: configure.
83 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
85 (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
87 (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
88 (_AC_INIT_HELP): Use it in './configure --help' output.
89 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
90 './config.status --help'. Bump copyright date.
91 * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
94 * tests/tools.at (autoheader): Adjust test.
95 * tests/torture.at (@%:@define header templates)
96 (Torturing config.status): Likewise.
98 Use URLs in --help output, part 1: autoconf executables.
99 * bin/autoconf.as (usage): Make output consistent with recent
100 change in gnulib version-etc module.
101 * bin/autoheader.in ($help): Likewise.
102 * bin/autom4te.in ($help): Likewise.
103 * bin/autoreconf.in ($help): Likewise.
104 * bin/autoscan.in ($help): Likewise.
105 * bin/autoupdate.in ($help): Likewise.
106 * bin/ifnames.in ($help): Likewise.
108 2009-01-27 Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
110 Quote traced macros passed from autom4te to M4.
111 * bin/autom4te (handle_m4): Apply shell_quote to macro names.
112 * tests/tools.at (autom4te --trace and unusual macro names): New
116 2009-01-26 Eric Blake <ebb9@byu.net>
118 Improve AC_DEFUN_ONCE semantics.
119 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
120 rather than warning, on second use, and make sure first use never
122 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
124 * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
125 (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
126 * NEWS: Document this.
127 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
129 (Prerequisite Macros) <AC_REQUIRE>: Likewise.
130 (Expanded Before Required): Likewise.
131 (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
132 Reported by Bruno Haible, with suggestion by Paolo Bonzini.
134 2009-01-24 Eric Blake <ebb9@byu.net>
136 Fix typos in recent patches.
137 * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
138 * doc/autoconf.texi (Expanded Before Required): Fix typos.
139 Reported by Ralf Wildenhues.
141 Revert change to AC_DIR_HEADER.
142 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
143 AC_HEADER_DIRENT no longer triggers a warning, and helps the user
144 who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
145 Reported by Paolo Bonzini.
147 2009-01-22 Eric Blake <ebb9@byu.net>
149 Silence a false positive expand-before-require case.
150 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
151 which a macro was provided.
152 (m4_require): Compare diversion numbers, rather than m4_require
153 nesting, when determining direct requires.
154 * tests/m4sugar.at (m4@&t@_require: nested): Test it.
155 Reported by Ralf Wildenhues, affecting Libtool.
157 2009-01-21 Eric Blake <ebb9@byu.net>
159 Fix out-of-order expansion with expand-before-require.
160 * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
161 required macro when issuing expand-before-require warning.
162 * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
163 (Expanded Before Required): New node.
164 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
165 * NEWS: Mention this fix.
166 Suggested by Bruno Haible.
168 Warn if macro is provided before indirectly required.
169 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
170 provided since last outermost defun.
171 (_m4_defun_pro_outer): Empty the set.
172 (_m4_require_call): Distinguish between direct and indirect
173 requires, and remove required macros from the set.
174 (m4_require): Check the set, in order to warn.
175 * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
176 test case for direct requires.
178 2009-01-20 Eric Blake <ebb9@byu.net>
180 Clean up some bugs caught by preliminary dependency validation.
181 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
182 AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
183 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
184 (_AS_SHELL_SANITIZE): Fix quoting bugs.
186 2009-01-19 Eric Blake <ebb9@byu.net>
188 Improve AC_REQUIRE documentation.
189 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
190 and mention interaction with AC_REQUIRE.
191 (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
192 ordering constraint bug, and how to fix it.
193 * tests/m4sugar.at (m4@&t@_require: nested): New test.
196 * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
197 always be defined, as either empty or a number.
198 (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
199 as a stack, rather than a one-shot macro.
200 (_m4_require_call): Expect third argument to be pre-expanded.
201 (m4_divert_require, m4_require): Adjust clients accordingly.
202 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
204 2009-01-17 Eric Blake <ebb9@byu.net>
206 Avoid underfull hbox.
207 * doc/autoconf.texi (Installation Directory Variables): Reword to
210 2009-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
212 Ignore `set -e'-related failure of NetBSD sh.
213 * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
214 fails to finish EXIT trap after set -e.
216 2009-01-06 Eric Blake <ebb9@byu.net>
219 * cfg.mk (web-manual): Use new feature of gendocs.
220 (fetch): Fetch gendocs.
221 * Makefile.am (EXTRA_DIST): Distribute new file.
222 * doc/Makefile.am (EXTRA_DIST): Likewise.
223 * .gitattributes: Ignore whitespace in upstream files.
224 * HACKING (Other web updates): Update Free Software Directory
226 (Upload): No longer mention xdelta.
227 * maint.mk (xd-delta): Likewise.
228 * build-aux/gendocs.sh: New upstream file.
229 * doc/gendocs_template: Likewise.
230 * build-aux/announce-gen: Resync from upstream.
231 * build-aux/config.guess: Likewise.
232 * build-aux/config.sub: Likewise.
233 * build-aux/gnupload: Likewise.
234 * build-aux/texinfo.tex: Likewise.
236 2008-12-30 Eric Blake <ebb9@byu.net>
238 Make it easier to track diversion bugs.
239 * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
240 internal macros, which are easier to trace than m4_builtin.
241 (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
242 (m4_undivert): Use them.
243 (_m4_require_call): Likewise. Use fewer macros.
244 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
246 2008-12-26 Bruno Haible <bruno@clisp.org>
248 Improve multiarch detection.
249 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
250 indicating a universal build more reliable.
252 2008-12-28 William Pursell <bill.pursell@gmail.com> (tiny change)
254 Use AS_CASE in documented example.
255 * doc/autoconf.texi (Using the System Type): Use AS_CASE in
256 example instead of raw case.
258 2008-12-23 Eric Blake <ebb9@byu.net>
260 Make m4_dumpdef more useful with M4 1.6.
261 * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
262 (m4_init): Install it for new enough m4.
263 * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
264 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
267 2008-12-24 Bruno Haible <bruno@clisp.org>
269 Improve INSTALL for HP-UX.
270 * doc/install.texi (Particular Systems): For HP-UX, also recommend
271 -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
274 2008-12-22 Bruno Haible <bruno@clisp.org>
276 Improve INSTALL for Haiku.
277 * doc/install.texi (Particular Systems): Add a recommendation
278 which prefix to use on Haiku.
280 2008-12-19 Eric Blake <ebb9@byu.net>
282 Fix typo in previous commit.
283 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
286 Document some recently added macros.
287 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
289 * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
290 <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
292 (Set manipulation Macros) <m4_set_map_sep>: Likewise.
293 * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
294 * NEWS: Document new macros.
296 2008-12-18 Eric Blake <ebb9@byu.net>
298 Fix separator in m4_stack_foreach_sep.
299 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
301 * tests/m4sugar.at (m4@&t@_stack): Enhance test.
303 2008-12-18 Eric Blake <ebb9@byu.net>
305 Mention limitation of M4 1.4.x on builtin tokens.
306 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
307 ramification of M4 1.4.x's inability to pass builtin tokens
309 (Evaluation Macros) <m4_curry>: Likewise.
310 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
311 * NEWS: Mention subtle change in m4_dumpdef semantics.
313 Document m4_version_prereq.
314 * doc/autoconf.texi (Number processing Macros)
315 <m4_version_prereq>: Add documentation.
317 Reported by Bruno Haible.
319 2008-12-10 Jim Meyering <meyering@redhat.com>
321 AC_HEADER_ASSERT: don't say assertions are disabled when they're not
322 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
323 report "checking whether to enable assertions... no", when they are
324 in fact enabled. This is solely a bug in the output of configure.
325 In spite of saying "no", NDEBUG was not defined in that case.
326 Also, as noted by Eric Blake, leave assertions enabled upon
327 --enable-assert=INVALID.
329 2008-12-09 Eric Blake <ebb9@byu.net>
331 Fix m4_location inside m4_wrap with m4 1.4.5.
332 * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
333 inside wrapped text if older m4 is detected.
334 Reported by William Pursell.
336 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
337 and Eric Blake <ebb9@byu.net>
339 Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
340 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
341 rather than treating it as a synonym for --disable-assert.
342 * NEWS: Document the fix.
344 2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
346 Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
347 treat --enable-assert and --disable-assert equivalently.
348 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
350 2008-12-05 William Pursell <bill.pursell@gmail.com> (tiny change)
352 Fix some typos and grammatical errors in documentation.
353 * doc/autoconf.texi: Clean up some bad use of English.
355 2008-12-03 Eric Blake <ebb9@byu.net>
357 Improve AC_STATE_SAVE.
358 * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
359 process by hoisting the uniqueness check into sed.
360 * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
363 2008-12-02 Eric Blake <ebb9@byu.net>
365 Avoid MacOS readdir bug in testsuite.
366 * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
367 duplicated ls entries.
369 Reported by Bruce Dugan and others.
371 2008-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
373 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
374 error messages about `set -m'.
376 2008-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
378 Fix a couple of test failures with dash.
379 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
381 * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
382 regeneration, to avoid timing effects.
384 2008-11-25 Eric Blake <ebb9@byu.net>
387 * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
388 * lib/autotest/general.m4 (AT_INIT): Use it.
389 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
390 * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
391 * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
394 Suggested by Paolo Bonzini.
396 Add safety check for m4_expand vs. diversions.
397 * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
399 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
402 2008-11-24 Eric Blake <ebb9@byu.net>
404 Fix typo in AS_MESSAGE_LOG_FD patch.
405 * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
407 2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
409 More reliable signal handling in Autotest.
410 * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
411 Start parallel jobs in their own process group, enabling job
412 control in the shell if possible, for better signal handling.
413 Deal with INT, TERM, and HUP in the testsuite driver. In the
414 parallel driver, propagate TSTP to jobs either as TSTP or as
415 STOP (to avoid fork bombs with ksh).
416 Inside the job processes, add PIPE handler to write back the
417 job token, so the master process does not hang.
418 Disable the parallel driver if job control is not provided or if
419 trap does not understand signal names.
420 * tests/autotest.at (parallel autotest and signals): New test,
421 exercises INT, TERM, and PIPE, serial and parallel, with and
422 without `make' in the loop.
423 Kudos to Richard Stevens for writing APUE.
425 2008-11-22 Eric Blake <ebb9@byu.net>
427 Fix testsuite failure on Solaris.
428 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
431 2008-11-21 Eric Blake <ebb9@byu.net>
433 Clean up AS_MESSAGE_LOG_FD usage.
434 * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
435 (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
436 (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
438 (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
439 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
440 (AS@&t@_MESSAGE_FD): New test.
441 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
442 Give more details about fd manipulation.
443 (File Descriptor Macros): Describe M4sh defaults for the fds.
445 2008-11-21 Eric Blake <ebb9@byu.net>
447 Use shell function for AS_ERROR.
448 * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
451 (_AS_LINENO_PREPARE): Break circular dependency.
452 (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
454 2008-11-21 Eric Blake <ebb9@byu.net>
456 Fix typos in recent testsuite improvements.
457 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
459 * NEWS: Clarify the potential impact to users.
460 * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
462 (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
463 (unusual file names): Test that the recent echo fix does not
464 regress. Fix quoting bug that made the test a no-op.
465 Reported by Paolo Bonzini and Ralf Wildenhues.
467 2008-11-21 Eric Blake <ebb9@byu.net>
469 Use modern m4sh constructs in autoconf.
470 * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
473 Change the semantics of AS_EXIT without argument.
474 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
476 (AS_ERROR): Guarantee non-zero status.
477 * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
478 we want non-zero status.
479 * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
480 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
482 <AS_SET_STATUS>: Don't overly restrict implementation.
483 (Printing Messages) <AC_MSG_ERROR>: Describe better default.
484 Suggestions by Paolo Bonzini and Ralf Wildenhues.
486 2008-11-21 Eric Blake <ebb9@byu.net>
488 Add @anchors within Builtins and Usual Tools lists.
489 * doc/autoconf.texi (Limitations of Builtins)
490 (Limitatations of Usual Tools): Add anchors for tools called out
491 by name. Adjust callers to narrow in on tool of interest.
493 Move case statement style discussion to m4 quoting section.
494 * doc/autoconf.texi (Limitations of Builtins): Move comparison of
496 (Balancing Parentheses): ...to this new node.
497 Suggested by Ralf Wildenhues.
499 2008-11-20 Eric Blake <ebb9@byu.net>
501 Factor more common code out of AT_CHECK into shell function.
502 * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
503 starts with -. Move preparations...
504 (AT_INIT) <at_fn_check_prepare_trace>
505 <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
506 ...into these new shell functions.
507 <at_fn_check_newline>: Inline into only caller.
508 (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
510 2008-11-20 Eric Blake <ebb9@byu.net>
512 Handle version numbers as decimal, even if they start with 0.
513 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
514 interpreting leading zeros as octal.
516 2008-11-20 Eric Blake <ebb9@byu.net>
519 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
520 third and fourth arguments once.
521 (_AT_CHECK): Don't re-expand expected output. Rearrange code for
522 fewer scans of arguments.
523 (AT_CHECK): Update caller.
524 (AT_INIT) <at_fn_filter_trace>: Drop parameter.
525 * tests/m4sugar.at (m4@&t@_split): Protect test with
528 Fix XFAIL related to AT_CHECK.
529 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
531 (_AT_CHECK): Don't re-expand commands.
532 * tests/autotest.at (Multiline command from M4 expansion): Remove
534 * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
535 * NEWS: Document the fallout.
537 2008-11-20 Eric Blake <ebb9@byu.net>
539 Reduce forks in AC_DEFINE.
540 * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
541 (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
543 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
544 * tests/torture.at (Substitute and define special characters):
545 (Define to a 2000-byte string): Enhance tests to cover
547 (@%:@define header templates): Enhance test to cover #.
549 2008-11-20 Eric Blake <ebb9@byu.net>
551 Improve m4_expand robustness, part 2.
552 * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
553 comments, by wrapping old implementation...
554 (_m4_expand): ...as this, and renaming old core...
555 (_m4_expand_): ...to this.
556 (m4_text_box): Use lighter-weight _m4_expand.
557 * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
558 (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
559 * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
560 * tests/m4sugar.at (m4@&t@_expand): Enhance test.
561 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
562 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
565 Improve m4_expand robustness, part 1.
566 * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
568 * tests/m4sugar.at (m4@&t@_expand): New test.
570 2008-11-20 Eric Blake <ebb9@byu.net>
572 Add m4_chomp, m4_esyscmd_s.
573 * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
575 * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
577 (Text processing Macros) <m4_chomp>: Likewise.
579 * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
582 * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
583 to make callers guarantee a match.
584 (m4_init): Adjust caller.
585 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
586 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
588 Describe different hacks for balancing ')' in case statements.
589 * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
590 exposition on various quoting styles.
592 2008-11-20 Eric Blake <ebb9@byu.net>
595 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
596 (_AS_QUOTE): ...here, delete unused second paramenter, and factor
598 (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
600 2008-11-20 Alfred G. de Wijn <dwijn@iluvatar.eu.org> (tiny change)
602 For consistency, make temporary variable match language name.
603 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
604 Match the save/test variables' names to the FFLAGS/FCFLAGS being
608 2008-11-19 Eric Blake <ebb9@byu.net>
610 Improve testsuite generation.
611 * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
612 (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@. Use
615 2008-11-18 Eric Blake <ebb9@byu.net>
617 Use fn for shell functions, func for autoconf CHECK_FUNCS.
618 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
620 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
621 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
622 (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
623 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
624 (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
625 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
626 (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
627 * lib/autotest/general.m4 (AT_INIT): Likewise.
628 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
629 (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
630 (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
631 (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
632 * doc/autoconf.texi (Shell Functions): Likewise.
634 2008-11-18 Eric Blake <ebb9@byu.net>
636 Alter default value of AS_EXIT.
637 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
638 parameter be optional.
639 (AS_EXIT): Use it to make better default.
640 (_AS_DETECT_BETTER_SHELL): Use new default.
641 * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
642 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
643 * tests/m4sh.at (AS@&t@_EXIT): Update test.
644 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
645 new default behavior.
646 (Limitations of Builtins) <trap>: Adjust to use new default.
647 * NEWS: Mention the semantic change.
648 Suggested by Ralf Wildenhues.
650 Update example to match actual Tru64 behavior.
651 * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
653 Reported by Ralf Wildenhues.
655 Add AS_SET_STATUS, make AS_EXIT more efficient.
656 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
658 (AS_EXIT): Rewrite to avoid forks.
659 (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
660 (AS_PREPARE, _AS_PREPARE): Add new preparation.
661 * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
663 * NEWS: Mention new macro.
664 * tests/m4sh.at (AS@&t@_EXIT): New test.
665 (BASENAME_TEST): Sort.
667 Document Tru64 bug with 'set -e'.
668 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
669 bug in mixing 'set -e' with 'trap .. 0'.
670 Reported by Ralf Wildenhues.
672 Document a Solaris /bin/sh bug with 'set -e'.
673 * doc/autoconf.texi (Shell Functions): Mention the bug.
675 2008-11-17 Eric Blake <ebb9@byu.net>
677 Detect empty list in AS_FOR.
678 * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
680 * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
681 Reported by Paolo Bonzini.
683 2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
685 Use a different workaround for an automake quirk.
686 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
687 (distclean_generic): New helper variable, to fool automake.
688 ($(distclean_generic)): Depend on clean-local, to prevent
689 the race in the two rules with accessing and removing
691 Report by Eric Blake.
693 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
694 unbalanced parentheses from last change.
695 Spotted by Eric Blake, fix suggested by Paolo Bonzini.
697 Fix exit status of expr version of as_func_arith.
698 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
699 status of 1 of expr also as success, to avoid failure if the
700 computation result is zero. Fixes test failures with IRIX sh,
701 where the expr variant of as_func_arith is used.
703 Do not use read-only variable $status.
704 * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
707 2008-11-15 Eric Blake <ebb9@byu.net>
709 Use the new AS_FOR function.
710 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
711 abstraction for cleaner code.
712 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
714 Add AS_FOR, undocumented for now.
715 * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
716 * tests/m4sh.at (AS@&t@_FOR): New test.
717 Suggested by Paolo Bonzini.
719 2008-11-13 Eric Blake <ebb9@byu.net>
721 Optimize single-argument loop.
722 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
723 loop only has one argument.
724 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
726 2008-11-13 Eric Blake <ebb9@byu.net>
728 Fix AS_ESCAPE usage bugs.
729 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
730 (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
732 (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
733 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
734 caveat due to conditional AS_ESCAPE.
735 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
737 2008-11-12 Eric Blake <ebb9@byu.net>
739 Whitespace reduction in configure.
740 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
741 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
743 (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
746 2008-11-12 Eric Blake <ebb9@byu.net>
748 Make M4sh, not autoconf, guarantee sane $SHELL.
749 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
751 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
752 * doc/autoconf.texi (Initialization Macros): Document the effect
754 * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
755 Reported by Ralf Wildenhues.
757 2008-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
759 Wrap keywords in `testsuite --list' output.
760 * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
761 avoid lint warnings from gawk, wrap keyword lists to stay below
762 80 characters per line if possible.
763 * tests/autotest.at (Keyword wrapping): New test.
765 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
767 * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
770 2008-11-10 Eric Blake <ebb9@byu.net>
772 Work around <=m4-1.4.9 bug in m4_format.
773 * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
774 (m4_init): Only use it in older m4.
775 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
776 m4_format bug in older m4.
777 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
778 Reported by Bob Proulx.
780 2008-11-10 Eric Blake <ebb9@byu.net>
782 Match upstream standards.texi.
783 * doc/standards.texi: Resync from upstream.
784 * doc/fdl-1.3.texi: Rename...
785 * doc/fdl.texi: ...to this.
786 * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
788 * doc/autoconf.texi (GNU Free Documentation License): Likewise.
789 * cfg.mk (fetch): Likewise.
791 Yet more FDL 1.3 fallout.
792 * NEWS: Mention manual license change.
794 2008-11-10 Eric Blake <ebb9@byu.net>
796 Avoid some regex uses.
797 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
798 than m4_bpatsubst to grab string prefix.
799 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
800 (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
801 (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
802 m4_bpatsubst to change bytes.
803 (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
804 m4_bmatch to find byte.
805 (_AC_CONFIG_COMPUTE_DEST): New helper macro.
807 Use more efficient macros in AC_CONFIG_SUBDIRS.
808 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
810 (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
811 (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
813 Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
814 * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
816 (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
817 (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
819 (AC_LIBSOURCES): Use m4_map_args.
821 Use more efficient macros in AC_CHECK_TYPES.
822 * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
824 (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
826 Use more efficient macros in AC_CHECK_HEADERS.
827 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
828 (AH_CHECK_HEADERS_DIRENT): Rename...
829 (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
830 argument, rather than a list.
831 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
832 Adjust callers to use m4_map_args_w.
833 (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
834 (_AC_CHECK_HEADER_ONCE): New helper macro.
836 Use more efficient macros in AC_CHECK_FUNCS.
837 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
838 (_AH_CHECK_FUNC): ...and take only one argument, rather than a
840 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
842 (_AC_CHECK_FUNC_ONCE): New helper macro.
843 (AC_REPLACE_FUNCS): Use m4_map_args_w.
845 Use more efficient macro in AT_INIT.
846 * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
848 2008-11-10 Eric Blake <ebb9@byu.net>
850 More FDL 1.3 fallout.
851 * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
852 * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
854 * doc/fdl.texi: Delete.
855 * doc/gnu-oids.texi: New upstream file.
856 * doc/standards.texi: Resync from upstream.
857 * doc/make-stds.texi: Likewise.
858 * build-aux/announce-gen: Likewise.
859 * build-aux/texinfo.tex: Likewise.
861 2008-11-10 Clinton Roy <clinton.roy@gmail.com> (tiny change)
863 Pass autoreconf -I to aclocal -I
864 * bin/autoreconf.in (parse_args): Pass --include to aclocal.
865 * doc/autoconf.texi (autoreconf Invocation): Updates for above.
869 2008-11-10 Eric Blake <ebb9@byu.net>
871 Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
872 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
873 * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
874 the print workaround.
875 Idea by Paolo Bonzini.
877 2008-11-10 Eric Blake <ebb9@byu.net>
879 Provide a section on all tools allowed in GNU Coding Standards.
880 * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
882 (Limitations of Usual Tools) <awk>: Make table entry consistent.
883 <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
885 2008-11-09 Paolo Bonzini <bonzini@gnu.org>
887 Balance parentheses in _AC_CACHE_DUMP.
888 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
889 without introducing \).
891 2008-11-07 Eric Blake <ebb9@byu.net>
893 Further doc updates for AC_CHECK_HEADER change.
894 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
895 new default, and make it more obvious that using [-] is generally
898 2008-11-07 Eric Blake <ebb9@byu.net>
900 * ChangeLog: Enforce UTF-8 encoding.
902 2008-11-06 Eric Blake <ebb9@byu.net>
904 Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
905 * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
906 argument to speed up check.
908 2008-11-06 Eric Blake <ebb9@byu.net>
910 Speed up AC_CHECK_TYPE.
911 * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
912 regex when enough arguments are present.
914 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
916 Remove three forks per _AC_RUN_LOG_STDERR in the common case.
917 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
918 sequence when the program's stderr was empty, while providing a
919 conftest.err file even in that case.
920 (_AC_CACHE_DUMP): Fix mismatched parenthesis.
922 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
924 Change `present but cannot be compiled' behavior to use compiler result.
926 * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
927 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
929 * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
931 2008-11-05 Eric Blake <ebb9@byu.net>
934 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
936 (_m4_split): Allow user control over separator.
937 (m4_split): Adjust caller.
938 (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
940 * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
941 (M4 loops): Test new interface.
943 Use m4_set_map_sep in more places.
944 * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
945 (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
946 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
947 Enhance documentation.
948 <m4_set_foreach>: Mention faster alternative.
949 (Looping constructs) <m4_foreach>: Likewise.
951 Unify m4_set_foreach and m4_set_map.
952 * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
954 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
955 (m4_set_map): Adjust callers.
957 Use _m4_foreach in more places.
958 * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
959 (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
961 * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
962 instead of m4_foreach or m4_map_args.
964 Unify _m4_foreach and _m4_map.
965 * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
966 (_m4_foreach): ...this.
967 (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
968 (m4_map_args, m4_map_args_sep): Adjust callers.
969 * lib/m4sugar/foreach.m4 (_m4_map): Rename...
970 (_m4_foreach): ...to this, overwriting old definition.
972 2008-11-04 Eric Blake <ebb9@byu.net>
974 Add m4_map_args_sep, undocumented for now.
975 * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
976 (_m4_map): Change API to cover more of m4_map*.
977 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
978 (m4_map_args): Delete.
979 * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
982 Improve m4_for performance.
983 * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
984 avoid m4_define by some clients.
985 (m4_for): Adjust caller.
986 * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
987 (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
988 (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
989 (_m4_list_cmp): Likewise.
991 2008-11-04 Eric Blake <ebb9@byu.net>
993 Adjust expected output.
994 * tests/torture.at (Missing templates): Reflect added quoting.
995 Detected by Bob Proulx's buildbot.
997 Reject arguments with leading =.
998 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
999 missing variable name, with fewer forks. Quote invalid arguments
1000 in message, in case they include spaces.
1001 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
1002 (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
1003 * lib/autotest/general.m4 (AT_INIT): Likewise.
1004 * tests/base.at (configure arguments): Test this.
1005 Reported by Jeff Squyres.
1007 2008-11-04 Eric Blake <ebb9@byu.net>
1010 * cfg.mk (fetch): Add fdl-1.3.texi.
1011 * .gitattributes: Likewise.
1012 * doc/autoconf.texi (GNU Free Documentation License): Point to new
1014 * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
1015 (standards_TEXINFOS): Mention current dependence on older license.
1016 * doc/fdl-1.3.texi: New upstream file.
1017 * GNUmakefile: Resync from upstream.
1018 * build-aux/announce-gen: Likewise.
1019 * build-aux/texinfo.tex: Likewise.
1021 2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1023 Point at AM_SUBST_NOTMAKE.
1024 * doc/autoconf.texi (Setting Output Variables): Add cross
1025 reference to new Automake macro AM_SUBST_NOTMAKE.
1027 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
1029 Eliminate a fork per invocation of AC_LANG_CONFTEST.
1030 * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
1032 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
1033 top of confdefs.h, which also works around cpp deficiencies.
1034 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
1035 (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
1036 (AC_LANG_CONFTEST()): New.
1038 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
1040 Reorganize definition of languages.
1041 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
1042 _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
1043 _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
1044 Replace definitions with usage of AC_LANG_DEFINE.
1045 (Sections 2b, 2c): Delete.
1046 (Sections 1b, 1c): Move after section 2a.
1047 * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
1048 _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
1049 with usage of AC_LANG_DEFINE.
1050 (AC_LANG_ERLANG): Define using AU_DEFUN.
1051 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
1052 _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
1053 _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
1054 _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
1055 definitions with usage of AC_LANG_DEFINE.
1056 * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
1058 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
1060 Use preprocessor in cpp tests.
1061 * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
1063 2008-10-31 Paolo Bonzini <bonzini@gnu.org>
1065 Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
1066 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
1067 (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
1068 (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
1069 (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
1070 (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
1071 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
1074 2008-10-31 Eric Blake <ebb9@byu.net>
1076 Support multiple undiverts and dumpdefs at once.
1077 * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
1079 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
1080 <m4_undivert>: Document argument list change.
1081 * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
1084 Simplify diversion stack handling.
1085 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
1086 avoid extra newlines.
1087 (m4_divert_stack_push): Compute location here, rather than caller.
1088 (m4_divert_push): Update caller.
1089 (m4_divert): Likewise, and also adjust current diversion name.
1090 (m4_divert_pop): Simplify rule that diversion stack must never go
1092 (_m4_require_call): Bypass diversion stack when collecting
1093 required macro text.
1094 (m4_init): Set current diversion without requiring m4_init.
1095 * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
1096 * lib/autotest/general.m4 (AT_INIT): Likewise.
1097 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
1098 text to run prior to m4sugar cleanup.
1099 * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
1101 (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
1102 * NEWS: Undo blurb about m4_divert.
1103 * tests/m4sugar.at (m4@&t@_divert_stack): New test.
1105 Simplify expansion stack handling.
1106 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
1107 always output 'top level'.
1108 (_m4_expansion_stack_entry): New macro, to format the string only
1110 (m4_expansion_stack_push): Only push a macro name.
1111 (m4_warn, _m4_defun_pro): Update callers.
1112 (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
1113 (_m4_defun_epi, m4_fatal): Inline the calls.
1114 * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
1116 2008-10-30 Eric Blake <ebb9@byu.net>
1118 Better documentation of AC_CHECK_HEADER's fourth argument.
1119 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1120 how to suppress compiler or preprocessor header check.
1121 Reported by Jeff Squyres.
1123 2008-10-30 Eric Blake <ebb9@byu.net>
1125 Fix LINENO testsuite failure.
1126 * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
1127 undocumented _AS_PREPARE, and move unset earlier in script.
1129 Update LINENO documentation.
1130 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1131 (Special Shell Variables) <LINENO>: Mention that LINENO support in
1132 child scripts may be broken. Modernize example.
1134 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
1136 Do not check for $LINENO in generated scripts.
1137 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
1140 2008-10-30 Eric Blake <ebb9@byu.net>
1142 Don't check for non-POSIX extensions in suggested tests.
1143 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
1144 we still use += if available, but should not reject shells (like
1145 dash) that don't provide it.
1146 (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
1147 Reported by Paolo Bonzini.
1149 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
1151 Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
1152 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
1153 with a given CONFIG_SHELL, move it to SHELL.
1154 (AS_INIT_GENERATED): Re-export SHELL.
1156 2008-10-30 Eric Blake <ebb9@byu.net>
1158 Work around Solaris /bin/sh case bug.
1159 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
1160 a non-empty command list.
1161 (AS_CASE): Always guarantee that a case will match.
1162 * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
1163 Solaris bug, and mention AS_CASE.
1165 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
1167 Require _AS_CR_PREPARE where appropriate.
1168 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
1169 (AS_PREPARE): Require _AS_CR_PREPARE.
1171 Avoid walking the entire PATH when looking for a better shell.
1172 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
1173 as the PATH is walked.
1175 Add third argument to _AS_PATH_WALK
1176 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
1177 (_AS_PATH_WALK): Add third optional argument.
1179 Trim down the length of the shell function test.
1180 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
1182 2008-10-29 Eric Blake <ebb9@byu.net>
1184 Fix LINENO detection to work around bash and pdksh limitations.
1185 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
1186 that we can choose which of two tests to trust.
1187 (_AS_RUN): Set flag when alternate shell is running.
1188 (_AS_DETECT_EXPAND): New macro.
1189 (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
1191 2008-10-29 Eric Blake <ebb9@byu.net>
1193 Mention proper fix for zsh users.
1194 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
1195 version known to work.
1196 Suggested by Paolo Bonzini.
1198 Document current beta-quality status.
1199 * configure.ac: Reflect fact that change to git-version-gen
1200 produces -, but not always a letter, on non-release builds.
1201 * BUGS: Mention known issues.
1202 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
1203 debugging platforms with deficient shells.
1205 2008-10-29 Eric Blake <ebb9@byu.net>
1207 Alter signature of AS_INIT_GENERATED.
1208 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
1209 manage here-doc and chmod in place. This also allows future
1210 changes for optimizing the child via diversion/m4_wrap magic.
1211 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
1213 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1214 Update the documentation.
1216 2008-10-29 Eric Blake <ebb9@byu.net>
1218 Use _m4_stack_reverse in m4_set.
1219 * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
1220 (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
1222 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1223 (m4_set_map): Adjust callers to new API.
1225 Add m4_stack_foreach_sep.
1226 * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
1227 (m4_stack_foreach_sep_lifo): New macros.
1228 (_m4_stack_reverse): Adjust prototype, to support it.
1229 (m4_copy): Use fewer macros.
1230 * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
1231 (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
1233 2008-10-29 Bruno Haible <bruno@clisp.org>
1235 Mention Sun WorkShop 6.2 OpenMP bug.
1236 * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
1238 2008-10-29 Paolo Bonzini <bonzini@gnu.org>
1240 Rewrite handling of diversion and expansion stack.
1241 * NEWS: Document stricter requirement on m4_init.
1242 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
1244 (_m4_divert_stack_push): New.
1245 (m4_divert): Use _m4_divert_stack_push and replace m4_define with
1247 (m4_divert_push): Use _m4_divert_stack_push.
1248 (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
1249 pop _m4_divert_stack instead of m4_divert_stack.
1250 (m4_expansion_stack): New. Update comment above it.
1251 (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
1252 _m4_expansion_stack instead of m4_expansion_stack.
1253 (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
1254 instead of m4_expansion_stack. Use m4_expansion_stack's expansion
1255 instead of the definition, and compensate for the trailing newline
1257 (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
1258 _m4_expansion_stack instead of m4_expansion_stack.
1259 (m4_newline): Expand first argument after the newline.
1260 (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
1261 * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
1262 * tests/tools.at (whitespace in file names, the empty token): Likewise.
1264 2008-10-28 Eric Blake <ebb9@byu.net>
1266 Reduce forks while searching for better shell.
1267 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
1268 (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
1269 already does the job.
1270 (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
1273 Undo needless efforts to protect $2 in $2_t.
1274 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
1275 (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
1277 2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1279 Fix parallel test execution output lossage.
1280 * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
1281 standard output and standard error before the test, use append
1284 Caught by Bob Proulx' build daemons, analysis and suggested fix
1285 by Stéphane Chazelas.
1287 2008-10-28 Eric Blake <ebb9@byu.net>
1289 Use m4_map_args in more places.
1290 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
1291 (m4_undefine, m4_combine): Use m4_map_args, rather than
1294 2008-10-28 Eric Blake <ebb9@byu.net>
1296 Override m4 1.4.x dumpdef, as it breaks autom4te.
1297 * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
1298 (m4_copy): Formatting touchup.
1299 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
1300 semantic differences as well as m4_dumpdefs.
1302 * tests/m4sugar.at (m4@&t@_dumpdef): New test.
1304 2008-10-28 Eric Blake <ebb9@byu.net>
1306 Allow m4sugar to be used without autom4te, such as in bison.
1307 * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
1308 alternate escape sequences can be used.
1309 (m4_text_box): Likewise. Don't output quadrigraphs.
1310 (m4_qdelta): Delete unused macro.
1312 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
1314 Add m4_stack_foreach and m4_stack_foreach_lifo.
1315 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
1316 (m4_stack_foreach, m4_stack_foreach_lifo): New.
1317 (m4_copy): Use m4_stack_foreach and m4_curry.
1318 (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
1319 (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
1320 * tests/m4sugar.at (m4_stack_foreach): New test.
1322 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
1324 use a shell function for AC_TYPE_INTx_T
1325 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
1327 (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
1329 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
1331 * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
1332 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
1333 _AC_CHECK_HEADER_NEW): Likewise.
1334 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
1336 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
1338 * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
1339 (AC_CHECK_MEMBER): Define and use a shell function.
1341 2008-10-27 Eric Blake <ebb9@byu.net>
1343 Prefer m4_fatal over AC_FATAL.
1344 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
1345 (AC_CHECK_MEMBER): Use non-obsolete macro name.
1346 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
1347 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
1349 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
1350 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
1351 (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
1353 2008-10-27 Eric Blake <ebb9@byu.net>
1355 Avoid raw carriage return in scripts.
1356 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
1357 via tr, rather than with literal byte.
1359 Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
1361 2008-10-27 Eric Blake <ebb9@byu.net>
1364 * lib/autotest/general.m4 (at_func_arith): Delete; replace all
1365 clients with AS_VAR_ARITH instead.
1366 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
1368 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
1369 * tests/torture.at (Torturing config.status): Likewise.
1370 * tests/tools.at (autom4te --force): Likewise.
1373 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
1374 (AS_VAR_ARITH): New macros.
1375 (_AS_PREPARE, AS_PREPARE): Emit preparation.
1376 * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
1377 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
1379 (Limitations of Usual Tools) <expr>: Mention portability problem
1380 if first argument starts with -.
1381 (Shell Substitutions) <$((expression))>: Mention it.
1384 2008-10-27 Eric Blake <ebb9@byu.net>
1386 Use read, rather than `cat`, for safe one-line files.
1387 * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
1388 known that the file has only one line and no \.
1389 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
1391 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
1393 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
1394 _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
1395 (_AC_COMPUTE_INT_BODY): New.
1396 (AC_COMPUTE_INT): Define and use a shell function.
1398 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
1400 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
1401 test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
1402 (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
1404 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
1406 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
1407 (AC_CHECK_DECL): Use a shell function.
1409 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
1411 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
1412 _AC_CHECK_HEADER_NEW): Use a shell function.
1414 2008-10-25 Eric Blake <ebb9@byu.net>
1416 Track recent copyright assignments.
1419 2008-10-25 Paolo Bonzini <bonzini@gnu.org>
1420 and Eric Blake <ebb9@byu.net>
1422 Use a shell function for _AC_CHECK_HEADER_MONGREL.
1423 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
1425 (_AC_CHECK_HEADER_MONGREL): Use a shell function.
1427 2008-10-25 Eric Blake <ebb9@byu.net>
1429 Simplify _AS_PREPARE handling of functions.
1430 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
1431 (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
1432 (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
1434 (_AS_LINENO_PREPARE): Make more efficient.
1435 (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
1436 (_AS_UNSET_PREPARE): Avoid blank newline.
1437 (AS_INIT): Emit as_func_unset alongside other functions.
1439 2008-10-25 Eric Blake <ebb9@byu.net>
1442 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
1444 (Limitations of Builtins): Mention AS_EXIT.
1447 Use AS_EXIT in autoconf.as.
1448 * bin/autoconf.as: Consistently use AS_EXIT.
1450 2008-10-24 Eric Blake <ebb9@byu.net>
1452 Fix m4 underquoting in AC_PROG_INSTALL.
1453 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
1456 Speed up AC_CHECK_HEADER.
1457 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
1459 2008-10-24 Paolo Bonzini <bonzini@gnu.org>
1460 and Eric Blake <ebb9@byu.net>
1462 Use a shell function for AC_CHECK_FUNC.
1463 * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
1464 (AC_CHECK_FUNC): Use a shell function.
1465 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
1467 2008-10-24 Eric Blake <ebb9@byu.net>
1469 Work around fact that gnulib-tool doesn't use m4_copy.
1470 * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
1471 define, so that an initial location is present, to account for
1472 fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
1474 Make m4_defun_init more robust.
1475 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
1476 names, and correct number of arguments.
1477 (m4_copy): Also set up location of the copy.
1478 (m4_defun): When copied, use current macro name, not original.
1479 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
1482 Optimize clients of AS_REQUIRE.
1483 * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
1485 (m4_defun_init): New undocumented macro.
1486 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
1487 (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
1488 (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
1489 (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
1490 simplify these macros once the one-shot initialization is
1492 * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
1496 * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
1498 (_m4_copy): New macro, which preserves pushdef stacks.
1499 (_m4_defun_pro_outer): Bypass it, for speed.
1500 (m4_init): Bypass new implementation, since it breaks on m4_defn.
1501 * bin/autoupdate.in (handle_autoconf_macros): Likewise.
1502 * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
1503 now that m4_copy checks this.
1504 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
1505 this, as well as m4_rename.
1506 * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
1507 renaming builtins, since it breaks on m4_ifdef.
1509 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
1511 2008-10-24 Eric Blake <ebb9@byu.net>
1513 AC_FUNC_GETGROUPS: Revert regression.
1514 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
1515 ac_cv_func_getgroups_works=no when it is not available.
1517 2008-10-23 Eric Blake <ebb9@byu.net>
1520 * lib/autoconf/fortran.m4: Consistently use tabs.
1522 2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
1524 For gfortran on sh, ignore -little.
1525 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
1526 list of ignored arguments.
1529 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
1531 Eliminate empty lines after AC_*_IFELSE.
1532 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1533 _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
1535 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
1537 Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
1538 * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
1539 Return a boolean status code based on $ac_status.
1541 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
1543 Ensure actions can look at conftest* files.
1544 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
1545 _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
1546 Move rm commands, except IPA files and Apple debug symbols...
1547 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
1548 _AC_RUN_IFELSE): ...in here.
1549 * tests/compile.at: Add regression test.
1551 2008-10-23 Eric Blake <ebb9@byu.net>
1553 Remove excess dnl from m4sh.
1554 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
1555 (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
1556 (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
1557 (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
1558 (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
1559 (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
1560 (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
1561 (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
1562 (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
1563 (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
1565 2008-10-23 Paolo Bonzini <bonzini@gnu.org>
1566 and Eric Blake <ebb9@byu.net>
1568 Use a shell function for _AC_RUN_IFELSE.
1569 * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
1570 (_AC_RUN_IFELSE): Use a shell function.
1571 (_AC_RUN_LOG): Avoid subshell for logging.
1573 2008-10-23 Eric Blake <ebb9@byu.net>
1575 Formatting tweak: balance () with m4sh case statements.
1576 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
1577 (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
1578 (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
1579 (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
1580 allow output of strategic shell comments.
1581 (AS_VERSION_COMPARE): Use AS_CASE.
1582 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
1584 2008-10-22 Jim Meyering <meyering@redhat.com>
1586 AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
1587 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
1588 the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
1589 it is set to "yes" in the environment and configure is run on
1590 a system like mingw that lacks the getgroups function, it would
1591 mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
1592 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
1594 2008-10-22 Paolo Bonzini <bonzini@gnu.org>
1595 and Eric Blake <ebb9@byu.net>
1597 Use a shell function for _AC_LINK_IFELSE.
1598 * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
1599 (_AC_LINK_IFELSE): Use a shell function.
1601 2008-10-22 Eric Blake <ebb9@byu.net>
1603 Fix autoconf logging commands.
1604 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
1605 (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
1606 (_AC_DO_ECHO): Likewise, and use fewer dnl.
1607 (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
1609 2008-10-22 Eric Blake <ebb9@byu.net>
1611 Fix testsuite failure.
1612 * tests/mktests.sh (ac_exclude_list): Don't generate test for
1613 AC_REQUIRE_SHELL_FN.
1615 2008-10-21 Eric Blake <ebb9@byu.net>
1617 Improve wording related to automake and autotest.
1618 * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
1619 relation to automake. Mention dependency on package.m4.
1620 Consolidate examples. Define AUTOM4TE.
1622 Reported by William Pursell.
1624 2008-10-21 Eric Blake <ebb9@byu.net>
1626 Allow AS_VAR_SET_IF in shell lists.
1627 * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
1629 * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
1630 provided by AS_VAR_SET_IF.
1631 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
1633 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1634 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1636 Allow AS_VAR_IF in shell lists.
1637 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
1638 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
1639 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
1641 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
1642 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
1643 (_AC_CHECK_HEADER_DIRENT): Likewise.
1644 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
1645 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
1647 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1649 Allow AS_CASE in shell lists.
1650 * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
1651 side effects. Allow continuation of script on same line as esac.
1652 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
1653 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
1654 * NEWS: Document the subtle change.
1656 Allow AS_IF in shell lists.
1657 * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
1658 side effects. Allow continuation of script on same line as fi.
1659 (_AS_DETECT_BETTER_SHELL): Adjust clients.
1660 (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
1662 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
1663 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
1664 (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
1665 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1666 * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
1667 (Polymorphic Variables): Move mention of dnl to the only two
1668 AS_VAR functions that need it.
1670 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
1671 and Eric Blake <ebb9@byu.net>
1673 Use a shell function for _AC_COMPILE_IFELSE.
1674 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
1675 (_AC_COMPILE_IFELSE): Use a shell function.
1677 2008-10-21 Eric Blake <ebb9@byu.net>
1680 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
1681 * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
1682 (_AC_LIBOBJS_NORMALIZE): Likewise.
1683 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
1684 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
1685 (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
1686 * lib/autotest/general.m4 (AT_INIT): Likewise.
1689 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
1690 (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
1691 (AS_PREPARE, _AS_PREPARE): Emit preparation.
1692 * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
1693 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
1695 <AS_VAR_SET>: Mention ramification of `""` rules.
1696 * NEWS: Mention new macro.
1698 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
1699 and Eric Blake <ebb9@byu.net>
1701 Use a shell function for _AC_PREPROC_IFELSE.
1702 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
1703 (_AC_PREPROC_IFELSE): Use a shell function.
1704 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
1705 (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
1708 2008-10-21 Eric Blake <ebb9@byu.net>
1710 Add banners to generated files.
1711 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
1713 (AS_INIT): Add new banners at strategic points.
1714 * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
1715 make consistent with other banners.
1716 * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
1718 2008-10-20 Paolo Bonzini <bonzini@gnu.org>
1720 Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
1721 * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
1722 (m4_divert(SHELL_FN)): New.
1724 2008-10-20 Eric Blake <ebb9@byu.net>
1726 Avoid unportable use of echo in testsuite.
1727 * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
1730 2008-10-18 Paolo Bonzini <bonzini@gnu.org>
1732 Make sure that nested AS_REQUIRE do not lose the desired diversion.
1733 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
1734 passing it to m4_divert_require, so that its content is not used
1736 * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
1738 2008-10-18 Eric Blake <ebb9@byu.net>
1740 Document bugs in { } handling.
1741 * doc/autoconf.texi (Limitations of Builtins): Mention bug on
1744 Fix some testsuite failures introduced two days ago.
1745 * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
1746 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
1748 Reported by Ralf Wildenhues.
1750 2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1752 Show how to extract single substitutions from config.status.
1753 * doc/autoconf.texi (config.status Invocation): Show example
1756 2008-10-17 Eric Blake <ebb9@byu.net>
1759 * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
1760 * tests/m4sugar.at (m4@&t@_map_args): Rename...
1761 (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
1762 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1763 currying as a way to add parameters.
1764 (Evaluation Macros) <m4_curry>: Document the new macro.
1767 Improve suggested test filtering.
1768 * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
1770 (_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
1771 check for an empty required set.
1774 * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
1775 * tests/m4sugar.at (m4@&t@_set): Enhance test.
1776 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1780 Document m4_map_args.
1781 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
1783 (m4_map_args, m4_map_args_pair): ...to these names, and document.
1784 (m4_version_unletter): Use the interface.
1785 * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
1786 (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
1787 Perform same renames.
1788 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
1789 * tests/m4sugar.at (m4@&t@_map_args): New test.
1790 (recursion): Adjust caller.
1791 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
1792 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
1794 * NEWS: Mention the new macros.
1796 2008-10-17 Eric Blake <ebb9@byu.net>
1798 Reduce vertical whitespace in configure.
1799 * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
1800 m4 side effect initializations.
1801 * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
1803 2008-10-17 Eric Blake <ebb9@byu.net>
1805 Document AS_VAR interfaces.
1806 * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
1807 (Polymorphic Variables): New node.
1808 * NEWS: Update accordingly.
1810 Test AS_VAR interfaces.
1811 * tests/m4sh.at (AS@&t@_VAR): New test.
1812 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
1813 _AS_TR_SH_PREPARE at top level, rather than argument collection.
1814 (AS_TR_SH): Support command substitution.
1817 * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
1818 (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
1819 * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
1820 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
1821 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
1823 Sort AS_VAR_* interfaces.
1824 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
1825 (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
1828 2008-10-16 Eric Blake <ebb9@byu.net>
1830 Allow comments before functions emitted by m4sh.
1831 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
1832 argument. Supply closing comment, to ease readability.
1833 (_AS_MKDIR_P_PREPARE): Adjust caller.
1834 (_AS_UNSET_PREPARE): Add comment.
1836 Add AS_FUNCTION_DESCRIBE.
1837 * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
1838 * lib/autotest/general.m4 (AT_INIT): Use it.
1840 2008-10-16 Eric Blake <ebb9@byu.net>
1842 Speed up m4_qlen with caching.
1843 * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
1844 (m4_qlen): Cache results for speed.
1846 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
1848 Add a testcase using more then one language.
1849 * tests/compile.at (Multiple languages): New test.
1851 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
1853 Fix Libtool's config.lt test.
1854 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
1857 2008-10-15 Eric Blake <ebb9@byu.net>
1859 Break circular require chain in _AS_LINENO_PREPARE.
1860 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
1861 disabled when reporting LINENO failure, since logging requires
1863 * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
1864 not m4_rename, since the latter is undocumented.
1865 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
1866 m4_rename, as it does not yet handle pushdef stacks.
1867 Reported by Ralf Wildenhues.
1869 2008-10-15 Eric Blake <ebb9@byu.net>
1871 Cleanups to previous patches.
1872 * doc/autoconf.texi (Portable Shell): Minor edits.
1873 (Limitations of Builtins): Touch up wording.
1874 * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
1875 (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
1877 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1879 Updates to shell portability documentation.
1880 * doc/autoconf.texi: Updates all references to "Portable Shell" and
1881 "Limitations of Builtins" to use three-argument commands.
1882 (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
1883 (Portable Shell): Move here discussion about "Where is the POSIX
1884 shell?" Mention that M4sh provides a SVR2 shell and takes care
1885 of unsetting variables if necessary. Talk about M4sh and not only
1886 Autoconf-generated scripts.
1887 (Special Shell Variables): Talk about M4sh and not only
1888 Autoconf-generated scripts. Don't talk about things that Autoconf
1889 does not do. Mention problems of $LINENO with shell functions.
1890 (Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
1891 discussion of eval bugs before discussion on proper use of eval.
1892 Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
1893 unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
1894 * NEWS: Update list of documented M4sh macros.
1896 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1898 Assume a (possibly buggy) `unset' is present after a
1899 `better shell' was found.
1900 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
1901 * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
1902 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
1903 alias for AS_UNSET, for backwards compatibility.
1904 (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
1905 the shell does not support unset.
1906 (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
1907 (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
1908 (AS_UNSET): Assume it is there but it might fail if the variable is
1909 not set. Use it throughout instead of $as_unset.
1911 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1913 Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
1914 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
1915 m4_require of _AS_DETECT_BETTER_SHELL.
1916 (_AS_CLEANUP): Add it here.
1917 (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
1919 (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
1920 (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
1921 (AS_PREPARE): Use _AS_SHELL_SANITIZE.
1922 (AS_INIT): Add m4_provide of itself.
1924 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1926 Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
1927 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
1928 "test x$foo = xyes".
1930 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1932 Trim down the size of the better-shell test.
1933 * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
1934 snippets into shell variables.
1937 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
1939 Support a stack of LINENO values for AS_MESSAGE.
1940 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
1941 the line number emitted to the log file.
1942 (AS_LINENO_PUSH, AS_LINENO_POP): New.
1943 * tests/m4sh.at (LINENO Stack): New test.
1945 2008-10-14 Eric Blake <ebb9@byu.net>
1947 Correct previous patch.
1948 * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
1951 Document shell function environment pitfall.
1952 * doc/autoconf.texi (Shell Functions): Document bugs in bash,
1955 2008-10-14 Paolo Bonzini <bonzini@gnu.org>
1957 Use m4_require to implement AS_REQUIRE.
1958 * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
1959 (m4_require): Pass it.
1960 (m4_divert_require): New.
1961 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
1962 Remove comment about differences with m4_require.
1963 * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
1964 the expected behavior.
1965 (Nested AS_REQUIRE_SHELL_FN): New test.
1967 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1969 Test AS_LINENO_PREPARE.
1970 * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
1972 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1975 * tests/m4sh.at (as_me): New test.
1977 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1979 Add and document AS_INIT_GENERATED.
1980 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
1981 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
1982 * doc/autoconf.texi (Initialization macros): Document it.
1984 2008-10-13 Eric Blake <ebb9@byu.net>
1986 Use consistent shell function style.
1987 * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
1988 (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
1991 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1993 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
1994 contributors under m4 rather than shell comments.
1996 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
1998 * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
1999 * doc/autoconf.texi (Initialization macros): Document them.
2000 (Portable Shell): Refer to AS_LINENO_PREPARE.
2001 * NEWS: Mention them.
2003 * bin/autoconf.as: Invoke AS_ME_PREPARE.
2004 * lib/autotest/general.m4: Likewise.
2006 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
2008 * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
2010 2008-10-10 Eric Blake <ebb9@byu.net>
2012 Fix _AS_MKDIR_P usage.
2013 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
2014 match implementation.
2015 (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
2016 * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
2017 wording to better match behavior.
2019 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
2021 * doc/autoconf.texi: Be less wary of shell functions.
2022 * NEWS: Document the increased use of shell functions.
2024 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
2026 * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
2027 meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
2028 (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
2029 (_AS_PREPARE): Define shell functions.
2030 (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
2031 Define shell functions.
2033 2008-10-09 Eric Blake <ebb9@byu.net>
2035 Only prepare $as_me if it will be used.
2036 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
2038 (_AS_ECHO_LOG): Depend on $LINENO preparation.
2039 (AS_MESSAGE): Depend on $as_me preparation.
2040 (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
2042 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2044 * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
2045 until the M4SH-INIT diversion using _AS_ME_PREPARE.
2046 (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
2047 and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
2048 before _AS_LINENO_PREPARE.
2049 (AS_PREPARE): Include all the AS_REQUIREs manually.
2050 (_AS_ME_PREPARE): New.
2051 (_AS_LINENO_PREPARE): Use m4_defun.
2053 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
2055 * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
2056 require _AS_EXPR_PREPARE.
2057 (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
2058 (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
2060 2008-10-08 Eric Blake <ebb9@byu.net>
2063 * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
2064 (fetch): ...into new target.
2065 (executable-update): Delete, now that it is unused.
2066 * maint.mk (update, local_updates, cvs_files, gnulib_repo)
2067 (wget-update, cvs-update): Likewise.
2068 * HACKING (Update the foreign files): Document new procedure.
2069 * GNUmakefile: Resync from upstream, via new 'make fetch'.
2070 * build-aux/config.guess: Likewise.
2072 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
2074 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
2075 (AS_INIT): Do not call it.
2077 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
2079 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
2080 _AS_UNSET_PREPARE in M4SH-SANITIZE.
2082 2008-10-08 Eric Blake <ebb9@byu.net>
2084 Avoid repeating required shell tests in suggested set.
2085 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
2086 Use m4_set, rather than m4_expand_once/m4_append.
2087 (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
2088 required tests out of suggested tests.
2089 Reported by Paolo Bonzini.
2091 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
2093 Add m4sh keyword to all m4sh.at tests.
2094 * tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
2097 2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2099 Document AS_VERSION_COMPARE.
2100 * doc/autoconf.texi (Programming in M4sh): Document
2104 Do not write to testsuite log fd before initialization.
2105 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
2106 Define fds only when initializing the log fd so early error
2107 messages do not try to write to it.
2108 * tests/autotest.at (Startup error messages): New test.
2109 * NEWS: Document this 2.63 regression.
2111 2008-10-07 Eric Blake <ebb9@byu.net>
2113 Ensure _AS_CLEANUP is defined.
2114 * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
2115 * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
2117 Improve m4sh maintainability.
2118 * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
2121 Fix m4 quoting in previous patch.
2122 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
2123 name prior to invoking AS_REQUIRE.
2124 Reported by Ralf Wildenhues.
2126 2008-09-18 Paolo Bonzini <bonzini@gnu.org>
2127 and Eric Blake <ebb9@byu.net>
2129 Add a separate diversion for shell functions.
2130 * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
2131 (AS_REQUIRE): Accept diversion parameter.
2132 (AS_REQUIRE_SHELL_FN): Use it.
2134 2008-10-06 Eric Blake <ebb9@byu.net>
2136 Add m4_default_quoted.
2137 * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
2138 (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
2139 * doc/autoconf.texi (Conditional constructs): Document it.
2142 Fix build with case-insensitive make, again.
2143 * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
2144 Reported via Keith Marshall, originally by newthinker in
2145 <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
2147 2008-10-06 Bruno Haible <bruno@clisp.org>
2149 Warn about /usr/ucb on Solaris.
2150 * doc/install.texi (Particular Systems): Recommend putting
2151 /usr/ucb late in PATH, if at all.
2153 2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2155 Fix more testsuite hang corner cases.
2156 * lib/autotest/general.m4: Use the serial code path if no test
2158 * tests/autotest.at (parallel test execution): Test -j and -jN
2159 with `-k notmatched'.
2161 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2163 Fix hang with `testsuite -k notmatched'.
2164 * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
2165 to one. Fixes hang with `-k notmatched'.
2167 2008-10-02 Eric Blake <ebb9@byu.net>
2169 Document more binary file portability traps.
2170 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
2171 reader that NUL and sed don't always mix.
2172 <tr>: Mention Solaris /usr/ucb/tr bug with \0.
2174 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2176 Implement parallel Autotest test execution: testsuite --jobs.
2177 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
2178 (AT_INIT): <at_jobs>: New variable.
2179 Accept -j, -jN, --jobs[=N], document them in --help output.
2180 Implement parallel driver loop using a FIFO, enabled with --jobs
2181 and if mkfifo works; otherwise, fall back to sequential loop.
2182 (AT_SETUP): Store, do not output summary progress line if
2184 * tests/autotest.at (parallel test execution, parallel truth)
2185 (parallel fallacy, parallel skip): New tests.
2186 * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
2187 the mkfifo requirement, and that --errexit may cause concurrent
2191 2008-09-20 Eric Blake <ebb9@byu.net>
2193 Fix sample isinf definition.
2194 * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
2197 Reported by David Cournapeau.
2199 2008-09-16 Eric Blake <ebb9@byu.net>
2201 Fix Erlang regression, introduced 2006-11-17.
2202 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
2203 caused by underquoting.
2204 * NEWS: Mention this fix.
2206 Reported by BJ Terry.
2208 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2210 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
2212 Mention Solaris sh ':' redirection bug.
2213 * doc/autoconf.texi (File Descriptors): Redirecting ':'
2214 in a loop causes bogus optimization with Solaris sh.
2216 2008-09-10 Eric Blake <ebb9@byu.net>
2218 Avoid testsuite bug when autom4te cache is disabled by user.
2219 * tests/tools.at (autoconf: forbidden tokens, basic): Enable
2220 cache, even if user normally disabled it.
2221 Reported by Bruno Haible.
2223 Avoid testsuite bug in presence of verbose config.site.
2224 * tests/base.at (Input/Output): Nullify config.site during test.
2225 Reported by Bob Friesenhahn.
2227 2008-09-09 Eric Blake <ebb9@byu.net>
2229 Release Version 2.63.
2230 * NEWS: Mention the release.
2232 Formatting tweaks to the manual.
2233 * doc/autoconf.texi (Introduction, Systemology)
2234 (File System Conventions, Portable C and C++)
2235 (Floating Point Portability): Allow URLs to split as needed.
2236 (Indices): Add entries, to work around texinfo bug on indices that
2237 start too close to a page break.
2238 (Particular Functions): Mention ftello.
2239 (Introduction, Language Choice): Use @enddots at sentence end.
2242 * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
2243 although for now, they are still manually sync'd.
2244 * build-aux/gnupload: Update.
2245 * build-aux/config.sub: Likewise.
2246 * GNUmakefile: Likewise.
2248 2008-09-06 Eric Blake <ebb9@byu.net>
2250 Mention that Automake already supports VPATH.
2251 * doc/autoconf.texi (Build Directories): Details in this section
2252 only apply to users avoiding automake.
2254 Reported by Matej Tyc.
2256 Relax tone when warning about cross-compiler names.
2257 * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
2258 with poorly named tools; the issue has been reported too many
2259 times in the last four years to pull support.
2260 * doc/autoconf.texi (Specifying Names, Generic Programs): Update
2261 documentation accordingly.
2263 Reported by Josef Tran and others, wording suggested by Ralf
2266 2008-09-01 Eric Blake <ebb9@byu.net>
2268 Improve AC_C_BIGENDIAN.
2269 * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
2270 universal builds require a config header.
2271 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments. Check
2272 AH_HEADER at the last possible moment, so that users can use
2273 AC_CONFIG_HEADER after this macro.
2274 Reported by Stepan Kasal.
2276 Fix manual date information.
2277 * doc/autoconf.tex: UPDATED refers to the day the manual was
2278 built, not the release date of Autoconf.
2279 Based on a bison patch by Akim Demaille.
2281 2008-08-27 Eric Blake <ebb9@byu.net>
2283 Fix off-by-one bug in _m4_shiftn.
2284 * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
2286 * tests/m4sugar.at (M4 loops): Test it.
2287 Reported by Akim Demaille.
2289 2008-08-26 Eric Blake <ebb9@byu.net>
2291 Improve INSTALL formatting.
2292 * doc/install.texi [!autoconf]: Ensure first paragraphs are
2293 indented like all others in a plain text rendering.
2294 * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
2295 Reported by Bruno Haible.
2297 2008-08-26 Stepan Kasal <skasal@redhat.com>
2299 Check for case sensitive make.
2300 * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
2301 * configure.ac: ... called here.
2302 * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
2303 ($(srcdir)/INSTALL): ...this, but enclose the rule in
2304 "if MAKE_CASE_SENSITIVE".
2306 2008-08-26 Eric Blake <ebb9@byu.net>
2308 Update invocation documentation.
2309 * doc/autoconf.texi (autoscan Invocation): Mention --debug.
2310 (autoreconf Invocation): Mention -v.
2311 (autom4te Invocation): Tie --freeze to -F, not -f.
2312 (autoupdate Invocation): Mention --prepend-include.
2313 * doc/install.texi (configure Invocation): Mention --help=short,
2314 --help=recursive, -n/--no-create, --prefix. Avoid TABs.
2315 * bin/autoscan.in ($help): Omit space before `...'.
2316 * bin/ifnames.in ($help): Likewise.
2317 * bin/autoconf.as (Usage): Likewise.
2318 * bin/autoreconf.in ($help): Likewise.
2319 * bin/autoheader.in ($help): Likewise.
2320 * bin/autom4te.in ($help): Likewise.
2321 * bin/autoupdate.in ($help): Likewise.
2322 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
2323 `[OPTION]...', rather than `[OPTIONS]'. Mention --silent. Indent
2326 Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
2327 * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
2328 (files_to_options): Avoid inheriting __m4_version__ from frozen
2329 file if current M4 does not support it.
2331 2008-08-25 Eric Blake <ebb9@byu.net>
2333 Adjust to recent m4 1.6 change to support m4_debugmode(d).
2334 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
2335 freeze-time decision of using faster 1.6 implementation...
2336 (m4_init): ...to a runtime decision, and add use of new debugmode
2339 2008-08-22 Peter O'Gorman <pogma@thewrittenword.com>
2341 Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
2342 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
2343 __APPLE_CC__ with possible -arch flags.
2344 * NEWS: Document it.
2346 2008-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2350 2008-08-22 Eric Blake <ebb9@byu.net>
2352 * TODO: Add an item for additional m4sugar looping constructs.
2353 Suggested by Ralf Wildenhues.
2355 Add reminder to keep dual implementations in sync.
2356 * lib/m4sugar/m4sugar.m4: Add comments.
2357 * lib/m4sugar/foreach.m4: Likewise.
2358 Suggested by Ralf Wildenhues.
2360 2008-08-22 Peter Eisentraut <peter_e@gmx.net> (tiny change)
2362 Format warning and error messages to match GCS.
2363 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
2364 (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
2365 messages with a lowercase letter, end them without punctuation.
2366 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
2367 * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
2368 * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
2370 * tests/fortran.at (GNU Fortran): Likewise.
2371 * tests/torture.at (Deep Package): Likewise.
2373 2008-08-21 Eric Blake <ebb9@byu.net>
2375 Avoid extra side effects in m4sugar list expansion.
2376 * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
2378 (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
2379 duplicate side effects.
2380 (m4_version_compare): Adjust caller.
2381 * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
2382 (_m4_list_cmp_raw): ...to match m4sugar.
2383 * doc/autoconf.texi (Looping constructs): Document the behavior of
2385 * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
2386 Ensure only one side effect.
2387 (recursion): Fix test typo.
2388 Reported by Ralf Wildenhues.
2390 2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2392 * TODO: Add item for compiler default flags.
2393 Suggested by Bruno Haible.
2395 * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
2398 2008-08-21 Eric Blake <ebb9@byu.net>
2400 Formatting improvements.
2401 * doc/autoconf.texi: Use @file and @command, rather than @code,
2404 Document another make bug.
2405 * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
2406 make, GNU make <= 3.80.
2408 Tweak wording about SHELL in Makefile.
2409 * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
2410 the importance of proper SHELL settings.
2411 Reported by Bruno Haible, in
2412 http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
2414 2008-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2416 Avoid timestamp races for updated input.
2417 * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
2419 * tests/tools.at (autotools and whitespace in file names): Add
2420 --force for repeated invocations.
2422 2008-08-20 Bruno Haible <bruno@clisp.org>
2424 Add section to INSTALL about particular systems.
2425 * doc/install.texi (Particular systems): New node.
2426 * doc/autoconf.texi: Adjust menus.
2428 2008-08-19 Bruno Haible <bruno@clisp.org>
2429 and Peter O'Gorman <peter@pogma.com>
2431 Mention universal binaries in INSTALL.
2432 * doc/install.texi (Compiling For Multiple Architectures): Explain
2433 how to create universal binaries on MacOS X.
2435 2008-08-19 Jim Meyering <jim@meyering.net>
2436 Eric Blake <ebb9@byu.net>
2437 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2439 Avoid shell parse errors after interrupt due to empty ``.
2440 * doc/autoconf.texi (Shell Substitutions): Document the issue.
2441 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
2442 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
2443 "test AS_VAR_GET([...]) = yes"
2444 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
2445 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
2446 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
2447 (_AC_CHECK_HEADER_DIRENT): Likewise.
2448 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2449 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
2450 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
2451 temporary variable to work around the issue.
2452 * tests/foreign.at (Libtool): Quote result of command
2455 2008-08-18 Eric Blake <ebb9@byu.net>
2457 Test m4_transform without tickling shell bugs.
2458 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
2459 something more manageable.
2460 * tests/m4sugar.at (recursion): Move stress test of
2461 m4_transform_pair here.
2462 Reported by Ralf Wildenhues.
2464 Let 'git diff' give better context for doc updates.
2465 * .gitattributes (*.texi*): Add new entry.
2466 * README-hacking: Mention how to use it.
2467 Inspired by a coreutils patch by Jim Meyering.
2469 2008-08-15 Eric Blake <ebb9@byu.net>
2471 Fix m4_map regression from 2007-10-16.
2472 * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
2473 (m4_map): Ignore empty sublists. For a list consisting of only an
2474 empty sublist, this restores 2.61 behavior of being a no-op.
2475 (m4_map_sep): Likewise, and expand separator.
2476 (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
2477 (_m4_map): Rewrite, to be common base for all four variants.
2478 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
2479 * tests/m4sugar.at (m4@&t@_map): Add tests.
2480 * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
2481 macros, and mention ramifications of expanded separator.
2482 * NEWS: Mention the change.
2484 2008-08-14 Eric Blake <ebb9@byu.net>
2486 Implement m4_transform_pair, to speed up AS_IF.
2487 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
2488 macros, undocumented for now.
2489 * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
2490 the m4 1.4.x counterparts.
2491 * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
2492 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
2494 2008-08-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2496 * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
2497 (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
2498 warn about previous AC_CANONICAL_TARGET.
2499 (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
2500 unusable in the non-cross-compiling case.
2501 * NEWS, THANKS: Update.
2502 Report by Dave Erickson.
2504 2008-08-12 Eric Blake <ebb9@byu.net>
2507 * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
2508 implementation for m4 1.4.x.
2509 * tests/m4sugar.at (m4@&t@_bmatch): New test.
2510 (recursion): Test the linear nature.
2511 * NEWS: Document the fix.
2513 Fix m4_cond corner case.
2514 * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
2515 implementation allows concatenation with subsequent text.
2516 * tests/m4sugar.at (m4@&t@_cond): Enhance test.
2518 Add test for m4_cond.
2519 * tests/m4sugar.at (m4@&t@_cond): New test.
2520 Reported by Ralf Wildenhues.
2522 2008-08-06 Eric Blake <ebb9@byu.net>
2524 Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
2525 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
2526 unique key for the AH_VERBATIM.
2527 * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
2528 * NEWS: Mention the fix.
2529 Reported by Andreas Schwab, analyzed by Stepan Kasal.
2531 Add linear m4_cond for m4 1.4.x.
2532 * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
2533 (_m4_cond): ...this, for fewer macros per iteration.
2534 * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
2535 * tests/m4sugar.at (recursion): Test it.
2536 * NEWS: Document the linear guarantee.
2538 Speed up diversion handling.
2539 * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
2540 (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
2543 AC_C_CHAR_UNSIGNED is not strictly necessary.
2544 * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
2545 portable alternative to this macro.
2547 Reported by Hallvard B Furuseth.
2549 Update some files from upstream.
2550 * GNUmakefile: Update.
2551 * build-aux/announce-gen: Likewise.
2552 * build-aux/config.guess: Likewise.
2553 * build-aux/config.sub: Likewise.
2554 * build-aux/git-version-gen: Likewise.
2555 * build-aux/texinfo.tex: Likewise.
2556 * build-aux/vc-list-files: Likewise.
2557 * doc/make-stds.texi: Likewise.
2558 * doc/standards.texi: Likewise.
2560 2008-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2562 Fix AC_CONFIG_FILES([$var]) 2.62 regression.
2563 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
2564 whitespace in $ac_config_files and $ac_config_headers.
2565 * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
2566 Report by Andreas Schwab and Per Øyvind Karlsen.
2569 2008-07-30 Eric Blake <ebb9@byu.net>
2571 Fix bugs in previous version of m4_bpatsubsts.
2572 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
2573 allow concatenation with subsequent text.
2574 * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
2576 2008-07-29 Eric Blake <ebb9@byu.net>
2578 Add linear m4_bpatsubsts for m4 1.4.x.
2579 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
2580 about anchors, even for only one substitution.
2581 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
2582 * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
2583 Clarify behavior with regard to quoting.
2584 * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
2585 (m4@&t@_bpatsubsts): New test.
2586 * NEWS: Document the linear guarantee.
2588 Tweak m4_do semantics.
2589 * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
2591 * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
2592 arguments, and avoid infinite loop.
2593 * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
2595 * tests/m4sugar.at (m4@&t@_do): New test.
2598 * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
2599 (_m4_for): Take additional parameter, for fewer m4_indir calls.
2600 * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
2601 (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
2602 * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
2603 semantic change caused by the optimization.
2604 * tests/m4sugar.at (M4 loops): Test the new semantics.
2606 One more m4_list_cmp tweak.
2607 * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
2608 * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
2609 * tests/m4sugar.at (recursion): Test both directions of list
2612 Add m4_reverse, and improve m4_list_cmp.
2613 * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
2614 (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
2616 * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
2618 * tests/m4sugar.at (recursion): Test it.
2619 * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
2621 (Text processing Macros) <m4_append>: Cross-reference to m4_set.
2622 * NEWS: Mention new macro.
2624 2008-07-28 Eric Blake <ebb9@byu.net>
2626 Avoid _m4_shiftn for m4 1.6 speedup.
2627 * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
2628 (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
2629 * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
2631 Implement O(n) unique element set creation.
2632 * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
2633 (m4_set_contains, m4_set_contents, m4_set_delete)
2634 (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
2635 (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
2636 (m4_set_size, m4_set_union): New macros.
2637 * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
2639 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
2640 new m4_set API for the set most likely to be large.
2641 * doc/autoconf.texi (Set manipulation Macros): New node.
2642 * NEWS: Mention new macros.
2643 * tests/m4sugar.at (m4@&t@_set): New test.
2645 2008-07-25 Eric Blake <ebb9@byu.net>
2647 Avoid infinite aclocal loop.
2648 * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
2649 that aclocal doesn't insist on finding m4sugar/foreach.m4.
2651 Provide O(n) replacement macros for M4 1.4.x.
2652 * lib/m4sugar/foreach.m4: New file.
2653 (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
2654 (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
2655 macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
2656 1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
2658 * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
2659 older M4 is assumed.
2660 (m4_map_sep): Optimize.
2661 (m4_max, m4_min): Refactor, by adding...
2662 (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
2663 (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
2664 * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
2666 * tests/m4sugar.at (M4 loops): Add a stress test that takes
2667 forever if m4_foreach and friends are quadratic.
2668 * NEWS: Mention this.
2670 2008-07-21 Eric Blake <ebb9@byu.net>
2672 Ignore undefined macros, necessary with m4 1.6.
2673 * bin/autoupdate.in (_au___undefine): New macro,...
2674 (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
2675 Reported by Ralf Wildenhues.
2678 * GNUmakefile: Grab from upstream, to fix issue where 'make
2679 install' would allow installation of stale version string.
2681 2008-07-19 Eric Blake <ebb9@byu.net>
2683 Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
2684 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
2685 through all variables, per POSIX and newer m4.
2686 (_m4_text_wrap): Exploit the looping capabilities.
2687 * tests/m4sugar.at (m4@&t@_defn): Test this.
2688 * NEWS: Document it.
2689 * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
2690 <m4_undefine>: Likewise.
2692 Reduce overhead of m4_builtin([defn]).
2693 * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
2694 internal macros, which are slightly more efficient than
2695 m4_builtin([defn]) and company.
2696 (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
2697 (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
2698 (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
2699 (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
2700 (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
2701 (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
2702 (m4_version_prereq): Use them.
2704 Use warnings from m4 when available.
2705 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
2706 define slower wrapper if m4 will warn on our behalf; key off of
2707 __m4_version__, added alongside the new warnings in m4 1.6.
2708 * tests/m4sugar.at (m4@&t@_defn): New test.
2710 2008-07-18 Eric Blake <ebb9@byu.net>
2713 * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
2714 * tests/m4sugar.at (m4@&t@_join): Test them.
2715 * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
2719 2008-07-17 Stepan Kasal <skasal@redhat.com>
2720 and Eric Blake <ebb9@byu.net>
2722 Improve documentation of config.h.in template rules.
2723 * doc/autoconf.texi (Header Templates): Mention rules on comments
2724 and whitespace, and that the user cannot rely on #undef to survive
2725 through config.status.
2727 2008-07-16 Eric Blake <ebb9@byu.net>
2729 Revert m4_prepend; it is less efficient, and unused by bison.
2730 * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
2731 (m4_prepend_uniq_w): Delete addition from 2008-07-11.
2732 (_m4_grow_uniq_1): Rename back...
2733 (_m4_append_uniq): ...to this.
2734 * NEWS: Revert NEWS blurb.
2735 * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
2736 * tests/m4sugar.at (m4@&t@_prepend): Delete.
2738 2008-07-15 Eric Blake <ebb9@byu.net>
2740 Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
2741 * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
2742 definition for non-Autoconf clients of m4sugar.
2744 2008-07-14 Eric Blake <ebb9@byu.net>
2746 Tighten bound of potential speed of m4_append.
2747 * doc/autoconf.texi (Text processing Macros) <m4_append>
2748 <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
2750 * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
2751 Analysis by Bruno Haible.
2753 2008-07-11 Eric Blake <ebb9@byu.net>
2755 Inherit improvements from bison's fork of m4sugar.
2756 * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
2757 find version.texi, since bison does not provide it.
2758 (m4_prepend): Add new macro, from bison.
2759 (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
2761 (_m4_append_uniq): Rename...
2762 (_m4_grow_uniq_1): ...to this to share implementation, and
2763 optimize initial assignment.
2764 (m4_append_uniq_w): Adjust caller.
2765 * NEWS: Document new macros.
2766 * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
2767 speed consideration.
2768 <m4_prepend>: Document the new prepend variants.
2769 * tests/m4sugar.at (m4@&t@_prepend): New test.
2771 Work around M4 1.6 warning on undefined macros.
2772 * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
2773 not already available as builtins.
2775 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2777 * doc/autoconf.texi (@dvar): Remove trailing newline.
2778 (@ovar): Likewise. Fix macro documentation.
2780 2008-07-02 Stepan Kasal <skasal@redhat.com>
2782 Add quotes to the header of autoscan-generated source.
2783 * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
2785 2008-06-28 Andreas Schwab <schwab@suse.de>
2787 * doc/autoconf.texi (autoscan Invocation): Fix spacing.
2788 (autoconf Invocation): Likewise.
2789 (autoreconf Invocation): Likewise.
2790 (autoheader Invocation): Likewise.
2791 (autom4te Invocation): Likewise.
2793 2008-06-19 Eric Blake <ebb9@byu.net>
2795 Add comment explaining recent patch.
2796 * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
2797 of * vs. ? globbing.
2799 2008-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2801 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
2802 linking a file to itself.
2803 Report by Bruno Haible.
2805 2008-06-19 Eric Blake <ebb9@byu.net>
2808 * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
2809 Reported by Stepan Kasal.
2811 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2813 Reorganize autotest files, factorize for parallel execution.
2814 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
2815 earlier in the file.
2816 (AT_INIT): Create line number cache in
2817 $at_suite_dir/at-source-lines.
2818 <at_helper_dir>: New directory at-groups below $at_suite_dir.
2819 Add comment explaining the new directory structure.
2820 (at_func_group_prepare, at_func_group_postprocess): New shell
2821 functions to factorize per-test group work. Keep the actual
2822 test execution outside of a shell function in order to avoid
2823 zsh 4.x exit status bugs.
2824 <at_check_line_file, at_status_file, at_stdout, at_stder1>
2825 <at_stderr, at_test_source>: Turn these into per-group files
2826 below $at_helper_dir. Also store test results there in files
2827 named pass, fail, xpass, xfail, skip. Let the parent collect
2828 results from $at_helper_dir. Adjust summary statistics
2829 computation and result output.
2831 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2833 Fix '#undef variable /* comment */' transform in config headers.
2834 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
2835 undefined preprocessor macros that are followed by a comment
2836 in the header template, do not create nested comments in the
2838 * tests/torture.at (@%:@define header templates): Extend test.
2840 Report by Karsten Hopp <karsten@redhat.com>.
2842 2008-06-09 Eric Blake <ebb9@byu.net>
2844 Mark AC_TYPE_SIGNAL as obsolete.
2845 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
2846 * doc/autoconf.texi (Function Portability): Update documentation.
2847 (Particular Types): Move AC_TYPE_SIGNAL...
2848 (Obsolete Macros): ...here, and mention why.
2849 * NEWS: Mention the change.
2851 Allow lib64 as a default X library location.
2852 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
2853 * NEWS: Mention the change.
2855 Reported by Brad Walker.
2857 2008-06-05 Eric Blake <ebb9@byu.net>
2859 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
2860 * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
2861 converting it to lower case.
2862 * tests/autotest.at (Keywords and ranges): Test this.
2863 * NEWS: Document the fix.
2865 Reported via Karsten Hopp, by Jochen Schmitt in
2866 https://bugzilla.redhat.com/show_bug.cgi?id=449973
2868 2008-06-03 Eric Blake <ebb9@byu.net>
2870 Fix 'make dist' regression from 2008-05-08.
2871 * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
2872 GNUmakefile's _autoconf rule removes INSTALL.
2874 2008-05-27 Eric Blake <ebb9@byu.net>
2876 Document Solaris /bin/sh redirection pitfall.
2877 * doc/autoconf.texi (File Descriptors): Mention redirection bug.
2879 2008-05-14 Eric Blake <ebb9@byu.net>
2881 Improve documentation of ! issues.
2882 * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
2883 Reported by Noah Misch.
2885 Document some FreeBSD shell bugs.
2886 * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
2887 in compound pipe commands.
2888 <export>: Mention difference of exporting an undefined variable.
2889 (Shell Functions): Mention loss of $? in entry to shell functions.
2890 Extracted from the git mailing list.
2892 2008-05-13 Stepan Kasal <kasal@ucw.cz>
2894 Work around MSYS and Cygwin bugs when dealing with trailing space.
2895 * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
2896 even when platform bugs are tickled.
2897 Reported by Keith Marshall and Eric Blake.
2899 2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2901 Let AC_MSG_FAILURE report pwd.
2902 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
2903 Output $ac_pwd along with fatal failure.
2904 * tests/torture.at (Deep Package): Extend test.
2905 Reported numerous times against GCC, and probably other packages.
2907 2008-05-12 Eric Blake <ebb9@byu.net>
2909 Enforce --help and --version compliance.
2910 * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
2912 2008-05-08 Keith Marshall <keithmarshall@users.sourceforge.net> (tiny change)
2914 Avoid case-insensitive `make install' vs. `INSTALL' conflict.
2915 * Makefile.am ($(srcdir)/INSTALL): Replace all references...
2916 ($(abs_srcdir)/INSTALL): ...with this.
2918 2008-05-06 Eric Blake <ebb9@byu.net>
2921 * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
2923 Avoid overfull \hbox.
2924 * doc/autoconf.texi (Versioning): Reword to fit line size.
2926 Document $(( )) pitfalls.
2927 * doc/autoconf.texi (Shell Substitutions): Mention octal
2928 vs. decimal. Mention autotest's at_func_arith.
2930 Improve behavior of './testsuite 01'.
2931 * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
2932 Alter usage to eval its arguments, in order to normalize away
2933 leading zero. All callers updated.
2934 * tests/autotest.at (Keywords and ranges): Test range
2935 normalization with leading 0.
2937 2008-04-26 Eric Blake <ebb9@byu.net>
2939 Mention Solaris /usr/ucb/tr pitfall.
2940 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
2941 Reported by Bruno Haible and Jim Meyering.
2943 2008-04-24 Eric Blake <ebb9@byu.net>
2945 Mention m4sugar's internal quote strings.
2946 * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
2947 in m4sugar, and how to still output it literally.
2948 * tests/m4sugar.at (m4@&t@_split): And test it.
2949 Reported by Joel E. Denny.
2951 2008-04-23 Eric Blake <ebb9@byu.net>
2953 Allow unbalanced () in m4_expand.
2954 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
2956 (m4_noquote, _m4_split): Use consistent complex quote.
2957 * tests/autotest.at (Left paren, Right paren): Test this.
2958 (Parentheses): Ensure new quadrigraphs still work.
2959 (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
2960 * NEWS: Mention the fix.
2961 * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
2962 require quadrigraphs for ().
2963 (Evaluation Macros) <m4_expand>: Relax the restriction against
2965 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2966 (Writing Testsuites) <AT_SETUP>: Likewise.
2967 Reported by Joel E. Denny, fix suggested by Noah Misch.
2969 2008-04-22 Eric Blake <ebb9@byu.net>
2971 Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
2972 * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
2973 (handle_traces): Likewise.
2974 * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
2975 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
2976 * doc/autoconf.texi (Quadrigraphs): Document them.
2977 (Evaluation Macros) <m4_expand>: Enhance documentation.
2978 (Text processing Macros) <m4_text_box>: Document cases where
2979 quadrigraphs can help for problemetic unbalanced parentheses.
2980 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
2981 (Writing Testsuites) <AT_SETUP>: Likewise.
2982 (Limitations of Builtins) <case>: Consolidate text on unbalanced
2983 parentheses, and add an example of creative comments.
2984 * NEWS: Document the addition.
2985 Reported by Joel E. Denny.
2987 2008-04-16 Eric Blake <ebb9@byu.net>
2989 Document pdksh exec behavior.
2990 * doc/autoconf.texi (Limitations of Builtins) <exec>: New
2992 Discovered by Jim Meyering.
2994 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2996 * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
2997 arguments to the inner suite.
2998 (errexit, input from stdin): New tests.
3000 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3002 * NEWS: Post-release update.
3004 2008-04-10 Eric Blake <ebb9@byu.net>
3006 AC_AUTOCONF_VERSION might contain arbitrary macro names.
3007 * doc/autoconf.texi (Versioning): Mention problem with expansion.
3008 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
3010 2008-04-09 Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de> (tiny change)
3012 Flush buffered output before exit.
3013 * bin/autom4te.in (handle_output): Explicitly close file.
3015 See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
3017 2008-04-08 Eric Blake <ebb9@byu.net>
3019 Generate web docs for 2.62.
3020 * doc/autoconf.texi (Evaluation Macros): Fix typo.
3021 (Notices): Use recommended means to escape RCS keyword.
3022 * cfg.mk (gnulib_dir): New macro.
3023 (web-manual): New target.
3025 2008-04-05 Eric Blake <ebb9@byu.net>
3027 Release Version 2.62.
3028 * NEWS: Mention the release.
3030 2008-04-04 Stepan Kasal <kasal@ucw.cz>
3031 and Eric Blake <ebb9@byu.net>
3033 Return back to GPLv2+, until the text of the exceptions is
3034 finalized, reverting the change from 2007-07-03 and the first
3035 part of the change from 2007-07-20.
3036 * COPYING: Revert to GPLv2.
3037 * COPYINGv3: New file, since some auxiliary build tools, used for
3038 building autoconf and not installed, are GPLv3.
3039 * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
3040 * NEWS: Remove mention of GPLv3.
3041 * README: Clarify situation regarding GPLv3.
3043 2008-04-05 Eric Blake <ebb9@byu.net>
3045 Prepare for release.
3046 * maint.mk (announcement): Avoid deleted option.
3047 * cfg.mk (release_archive_dir): Use default.
3048 * build-aux/gnupload: New file, from automake/gnulib.
3049 * Makefile.am (EXTRA_DIST): Distribute it.
3050 * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
3053 2008-04-05 Jim Meyering <meyering@redhat.com>
3054 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3056 Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
3057 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
3058 is the EOL marker, skip a step that would remove and translate
3059 carriage return bytes.
3061 Reported by Elbert Pol.
3063 2008-04-05 Eric Blake <ebb9@byu.net>
3065 Avoid some autoreconf -Wall warnings.
3066 * configure.ac: Use proper quoting, to be a good example.
3067 (PACKAGE_NAME): Remove setting covered by autoconf.
3068 (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
3069 * doc/Makefile.am (TEXI2DVI): Remove settings covered by
3071 (html, autoconf_1.html, standards_1.html): Likewise.
3072 (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
3073 * Makefile.am (html): Likewise.
3074 * doc/autoconf.texi (Quoting and Parameters): Add missing section
3076 * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
3077 warning about our override, until Automake is fixed.
3078 * README-hacking: Document minimum requirements for bootstrap.
3080 2008-04-03 Eric Blake <ebb9@byu.net>
3082 Fix version number generation in man pages.
3083 * Makefile.am (EXTRA_DIST): Distribute .version.
3084 (.version): New rule.
3085 * man/Makefile.am (common_dep): Depend on .version, not
3087 (.x.1): Use package name for version string.
3088 * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
3089 * build-aux/git-version-gen: Sync from upstream.
3091 More maintainer tweaks: pass 'make maintainer-distcheck'.
3092 * GNUmakefile (_is-dist-target): Sync from upstream.
3093 * build-aux/vc-list-files: Sync from upstream, yet again.
3094 * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
3095 * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
3097 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
3099 Fix VPATH 'make syntax-check'.
3100 * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
3101 (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
3102 (author_mark_check): Avoid error message.
3103 * build-aux/vc-list-files: Sync from upstream again.
3104 * build-aux/texinfo.tex: Likewise.
3106 Sync files from upstream, and pass 'make syntax-check'.
3107 * config/announce-gen: Move...
3108 * build-aux/announce-gen: ...here, and sync from gnulib.
3109 * Makefile.am (EXTRA_DIST): Adjust accordingly.
3110 * cfg.mk (announce_gen): Likewise.
3111 (prev_version_file): Delete, relying on default in maint.mk.
3112 (gpg_key_ID): New macro.
3113 (url_dir_list): Rewrite to match coreutils.
3114 * config/prev-version.txt: Move...
3115 * .prev-version: ...here, and adjust to 2.61.
3116 * build-aux/vc-list-files: Sync from coreutils.
3117 * maint.mk: Resynchronize with coreutils, where possible.
3118 (ME): Remove $(srcdir) from definition.
3120 (GIT, VC, VC-tag): New macros.
3121 (CVS_LIST, CVS_LIST_EXCEPT): Rename...
3122 (VC_LIST, VC_LIST_EXCEPT): ...to this.
3123 (cvs-tag-check): Delete.
3124 (cvs-diff-check): Rename...
3125 (vc-diff-check): ...to this.
3126 (sc_file_system): Allow FHS acronym.
3127 * doc/autoconf.texi (Particular Functions): Recommend
3128 unconditional <config.h>.
3129 * build-aux/config.guess: Sync from upstream (manually).
3130 * build-aux/config.sub: Likewise.
3131 * build-aux/texinfo.tex: Likewise.
3132 * doc/make-stds.texi: Likewise.
3133 * doc/standards.texi: Likewise.
3134 * .gitattributes: Ignore whitespace problems in upstream files.
3136 2008-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3138 * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
3140 Report by Peter O'Gorman.
3142 2008-04-02 Eric Blake <ebb9@byu.net>
3144 Recommend the just-released M4 1.4.11.
3145 * NEWS: Update recommendation.
3147 * doc/autoconf.texi (Introduction): Likewise.
3148 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
3150 2008-04-01 Eric Blake <ebb9@byu.net>
3152 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
3155 2008-03-28 Peter O'Gorman <peter@pogma.com>
3157 Find X11 on Mac OS X too.
3158 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
3159 Check for libX11 with extensions dylib la and dll too.
3161 Reported by Martin Costabel.
3163 2008-03-28 Eric Blake <ebb9@byu.net>
3165 Update TODO based on completed tasks.
3166 * TODO (AC_PROG_INSTALL takes multiple files): Done.
3167 (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
3168 (AC_COMPILE_IFELSE documentation): Done.
3169 (Tracing builtins): Done, now that we require M4 1.4.5.
3170 (AC_PROG_CC_POSIX suggestion, providing header files)
3171 (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
3172 (cache consistency): Done with precious variables.
3174 2008-03-26 Eric Blake <ebb9@byu.net>
3176 Document --trace=macro:format in --help output.
3177 * bin/autom4te.in (help): Mention optional trace format.
3178 * bin/autoconf.as (usage): Likewise.
3180 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
3181 typos in last patch.
3182 Reported by Ralf Wildenhues.
3184 2008-03-26 Jim Meyering <meyering@redhat.com>
3186 Fix texinfo syntax error.
3187 * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
3189 2008-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3191 Warn, not fail on whitespace-only precious variable differences.
3192 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
3193 precious variable differences less ambiguous with `ugly-quotes'.
3194 If their settings differ only in whitespace, do not fail, but
3195 reuse the old value.
3196 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
3197 an optional status and expected-warning argument. Fix m4
3198 quotation for initial value.
3199 (AC_ARG_VAR): Also test for whitespace-only differences, and
3200 that the old value is retained in this case.
3201 * doc/autoconf.texi (Setting Output Variables): Document this.
3203 Report and initial patch by Paolo Bonzini.
3205 2008-03-26 Eric Blake <ebb9@byu.net>
3207 Document busybox sed bug.
3208 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
3209 restrictions when using back-references.
3210 Reported by Vincent Lefevre:
3211 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
3213 Document Automake interaction with AC_CONFIG_MACRO_DIR.
3214 * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
3217 Reported by Chris Pickett.
3219 2008-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3221 * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
3223 * tests/local.at (AT_CHECK_M4): Factorize warning output
3225 Suggested by Eric Blake.
3227 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3229 Fix .exe-related test failure on MinGW.
3230 * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
3231 for comparing warning output.
3233 Fix Fortran testsuite failures with gfortran 4.3.
3234 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
3235 verbose compiler output, skip lines that set variables; gfortran
3236 4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
3238 Report by Vincent Lefèvre.
3240 2008-03-21 Eric Blake <ebb9@byu.net>
3242 * GNUmakefile: Resynchronize with gnulib.
3244 Document more uses of $cross_compiling.
3245 * doc/autoconf.texi (Runtime): Document that a temporary override
3248 Reported by Ineiev, example by Ralf Wildenhues.
3250 Don't swallow $1 in textual local variables.
3251 * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
3252 expansion of text arguments, as that swallows $1.
3253 (m4_text_wrap): Likewise, by splitting out...
3254 (_m4_text_wrap): ...new helper macro. Also, allow arbitrary
3255 expression for width.
3256 * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
3257 (m4@&t@_combine): Likewise.
3259 2008-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3261 Avoid leftover files on Leopard.
3262 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
3263 directory created on darwin.
3264 (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
3265 left over from a broken link.
3266 * tests/c.at (AC_NO_EXECUTABLES (working linker))
3267 (AC_NO_EXECUTABLES (broken linker)): New tests.
3268 Report by Gary V. Vaughan.
3270 * lib/autom4te.in (Automake-preselections): Trace
3271 _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
3273 2008-03-20 Eric Blake <ebb9@byu.net>
3275 Kill more CVS references.
3276 * README-cvs: Delete. See README-hacking instead.
3277 * README-hacking: Update wording, based on older file.
3278 * BUGS: Remove CVS mention.
3280 2008-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3282 * tests/tools.at (autotools and whitespace in file names): Skip
3283 if aclocal is not present.
3285 2008-03-20 Eric Blake <ebb9@byu.net>
3287 Sync GNUmakefile with gnulib.
3288 * GNUmakefile (Makefile.cfg): Rename...
3289 (cfg.mk): ...to this, and make optional.
3290 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
3291 (Makefile.maint): Rename...
3292 (maint.mk): ...to this.
3293 (all) [!_have-Makefile]: Rename...
3294 (abort-due-to-no-makefile): ...to this, and invoke via
3295 .DEFAULT_GOAL to pick up all targets.
3296 * Makefile.cfg: Rename...
3297 * cfg.mk: ...to this.
3298 * Makefile.maint: Rename...
3299 * maint.mk ...to this.
3300 (ME): Reflect name change.
3301 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
3302 rather than hard-coded name.
3303 * GNUmakefile.cfg: Delete; move rules into cfg.mk.
3304 * Makefile.am (EXTRA_DIST): Reflect file name changes.
3305 * .x-sc_prohibit_atoi_atof: Likewise.
3306 * lib/freeze.mk: Likewise.
3308 2008-03-19 Stepan Kasal <kasal@ucw.cz>
3310 * doc/autoconf.texi (Introduction): Improve the paraphrase of
3311 Henry Spencer's quotation.
3313 2008-03-19 Eric Blake <ebb9@byu.net>
3315 AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
3316 * bin/autoscan.in (output): Avoid obsolete spelling.
3317 * tests/local.at (AC_STATE_SAVE): Update usage.
3319 Reported by John Calcote.
3321 Emphasize that ease of configure triumphs over ease of autoconf.
3322 * doc/autoconf.texi (Introduction): Expand on primary
3323 vs. secondary goal of autoconf.
3325 Inspired by Paul Smith.
3327 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3329 * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
3330 $hint, show if the executing program does not exist.
3331 (xsystem_hint): New function, like xsystem but allows to pass
3333 * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
3335 Report by Bruce Korb.
3337 2008-03-14 Stepan Kasal <kasal@ucw.cz>
3339 * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
3340 tests/mktests.sh, tests/wrapper.as: Fix typos.
3342 2008-03-12 Eric Blake <ebb9@byu.net>
3344 Fix yesterday's regression in m4_wrap([$1]).
3345 * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
3346 text, since it may contain text that looks like parameters.
3347 * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
3349 2008-03-11 Eric Blake <ebb9@byu.net>
3351 Improve error messages for common testsuite bugs.
3352 * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
3353 macros for defining order-enforced macros.
3354 (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
3355 (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
3356 messages when order violations are detected.
3357 * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
3358 (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
3359 (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
3360 (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
3361 (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
3362 (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
3363 (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
3364 (Banner-only test suite): New tests.
3365 Reported by Christopher Hulbert.
3367 Tweak m4_wrap to force FIFO or LIFO semantics.
3368 * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
3369 (m4_wrap_lifo, _m4_wrap): New macros.
3370 * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
3371 order, prior to m4sugar's.
3372 (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
3374 * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
3375 known order, prior to m4sh's.
3376 * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
3378 (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
3380 * tests/m4sh.at (AS_INIT cleanup): New test.
3381 * NEWS: Document the change.
3383 2008-03-10 Eric Blake <ebb9@byu.net>
3385 Encode nested autotest data.
3386 * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
3387 (unusual file names): Likewise.
3388 (m4_pattern_allow): Remove loophole, to make it easier to catch
3389 poorly written tests.
3391 Factor some autotest tests.
3392 * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
3393 common initialization.
3394 (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
3395 (whitespace in absolute testdir, unusual file names): Use it.
3397 2008-03-06 Eric Blake <ebb9@byu.net>
3399 Minor documentation fix.
3400 * doc/autoconf.texi (Evaluation Macros): Fix typo.
3402 2008-03-04 Eric Blake <ebb9@byu.net>
3404 Make AT_CHECK act like a simple command.
3405 * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
3406 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
3408 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3410 On MinGW, substitution of CR and 0xFF fails.
3411 * tests/torture.at (Substitute and define special characters):
3412 MinGW awk cannot handle 0xFF, and on MinGW, the test does the
3415 2008-03-04 Eric Blake <ebb9@byu.net>
3417 Pull in recent maintainer improvements from coreutils.
3418 * GNUmakefile (_is-dist-target): 'make distclean' should not
3420 (_dummy): Change directories before removing autom4te.cache.
3421 (check dist distcheck install) [!_have-Makefile]: Provide nicer
3423 * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
3424 builds, after initial bootstrap.
3425 * Makefile.am (distclean-local): Work around current automake bug.
3426 * Makefile.maint (ME): Allow VPATH usage.
3428 Use git-merge-changelog when available.
3429 * .gitattributes: New file.
3430 * README-hacking: Document use of git-merge-changelog.
3432 Work around cygwin bug.
3433 * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
3434 "touch 't\'" creates regular file 't'.
3436 Ignore tests that require read-only directories under root.
3437 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
3438 no-write portion if user has root-like privileges.
3440 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3442 * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
3444 2008-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3446 autoreconf -m now honors $MAKE.
3447 * bin/autoreconf.in ($run_make): Renamed from ...
3448 ($make): ... this. Use now as command to run `make',
3449 overridden by $MAKE. Document this in --help output.
3450 * doc/autoconf.texi (autoreconf Invocation): Document
3451 all environment variables honored by autoreconf.
3453 Report by Paul Eggert.
3455 2008-03-03 Eric Blake <ebb9@byu.net>
3457 Documentation improvements.
3458 * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
3459 (Evaluation Macros): Drop `1' suffix from metasyntax variable name
3460 that preceeds @dots. Improve wording.
3461 (Text processing Macros): Drop `1' suffix from metasyntax variable
3462 name that preceeds @dots.
3463 (Number processing Macros): Drop `1' suffix from metasyntax
3464 variable name that preceeds @dots. Improve wording.
3465 * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
3466 Suggested by Ralf Wildenhues.
3468 2008-03-02 Jim Meyering <meyering@redhat.com>
3470 Don't infloop upon "make dist".
3471 * GNUmakefile: Merge from coreutils.
3472 * Makefile.am (dist-hook): Inject .tarball-version into tarball,
3474 * configure.ac (AC_INIT): Use .tarball-version, not .version.
3475 * build-aux/git-version-gen: Update from gnulib.
3477 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3479 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3480 Before using /dev/full, check that it is a writable character
3482 Report by Benoit Sigoure and Eric Blake.
3484 Actually test that @configure_input@ is expanded correctly.
3485 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3486 Actually check generated file contents for the name of the
3487 generated file, using AC_PROG_FGREP and $FGREP.
3489 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
3491 Be nice with file systems that don't handle unusual characters.
3492 * tests/atlocal.in (func_sanitize_file_name)
3493 (func_sanitize_dir_name): New shell functions.
3494 * tests/tools.at (autom4te and whitespace in file names)
3495 (autotools and whitespace in file names): Use them.
3496 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3497 Cover more potentially problemtic file names. Use the new
3500 Properly handle funny file names for headers in config.status.
3501 The test suite did not cover this bug because the code was not
3502 quoting properly the arguments of `rm -f' (which "fails" silently)
3503 as well as the arguments of `diff' (whose output was redirected to
3504 /dev/null so we couldn't see its error message).
3505 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
3506 file names passed to `rm' and `diff'.
3507 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3508 Add a regression test.
3510 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
3511 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3513 Properly expand @configure_input@ in config.status.
3514 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
3515 Escape the backslashes and ampersands in $configure_input before
3516 using it in the sed replacement string to expand @configure_input@.
3517 Report by Eric Blake and Patrick Welche.
3519 2008-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3521 Ignore errors from ./run on w32.
3522 * tests/autotest.at (whitespace in absolute testdir):
3523 Ignore stderr for `./run' which fails to remove the
3524 busy test directory on w32.
3526 2008-02-22 Eric Blake <ebb9@byu.net>
3528 Improve documentation for writing autotest suites.
3529 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
3530 checks must live inside a test group.
3531 Reported by Christopher Hulbert.
3533 2008-02-21 Eric Blake <ebb9@byu.net>
3535 Sync git-version-gen from upstream.
3536 * build-aux/git-version-gen: Pull from gnulib.
3537 * configure.ac (AC_INIT): Adjust to new calling convention.
3539 2008-02-12 Eric Blake <ebb9@byu.net>
3541 Avoid trailing space in config.h with AC_DEFINE([var], []).
3542 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
3543 defines with a comment.
3545 2008-02-08 Eric Blake <ebb9@byu.net>
3547 Fix texinfo typos in previous patch.
3548 * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
3549 Reported by Ralf Wildenhues.
3551 Describe a config.site that can be used for FHS compliance.
3552 * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
3555 Reported by Jules Colding and Ralf Wildenhues.
3557 2008-02-02 Eric Blake <ebb9@byu.net>
3559 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
3561 2008-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3563 * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
3564 again, broken since introduction of `-C dir'.
3565 * tests/autotest.at (Choosing where testsuite is run): Test it.
3567 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
3569 * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
3571 2008-01-29 Eric Blake <ebb9@byu.net>
3573 Fix more autotest regressions.
3574 * lib/autotest/general.m4 (AT_LINE): Fix regression from
3575 2007-10-04 when file name is `dnl'.
3576 (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
3577 <TESTS_BEGIN>: ...to this new diversion, to fix regression from
3578 yesterday in libtool's testsuite.
3579 (_AT_ARG_OPTION): Detect write failure.
3580 * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
3581 make libtool's use kosher. Document m4_init.
3582 (Programming in M4sh): Document AS_INIT.
3583 (Writing Testsuites): Document limitation of AT_DATA file name.
3584 * tests/autotest.at (unusual file names): New test.
3585 (Banners, Keywords and ranges): Use correct shell.
3587 More corner cases in testsuite VAR=VALUE handling.
3588 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
3590 <PARSE_ARGS_END>: Also detect leading digits in assignments.
3591 * tests/autotest.at (Using atlocal): Enhance test to catch last
3594 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
3597 2008-01-28 Eric Blake <ebb9@byu.net>
3599 Fix regression in handling VAR=VALUE arguments to testsuite.
3600 * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
3601 leading = as invalid. Defer use of command-line variable
3603 <PREPARE_TESTS>: ...here, after atconfig has been sourced. Fix
3604 regression in sourcing files.
3605 * tests/autotest.at (Using atlocal): New test to catch this.
3606 (Debugging a successful test, Choosing where testsuite is run):
3608 Reported by Ralf Wildenhues.
3610 Document grep peculiarity.
3611 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
3612 BSD behavior on binary input.
3614 Minor testsuite improvements.
3615 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
3616 forks when sanitizing PATH. Always output machine information,
3617 not just when atconfig was located.
3619 Add 'testsuite -C dir'.
3620 * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
3622 (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
3624 <DEFAULTS>: Delay computation of variables based on $at_dir...
3625 <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
3626 <TESTS>: Re-invoke via absolute name, since -C may be in effect.
3627 <PARSE_ARGS>: Parse new option.
3628 <HELP_TUNING>: Document it.
3629 * tests/autotest.at (Choosing where testsuite is run): New test
3631 (Keywords and ranges): Add test for missing -k argument.
3632 * NEWS: Document this.
3633 * doc/autoconf.texi (testsuite Invocation): Likewise.
3635 2008-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3637 * build-aux/config.guess, build-aux/config.sub,
3638 build-aux/texinfo.tex: Sync from gnulib.
3639 * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
3642 2008-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3644 * doc/autoconf.texi (Particular Programs): Do not mention the
3645 Autoconf version in which the AC_PROG_INSTALL change was done.
3646 Suggested by Paul Eggert.
3648 2008-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3650 Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
3651 * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
3652 mode, we change to the source directory, also set $ac_pwd so we
3653 do not go back to the build tree for the next config subdir.
3654 * tests/torture.at (Deep Package): Extend test to contain two
3655 config subdirs on the top level.
3657 Fix parallel `maintainer-check'.
3658 * Makefile.am (maintainer-check-tests): Depend on `all'.
3659 Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
3660 * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
3662 (maintainer-check): Serialize the testsuite runs.
3664 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
3665 in feature string for --enable/--with. Convert to underscore
3668 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
3669 `install -c file1 file2 dir' works.
3670 * doc/autoconf.texi (Particular Programs): Document this.
3673 2008-01-21 Eric Blake <ebb9@byu.net>
3675 Improve documentation about default include directives.
3676 * doc/autoconf.texi (Generic Headers, Generic Declarations)
3677 (Generic Structures, Generic Types)
3678 (Generic Compiler Characteristics): Add links to
3679 AC_INCLUDES_DEFAULT.
3680 Reported by Reuben Thomas.
3682 2008-01-15 Eric Blake <ebb9@byu.net>
3684 * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
3686 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3688 * tests/Makefile.am (noinst_SCRIPTS): Renamed from
3689 check_SCRIPTS. Building the wrappers for `all' allows help2man
3690 to use them for the manpages.
3691 Report by Benoit Sigoure.
3693 * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
3695 2007-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3697 Fix some write failure cases in Autotest.
3698 * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
3699 upon write failures for --help, --version, --list.
3700 Guard against write failures for intermediate created scripts.
3701 <at_func_create_debugging_script>: Do not make the debugging
3702 script executable if it is not complete.
3704 2007-12-12 Eric Blake <ebb9@byu.net>
3706 Fix thinko in earlier patch - m4_join isn't defined yet.
3707 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
3708 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
3709 (m4_require): Use m4_do, not m4_join.
3711 Fix some whitespace tests on cygwin.
3712 * tests/tools.at (autom4te and whitespace in file names): Restore
3713 font-lock. Create $TMPDIR before it might be used.
3715 Fix spurious testsuite failure with M4 1.4.11.
3716 * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
3718 Optimize AC_REQUIRE.
3719 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
3720 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
3721 (m4_require): Avoid extra macro calls.
3723 2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3725 * tests/torture.at (srcdir): Fix quoting.
3727 Do not pass top_srcdir to configure scripts in testsuite.
3728 * tests/autotest.at (srcdir propagation): Copy install-sh to
3730 (my only test): Drop setting of `top_srcdir'.
3731 * tests/base.at (Input/Output): Likewise.
3732 * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
3733 config.guess, and config.sub to test source tree.
3734 Drop AC_CONFIG_AUX_DIR setting.
3735 (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
3736 * tests/torture.at (Substitute a 2000-byte string): Drop
3737 AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
3738 (Substitute a newline, datarootdir workaround): Likewise.
3739 (Define a newline): Adjust for linenumber changes in configure.ac.
3740 * tests/foreign.at (Libtool): Adjust comment to reflect changes.
3742 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
3743 if `pwd` contains whitespace.
3745 Quote $abs_top_srcdir in tests.
3746 * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
3747 * tests/tools.at (Syntax of the shell scripts): Likewise.
3749 * tests/m4sh.at (LINENO): Quote $0.
3751 Fix testsuite program wrapper for whitespace in `pwd`.
3752 The problem here is that the usual mantra is that command
3753 variables can contain arguments, thus we cannot just escape
3754 $AUTOCONF, $AUTOM4TE etc. The compromise is to put the
3755 $top_builddir/tests directory early in $PATH, so that the
3756 wrappers are found by their plain name.
3757 * tests/wrapper.as: Put $testdir early in $PATH.
3758 (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
3760 Proper config.status --file/--header and $srcdir escaping.
3761 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
3762 characters in $ac_file_inputs.
3763 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
3765 * tests/torture.at (datarootdir workaround): Adjust.
3766 (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
3768 Fix Autotest for whitespace in `pwd`.
3769 * lib/autotest/general.m4 (AT_INIT)
3770 <at_func_create_debugging_script, Driver Loop>:
3771 Quote $at_group_dir.
3772 * tests/autotest.at (whitespace in absolute testdir): New test.
3774 * lib/autom4te.in: Quote @datadir@.
3776 Proper file name escaping in Autoconf programs and Perl modules.
3777 This includes escaping of characters special to the shell
3778 as well as special to Perl, e.g., leading `<' or `>'.
3779 For example, when $file starts with `>', `open ">$file"'
3780 wrongly tries to append to a different file.
3781 * bin/autoconf.as: Fix quoting for autom4te options.
3782 * lib/Autom4te/General.pm (shell_quote): New function, taken
3783 from coreutils, written by Jim Meyering.
3785 * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
3787 * bin/autoreconf.in (parse_args): Likewise.
3788 * bin/autoscan.in (main): Likewise.
3789 * bin/autoupdate.in (main): Likewise.
3790 * bin/autoheader.in: Likewise, fixing old insufficient escaping.
3791 * bin/ifnames.in: Likewise, XFile usage fixes.
3792 * tests/tools.at (autom4te and whitespace in file names): Extend
3793 test. Test twice, with special characters allowed on w32, and the
3794 rest. Test leading and trailing whitespace, for `open_quote'.
3795 (autotools and whitespace in file names): New, analogous test.
3796 Reported by Paul Eggert and Benoit Sigoure, additional suggestions
3797 by Russ Allbery and Eric Blake.
3800 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3801 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
3802 * lib/Autom4te/FileUtils.pm (open_quote): New function.
3803 (update_file, contents): Use it.
3805 * Makefile.am (autom4te-update): Rewrite for git.
3807 2007-12-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3809 * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
3811 Fix copyright years.
3812 * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
3813 lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
3815 2007-12-04 Eric Blake <ebb9@byu.net>
3817 Manually resync with gnulib, since 'make cvs-update' no longer works.
3818 * build-aux/config.guess: New upstream version.
3819 * build-aux/config.sub: Likewise.
3821 When using older automake, don't downgrade build-aux/texinfo.tex.
3822 * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
3823 * doc/Makefile.am (TEXINFO_TEX): Add.
3825 2007-11-27 Paul Eggert <eggert@cs.ucla.edu>
3827 Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
3828 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
3829 #undef as this runs afoul of our new way of creating config.h.
3830 Problem reported by Jim Meyering in
3831 <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
3833 2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3835 Fix autom4te for unusual characters in input file names.
3836 * bin/autom4te.in (files_to_options): Quote active characters
3838 * tests/tools.at (autom4te and white space in file names):
3841 * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
3842 Document that Tru64 awk always splits $0.
3844 2007-11-24 Stepan Kasal <kasal@ucw.cz>
3846 * lib/autotest/general.m4 (AT_INIT): Do not extract the
3847 `#AT_STOP_...' line at the end of each test.
3849 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3851 * lib/autotest/general.m4 (AT_INIT): For awk line number
3852 extraction script, ensure `$at_group' has a defined value
3853 even for the empty set, and properly quote its usage inside
3856 2007-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3858 * doc/autoconf.texi (Shell Functions): New chapter. Document
3859 IRIX sh $0 issue in functions, move content from ...
3860 (Portable Shell): ... here.
3861 (Shell Script Compiler): Note that shell functions are not
3862 totally unportable any more.
3864 2007-11-22 Stepan Kasal <kasal@ucw.cz>
3865 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3867 * lib/autotest/general.m4 (AT_INIT): Exit awk script after
3868 extracting the line numbers of the last needed test.
3870 2007-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3872 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
3875 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3877 Fix IRIX testsuite debugging failures: $0 in functions.
3878 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
3879 Do not use $0 inside a function, as IRIX sh will set that to the
3880 function name rather than the script invocation name.
3882 2007-11-19 Paolo Bonzini <bonzini@gnu.org>
3883 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3885 * lib/autotest/general.m4 (at_func_test): Use cached line numbers
3886 to extract test scripts.
3887 (AT_INIT): Extract and cache test script line numbers.
3889 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3891 * lib/autotest/general.m4: Revert 2007-11-15 patch and
3892 subsequent fixups; the awk -> here-document conversion trashes
3893 performance too much with AIX sh.
3895 2007-11-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3897 * tests/local.at: Do not test m4, perl with AT_TESTED.
3899 Diagnose and guard against write errors dealing with config.status.
3900 The general idea is this: all write failures from `configure'
3901 writing `config.status' are indicated by $ac_write_error, which
3902 is only checked at the end. This is safe because config.status
3903 code is not executed before the file is complete. Other write
3904 failures, be they inside config.status, or in sub shell/awk
3905 scripts spawned from configure or config.status, typically need
3906 earlier checking, as their results are used right afterwards.
3907 * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
3908 before writing config.status, check afterwards.
3909 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
3910 (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
3911 Set `ac_write_error' for write failures to config.status. Barf
3912 upon write failures to temporary files.
3913 Adjust note about closing and reopening the here-document.
3914 (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
3915 (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
3916 reopening the here-document.
3917 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3918 Ensure `ac_write_error' does not escape into config.status.
3919 Also, add a couple of code paths not yet exercised in the test
3920 suite: a config file with input from stdin, and a config header
3922 Suggestion for catching write errors by Bruno Haible.
3924 2007-11-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3926 Avoid error with Tru64 awk and testsuite lines with many words.
3927 * lib/autotest/general.m4 (AT_INIT): In the awk script that
3928 reads the testsuite, set the field separator to an unusual value,
3929 in order to not run over the limit of 199 fields. Tru64 4.0D awk
3930 even splits the input if $i, i>0, was never accessed in the script.
3932 Revert 2007-10-17 change.
3933 * TODO: Multiline args in config files and headers mean something
3934 different and are not fixed, see
3935 <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
3936 Report by Stepan Kasal.
3938 * doc/autoconf.texi (Generic Programs): Fix typo.
3940 2007-11-16 Stepan Kasal <kasal@ucw.cz>
3942 AC_*_TOOL does not canonicalize the prefix
3943 * doc/autoconf.texi (Generic Programs): Do not say that
3944 the *_TOOL macros canonicalize, they simply use the `host_alias'.
3946 2007-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3948 Diagnose write errors in config.status instantiations.
3949 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
3950 (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
3952 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3953 Extend test to also check for some write error failures, using...
3954 <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
3955 Report by Bruno Haible.
3958 * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
3960 (_AT_CHECK): Use less indentation, to save space.
3962 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3964 Add witness macro for @top_build_prefix@ substitution.
3965 * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
3966 (_AC_OUTPUT_FILE): Mention it here.
3968 2007-11-15 Paolo Bonzini <bonzini@gnu.org>
3969 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3971 * lib/autotest/general.m4 (at_func_test): Remove.
3972 (AT_INIT): Pre-extract test groups into separate files.
3973 (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
3974 Remove at-test-source files together with the $at_group_dir.
3975 * tests/autotest.at (Long test source lines): New test.
3977 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3979 Shell functions and variables may share a namespace.
3980 * doc/autoconf.texi (Portable Shell): Mention Solaris sh
3983 2007-11-14 Paul Eggert <eggert@cs.ucla.edu>
3985 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
3988 2007-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3990 * lib/autoconf/status.m4: Fix a couple of comment typos.
3992 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
3994 2007-11-13 Jim Meyering <meyering@redhat.com>
3996 Clean up the rule to create "expr".
3997 * tests/Makefile.am (expr): Don't redirect directly to target.
3998 Redirect just once, not for each echo statement.
3999 Use $@, not literal "expr".
4001 2007-11-13 Paul Eggert <eggert@cs.ucla.edu>
4003 Don't worry about preprocessor when testing long long.
4004 See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
4005 * doc/autoconf.texi (Preprocessor Arithmetic): New section.
4006 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
4007 These no longer check for preprocessor flaws.
4008 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
4009 Do not check for preprocessor flaws.
4011 2007-11-13 Jim Meyering <meyering@redhat.com>
4013 Adapt dependencies, now that a version change doesn't modify configure.ac
4014 * GNUmakefile: Remove "make clean" kludge.
4015 * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
4017 Don't redirect directly to target.
4018 Use $@, not literal "version.m4".
4020 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4022 * doc/autoconf.texi (Making testsuite Scripts): Document
4023 ":;{" shorthand as in previous patch.
4025 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
4027 * doc/autoconf.texi (Limitations of Builtins): Document problem
4028 with { ... } a bit more clearly. Suggest ":;{" as a shorthand
4030 * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
4031 Use ":;{" shorthand.
4032 * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
4034 2007-11-12 Jim Meyering <meyering@redhat.com>
4036 Add more non-srcdir build support.
4037 * GNUmakefile (dummy): Split a long line.
4038 Add -v option to autoreconf invocation.
4040 Remove the autoreconf-provided INSTALL, so that we regenerate it.
4041 * GNUmakefile (dummy): Remove INSTALL.
4043 Remove racy commands to build scripts in bin/ and tests/.
4044 * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
4045 are guaranteed to be built, remove the rules that tried to build
4046 them. Before, with a parallel build, these rules could lead to
4047 two processes writing tests/wrapper.in concurrently.
4049 Build in man/ only *after* building in bin/ and tests/.
4050 * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
4051 in both bin/ and tests/.
4053 Accommodate non-srcdir build-from-checkout.
4054 * build-aux/git-version-gen: Require an additional parameter: $srcdir.
4055 Use git's --git-dir=$srcdir/.git option.
4056 Add quotes, in case tarball_version_file contains shell meta-characters.
4057 * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
4058 * configure.ac: Pass "." to git-version-gen.
4060 Avoid spurious test failures due to version skew.
4061 * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
4063 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4065 Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
4066 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
4067 Remove conftest.dSYM directory.
4068 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
4069 (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
4070 Remove `conftest.*' recursively.
4071 * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
4072 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
4074 (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
4076 Report and analysis by Jeff Squyres and Peter O'Gorman.
4078 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
4080 Fix typos in variable names.
4081 * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
4083 2007-11-11 Benoit Sigoure <tsuna@lrde.epita.fr>
4085 Document that $((expression)) is not portable.
4086 * doc/autoconf.texi (Shell Substitutions): Here.
4088 2007-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4090 Ignore configure --help* errors due to LINENO-impaired shells.
4091 * tests/torture.at (Configuring subdirectories, Deep Package):
4092 In the --help* tests in read-only trees, make `.' temporarily
4093 writable again for the `stderr' file, and ignore errors due to
4094 the attempt to write configure.lineno.
4095 Report by Patrick Welche.
4097 2007-11-10 Jim Meyering <meyering@redhat.com>
4099 Generate package.m4 in build-dir, not srcdir.
4100 * tests/Makefile.am (package.m4): Adjust target.
4101 Don't redirect directly to $@.
4102 (CLEANFILES): Add package.m4.
4103 ($(TESTSUITE)): Depend on just-built package.m4, not the one
4105 When running $(AUTOTEST), search "." before searching $(srcdir).
4107 Avoid a race condition that would make parallel "distclean" fail.
4108 * tests/Makefile.am (distclean-generic): Replace the default,
4109 automake-provided rule with an identical one, but with an additional
4110 dependency on distclean-local. Simply adding the dependency would
4111 cause automake not to emit the rule at all.
4112 * BUGS: Building with -jN works, now.
4114 Distribute git-version-gen.
4115 * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
4116 since GNUmakefile is distributed, and requires it for dist* rules.
4118 Remove two more generated files from version control.
4119 * INSTALL: Remove generated file.
4120 * lib/autoscan/autoscan.list: Remove generated file.
4122 2007-11-09 Paul Eggert <eggert@cs.ucla.edu>
4124 * GNUmakefile (PATH): Remove stray apostrophes; they become
4125 part of PATH, which isn't wanted here.
4127 2007-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4129 New config files output variable `top_build_prefix'.
4130 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
4132 * doc/autoconf.texi (Preset Output Variables): Document it.
4134 Report by Bob Friesenhahn.
4136 Avoid expr for arithmetic evaluation if the shell accepts $((...)).
4137 * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
4138 function, to parametrize arithmetic with expr vs. the shell.
4139 Use it where possible.
4140 Suggestion by Benoit Sigoure.
4142 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
4144 Adjust the documentation of autotest WRT atlocal.
4145 * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
4146 when using Automake, to write a rule to produce atlocal, since it's
4147 an AC_CONFIG_FILES. Mention that atlocal.in needs to be
4148 distributed, not atconfig.in.
4150 2007-11-04 Eric Blake <ebb9@byu.net>
4152 Update list information.
4153 * README: Mention new autoconf-commit list.
4154 * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
4156 2007-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4158 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
4160 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
4162 * build-aux/.gitignore: Ignore mkinstalldirs.
4164 * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
4166 2007-11-03 Jim Meyering <meyering@redhat.com>
4168 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
4169 * build-aux/git-version-gen: This syncs from coreutils.
4171 Adjust the build procedure so "make check" works reliably.
4172 * README-hacking: Include an extra step between "make" and
4173 "make check" to ensure that the latter passes.
4175 Use just-built tools, when possible.
4176 * GNUmakefile (PATH): Set and export here, ...
4177 (dummy): ... rather than here.
4179 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4180 and Andreas Schwab <schwab@suse.de>
4182 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
4185 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4187 * configure.ac (AC_PREREQ): Require version 2.60, for
4188 AC_PROG_SED, AC_PROG_GREP.
4190 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
4191 and Jim Meyering <meyering@redhat.com>
4192 and Andreas Schwab <schwab@suse.de>
4193 and Eric Blake <ebb9@byu.net>
4195 Document a bug in GNU Bash with compound commands and redirections.
4196 * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
4197 Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
4200 2007-11-03 Eric Blake <ebb9@byu.net>
4202 Support m4 1.4.5 in testsuite.
4203 * tests/torture.at (Define a newline): Exclude line numbers in
4205 Reported by Ralf Wildenhues.
4207 2007-11-03 Jim Meyering <meyering@redhat.com>
4209 Remove automake-provided files from version control.
4210 * build-aux/elisp-comp: Remove file.
4211 * build-aux/install-sh: Remove file.
4212 * build-aux/missing: Remove file.
4213 * build-aux/mdate-sh: Remove file.
4214 * build-aux/.gitignore: New file.
4215 Suggestion from Ralf Wildenhues.
4217 2007-11-03 Eric Blake <ebb9@byu.net>
4219 Adjust version comparison to account for git snapshot numbers.
4220 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
4221 component separator.
4222 * doc/autoconf.texi (Number processing Macros)
4223 <m4_version_compare>: Document this change.
4224 * tests/m4sugar.at (m4@&t@_version_compare): Test it.
4226 2007-10-30 Bruno Haible <bruno@clisp.org>
4228 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
4229 extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4230 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
4231 Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
4232 <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
4233 Suggested by Paul Eggert.
4235 2007-10-28 Jim Meyering <meyering@redhat.com>
4237 * README-hacking: Autoconf, Automake, and Perl are required to build.
4238 List Gzip and Tar separately. Suggested by Ralf Wildenhues.
4240 2007-10-28 Jim Meyering <meyering@redhat.com>
4242 README-hacking: Recommend running autoreconf -vi.
4243 * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
4244 so that we use just-built tools when they're available.
4245 Suggestions from Ralf Wildenhues.
4247 2007-10-28 Jim Meyering <meyering@redhat.com>
4249 Make inter-release --version output more useful.
4251 Now, each unofficial build has a version "number" like 2.61a-19-58dd,
4252 which indicates that it is built using the 19th change set
4253 (in _some_ repository) following the "v2.61a" tag, and that 58dd
4254 is a prefix of the commit SHA1.
4255 * build-aux/git-version-gen: New file.
4256 * configure.ac: Run it to set the version.
4257 (AM_INIT_AUTOMAKE): Don't check NEWS here.
4258 * Makefile.am (dist-hook): Arrange so that .version appears only
4259 in distribution tarballs, never in a checked-out repository.
4260 * .gitignore: Add .version here, too. Just in case.
4261 * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
4262 not configure.ac, now that the version number changes automatically.
4264 Ensure that $(VERSION) is up to date for dist-related targets.
4265 * GNUmakefile: Arrange to rerun autoconf, if the version reported by
4266 git-version-gen doesn't match $(VERSION), but only for dist targets.
4268 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4270 Fix `Deep Package' failure with a configure script early in PATH
4271 * tests/torture.at (Deep Package): Add `.' early in PATH.
4272 Report by Jim Meyering.
4274 2007-10-27 Jim Meyering <meyering@redhat.com>
4276 Remove all generated files from version control.
4277 * aclocal.m4: Remove.
4278 * configure: Remove.
4279 * Makefile.in: Remove, along with all other Makefile.in in subdirs.
4280 * .gitignore: Add aclocal.m4, configure and Makefile.in. Sort.
4281 * README-hacking: New file: how to build from just-checked-out sources.
4283 2007-10-23 Eric Blake <ebb9@byu.net>
4285 Improve corner case of m4_expand.
4286 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
4288 * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
4289 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
4292 2007-10-23 Paul Eggert <eggert@cs.ucla.edu>
4294 * doc/make-stds.texi: Update from gnulib.
4296 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
4297 and Eric Blake <ebb9@byu.net>
4299 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
4300 problem reported by Bruno Haible in
4301 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
4303 2007-10-22 Eric Blake <ebb9@byu.net>
4305 * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
4308 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
4310 Don't check for bug in HP-UX 11.00 cpp.
4311 * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4312 Use -1ull rather than -1u, since that causes problems with gnulib; see
4313 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4315 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4317 * tests/autotest.at (Backquote command substitution)
4318 (Multiline backquote command substitution)
4319 (Parenthetical command substitution)
4320 (Multiline parenthetical command substitution): Fix typos in
4323 2007-10-21 Eric Blake <ebb9@byu.net>
4325 * configure: Regenerate.
4327 2007-10-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4329 Fix config status generation with Tru64 ksh.
4330 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
4331 escaping of backslash in here-documents.
4333 Fix `Deep Package' test failure on FreeBSD.
4334 * tests/torture.at (Deep Package): Do not add `.' to $PATH
4335 unnecessarily. Do not try running `/bin/sh configure' with a
4336 configure script to be found in $PATH, if the shell does not do
4337 this resolution. Fixes test failure on FreeBSD.
4339 Fix config header generation with AIX awk.
4340 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
4341 script, use helper array D_is_set, as `" 0"' does not evaluate
4342 to true for AIX awk.
4344 2007-10-21 Eric Blake <ebb9@byu.net>
4346 * tests/autotest.at (Banners): Reinstate test, with typo
4349 2007-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4351 * lib/autotest/general.m4 (Defaults): Validate input ranges ...
4352 <at_func_validate_ranges>: ... using this new function.
4353 * tests/autotest.at (Keywords and ranges): Test invalid ranges.
4354 Test --list with ranges and keywords.
4355 (Banners): Remove one now-failing test.
4357 2007-10-20 Eric Blake <ebb9@byu.net>
4359 Fix testsuite --list subset.
4360 * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
4361 back to spaces, before listing subset of tests.
4362 Reported by Ralf Wildenhues.
4364 2007-10-19 Eric Blake <ebb9@byu.net>
4366 s/parenthesis/parentheses/ where appropriate.
4367 * doc/autoconf.texi: Fix typos.
4368 * lib/m4sugar/m4sugar.m4: Likewise.
4369 Reported by Ralf Wildenhues.
4371 Document m4_expand limitation.
4372 * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
4374 * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
4375 (Writing Testsuites): Mention limitations inherited from
4378 Improve AT_BANNER handling.
4379 * lib/autotest/general.m4 (BANNERS): New named diversion.
4380 (TESTS_END): Diversion no longer used.
4381 (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
4382 shell function, which prints only as needed, using an associative
4383 array of banner text from a special diversion.
4384 <PARSE_ARGS_END>: No longer need awk to find banners.
4385 <TESTS>: Banners are no longer processed by main driver loop, so
4386 we no longer need case statement.
4387 (AT_BANNER): Rewrite to populate new diversion.
4388 (AT_SETUP): Each test invokes its own banner. No output is needed
4389 to the TESTS diversion.
4390 * doc/autoconf.texi (Writing Testsuites): Document slight
4392 * tests/autotest.at (AT_BANNERS): Enhance test.
4393 * NEWS: Document AT_BANNER.
4395 Document and test AT_BANNER.
4396 * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
4397 * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
4398 (AT_CHECK_BANNERS): New test.
4401 * doc/autoconf.texi (Text processing Macros) <m4_strip>
4402 <m4_text_wrap>: Clarify and fix typos.
4404 2007-10-18 Eric Blake <ebb9@byu.net>
4406 Ignore `make dist' changelogs in testsuite.log.
4407 * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
4408 directories matching AT_PACKAGE_TARNAME-*.
4410 Fix AT_TESTED, AT_KEYWORDS.
4411 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
4412 occurs in string, as duplicates may be added.
4413 (_m4_append_uniq): New helper macro.
4414 (m4_append_uniq_w): New macro.
4415 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
4416 duplication bug by using new macro.
4417 (AT_INIT) <at_tested>: Restore newline separators. Invoke tested
4418 programs with stdin redirected, so programs that don't
4419 understand --version won't try to behave interactively.
4420 * tests/autotest.at (Tested programs): Catch this bug.
4421 * tests/m4sugar.at (m4@&t@_append): Test new macro.
4422 * tests/local.at (AT_TESTED): Add m4, perl.
4423 * doc/autoconf.texi (Text processing Macros): Document
4424 m4_append_uniq_w, and update text on m4_append.
4425 * NEWS: Document the addition.
4427 2007-10-17 Eric Blake <ebb9@byu.net>
4430 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
4432 (AT_INIT) <at_func_create_debugging_script>: ...to shell
4434 (AT_INIT): Defer function declarations until after --help,
4435 --version. Format functions consistently, trying to fit in 80
4437 (TEST_FUNCTIONS): Based on recent changes, rename...
4438 (TEST_GROUPS): ...to this.
4441 * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
4442 * configure: Regenerate.
4443 Reported by Bob Friesenhahn.
4445 Test recent additions.
4446 * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
4447 (m4@&t_max and m4@&t_min): New tests.
4448 * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
4451 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4453 * TODO: multiline args in config files and headers work now.
4455 Autotest: do not use shell functions for individual tests.
4456 * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
4457 extract the source test source, do not invoke it.
4458 (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
4459 * tests/autotest.at (Fallacy): Actually let the inner suite fail,
4460 expect exit status of 1.
4461 * tests/autotest.at (Skip): New test, for bogus zsh exit status.
4463 * lib/autotest/general.m4 (at_func_test): Fix test extraction
4466 2007-10-17 Eric Blake <ebb9@byu.net>
4468 Fix m4_combine for empty suffix list.
4469 * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
4470 * doc/autoconf.texi (Text processing Macros): Document this.
4472 Add m4_combine, based on Libtool's lt_combine.
4473 * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
4474 * doc/autoconf.texi (Text processing Macros): Document it.
4477 2007-10-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4479 Fix `configure --help=recursive' in unconfigured/read-only trees.
4480 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
4481 is not writable, use 'cp -p' in this case, in the hope that it
4482 will not actually be needed. Still try removing files, in case
4483 of other write errors.
4484 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
4485 use $as_myself, not $0.
4486 (_AC_INIT_HELP): For --help=recursive, if the subdir does not
4487 exist, try again in the the source tree. This change assumes
4488 that the subpackage configure script is capable of running
4489 --help=recursive in the source tree.
4490 * tests/torture.at (Configuring subdirectories, Deep Package):
4491 Adjust tests to expose both issues, also try invocation as
4492 `sh configure ...' and plain `configure ...' with PATH adjusted.
4493 * NEWS, THANKS: Update.
4494 Report by Hans Ulrich Niedermann.
4496 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
4498 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4499 Problem reported by H.Merijn Brand in
4500 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4501 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
4502 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4503 Check that preprocessor handles 64-bit ints, too.
4505 2007-10-16 Eric Blake <ebb9@byu.net>
4507 m4_map is a looping construct.
4508 * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
4510 Fix m4_map, and add some more utility macros.
4511 * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
4512 (m4_echo, m4_make_list): New documented macros.
4513 (_m4_quote, _m4_shift2): New helper macros.
4514 (m4_map): Change semantics to allow calling macro without
4516 (m4_map_sep): Likewise. Also change semantics to quote separator,
4517 to match m4_join and m4_append.
4518 (m4_version_unletter): Fix use of m4_map.
4519 * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
4520 m4_count, m4_dquote_elt, m4_echo, m4_make_list.
4521 (Text processing Macros): Mention m4_dquote as a faster
4522 alternative to joining with commas.
4523 (Looping constructs): Document m4_map, m4_map_sep.
4524 * NEWS: Mention new macros.
4526 A few more m4sugar improvements, to benefit libtool.
4527 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
4528 of expansion by avoiding extra uses of $@.
4529 (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
4530 (_m4_cdr): New helper macro.
4531 (_m4_map, m4_map_sep): Use it to reduce size of expansion.
4532 (_m4_shift3): New helper macro.
4533 (_m4_foreach): Swap argument order, and use new macro to reduce
4535 * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
4536 count must be positive.
4538 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
4539 Reported by Ralf Wildenhues.
4541 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4543 * doc/autoconf.texi (Portable Shell): Improve description of zsh
4544 4.x function subshell bug with exit and trap.
4546 2007-10-15 Eric Blake <ebb9@byu.net>
4548 Enhance AS_HELP_STRING.
4549 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
4550 and reduce number of expansions.
4551 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
4552 and to take indent and wrap column numbers.
4553 * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
4554 * doc/autoconf.texi (Pretty Help Strings): Document details about
4556 (Text processing Macros): Minor tweaks.
4557 * NEWS: Document this change.
4559 Fix 2007-10-03 regression with AT_SETUP([a, b]).
4560 * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
4561 (m4_text_box): Use it.
4562 * lib/autotest/general.m4 (AT_SETUP): Use it.
4563 * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
4564 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
4565 * NEWS: Revert caveat about semantics change on comma.
4566 * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
4568 2007-10-13 Eric Blake <ebb9@byu.net>
4570 Change m4_join to match libtool's ltsugar semantics.
4571 * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
4572 Ignore empty arguments, using...
4573 (_m4_join): ...this new helper.
4574 * tests/m4sugar.at (m4@&t@_join): New test.
4575 * doc/autoconf.texi (Text processing Macros): Document new
4576 semantics of m4_join.
4578 Make AC_PREREQ faster and more robust.
4579 * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
4580 (m4_version_prereq): Inline constant expansions.
4581 (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
4582 Rewrite in terms of [] list, not () list.
4583 (_m4_list_cmp, _m4_version_unletter): New helper macros.
4584 (m4_version_unletter): Write wrapper around new implementation to
4585 preserve old semantics.
4586 (m4_version_compare): Pass correct type of list, and avoid
4587 overhead of flattening expressions too early.
4588 (m4_do): Move to be near other quoting macros.
4589 (m4_max, m4_min): Always result in decimal output.
4590 * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
4592 (Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
4593 (Text processing Macros): Move m4_version_compare...
4594 (Number processing Macros): ...to this new node; document m4_cmp,
4595 m4_list_cmp, m4_sign, m4_max, m4_min.
4596 * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
4597 up on bugs fixed by this patch.
4598 * NEWS: Document new macros.
4600 2007-10-12 Eric Blake <ebb9@byu.net>
4602 * doc/autoconf.texi (Text processing Macros): Fix bad merge.
4603 (Reporting Messages): Fix underfull hbox.
4605 Some more m4sugar documentation.
4606 * lib/m4sugar/m4sugar.m4: Clean up macro order.
4607 * doc/autoconf.texi (Programming in M4): Lighten the warning on
4608 using m4sugar; it is stabilizing and useful.
4609 (Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
4610 m4_divert, m4_undivert, __file__, __line__, __oline__.
4611 (Diagnostics): New node, documenting m4_assert, m4_errprintn,
4612 m4_fatal, m4_location, m4_warn.
4613 (Diversion support): New node, documenting m4_divert_push,
4614 m4_divert_pop, m4_divert_text, m4_divert_once.
4615 (Text processing Macros): Sort. Add m4_flatten, m4_join,
4616 m4_newline, m4_strip, m4_text_box, m4_text_wrap.
4617 (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
4619 (Printing Messages): Change cross-reference.
4621 Document interaction of recent m4_append change with Libtool HEAD.
4622 * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
4623 (m4_append_uniq): Add new parameters, based on lt_append_uniq.
4624 * tests/m4sugar.at (m4@&t@_append): New test.
4625 * NEWS: Document semantics change.
4626 * doc/autoconf.texi (Text processing Macros): Likewise.
4628 s/AC_VERSION/AC_AUTOCONF_VERSION/.
4629 * doc/autoconf.texi (Versioning): Change the name.
4631 * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
4632 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
4633 Suggested by Ralf Wildenhues.
4636 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
4637 (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
4639 * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
4640 (Programming in M4sh, Macro Names): Beef up description of
4641 namespaces reserved for autoconf.
4642 * configure: Regenerate.
4644 2007-10-12 Eric Blake <ebb9@byu.net>
4645 and Paolo Bonzini <bonzini@gnu.org>
4647 Speed up execution of subset of testsuite.
4648 * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
4649 (AT_INIT) <at_func_test>: New shell function.
4650 (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
4651 (AT_INIT) <at_test_source> New variable, names file that holds
4652 current test function definition.
4653 (AT_SETUP): Start the shell function at_func_test_#, into the
4654 TEST_FUNCTIONS diversion.
4655 (AT_CLEANUP): End the shell function. Simplify the TESTS
4656 diversion to invoke the function.
4658 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4660 * .gitignore: Ignore tags and TAGS files.
4662 2007-10-11 Eric Blake <ebb9@byu.net>
4664 Config header generation followup.
4665 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
4666 which won't work with the preprocessor nor with the awk
4668 * tests/torture.at (Define a newline): Test raw newline detection,
4670 * doc/autoconf.texi (Defining Symbols): Document recent change to
4671 allow backslash-newline.
4674 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4676 * lib/autotest/general.m4: Put function braces in separate line.
4678 2007-10-10 Eric Blake <ebb9@byu.net>
4680 Avoid some overhead from m4_defn and m4_popdef.
4681 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
4682 pass on first argument, since we are documented that way.
4683 (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
4684 check where it is safe to do so.
4685 (m4_append): Likewise, and quote the separator.
4686 (m4_text_box): Likewise, and avoid regex, also be robust to
4687 expansion and quadrigraphs.
4689 Another AC_DEFINE speedup.
4690 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
4692 (_AC_DEFINE_Q): ...here, and only do it once.
4693 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
4694 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
4695 introduced 2007-10-05.
4698 * lib/autoconf/general.m4: Use consistent indentation.
4699 * configure: Regenerate.
4701 * NEWS: Announce recent round of speed optimizations.
4703 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4705 * NEWS: Announce shell function usage in Autotest.
4707 2007-10-10 Eric Blake <ebb9@byu.net>
4708 and Paul Eggert <eggert@cs.ucla.edu>
4710 Reduce number of forks at startup.
4711 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
4713 * configure: Regenerate.
4715 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4716 and Paul Eggert <eggert@cs.ucla.edu>
4718 Use awk for config header generation.
4719 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
4720 (_AC_OUTPUT_HEADERS_PREPARE): New macro. Rewrite of the config
4721 header machinery for use with awk and placement outside the main
4722 config.status instantiation loop. Retain multi-line defines
4723 through backslash-newline combinations, do not split the script
4725 (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
4726 (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
4728 (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
4731 * tests/torture.at (#define header templates): Extend test by
4732 several more cases: white space before and after `#', macros
4733 with parameters in config.hin and as defines, multi-line macro
4735 (Torturing config.status): Use a define value twice the length
4736 in order to exercise the awk literal string limit.
4737 (Substitute and define special characters): Also try special
4738 delimiter, to exercise the special-case code.
4739 Suggestion by Eric Lemings.
4741 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4743 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
4745 2007-10-09 Eric Blake <ebb9@byu.net>
4747 Improve header of bin/autoconf.
4748 * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
4749 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
4751 * bin/autoconf.as: Put copyright up front in generated file.
4753 * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
4755 2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4757 * doc/install.texi (Basic Installation): Document `uninstall'.
4758 * INSTALL: Regenerate.
4759 Suggestion by Roberto Bagnara.
4761 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
4763 * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
4765 Adjust doc. to match latest gnulib.
4766 * build-aux/texinfo.tex: Sync from gnulib.
4767 * doc/standards.texi: Likewise.
4768 * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
4769 Documentation License" and remove the subsection. This simplifies
4770 the manual a bit and is more like what other GNU projects do
4773 2007-10-08 Eric Blake <ebb9@byu.net>
4776 * configure: Regenerate.
4778 Fix regression in m4_text_wrap from 2007-10-05.
4779 * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
4781 (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
4783 * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
4784 * tests/autotest.at (Long test title, Longer test title): Test
4785 this fix, beyond what AS_HELP_STRING already tests.
4787 Avoid m4 warnings on bad m4_format usage.
4788 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
4790 * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
4791 enough arguments are provided.
4793 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
4795 * doc/autoconf.texi (Shell portability): Document shell function
4798 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
4800 * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
4801 at_func_check_skip, at_func_check_status, at_func_filter_trace,
4802 at_func_log_failure shell functions. Use test -s to avoid
4803 useless diff invocations.
4804 (at_func_check_newline): Renamed from at_check_newline.
4805 (AT_SETUP): Define AT_captured_files to empty.
4806 (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
4807 (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir. Use all
4808 the shell functions.
4810 2007-10-05 Paul Eggert <eggert@cs.ucla.edu>
4812 Don't assume "." is writeable, for commands like "autoconf --version".
4813 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
4814 different heuristic instead, one that doesn't rely on creating
4817 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
4820 2007-10-05 Jim Meyering <meyering@redhat.com>
4822 Avoid makeinfo warnings.
4823 * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
4824 (Looping constructs): Add ` ' after @defmac'd name, m4_do.
4826 2007-10-05 Eric Blake <ebb9@byu.net>
4828 Resolve Python issue 1676135 regarding configure directory args.
4829 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
4830 slashes from directory arguments.
4831 * tests/base.at (configure directories): New test.
4832 * doc/autoconf.texi (Installation Directory Variables): Document
4836 Reported by Björn Lindqvist.
4838 Provide better short-circuiting operation.
4839 * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
4840 (m4_text_wrap): Use it. Also avoid useless m4_for.
4841 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
4843 (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
4844 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
4846 * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
4847 documentation. Sort m4_mkstemp, m4_undefine. Move m4_ifndef...
4848 (Conditional constructs): ...here, to new section. Also document
4849 m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
4850 m4_bpatsubsts, and m4_default.
4851 (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
4854 2007-10-04 Eric Blake <ebb9@byu.net>
4856 Fix recent testsuite failures.
4857 * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
4858 that must not be re-expanded after AS_ESCAPE.
4859 * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
4860 checking if it is an identifier.
4863 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
4864 leading whitespace, as it caused space-tab in testsuite.
4865 (AT_INIT): Avoid trailing newlines in testsuite.
4867 One more round of m4_foreach_w speedups.
4868 * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
4870 (_m4_split): Avoid useless expansions inside definition. Move
4871 argument defaulting...
4872 (m4_split): ...here. Change alternate quote to something less
4873 likely to appear in $1. Also, special case space as regexp...
4874 (m4_foreach_w): ...to avoid regexp on single-term list.
4875 (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
4876 useless expansions inside definition.
4877 * tests/m4sugar.at (m4@&t@_split): Add tests.
4879 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
4881 * general.m4 (AT_INIT): Add at_check_newline function.
4882 (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
4883 (_AT_CHECK): Don't use at_trace_this.
4885 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
4887 Fix previous commit.
4888 * lib/autotest/general.m4 (AT_LINE): Fix regex.
4890 2007-10-04 Eric Blake <ebb9@byu.net>
4892 Speed up building testsuites.
4893 * lib/autotest/general.m4 (AT_LINE): Only use regex when file
4894 changed since last time. Use simpler regex.
4896 2007-10-03 Eric Blake <ebb9@byu.net>
4898 Optimize checking for identifiers.
4899 * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
4900 macros, more efficient than regex on m4_re_word.
4901 * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
4902 Rewrite in terms of new macro. As a side-effect, AC_DEFINE can
4904 * configure: Regenerate.
4906 Remove some XFAILs, and make AT_SETUP output line up.
4907 * lib/autotest/general.m4 (AT_SETUP): Only expand description
4908 once; thereafter, use its expansion, properly quoted.
4909 * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
4910 expansion with arguments, and check for aligned output.
4911 (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
4912 Add a test for macros with parameters.
4913 * NEWS: Document the semantics change.
4914 * tests/base.at: Fix test titles containing commas.
4915 * tests/compile.at: Likewise.
4916 * tests/tools.at: Likewise.
4917 * tests/torture.at: Likewise.
4919 Another round of regex avoidance.
4920 * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
4921 (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
4922 (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
4923 (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
4924 character ranges useful in m4_translit.
4925 (m4_toupper, m4_tolower): Optimize the constant portion of
4927 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
4928 creates $, and reject [] thanks to AS_TR_SH rewrite.
4929 (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
4930 (AS_ESCAPE): Factor...
4931 (_AS_ESCAPE): ...into new macro, with second argument required.
4932 Avoid regex in common case.
4933 (_AS_QUOTE): Use new macro.
4936 * lib/autoconf/types.m4: Avoid space-tab.
4937 * lib/m4sugar/m4sh.m4: Use tab consistently.
4939 2007-10-03 Paul Eggert <eggert@cs.ucla.edu>
4941 * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
4942 (m4_shiftn): Remove no-longer-needed optimization. Perhaps we
4943 should remove m4_shiftn entirely?
4944 (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
4945 Prefer m4_shift2 and m4_shift3 to m4_shiftn.
4946 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
4947 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
4948 * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
4950 2007-10-03 Eric Blake <ebb9@byu.net>
4953 * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
4955 2007-10-02 Eric Blake <ebb9@byu.net>
4957 Optimize appending text.
4958 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
4962 * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
4963 lot of hot spots; optimize it for 2 and 3 shifts.
4965 Optimize AC_PREREQ and other m4sugar numerics.
4966 * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
4967 (m4_cmp): Compare arbitrary expressions, without overflow.
4968 (m4_version_unletter): Also recognize capital letters.
4969 (m4_version_compare): Avoid regex when splitting version number
4972 2007-10-01 Eric Blake <ebb9@byu.net>
4974 Once again, reject IRIX m4.
4975 * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
4976 implementations that ignore --trace.
4977 * configure: Regenerate.
4978 Reported by Ralf Wildenhues.
4980 Fix regression in AC_DEFINE([macro(with_arg)]).
4981 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
4982 quotes with a careless m4_substr.
4984 2007-09-30 Eric Blake <ebb9@byu.net>
4986 Allow nameless iteration.
4987 * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
4989 * tests/m4sugar.at (myvar): Test this.
4991 2007-09-29 Eric Blake <ebb9@byu.net>
4993 Speed optimization: avoid m4 regex when other algorithms work.
4994 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
4995 (_AS_QUOTE_IFELSE): Likewise.
4996 * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
4997 (m4_bpatsubsts): Split...
4998 (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
5000 (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
5001 (m4_qlen): Optimize on short strings, to avoid regex.
5002 (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
5003 * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
5004 (AC_DEFINE_TRACE): Likewise.
5006 2007-09-28 Eric Blake <ebb9@byu.net>
5008 Oops - my earlier 'optimization' caused a regression.
5009 * tests/local.at (AT_CHECK_M4): Fix typo.
5011 2007-09-27 Eric Blake <ebb9@byu.net>
5012 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5014 Catch even more common AC_CACHE_VAL mistakes.
5015 * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
5016 lacks '_cv_', or if AC_SUBST appears in body.
5017 * tests/base.at (AC_CACHE_CHECK): Test this change.
5019 2007-09-27 Stepan Kasal <kasal@ucw.cz>
5020 and Eric Blake <ebb9@byu.net>
5022 Autotest no longer caters to Ultrix redirection limitation.
5023 * doc/autoconf.texi (Writing testsuite.at): Remove the
5024 limitation that the first parameter of AT_CHECK cannot
5025 contain redirection.
5026 (File Descriptors): Mention that Ultrix limitation is no longer a
5027 show-stopper in modern code.
5028 * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
5029 parameter is `stderr' or `experr'. Optimize if it was `ignore'.
5030 * lib/autotest/general.m4 (AT_CHECK): Update comment.
5032 2007-09-27 Eric Blake <ebb9@byu.net>
5034 Squelch changeword in m4sugar.
5035 * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
5036 feature of m4 1.4.x.
5038 Configure whitespace touchups.
5039 * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
5040 installation directories, and avoid TAB, in configure --help
5042 * configure.ac: Avoid extra trailing newline.
5043 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
5044 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
5045 config.status --help output.
5046 * configure: Regenerate.
5048 Fix underquotation in AS_HELP_STRING.
5049 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
5051 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
5052 first-prefix argument.
5053 * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
5054 * NEWS: Document AS_HELP_STRING fix.
5056 Autotest formatting touchups.
5057 * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
5059 (PATH): Simplify computation of new PATH.
5061 2007-09-26 Eric Blake <ebb9@byu.net>
5063 Fix testsuite breakage in last patch.
5064 * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
5066 * tests/torture.at (@%:@define header templates): Rename, so that
5067 output lines up correctly.
5069 More font-lock happiness.
5070 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
5073 2007-09-25 Eric Blake <ebb9@byu.net>
5076 * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
5077 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
5079 Improve documentation of M4 parameter expansion.
5080 * doc/autoconf.texi (Quoting and Parameters): New section.
5081 (Quotation and Nested Macros): Improve wording.
5083 Improve C99 detection.
5084 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
5085 avoid deprecation warning with icc.
5087 Reported by Ted Bullock.
5089 2007-09-24 Jim Meyering <jim@meyering.net>
5091 Whenever possible, use the vertical bar as sed delimiter.
5092 * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
5094 * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
5095 [ac_dir_suffix]: Use "|", not "," as sed delimiter.
5096 * tests/mktests.sh (as_me): Likewise.
5097 * lib/freeze.mk (check-forbidden-patterns): Likewise.
5098 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
5099 * configure: Regenerate.
5100 * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
5101 * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
5102 in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
5103 This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
5105 2007-09-22 Jim Meyering <jim@meyering.net>
5108 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
5109 2004-05-31 change also with a comment in the code.
5111 2007-09-20 Eric Blake <ebb9@byu.net>
5113 More contribution housekeeping.
5115 * AUTHORS: Sort, reflect recent assignment from Helge Deller.
5117 Ignore additional files, when copying cross-repository.
5118 * .gitignore: Ignore CVS directories, emacs edits.
5119 * .cvsignore: Ignore .git directory, emacs edits.
5121 2007-09-15 Eric Blake <ebb9@byu.net>
5123 Provide AC_VERSION, not m4_AUTOCONF_VERSION.
5124 * doc/autoconf.texi (Text processing Macros): Remove mention of
5125 m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
5127 (Notices): Move AC_PREREQ...
5128 (Versioning): ...to this new section, alongside the new AC_VERSION
5129 alias for the undocumented m4_PACKAGE_VERSION.
5130 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
5131 * lib/autoconf/general.m4 (AC_VERSION): New macro.
5132 * NEWS: Update to match this rename.
5133 * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
5135 * tests/tools.at (autoconf: AC_VERSION): New test.
5136 Suggested by Paolo Bonzini and Benoit Sigoure.
5138 2007-09-14 Eric Blake <ebb9@byu.net>
5140 Prepare for conversion to git.
5141 * doc/.cvsignore: Avoid multiple listings on one line.
5142 * bin/.cvsignore: Likewise.
5143 * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
5144 lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
5145 lib/autoscan/.gitignore, lib/autotest/.gitignore,
5146 lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
5147 tests/.gitignore: New files, identical to .cvsignore counterpart.
5149 2007-09-13 Eric Blake <ebb9@byu.net>
5152 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
5154 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
5155 * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
5156 * configure: Regenerate.
5158 Clean up 'make dist' of previous patch.
5159 * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
5160 (CLEANFILES): Don't clean the stamp, since we distribute the
5161 generated files pre-built.
5162 (MAINTAINERCLEANFILES): Clean it here instead.
5163 * tests/Makefile.in: Regenerate.
5165 Avoid parallel 'make check' issue.
5166 * tests/Makefile.am (mktests.stamp): New witness.
5167 (TESTSUITE_GENERATED_AT): Use it.
5168 (CLEANFILES): Clean the witness.
5169 * tests/.cvsignore (mktests.stamp): Ignore the witness.
5171 Document another awk pitfall.
5172 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
5173 limitation of field variables in END.
5174 Reported by Gary V. Vaughan.
5176 * AUTHORS: Add missing entries.
5178 2007-09-12 Eric Blake <ebb9@byu.net>
5180 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
5181 * doc/autoconf.texi (Text processing Macros): Document
5182 m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
5183 (Redefined M4 Macros): Document m4_ifndef.
5184 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
5185 can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
5186 used it while it was undocumented.
5187 * NEWS: Document this change.
5188 * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
5189 * lib/m4sugar/Makefile.in: Regenerate.
5190 * tests/m4sugar.at (m4@&t@_version_compare): New test.
5191 Reported by Bruno Haible.
5193 * doc/autoconf.texi (Generic Compiler Characteristics): Add
5194 missing index entries.
5196 2007-09-11 Eric Blake <ebb9@byu.net>
5198 Centralize all system extensions checks.
5199 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
5200 from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
5201 (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
5202 AC_USE_SYSTEM_EXTENSIONS.
5203 (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
5204 (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
5205 * doc/autoconf.texi (Posix Variants): Reword this section,
5206 emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
5207 rather than a series of system-specific checks.
5208 (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
5210 * NEWS: Document this change.
5212 Reported by Martin Koeppe.
5214 2007-09-08 Eric Blake <ebb9@byu.net>
5216 Clean up obsolete macros references.
5217 * doc/autoconf.texi: Add anchors to support better
5219 (Particular Structures): Move obsolete macros descriptions...
5220 (External Software): Likewise.
5221 (Package Options): Likewise.
5222 (Obsolete Macros): ...to here. Add cross-references to
5223 documentation on replacements.
5224 * NEWS: Mention that these macros have been obsolete for a while
5225 now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
5227 Improve M4 path searching during configure.
5228 * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
5230 (_AC_PATH_PROG_FEATURE_CHECK): Rename...
5231 (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
5232 parameter, and kill side effects.
5233 (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
5234 (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
5235 * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
5237 (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
5238 allow bootstrapping with autoconf 2.61.
5239 * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
5240 * configure: Regenerate.
5241 * doc/autoconf.texi (Generic Programs): Document new macro.
5242 * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
5244 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
5245 * NEWS: Document the change.
5247 Reported by Hans Aberg.
5249 * doc/autoconf.texi (Generic Programs): Fix typo.
5251 2007-09-06 Eric Blake <ebb9@byu.net>
5253 * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
5254 :, and make it clear that optional @var{path} defaults to $PATH.
5255 (Erlang Compiler and Interpreter): Likewise.
5258 * doc/autoconf.texi: Avoid lines > 80 columns when possible.
5259 Reword some paragraphs to avoid overfull, underfull hbox
5260 warnings. Add index entries to avoid overfull vbox warnings.
5262 2007-09-05 Eric Blake <ebb9@byu.net>
5264 * NEWS: Adjust wording for AC_CONFIG_LINKS.
5265 Reported by Ralf Wildenhues.
5267 2007-09-03 Eric Blake <ebb9@byu.net>
5269 * NEWS: Document fixes that have been applied since 2.61a.
5272 * THANKS: Update, and convert to UTF-8 encoding.
5273 * AUTHORS: Likewise.
5275 2007-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5277 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
5278 names beginning with `-' again.
5280 2007-08-22 Stepan Kasal <kasal@ucw.cz>
5281 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5283 * doc/autoconf.texi (Defining Directories): Mention
5284 AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
5286 2007-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5288 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
5289 here, this macro is expanded by AC_INIT. Fixes 2.60 regression.
5290 * tests/base.at (configure arguments): New test.
5292 Report by Olaf Lenz.
5294 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
5295 arguments in comment.
5296 Report by Vincent Torri <vtorri at univ minus evry dot fr>.
5298 2007-08-20 Benoit Sigoure <tsuna@lrde.epita.fr>
5300 * doc/autoconf.texi (File System Conventions): Index the proper
5301 way of detecting absolute file names.
5303 2007-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5305 * build-aux/config.guess, build-aux/config.sub,
5306 build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
5307 build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
5308 doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
5309 * doc/autoconf.texi (GNU Free Documentation License): Adjust for
5310 sectioning change in fdl.texi.
5312 * bin/autoconf.as: Update --version output to match current GCS.
5313 * bin/autoheader.in: Likewise.
5314 * bin/autom4te.in: Likewise.
5315 * bin/autoreconf.in: Likewise.
5316 * bin/autoscan.in: Likewise.
5317 * bin/autoupdate.in: Likewise.
5318 * bin/ifnames.in: Likewise.
5320 2007-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5322 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
5323 file to itself if source and build trees coincide.
5324 * tests/torture.at (AC_CONFIG_LINKS and identical files): New
5326 Report by Sebastian Freundt <hroptatyr@gna.org>.
5328 2007-07-20 Paul Eggert <eggert@cs.ucla.edu>
5330 Reword the copyright notices to match what's suggested in GPLv3.
5331 In ChangeLog files, use more-permissive notice rather than GPL, as
5332 per usual GNU standards these days.
5334 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
5336 * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
5337 limitation reported by Leo Moisio in
5338 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
5340 2007-07-03 Paul Eggert <eggert@cs.ucla.edu>
5342 * COPYING: Update to GPLv3. All uses changed.
5344 2007-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5345 and Paul Eggert <eggert@cs.ucla.edu>
5347 * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
5350 2007-06-17 Noah Misch <noah@cs.caltech.edu>
5352 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
5353 * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
5354 `srcdir' as subdirectory of `builddir'.
5356 2007-06-13 Noah Misch <noah@cs.caltech.edu>
5358 * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
5359 * tests/autotest.at (srcdir propagation): New test.
5361 Reported by Mike Frysinger.
5363 2007-06-13 Paul Eggert <eggert@cs.ucla.edu>
5365 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
5366 Problem reported by Fred Kreek in
5367 <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
5368 * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
5369 (Macro Names, Defining Directories): Don't mention PATH as a name
5370 for a fully qualified file name, as this usage violates the GNU
5371 coding standards and we shouldn't recommend it.
5373 * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
5374 string and then assume shell builtins like "test" will work.
5376 2007-06-12 Noah Misch <noah@cs.caltech.edu>
5378 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
5379 not a valid shell variable name.
5380 * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
5381 * tests/torture.at (AC_SUBST: variable name validation): New test.
5382 Reported by Andreas Schwab.
5384 2007-06-04 Noah Misch <noah@cs.caltech.edu>
5386 * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
5387 works with both C and C++.
5389 2007-06-03 Noah Misch <noah@cs.caltech.edu>,
5390 Bruno Haible <bruno@clisp.org>
5392 * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
5395 2007-05-31 Paul Eggert <eggert@cs.ucla.edu>
5397 * doc/autoconf.texi (Particular Types): Give example of use for
5400 2007-05-29 Stepan Kasal <kasal@ucw.cz>
5402 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
5404 2007-05-28 Paul Eggert <eggert@cs.ucla.edu>
5406 * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
5407 define HAVE_INT8_T, and likewise for similar macros.
5408 Problem reported by Patrick Welche in
5409 <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
5411 2007-05-25 Noah Misch <noah@cs.caltech.edu>
5413 * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
5415 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
5417 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
5418 choice, since that's what we do with --enable-largefile etc.
5419 Redo indenting and assignments to simplify things a bit, and make
5420 the parens work with Emacs.
5422 * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
5423 in my previous change: AC_C_OPENMP -> AC_OPENMP. Reported by Bruno
5426 2007-05-21 Noah Misch <noah@cs.caltech.edu>
5428 * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
5429 * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
5431 2007-05-21 Bruno Haible <bruno@clisp.org>
5433 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
5434 * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
5435 * doc/autoconf.texi (Generic Compiler Characteristics): Move
5436 renamed AC_OPENMP documentation here, from "C compiler".
5437 Mention C++ and Fortran.
5439 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
5441 * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
5443 2007-05-21 Bruno Haible <bruno@clisp.org>
5445 * NEWS: Mention AC_C_OPENMP.
5446 * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
5447 * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
5448 Based in part on Steven G. Johnson's investigations for the AX_OPENMP
5449 macro in the Autoconf macro archive.
5451 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5453 * bin/autom4te.in: Fix typos.
5455 2007-05-16 Noah Misch <noah@cs.caltech.edu>
5457 * bin/autoconf.as: Handle `-' just like other input files.
5458 * bin/autom4te.in (parse_args): Pass `-' through.
5459 (handle_output): Skip the forbidden token search if we read from stdin.
5460 (up_to_date): Always treat stdin as out of date.
5461 * tests/tools.at (autoconf: input from stdin): New test.
5462 (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
5464 2007-05-16 Stepan Kasal <kasal@ucw.cz>
5466 * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
5467 parameters for AT_CLEANUP.
5468 * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
5470 2007-05-14 Paul Eggert <eggert@cs.ucla.edu>
5472 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
5473 * doc/autoconf.texi (C Compiler): Likewise.
5475 2007-05-14 Noah Misch <noah@cs.caltech.edu>
5477 * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
5479 2007-05-09 Stepan Kasal <kasal@ucw.cz>
5481 * doc/autoconf.texi: Direntry for "autoconf Invocation"
5482 renamed to "autoconf-invocation"
5484 * doc/autoconf.texi (Caching Results): The CACHE-ID variable
5485 in the examples should not use the internal "ac_" prefix.
5487 2007-05-05 Noah Misch <noah@cs.caltech.edu>
5489 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
5490 * doc/autoconf.texi ($@, case): Document Zsh limitations.
5492 2007-05-03 Stepan Kasal <kasal@ucw.cz>
5494 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
5495 Reorganize the comments before and in the macro.
5497 2007-05-02 Stepan Kasal <kasal@ucw.cz>
5499 * lib/autoconf/lang.m4, lib/autoconf/c.m4,
5500 lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
5501 section titles and other comments; no code change.
5503 2007-05-01 Kevin Ryde <user42@zip.com.au>
5505 * doc/autoconf.texi (Particular Programs): Typo
5506 @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
5508 2007-04-30 Paul Eggert <eggert@cs.ucla.edu>
5510 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
5511 'configure' will fail if the shell lacks proper support for shell
5512 functions. Suggested by RMS.
5514 2007-04-29 Paul Eggert <eggert@cs.ucla.edu>
5516 * doc/autoconf.texi (Limitations of Builtins): Correct the warning
5517 about Solaris /bin/printf '%010000x' 123. Problem reported by
5520 2007-04-28 Paul Eggert <eggert@cs.ucla.edu>
5522 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
5523 for a.* when searching for executables, as this prevents users
5524 from having files like a.c. Problem reported by Ralf Wildenhues in:
5525 http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
5526 This fixes a problem introduced on 2000-12-19.
5528 2007-04-26 Paul Eggert <eggert@cs.ucla.edu>
5530 * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
5531 /bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
5534 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
5536 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
5537 AC_CHECK_TYPE, AC_CHECK_TYPES.
5538 * doc/autoconf.texi (Generic types): C types must be type-names
5539 (the C terminology), not type-ids (the C++ term). C++ types
5540 must not be anonymous.
5541 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
5542 for C++; this drops support for anonymous struct and union types,
5543 which were problematic anyway.
5544 * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
5547 2007-04-12 Jim Meyering <jim@meyering.net>
5549 * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
5551 2007-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5553 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
5554 to prefer a link source from the build tree, if it exists.
5555 Report by Pallav Gupta <pallavgupta@gmail.com>.
5557 2007-04-11 Paul Eggert <eggert@cs.ucla.edu>
5559 * doc/autoconf.texi (Generic Types): Document the restrictions
5560 on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
5561 (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
5562 with objects too. Document the restrictions on its use.
5563 Document the restrictions on AC_CHECK_ALIGNOF's type argument.
5564 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
5565 For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
5566 works but the latter doesn't, then it's a valid type.
5567 This lets people use function types and so forth.
5568 For C++ there doesn't seem to be a simple solution, so leave it alone.
5569 (AC_CHECK_SIZEOF): Allow argument to be a variable.
5570 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
5571 AC_CHECK_TYPE; that wasn't documented or necessary.
5573 2007-04-11 Stepan Kasal <kasal@ucw.cz>
5575 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
5576 when cross-compiling.
5578 2007-04-11 Stepan Kasal <kasal@ucw.cz>
5580 * doc/autoconf.texi (External Software): Fix a typo in the
5583 2007-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5585 * doc/autoconf.texi (External Software, Package Options):
5586 Fix ambiguous wording. Report by Reuben Thomas <rrt@sc3d.org>.
5588 2007-04-06 Paul Eggert <eggert@cs.ucla.edu>
5590 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
5591 obsolescent. Suggested by Bruno Haible.
5592 * NEWS: Document this.
5594 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
5596 * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
5597 (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
5598 default still has the problem. Problem reported by Bruce Korb.
5600 2007-03-28 Stepan Kasal <kasal@ucw.cz>
5601 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5603 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
5604 comment in the generated config.status.
5606 2007-03-27 Stepan Kasal <kasal@ucw.cz>
5608 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
5610 2007-03-26 Paul Eggert <eggert@cs.ucla.edu>
5612 * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
5613 command and case statements to make it a bit clearer and describe
5616 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
5618 * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
5619 checks for unsigned long long int.
5621 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
5623 * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
5624 nonstandard grep R.E. escape sequences.
5626 2007-03-17 Jim Meyering <jim@meyering.net>
5628 * doc/autoconf.texi: Adjust grammar around use of "heuristics".
5629 (Limitations of Usual Tools): Also list \< and \>, and mention that
5630 HP-UX's grep, like the one from Solaris, does not support that syntax.
5632 2007-03-09 Stepan Kasal <kasal@ucw.cz>
5634 * doc/autoconf.texi (Specifying Names): `--host' does not
5635 change the build type.
5637 2007-03-05 Paul Eggert <eggert@cs.ucla.edu>
5639 * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
5640 suggests AC_CONFIG_HEADERS.
5641 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
5642 AC_CONFIG_HEADERS. Problem reported by
5645 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
5647 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
5648 Problem reported by Paolo Bonzini in:
5649 http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
5650 * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
5651 universal binaries. Problem reported by Elias Pipping.
5653 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
5655 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
5656 * doc/autoconf.texi (C Compiler): Document this. There is a new
5657 extra argument ACTION-IF-UNIVERSAL.
5658 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
5659 Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
5660 Reindent for sanity's sake.
5662 2007-02-24 Eric Blake <ebb9@byu.net>
5664 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
5666 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
5667 * lib/autotest/general.m4 (AT_INIT): Likewise.
5668 (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
5670 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5672 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
5673 status of rm so we know when it failed.
5674 If cleaning of test dir failed before running the test, warn.
5675 Output the line separator in verbose mode before the warning
5676 to make clear the warning belongs to the following test.
5678 2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
5680 * doc/autoconf.texi (Parentheses): Mention problem with (( in
5683 2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5684 and Paul Eggert <eggert@cs.ucla.edu>
5686 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
5687 errors introduced in last change.
5689 2007-02-07 Paul Eggert <eggert@cs.ucla.edu>
5691 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
5692 an actual carriage return. Use "ac_cr" to contain the actual
5694 * doc/autoconf.texi (Limitations of Usual Tools): Document problem
5695 with traditional Awk and begin.
5696 * tests/torture.at (Limitations of Builtins): Document the problem
5697 with Bash 2.03 printf.
5698 (Substitute and define special characters):
5699 Remove trailing white space. Work around a bug in Solaris 8 /bin/bash.
5701 2007-02-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
5703 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
5704 input from /dev/null in awk test, so even Solaris /usr/bin/awk
5705 will not wait for input with a script containing only a BEGIN
5708 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
5710 * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
5714 2007-02-02 Eric Blake <ebb9@byu.net>
5716 * NEWS: Update copyright.
5718 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
5720 * configure.ac: Update error message.
5721 * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
5722 Reported by Gary Vaughan and Jim Meyering, and problem analyzed
5724 http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
5726 2007-01-31 Eric Blake <ebb9@byu.net>
5728 * THANKS (people): Update.
5730 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
5732 * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
5734 (Shell Substitutions): Note problems with @{var:=value} etc.
5735 Add a new section for problems with @{#var} etc. Problem noted
5736 by Ralf Wildenhues. See:
5737 http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
5739 2007-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5741 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
5742 AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
5743 trace, if a package uses AC_PROG_MKDIR_P explicitly. The actual
5744 substitution will still be done by the special code.
5745 Report by Jim Meyering.
5747 * doc/autoconf.texi (File System Conventions): Mention that
5748 $PATH_SEPARATOR is for the build system only.
5749 Report by Keith Marshall.
5751 2007-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5753 * doc/autoconf.texi (Setting Output Variables): Mention that
5754 all non-NUL characters are ok in substituted values.
5755 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
5756 (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
5757 carriage return for $AWK, needed for BSD awk.
5758 * tests/torture.at (Substitute and define special characters):
5759 Test all 8 bit non-NUL characters.
5760 Report against Automake by Patrick Welche.
5762 2007-01-15 Stepan Kasal <kasal@ucw.cz>
5764 * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
5766 2007-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5768 * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
5769 early on the reader side, drop stderr of the input to avoid
5770 `broken pipe' error output; this may happen even with shell
5771 builtin `echo' of some bash versions. Reports by Ian Macdonald
5772 <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
5774 2007-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5776 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
5777 separate items of `ac_user_opts', to avoid long lines.
5778 (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
5780 2007-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5782 * doc/autoconf.texi: Fix some typos.
5784 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
5786 Fix some wording problems noted by Paolo Bonzini in:
5787 http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
5788 * doc/autoconf.texi (Signed Overflow Examples): Give more
5789 discussion about the allow_superuser_privileges example,
5790 and change it a bit to make things clearer.
5791 (Optimization and Wraparound): Clarify whether the compiler
5792 will generate an infinite loop for the example derived from
5793 Autoconf's mktime test.
5794 (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
5795 Also, clarify unsigned multiplication overflow.
5797 2007-01-04 Eric Blake <ebb9@byu.net>
5799 * bin/Makefile.am (RELEASE_YEAR): New macro.
5800 (edit): Use it to supply correct copyright year to scripts.
5801 * bin/autoconf.as (version): Use it.
5802 * bin/autoheader.in ($version): Likewise.
5803 * bin/autom4te.in ($version): Likewise.
5804 * bin/autoreconf.in ($version): Likewise.
5805 * bin/autoscan.in ($version): Likewise.
5806 * bin/autoupdate.in ($version): Likewise.
5807 * bin/ifnames.in ($version): Likewise.
5809 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
5811 * doc/autoconf.texi (Integer Overflow): Revised based on today's
5812 feedback. The most important changes document what happens when
5813 you convert an out-of-range value to a signed integer type, and
5814 say that (sum < a) != (b < 0) reliably detects overflow when sum =
5817 * doc/autoconf.texi (Integer Overflow): Greatly expand and
5818 rewrite, taking notions from the recent discussion on the gcc and
5819 autoconf mailing lists; please see
5820 http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
5821 and follow the many links.
5822 (Integer Overflow Basics, Signed Overflow Examples):
5823 (Optimization and Wraparound, Signed Overflow Advice):
5824 (Signed Integer Division): New sections.
5826 2006-12-28 Steven G. Johnson <stevenj@alum.mit.edu>
5828 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
5829 preprocessor macro arguments in traced name.
5830 * doc/autoconf.texi (Defining symbols): Document longstanding
5831 support for AC_DEFINE-ing macros with arguments, and document
5832 behavior when the same variable has multiple AC_DEFINEs.
5833 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
5834 old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
5835 macros directly, giving much shorter and simpler code.
5837 2006-12-28 Malcolm Purvis <malcolmp@xemacs.org> (trivial change)
5839 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
5840 space before "$ac_configure_args" to prevent a 'config.status
5841 --recheck' failure if ac_configure_args doesn't contain a leading
5842 space. This works around a problem with the XEmacs configure.ac,
5843 which uses the (undocumented) ac_configure_args variable
5844 inconsistently with Autoconf.
5846 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
5848 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
5849 Include <limits.h>, and use its INT_MAX to rewrite the
5850 j loop so that it does not overflow 'int'. Problem reported by
5852 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
5853 Play it safe by shifting left by 1 rather than multiplying by 2,
5854 as GCC is less likely to optimize this away when the value
5855 is signed (when it assumes overflow leads to undefined behavior).
5856 Also, don't assume time_t uses two's complement.
5858 2006-12-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5860 * tests/torture.at (Substitute a 2000-byte string): Avoid using
5861 a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
5862 dumps core on it. Report by Tim Rice.
5864 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
5866 * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
5867 --disable-option-checking to --help output even when
5868 AC_PRESERVE_HELP_ORDER is not used.
5869 (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
5870 --with argument, rather than argument with [-.] replaced by
5872 * NEWS: Fix typo in previous change; the news was in the
5875 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
5877 * NEWS: Warnings are now generated by default for unknown
5878 --enable-* and --with-* options.
5879 * doc/autoconf.texi (Option Checking): Renamed from
5880 (Configure Option Checking). Tighten up the wording a bit.
5881 (External Software, Package Options): Cross-reference to Option
5882 Checking, and use this to shorten our section.
5883 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
5884 "$x" to test "x$foo" != x.
5885 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
5886 Don't warn if $enable_option_checking is "no".
5887 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
5888 ac_unrecognized_opts to the empty string.
5889 Don't echo the unrecognized opts, as this might mishandle
5890 backslashes or leading -.
5891 (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
5892 usage next to the other --disable-FEATURE options in the
5895 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
5897 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
5898 (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
5899 Print warning for unrecognized --with and --enable options
5900 (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
5901 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
5902 Disable option checking when subdirs are configured.
5903 (AC_OUTPUT): If warnings are enabled, print warning about
5904 unrecognized --with and --enable options at the end of
5905 the configure output (as well as at the beginning).
5906 * doc/autoconf.texi (Option Checking): New node.
5907 Document new option warning functionality.
5909 2006-12-16 Eric Blake <ebb9@byu.net>
5911 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
5912 * NEWS: Start news for current version.
5914 2006-12-15 Paul Eggert <eggert@cs.ucla.edu>
5916 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
5917 Define HAVE_GETMNTENT to 1, not to the empty string.
5918 Problem originally reported by Jochen Friedrich in
5919 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
5921 This change prompted by a problem report by Andrey Simonenko in
5922 <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
5923 * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
5924 object-like macros only, in the traditional portable character
5926 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
5927 Warn about attempts to define things that are not identifiers.
5928 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
5929 awful hack that AC_DEFINEd macro names containing parentheses.
5931 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
5933 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
5934 too drastic, even if Texinfo in theory requires it for info mode.
5936 (config.status Invocation): Renamed back from Recreating a
5938 (Obsolete config.status Use): Renamed back from Obsolete Recreation.
5939 (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
5941 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5943 * NEWS: Version 2.61a.
5945 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
5946 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5948 * NEWS: Document changes with echo and printf, and the lack
5949 of limits on the total size of multi-line values of substituted
5950 variables, and the AC_FUNC_FSEEKO fix.
5952 2006-12-10 Paul Eggert <eggert@cs.ucla.edu>
5954 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
5955 Writing configure.ac.
5956 (Autoconf Input Layout): Renamed from configure.ac Layout.
5957 (Recreating a Configuration): Renamed from config.status Invocation.
5958 (Obsolete Recreation): Renamed from Obsolete config.status Use.
5959 (acconfig Header): Renamed from acconfig.h.
5960 (20th-century Autoconf 2): Renamed from Autoconf 2.13.
5961 (Writing Testsuites): Renamed from Writing testsuite.at.
5962 (Autom4te Cache): Renamed from autom4te.cache.
5964 * BUGS: Remove mention of VPATH problem, since it's now documented
5965 not to be a bug in the Autoconf build procedure itself, but rather
5966 a problem with the proprietary `make' programs.
5968 * doc/autoconf.texi (Build Directories): Add a cross reference
5971 * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
5972 * doc/standards.texi: Sync from gnulib.
5974 * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
5975 * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
5976 * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
5977 generated automatically.
5979 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
5981 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
5982 C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses
5983 the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
5985 2006-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5987 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
5988 `CEOF$ac_eof' special marker, the awk script cannot contain a
5989 line matching `^CEOF', so this is not needed any more.
5990 * tests/torture.at (Substitute a newline): Expose the `%!_!# '
5991 special marker in the test.
5993 2006-12-06 Stepan Kasal <kasal@ucw.cz>
5995 * tests/tools.at (autom4te preselections): Use `find -newer';
5996 remove one of the sleeps.
5998 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
5999 more readable, using ...
6000 (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
6002 * doc/autoconf.texi (autoheader Invocation): Do not double-
6003 quote the parameter of `AH_BOTTOM' in the example.
6005 2006-12-05 Stepan Kasal <kasal@ucw.cz>
6007 * doc/autoconf.texi (Configuration Headers): Remove the
6008 example with multiple input files.
6009 (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
6010 multiple input files.
6012 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6014 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
6015 creating the awk substitution script, handle one input line at a
6016 time, so that the maximum length of a substituted (multi-line)
6017 value is not limited by the size of the sed pattern space.
6018 The trade-off is a slightly repetitive sed script.
6019 * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
6020 can only have up to 7 characters, due to Solaris 10 /bin/sed.
6021 * tests/torture.at (Substitute a 2000-byte string): Increase the
6022 test with several long lines, they should not be caught by sed
6025 * tests/tools.at (autom4te preselections): New test, to flag
6026 entries missing from autom4te.cfg.
6027 Report by David Byron <dbyron@hheld.com>.
6029 * tests/torture.at (Substitute a 2000-byte string): Actually use
6030 AC_PROG_AWK, so the last change works as intended.
6031 (Substitute and define special characters): Likewise.
6032 (Substitute a newline): Likewise.
6034 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
6035 instead of `awk' consistently.
6036 (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
6037 * tests/torture.at (Torturing config.status): Test both the
6038 result of AC_PROG_AWK and plain awk.
6039 (Substitute a 2000-byte string): Likewise.
6040 (Substitute and define special characters): Likewise.
6041 (Substitute a newline): Likewise.
6043 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
6045 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
6046 can be assigned to a function pointer. Problem reported by
6047 Peter Palfrader in <http://bugs.debian.org/401377>. Based on
6048 part of a patch by Ralf Wildenhues in that same bug report.
6050 2006-12-01 Paul Eggert <eggert@cs.ucla.edu>
6052 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
6053 * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
6055 2006-12-01 Eric Blake <ebb9@byu.net>
6057 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
6058 cross-compiling from cygwin to mingw.
6059 Reported by Bob Rossi. This resurrects the 2000-11-30 patch to
6060 aclang.m4, which was mistakenly removed in the 2001-09-17 patch
6061 to lib/autoconf/c.m4.
6063 2006-12-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6065 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
6066 string for more reliable failure. Wrap the entire test that
6067 causes the broken Solaris printf to dump core, in a subshell,
6068 so the segmentation fault message is reliably suppressed.
6069 Fix shell expansion errors by using /usr/ucb/echo always;
6070 avoid an error on systems without it by another subshell.
6071 Avoid m4 expansion of `$1'. Set the zeroth argument of the
6072 subshell-$as_echo to `as_echo', for better error message.
6074 2006-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6076 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
6077 `BASH_SOURCE' contain a newline, set them to empty, as they may
6080 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
6082 Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
6083 years and is too hard to maintain now. The last straw was
6084 reported by Jerker Baeck in
6085 <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
6086 * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
6087 * doc/autoconf.texi (Particular Functions): Move
6088 AC_FUNC_SETVBUF_REVERSED from here...
6089 (Obsolete Macros): ... to here. Say that it does nothing now.
6090 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
6091 Turn into (almost) a no-op.
6093 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
6095 Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
6096 These macros are obsolescent and new applications shouldn't need them.
6097 * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
6098 (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
6099 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
6100 (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
6101 (AC_FUNC_VPRINTF): Likewise.
6102 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
6103 (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
6104 * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
6106 * doc/autoconf.texi (Setting Output Variables): Mention that
6107 @VAR1@VAR2 has unspecified behavior. Problem reported by
6109 * NEWS: Mention this.
6111 * Makefile.am: Put only a single '#' into the copyright notice,
6112 so that it's also present in the output file. Standardize wording
6113 in makefile copyright notices to match GNU coding standards.
6114 * bin/Makefile.am: Likewise.
6115 * doc/Makefile.am: Likewise.
6116 * lib/Makefile.am: Likewise.
6117 * lib/freeze.mk: Likewise.
6118 * lib/autoconf/Makefile.am: Likewise.
6119 * lib/autoscan/Makefile.am: Likewise.
6120 * lib/autotest/Makefile.am: Likewise.
6121 * lib/m4sugar/Makefile.am: Likewise.
6122 * man/Makefile.am: Likewise.
6123 * tests/Makefile.am: Likewise.
6124 * lib/emacs/Makefile.am: Remove copyright notice; it's just a
6127 2006-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6129 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
6130 in the sed script that mangles the awk script: delete up to the
6131 first exclamation mark only.
6132 * tests/torture.at (Substitute and define special characters):
6135 2006-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6137 Rewrite config files generation: avoid quadratic growth in
6138 the number of substituted variables by using awk instead of sed
6139 for the bulk of the substitutions.
6140 * NEWS: Mention this.
6141 * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
6142 forbidden in the output (and thus input) file.
6143 * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
6144 (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
6145 generate just one large awk script for substitutions,
6146 eliminating much of the earlier complexity, while adding some
6147 new complexity. Only expand the substitution templates at
6148 configure time, for smaller configure script size. If
6149 _AC_SUBST_FILES are used, test 'awk' for working getline support
6150 at config.status time. If absent, interpolate through the
6151 shell. The awk script was written with much help
6152 from Paolo Bonzini and Paul Eggert.
6153 (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
6154 (_AC_SED_FRAG_NUM): Likewise.
6155 (_AC_SUBST_CMDS): Renamed from...
6156 (_AC_SED_CMDS): ...this.
6157 (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
6158 * tests/torture.at (Substitute a 2000-byte string): Also
6159 substitute a line with 1000 words, and a variable with several
6161 (Substitute and define special characters): Test awk special
6162 characters, and put substitution input strings `@foo@' in the
6163 output, to test that no recursion happens; test several other
6164 combinations from Paolo Bonzini.
6166 2006-11-25 Paul Eggert <eggert@cs.ucla.edu>
6168 * lib/autotest/general.m4 (AT_INIT): Undo recent changes
6169 that replaced echo with AS_ECHO where this wasn't necessary.
6170 Problem reportd by Ralf Wildenhues.
6171 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
6172 where "/usr/bin/printf '%s\n' S" dumps core if S is long.
6173 This is Sun bug 4206210. Problem reportd by Ralf Wildenhues.
6175 2006-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6177 * lib/freeze.mk (GREP): Removed, no need to initialize this.
6179 2006-11-21 Paul Eggert <eggert@cs.ucla.edu>
6181 * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
6182 that traditional Awk lacks 3-arg "split". It has it.
6183 Mention that FS must be a single character, and a few other
6184 99-byte limits of traditional Awk.
6185 Mention that if (i in a) doesn't work with traditional Awk.
6187 2006-11-18 Paul Eggert <eggert@cs.ucla.edu>
6189 * tests/autotest.at (BSx641-newline in command):
6190 (BS-BS-newline in command, BSx640-newline in command):
6191 (Newline-CODE-BS-newline in command):
6192 (Single-quote-BS-newline in command):
6193 (Single-quote-newline-BS-newline in command):
6194 Use printf '%s\n' instead of echo, for portability to hosts
6195 where echo interprets backslashes. This will break on hosts
6196 that lack printf, but for now let's assume all such hosts
6197 are dead (if not, we should get reports of test failures).
6199 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
6201 'echo' has some portability problems, when given a first argument
6202 with a leading '-', or when given any argument containing '\'.
6203 Avoid using 'echo' in these cases.
6204 * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
6205 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
6206 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
6207 * lib/autotest/general.m4 (AT_INIT): Likewise.
6208 * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
6209 argument might be unportable.
6210 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
6211 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
6212 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
6213 (_AC_FC_LIBRARY_LDFLAGS): Likewise.
6214 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
6215 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
6216 (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
6217 (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
6218 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6219 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
6220 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
6221 (AC_PROG_MAKE_SET): Likewise.
6222 * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
6223 (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
6224 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
6225 (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
6226 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
6227 (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
6228 (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
6229 * bin/autoconf.as: Redo verbose flag implementation, as the old
6230 scheme wouldn't work with AS_ECHO.
6231 * lib/autotest/general.m4 (AT_INIT): Likewise.
6232 * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
6233 Don't use ECHO_T, since ECHO_N is now reliable.
6234 * lib/autotest/general.m4 (AT_INIT): Likewise.
6235 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
6236 rather than using a here-document to put the script into a file.
6237 (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
6239 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
6240 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
6241 AS_ECHO_N rather than ECHO_N and ECHO_C. This doesn't fix any
6242 bug, but we might as well stop using ECHO_N and ECHO_C internally.
6243 * lib/autotest/general.m4 (AT_SETUP): Likewise.
6244 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
6245 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6246 (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
6247 operand, as AS_ECHO requires. Avoid double file name expansion.
6248 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
6249 Don't set as_nl, since _AS_ECHO_PREPARE does that now.
6250 (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
6251 (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
6252 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
6253 Double-quote strings that would otherwise contain M4 comments.
6254 * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
6256 * configure.ac (AC_INIT): Bump to 2.61a.
6259 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
6263 * configure.ac (AC_INIT): Bump to 2.61.
6266 * tests/autotest.at (Macro with backslash in a test title):
6267 Comment out for now, as this tests neither fails nor passes
6268 reliably. Problem reported by Ralf Wildenhues.
6270 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
6272 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
6273 in previous change, which caused test failures.
6275 2006-11-16 Stepan Kasal <kasal@ucw.cz>
6277 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
6278 code for --enable, --disable, --with, and --without to...
6279 (_AC_INIT_PARSE_ENABLE): ... a new macro.
6280 * doc/autoconf.texi (Package Options):
6281 * NEWS: Document that AC_ARG_ENABLE allows dots, too.
6283 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
6285 Import these changes from config via gnulib:
6287 2006-11-15 Ben Elliston <bje@gnu.org>
6289 From Josselin Mouette <joss@debian.org>:
6290 * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
6292 2006-11-08 Ben Elliston <bje@gnu.org>
6294 * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
6296 2006-11-07 Steve Woodford <scw@NetBSD.org>
6297 Ben Elliston <bje@gnu.org>
6299 * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
6300 * build-aux/config.sub (sh5el): New basic_machine.
6303 Import this change from coreutils:
6305 2006-02-13 Jim Meyering <jim@meyering.net>
6307 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
6310 Import this change from gnustandards via gnulib:
6312 2006-11-15 Karl Berry <karl@gnu.org>
6314 * standards.texi: core -> memory, throughout.
6315 (CPU Portability): show correct example of calling write
6316 on a char value; thanks to Paul Eggert for the code.
6317 Both of these suggestions from Eugene Y. Vasserman.
6320 Import these changes from texinfo via gnulib:
6322 2006-11-08 Karl Berry <karl@gnu.org>
6324 * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
6325 as well as pdf images, since they are supported in pdftex with
6328 2006-11-05 Karl Berry <karl@gnu.org>
6330 * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
6332 2006-11-13 Paul Eggert <eggert@cs.ucla.edu>
6334 * NEWS: Document the AC_ARG_WITH change.
6336 2006-11-13 Bruno Haible <bruno@clisp.org>
6338 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
6339 options, transliterate also dots to underscores.
6340 (_AC_ENABLE_IF): Transliterate also dots to underscores.
6341 * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
6342 first argument may also contain dots.
6344 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
6346 * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
6347 benefit of platforms like Solaris+GCC where it is common to have a
6348 non-working g++ installation.
6350 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6351 and Joel E. Denny <jdenny@ces.clemson.edu>
6352 and Paul Eggert <eggert@cs.ucla.edu>
6354 * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
6355 and non-portable sed scripts, and use $CONFIG_SHELL when invoking
6358 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
6360 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
6361 ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
6362 Imported from a similar patch to gnulib by Bruno Haible.
6364 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
6366 * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
6367 * doc/autoconf.texi (C Compiler): Document them.
6368 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
6369 New macros, taken from gnulib.
6371 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
6373 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6374 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6377 2006-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6379 * tests/torture.at (Configuring subdirectories): Do not skip
6380 Automake 1.10 nor future Automake 11.1 (sic).
6382 2006-10-26 Joel E. Denny <jdenny@ces.clemson.edu>
6383 and Stepan Kasal <kasal@ucw.cz>
6385 Handle special characters in test case titles correctly.
6386 * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
6388 (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
6389 * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
6390 argument. Extend to check titles printed by ./micro-suite and
6391 ./micro-suite -l and the title in micro-suite.log.
6392 (Backquote in a test title,
6393 Single-quote in a test title,
6394 Double-quote in a test title): Don't expect failure anymore.
6395 (Backslash in a test title): Put a non-whitespace character after the
6396 backslash so that Bourne shells might actually see it as an escape
6398 (Brackets in a test title,
6399 Pound in a test title,
6400 Comma in a test title,
6401 Quoted Macro in a test title,
6402 Macro in a test title,
6403 Macro with single-quote in a test title): New tests.
6404 (Macro with backquote in a test title,
6405 Macro with double-quote in a test title,
6406 Macro with backslash in a test title): New tests expected to fail.
6407 * tests/torture.at (#define header templates): M4-quote this title in
6408 AT_SETUP call so that no M4 code is commented inadvertently somewhere.
6409 The visible effect was a stray [] in the testsuite output.
6411 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6413 * doc/autoconf.texi (Limitations of Builtins): Do not invoke
6414 `trap ... 0' inside a function, for AIX sh.
6416 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
6418 * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
6419 since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
6420 5363) simply issues a warning when dividing by zero at compile
6421 time. Problem reported by Elias Pipping.
6423 2006-10-26 Eric Blake <ebb9@byu.net>
6426 * doc/autoconf.texi (Evaluation Macros): Improve the example to
6427 show effect on macros that expand with commas.
6428 Reported by Joel E. Denny.
6430 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6431 Also work with M4 1.4.8.
6433 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
6435 * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
6438 2006-10-25 Stepan Kasal <kasal@ucw.cz>
6440 * tests/tools.at (autom4te --force): New test, verifies that
6441 `--force' always rewrites the output file.
6443 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
6445 * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
6446 needs operands on NetBSD 2.0.2. Problem reported by Bruno Haible.
6448 2006-10-24 Stepan Kasal <kasal@ucw.cz>
6450 * tools/trace.at (autoconf --trace: user macros): Test `$%'.
6452 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
6454 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6455 If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
6456 AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
6457 reported by Nelson H. F. Beebe for Coreutils 6.4.
6459 * tests/tools.at (autoconf --trace: user macros): Remove test
6460 for tracing multiline macros, since m4 1.4.7a uses a different
6461 way to number lines. Problem reported by Ralf Wildenhues.
6463 2006-10-24 Stepan Kasal <kasal@ucw.cz>
6465 * bin/autom4te.in (handle_m4): Do not redirect stdin to
6466 /dev/null since the heuristics for interactive behaviour was
6469 * bin/autom4te.in: With --force, always refresh the output
6470 file. Problem reported by Greg Schafer <gschafer@zip.com.au>.
6472 * bin/autoconf.as: Fix the verbose message at the end.
6474 2006-10-23 Paul Eggert <eggert@cs.ucla.edu>
6476 * configure.ac (AC_INIT): Bump to 2.60c.
6479 2006-10-22 Paul Eggert <eggert@cs.ucla.edu>
6481 * NEWS: Version 2.60b.
6483 Import this change from Texinfo:
6484 2006-10-15 Karl Berry <karl@gnu.org>
6485 * build-aux/texinfo.tex: automake 1.10
6487 * NEWS: Remove AC_CACHE_CHECK_INT.
6488 * doc/autoconf.texi (Caching Results): Likewise.
6489 * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
6490 AC_CACHE_CHECK_INT, since it's no longer public.
6491 * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
6492 * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
6494 2006-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6496 * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
6498 2006-10-19 Eric Blake <ebb9@byu.net>
6500 * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
6501 (m4_maketemp): Avoid warnings with M4 1.9a.
6502 * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
6504 * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
6507 2006-10-16 Eric Blake <ebb9@byu.net>
6509 * doc/autoconf.texi (Setting Output Variables): Fix typo.
6511 * bin/autoconf.as (version): Reword to match GNU Coding
6513 * bin/autoheader.in (version): Likewise.
6514 * bin/autom4te.in (version): Likewise.
6515 * bin/autoreconf.in (version): Likewise.
6516 * bin/autoscan.in (version): Likewise.
6517 * bin/autoupdate.in (version): Likewise.
6518 * bin/ifnames.in (version): Likewise.
6520 2006-10-14 Stepan Kasal <kasal@ucw.cz>
6522 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
6523 looking for special shell characters.
6524 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
6525 macro defined by AS_VAR_PUSHDEF before passing it as a
6527 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
6528 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
6529 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
6530 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
6531 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
6533 * lib/autotest/general.m4 (AT_INIT): Quote parameters of
6535 * tests/m4sh.at (AS_LITERAL_IF): New test.
6537 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
6539 (Imported from Automake.)
6540 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
6541 which incorrectly sets the mode of an existing destination
6542 directory. In some cases the unpatched install-sh could do the
6543 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
6544 system. We hope this is rare in practice, but it's clearly worth
6545 fixing. Problem reported by Alex Unleashed in
6546 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
6547 Also, don't bother to check for -m bugs unless we're using -m;
6548 suggested by Stepan Kasal.
6550 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
6552 Import this change from Automake:
6554 2006-08-23 Alexandre Duret-Lutz <adl@gnu.org>
6555 * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
6556 is enabled by default with gnu and gnits strictness.
6557 Report from Bruno Haible.
6559 2006-03-10 Alexandre Duret-Lutz <adl@gnu.org>
6560 * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
6561 gnu and gnits modes.
6563 Import this change from Config:
6565 2006-09-20 Ben Elliston <bje@gnu.org>
6566 * build-aux/config.sub (score, score-*): New.
6568 Import this change from Gnulib:
6570 2006-09-16 Karl Berry <karl@gnu.org>
6571 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
6572 to avoid sectioning errors.
6574 Import these changes from Texinfo:
6576 2006-10-04 Karl Berry <karl@gnu.org>
6577 * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
6578 (\quoteexpand): rename to \rquoteexpand.
6579 (\codequoteleft): new def, to look for @set codequotebacktick.
6580 (\lquoteexpand, \quoteexpand): new defs.
6581 (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
6582 (\code): must use new \...Char values, since now ` is active.
6584 2006-08-26 Karl Berry <karl@gnu.org>
6585 * build-aux/texinfo.tex (\textdegree): New command.
6587 2006-08-12 Karl Berry <karl@gnu.org>
6588 * build-aux/texinfo.tex (error \box0): smaller font.
6590 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6592 * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
6594 2006-10-13 Stepan Kasal <kasal@ucw.cz>
6596 * doc/autoconf.texi (Autoheader Macros): Warn that the text
6597 added to the template can get mangled.
6599 2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6601 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
6602 include the default headers, and redefine obstack_chunk_alloc
6603 and obstack_chunk_free. Fixes false failure with glibc.
6605 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
6607 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
6608 for backward compatibility with Libtool 1.5.22. Problem reported
6611 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6613 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
6615 Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
6617 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
6619 * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
6620 the NonStop platform.
6621 * doc/autoconf.texi (Posix Variants): Likewise.
6622 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6624 * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
6625 (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
6626 (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
6627 Use a better substitute, by inspecting the output of "ls"
6628 rather than just using ":".
6629 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
6630 rather than AS_EXECUTABLE_P, since we needn't worry about
6631 non-regular files here.
6633 * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
6634 due to configuration hassles with this. See Tonya Underwood's report
6635 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
6636 * doc/autoconf.texi (Special Shell Variables): Likewise.
6638 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
6639 Stepan Kasal <kasal@ucw.cz>
6641 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
6642 (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
6644 2006-10-11 Stepan Kasal <kasal@ucw.cz>
6646 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
6647 initialization which is not inherited through the environment
6648 (_AS_BOURNE_COMPATIBLE): ... to this new macro.
6649 (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
6651 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
6653 * doc/autoconf.texi (Limitations of Usual Tools): Describe
6654 problems with mkdir -p -m.
6656 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
6658 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
6659 comment about ac_cpp_err; it was incorrect, and anyway
6660 ac_cpp_err is being removed below.
6661 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
6662 set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
6663 are both 'yes'. In fact, don't bother setting ac_cpp_err at all;
6665 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
6666 with werror_flag and conftest.err and so forth. This is more
6667 compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
6668 and anyway the user shouldn't normally want to see this gorp logged.
6669 Problem reported by Ralf Wildenhues.
6670 * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
6671 empty, not 'no', since the rest of the code uses 'test -z'.
6673 2006-10-04 Paul Eggert <eggert@cs.ucla.edu>
6675 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
6676 Use a single call to AC_DO_TOKENS rather than multiple, for
6678 (_AC_LINK_IFELSE): Test that resulting file is executable.
6679 Problem reported by mwoehlke in
6680 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
6682 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
6683 than creating a file to use with test -x; this is much faster.
6685 2006-10-02 Bruno Haible <bruno@clisp.org>
6687 * lib/autom4te.in (Automake-preselections): Add
6688 AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
6690 2006-09-27 Stepan Kasal <kasal@ucw.cz>
6692 * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
6693 standard error, `experr' should be used, not `expout'.
6695 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
6697 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
6698 fseeko testing program twice; just use the earlier result.
6699 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6700 Set cache var to 'unknown' (not 'no') if leaving the macro unset
6701 still doesn't let the program compile.
6702 (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
6705 * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
6706 (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h. Just
6707 include it, without including anything else.
6708 (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
6710 (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
6712 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6714 * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
6715 `error.h', and include it, for a `error_at_line' prototype.
6716 Use a nonempty format string in the link test.
6717 * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
6718 for a declaration of wait3.
6720 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
6722 * NEWS: AC_CHECK_DECL now also works with aggregate objects.
6723 * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
6724 can apply to constants too, and that it checks for macro defns.
6725 * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
6726 and simply cast the identifier to void. This handles structure
6727 values. Problem reported by Ralf Wildenhues.
6728 * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
6730 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6732 * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
6733 structure, and function symbols.
6735 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6737 * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
6740 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
6742 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
6744 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6746 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
6747 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6749 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
6750 warnings (uninitialized value).
6751 (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
6753 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
6755 (AC_STRUCT_TM): Likewise, avoid unused variables.
6757 2006-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6759 * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
6760 (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
6761 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
6762 * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
6763 Report by Olly Betts.
6765 2006-09-19 Eric Blake <ebb9@byu.net>
6767 * m4/m4.m4: Change copyright.
6768 * configure: Regenerate.
6769 * Makefile.in: Likewise.
6770 * bin/Makefile.in: Likewise.
6771 * doc/Makefile.in: Likewise.
6772 * lib/Makefile.in: Likewise.
6773 * lib/Autom4te/Makefile.in: Likewise.
6774 * lib/autoconf/Makefile.in: Likewise.
6775 * lib/autoscan/Makefile.in: Likewise.
6776 * lib/autotest/Makefile.in: Likewise.
6777 * lib/emacs/Makefile.in: Likewise.
6778 * lib/m4sugar/Makefile.in: Likewise.
6779 * man/Makefile.in: Likewise.
6780 * tests/Makefile.in: Likewise.
6782 * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
6783 * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
6784 * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
6785 --error-output, to avoid warnings with M4 2.0.
6787 2006-09-19 Stepan Kasal <kasal@ucw.cz>
6789 * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
6790 consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
6791 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
6793 2006-09-15 Stepan Kasal <kasal@ucw.cz>
6795 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
6796 expansion of AC_CHECK_FUNCS.
6798 2006-09-14 Stepan Kasal <kasal@ucw.cz>
6800 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
6801 mistaken comment: the path has to be relative; do not use
6802 the path at runtime.
6804 2006-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6806 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
6807 argument to `--prefix' for sub-configure scripts.
6808 Pass `--silent' to sub-configure scripts.
6809 * tests/torture.at (Configuring subdirectories): Add tests
6811 * doc/autoconf.texi (Setting Output Variables): Fix example to
6812 not show `--silent' being passed to a `configure' re-run.
6814 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
6816 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
6817 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
6818 for the existence of the directory at configure-time. That's
6819 too late, anyway. Problem reported by Stefan Seefeld.
6821 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
6822 7.1.4 /usr/bin/posix/sh described by Tim Rice in
6823 <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
6825 2006-09-11 Stepan Kasal <kasal@ucw.cz>
6827 * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
6828 works with GNU M4 1.4.3 again; make the normalized form
6829 match the current m4 message; fix the description.
6830 * test/tools.at (autom4te cache): Adapt to the change.
6832 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6834 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
6835 to catch glibc bug 2821
6836 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6838 Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
6839 AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
6840 AC_CHECK_FUNCS. Don't check for stdlib.h, since we now
6843 2006-09-08 Stepan Kasal <kasal@ucw.cz>
6845 * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
6847 (Autoconf): ... here.
6848 (Autoscan-preselections): Delete.
6850 2006-09-07 Stepan Kasal <kasal@ucw.cz>
6852 * lib/autom4te.in (Automake-preselections): Preselect
6855 2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
6857 * doc/autoconf.texi (Preset Output Variables): srcdir and
6858 top_srcdir are not necessarily relative. Problem reported
6861 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6863 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
6864 f90/f95 because the latter drivers of AIX Fortran 9.1 do not
6865 accept files with extension `.f'. For consistency, also prefer
6867 * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
6870 2006-09-05 Romain Lenglet <rlenglet@users.forge.objectweb.org>
6872 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
6873 of ERLANG_LIB_VER_* variables.
6874 * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
6877 2006-09-03 Paul Eggert <eggert@cs.ucla.edu>
6878 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6880 * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
6881 bugs of Bash 2.01 and 2.05a.
6882 (Fortran Compiler): Document that AC_PROG_CC should be called
6883 before AC_PROG_FC, due to a bug in Autoconf.
6885 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6887 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
6888 old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
6889 except the first two arguments are reversed.
6890 * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
6891 (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
6892 caches nor outputs a diagnostic. Suggested by Bruno Haible.
6893 * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
6894 equivalent to the old AC_COMPUTE_INT.
6895 (AC_COMPUTE_INT): No longer caches or reports. New signature.
6896 All uses changed to AC_CACHE_CHECK_INT.
6897 * tests/base.at (AC_CACHE_CHECK_INT): New test.
6898 * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
6900 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6902 * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
6903 and AC_REPLACE_FNMATCH are now obsolescent in Autoconf. New
6904 programs should use their Gnulib counterparts.
6905 * doc/autoconf.texi (Particular Functions): Likewise.
6906 (Macro Names, testsuite Invocation): Replace uses of these
6907 obsolete macros with uses of non-obsolete macros.
6909 2006-08-29 Eric Blake <ebb9@byu.net>
6911 * configure.ac (AC_INIT): Bump to 2.60b.
6914 2006-08-28 Eric Blake <ebb9@byu.net>
6916 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
6917 mistakenly swapped on 2006-08-15.
6919 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6921 * NEWS: Version 2.60a.
6923 2006-08-25 Stepan Kasal <kasal@ucw.cz>
6925 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
6926 file created by the PGI compiler.
6928 2006-08-25 Noah Misch <noah@cs.caltech.edu>
6930 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
6933 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6935 Fix Lex library problem reported to us by Julio Garvia.
6936 * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
6937 for the default, which the user can override.
6938 * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
6940 (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
6941 didn't work if some values were cached but not others. Test for
6942 broken lex libraries like native ia64-hp-hpux11.22; see
6943 <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
6944 work around the problem by preferring an empty LEXLIB to -lfl or
6945 -ll. Let the user set LEXLIB='' to indicate no library needed.
6947 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
6949 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
6951 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6953 Rework to use more-modern build style.
6954 Many files are renamed; all uses of their names were changed.
6955 * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
6956 * .x-sc_useless_cpp_parens: New file.
6957 * build-aux/config.guess: Renamed from config/config.guess. Update.
6958 * build-aux/config.sub: Renamed from config/config.sub. Update.
6959 * build-aux/elisp-comp: Renamed from config/elisp-comp.
6960 * build-aux/install-sh: Renamed from config/install-sh. Update.
6961 * build-aux/mdate-sh: Renamed from config/mdate-sh.
6962 * build-aux/missing: Renamed from config/missing.
6963 * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update.
6964 * build-aux/vc-list-files: Renamed from config/vc-list-files.
6965 * config/Makefile.am: Removed.
6966 * config/mkinstalldirs: Removed.
6967 * config/move-if-change: Removed.
6968 * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice.
6969 * Makefile.am (SUBDIRS): Remove config.
6970 (ACLOCAL_AMFLAGS): Include from m4, not config.
6971 (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
6972 (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
6973 (autom4te-update): Rewrite with a loop. Get from gnulib, not automake.
6974 Fail if there's an error.
6975 * Makefile.cfg (move_if_change): Remove.
6976 (wget_files): Remove.
6977 (cvs_executable_files): New macro.
6978 (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi.
6979 (executable-update): Use $(cvs_executable_files).
6980 (local-checks-to-skip): Remove.
6981 * Makefile.maint: Merge from coreutils, plus add our own changes
6982 (gzip_rsyncable): New macro.
6984 (CVS_LIST): Use build-aux/vc-list-files.
6985 (VERSION_REGEXP): New macro.
6986 (local-checks-available): Add patch-check, $(syntax-check-rules),
6988 (syntax-check-rules): Compute dynamically.
6989 (sc_cast_of_x_alloc_return_value): Work even if no source files.
6990 (sc_cast_of_alloca_return_value): Likewise.
6991 (sc_prohibit_atoi_atof): Simplify regexp.
6992 (sc_no_if_have_config_h, sc_require_config_h):
6993 (sc_prohibit_assert_without_use,
6994 (sc_obsolete_symbols): Check for O_NDELAY.
6995 (sc_texi_notab): Remove.
6996 (sc-changelog): Don't make an exception for '----' lines.
6997 (.re-list): Remove, so we don't have a junk file behind.
6998 (sc_system_h_headers): Remove the need for .re-list.
6999 (sc_the_the): New rule.
7000 (sc_tight_scope): Simplify.
7001 (sc_trailing_blank): Renamed from sc_trailing_space.
7002 (longopt_re): New macro.
7003 (sc_two_space_separator_in_usage): New rule.
7004 (sc_unmarked_diagnostics): Look at all files under CVS.
7005 (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
7006 (news-date-check, changelog-check): Version is OK.
7007 (po-check): Look for lib files even if not in CVS.
7008 (copyright-check): Use $() not ``.
7009 (maintainer-distcheck): Do not depend on changelog-check.
7010 (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
7011 Also check for -Wpointer-arith.
7012 (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
7013 (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
7015 (announcement): Add --gpg-key-id arg.
7017 (move_if_change): Just use mv.
7018 (local_updates: Remove wget-update, po-update.
7019 (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
7020 (config.guess-url_prefix, config.sub-url_prefix): Remove.
7021 (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
7022 (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
7023 ($(get-targets)): Remove.
7024 (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
7025 (gnulib_repo): Renamed from automake_repo. Get from gnulib now.
7026 (cvs-update): Get from gnulib.
7027 (emut_upload_commands): gnupload is in build-aux now.
7028 (alpha beta major): Add changelog-check. Check version.
7029 * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
7030 (AC_CONFIG_FILES): Remove.
7031 * bin/autoconf.as: Add spaces to avoid distcheck warning.
7032 * config/announce-gen: Sync from coreutils.
7033 * doc/make-stds.texi: Sync from gnulib.
7034 * doc/standards.texi: Likewise.
7035 * man/Makefile.am: Adjust for config -> build-aux renaming.
7036 * tests/Makefile.am: Prefer $(FOO) to @FOO@.
7037 * tests/local.at: Adjust from config -> build-aux renaming.
7038 * tests/tools.at: Likewise.
7039 * tests/torture.at: Likewise.
7041 * NEWS: The C99 check now tests for vararg macros and 64-bit
7043 * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
7044 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
7045 64-bit preprocessor ints. Check for static initialization of
7046 long long. Remove unnecessary casts.
7048 2006-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7050 * doc/autoconf.texi (Particular Programs): Mention that
7051 @INSTALL@ and @MKDIR_P@ may vary for different output files.
7052 Reported by Alexandre Duret-Lutz.
7054 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
7056 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
7057 -lgcc?* and -lSystem, for Darwin/MacOS X. Problem reported by
7059 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
7061 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
7063 * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
7064 pacify insanely picky compilers. Problem reported by Eric Blake.
7066 * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
7067 longer supported by Sun.
7069 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7071 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
7072 rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
7073 -Wundef -Werror". Problem reported by David Fang in
7074 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
7075 * doc/autoconf.texi (Header Templates, Default Includes):
7076 (Particular Functions, Generic Functions, Header Portability):
7077 (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
7078 (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
7079 (Present But Cannot Be Compiled, Preprocessor Symbol Index):
7080 Prefer #ifdef to #if.
7081 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
7082 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
7083 (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
7084 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
7086 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
7087 (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
7088 * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
7089 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
7090 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
7091 S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
7094 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7096 * doc/autoconf.texi (Limitations of Usual Tools): Document sed
7097 problems with arg script text that doesn't end in newline, and
7098 with '-e a...'. Problems reported by Ralf Wildenhues.
7100 2006-08-12 Alexandre Julliard <julliard@winehq.org> (tiny change)
7102 * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
7103 check for libXt by a check for libX11.
7105 2006-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7107 * doc/autoconf.texi (config.status Invocation): Adjust according
7110 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7112 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
7113 --help' should mention that `--version' outputs configuration
7114 settings. Report by Bruno Haible.
7116 2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
7118 Fix test suite failures reported by Pierre in
7119 <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
7120 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
7121 the compiler created a file "b.out" when it didn't create anything
7123 * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
7124 Discard stderr too, when invoking the test script.
7126 2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
7128 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
7129 in the restoring of the werror flag.
7131 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7133 * doc/autoconf.texi (Volatile Objects): Be even a little
7134 less skeptical about "volatile", after discussion with
7135 Bruno Haible on bug-gnulib.
7136 (Limitations of Usual Tools): Warn about sed stripping
7137 leading white space from text. From Bruno Haible.
7139 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
7141 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
7142 compiler complains about it, even if things works after the
7143 complaint. Problem reported by Peter O'Gorman.
7145 * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
7146 CPPFLAGS, and LDFLAGS better. Problem reported by Bruno Haible.
7147 Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
7149 2006-07-17 Paul Eggert <eggert@cs.ucla.edu>
7151 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
7152 after -R regardless of host. Patrick Welche reports that this
7153 fixes things on NetBSD 3.99.
7155 * NEWS: Recommend M4 1.4.5.
7157 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7158 * tests/tools.at (autom4te cache): Update wording of diagnostic
7161 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
7163 * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
7164 under AC_C_VOLATILE.
7165 (Volatile Objects): Be a little less skeptical about what
7166 "volatile" means. Derived from thoughts by Ben Pfaff in
7167 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
7169 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7171 * doc/autoconf.texi: Fix some typos.
7173 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
7175 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7176 more globally, since the 2006-06-30 patch didn't suffice. Problem
7177 reported by Keith Marshall. Also, don't bother with builddir2,
7178 since it shouldn't be needed any more.
7180 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
7182 * doc/autoconf.texi (Generic compiler characteristics):
7183 Document AC_COMPUTE_INT. Fix wrong statements on Default
7184 Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
7186 * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
7187 (_AC_COMPUTE_INT): Add obsoletion warnings.
7188 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
7191 * NEWS: Document change.
7193 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
7195 * doc/autoconf.texi (Volatile Objects): New section.
7197 * NEWS: Document previous change.
7199 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
7201 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
7202 Require that long long int be at least 64 bits wide. C99 requires
7203 this and enough programs depend on it so we should check for it.
7204 Bruno Haible reports in
7205 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
7206 that long long int is 32 bits wide with some nonstandard compilers.
7207 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7209 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
7211 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
7212 to a nonexistent file, so that we don't have to worry about
7213 a local site configuration that doesn't use /usr/local.
7214 Problem reported by Keith Marshall in
7215 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
7217 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
7219 * doc/autoconf.texi: Be more consistent about using @acronym with
7220 "HP" and "HP-UX". Remove mention of OSF; the old version wasn't
7221 quite right (it talked about "OSF/Tru64", even though the
7222 operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
7223 and it even mentioned "OSF 4"!) and at this point there's little
7224 reason to talk about OSF any more, since it died in 1994.
7225 (Specific Compiler Characteristics): Simplify example of
7226 negative-size array.
7227 (File Descriptors): Reorder to make the text flow better.
7228 Remove joke about "appreciate the various levels"; I didn't get it.
7229 Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
7230 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
7231 (File Descriptors, Limitations of Usual Tools):
7232 Tone down the advice against renaming or removing open files.
7233 (Limitations of Usual Tools): Add a new section, on 'rm'.
7235 2006-06-26 Stepan Kasal <kasal@ucw.cz>
7237 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
7238 -lXt in LIBS, idea from Karsten Hopp; this was due since
7241 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
7242 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
7243 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
7244 (which belong to Xt, not X itself). See Debian bug 327655.
7246 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7248 * configure.ac (AC_INIT): Bump to 2.60a.
7251 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7255 * configure.ac, NEWS: Update.
7257 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7259 * config/texinfo.tex: Sync from upstream.
7261 * bin/autom4te.in (handle_traces): Transform the `@S|@'
7262 quadrigraph correctly in traces.
7264 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
7267 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
7268 datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
7270 * doc/autoconf.texi (Changed Directory Variables): New node,
7271 to document the whole `datarootdir' business a bit better.
7273 * tests/torture.at (datarootdir workaround): Extend test.
7274 Prompted by report by Alexandre Julliard.
7276 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
7278 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
7279 when using default mode of IBM C 6 for AIX. Problem and two-line
7280 fix reported by Larry Jones.
7282 2006-06-22 Alexandre Julliard <julliard@winehq.org>
7284 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
7285 about literal '${datarootdir}' if a definition is found in the
7288 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
7290 * NEWS: Use "M4" rather than "m4" when appropriate.
7291 Problem reported by Eric Blake.
7292 * doc/autoconf.texi: Likewise.
7293 Use @acronym around BSD, GCC, and GNU when appropriate.
7294 (Why GNU M4): Renamed from "Why GNU m4".
7295 (Redefined M4 Macros): Mention that Posix
7296 m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
7297 (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
7300 2006-06-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7302 * bin/autom4te.in (handle_output): Do not forbid the empty
7304 * tests/tools.at (autoconf: the empty token): New test.
7306 2006-06-20 Stepan Kasal <kasal@ucw.cz>
7308 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
7309 calls, so that we do not care whether they are LIFO or FIFO;
7310 in the m4_wrap, do not check which diversion is the topmost
7311 one, just check that the stack is balanced at the end.
7312 * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
7313 base diversion forever--pop the previous diversion before
7314 opening the new one; consequently, remove the m4_wrap call.
7315 * lib/autotest/general.m4 (AT_INIT): Likewise.
7316 * tests/m4sugar.at: Do not use
7317 m4_wrap([m4_diversion_pop([..])]), for educational purposes.
7319 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
7320 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7322 * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
7323 * doc/autoconf.texi (Redefined M4 Macros): Likewise.
7324 Rework example of m4wrap token-pasting trouble so that it doesn't
7325 care whether it's LIFO or FIFO.
7326 Fix some "contrary to"s that are awkward in English.
7328 2006-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7330 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
7331 to `yes' instead of `int$1_t' if the type is found, for more
7332 consistent configure output (where $1 is the number of bits).
7333 (_AC_TYPE_UINT): Likewise for `uint$1_t'.
7334 Suggested by Bruno Haible.
7336 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
7337 needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
7338 with system headers. Report by Bruno Haible.
7340 2006-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7342 * config/config.guess, config/config.sub: Sync from upstream.
7344 * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
7345 in order to avoid picking up an older installed frozen m4sh.m4f.
7346 Besides an outdated shell startup, this could have been created
7347 by an earlier M4 version with incompatible frozen file format.
7349 2006-06-16 Paul Eggert <eggert@cs.ucla.edu>
7351 * README: Recommend m4 1.4.4 instead of 1.4.3..
7352 * doc/autoconf.texi: Likewise.
7353 (Special Chars in Names): Say that $(.FOO) is portable, as
7354 suggested by Stepan Kasal.
7355 (Installation Directory Variables, Build Directories):
7356 (Automatic Remaking, Subdirectories, Fortran Compiler):
7357 (Making testsuite Scripts, Defining Directories):
7358 Quote variable usages better.
7359 (Making testsuite Scripts): Add clean-local rule to makefile
7360 snippet, by Eric Blake.
7361 (Installation Directory Variables): Fix table item font.
7362 Reword slightly to clarify. Generalize advice about
7363 not using special characters to include all file-related
7364 vars, not just VPATH.
7365 (Special Chars in Variables): Warn about special characters in
7367 (Assignments): Clarify default-value example as suggested by
7369 <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
7370 (Special Shell Variables): Note leading ./ or ../, as suggested
7372 (Limitations of Builtins): Under cd, warn about CDPATH.
7373 (The Make Macro MAKEFLAGS): Untabify. Problem reported by
7376 2006-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7378 * doc/autoconf.texi (Configuration Actions): Remove duplicate
7379 `@var', for texi2html.
7380 (Systemology): Some more word wrapping, for DVI output.
7381 (autom4te Invocation): The short option for `--melt' is `-M',
7384 2006-06-15 Paul Eggert <eggert@cs.ucla.edu>
7386 * doc/autoconf.texi: More formatting and English tweaks,
7387 many suggested by Ralf Wildenhues.
7388 Reword to avoid "@code{...}'s" and the like, since it's ugly
7389 with Emacs info mode. discontents -> woes.
7390 Put a few "will"s back. time stamp -> timestamp.
7391 side-effect -> side effect.
7393 2006-06-14 Paul Eggert <eggert@cs.ucla.edu>
7395 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
7396 Warn about $@ not persisting. Problem reported by Julien Danjou in
7397 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
7398 (Special Chars in Names): Renamed from Leading _ in Macro Names.
7399 Mention other special chars, too.
7401 2006-06-14 Eric Blake <ebb9@byu.net>
7403 * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
7405 2006-06-13 Paul Eggert <eggert@cs.ucla.edu>
7407 * doc/autoconf.texi: Some systematic minor improvements, as
7408 follows. Use "makefile" when talking about makefiles
7409 generally (which might be named "makefile" or "Makefile" or even
7410 "foo.mk"), "Makefile" when talking about a specific makefile
7411 called "Makefile". This unclutters the text from weird quotes
7412 (e.g., "`Makefile's" in info mode). Similarly, use "@var{foo}
7413 values" rather than "@var{foo}s" and similar constructs containing
7414 "}s". Use "Make rules" rather than "Makefile rules". Minor
7415 English-language improvements. Change the prefix "sub-" to "sub"
7417 Put blank lines around examples more consistently.
7418 Avoid "rather" and "very" as intensifiers.
7419 Avoid "will" as an auxiliary.
7420 (Limitations of Make): Split this node into....
7421 (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
7422 (Leading _ in Macro Names, Backslash-Newline-Newline):
7423 (Backslash-Newline Comments, Long Lines in Makefiles):
7424 (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
7425 (obj/ and Make, make -k Status, VPATH and Make):
7426 (VPATH and Double-colon, $< in Explicit Rules):
7427 (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
7428 (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
7429 New nodes, resulting from splitup of Limitations of Make.
7430 All cross-references changed. Raise the top node from
7431 a section to a chapter, and all subnodes accordingly.
7432 Redo the introductory wording to match the new organization.
7433 (Installation Directory Variables): Use an example that is
7434 closer to what Autoconf actually does. Mention that VPATH's
7435 value should not contain metacharacters or white space.
7436 (Fortran Compiler): Fix a VPATH bug in an example.
7437 (Leading _ in Macro Names): Mention that this problem is no longer
7438 of practical concern.
7439 (VPATH and Make): Reword the advice to make it clearer
7440 that Autoconf and Automake support VPATH in non-GNU make, but
7441 many packages have bugs in this area.
7442 ($< in Explicit Rules): Refer to Build Directories rather
7443 than using a (non-VPATH-safe) example.
7444 (Automatic Rule Rewriting): Mention the sort of disaster that
7445 can ensue with Solaris-style rule rewriting with VPATH.
7447 2006-06-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7449 * doc/install.texi (Compilers and Options): Weaken the
7450 suggestion to use GNU make for VPATH builds.
7452 * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
7453 AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
7455 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
7456 in regular expression.
7458 2006-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7460 * doc/autoconf.texi (Installation Directory Variables):
7461 Drop extra @samp from `@table @samp' item.
7462 (Limitations of Usual Tools): Comment fix.
7463 Do not nest @samp just to point to other table items.
7464 (Writing testsuite.at) <AT_CHECK>: The second argument to
7465 `@dvar' is already @samp'ed.
7466 (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
7467 do not use @var in the second argument.
7469 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
7471 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
7472 $as_shell.exe too. Problem reported by Andreas Buening in
7473 <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
7475 2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7477 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
7478 `unused variable' compiler warning, for `-Wall -Werror'.
7479 Reported by Jaap Haitsma in
7480 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
7482 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
7484 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
7485 case the compiler dumps core. Problem reported for
7486 OpenServer 5.0.7 by Tim Rice in
7487 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
7488 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
7491 2006-06-06 Tim Rice <tim@multitalents.net>.
7493 * lib/freeze.mk: Quiet check-forbidden-patterns so the string
7494 "ERROR" only shows up in "make check" output if there is an
7497 2006-06-06 Eric Blake <ebb9@byu.net>
7499 * tests/tools.at (automatically allowed tokens): Fix typo.
7501 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
7503 * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
7505 * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
7506 typically overflows on x86 CPUs, even though the C standard
7509 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7511 * configure.ac (AC_INIT): Bump to 2.59e.
7514 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7518 * config/texinfo.tex: Sync from upstream.
7520 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
7521 seen, invoke libtoolize with `--ltdl' argument.
7522 * lib/autom4te.in (Autoreconf-preselections): Adjust.
7524 Suggested by Eric Blake.
7526 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
7528 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
7529 reported by Ralf Wildenhues.
7530 * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
7532 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7536 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
7538 * doc/autoconf.texi: Modernize some of the references to Solaris.
7540 2006-06-05 Stepan Kasal <kasal@ucw.cz>
7542 * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
7543 message issued by AC_REQUIRE.
7544 * tests/m4sugar.at: Check m4_require's error message.
7545 * tests/base.at: Check AC_REQUIRE's error message.
7546 * tests/local.at (AT_CHECK_M4): New macro, almost identical
7548 (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
7550 (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
7551 `expout' as the last parameter.
7552 * tests/tools.at: Adapt to the above change.
7554 2006-06-04 Stepan Kasal <kasal@ucw.cz>
7556 * doc/autoconf.texi (Limitations of Usual Tools): Correct
7557 information about race-free implementations of mkdir.
7559 2006-06-04 Eric Blake <ebb9@byu.net>
7561 * bin/autoreconf.in (help): Document M4 environment variable.
7562 * bin/autoconf.as (Usage): Likewise.
7563 * bin/autom4te.in (help): Likewise.
7564 * doc/autoconf.texi (autom4te Invocation): Likewise.
7566 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
7568 * NEWS: GNU make now recommended for VPATH builds.
7569 Mention that some macros are now documented to be obsolescent.
7570 * doc/autoconf.texi:
7571 Prefer "current" to "modern" to describe
7572 currently-used (albeit perhaps old-fashioned) hosts.
7573 Mention which ancient features no longer need to be worried about.
7574 setgid -> set-group-ID
7575 setuid -> set-user-ID (these are the Posix terms)
7576 Fix some misuses of "only".
7577 (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
7578 (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
7579 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
7580 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
7581 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
7582 (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
7583 (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
7584 (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
7585 (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
7586 Mention that these macros are obsolescent.
7587 (Installation Directory Variables): shall -> should
7588 (File Descriptors): Mention that 0, 1, 2 might get reopened.
7589 Mention that it's now safe to use 3 and 4.
7590 (Limitations of Usual Tools): cp -r is now specified by Posix.
7591 Omit longwinded and obsolescent discussion of cp -f.
7592 Modernize discussion of expr, ls.
7593 (Limitations of Make): Modernize discussion of VPATH builds.
7594 Mention $? as a workaround in some cases.
7595 * doc/install.texi (Basic Installation):
7596 Mention "./configure; make; make install" first. Be more
7597 specific about why this file is generic. Remove unnecessary
7598 parens. Remove misleading "only". Remove obsolete advice
7599 about csh. Don't say "configure" takes awhile; say it
7600 might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
7601 and CC=c99 rather than CC=c89, as these are blessed by current
7602 Posix. Recommend GNU make if doing a VPATH build.
7604 2006-06-03 Paul Eggert <eggert@cs.ucla.edu>
7606 * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
7607 examples involving shell prompts.
7609 2006-06-02 Stepan Kasal <kasal@ucw.cz>
7610 and Paul Eggert <eggert@cs.ucla.edu>
7612 * doc/autoconf.texi (Here-Documents): Add details about the
7613 pre-ksh93g bug. Reword slightly to make it clearer. Consistently
7614 use "here-documents" instead of "here documents".
7616 2006-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7618 * config/texinfo.tex, doc/standards.texi: Sync from upstream.
7620 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
7622 * doc/autoconf.texi (File System Conventions): Warn about ":"
7623 anywhere in directory names.
7625 2006-05-31 Paul Eggert <eggert@cs.ucla.edu>
7627 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
7628 about quoting the case statement, just in case.
7629 * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
7630 was fixed in ksh93g; reported by Ralf Wildenhues.
7632 2006-05-31 Stepan Kasal <kasal@ucw.cz>
7634 * doc/autoconf.texi (System Services): Do not document
7635 overriding EXEEXT via ac_cv_exeext=ext.
7636 (Particular Programs) <AC_PROG_MKDIR_P>:
7637 Document that ${MKDIR_P} understands --.
7638 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
7641 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7643 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
7644 argument with leading hyphen. Problem reported by Paul Eggert.
7646 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
7648 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
7649 about quoting ac_try: quote all of it, if any of it seems suspicious.
7650 This means we don't have to worry about ${ or sed any more.
7651 Also, double-quote the case statement, to work around misuses via
7652 underquoting as reported by Ralf Wildenhues in
7653 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
7654 (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
7655 undocumented and dangerous macro.
7656 Problem reported by Ralf Wildenhues in
7657 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
7659 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7661 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
7662 `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
7663 Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
7665 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
7667 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
7668 since evidently some packages rely on the old, broken behavior.
7669 Problem reported by Ralf Wildenhues in
7670 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
7671 (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
7672 pre-2006-05-26 definitions, but leave in the comments that
7673 these macros are dangerous and should not be used.
7674 (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO. All callers changed.
7675 (_AC_DO): Renamed from _AC_EVAL. All callers changed.
7676 (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR. All callers changed.
7677 (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
7678 (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
7680 2006-05-29 Paul Eggert <eggert@cs.ucla.edu>
7682 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
7683 the use of 'tr', since this is our only use of 'tr'.
7685 2006-05-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7686 and Paul Eggert <eggert@cs.ucla.edu>
7688 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
7689 Don't assume 'grep' works on long lines, since AIX grep doesn't.
7691 2005-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7693 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
7694 the output file in the `${datarootdir}' test.
7696 2005-05-28 Stepan Kasal <kasal@ucw.cz>
7697 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7699 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
7700 mention of `datarootdir' in the input file(s), but literal
7701 `${datarootdir}' in the output file, and we haven't warned yet,
7702 then warn as well: the user may have (erroneously) used
7703 `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
7704 `AC_SUBST([mydatadir], ['${datadir}/my'])'.
7705 * tests/torture.at (datarootdir workaround): Extend this test.
7708 2006-05-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7709 and Paul Eggert <eggert@cs.ucla.edu>
7711 * doc/autoconf.texi (autoheader Invocation): The first argument to
7712 `AC_DEFINE_UNQUOTED' need not be a literal. Mention the
7713 alternatives and clear up the language a bit.
7715 2006-05-27 Paul Eggert <eggert@cs.ucla.edu>
7717 * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
7718 ac_config_guess, ac_config_sub, ac_configure.
7719 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
7720 Fix typo that prevented an unnecessary space from being removed.
7721 Problems reported by Ralf Wildenhues in:
7722 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
7724 2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
7726 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
7727 Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
7728 Don't use the term "thread-safe" to talk about mkdir race
7729 conditions, since the problem is more a process than a thread
7730 issue. Problem reported by Stepan Kasal in:
7731 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
7732 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
7733 the test for 'install' more closely. Look at MKDIR_P first.
7734 Look in the PATH, and at /opt/sfw/bin.
7735 Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
7736 Don't bother to try mkdir -p, since we already check mkdir --version;
7737 just look at the version number. (There's no easy way to check
7738 for race-free implementations.)
7739 * tests/tools.at (autoconf: subdirectories): Adjust to above
7740 changes, since MKDIR_P now might end in "/mkdir -p".
7742 * doc/autoconf.texi (autoheader Invocation): Mention that the
7743 first arg of AC_DEFINE_UNQUOTED must be a literal.
7744 Problem reported by Ben Pfaff in
7745 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
7747 * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
7748 * doc/autoconf.texi (Special Chars in Variables): New section.
7749 (Preset Output Variables): Warn about special chars in CPPFLAGS.
7750 (Installation Directory Variables): Quote $(datadir) better.
7751 (Limitations of Builtins): Describe some of eval's trickiness.
7753 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
7754 * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
7755 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
7756 in front of every arg, not just trailing args. Quote apostrophes.
7757 (_AC_EVAL_ECHO): New macro.
7758 (_AC_EVAL, AC_EVAL_STDERR): Use it. Quote arg of eval.
7759 (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
7761 (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
7762 exposed by quoting of eval argument. Put the command on line line
7764 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
7765 (_AC_PATH_X, AC_PATH_X): Quote more safely.
7766 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
7767 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
7768 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
7769 Handle special chars in prefix, ac_srcdir, ac_aux_dir.
7770 Use eval more safely.
7771 (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
7772 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
7774 * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
7775 lines, exposed by quoting of eval argument.
7777 2006-05-26 Stepan Kasal <kasal@ucw.cz>
7778 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7780 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
7781 initialization of `ac_cv_exeext', do not override it if it was
7782 already set, unless it was set to `no', for compatibility with
7783 Autoconf-2.13, and comment this.
7784 Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
7785 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
7786 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
7787 * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
7788 Document that this test may be overridden by setting
7791 2006-05-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7793 Revert these two patches:
7795 2006-04-06 Eric Blake <ebb9@byu.net>
7796 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
7797 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
7800 2006-04-01 Stepan Kasal <kasal@ucw.cz>
7801 Clean up _AC_COMPILER_EXEEXT* macros.
7802 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
7803 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
7804 ac_file to the name of the default output file and call
7805 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
7806 initial `rm' of the candidate files...
7807 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
7808 the same list in subsequent `rm' calls, and for the temporary
7809 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
7810 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
7811 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
7812 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
7813 no longer needed) by libtool. Make it a cache check.
7814 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
7815 copied here by mistake.
7816 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
7817 _AC_COMPILER_EXEEXT.
7818 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
7819 _AC_COMPILER_OBJEXT directly.
7820 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
7822 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7824 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
7825 Fix description of how the buggy `sed' works.
7827 2006-05-25 Noah Misch <noah@cs.caltech.edu>
7831 * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
7832 ENOLCK. Only mention `make -j' when applicable. Only raise
7833 fatal errors when `make -j' is involved. Improve error message.
7835 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7837 * doc/autoconf.texi (Here-Documents): We now know more about
7838 the variable expansion in here documents bug.
7839 Thanks to Tim Rice and Stepan Kasal.
7841 * doc/autoconf.texi (Making testsuite Scripts): Add an example
7842 how to use TESTSUITEFLAGS. Suggested by Eric Blake.
7844 2006-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7846 * tests/autotest.at (Multiline command from M4 expansion):
7847 No failure to be expected if the shell quotes newlines in
7848 commands in the `set -x' output. Report by Tim Rice.
7851 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
7853 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
7854 expansion in the here-documents used by config.status, as that
7855 runs afoul of the Korn shell version M-12/28/93d bug described in
7856 the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
7857 fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
7858 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
7860 2006-05-23 Jim Meyering <jim@meyering.net>
7862 * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7863 Fix typo introduced with 2006-04-02 change. It reversed the sense
7866 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
7868 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
7869 ac_dB slightly, to save bytes in the script.
7870 Max out at 50 lines, rather than 96; this is more likely
7871 (though not guaranteed) to avoid obscure 'sed' failures.
7873 2006-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7875 * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
7876 `tr -d -' as bad option argument. Work around this by deleting
7877 an unrelated character.
7878 Report by Tim Rice <tim@multitalents.net>.
7880 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>,
7881 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
7882 Stepan Kasal <kasal@ucw.cz>
7884 * doc/autoconf.texi (Particular Programs): Do not promise that
7885 we always prefer the GNU version of the program, and that we
7886 search according to PATH; both rules can have exceptions.
7887 Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
7888 AC_PROG_SED. Move descriptions of limitations
7889 to the Limitations of Usual Tools section.
7890 (Limitations of Usual Tools) <sed>: Mention script length
7891 limitations with Solaris /usr/ucb/sed.
7892 <grep>: Fix wording for empty alternative. Mention that -c and
7893 -l should not be combined, and that -E and -F should not be
7896 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7897 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7899 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
7900 limits in Solaris 8 /usr/ucb/sed by testing a long script.
7902 2006-05-22 Stepan Kasal <kasal@ucw.cz>
7904 * doc/autoconf.texi (Defining Symbols): Literal parameter of
7905 AC_DEFINE is now passed to m4_pattern_allow.
7906 * NEWS: Mention that; likewise for AC_SUBST.
7907 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
7908 the parameter to m4_pattern_allow.
7909 * tests/tools.at: Add a check for that.
7911 2006-05-22 Stepan Kasal <kasal@ucw.cz>
7913 * lib/autoconf/status.m4: Fix typos.
7915 2006-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7917 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
7918 only the files that this macro generates.
7920 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7922 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
7923 the HP-UX sed limitation of 99 commands, labels do not count.
7924 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
7926 (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
7928 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
7930 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
7931 Import the following fix from coreutils:
7933 2006-01-13 Jim Meyering <jim@meyering.net>
7935 Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7936 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
7937 not double-quote uses of that variable, to accommodate the rare
7938 case in which getmntent is available in none of the libraries
7939 checked. This happens at least on FreeBSD 5.0.
7941 2006-05-20 Paul Eggert <eggert@cs.ucla.edu>
7943 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
7944 ac_config_guess, ac_config_sub, and ac_configure, since evidently
7945 some other programs unwisely rely on these undocumented vars.
7946 But put in warning comments about them.
7947 Problem reported by Ralf Wildenhues in
7948 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
7949 * NEWS: Document that these variables are intended to go away.
7951 2006-05-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7953 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
7954 and set the language to C++ (analogous to the equivalent Fortran
7957 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
7958 * doc/autoconf.texi (C++ Compiler): Document it.
7959 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
7962 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7964 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
7965 that caused config.status to generate 100-command sed scripts; the
7966 portable limit is 99.
7968 2006-05-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7970 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
7971 variable `ac_d' instead of `d' to avoid infringing namespace.
7972 Report by Ralf Menzel.
7974 2006-05-18 Paul Eggert <eggert@cs.ucla.edu>
7976 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
7977 $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
7978 * tests/tools.at (autoconf: subdirectories): New test, taken from
7979 the corresponding problem report by Ralf Wildenhues in:
7980 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
7982 * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
7983 Quote some uses of shell variables if they might suffer unexpected
7984 globbing. This doesn't fix all instances of quoting problems that
7985 I found, just the easy ones that look safe.
7986 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
7987 (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
7988 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
7989 (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
7990 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
7991 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
7992 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
7994 * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
7995 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
7997 2006-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7999 * bin/autoreconf.in ($help): Reword according to the manual.
8000 Suggested by Olly Betts.
8002 2006-05-17 Olly Betts <olly@survex.com> (tiny change)
8003 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8005 * bin/autoreconf.in: Pass the directory argument to
8006 `require_configure_ac'. Fix comment.
8007 * tests/torture.at (Configuring subdirectories): Expose this.
8008 Reported by Olly Betts.
8010 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8012 * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
8013 lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
8014 Automake as follows:
8016 * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
8017 `$configure_in' instead of `configure.in', to preserve
8018 directory component.
8020 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8022 * config/config.guess, config/config.sub, config/texinfo.tex,
8023 doc/make-stds.texi, doc/standards.texi: Sync from upstream.
8025 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
8027 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8028 test for C99 conformance; (bool) 0.5 is an integer constant
8029 expression, but (bool) -0.5 is not. Problem reported by Fedor
8030 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8032 2006-05-13 Paul Eggert <eggert@cs.ucla.edu>
8034 * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
8035 sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
8036 Warn about obsolete install-sh files. Remove stray sentence
8037 fragment and fix cross reference.
8038 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
8039 install -d; this undoes the 2006-05-10 change.
8040 (MKDIR_P): Mark with AN_MAKEVAR.
8041 (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
8042 that we don't require $INSTALL to be thread-safe. Move comments
8043 out of generated code. Require AC_CONFIG_AUX_DIR_DEFAULT instead
8044 of AC_PROG_INSTALL. Output a message saying that we're checking
8045 mkdir -p. Set MKDIR_P rather than mkdir_p. Do special magic for
8046 MKDIR_P instead of AC_SUBST.
8047 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
8048 Special magic for MKDIR_P, too.
8049 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
8051 * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
8053 2006-05-11 Paul Eggert <eggert@cs.ucla.edu>
8055 Sync from Automake, as follows:
8057 2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8058 * config/install-sh: Initialize IFS, so field splitting isn't
8060 * config/mkinstalldirs: Likewise.
8061 * config/missing: Remove superfluous quotes. Replace all uses of
8062 `[' by `test', for consistency, and for..
8063 * config/missing (sed_minuso, sed_output): New variables.
8064 (autom4te, help2man, makeinfo): Use them. Unifies detection of
8065 `-o FILE', `--output FILE', `--output=FILE', stricter regex.
8066 Fixes `missing' to detect `--output' for help2man. Fixes
8067 PR automake/483. Report by Dennis J. Linse.
8068 (autom4te): Document in `missing --help'.
8070 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
8072 * NEWS: New macro AC_PROG_MKDIR_P. AS_MKDIR_P is now more robust.
8073 * config/install-sh: Don't use 'path' to talk about file names,
8074 as per GNU coding standards. Close a race condition reported by Ralf
8075 Wildenhues and Stepan Kasal. There is still a race condition
8076 on hosts that predate Posix 1003.1-1992, but we can't help this.
8077 Don't mishandle weird characters like space on pre-Posix hosts.
8078 Invoke mkdir at most once per dir arg on pre-Posix hosts.
8079 * doc/autoconf.texi (Programming in M4sh): Cross-reference to
8080 AC_PROG_MKDIR_P from AS_MKDIR_P.
8081 (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
8082 from mkdir. Mention that Autoconf 2.60 install-sh is safe but
8083 earlier editions are not (including Automake 1.8.3).
8084 Do not suggest mkinstalldirs for thread-safety.
8085 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
8086 that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
8087 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
8088 presence of special characters and race conditions.
8089 * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
8090 in Autoconf's name space.
8092 2006-05-10 Bruno Haible <bruno@clisp.org>
8093 and Paul Eggert <eggert@cs.ucla.edu>
8095 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
8096 from Automake with minor changes.
8097 * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
8099 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
8101 * config/install-sh: Update to Automake CVS version, as follows:
8102 2006-04-25 Stepan Kasal <kasal@ucw.cz>
8103 * lib/install-sh: Simplify the expr implementation of dirname.
8104 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
8105 * lib/install-sh: Handle --, and diagnose unknown options.
8107 2006-05-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8109 * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
8110 `./autom4te' to create `./testsuite', since the `all' target
8111 will ensure its presence, but `installcheck' should not create
8112 the uninstalled wrappers.
8114 * tests/torture.at (Unusual Automake input files): Skip if we
8115 detect automake < 1.8.
8117 2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8119 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
8120 is set to `no', then that overrides and sets ac_cv_prog_cc_c89
8121 and ac_cv_prog_cc_c99 to `no', for backward compatibility.
8124 2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8126 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
8127 munge (multiple) white space and other oddities.
8128 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
8129 single quotes in variable assignment.
8130 (AC_ARG_VAR, configure invocation): Adjust tests to expose this
8131 and similar failures by adding multiple spaces, tabs, and other
8133 Report and different test suggested by Francesco Romani
8134 <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
8136 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
8137 single quotes, we only need to search for single quotes; this
8138 both simplifies the search pattern, and makes us less
8139 susceptible to `echo' variations for arguments not containing
8141 (_AC_ARG_VAR_VALIDATE): Likewise.
8143 2006-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8145 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
8146 `$*' and IFS concatenation issue with traditional shells and
8147 bash-2.04. Report by Seanster@Seanster.com.
8149 2006-05-03 Bruno Haible <bruno@clisp.org>
8151 * doc/autoconf.texi (Limitations of Usual Tools): Identify more
8152 precisely which Mac OS X versions have the od problem.
8154 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
8156 * doc/autoconf.texi: Use @option systematically.
8158 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
8159 and Bruno Haible <bruno@clisp.org>
8161 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
8163 (Integer Overflow): Mention the special case of integer division
8166 2006-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8168 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
8169 traditional shells like the Solaris one that do not use the
8170 first IFS character for assembling `$*'.
8171 Prompted by a related report from autoconf_bug@nro.ca.
8173 2006-05-01 Paul Eggert <eggert@cs.ucla.edu>
8174 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8176 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
8177 Mention more problems with the -e option.
8179 2006-04-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8182 * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
8184 * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
8185 in URLs to improve DVI formatted output (requires texinfo 4.6).
8186 (System Services, Systemology, Shellology): Likewise.
8187 (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
8190 * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
8192 (Runtime): Fix macro argument names to match description:
8193 `action-if-found' -> `action-if-true' and similarly.
8194 (Obsolete Macros): Likewise.
8195 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
8196 (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
8197 (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
8199 2006-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8201 * doc/autoconf.texi (Limitations of Make): Clean up markup.
8204 * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
8207 2006-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8209 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
8210 /bin/sh set unsorted output.
8211 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
8212 * tests/local.at: Likewise.
8214 2006-04-26 Paul Eggert <eggert@cs.ucla.edu>
8216 * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
8217 (Integer Overflow, Null Pointers, Buffer Overruns):
8218 (Floating Point Portability, Exiting Portably): New sections.
8219 (Writing Test Programs): Fix some langauge. Recommend exiting
8220 with status 1, not merely nonzero. Clarify exit declaration.
8221 (Run Time): Move C exit status stuff to new Exiting Portably section.
8222 (Systemology): Mention Posix and levenez. Update v7 reference.
8223 (Portable Shell): Mention the Posix shell.
8225 2006-04-25 Stepan Kasal <kasal@ucw.cz>
8227 * bin/autoconf.as (me): Replace by as_me.
8229 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
8231 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
8232 since as_me isn't set yet.
8234 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
8236 Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
8237 a few minor bugs in this area.
8239 * doc/autoconf.texi (Programming in M4sh): Comment out the
8240 documentation of AS_BASENAME, for now.
8241 (Shell Substitutions): Do not use AS_DIRNAME in an example.
8242 (Limitations of Builtins) <basename>: Do not refer to
8244 * bin/autoconf.as (me): Don't use AS_BASENAME.
8245 (dir): Remove the unused variable.
8246 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
8247 AS_DETECT_REQUIRED. All uses changed.
8248 (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
8250 (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
8251 (AS_BASENAME): Use "basename --" to protect against leading "-".
8252 (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR. All uses changed.
8253 (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED. All uses changed.
8254 (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
8255 (_AS_DIRNAME_PREPARE): Likewise.
8256 (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR. All uses changed.
8257 (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED. All uses changed.
8258 (AS_DIRNAME): Use "dirname --".
8260 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
8262 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
8263 of "run time" and "run-time" changed to "runtime", for consistency.
8264 * lib/autoconf/fortran.m4: Likewise (in comment).
8265 * lib/autoconf/functions.m4: Likewise.
8266 * lib/autoconf/general.m4: Likewise.
8267 * lib/autoconf/headers.m4: Likewise.
8269 * doc/autoconf.texi (Run Time): Document the exit status situation
8270 with more accuracy and detail.
8272 2006-04-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8274 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
8275 Archive is not officially `GNU' any more. Update URL.
8276 (Defining Directories): Likewise
8277 * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
8279 2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8281 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
8282 newline from the `trap' code to finish `config.log'; the NetBSD
8283 /bin/sh resets the exit status after an empty command, as
8284 documented in doc/autoconf.texi.
8285 Reported by Dalibor Topic <robilad@kaffe.org>.
8287 2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
8289 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
8290 Suggested by Bruno Haible.
8292 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
8294 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
8295 some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
8296 Instead, just list the shells that we know work.
8297 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg. All uses
8298 changed. Be more cautious about the _cv_ variable.
8299 * tests/tools.at (Syntax of the shell scripts): Check the
8300 _cv_ variable once, at first, to avoid an internal autoconf error
8301 when sh -n does not work.
8303 2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8305 * lib/Autom4te/FileUtils.pm: Sync from Automake.
8307 2006-04-16 Paul Eggert <eggert@cs.ucla.edu>
8309 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
8310 use ">&-" since we're only 99.999% sure that this is portable,
8311 and since the MinGW bug is fixed in a different way.
8312 * lib/autotest/general.m4 (AT_INIT): Likewise.
8314 2006-04-16 Stepan Kasal <kasal@ucw.cz>
8316 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
8317 before opening config.log, to avoid hitting a bug on MinGW.
8319 2006-04-14 Paul Eggert <eggert@cs.ucla.edu>
8321 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
8322 AS_MESSAGE_LOG_FD before reopening it onto the log file.
8323 This works around a MinGW bug reported by Eric Paire.
8324 Make sure that all writes to the log file append to it,
8325 rather than possibly losing data.
8326 * lib/autotest/general.m4 (AT_INIT): Likewise.
8328 2006-04-14 Stepan Kasal <kasal@ucw.cz>
8330 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
8333 2006-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8337 * configure.ac (AC_INIT): Bump to 2.59d.
8339 2006-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8343 * Makefile.maint (news-date-check): Do not require a leading `*'
8344 before the release date in NEWS.
8346 2006-04-12 Stepan Kasal <kasal@ucw.cz>
8347 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8349 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
8350 the instantiated file do not contain the string 'datarootdir'
8351 but contain @datadir@, @docdir@, @infodir@, @localedir@, or
8352 @mandir@, replace the reference '${datarootdir}' by the value.
8353 * tests/torture.at (datarootdir workaround): New test.
8354 * NEWS: Advertise this temporary fixup.
8355 Based on a patch by Bruno Haible, reported and analyzed by
8356 Paul Eggert and Noah Misch.
8358 2006-04-12 Eric Blake <ebb9@byu.net>
8360 * tests/autotest.at (Debugging a failed test): Fix comment.
8362 2006-04-12 Stepan Kasal <kasal@ucw.cz>
8364 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
8365 all the changes since 2006-04-07.
8367 2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8369 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
8370 succeeded, but `ln -s file dir' failed, take care to remove the
8371 leftover target before the next test, to prevent its spurious
8372 failure; also make sure `ln file dir' works before selecting it.
8373 Thanks to Keith Marshall for pointing this out.
8376 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
8377 assignments in `at_debug_args', so that we put them correctly
8378 in the `run' script.
8379 * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
8380 Reported by Eric Blake.
8382 2006-04-11 Eric Blake <ebb9@byu.net>
8384 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
8385 top-level tests after micro-suite has been run. Used in...
8386 (Debugging a successful test, Debugging script and environment),
8387 (Debugging a failed test): ...these new tests. The first of these
8389 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
8390 macro, split out from...
8391 (AT_INIT): ...here, so that using -d also generates a run script.
8392 Document that -d inhibits top-level logging.
8393 * doc/autoconf.texi (testsuite Invocation): Document that -d only
8394 inhibits top-level logging; debug scripts are created.
8396 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
8398 * tests/autotest.at (Empty test, Empty check): New test to check it.
8400 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
8403 2006-04-10 Stepan Kasal <kasal@ucw.cz>
8405 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
8406 the files if a problem appears. Make the empty *.at files
8407 read-only, too. Proposed by Ralf Wildenhues.
8409 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8411 * config/Makefile.am: Add comment to force updated Makefile.in.
8413 * lib/freeze.mk: Fix typo in comment. Unlike the last, white
8414 space only patch to this file, this patch causes the Makefile.in
8415 files that include freeze.mk to be updated, and thus have a
8416 newer time stamp again, which in turn makes a pristine CVS
8417 checkout have correct time stamps.
8419 * Makefile.maint (cvs-sv): New macro, to be used..
8420 (config.guess-url_prefix, config.sub-url_prefix)
8421 (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
8422 point to CVS text checkout of Gnulib files.
8423 (copyright-check): Bump current year.
8424 (announcement): Do not hard-wire `./announce-gen'.
8425 (cvs-update): Propagate failures of `cvs' and `move-if-change'
8427 * Makefile.cfg (executable-update): Use `chmod a+x' instead of
8429 (wget_files): Update config.guess, config.sub, texinfo.tex by
8430 `wget-update', now that their URLs work again.
8432 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
8434 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
8435 Problem noted by Paul D. Smith.
8437 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8439 * doc/autoconf.texi: Remove unused words from word list.
8440 * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
8441 .x-sc_trailing_space: New files.
8443 * doc/standards.texi: Sync from gnulib.
8445 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
8446 `LIBOBJDIR' as experimental.
8448 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
8449 with a target directory; it's internally implemented as `cp'
8450 anyway, but since Autoconf advertises the possibility to use
8451 a target directory when LN_S is `ln -s', we need to find out.
8452 Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
8453 analyzed by Keith Marshall <keith.marshall@total.com>.
8457 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
8459 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
8460 confdefs.h as-is. In general, if it has backslash-newline or the
8461 like, then it doesn't work either to sort or to remove empty
8464 2006-04-09 Stepan Kasal <kasal@ucw.cz>
8466 * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
8468 2006-04-09 Alexandre Duret-Lutz <adl@gnu.org>
8470 * lib/autom4te.in (Automake-preselections): Preselect
8473 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
8475 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
8476 apostrophe within a single-quoted string, as this is the usual
8477 tradition and is easier to read than '"'"'. Don't rely on the
8478 shell treating "$/" like '$/'. Use a more-consistent indenting
8481 2006-04-09 Eric Blake <ebb9@byu.net>
8483 * tests/autotest.at (Backquote command substitution),
8484 (Multiline backquote command substitution): Remove mistaken
8485 AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
8487 (Parenthetical command substitution, Multiline parenthetical
8488 command substitution): here.
8490 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
8492 Import macros from gnulib (often changing their name).
8494 * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
8495 New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
8496 AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
8497 AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
8498 AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
8499 AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
8500 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
8501 AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
8502 AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
8503 AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
8504 The manual mentions Gnulib more prominently.
8505 * doc/autoconf.texi (Gnulib): New node.
8506 (Pointers): Add Gnulib URL.
8507 (Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
8508 (Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
8510 (Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
8511 suggest a #define rather than a typedef for _Bool, and mention
8512 Gnulib rather than trying to substitute stdbool code.
8513 (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
8514 (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
8515 (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
8516 AC_STRUCT_DIRENT_D_TYPE.
8517 (Particular Types): Mention stdint.h and inttypes.h as standard
8519 Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
8520 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
8521 AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
8522 AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
8523 AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
8524 (C Compiler): Move AC_C_LONG_DOUBLE to ...
8525 (Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
8526 AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
8527 (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
8528 (Coding Style). Don't mention m4_expand_once.
8529 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
8530 AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
8531 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
8532 (AC_CHECK_FUNCS): Use it.
8533 (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
8534 (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
8535 * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
8536 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
8537 (AC_HEADER_ASSERT): New macro.
8538 (AC_HEADER_STDBOOL): Don't assume "#error" works.
8539 Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
8540 Catch a bug in an HP-UX C compiler.
8541 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
8542 * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
8543 (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
8544 (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
8545 (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
8546 (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
8549 * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
8550 use /^foo|bar$/, it does not mean /^(foo|bar)$/.
8552 2006-04-08 Stepan Kasal <kasal@ucw.cz>
8554 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
8555 of the warning introduced by the 2001-08-28 change.
8557 2006-04-08 Stepan Kasal <kasal@ucw.cz>,
8558 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8560 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
8561 variables shall be overriden by the cache.
8562 * tests/torture.at (AC_ARG_VAR): Test also with a first value
8563 that contains braces.
8565 2006-04-07 Stepan Kasal <kasal@ucw.cz>
8567 Revert the patch from 2006-04-01 and only improve
8568 _AS_DETECT_BETTER_SHELL:
8570 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
8571 skip nonexistent directories.
8572 (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
8573 only shell candidates which exist.
8574 (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
8575 * lib/autotest/general.m4 (AT_INIT): No need to give three
8576 parameters to _AS_PATH_WALK.
8578 2006-04-07 Stepan Kasal <kasal@ucw.cz>,
8579 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8581 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
8582 distinguish m4sugar macros.
8583 * tests/tools.at (autoupdating with aclocal and m4_include):
8584 New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
8585 test case by Noah Misch <noah@cs.caltech.edu>.
8587 2006-04-07 Stepan Kasal <kasal@ucw.cz>
8589 Revert my change from 2006-03-17, in other words:
8590 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
8592 (AS_SHELL_SANITIZE): Remove DUALCASE=1.
8593 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
8596 2006-04-07 Eric Blake <ebb9@byu.net>
8598 * doc/autoconf.texi (Programming in M4sh): Document that
8599 AS_MKDIR_P exits the script on failure.
8600 * lib/autotest/general.m4: Remove redundant AS_ERROR.
8602 2006-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8604 * config/elisp-comp, config/install-sh, config/mdate-sh,
8605 config/missing, config/mkinstalldirs: Sync from Automake.
8607 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
8610 * doc/make-stds.texi: Sync from gnulib.
8612 2006-04-06 Eric Blake <ebb9@byu.net>
8614 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
8615 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
8618 2006-04-06 Stepan Kasal <kasal@ucw.cz>,
8619 Eric Blake <ebb9@byu.net>,
8620 Paul Eggert <eggert@cs.ucla.edu>,
8621 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8623 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
8624 whether `set' quotes correctly: redirect stderr of the tested
8625 `set', and use a subshell, for Ultrix; use `sed' instead of
8626 `grep' for zsh `set' which may write binary output; match only
8627 at the beginning of a line, to avoid false positives.
8628 In order to avoid false positives by unrelated variables with
8629 multiline content, put the dump algorithm in a subshell and
8630 unset all variables containing newlines (except some which are
8631 special to the shell). Warn about cache variables that are
8634 2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8636 * config/config.guess, config/config.sub, config/texinfo.tex:
8639 * tests/mktests.sh: Reword comments.
8641 * tests/mktests.sh: Only skip internal macros starting with
8642 `_AC_' or `__AC_'. Noted by Stepan Kasal.
8643 Update exclusion lists for the test suite to this end:
8644 (AC_ARG_VAR): Do test this now.
8645 (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
8646 (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
8647 (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
8648 (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
8650 * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
8651 shell issue with double-quoted command substitutions of native
8653 Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
8656 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
8657 no file matches the glob, discard the warning, set `nullglob'.
8658 (syntax-check): Likewise.
8659 (sc_cast_of_x_alloc_return_value): Likewise.
8660 (sc_cast_of_alloca_return_value, sc_error_exit_success)
8661 (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
8662 (m4-check): Likewise.
8663 (sc_system_h_headers): Do not print rule on execution.
8664 (sc_tight_scope): Do not fail for non-existing `src' directory.
8665 (sc_changelog): Skip the Copyright footer.
8666 * lib/autoconf/lang.m4: Remove trailing space.
8668 * lib/autoconf/status.m4: More replacements to
8669 <tab><space> where this makes sense.
8671 2006-04-06 Stepan Kasal <kasal@ucw.cz>
8673 * tests/Makefile.am (maintainer-check-posix):
8674 s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
8676 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
8677 ac_config_<foo>s again, sometimes normalized, sometimes not.
8678 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
8679 (AC_CONFIG_COMMANDS): Do not do so here.
8680 (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
8681 and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
8682 2005-07-25 rewrite. Noticed by Noah Misch.
8684 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
8685 _AC_PRESERVE_HELP_ORDER, ...
8686 (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
8688 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
8689 inside m4_expand_once; it is redundant.
8691 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
8692 for --help from Cygnus `configure.'
8694 2006-04-06 Paul Eggert <eggert@cs.ucla.edu>
8696 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
8697 on a patch proposed by Ralf Wildenhues.
8699 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
8701 * lib/autoconf/status.m4: Replace <space>''<tab> with
8702 <tab><space> where this makes sense.
8704 2006-04-05 Howard Chu <hyc@highlandsun.com> (trivial change)
8705 Noah Misch <noah@cs.caltech.edu>
8707 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
8708 (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
8709 * doc/autoconf.texi (Help Formatting): New node.
8710 * NEWS: Announce AC_PRESERVE_HELP_ORDER.
8712 2006-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8714 * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
8715 lib/autoconf/specific.m4, lib/autoconf/status.m4,
8716 lib/autoconf/types.m4, lib/autotest/general.m4,
8717 tests/mktests.sh, tests/torture.at: White space cleanup:
8718 remove some SPACE before TAB, or add quoting ('' or @&t@).
8720 * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
8722 * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
8724 2006-04-05 Eric Blake <ebb9@byu.net>
8726 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
8727 empty test suite works.
8728 * tests/autotest.at (Empty test suite): Remove xfail.
8730 2006-04-05 Noah Misch <noah@cs.caltech.edu>
8732 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
8733 TAGS to ac_config_<foo>s.
8734 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
8735 (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
8736 normalizing it, consistent it with previous releases.
8737 * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
8739 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
8741 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
8742 Use simplified args that Eric Blake originally suggested.
8744 2006-04-04 Paul Eggert <eggert@cs.ucla.edu>
8746 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
8747 Prefer 'sort -u' to 'sort | uniq'. Filter data before sorting it.
8748 Use 'comm' rather than N instances of grep; this also fixes a bug
8749 whereby substrings were incorrectly matched, causing us to not
8750 generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
8751 (exclude_list): Exclude empty macros.
8752 (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
8754 Use awk rather than grep -E or egrep, to avoid
8755 portability problems with regular expressions containing newlines.
8756 (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
8757 Switch from grep to awk syntax.
8758 (ac_exclude_script): Renamed from ac_exclude_egrep.
8759 (au_exclude_script): Renamed from au_exclude_egrep.
8761 2006-04-04 Noah Misch <noah@cs.caltech.edu>
8763 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
8764 a subdirectory subject to Cygnus `configure'.
8765 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
8767 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
8768 report request when we have no AC_PACKAGE_BUGREPORT.
8770 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8774 * tests/mktests.sh: Update copyright year in the header of the
8777 * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
8778 (AC_C_RESTRICT): Likewise. Furthermore, add a function with a
8779 typedef'ed restricted pointer, to catch a compiler bug on
8780 HP-UX 11.x, and fix warnings so it passes with -Werror.
8781 (_AC_PROG_CC_C99): Likewise.
8782 Reported by Albert Chin <china@thewrittenword.com>.
8783 * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
8785 2006-04-03 Noah Misch <noah@cs.caltech.edu>
8787 * bin/autoscan.in (subdirs): New global.
8788 (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
8789 (output): Emit AC_CONFIG_SUBDIRS as needed.
8790 * tests/autoscan.at (autoscan): Remove XFAIL.
8792 2006-04-03 Noah Misch <noah@cs.caltech.edu>
8794 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
8796 2006-04-03 Eric Blake <ebb9@byu.net>
8798 * THANKS: Add myself.
8800 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8802 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
8803 to log, point to testsuite output tree.
8805 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
8807 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
8808 * doc/autoconf.texi (Function Portability): Mention that C++
8809 has trouble with 'exit'.
8810 (Guidelines): Test programs shouldn't use 'exit'.
8811 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
8812 Remove; all uses removed.
8813 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
8814 Return from 'main' instead of calling 'exit'.
8815 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
8816 (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
8817 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
8818 (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
8819 (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
8820 (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8821 (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
8822 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
8823 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8824 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
8825 * tests/compile.at: Likewise.
8827 2006-04-02 Pavel Roskin <proski@gnu.org>
8829 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
8831 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8833 Clean up _AC_COMPILER_EXEEXT* macros.
8835 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
8836 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
8837 ac_file to the name of the default output file and call
8838 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
8839 initial `rm' of the candidate files...
8840 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
8841 the same list in subsequent `rm' calls, and for the temporary
8842 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
8843 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
8844 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
8845 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
8846 no longer needed) by libtool. Make it a cache check.
8847 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
8848 copied here by mistake.
8849 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
8850 _AC_COMPILER_EXEEXT.
8851 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
8852 _AC_COMPILER_OBJEXT directly.
8853 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8855 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8857 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
8858 (AS_DIRNAME): Use it.
8859 (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
8861 * tests/*.at: Remove the generated ones.
8863 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8865 * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
8867 2006-04-01 Eric Blake <ebb9@byu.net>
8869 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
8870 directories, unless optional third argument supplied.
8871 (AS_UNAME): Don't optimize PATH walk.
8873 * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
8875 2006-04-01 Eric Blake <ebb9@byu.net>
8876 and Stepan Kasal <kasal@ucw.cz>
8878 * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
8881 2006-04-01 Noah Misch <noah@cs.caltech.edu>
8883 * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
8884 Autoconf version number despite a zero- or one-argument AC_INIT.
8886 * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
8888 * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
8889 * doc/autoconf.texi (autoreconf Invocation): Document it.
8891 * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
8892 Append LocalWords so ispell-buffer passes cleanly. Spelling fixes.
8894 2006-04-01 Eric Blake <ebb9@byu.net>
8896 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
8897 * lib/autotest/general.m4: Be tolerant of existing directory when
8898 rm failed to remove it.
8900 2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8902 * bin/autoupdate.in: Redefine m4_location so that warnings print
8903 the correct lines of the input file by subtracting..
8904 (_au__first_line): ..this new definition.
8906 * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
8907 AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
8908 Remove stray newline in output.
8909 (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
8910 AC_DEFUN this for autoconf, including the obsoletion diagnose.
8911 Fixes autoupdating of code where the replacement output contains
8913 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
8914 * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
8915 (au_exclude_list): Add AC_LANG_SAVE.
8916 * tests/tools.at: Several new tests for all of this.
8917 * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
8919 The AC_LANG_SAVE issue was reported against Libtool by
8920 Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
8921 Kristian Kvilekval <kris@cs.ucsb.edu>.
8923 2006-04-01 Stepan Kasal <kasal@ucw.cz>
8925 * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
8926 switch all of them on and of when necessary. Fixes the bug when
8927 m4sugar macros (e.g., m4_define) were expanded after the first
8928 automatic update (e.g., after AC_PREREQ or AC_INIT).
8930 2006-03-31 Paul Eggert <eggert@cs.ucla.edu>
8932 * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
8933 of AS_BASENAME and AS_DIRNAME. Reported by Stepan Kasal.
8935 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
8936 correctly. Problem reported by Eric Blake.
8937 (_AS_EXPR_PREPARE): Detect Tru64 expr bug. Problem reported by
8940 2006-03-30 Paul Eggert <eggert@cs.ucla.edu>
8942 * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
8943 Tighten up the basename/dirname wording.
8945 2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8947 * Makefile.maint (sc_texi_notab): New check: do not use TABs
8948 in texinfo files outside of verbatim environments.
8949 (syntax-check-rules): Update.
8950 * doc/autoconf.texi (Configuration Headers): Conform to it.
8952 2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
8954 * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
8955 aclocal cannot be given on the command line.
8957 2006-03-29 Paul Eggert <eggert@cs.ucla.edu>
8959 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
8960 Give an example for AS_DIRNAME instead of referring to Posix..
8961 (File System Conventions): Put discussion of // versus / here, and
8963 (Limitations of Usual Tools): Add basename. Remove verbiage
8964 after dirname, since it got moved to the above sections.
8965 All this was inspired by a patch proposed earlier by Eric Blake.
8967 2006-03-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8969 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
8970 `$0' to protect against spaces.
8971 * lib/autotest/general.m4 (AT_INIT): Likewise.
8972 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
8975 2006-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8977 * bin/autoscan.in: The value of find_configure_ac should be
8978 checked for existence, so we don't barf over a nonexisting
8979 configure.ac. Reported by Laurence Darby <ldarby@tuffmail.com>.
8981 2006-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8983 * bin/autoupdate.in: Fix some typos.
8985 2006-03-21 Stepan Kasal <kasal@ucw.cz>
8987 * doc/autoconf.texi (Installation Directory Variables): Fix typo.
8989 * lib/autoscan/autoscan.list: Refreshed.
8991 2006-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8993 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
8994 and Erlang related variables.
8996 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
8997 (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
8998 (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
8999 (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
9000 (AC_LANG_BOOL_COMPILE_TRY(Objective C))
9001 (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
9002 (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
9003 (_AC_PROG_OBJC_G): New macros.
9004 (_AC_ARG_VAR_CPPFLAGS): Adjusted.
9005 * doc/autoconf.texi (Objective C Compiler): New node.
9006 (Preset Output Variables): Document OBJCFLAGS.
9007 (Language Choice): Document `Objective C' language.
9008 (Fortran Compiler): Fix typo.
9010 Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
9012 2006-03-20 Stepan Kasal <kasal@ucw.cz>
9014 * doc/autoconf.texi (Default Includes): Fix typo
9015 s/AC_HEADERS_STDC/AC_HEADER_STDC/
9016 (Limitations of Usual Tools): s/unwriteable/unwritable/
9017 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
9018 Fix typos in the comments.
9020 2006-03-17 Stepan Kasal <kasal@ucw.cz>
9022 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
9023 Factor out the warning to...
9024 (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
9025 * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
9026 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
9028 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
9029 case `ac_delim' when writing the sed script.
9031 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
9032 moved DUALCASE=1 ...
9033 (AS_SHELL_SANITIZE): ... here.
9034 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
9037 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
9039 (_AC_PATH_PROG): Store the result to VARIABLE.
9040 (AC_PATH_PROG): No need to set VARIABLE again.
9042 * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
9043 the first one is usual AT_CHECK_MACRO test, the second one checks
9044 that the same works when cross-compiling.
9045 * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
9046 (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
9048 2006-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9050 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
9051 the directory `/usr/bin/posix' in the shell search, to prefer
9052 the Posix shell not only in subsequent spawns as with `$BIN_SH'
9055 * doc/autoconf.texi (contents): To fix texi2html output, hide
9056 `@setcontentsaftertitlepage' for HTML.
9057 (Writing Autoconf Macros): Likewise, insert space after `@c'.
9058 (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
9061 2006-03-16 Stepan Kasal <kasal@ucw.cz>
9063 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
9065 (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
9066 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
9067 why IFS is restored so late; thank you, Ralf, for reminding us.
9069 2006-03-15 Stepan Kasal <kasal@ucw.cz>
9071 * doc/autoconf.texi (Pretty Help Strings): No need to use cached
9072 variables in the examples.
9074 2006-03-14 Romain Lenglet <rlenglet@users.forge.objectweb.org>
9076 * doc/autoconf.texi (several sections): Cleaned up documentation for
9077 macros in erlang.m4.
9079 2006-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9081 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
9082 failure condition for `$(cmd)' style command substitutions.
9083 (Parenthetical command substitution, Multiline parenthetical
9084 command substitution): Use it.
9086 * doc/autoconf.texi (Special Shell Variables): Missing word.
9087 Reported by Keith Marshall <keith.marshall@total.com>.
9089 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
9090 IFS even in case of empty `$PATH'.
9092 2006-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9094 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
9095 `expr' away if there is nothing to do.
9096 < --keywords >: Simplify and robustify argument handling.
9097 Revert erroneous comment from 2005-08-23. Extend to allow
9098 keyword negation with `!'.
9099 Update help message. Remove broken code to prevent running
9100 tests multiple times.
9101 * doc/autoconf.texi (testsuite Invocation) < --keywords >:
9102 Update and fix the documentation accordingly.
9103 * tests/autotest.at (Keywords): Renamed to..
9104 (Keywords and ranges): .. this. Extended to make sure negated
9105 keywords, keywords taken from AT_SETUP arguments, and numeric
9106 test ranges work, and that matching is case-insensitive.
9108 2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9110 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
9111 allow to pass unnamed structs even in C++.
9112 (AC_CHECK_SIZEOF): Likewise.
9113 Also fix quoting error in `AC_MSG_FAILURE' arguments.
9114 * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
9115 struct): New tests for unnamed structs, each both native and
9118 * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
9119 a structure inside a cast, for C++ conformance.
9120 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
9121 Also fix quoting error in `AC_MSG_FAILURE' arguments.
9123 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
9124 nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
9125 trying to execute the command `no'.
9127 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
9128 m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
9131 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
9132 example. Do not emphasize `$%', it is hardly new and special.
9133 Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
9135 * doc/autoconf.texi (Limitations of Usual Tools): Document
9136 OpenBSD and traditional `grep' failure to handle multiple
9137 patterns separated by newlines.
9139 2006-03-10 Romain Lenglet <rlenglet@users.forge.objectweb.org>
9141 * doc/autoconf.texi (several sections): Add documentation for macros
9144 2006-03-10 Eric Blake <ebb9@byu.net>
9146 * doc/autoconf.texi (Obsolete Macros): Fix wording of
9149 2006-03-10 Paul Eggert <eggert@cs.ucla.edu>
9151 * doc/autoconf.texi: Use @acronym more consistently for acronyms
9152 like BSD, GPL, LGPL. Fix minor English typos.
9153 (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
9154 Mention that these macros are becoming obsolete.
9155 (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
9156 Use more modern terminology for which standard is what.
9157 (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
9159 (AC_PROG_CXX): Likewise.
9160 (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
9161 Remove obsolete discussion about how to port to K&R.
9162 (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
9163 the obsolescent AC_HEADER_STDC.
9164 (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
9167 2006-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9169 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9170 Remove stdin redirection from /dev/null to allow pipe to work.
9172 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
9174 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
9175 Require that /lib/cpp include stdio.h correctly. Solaris 10's
9176 doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by
9179 2006-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9181 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
9182 HP-UX sed is 99 commands, not 100.
9183 (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
9184 _AC_SUBST_FILES fragment. Separate `{' and `r' commands by
9185 newline for portability.
9186 * tests/torture.at (Torturing config.status): Also test 100
9187 AC_SUBST_FILE invocations. Fix test to actually verify the
9188 AC_CONFIG_FILES output.
9189 * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
9190 command, label, and read-file `r' limits. Unify HP-UX spelling.
9192 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
9194 ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
9196 (autoconfdir, $(AUTOCONF_FILES)): Likewise.
9197 * tests/mktests.sh: Small shell portability fixes.
9199 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9201 * doc/autoconf.texi (Caching Results): Fix the examples to use a
9202 recommended quoting style and discard unwanted output.
9204 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
9206 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
9207 (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
9208 cases, and to work around Tru64 expr bug.
9210 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9212 * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
9213 expr bug that turns the result of a regex match into a number if
9216 2006-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9218 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
9219 HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
9220 in section `Specific Compiler Characteristics'.
9222 2006-03-04 Eric Blake <ebb9@byu.net>
9224 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
9227 2006-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9229 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
9230 order of variable initialization, so even the Solaris 2.6 shell
9231 can create a config header correctly. Fixes lots of test suite
9234 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9236 * doc/autoconf.texi (Text processing Macros): New node to
9237 document the m4sugar macros m4_re_escape, m4_tolower,
9238 m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
9240 2006-02-22 Paul Eggert <eggert@cs.ucla.edu>
9242 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
9243 XrmInitialize (0) -> XrmInitialize ().
9244 Reported by Toshio Kuratomi.
9246 2006-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9248 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
9249 test, as in `if tests; then cmd1; elif ...; else ...; fi'.
9250 * doc/autoconf.texi (Programming in M4sh): Adjusted.
9251 * tests/m4sh.at (AS_IF and AS_CASE): Test this. Also make sure
9252 both macros are defun'ed so that required macros are evaluated
9255 * doc/autoconf.texi (Prerequisite Macros): State more precisely
9256 where a required macro will be expanded.
9257 (Coding Style): Another reason not to use `m4_define'.
9259 2006-02-21 Eric Blake <ebb9@byu.net>
9261 * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
9263 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9265 * doc/autoconf.texi (Looping constructs): New node, to
9266 document m4_for, m4_foreach, m4_foreach_w, and mention
9267 obsolete AC_FOREACH.
9268 (Obsolete Macros): Document AC_FOREACH.
9269 * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
9270 (m4_for): Fix to never loop (almost) endlessly, work correctly
9271 with arithmetic expressions in arguments, a step of zero or
9272 non-integer multiple of the interval, and avoid integer
9274 * tests/m4sugar.at: New test for m4_for, m4_foreach, and
9277 2006-02-20 Romain Lenglet <rlenglet@users.forge.objectweb.org>
9279 Add basic support for Erlang, both for configuring Erlang/OTP
9280 tools, and Erlang as a conf test language.
9281 * lib/autoconf/erlang.m4: New file.
9282 * lib/autoconf/autoconf.m4: Add erlang.m4.
9283 * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
9284 * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
9285 * NEWS: Add short description of new macros.
9286 * THANKS: Add Romain Lenglet.
9288 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9290 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
9291 native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
9293 2006-02-15 Eric Blake <ebb9@byu.net>
9295 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
9298 2006-02-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9300 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
9301 (_AS_CASE): Private helper macro.
9302 * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
9303 * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
9304 Fix syntax of AS_IF description
9305 (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
9306 for the AC_REQUIRE mess.
9307 * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
9310 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
9312 * doc/autoconf.texi: Minor style cleanup.
9313 Be consistent about spaces after commas.
9314 Insert [] where empty args look a bit funny.
9315 Fix some "i.e." and "e.g." usages.
9316 Try to avoid "X/Y" usages.
9317 Don't be pedantic about "ISO C99"; just say C99.
9318 Prefer GNU style for spaces in front of parens.
9319 (Function Portability): Comment about C89 versus C99
9320 signed integer division.
9321 (Particular Headers): Use current gnulib style for dirent
9324 2006-02-14 Stepan Kasal <kasal@ucw.cz>
9325 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9327 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
9328 macros without parameters.
9329 * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
9330 * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
9331 * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
9333 (autoupdate): Updated to match AU_ALIAS fix.
9335 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9336 and Paul Eggert <eggert@cs.ucla.edu>
9338 * doc/autoconf.texi (Programming in M4sh): Document
9339 AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
9341 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9343 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
9344 (AS_BOURNE_COMPATIBLE): ..this.
9345 (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
9347 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
9349 * doc/install.texi (Defining Variables): Tighten up the
9350 CONFIG_SHELL wording.
9352 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
9353 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9355 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
9356 of (set -o) rather than testing whether (set -o posix) succeeds,
9357 to work around a bug in the AIX 5.3 shell. Problem originally
9358 reportd by Howard Chu for libtool.
9360 2006-02-10 J.T. Conklin <jtc@acorntoolworks.com>
9362 * doc/autoconf.texi (Running the Compiler, Running the Linker):
9363 Changes the macro arguments in summaries to match the
9366 2006-02-04 Stepan Kasal <kasal@ucw.cz>
9368 * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
9369 hint as ``a workaround for a bug.''
9371 2006-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9373 * bin/autoreconf.in: New option `--no-recursive'.
9374 Improve wording for subpackages a bit.
9375 * doc/autoconf.texi (autoreconf Invocation): Updated.
9378 * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
9379 in environment of `configure', not the command line.
9380 Reported by Howard Chu <hyc@highlandsun.com>.
9382 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
9384 * doc/autoconf.texi (Limitations of Builtins): Document the
9385 problem with "trap -".
9387 2006-01-23 Steven G. Johnson <stevenj@fftw.org>
9389 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
9390 (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
9391 messages to differentiate Fortran and Fortran 77 tests.
9392 (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
9393 AC_LANG_ASSERT, to allow use in mixed-language projects.
9395 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
9397 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
9398 FOO" to "defined (FOO)".
9399 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
9400 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
9401 * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
9402 * tests/tools.at (ifnames): Likewise.
9404 2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9406 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
9407 * lib/Autom4te/General.pm (mktmpdir): Likewise.
9408 (END): Improve error message a bit.
9409 Reported by Bruce Korb <bkorb@gnu.org>.
9411 2006-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9413 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9414 `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
9416 2006-01-11 Stepan Kasal <kasal@ucw.cz>
9418 * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
9419 requires sys/stream.h. Reported by Oliver Kiddle.
9421 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9422 Stepan Kasal <kasal@ucw.cz>
9424 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
9425 before the removals of test dirs, use `find' to avoid modification
9426 of symlinked directories.
9428 2006-01-11 Steven G. Johnson <stevenj@alum.mit.edu>
9430 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
9431 Don't ignore the macro arguments.
9433 2006-01-11 David Thompson <dthompsn@vizsolutions.com>
9435 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
9436 declaration that works for MSVC.
9438 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9440 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
9441 Add `*.map' and `.inf' for Green Hills compiler.
9442 Reported by Stefan Seefeld <stefan@codesourcery.com>.
9444 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
9445 correctly: pad with spaces after FIRST_PREFIX if necessary,
9446 and compute string lenghts with `m4_qlen' instead of `m4_len'.
9447 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
9448 * tests/m4sh.at (AS_HELP_STRING): Test extended.
9450 Reported by numerous people, numerous times.
9452 2006-01-05 Paul Eggert <eggert@cs.ucla.edu>
9454 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
9455 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
9456 * lib/autoconf/general.m4, lib/autoconf/status.m4:
9457 * lib/autotest/general.m4, tests/local.at:
9458 Update copyright year to 2006.
9460 * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
9462 * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
9463 for file names, again. Reported by Noah Misch.
9464 (Coding Style): Explain that s|a|b| is preferred for file names.
9465 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
9466 (AC_OUTPUT_MAKE_DEFS): Likewise.
9467 * lib/autotest/general.m4 (AT_INIT): Likewise.
9468 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
9469 * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
9471 Fix Posix-conformance bugs re use of { command in sed scripts,
9472 and improve the sed-related documentation a bit.
9473 * doc/autoconf.texi (Installation Directory Variables): Use
9474 our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
9475 rather than "sed" when talking about Sed in general.
9476 (Particular Programs): Likewise.
9477 (Coding Style): y is like s with respect to / and ,.
9478 (Limitations of Usual Tools): Document the weird restrictions
9479 that Posix has about { }. Use better quoting.
9480 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
9481 Rewrite to conform to Posix rules about { } in sed scripts.
9482 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
9483 * tests/foreign.at (Libtool): Likewise.
9484 * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
9485 Use our own style advice re 's,a,b,' versus 's|a|b|'.
9487 2006-01-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9489 * lib/autoconf/status.m4: Fix typo.
9491 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
9492 singly- or doubly-quoted arguments to `-cmdline', `-ignore',
9493 `-def', for the benefit of Portland `pgf90 -Mipa'.
9494 Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
9496 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
9498 * doc/autoconf.texi: Update copyright (and other) dates to 2006.
9499 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
9500 shell from zsh to bash.
9502 2005-12-31 Stepan Kasal <kasal@ucw.cz>
9504 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
9505 ":" caused problems on OS/2-EMX. Suggested by Andrew Belov.
9507 2005-12-29 Paul Eggert <eggert@cs.ucla.edu>
9509 * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
9510 parentheses in $(...). Problem reported by Eric Blake.
9512 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
9514 * doc/autoconf.texi (Limitations of Usual Tools):
9515 Mention which characters can be escaped with \ in portable regular
9516 expressions used in grep, sed, expr. Mention the leading ^ problem
9517 with expr. Clean up some confusing wording. Mention which
9518 grep options are portable.
9520 2005-12-09 Stepan Kasal <kasal@ucw.cz>
9522 * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
9524 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
9526 * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
9527 patch, noted by Ralf Wildenhues.
9529 2005-12-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9531 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
9532 posix' unconditionally, for pdksh in `native sh' emulation.
9534 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
9536 * doc/autoconf.texi (Shellology): Document eval $? problem
9538 (Limitations of Builtins): Likewise.
9540 2005-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9542 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
9543 CONFIG_SHELL in the environment of the configure rerun.
9544 * doc/autoconf.texi (Here-Documents, config.status Invocation):
9545 Suggest passing CONFIG_SHELL absolute, and in the environment
9546 rather than as option.
9548 2005-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9550 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
9551 Fix quoting of output line (triggered for many AC_SUBST_FILEs).
9552 Fix macro quoting. Fix output for n * 98 substituted variables.
9554 2005-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9556 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
9557 `tmp' to avoid file removal race.
9559 2005-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9561 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
9562 ac_clean_files and LIBOBJS.
9564 2005-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9566 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
9567 Factor functionality to..
9568 (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
9569 `AC_SUBST($1)' in the public version.
9570 (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
9571 (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
9574 2005-11-01 Stepan Kasal <kasal@ucw.cz>
9576 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
9579 2005-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9581 * NEWS: Move AH_HEADER mention to right place.
9583 2005-10-27 Stepan Kasal <kasal@ucw.cz>
9585 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
9586 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9588 2005-10-25 Stepan Kasal <kasal@ucw.cz>
9590 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
9591 conftst2.$ac_objext.
9592 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9594 2005-10-24 Stepan Kasal <kasal@ucw.cz>
9596 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
9597 conftest.o, to see whether the compiler really obeys; rm the object
9598 file before and after the test and register it with ac_clean_files.
9599 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
9601 2005-10-21 Stepan Kasal <kasal@ucw.cz>
9603 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
9604 the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
9605 code so that the most common case requires less forks.
9607 2005-10-20 Stepan Kasal <kasal@ucw.cz>
9609 * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
9610 not portable; thanks to Paul Eggert and Alexandre.
9612 * NEWS: Fix an old typo.
9614 2005-10-20 Jim Meyering <jim@meyering.net>
9616 * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
9617 the latter'', in two places.
9619 2005-10-19 Paul Eggert <eggert@cs.ucla.edu>
9621 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
9622 AC_LANG_PROGRAM, fixing a typo. Don't give details about
9623 the inner workings of AC_LANG_FUNC_LINK_TRY.
9624 * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
9625 AC_LANG_FUNC_LINK_TRY. This involves returning the value returned
9626 by the function rather than ignoring it.
9627 (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
9628 comparing its address. Intel's interprocedural optimization was
9629 outsmarting the old heuristic. Problem reported by
9632 2005-10-19 Stepan Kasal <kasal@ucw.cz>
9634 * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
9636 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
9638 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
9639 (m4_map, m4_map_sep): Use it. Handle the empty list correctly.
9641 2005-10-04 Stepan Kasal <kasal@ucw.cz>
9643 * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
9644 before removing it (chmod -R u+rwx); there are three instances of this.
9646 2005-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9647 Stepan Kasal <kasal@ucw.cz>
9649 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
9650 * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
9651 make its content writable before removing it. Remove an errorneous
9652 comment from the end, where the logs of the failed tests are copied
9653 to the main log file.
9655 2005-09-27 Stepan Kasal <kasal@ucw.cz>
9657 * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
9658 in case the computer is too quick. Double quote the configure.ac
9661 * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
9662 problems if the testsuite were running too fast.
9664 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
9666 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
9667 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
9668 (which belong to Xt, not X itself). See Debian bug 327655.
9669 * NEWS: Mention this.
9671 2005-09-07 Stepan Kasal <kasal@ucw.cz>
9673 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
9675 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
9677 * config/move-if-change: Don't output "$2 is unchanged";
9678 suggested by Ben Elliston. Handle weird characters correctly.
9680 2005-09-06 Stepan Kasal <kasal@ucw.cz>
9682 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
9683 calls, so that the final expansion of this macro is shorter.
9684 Create the conftest.$ac_ext outside the `for' loop, to speed the run.
9685 Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
9686 the cleanup there. Use AS_VAR_* macros, to be more general.
9687 * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
9689 * lib/autoconf/general.m4: Use AS_IF where appropriate.
9691 * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
9693 2005-09-01 Stepan Kasal <kasal@ucw.cz>
9695 * doc/autoconf.texi (Configuration Headers): Add an index entry
9698 2005-08-26 Pavel Roskin <proski@gnu.org>
9700 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
9701 XMKMF to locate xmkmf. Make XMKMF precious. Export CC when
9704 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
9706 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
9707 The previous patch didn't work, so try a better one.
9709 2005-08-26 Stepan Kasal <kasal@ucw.cz>
9711 * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
9712 in the example. Reported by Bruno Haible.
9713 <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
9714 "if $undefined_var;" succeeds with my shell.
9716 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
9717 AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
9718 but change the m4_divert_text to m4_divert_once.
9720 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
9722 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
9723 Work around bug in Solaris /usr/xpg4/bin/awk.
9724 The bug is present in at least Solaris 8 through 10.
9726 2005-08-24 Stepan Kasal <kasal@ucw.cz>
9728 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
9729 some evil values and relying on the fact that $* concatenates the
9730 parameters by the first character from IFS.
9732 2005-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
9733 Stepan Kasal <kasal@ucw.cz>
9735 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
9736 first header appears, define AH_HEADER.
9737 * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
9738 Update limitations about when to call AC_CONFIG_HEADERS.
9739 (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
9740 parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
9741 that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
9742 ``Configuration Actions''; fix their index entries.
9744 * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
9745 options correctly. Process N-M as M-N if M is smaller than N.
9746 Process ranges correctly so that N-N will run only N.
9747 Sort and uniquify the tests that will be run. If there is more
9748 than one test, reinsert the banners for the tests.
9749 * tests/autotest.at (Keywords): Unmark XFAIL.
9751 2005-08-23 Stepan Kasal <kasal@ucw.cz>
9753 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
9754 before passing the macro name to AH_TEMPLATE.
9756 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
9757 now opens log after option processing; in particular, --version
9758 and --help do not touch config.log.
9760 * Makefile.maint: Revert the change from 2005-08-12.
9762 2005-08-22 Stepan Kasal <kasal@ucw.cz>
9764 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
9766 (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
9768 2005-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9770 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
9771 (Autotest Logs, Writing testsuite.at, testsuite Invocation):
9774 * doc/autoconf.texi (Defining Symbols, Changed Results):
9775 Prepend to LIBS, not append, in examples.
9777 2005-08-16 Stepan Kasal <kasal@ucw.cz>
9779 When building in place, set srcdir="."; suggested by Tim Van Holder.
9781 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
9782 build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
9783 (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
9784 * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
9785 does not mean "no --srcdir option".
9787 2005-08-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9789 * tests/autoscan.at (autoscan): New file.
9790 * tests/suite.at: Use it.
9791 * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
9792 Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
9794 * tests/autotest.at (Keywords): Test keywords combinations.
9796 2005-08-12 Stepan Kasal <kasal@ucw.cz>
9798 * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
9799 add "2>&1"; gzip 1.2.4 prints help on stderr.
9801 2005-07-27 Stepan Kasal <kasal@ucw.cz>
9803 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
9804 was pushdef'ed twice while popped only once. Push it only once.
9805 (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
9807 2005-07-26 Stepan Kasal <kasal@ucw.cz>
9809 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
9810 prefixed by mere "===", not "configure: === ".
9812 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
9814 * Makefile.maint: Update from Bison.
9816 * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
9817 "<tab>" in comment, so that the point is understandable.
9819 2005-07-25 Stepan Kasal <kasal@ucw.cz>
9821 Rewrite substantial part of lib/autoconf/status.m4.
9822 The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
9823 and CONFIG_COMMANDS are not processed in four separate loops.
9824 Instead, there is one main loop. This alows that the common code
9825 is expanded only once, thus config.status (and configure) is smaller.
9827 The registration mechnism in AC_CONFIG_FILES and cousins also changed;
9828 the AC_LIST_FILES and cousins macros are no longer used.
9830 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
9831 _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
9832 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
9833 _AC_OUTPUT_COMMAND): ..., respectively. These macros no longer
9834 contain the initialization, nor the for loop, nor the associated
9835 commands; all these go to ...
9836 (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
9837 _AC_OUTPUT_CONFIG_STATUS.
9838 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
9839 Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
9840 (_AC_OUTPUT_FILE): The creation of the sed script ...
9841 (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
9842 (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
9843 _AC_OUTPUT_MAIN_LOOP.
9844 (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
9845 _AC_CONFIG_COMMANDS): Use ...
9846 (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
9847 (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
9848 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
9849 _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
9850 (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
9851 (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
9853 (_AC_CONFIG_UNIQUE): Update.
9854 (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
9855 Replaced by this ...
9856 (_AC_LIST_TAGS): ... new common macro.
9857 (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
9858 AC_LIST_COMMAND_COMMANDS): Replaced by this ...
9859 (_AC_LIST_TAG_COMMANDS): ... new common macro.
9860 (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
9861 this didn't belong to the `config commands' section.
9862 (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
9863 (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
9864 AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
9865 to the `config commands' section either.
9866 (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
9867 (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
9869 ... and many changes to the comments nearby.
9871 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
9872 set ac_subdirs_all='_AC_LIST_SUBDIRS'.
9873 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
9874 AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
9875 (#define header templates): The comment at the top of the generated
9876 header now includes the name(s) of the source file(s).
9878 Several unrelated small changes:
9880 * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
9881 parameter to AC_DIAGNOSE.
9882 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
9883 (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
9884 with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
9885 (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
9887 (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
9888 in AC_OUTPUT doesn't double-quote it either.
9889 * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
9892 2005-07-10 Stepan Kasal <kasal@ucw.cz>
9894 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
9895 versions of Portland Group compiler produce single- and double-quoted
9896 -cmdline argument. Reported by Steven G. Johnson <stevenj@fftw.org>
9897 and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
9899 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9901 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9902 This is a corrected version of yesterday's patch.
9904 2005-07-07 Stepan Kasal <kasal@ucw.cz>
9906 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
9907 path, too; insert a "===" to emphasize the line.
9909 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
9910 ac_cv_build_alias to ac_build_alias.
9911 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
9913 On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
9914 change eliminates it. Problem reported by Alexandre Duret-Lutz.
9915 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
9916 (AC_ARG_VAR): ... here.
9917 (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
9920 Keep a list of all precious variables and process them with one simple
9921 for loop, instead of expanding all commands, or, OTOH, complicated
9922 processing of output of "set".
9923 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
9924 variable names in new macro...
9925 (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
9926 (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
9927 a loop to assign all ac_env_* and ac_cv_env_* variables.
9928 (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
9930 (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
9931 its value to shell variable ac_precious_vars and call
9932 _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
9933 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
9934 _AC_ARG_VAR_VALIDATE.
9936 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
9937 and the AC_SUBSTs ...
9938 (AC_INIT): ... here.
9940 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
9941 the ac_subst_files section in config.log.
9943 * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
9945 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9947 * NEWS: New macro AC_C_TYPEOF.
9948 * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
9949 * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
9950 * tests/c.at (C keywords): Test AC_C_TYPEOF.
9952 Fix problems reported by Nicolas Joly.
9953 * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
9954 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
9955 They are generated by the Tru64 v5.1B shell.
9957 2005-07-05 Stepan Kasal <kasal@ucw.cz>
9959 Fix my changes from 2005-07-01; reported by Noah Misch.
9960 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
9961 description, the macro now accepts only a single tag.
9962 (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
9964 Fix cases when the varsions of Autoconf and Autotest don't match.
9965 Reported by Noah Misch.
9966 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
9967 at_top_builddir, for compatibility with older autotest.
9968 * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
9969 is not set, use at_top_builddir, for compatibility with older
9970 versions of autoconf.
9972 2005-07-04 Paul Eggert <eggert@cs.ucla.edu>
9974 * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
9975 Problem reported by Patrick Welche.
9977 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9979 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
9980 sed substitution command, so that we allow | in program prefixes
9981 and program suffixes. (& is a problem anyway; we're not fixing
9983 * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
9984 configure_input, top_builddir, srcdir, etc.
9985 * lib/autotest/general.m4 (AT_INIT): Likewise, for
9986 PATH_SEPARATOR in AUTOTEST_PATH.
9988 2005-07-02 Alexandre Duret-Lutz <adl@gnu.org>
9990 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
9991 for loop over config.site files using `set', to allow
9992 directory names containing IFS characters.
9994 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9996 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
9997 directories with weird names. Apparently some people like living
9998 on the edge. However, improve the test that "pwd" actually does
9999 report a name for the working directory.
10000 * NEWS: Remove the claim that we test for funny chars in dir names.
10002 2005-07-01 Stepan Kasal <kasal@ucw.cz>
10004 * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
10006 * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
10007 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
10008 Now accept a single tag, not whitespace separated list.
10009 (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
10011 2005-06-30 Stepan Kasal <kasal@ucw.cz>
10013 * doc/autoconf.texi (Configuration Headers): Change the explanation
10014 about #include <config.h>.
10015 (Generic Functions): Mention the Gnulib project.
10016 (Limitations of Usual Tools) <sed>: Another minor rephrasing.
10018 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
10019 document to output the default config_* lists to config.status.
10020 Don't recognize option --file, if the functionality is not there.
10021 Likewise for --header; moreover, recognize --he and --h as shortcuts
10022 for --help in that case.
10024 * lib/autoconf/status.m4: Fix the order of the "sections", so that it
10025 matches the order of execution. No code changed.
10027 2005-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10029 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
10030 single-quoted -cmdline argument in Portland Group compiler.
10031 Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
10033 2005-06-30 Alexandre Duret-Lutz <adl@gnu.org>
10035 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
10037 2005-06-29 Stepan Kasal <kasal@ucw.cz>
10039 * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
10040 descriptors to child processes; reported by Norman Gray.
10042 2005-06-29 Stepan Kasal <kasal@ucw.cz>
10044 * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
10046 * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
10047 instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
10048 (AC_SUBST): Call it.
10049 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
10050 the directory specific variables; but don't call it for configure_input.
10052 2005-06-28 Derek Price <derek@ximbiot.com>
10054 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
10057 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
10059 * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
10060 directory have inherent problems with special characters like spaces,
10061 due to limitations in Make syntax. Problem reported by Alexandre
10063 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
10064 Also, fix Tru64 porting problem with shell patterns,
10065 reported by Ralf Wildenhues.
10067 2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10069 * doc/autoconf.texi (Subdirectories): Fix markup typos.
10071 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
10073 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
10075 Fix some more shell quoting problems. Prompted by a bug report
10076 from Justace Clutter.
10077 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
10078 variable into diagnostic. Make the diagnostic an error, not a warning,
10079 because we really don't support spaces and suchlike in dir names.
10080 (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
10081 Don't worry about backslashes in srcdir; it can't happen now.
10082 (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
10083 Simplify ac_optarg handling.
10084 (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
10086 2005-06-22 Stepan Kasal <kasal@ucw.cz>
10088 Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
10089 * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
10090 * tests/atlocal.in: Propagate $EGREP and $SED.
10091 * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
10092 (AT_CONFIG_CMP): Use sed instead of grep plumbing.
10094 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
10095 that '\|' is not allowed in BREs; recommend using newline separated
10096 list of patterns instead of multiple -e options.
10098 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
10100 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
10102 2005-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10104 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
10106 2005-06-21 Stepan Kasal <kasal@ucw.cz>
10108 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
10109 b, t, r, w commands require single space, while : cannot have any.
10110 (Special Shell Variables): Fix sed code this in the example.
10111 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
10112 * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
10114 * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
10115 expand to the empty list. Don't use two pairs of m4_changequote,
10116 it's not necessary.
10118 2005-06-20 Derek Price <derek@ximbiot.com>
10120 * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
10122 2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
10124 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
10125 * doc/autoconf.texi:
10126 Don't mention Solaris versions so much, if a
10127 problem is common to all extant versions of Solaris. Say "SunOS
10128 4" instead of "SunOS" for SunOS 4.
10129 (awk): Mention more of the limitations of traditional Awk.
10130 (cat): Don't talk about cat -v.
10132 2005-06-16 Paul Eggert <eggert@cs.ucla.edu>
10134 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
10135 (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
10136 but the implementation is entirely different and is designed
10137 to be compatible with glibc strverscmp.
10138 * tests/m4sh.at (AS_VERSION_COMPARE): New test.
10140 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
10141 on Mac OS X 10.4 reported by Peter O'Gorman in:
10142 http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
10143 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
10144 Use shell builtins rather than 'expr', to work around expr bug.
10146 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
10148 * doc/autoconf.texi: "filesystem" -> "file system".
10149 "behaviour" -> "behavior".
10150 Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
10151 * lib/autoconf/general.m4: Omit blank after ":" sed command,
10153 * lib/m4sugar/m4sh.m4: Likewise.
10154 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
10155 with Solaris sed. Fix by Ralf Menzel and Stepan Kasal.
10157 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
10158 (.x.1): Ignore the time stamp in the .TH line when deciding whether
10159 to update the man page. That way, we don't have to check in new
10160 man pages every month.
10162 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
10163 quotes and backslashes. Patch from Derek Price.
10165 2005-06-10 Derek Price <derek@ximbiot.com>
10167 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
10170 2005-06-08 Paul Eggert <eggert@cs.ucla.edu>
10172 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
10173 -u, since it outputs chatter if the input files are the same.
10174 Problem reported by Ralf Menzel.
10176 2005-06-08 Derek Price <derek@ximbiot.com>
10178 * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
10179 renaming them since they are about to be redefined anyhow.
10181 2005-06-08 Derek Price <derek@ximbiot.com>
10183 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
10184 redefined M4 macros to this node. Document m4_include & m4_sinclude.
10185 Move m4_undefine to alphabetical order.
10187 2005-06-07 Paul Eggert <eggert@cs.ucla.edu>
10189 * README: Recommend GNU M4 1.4.3 or later.
10190 * doc/autoconf.texi (Introduction): Likewise.
10191 Reword to avoid some formatting glitches.
10192 Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
10193 Clarify explanation of HP compiler bug.
10194 Redo example output tp match current CVS snapshot.
10195 Use @example.org in email addresses when the examples
10196 might get inadvertently cut-and-pasted into user code.
10197 Remove example of autom4te usage that doesn't seem to work now.
10198 Use modern AC_INIT (except when the example is meant to be
10199 shown with Autoconf 2.13).
10200 Update ksh info for Solaris 9 and later.
10202 Modernize description of Automake versions a bit.
10203 Don't claim a future version of Autoconf is near.
10204 * doc/install.texi: Reword to avoid some formatting glitches.
10206 2005-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10208 * doc/autoconf.texi: Add [] to examples, so that the manual
10209 follows its own advice about quoting better.
10210 Reword to avoid some formatting glitches.
10211 * doc/installt.exi: Reword to avoid some formatting glitches.
10213 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
10214 Tru64 ksh pattern matching bug. Reported against Libtool by
10215 Albert Chin <libtool@mlists.thewrittenword.com> and
10216 Nicolas Joly <njoly@pasteur.fr>.
10218 2005-06-06 Stepan Kasal <kasal@ucw.cz>
10220 m4_cdr of one-member list was [[]] (one-member list containing an
10221 empty string) instead of [] (an empty list. Callers were skewed to
10222 match this misbehaviour. As a consequence of this:
10223 - m4_foreach([x], [], [foo]) expanded to `foo', while
10224 - the expansion of m4_foreach([x], [[]], [foo]) was empty.
10225 This bug has been fixed:
10227 * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
10228 expand to an empty string; print error msg if called without
10230 (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
10231 misbehaviour; handle [] and [[]] correctly.
10233 2005-06-06 Stepan Kasal <kasal@ucw.cz>
10235 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
10236 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
10237 scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
10239 2005-06-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (trivial change)
10241 * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
10242 swallow records with more than 99 fields.
10243 * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
10244 parse the long line.
10246 2005-06-04 Stepan Kasal <kasal@ucw.cz>
10248 * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
10249 swallow literals longer than 399. Reported by Ralf Wildenhues.
10250 * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
10251 to workaround this limitation.
10253 2005-06-03 Steven G. Johnson <stevenj@alum.mit.edu>
10255 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
10256 to gfortran, and make these the first two compiler names
10257 checked (following the general autoconf preference for gcc).
10259 2005-06-03 Stepan Kasal <kasal@ucw.cz>
10261 * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
10262 (DISTCLEANFILES): Remove $(check_SCRIPTS).
10263 (testsuite): Make sure autotest.m4f is up-to-date before using it.
10265 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
10267 * lib/autotest/general.m4 (AT_INIT): Don't create a regular
10268 expression of unbounded size when processing the --list
10269 option. This runs afoul of a limit of 399 bytes per regular
10270 expression on AIX. Problem reported by Ralf Wildenhues.
10272 2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
10274 * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
10275 * doc/autoconf.texi (Particular Headers): Reword example
10276 for multiline stdbool replacement.
10277 (Setting Output Variables): Reword text a bit. Don't
10278 give all the details about |#_!!_#|.
10279 Reword description of line replacement.
10281 2005-05-31 Dan Manthey <dan_manthey@partech.com>
10283 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
10284 now contain newlines, and substituted files must be referenced on
10285 a line alone; the sed scripts to substitute them are now very
10287 (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
10288 commands can be put in a sed script portably.
10289 * doc/autoconf.texi (Setting Output Variables): Document above
10290 changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
10291 use of multiline substitution.
10292 * tests/torture.at: No longer expect substitution of newline to fail.
10294 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
10296 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
10297 From Ralf Menzel (trivial change).
10299 2005-05-25 Paul Eggert <eggert@cs.ucla.edu>
10301 * tests/local.at: Don't attempt to check for negated character
10302 classes in shell scripts. The test was too brittle.
10304 2005-05-25 Stepan Kasal <kasal@ucw.cz>
10306 * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
10307 * doc/autoconf.texi (Limitations of Builtins): Document this
10310 2005-05-24 Stepan Kasal <kasal@ucw.cz>
10312 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
10313 common code; used in many places in the tree.
10314 (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
10315 (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
10317 * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
10319 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
10320 messages when ac_unique_file is not found.
10321 (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
10322 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
10323 commands, for consistency with AC_MSG_ERROR and such.
10325 * bin/autoconf.as: Make more use of "shift 2" in option processing.
10327 * bin/Makefile.am: Merge the two rules for creating scripts.
10329 2005-05-23 Stepan Kasal <kasal@ucw.cz>
10331 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
10332 obsolete; it was never documented.
10333 (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
10335 2005-05-20 Stepan Kasal <kasal@ucw.cz>
10337 * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
10338 * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
10339 (ac_top_builddir): ... this ...
10340 (ac_top_build_prefix): ... to this; the old name is also kept, for
10341 backward compatibility.
10342 (ac_top_builddir_sub): New variable, without the trailing slash,
10344 (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
10345 * doc/autoconf.texi (Configuration Actions): Rename
10346 ac_top_builddir to ac_top_build_prefix.
10347 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
10348 at_top_builddir to at_top_build_prefix.
10349 * lib/autotest/general.m4 (AT_INIT): Likewise.
10351 2005-05-20 Stepan Kasal <kasal@ucw.cz>
10353 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
10356 2005-05-17 Stepan Kasal <kasal@ucw.cz>
10358 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
10359 argument to m4_foreach. I guess it was necessary in the past,
10360 but I think it's a no-op now.
10362 2005-05-17 Stepan Kasal <kasal@ucw.cz>
10364 * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
10365 ``cat <<_ACEOF'' commands to one.
10366 (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
10367 * lib/autoconf/status.m4: On various places, use expr instead of
10369 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
10370 (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
10371 * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
10373 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
10374 the wrong patterns between ``case'' and ``esac.'' The previous
10375 code had false positives.
10377 2005-05-14 Alexandre Duret-Lutz <adl@gnu.org>
10379 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
10381 * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
10384 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
10386 * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
10387 ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
10388 Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
10389 bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
10390 bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
10391 bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
10392 config/config.guess, config/config.sub, config/elisp-comp,
10393 config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
10394 doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
10395 lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
10396 lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
10397 lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
10398 lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
10399 lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
10400 lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
10401 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
10402 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
10403 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
10404 lib/autoconf/general.m4, lib/autoconf/headers.m4,
10405 lib/autoconf/lang.m4, lib/autoconf/libs.m4,
10406 lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
10407 lib/autoconf/specific.m4, lib/autoconf/status.m4,
10408 lib/autoconf/types.m4, lib/autoscan/Makefile.am,
10409 lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
10410 lib/autotest/Makefile.am, lib/autotest/autotest.m4,
10411 lib/autotest/general.m4, lib/emacs/Makefile.am,
10412 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
10413 lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
10414 lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
10415 tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
10416 tests/compile.at, tests/foreign.at, tests/fortran.at,
10417 tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10418 tests/semantics.at, tests/suite.at, tests/tools.at,
10419 tests/torture.at, tests/wrapper.as:
10420 Update FSF postal mail address.
10422 2005-05-13 Stepan Kasal <kasal@ucw.cz>
10424 * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
10426 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
10427 enough arguments, similarly as in m4_bpatsubsts.
10429 2005-05-12 Stepan Kasal <kasal@ucw.cz>
10431 * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
10434 2005-05-11 Stepan Kasal <kasal@ucw.cz>
10436 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
10437 for absolute directory names in one loop.
10438 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
10439 abbreviations of --version and --debug.
10441 2005-05-10 Paul Eggert <eggert@cs.ucla.edu>
10443 * doc/autoconf.texi (Autoconf Language): Be more precise about
10444 quoting rules. Problems noted by Stepan Kasal.
10445 Also, throughout this document, be more careful about white space.
10446 "blank", "white space", and "space" all have different meanings
10447 and we should be careful to say what we mean.
10449 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
10451 Fix C++ related problems reported by Werner Lemberg.
10452 * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
10453 * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
10454 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
10455 avoid problems with C++ and throw.
10456 * tests/compile.at: .cpp, not .cc.
10458 * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
10460 2005-05-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10462 * doc/autoconf.texi (Generic Functions): Typos.
10464 2005-05-02 Gary V. Vaughan <gary@gnu.org>
10466 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
10467 object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
10468 set by latest automake.
10470 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10472 * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
10473 outputs 0 on GNU/Linux these days.
10475 2005-04-29 Paul Eggert <eggert@cs.ucla.edu>
10477 * doc/autoconf.texi (Autoconf Language): Add more description
10478 about quoting heuristics.
10479 (Limitations of Builtins): Describe "set -" problems.
10481 2005-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10483 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
10486 * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
10487 by AC_DEFINE; it was a mistake.
10488 From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
10490 2005-04-25 Stepan Kasal <kasal@ucw.cz>
10492 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
10494 2005-04-22 Stepan Kasal <kasal@ucw.cz>
10496 * doc/autoconf.texi (External Software): Quadrigraphs are not
10497 processed correctly in AS_HELP_STRING; avoid this in the examples.
10498 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
10499 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
10500 comment and reduce m4_default([foo], []) to [foo].
10501 (m4_strip): Update the explanation.
10503 2005-04-19 Paul Eggert <eggert@cs.ucla.edu>
10505 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
10506 Remove core.conftest.* too; it's generated by Tru64 5.1.
10507 Problem reported by Jennis Pruett.
10508 * lib/autoconf/functions.m4
10509 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
10510 Don't bother to remove core files; AC_RUN_IFELSE should do that
10513 2005-04-19 Stepan Kasal <kasal@ucw.cz>
10515 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
10517 2005-04-19 Alexandre Duret-Lutz <adl@gnu.org>
10519 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
10520 Report from Horst Wente.
10522 2005-04-15 Stepan Kasal <kasal@ucw.cz>
10524 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
10527 2005-04-14 Gregorio Guidi <greg_g@gentoo.org>
10529 * doc/autoconf.texi (External Software, Package Options): Add
10530 examples showing how to implement --with-* and --enable-* options.
10532 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
10534 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
10535 as well as configure.in. Problem reported by Gregorio Guidi.
10537 2005-04-10 Paul Eggert <eggert@cs.ucla.edu>
10539 * doc/autoconf.texi (Particular Functions): Use gnulib's current
10540 pattern for alloca snippet.
10542 2005-04-04 Stepan Kasal <kasal@ucw.cz>
10544 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
10546 2005-04-01 Stepan Kasal <kasal@ucw.cz>
10548 * doc/autoconf.texi (Generic Programs): Fix a typo.
10550 2005-04-01 Paul Eggert <eggert@cs.ucla.edu>
10552 * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
10553 fails if %s isn't supported. Problem reported by Ralf Wildenhues.
10555 2005-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10557 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
10558 Merge `-z option' as well for the benefit of Solaris link flags. Pass
10559 whole-archive (-zallextract, -zdefaultextract) options in the hope of
10560 unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported
10561 against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
10563 2005-03-22 Paul Eggert <eggert@cs.ucla.edu>
10565 * NEWS: The configure command now warns you if you attempt to use
10566 a directory whose name contains a special character like space,
10568 * doc/autoconf.texi (Installation Directory Variables): Allow
10569 "," in file names. Do not use \@; it's not a portable regexp.
10570 * bin/Makefile.am (edit): Likewise.
10571 * lib/Makefile.am (edit): Likewise.
10572 * tests/Makefile.am (edit): Likewise.
10573 * tests/semantics.at: Likewise.
10574 * tests/torture.at: Likewise.
10575 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
10576 * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
10577 * doc/autoconf.texi (File System Conventions): Warn about
10578 unportable file names.
10579 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
10581 (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
10582 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
10583 ac_pwd, and quote srcdir.
10584 * lib/autotest/general.m4 (AT_INIT): Quote file name args.
10586 * doc/autoconf.texi: Fix some systematic formatting problems.
10587 ".)" needs a following @: if not at the end of a sentence, and
10588 similarly for "!)". "etc." should be preceded by a comma.
10589 "n-th" -> "@var{n}th". pdksh is still buggy, so update its date.
10591 2005-03-22 Bruno Haible <bruno@clisp.org>
10593 * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
10594 argument is often called 'build-aux'.
10596 2005-03-07 Stepan Kasal <kasal@ucw.cz>
10598 * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
10599 macro AC_TRY_LINK is obsolete.
10600 (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
10603 2005-02-24 Stepan Kasal <kasal@ucw.cz>
10605 * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
10606 `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
10607 from a Common Lisp's `cl'.
10608 (AC_PROG_CXX): Behave according to the documentation: don't
10609 search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
10610 make the variable CCC precious; use `cl.exe', not `cl'.
10612 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
10613 Alexandre Duret-Lutz <adl@gnu.org>
10615 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
10616 /dev/null, as "configure" shouldn't read stdin, and this insulates
10617 us from problems (e.g., when testing for "cl"). Also, do this
10618 redirection before invoking "hostname" or "uname", and keep the
10619 original input stream available via...
10620 (AS_ORIGINAL_STDIN_FD): ... this new macro.
10621 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
10622 bother with "</dev/null" since it's now done at the top of
10624 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
10625 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10626 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
10627 * doc/autoconf.texi (File Descriptor Macros): New section.
10628 (Printing Messages): Mention it.
10629 * tests/base.at (Input/Output): New test.
10631 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
10633 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
10634 newline if neither \c nor -n work, as that would output two
10635 newlines. Prefer -n to \c. Reported by Stepan Kasal.
10637 2005-02-12 Stepan Kasal <kasal@ucw.cz>
10639 * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
10640 This causes that any required macros inside will get before the if.
10641 * doc/autoconf.texi (autom4te.cache): A typo.
10643 2005-02-12 Paul Eggert <eggert@cs.ucla.edu>
10645 Undo previous change, except keep the change to
10646 lib/autoconf/programs.m4 that replaced grep with shell
10647 pattern-matching. This is because net-snmp configure reads stdin.
10648 Reported by Noah Misch.
10650 2005-02-11 Paul Eggert <eggert@cs.ucla.edu>
10652 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
10653 from /dev/null, as "configure" shouldn't read stdin, and this
10654 insulates us from problems (e.g., when testing for "cl").
10655 Suggested by Alexandre Duret-Lutz. Also, do this redirection
10656 before invoking "hostname" or "uname".
10657 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
10658 _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
10659 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
10660 "</dev/null" since it's now done at the top of 'configure'.
10661 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10662 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
10663 Also, replace grep with shell pattern-matching, to save a process.
10665 2005-02-10 Paul Eggert <eggert@cs.ucla.edu>
10667 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
10668 _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
10669 avoid thinking that Allegro Common Lisp's "cl" command is a C++
10672 2005-02-09 Paul Eggert <eggert@cs.ucla.edu>
10674 * doc/autoconf.texi (Limitations of Usual Tools): Document that
10675 grep -q isn't portable. Improve grep -s explanation.
10676 Problem reported by Dan Manthey.
10678 2005-02-08 Paul Eggert <eggert@cs.ucla.edu>
10680 * doc/autoconf.texi (Special Shell Variables): Clarify
10681 PATH_SEPARATOR wording; fix typo in IFS. Reported by Gary V. Vaughan.
10683 2005-02-07 Paul Eggert <eggert@cs.ucla.edu>
10685 * doc/autoconf.texi: Use @acronym for DJGPP.
10686 Fix some @code's that should have been @env's, and vice versa.
10687 Sort environment variable names.
10688 Mention that shells no longer inherit IFS.
10689 Don't recommend PATH_SEPARATOR=';' so strongly.
10690 Mention that $RANDOM might expand to the empty string.
10691 "symlink" and "soft link" -> "symbolic link".
10692 Improve mktemp description (reported by Bruno Haible).
10694 2005-02-05 Paul Eggert <eggert@cs.ucla.edu>
10696 * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
10697 * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
10699 * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
10702 2005-02-04 Paul Eggert <eggert@cs.ucla.edu>
10704 * NEWS: Mention AT_COPYRIGHT.
10706 * tests/local.at (AT_CMP): Use diff directly on input files rather
10709 * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
10710 /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
10712 2005-02-04 Noah Misch <noah@cs.caltech.edu>
10713 and Paul Eggert <eggert@cs.ucla.edu>
10715 * tests/autotest.at (Empty test suite): New test.
10716 * tests/torture.at (Substitute and define special characters)
10717 (Substitute a 2000-byte string, Define to a 2000-byte string)
10718 (Substitute a newline, Define a newline): New tests.
10720 2005-02-04 Noah Misch <noah@cs.caltech.edu>
10722 * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
10723 * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
10724 (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
10725 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
10726 (Standard regular expressions): New test.
10727 (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
10728 excess test name quoting.
10729 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
10730 CPPFLAGS to `configure' instead of setting it in `configure'.
10732 * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
10733 any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
10736 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
10737 s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
10739 * tests/local.at (AT_CMP): New macro.
10740 (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
10741 (AC_SAVE_STATE): Move environment grep...
10742 (AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
10743 (AT_CONFIG_CMP): New macro.
10744 (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
10745 * tests/c.at (Extensions): Do not exit early.
10746 * tests/atlocal.in: Inherit $GREP.
10748 * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
10749 (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
10751 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
10752 (AC_COPYRIGHT): Factor header comment portion out and move into...
10753 * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
10754 * lib/autotest/general.at (AT_COPYRIGHT): New macro.
10755 (AT_INIT): Add Autotest copyright notice. Display copyright notices in
10757 * tests/local.at: Add Autoconf test suite copyright notice.
10758 * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
10760 2005-02-04 Bruno Haible <bruno@clisp.org>
10761 and Paul Eggert <eggert@cs.ucla.edu>
10763 * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
10765 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10767 * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
10768 this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
10770 Try not to generated lines of unlimited length, as POSIX places a
10771 2047-byte limit on line length of portable text files.
10772 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
10773 Use newline as a separator, not space.
10774 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
10775 (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
10778 2005-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10780 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
10781 as_func_*. Add test to check whether positional parameters
10782 are restored after function return.
10784 2005-02-02 Paul Eggert <eggert@cs.ucla.edu>
10786 * doc/autoconf.texi (Special Shell Variables): Mention _,
10787 BIN_SH, DUALCASE. Say that variables other than "status" are safe
10788 if they contain a lower-case letter. The DUALCASE problem was
10789 reported by Ralf Wildenhues.
10791 * bin/autoconf.as: Don't exit with status 0 after write failure
10792 with --help or --version.
10793 * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
10794 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
10796 2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10798 * doc/autoconf.texi (Limitations of Usual Tools):
10799 Unicos 9 sed limitations.
10800 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
10801 to get the option-enhanced interface on older Crays. Try ftn for
10802 Fortran 95 (newer Crays).
10804 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
10806 * man/Makefile.am (.x.1): Go back to the simple solution, but take
10807 care to echo the commands, so the user knows what's going on.
10808 Modified from a suggestion by Stepan Kasal.
10810 * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
10811 with a cross reference. Derived from a suggestion by Bruce Korb.
10813 2005-01-31 Paul Eggert <eggert@cs.ucla.edu>
10815 * doc/autoconf.texi (config.status Invocation): Warn about
10816 discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
10817 * doc/install.texi (Defining Variables): Likewise.
10818 Based on a proposed patch by Ralf Wildenhues.
10820 * man/Makefile.am (.x.1): Make sure the required generated files
10821 are up to date. Problem and original solution proposed by Stepan Kasal.
10822 $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
10823 implicit-man-prerequisites): New rules, used by the above.
10825 * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
10826 * config/config.guess, config/config.sub, config/install-sh: Likewise.
10827 * config/missing, config/texinfo.tex: Likewise.
10829 2005-01-29 Stepan Kasal <kasal@ucw.cz>
10831 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
10832 Update the long comment explaining it.
10834 m4_require no longer writes an ``is required by'' line to the
10835 execution stack. It contains only one bit of non-redundant
10836 information: that the macro was required, not called. And even
10837 this bit is useless in most situations: have you ever met a macro
10838 which both calls and requires the same macro?
10840 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
10841 (_m4_defun_pro_outer): ... only via this macro, for the outermost
10843 (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
10844 (m4_expansion_stack_pop): Remove the misplaced comment.
10845 (m4_require): Don't put the ``is required by'' line to the
10846 execution stack; slightly improve the out-of-a-defun error message.
10847 (_m4_divert_grow): New macro, counter for the temporary diversions.
10848 (_m4_require_call): Use it.
10849 * tests/m4sugar.at (m4_require): Expect output without the
10850 ``is required by'' messages.
10852 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10854 * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
10855 rather than x for expr.
10857 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
10859 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
10860 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10861 * lib/autotest/general.m4 (AT_INIT): Likewise.
10862 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
10863 * tests/mktests.sh: Likewise.
10865 2005-01-27 Akim Demaille <akim@epita.fr>
10867 Have autoheader honor --force.
10869 * doc/make-stds.texi, doc/standards.texi: Update from masters.
10870 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
10871 * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
10872 from masters, so that FileUtils.pm's update_file provide --force
10874 * bin/autoheader.in: Pass $force to update_file so that
10875 config.h.in is always recreated when --force.
10877 2005-01-24 Stepan Kasal <kasal@ucw.cz>
10879 * doc/autoconf.texi (Introduction): Update Peter Simons' address.
10881 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
10883 * doc/autoconf.texi (Limitations of Builtins): Clarify that
10884 "if test ! -d foo; ..." is portable. Suggested by Stepan Kasal.
10886 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10888 * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
10889 Warn about newline stripping in `` and $(). Update Solaris
10891 (Limitations of Builtins): Use expr "X...", not expr "x...", as
10892 X insulates us from future changes to Posix.
10893 (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
10896 2005-01-19 Stepan Kasal <kasal@ucw.cz>
10898 * doc/autoconf.texi (Defining Symbols): Delete the false comment that
10899 you cannot use AC_DEFINE to define macros containing `[' or `]'.
10901 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
10903 * doc/autoconf.texi (Limitations of Usual Tools): Document bug
10904 in Solaris 8 join. Problem reported by Tomohiro Suzuki on
10905 bug-tar mailing list.
10907 2005-01-05 Stepan Kasal <kasal@ucw.cz>
10909 * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
10911 2005-01-05 Paul Eggert <eggert@cs.ucla.edu>
10913 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
10914 ulongval to be static, to avoid unwanted GCC warning. Problem
10915 reported by Michael Jennings via Daniel Reed; see
10916 <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
10918 2005-01-05 Alexandre Duret-Lutz <adl@gnu.org>
10920 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
10921 docdir, htmldir, dvidir, pdfdir, psdir, and localdir. Update
10922 datadir, infodir, and mandir. Adjust argument parsing code.
10923 (_AC_INIT_HELP): Update help text.
10924 * doc/autoconf.texi (Installation Directory Variables): Document
10927 2005-01-04 Noah Misch <noah@cs.caltech.edu>
10929 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
10930 not seem to work, assume it does set $(MAKE).
10931 * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
10933 2005-01-03 Stepan Kasal <kasal@ucw.cz>
10935 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
10937 2005-01-03 Stepan Kasal <kasal@ucw.cz>
10939 A cleanup of the diversion support in m4sugar.
10941 * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
10942 (_m4_divert_n_stack): New macro; the expansion is
10943 <newline>m4_divert_stack, if m4_divert_stack is defined, and void
10945 (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
10946 (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
10947 stored in _m4_divert_diversion or _m4_divert_dump.
10948 (m4_divert_pop): When the parameter is given, compare the symbolic
10949 name with the last diversion pushed on the stack. Previously, the
10950 current diversion was compared with the numeric value of the
10951 diversion given as the parameter.
10952 (m4_require): If the macro hasn't been expanded yet, call ...
10953 (_m4_require_call): this new macro.
10955 2005-01-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10957 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
10958 Workarounds for documented `case' limitations.
10960 2005-01-03 Paul Eggert <eggert@cs.ucla.edu>
10962 * doc/autoconf.texi (Limitations of Usual Tools): Warn about
10963 sed 'command1;command2'. Problem reported by Ralf Wildenhues.
10965 2005-01-02 Paul Eggert <eggert@cs.ucla.edu>
10967 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
10968 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
10969 bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
10971 Patch from Roger Leigh (with some minor changes) as follows:
10972 * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
10973 Resurrect AC_PROG_CC_STDC.
10974 * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
10975 AC_PROG_CC_C89, AC_PROG_CC_C99.
10976 (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
10977 * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
10978 AC_PROG_CC_C99): New macros.
10979 (AC_PROG_CC_STDC): Use them.
10980 (_AC_PROG_CC_STDC): Remove.
10981 (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
10982 * THANKS: Add Roger Leigh.
10984 2004-12-30 Noah Misch <noah@cs.caltech.edu>
10986 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
10987 signals that the package uses Automake; a `Makefile.am' is typical but
10988 not essential. Reported by Magnus Therning.
10989 * tests/torture.at (autoreconf.): New banner.
10990 (autoreconf and non-AC configure): Rename to `Non-Autoconf
10991 AC_CONFIG_SUBDIRS'.
10992 (autoreconf an empty directory): Rename to `Empty directory'.
10993 (Unusual Automake input files): New test.
10995 2004-12-30 Noah Misch <noah@cs.caltech.edu>
10997 * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
10998 (AT_SETUP): Clear AT_capture_files.
10999 (_AT_CHECK): On failure, log each of AT_capture_files. Fix comment.
11000 (AT_KEYWORDS): Fix comment typo.
11001 * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
11002 * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
11003 * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
11005 2004-12-29 Albert Chin-A-Young <china@thewrittenword.com>
11007 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
11008 If the variable to set is already set, set ac_cv_path_$1
11009 to the preset value so caller can assume ac_cv_path_$1
11010 is available. (trivial change)
11012 2004-12-27 Noah Misch <noah@cs.caltech.edu>
11014 * BUGS (Minor Problems): Warn about makefile limitations.
11015 * Makefile.am: Find and update `INSTALL' in $(srcdir).
11016 * man/Makefile.am: Find and update manual pages in $(srcdir).
11018 2004-12-24 Eric Blake <ebb9@byu.net>
11020 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
11021 shells in subshell, to avoid noise from ash. (trivial change)
11023 2004-12-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11025 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
11026 problems with SunOS ksh and backslash escaping, Bourne shells and
11027 closing brackets (both within character classes). Bug reported
11028 against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
11029 <read>: New entry. Mention non-availability of -r.
11031 2004-12-21 Akim Demaille <akim@epita.fr>
11033 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
11034 avoid cluttering displayed messages. Rather, prepend srcdir where
11035 AT_LINE is used for log files.
11037 2004-12-21 Stepan Kasal <kasal@ucw.cz>
11039 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
11040 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
11041 no longer part of the macro, quote the occurrence of ``$tmp''.
11042 * doc/autoconf.texi (Forbidden Patterns): Typo.
11044 2004-12-21 Akim Demaille <akim@epita.fr>
11046 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
11047 separated from the test title by forcing a white space.
11049 2004-12-21 Akim Demaille <akim@epita.fr>
11051 Enable Emacs navigation within testsuite.log files.
11053 * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
11054 use the compilation mode.
11055 (AT_LINE): Point to the srcdir.
11057 2004-12-19 Noah Misch <noah@cs.caltech.edu>
11059 * tests/Makefile.am (installcheck-local): Use $(bindir).
11060 (check-local, installcheck-local): Pass TESTSUITEFLAGS.
11061 * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
11062 Makefile.am scheme Autoconf now uses.
11064 2004-12-18 Noah Misch <noah@cs.caltech.edu>
11066 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
11067 * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
11069 2004-12-18 Noah Misch <noah@cs.caltech.edu>
11071 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
11072 (_AT_CHECK): Use it.
11073 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
11074 (AS_ESCAPE): Fix comment.
11075 * tests/autotest.at: Adjust section banner comments.
11076 (AT_CHECK_AT): Accept STATUS and STDERR.
11077 (AT_CHECK_AT_TEST): Likewise.
11078 (Invalid brace-enclosed parameter expansion)
11079 (Multiline command from M4 expansion)
11080 (Double-M4-quoted command): New tests.
11082 2004-12-17 Paul Eggert <eggert@cs.ucla.edu>
11084 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
11086 2004-12-17 Akim Demaille <akim@epita.fr>
11088 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
11090 Suggested by Alexandre Duret-Lutz.
11091 * doc/autoconf.texi (Setting Output Variables): Catch up.
11093 2004-12-17 Stepan Kasal <kasal@ucw.cz>
11095 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
11097 2004-12-17 Stepan Kasal <kasal@ucw.cz>
11099 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
11100 remove the comment which said we cannot.
11102 2004-12-17 Stepan Kasal <kasal@ucw.cz>
11104 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
11105 Reini Urban and Paul Eggert for reporting the dependencies.
11107 * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
11108 * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
11109 (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
11111 2004-12-17 Stepan Kasal <kasal@ucw.cz>
11113 * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
11114 so that eg. ``autoscan --help'' doesn't truncate it.
11116 2004-12-15 Nicolas Joly <njoly@pasteur.fr>
11118 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
11119 generated conftest files.
11121 2004-12-13 Noah Misch <noah@cs.caltech.edu>
11123 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
11124 tracing on commands with possibly-escaped newlines.
11125 * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
11126 discontinued behavior and its implications.
11127 * tests/autotest.at (BS-newline in command, ^BS-newline in command)
11128 (BSx641-newline in command, BS-BS-newline in command)
11129 (BSx640-newline in command, Newline-CODE-BS-newline in command)
11130 (Single-quote-BS-newline in command)
11131 (Single-quote-newline-BS-newline in command): New tests.
11133 2004-12-13 Stepan Kasal <kasal@ucw.cz>
11135 * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
11136 on platforms where it works.
11137 (_AS_TEST_PREPARE): Test for ``test -x''.
11138 (_AS_BROKEN_TEST_PREPARE): Nuke.
11140 2004-12-13 Stepan Kasal <kasal@ucw.cz>
11142 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
11143 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
11144 give only 4-letter prefix to AS_TMPDIR, comment fixed.
11145 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
11146 create the temporary directory.
11147 (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
11149 2004-12-12 Kelley Cook <kcook@gcc.gnu.org>
11151 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
11154 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
11156 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
11158 2004-12-11 Noah Misch <noah@cs.caltech.edu>
11160 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
11161 to avoid using a negated character class. Reported by Nicolas Joly.
11162 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
11164 2004-12-10 Paul Eggert <eggert@cs.ucla.edu>
11166 * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
11167 autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
11168 Don't depend on .x file explicitly, since "make" does that for us.
11169 Suggested by Stepan Kasal.
11171 * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
11173 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
11174 ifnames): Factor common code. And they said it couldn't be done!
11176 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
11178 * bin/.cvsignore: Add autoconf.in.
11179 * tests/.cvsignore: Add wrapper.in.
11180 * lib/autotest/general.m4: Escape '$' in case pattern.
11182 2004-12-09 Noah Misch <noah@cs.caltech.edu>
11184 * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
11186 * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
11188 * tests/autotest.at: New file.
11189 * tests/suite.at: Include it.
11190 * tests/Makefile.am: Distribute it.
11192 * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
11193 shell tracing on a command that could contain multiple lines.
11194 * doc/autoconf.text: Document that fact and its implications.
11195 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
11196 * tests/autotest.at (Multiline backquote command substitution,
11197 Multiline parameter expansion, Literal multiline command,
11198 Multiline parenthetical command substitution): Remove XFAIL.
11200 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
11202 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
11203 and suggest AC_SEARCH_LIBS. Suggested by Noah Misch and Stepan Kasal.
11205 2004-12-08 Noah Misch <noah@cs.caltech.edu>
11207 * configure.ac (test suite): Cease to generate wrapper scripts.
11208 * configure: Regenerate.
11209 * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
11210 (m4f_dependencies): Adjust accordingly.
11211 * tests/Makefile.am (Wrappers): Generate wrapper scripts.
11212 (wrapper.in): Generate it in the build directory.
11213 (MAINTAINERCLEANFILES): Delete wrapper.in.
11214 (CLEANFILES): Add wrapper.in.
11215 * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
11216 the output. Replace each $as_me with a @wrap_program@.
11217 * tests/wrapper.in: Delete it; we always build it.
11219 * bin/Makefile.am (autoconf.in): Generate it in the build directory.
11220 (EXTRA_DIST): Remove autoconf.in.
11221 (CLEANFILES): Add autoconf.in.
11222 (autoconf): Find autoconf.in in the build directory.
11223 * bin/autoconf.in: Delete it; we always build it.
11225 2004-12-08 Noah Misch <noah@cs.caltech.edu>
11227 * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
11228 PATH members so as to not prepend an empty element. Move a comment.
11229 * Makefile.am (SUBDIRS): Build in `tests' last.
11230 * tests/Makefile.am (installcheck-local): Add check-local dependencies.
11232 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11234 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
11235 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
11236 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
11237 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
11239 2004-12-07 Stepan Kasal <kasal@ucw.cz>
11241 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
11242 patch: extra "-l"s.
11244 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
11246 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
11247 looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
11248 * doc/autoconf.texi (Particular Functions): Mention new behavior.
11250 2004-12-03 Stepan Kasal <kasal@ucw.cz>
11252 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
11253 out the common code to ...
11254 (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
11255 value of the #define--default to 1, iff the macro was called
11256 with exactly one parameter.
11258 2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
11260 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
11261 "char c = '\200';" rather than "char c = 0x80;" as the
11262 latter doesn't conform to the strict C standard due to
11263 overflow on signed char hosts.
11265 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
11266 to -qlanglvl=ansi. We don't want to disable extensions.
11268 2004-11-29 Paul Eggert <eggert@cs.ucla.edu>
11270 * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
11271 (Using Autotest, testsuite Scripts, Writing testsuite.at):
11272 Reword slightly to avoid some English-language problems noted
11273 by Ralf Wildenhues in:
11274 http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
11276 2004-11-29 Stepan Kasal <kasal@ucw.cz>
11278 * NEWS: Add ^L above each release.
11280 2004-11-28 Paul Eggert <eggert@cs.ucla.edu>
11282 Fix documentation problems reported by Russ Boylan in
11283 <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
11284 along with some nearby cruft.
11285 * doc/autoconf.texi (Libtool): Libtool can be used without
11286 Automake (not without Autoconf).
11287 (Introduction): Mention lists.gnu.org.
11288 * BUGS: Don't mention bugs.gnu.org.
11289 Remove mention of ancient libtool compatibility problem.
11290 * NEWS: Mention that bugs.gnu.org is kaput.
11291 * README: Likewise. Mention where mailing list archives can be found.
11293 2004-11-28 Stepan Kasal <kasal@ucw.cz>
11295 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
11297 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
11299 * doc/autoconf.texi (Pretty Help Strings): Go back to
11300 single-quoting assignments to cache variables.
11302 2004-11-23 Stepan Kasal <kasal@ucw.cz>
11304 * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
11305 with the examples; fix the bug in MY_ARG_WITH example reported
11306 by Alexandre Duret-Lutz.
11307 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
11308 expansion of $1 in the comment emitted to configure.
11310 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11312 * doc/autoconf.texi (Pretty Help Strings): Fix typo
11313 in my editing of the previous patch. Problem reported
11314 by Alexandre Duret-Lutz.
11316 2004-11-22 Stepan Kasal <kasal@ucw.cz>
11318 * doc/autoconf.texi (Autoconf Language): Explain that
11319 ``descriptions'' may not be double quotes.
11320 (Quotation Rule Of Thumb): Likewise.
11321 (Pretty Help Strings): Likewise; remove the wrong comment;
11322 simplify the examples and improve their quoting.
11324 2004-11-13 Stepan Kasal <kasal@ucw.cz>
11326 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
11327 the $1_found variable, don't test whether the file is executable;
11328 Both things are checked ...
11329 (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
11330 the former ``test -f''.
11331 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
11333 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11335 * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
11338 2004-11-10 Derek R. Price <derek@ximbiot.com>
11340 * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
11341 limitations. Reorder paragraphs for clarity.
11343 2004-10-11 Paul Eggert <eggert@cs.ucla.edu>
11345 * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
11346 to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
11347 variants", "Unix", and some related minor wording fixups.
11349 (Shellology, Special Shell Variables): Document that the Zsh
11350 problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks
11351 to Alexandre Duret-Lutz for this info.
11353 2004-10-10 Alexandre Duret-Lutz <adl@gnu.org>
11355 * doc/autoconf.texi (One-Shot Macros): New node.
11357 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
11359 * doc/autoconf.texi (Function Portability): Fix misdescription
11360 of putenv. Problem reported by Michael Wardle.
11362 2004-09-22 Paul Eggert <eggert@cs.ucla.edu>
11364 * doc/autoconf.texi (auindex): New macro.
11365 (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
11366 Problem reported by Stepan Kasal.
11368 2004-09-05 Paul Eggert <eggert@cs.ucla.edu>
11370 Fix problems reported by Andreas Buening in:
11371 http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
11372 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
11374 * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
11375 readable; it's not true in OS/2-emx.
11377 2004-09-04 Paul Eggert <eggert@cs.ucla.edu>
11379 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
11380 "/usr/include", clear ac_x_includes instead of leaving it as "no"
11381 (trivial change). Problem and patch reported by Andrew Church in:
11382 http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
11384 2004-09-03 Paul Eggert <eggert@cs.ucla.edu>
11386 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
11387 three args in examples. Problem reported by Frederik Fouvry in:
11388 http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
11389 Also, fix some minor spacing and punctuation bugs.
11391 2004-09-02 Akim Demaille <akim@epita.fr>
11393 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
11394 "case" to restore ordering.
11395 Reported by Stepan Kasal.
11397 2004-08-26 Akim Demaille <akim@epita.fr>
11399 * doc/autoconf.texi: Minor typos and stylos.
11401 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
11403 * configure.ac (AC_INIT): Bump to 2.59c.
11405 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
11409 * README: Add advice about m4 1.4.2.
11411 * Makefile.cfg (wget_files): Remove config.guess, config.sub,
11412 texinfo.tex for now (done by hand now).
11413 * Makefile.maint (wget_files, cvs_files):
11414 Remove ansi2knr.c; nobody uses it.
11415 (ansi2knr.c-url_prefix): Remove.
11416 (cvs-update): Fix test for failure. I don't know why it ever
11419 * doc/autoconf.texi: Update URLs, some of which went stale.
11420 Use @uref rather than @href.
11422 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
11423 handle "--" as per POSIX. Suggested by Paul Pogonyshev.
11425 * config/config.guess, config/config.sub, config/elisp-comp,
11426 config/install-sh, config/mkinstalldirs, config/texinfo.tex,
11427 doc/fdl.texi, doc/standards.texi: Sync with master copy.
11429 * NEWS, TODO, configure.ac, bin/autoscan.in,
11430 bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
11431 doc/install.texi, lib/Autom4te/Configure_ac.pm,
11432 lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
11433 lib/autoconf/programs.m4, lib/autoconf/status.m4,
11434 lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
11435 lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
11436 tests/tools.at, tests/torture.at:
11437 Use "file name" rather than "filename" or "path",
11438 to be consistent with the terminology of the GNU coding standards.
11440 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
11442 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
11443 AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
11444 HP-UX 11.23 cc/aCC or Tru64 4.0 cc. Problem reported by Noah Misch in
11445 <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
11447 More fixes to support spaces in the name of the build directory.
11448 This isn't a complete fix but it's an improvement.
11450 * bin/autoconf.as (autom4te_options): New var.
11451 Use it instead of appending to AUTOM4TE, so that we can allow
11452 spaces in the build directory's absolute name.
11453 * bin/autoheader.in ($autoconf): Allow spaces in file names.
11454 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
11455 AT_CHECK_NOESCAPE): Likewise.
11456 * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
11457 main program): Likewise.
11459 2004-08-18 Paul Eggert <eggert@cs.ucla.edu>
11461 * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
11462 From Ralf Corsepius in:
11463 http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
11465 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
11467 * doc/autoconf.texi (Function Portability): Document isinf and
11468 and isnan. From a suggestion by Kevin Ryde.
11470 * lib/Autom4te/General.pm (END): Return correct exit status even
11471 if unlink succeeds and sets $?. Needed with Solaris 8's perl 5.00503.
11473 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
11475 * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
11476 for compatibility with Automake 1.4. Reported by J C Fitzgerald in
11477 <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
11479 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
11481 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
11482 (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
11483 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
11484 * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
11485 * lib/autom4te.in (Automake-preselections): Preselect
11486 AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
11488 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
11490 * lib/autom4te.in (Automake-preselections): Preselect
11491 AC_CANONICAL_BUILD and AC_CANONICAL_TARGET. Automake 1.9.1 will
11494 2004-07-29 Paul Eggert <eggert@cs.ucla.edu>
11496 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
11498 * doc/autoconf.texi (Shellology): Mention BIN_SH.
11499 Document problem with "`""`" in pdksh POSIX mode.
11501 2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
11503 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
11504 with pdksh, too. Problem reported by Patrick Welche via
11506 * doc/autoconf.texi (Shellology): Note that set -o posix is
11507 useful for pkdsh, too.
11509 2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
11511 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
11512 _AS_UNSET_PREPARE, so that we can use $as_unset directly.
11513 Don't fail if ENV or BASH_ENV is readonly.
11514 (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
11515 etc. are read only. Problem reported by Ludovic Courtes.
11517 2004-06-23 Noah Misch <noah@cs.caltech.edu>
11519 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
11520 zsh, disable GLOB_SUBST to avoid backslash handling problems.
11523 2004-06-04 Paul Eggert <eggert@cs.ucla.edu>
11525 * doc/autoconf.texi (File System Conventions): Warn about
11526 names like "aux". Problem reported by Eric Blake.
11528 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
11529 by zero instead of array size, so that we can use any arithmetic
11530 constant expression (instead of requiring an integer constant
11531 expression). This allows us to test expressions like DBL_MAX <
11532 LDBL_MAX, which didn't conform to the C standard using the old
11534 (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
11535 now that we can do floating-point tests at compile time.
11537 2004-06-02 Paul Eggert <eggert@cs.ucla.edu>
11539 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
11540 and LDBL_EPSILON, as the resulting expression isn't an
11541 integer constant expression and violates the C standard.
11542 Problem reported by Nelson H. F. Beebe. Also, check
11543 for "L" suffix, and check that long double doesn't have
11544 worse range or precision than double, that mixed-mode
11545 arithmetic doesn't generate a diagnostic, that double
11546 constants fit in long double.
11548 2004-06-03 Kevin Ryde <user42@zip.com.au>
11550 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
11551 malloc(0) and realloc(NULL,size).
11553 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
11556 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
11558 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
11559 in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
11562 2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
11564 * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
11565 can be rewritten using if-then-else. Suggested by Bruno Haible.
11567 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
11569 * doc/autoconf.texi (testsuite Scripts): Fix typo.
11570 Problem reported by Stepan Kasal.
11572 2004-05-24 Paul Eggert <eggert@cs.ucla.edu>
11574 * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
11575 change). Patch reported by Ralf Wildenhues in
11576 <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
11578 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
11579 function F exists if the compiler and linker let you compile an
11580 expression like (F != 0). Recent versions of GCC optimize away
11581 the reference to F in that case, since every function address must
11582 be nonzero, so the link succeeds even if F does not exist.
11583 Problem reported by Manu in
11584 <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
11586 * doc/autoconf.texi (Systemology): Standardize on the spelling of
11587 "Unix". Many uses changed.
11588 (Limitations of Builtins): Explain better why the ! command isn't
11591 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
11593 * lib/autom4te.in (Automake-preselections): Preselect
11594 LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
11596 2004-05-19 Kevin Ryde <user42@zip.com.au>
11598 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
11599 referencing AC_FUNC_STRERROR_R.
11601 * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
11602 note pessimistic assumption when cross compiling.
11604 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
11606 * doc/autoconf.texi (Limitations of Make): Note that BSD make
11607 (until 2004) invoked subcommands with sh -e, contra POSIX.
11608 Reported by Kevin Ryde.
11610 2004-05-10 Eric Sunshine <sunshine@sunshineco.com>
11612 * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
11613 _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
11614 " $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
11615 `test -f " /usr/bin/grep"', which _always_ failed.
11616 (AC_PROG_SED): Ditto bogus PATH fix.
11617 * autoconf.texi (AC_PROG_GREP): Properly document that this macro
11618 requires that grep correctly supports _multiple_ `-e' options, rather
11619 than stating only that grep should accept `-e'.
11621 2004-05-03 Paul Eggert <eggert@cs.ucla.edu>
11623 Port to C99, which requires that 'exit' be declared.
11625 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
11626 to ensure that stdlib.h is included.
11627 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
11628 AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
11629 _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11630 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11631 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11632 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
11633 when using 'exit' in a test; C99 requires that 'exit' be declared.
11635 2004-05-02 Paul Eggert <eggert@cs.ucla.edu>
11637 * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
11638 now prefers 'grep' implementations that accept -e.
11639 (Limitations of Usual Tools): Describe problems of traditional
11640 egrep and fgrep with long input lines, and of traditional grep
11642 * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
11643 (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
11644 All callers changed. Append /usr/xpg4/bin to the PATH, for
11646 (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
11647 the user with complaints about multiple -e options.
11648 * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
11649 Define it with AC_PROG_GREP.
11650 * configure.ac (AC_PROG_GREP): Add.
11651 * lib/freeze.mk (GREP): New macro.
11653 2004-05-02 Eric Sunshine <sunshine@sunshineco.com>
11655 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
11656 a possible candidate only after all others fail, rather than
11657 consulting it first. This improves backward compatibility by
11658 better reflecting the way shell selection occurred in previous
11659 versions of Autoconf, and should help to avoid triggering latent
11660 problems in other packages, such as the one in Automake where zsh
11661 is not handled robustly:
11662 http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
11663 Although it is not Autoconf's responsibility to work around
11664 problems in Automake, it nevertheless makes sense to avoid
11665 introducing unnecessary incompatibilites.
11667 2004-04-22 Albert Chin-A-Young <china@thewrittenword.com>,
11668 Gary V. Vaughan <gary@gnu.org>
11670 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
11671 how deeply nested we are when a suitable tool is found, set the
11672 ac_path_TOOL_found flag.
11673 (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
11674 nested we are in this macro. Break out of all 3 nested loops if
11675 ac_path_TOOL_found is set.
11677 2004-04-21 Gary V. Vaughan <gary@gnu.org>
11679 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
11680 of the _AS_PATH_WALK loop too if GNU flavor is found.
11682 2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
11684 * doc/autoconf.texi (Limitations of Make): Update documentation
11685 for `$<'. New entry `Long lines', based on a report from Simon
11686 Josefsson. Augment the documentation for SHELL = @SHELL@ with a
11687 paragraph about DJGPP, based on a mail from Richard Dawe.
11689 2004-04-20 Paul Eggert <eggert@twinsun.com>
11691 * tests/c.at (C keywords): Don't assume that GCC supports
11692 "restrict" and "inline", as sufficiently-old GCC versions do not
11693 (also, GCC configured to be in pedantic C89 mode does not).
11694 Problem reported by Sumit Pandya in:
11695 http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
11697 * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
11698 consider -g to work if it generates warnings when plain compiles
11699 don't. Problem reported by Braden McDaniel in:
11700 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
11702 * doc/autoconf.texi (Slashes): New section, to document a problem
11703 reported by Jim Meyering in:
11704 http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
11706 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
11707 linker output files before linking, to work around IRIX 6 linker bug.
11708 Problem reported by Rainer Orth in:
11709 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
11711 2004-04-20 Gary V. Vaughan <gary@gnu.org>
11713 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
11714 best tool so far counter rely on the tool path variable name to
11715 avoid checks for one tool being affected by the results of running
11716 the length check on a previous tool.
11718 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
11719 match expression argument, as different greps have different
11720 regular expression flavours.
11721 (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
11723 (AC_PROG_EGREP): Pass 'EGREP$'.
11724 (AC_PROG_GREP): Pass 'GREP$'.
11726 2004-04-20 Albert Chin-A-Young <china@thewrittenword.com>
11728 * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
11729 is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
11731 2004-03-29 Paul Eggert <eggert@twinsun.com>
11733 * doc/autoconf.texi (Particular Headers, Particular Types, Generic
11734 Types, Specific Compiler Characteristics, System Services,
11735 Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
11736 etc. consistently instead of 'long', 'short', 'unsigned' etc.
11737 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
11738 * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
11740 * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
11741 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
11742 AC_TYPE_OFF_T): Likewise.
11743 * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
11746 * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
11747 pacify libtool 1.5.2. Fix quoting problems in sed command.
11749 2004-03-28 Paul Eggert <eggert@twinsun.com>
11751 * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
11752 now defines HAVE_DECL_TZNAME if it is declared, when
11753 HAVE_STRUCT_TM_TM_ZONE is not defined.
11754 * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
11755 Do not assume atoi. Rely on HAVE_DECL_TZNAME when testing
11758 2004-03-28 Steven G. Johnson <stevenj@fftw.org>
11760 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
11761 superfluous backslashing of quotes (") in sed expressions;
11762 thanks to Paul Eggert.
11764 2004-03-26 Steven G. Johnson <stevenj@alum.mit.edu>
11766 * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
11767 Fortran compiler is ifort, also added pghpf; thanks to Nelson
11768 H. F. Beebe for the bug report.
11770 2004-03-26 Steven G. Johnson <stevenj@fftw.org>
11772 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
11773 quoted -cmdline argument in Portland Group compiler (bug
11774 reported by Jeffrey J. Barteet).
11776 2004-03-25 Kevin Ryde <user42@zip.com.au>
11778 * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
11779 (Run Time): ... here, where it's now mentioned.
11781 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
11783 * doc/autoconf.texi (autom4te Invocation): Language Autoconf
11784 inherits from language Autoconf-without-aclocal-m4.
11785 (Customizing autom4te): Adjust example; the cache must now be
11786 disabled for language Autoconf-without-aclocal-m4.
11788 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
11789 Nathanael Nerode <neroden@twcny.rr.com>
11791 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
11792 AC_CHECK_TOOLS): Warn if a cross-tool is found without
11794 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11795 AC_CHECK_TARGET_TOOLS): New macros.
11796 * doc/autoconf.texi (Generic Programs): Document
11797 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
11798 AC_CHECK_TARGET_TOOLS, and warn for future changes
11799 in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
11801 (Specifying Names): Document the reason for these future
11802 behavioral changes.
11803 * tests/mktests.sh: Do not generate tests for the
11805 * NEWS: Document these changes.
11807 * doc/autoconf.texi: Avoid macros with unbraced arguments,
11808 they make TeX hang up.
11810 2004-03-15 Paul Eggert <eggert@bogus.example.com>
11812 * NEWS: New macro AC_CHECK_ALIGNOF.
11813 * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
11814 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
11815 int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
11817 (AC_CHECK_ALIGNOF): New macro.
11818 * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
11819 * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
11822 2004-03-03 Paul Eggert <eggert@twinsun.com>
11824 * bin/Makefile.am (edit): Don't use $< in a context where
11825 POSIX doesn't require support for it. Use $@.in instead.
11826 Problem reported by Anthony N. Frasso in
11827 <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
11828 * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
11830 2004-02-23 Gary V. Vaughan <gary@gnu.org>
11832 * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
11833 from the next generation of Libtool.
11834 * lib/autom4te.in (Autoreconf-preselections): Ditto.
11836 2004-02-20 Alexandre Duret-Lutz <adl@gnu.org>
11838 * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
11839 is not always thread-safe. Report from Nathanael Nerode.
11841 2004-02-18 Paul Eggert <eggert@twinsun.com>
11843 Fix a dependencies problem, stemming from a Autoconf 2.59 build
11844 problem on QNX reported by Stephen Rasku in
11845 <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
11847 * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
11848 $(m4sh_m4f_dependencies); this removes a FIXME.
11849 * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
11850 (MAINTAINERCLEANFILES): Split into pieces,
11851 one per related section. Add $(srcdir)/wrapper.in.
11853 2004-02-09 Paul Eggert <eggert@twinsun.com>
11855 * doc/autoconf.texi (Setting Output Variables): Emphasize that
11856 AC_SUBST provides no portable way to escape literal newlines.
11858 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
11859 flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
11860 Darwin uses -lcrt2.o and there's little point to cataloging all
11861 the system variants. Partial fix reported by Andreas Waechter in:
11862 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
11863 for bug reported by Nelson H. F. Beebe in:
11864 http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
11866 2004-02-04 Paolo Bonzini <bonzini@gnu.org>
11868 * doc/autoconf.texi (AU_DEFUN): Fix English,
11869 suggested by Paul Eggert.
11870 * lib/autoconf/autoupdate.m4: Correct reference to
11871 acobsolete.m4, suggested by Alexandre Duret-Lutz.
11873 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
11875 * bin/autoupdate.in: Define __file__ so that warnings
11876 refer to the correct file.
11877 * doc/autoconf.texi (AU_DEFUN): Describe more correctly
11878 the behavior of the third argument.
11879 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
11880 correctly the behavior of the third argument. Document
11881 what the three macros that AU_DEFUN defines do. Fix
11882 warning message when the third argument includes $0
11883 (reported by Alexandre Duret-Lutz).
11885 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
11886 Eric Sunshine <sunshine@sunshineco.com>
11887 Paul Eggert <eggert@twinsun.com>
11889 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
11890 (AS_INIT): Output shell initialization there. Removed optional
11891 parameter. Expand _AS_SHELL_FN_SPY.
11892 (AS_INIT_WITH_SHELL_FN): Removed.
11893 (_AS_SHELL_FN_SPY): New macro.
11894 (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
11896 (AS_SHELL_SANITIZE): Remove loop to find better shell
11897 and documentation for the parameter.
11898 (_AS_DETECT_BETTER_SHELL): Move it here.
11899 (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
11900 (_AS_RUN): Move it here, support testing with eval.
11901 (AS_REQUIRE_SHELL_FN): Require shell functions when
11903 (_AS_LINENO_WORKS): Put around braces, we do not
11904 trigger the bash bug anymore.
11905 * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
11906 use AS_INIT_WITH_SHELL_FN.
11907 * bin/autoconf.in, tests/wrapper.in: Regenerated.
11909 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
11911 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
11912 * doc/autoconf.texi: Don't say that the third parameter
11914 * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
11915 (AU_DEFUN): Honor the third parameter, create autoupdate
11916 macros with AU_DEFINE.
11917 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
11918 AC_DIR_HEADER): Use AU_DEFUN's third parameter.
11919 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
11920 * lib/autoconf/programs.m4 (AC_RSH): Likewise.
11921 * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
11922 AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
11923 AC_XENIX_DIR): Likewise.
11924 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
11925 AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
11926 * lib/autoconf/status.m4: Remove FIXME.
11927 * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
11928 that the macro is not present anymore in the updated
11930 * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
11933 2004-01-28 Paul Eggert <eggert@twinsun.com>
11935 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
11937 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
11938 2003 (except 1997) to the list of copyright years. This undoes
11939 the 2003-05-22 change, which removed the older years from the list.
11940 * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
11942 2004-01-27 Gary V. Vaughan <gary@gnu.org>
11943 Albert Chin-A-Young <china@thewrittenword.com>
11945 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
11946 grep or ggrep program in PATH that accepts as long lines as
11948 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
11950 (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
11951 egrep and fgrep respectively if $GREP -E/-F don't work.
11952 (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
11953 _AC_PROG_GREP, and AC_PROG_SED.
11954 (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
11955 longest input length accepted by a command.
11956 (AC_PROG_SED): Use it.
11957 * doc/autoconf.texi (Particular Programs): Document the changes.
11960 2004-01-27 Paul Eggert <eggert@twinsun.com>
11962 * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
11963 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11964 bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
11965 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
11967 * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
11968 bin/autoconf.in, config/Makefile.in, config/config.guess,
11969 config/config.sub, config/install-sh, config/mdate-sh,
11970 config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
11971 lib/Makefile.in, lib/Autom4te/Makefile.in,
11972 lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
11973 lib/autotest/Makefile.in, lib/emacs/Makefile.in,
11974 lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
11975 man/autoheader.1, man/autom4te.1, man/autoreconf.1,
11976 man/autoscan.1, man/autoupdate.1, man/config.guess.1,
11977 man/config.sub.1, man/ifnames.1, tests/Makefile.in,
11978 tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
11979 tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
11980 tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
11981 tests/actypes.at: Regenerate and/or sync with original
11984 2004-01-26 Paul Eggert <eggert@twinsun.com>
11986 * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
11987 HAVE_INTTYPES_H is defined. This is needed on Tru64 5.1b with
11988 Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
11989 not <inttypes.h>. Problem reported by Tim Mooney in
11990 <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
11991 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
11994 * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
11995 otherwise "make check" fails because it forbids cmp (I guess
11996 because cmp treats files as binary on DOS-like systems).
11998 * tests/mktests.sh: Update copyright date to 2004, since some tests
11999 have changed in 2004.
12001 2004-01-23 Gary V. Vaughan <gary@gnu.org>
12003 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
12004 non-truncating sed or gsed program in PATH.
12005 * tests/acprograms.at: Add it.
12006 * doc/autoconf.texi (Particular Programs): Document it.
12009 2004-01-15 Paul Eggert <eggert@twinsun.com>
12011 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
12012 -std1 disables some useful extensions on Tru64. Problem reported
12013 by N. Lichtmaier in
12014 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
12016 2004-01-14 Paul Eggert <eggert@twinsun.com>
12018 * doc/autoconf.texi (Programming in M4sh): Document that
12019 AS_MKDIR_P succeeds if the destination is a symbolic link
12020 to an existing directory.
12021 (Limitations of Usual Tools): Note that mkdir -p might not
12022 succeed on symlinks to directories.
12024 2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
12026 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
12027 * bin/autoheader.in: Grammar fix in message.
12028 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
12029 Test for dir before calling mkdir -p. (trivial changes)
12031 2004-01-13 Eric Blake <ebb9@byu.net>
12033 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
12034 AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/. (trivial change)
12036 2004-01-10 Jim Meyering <jim@meyering.net>
12038 * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
12040 2004-01-09 Paul Eggert <eggert@twinsun.com>
12042 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
12043 with `autoconf -Wall,error'. Bug reported by Eric Blake in:
12044 http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
12045 (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
12046 AC_COMPILE_IFELSE, since we now assume our caller invokes
12047 AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
12048 (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
12049 of AC_RUN_IFELSE; this avoids the warning mentioned above.
12050 (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
12052 2004-01-07 Paul Eggert <eggert@twinsun.com>
12054 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
12055 `"'...'"`, as it's confusing (and I suspect it may not work on
12056 some platforms). The code was incorrect anyway, as it assumed
12057 that \$ evaluated to itself in that context. Reported by
12058 Alexandre Duret-Lutz.
12060 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
12062 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
12063 and _LT_AC_TAGCONFIG.
12065 2004-01-06 Paul Eggert <eggert@twinsun.com>
12067 * doc/autoconf.texi (One Macro Call): Fix an incorrect
12068 example, and add more examples. Reported by Eric Sunshine.
12070 2004-01-05 Paul Eggert <eggert@twinsun.com>
12072 * doc/autoconf.texi (Limitations of Usual Tools):
12073 Remove warning against "rm -fr" introduced yesterday; it
12076 * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
12077 autoscan, autoupdate, ifnames): Don't use chmod -w.
12078 * lib/Makefile.am (autom4te.cfg): Likewise.
12079 * doc/autoconf.texi (Limitations of Usual Tools): Warn against
12082 2004-01-04 Paul Eggert <eggert@twinsun.com>
12083 Paolo Bonzini <bonzini@gnu.org>
12085 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
12086 by doing lineno substitution only on lines containing "$LINENO".
12088 2004-01-04 Paul Eggert <eggert@twinsun.com>
12090 * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
12091 Use "rm -f" to remove conftest.sed, not plain "rm".
12092 Bug reported by David Relson in
12093 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
12095 * Makefile.am (autom4te-update):
12096 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
12097 * Makefile.maint (my-distcheck, do-po-update): Likewise.
12098 * doc/autoconf.texi (Guidelines): Likewise.
12099 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
12100 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
12101 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
12102 * lib/autotest/general.m4 (AT_INIT): Likewise.
12103 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
12104 * tests/Makefile.am (clean-local): Likewise.
12105 * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
12107 * doc/autoconf.texi (Limitations of Usual Tools):
12108 Warn against "rm -fr".
12110 2004-01-03 Paul Eggert <eggert@twinsun.com>
12112 * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
12113 -c -o might not work. From a suggestion by Kevin Ryde.
12114 (C Compiler, Generating Sources, Limitations
12115 of Usual Tools, Limitations of Make, Making testsuite Scripts):
12116 Don't put '-o' after non-options, as POSIX doesn't allow this.
12117 Mention that cc's name might be gcc or c89 or whatever.
12119 2004-01-04 Kevin Ryde <user42@zip.com.au>
12121 * doc/autoconf.texi: Add various further index entries.
12123 2003-12-29 Paul Eggert <eggert@twinsun.com>
12125 * bin/autoreconf.in (autoreconf_current_directory):
12126 Fix typo: mkdir without umask arg.
12128 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
12130 * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
12131 Documents OSF1/Tru64 make behavior. Replace `VPATH = ../src' by
12132 `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
12133 explanation clearer.
12135 2003-12-24 Andreas Schwab <schwab@suse.de>
12137 * doc/autoconf.texi (Default Includes): Fix misspelling of
12138 AC_INCLUDES_DEFAULT.
12140 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
12142 * configure.ac: Test if sh -n works.
12143 * configure: Regenerate.
12144 * tests/atlocal.in: Store the result here.
12145 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
12146 tools.at, looking in atlocal's ac_cv_sh_n_works instead
12147 of explicitly testing.
12148 (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
12149 (AT_CHECK_AUTOCONF): Test for the configure script syntax.
12150 * tests/tools.at (Syntax of the shell scripts): Simplify
12151 using AT_CHECK_SHELL_SYNTAX.
12152 (Syntax of the Perl scripts): Remove definition of
12153 AT_CHECK_PERL_SYNTAX.
12155 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
12157 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
12158 stderr to /dev/null.
12159 * bin/autoconf.in: Regenerate.
12160 * bin/wrapper.in: Regenerate.
12162 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
12164 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
12165 Extracted from AS_SHELL_SANITIZE.
12166 (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
12168 (AS_SHELL_SANITIZE): Move reinvocation code from
12169 _AS_LINENO_WORKS, use it to find out if shell
12171 (_AS_LINENO_WORKS): Don't find another shell if $LINENO
12173 (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
12174 (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
12176 * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
12177 * bin/autoconf.in: Regenerate.
12178 * tests/wrapper.in: Regenerate.
12179 * tests/tools.at: Test the syntax of tests/autoconf
12180 and tests/testsuite.
12182 2003-11-24 Akim Demaille <akim@epita.fr>
12184 * config/announce-gen (&print_locations, &print_signatures)
12187 No longer rely on Gnus to inline the list of signatures: compute
12190 2003-11-24 Akim Demaille <akim@epita.fr>
12192 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
12193 override some files.
12194 (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
12195 From Debian Autoconf 2.58.
12197 2003-11-24 Akim Demaille <akim@epita.fr>
12199 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
12201 From Debian Autoconf 2.58.
12203 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
12205 * TODO: Remove already done things. Update the part about finding
12206 tools for the target.
12208 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
12210 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
12211 Make wording more consistent.
12212 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
12213 Explain the transition better.
12214 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
12215 the transition better.
12217 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
12219 * doc/autoconf.texi (Obsoleting Macros): Don't document the third
12220 parameter of AU_DEFUN.
12221 * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
12222 (AU_DEFUN): Remove the third parameter, it was not used.
12223 Use AC_DEFUN directly, not AU_DEFINE.
12224 * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
12225 the expanded body, consistently with other macros such as AC_USG.
12227 2003-11-17 Paul Eggert <eggert@twinsun.com>
12229 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
12230 into the initial confdefs.h, to work around a bug in NextStep 3.3
12231 patch 3 reported by Eric Sunshine.
12233 2003-11-15 Kevin Ryde <user42@zip.com.au>
12235 * doc/autoconf.texi (Using System Type): Revise, showing $host rather
12236 than $target since the latter is not usual, add guidelines on when to
12237 use or not use the system type.
12239 2003-11-12 Derek Price <derek@ximbiot.com>
12241 * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
12242 typo misrepaired by an auto-spellcheck.
12244 2003-11-12 Akim Demaille <akim@epita.fr>
12246 * bin/autoreconf.in (&parse_args): Don't call automake with
12247 --force-missing unless it actually supports it.
12248 From Debian #219336.
12250 2003-11-12 Akim Demaille <akim@epita.fr>
12252 * configure.ac: Bump to 2.59a.
12255 2003-11-06 Akim Demaille <akim@epita.fr>
12259 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
12261 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
12262 so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
12263 and ac_abs_top_srcdir are absolute paths.
12264 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
12266 2003-11-05 Akim Demaille <akim@epita.fr>
12268 * configure.ac: Bump to 2.58a.
12270 2003-11-05 Kevin Ryde <user42@zip.com.au>
12272 * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
12273 it provokes a warning from makeinfo about looking like a cross
12274 reference in info output.
12276 * doc/autoconf.texi (Function Portability): Add notes on signal
12277 handler return type, as per AC_TYPE_SIGNAL.
12279 2003-11-04 Akim Demaille <akim@epita.fr>
12282 * doc/standards.texi: Update from master.
12284 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
12286 2003-11-04 Akim Demaille <akim@epita.fr>
12288 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
12289 computing the absolute path to d1 in the source hierarchy: it may
12290 not exist at all. So don't cd into it.
12291 From Alexandre Duret-Lutz.
12292 http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
12294 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
12295 From Paul Eggert, but named after Perl's IO::Spec->catfile.
12296 * doc/autoconf.texi (Programming in M4sh): Document.
12297 * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
12299 2003-11-03 Pavel Roskin <proski@gnu.org>
12301 * doc/autoconf.texi (Generic Structure Checks): Describe
12302 action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
12304 2003-10-31 Akim Demaille <akim@epita.fr>
12306 * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
12307 (GNU Fortran): New.
12308 * doc/autoconf.texi (Language Choice): Document.
12309 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
12310 the current language is Fortran.
12312 2003-10-31 Akim Demaille <akim@epita.fr>
12314 * bin/autom4te.in (&freeze): Use a less likely warning separator
12315 than `\n\n', so that `\n\n\n' is valid in warnings.
12316 Reported by Steve Huston.
12318 2003-10-28 Akim Demaille <akim@epita.fr>
12320 * Makefile.cfg (local_updates, executable-update): Tweak to be
12321 robust to parallel makes.
12322 Suggested by Alexandre Duret-Lutz.
12324 2003-10-27 Akim Demaille <akim@epita.fr>
12326 * Makefile.cfg (executable-update): New.
12327 (local_updates): Call it.
12329 2003-10-27 Akim Demaille <akim@epita.fr>
12331 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
12332 Don't remove core.* as it may remove valid user files.
12333 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
12334 (AC_FUNC_UTIME_NULL): Likewise.
12336 2003-10-23 Akim Demaille <akim@epita.fr>
12339 * config/config.guess, config/config.sub: Upgrade from masters.
12341 2003-10-23 Akim Demaille <akim@epita.fr>
12343 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
12344 AC_COMPILE_IFELSE that use break skip the clean up. So do it by
12347 2003-10-23 Akim Demaille <akim@epita.fr>
12349 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
12350 Don't forget to remove conftest.err.
12352 2003-10-23 Akim Demaille <akim@epita.fr>
12354 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
12355 same object file in $LIBOBJS.
12356 Reported by Alexandre Duret-Lutz & Derek Robert Price.
12357 * doc/autoconf.texi (Generic Functions): Adjust.
12359 2003-10-20 Paul Eggert <eggert@twinsun.com>
12361 * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
12362 Use 'eval', so that the resulting configure scripts work even if
12363 the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
12365 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
12367 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
12368 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
12369 (_AC_LINK_IFELSE): Check the werror flag.
12370 * doc/autoconf.texi (Generic Compiler Characteristics): Document
12372 * NEWS: Mention it.
12374 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
12376 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
12377 _AC_COMPILER_EXEEXT to attempt a link. If linking fails,
12378 override AC_LINK_IFELSE.
12380 2003-10-15 Paul Eggert <eggert@twinsun.com>
12382 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
12383 pdksh 5.2.14. Bug reported by Ralf Corsepius.
12384 * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
12385 Mention /usr/dt/bin/dtksh on Solaris.
12386 (Shell Substitutions): Warn about $((...)).
12387 (Parentheses): New section.
12389 2003-10-15 Kevin Ryde <user42@zip.com.au>
12391 * doc/autoconf.texi (Function Portability): Add @prindex for exit.
12392 Add putenv and unsetenv. Add sysconf _SC_PAGE_SIZE.
12394 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
12396 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
12399 2003-10-11 Steven G. Johnson <stevenj@alum.mit.edu>
12401 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
12402 name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
12404 2003-10-10 Andreas Schwab <schwab@suse.de>
12406 * bin/autoheader.in: Avoid empty first line in --version and
12408 * bin/ifnames.in: Likewise.
12410 2003-10-09 Paul Eggert <eggert@twinsun.com>
12412 * lib/Autom4te/XFile.pm: Don't assume -j is solo.
12413 Issue a more-informative diagnostic.
12414 Problems reported by Eric Sunshine.
12416 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
12418 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
12419 -mGLOB_options_string stuff for Intel ifc, which can cause
12420 _AC_FC_LIBRARY_LDFLAGS to fail. Use (faster) case for
12421 pattern-matching instead of grep.
12423 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
12425 * doc/autoconf.texi: Document new FC Fortran macros.
12427 2003-10-08 Gary V. Vaughan <gary@gnu.org>
12429 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
12430 that future autopoint/aclocal/automake/autoreconf will be able
12431 to trace to find where to install local m4 macros.
12432 * doc/autoconf.texi (Input): Document it.
12435 2003-10-06 Gary V. Vaughan <gary@gnu.org>
12437 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
12438 -lcrtbegin.o to list of ignored flags and fix underquoting of
12441 2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
12443 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
12444 cache variable instead of $G77 to decide whether to include -O2,
12445 since $G77 is specific to Fortran 77.
12447 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
12449 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
12450 free" flag. Re-order flags tested into rough order of popularity.
12452 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
12454 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
12455 arguments so that it can be used with syntax identical to
12456 AC_PROG_F77, and so that we can more easily decide to
12457 remove/deprecate the DIALECT optional argument in the future if it
12458 proves troublesome.
12459 (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
12460 non-freeform-supporting compilers. Document freeform flags.
12462 2003-10-03 Akim Demaille <akim@epita.fr>
12464 * configure.ac: Look for emacs, not macs.
12465 Reported by Eric Sunshine.
12467 2003-10-03 Akim Demaille <akim@epita.fr>
12469 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
12470 * bin/autoreconf.in (autoreconf_current_directory): Create the
12471 AUX_DIR if needed, for sake of automake --add-missing etc.
12472 Suggested by Alexandre Duret-Lutz.
12474 2003-10-03 Akim Demaille <akim@epita.fr>
12476 * configure.ac: Quotation and formatting changes.
12477 (EMACS): Don't set it if it is not recent enough to support
12479 From Eric Sunshine.
12481 2003-10-02 Akim Demaille <akim@epita.fr>
12483 * bin/ifnames.in (&scan_file): Skip C++ comments.
12484 From Jeremy Yallop.
12486 2003-10-01 Pavel Roskin <proski@gnu.org>
12488 * doc/autoconf.texi (Particular Structure Checks):
12489 Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
12491 2003-10-01 Akim Demaille <akim@epita.fr>
12495 2003-09-30 Paul Eggert <eggert@twinsun.com>
12497 * lib/Autom4te/XFile.pm: Use Errno.
12498 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
12499 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
12501 2003-09-30 Akim Demaille <akim@epita.fr>
12503 * config/announce-gen (&print_news_deltas): Extracted from...
12504 (&print_changelog_deltas): here.
12505 (&news_file): Rename as...
12506 (@news_file): this.
12508 2003-09-30 Nicolas Joly <njoly@pasteur.fr>
12510 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
12511 have been created when invoking the compiler.
12512 * tests/fortran.at (GNU Fortran 77): Quote $G77.
12514 2003-09-29 Akim Demaille <akim@epita.fr>
12518 * config/mkinstalldirs: Upgrade.
12520 2003-09-28 Paul Eggert <eggert@twinsun.com>
12522 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
12523 Problem reported by Lars J. Aas in
12524 <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
12525 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
12526 "test -d ./-p && rmdir ./-p". Suggested by Andreas Schwab in:
12527 http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
12529 2003-09-26 Akim Demaille <akim@epita.fr>
12531 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
12532 directory for AC_CONFIG_COMMANDS' first argument exists.
12533 This makes valid the invocation of _AC_SRCPATH that follows.
12534 Reported by Eric Sunshine.
12535 * doc/autoconf.texi (Configuration Commands): Adjust.
12537 2003-09-26 Akim Demaille <akim@epita.fr>
12539 * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
12540 Reported by Ralf Corsepius.
12542 2003-09-26 Akim Demaille <akim@epita.fr>
12544 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
12546 Actually, use AU_ALIAS.
12549 2003-09-26 Paul Eggert <eggert@twinsun.com>
12551 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
12552 rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
12553 Problem reported by Eric Sunshine in:
12554 http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
12556 2003-09-26 Akim Demaille <akim@epita.fr>
12558 The test suite are sometimes assigning timings incorrectly.
12559 Reported by Henk Krus.
12560 Diagnosed by Nicolas Joly.
12562 * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
12564 Instead of making AT_help a sequence of assignments to grow
12565 $at_help_all, just make AT_help_all be the growing contents of
12566 $at_help_all, and make a single assignment in...
12568 (at_times_skip): Flip the meaning and rename as...
12569 (at_times_p): this.
12570 (AT_INIT): When summarizing the test that ran, remove
12571 $at_times_file after use, and check it is present before trying to
12574 2003-09-25 Akim Demaille <akim@epita.fr>
12578 * bin/Makefile.am (edit): Handle '@configure_input@'.
12579 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
12580 (ifnames): chmod -w.
12581 * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
12582 executables, not bin/ executables! Otherwise all the magic needed
12583 to find non installed files is turned off. This caused a failure
12584 of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
12585 as found in its environment (sent by tests/autoreconf): pointing
12586 to bin/autom4te that could not find its files.
12587 * tests/mktests.sh: Force the replacement of generated files, for
12588 the sake of "mv" program that are interactive when overwriting a
12590 * config/install-sh: Upgrade from CVS Automake.
12592 2003-09-23 Paul Eggert <eggert@twinsun.com>
12594 * doc/autoconf.texi (Limitations of Builtins): Document test -h
12595 versus test -L issues.
12597 2003-09-23 Daniel Jacobowitz <drow@mvista.com> and
12598 Paul Eggert <eggert@twinsun.com>
12600 Trivial change to support GCC's configuration procedure.
12601 * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
12602 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
12603 about inconsistency if the preprocessor is set to give errors for
12605 * doc/autoconf.texi (C Compiler Characteristics): Document this.
12607 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
12609 * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
12610 and XFile.pm from Automake.
12611 * lib/Autom4te/XFile.pm: Update from Automake.
12613 2003-09-12 Akim Demaille <akim@epita.fr>
12617 2003-09-12 Akim Demaille <akim@epita.fr>
12619 * config/config.guess, config/config.sub, config/missing,
12620 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
12623 2003-09-12 Akim Demaille <akim@epita.fr>
12625 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
12628 2003-09-11 Akim Demaille <akim@epita.fr>
12630 * doc/autoconf.texi (Header Portability): linux/random.h.
12631 From Peter Hendrickson.
12633 2003-09-10 Akim Demaille <akim@epita.fr>
12635 * tests/mktests.sh (au_exclude_egrep): Make it harder to be
12636 willing to edit the output files.
12638 2003-09-10 Akim Demaille <akim@epita.fr>
12640 * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
12641 and AC_FC_FREEFORM.
12642 * tests/mktests.sh: Skip AC_FC_SRCEXT.
12643 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
12645 2003-09-09 Akim Demaille <akim@epita.fr>
12647 * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
12648 Reported by Gary Vaughan.
12649 * bin/autom4te.in (handle_m4): Likewise.
12651 2003-09-09 Akim Demaille <akim@epita.fr>
12653 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
12656 2003-09-07 Paul Eggert <eggert@twinsun.com>
12658 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
12659 Improve the accuracy of the wording about obsolescence.
12660 From a suggestion by Ian Lance Taylor in
12661 <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
12663 2003-09-05 Paul Eggert <eggert@twinsun.com>
12665 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
12666 for the benefit of g77 3.2. Fix suggested by Steven G. Johnson.
12668 2003-09-04 Akim Demaille <akim@epita.fr>
12670 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
12673 2003-09-04 Akim Demaille <akim@epita.fr>
12675 * bin/autom4te.in: Use &fatal where more appropriate than &error.
12676 (freeze): When exiting, use $exit_code.
12677 * lib/autoconf/fortran.m4: Comment changes.
12679 2003-09-04 Akim Demaille <akim@epita.fr>
12681 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
12683 2003-09-02 Steven G. Johnson <stevenj@alum.mit.edu>
12685 Add support for newer Fortran dialects. The F77 interface is
12686 unchanged, and continues to support Fortran 77. New FC macros
12687 correspond to all the old F77 macros, with output variables FC,
12688 FCFLAGS, and FCLIBS. AC_PROG_FC defaults to picking the newest
12689 available dialect, but older dialects can be specified. There are
12690 new macros AC_FC_SRCEXT to set the source extension, and
12691 AC_FC_FREEFORM to accept free-form source files.
12693 * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
12695 (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
12696 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
12697 _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
12698 _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
12699 AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
12700 AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
12701 _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
12702 _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
12703 AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
12704 _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
12705 AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
12706 _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
12707 AC_FC_SRCEXT, AC_FC_FREEFORM):
12709 (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
12710 AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
12711 AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
12712 Rewrite in terms of the above.
12713 (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
12714 * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
12715 * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
12716 AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
12718 2003-09-02 Paul Eggert <eggert@twinsun.com>
12720 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
12721 Document problems with timestamp resolution that 'make', 'cp -p', and
12724 2003-08-27 Akim Demaille <akim@epita.fr>
12726 * tests/m4sugar.at (cross_warning): Make sure to enable the
12727 output, so that we can track spurious m4sugar output.
12728 * tests/local.at: Require 2.57.
12729 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
12730 are defaulted by AT_CHECK anyway.
12731 Use AT_CHECK_AUTOM4TE.
12732 * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
12735 2003-08-27 Akim Demaille <akim@epita.fr>
12737 * bin/autoheader.in: Issue the "Using auxiliary..." message only
12738 when -Wobsolete is set.
12739 Set it on by default.
12740 Suggested by Klee Dienes.
12742 2003-08-27 Akim Demaille <akim@epita.fr>
12744 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
12746 From Guido Draheim.
12748 2003-08-26 Akim Demaille <akim@epita.fr>
12750 * doc/autoconf.texi (Output): Make clear that one can run code
12753 2003-08-25 Akim Demaille <akim@epita.fr>
12755 * config/announce-gen, GNUmakefile, Makefile.maint: Update from
12758 2003-08-25 Alexandre Duret-Lutz <adl@gnu.org>
12760 * bin/autoreconf.in (parse_args): Do not pass --no-force to
12761 Automake versions prior to 1.8.
12763 2003-08-25 Akim Demaille <akim@epita.fr>
12765 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
12766 From Ville Karaila.
12768 2003-08-24 Akim Demaille <akim@epita.fr>
12770 * configure.ac: Bump to 2.57c.
12772 2003-08-22 Akim Demaille <akim@epita.fr>
12776 * Makefile.cfg (local-checks-to-skip): New.
12777 * Makefile.maint (local-check): Rename as...
12778 (local-checks-available): this.
12779 (local-check): New.
12781 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
12782 * configure.ac: Require Automake 1.7.6.
12784 2003-08-22 Akim Demaille <akim@epita.fr>
12786 Output stack traces in warnings.
12788 * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
12789 Replace the former...
12790 (m4_warn): Pass the call stack to _m4_warn.
12791 * bin/autom4te.in: Adjust to output the call stack.
12792 * tests/m4sugar.at (m4@&t@_warn): Adjust.
12794 2003-08-22 Akim Demaille <akim@epita.fr>
12796 * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
12797 * bin/autom4te.in: Adjust.
12799 2003-08-21 Akim Demaille <akim@epita.fr>
12801 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
12802 (&verbose): Remove.
12803 (&getopt): Adjust the note and verb channels, depending upon
12805 * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
12806 * bin/autoupdate.in: Adjust.
12807 Use &verb, not &verbose.
12809 2003-08-21 Akim Demaille <akim@epita.fr>
12811 * bin/autoheader.in (&parse_args): Use &parse_warnings and
12813 ($help): Use Autom4te::ChannelDefs::usage.
12814 * bin/autoscan.in: Use Autom4te::ChannelDefs.
12815 * lib/Autom4te/General.pm: Don't export error: you don't own it.
12817 2003-08-21 Akim Demaille <akim@epita.fr>
12819 First stab at preserving warnings between calls to autom4te,
12820 including when the cache is used.
12822 There are still several issues: (i) there are too many runs of m4
12823 (one for include, one for warnings, and some more), (ii) warnings
12824 spreading on several lines are not handled gracefully, (iii) the
12825 code meant to have the call stack display for errors does not work
12826 (its handling should move from m4 to autom4te).
12828 * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
12830 (@preselect): Add m4_warn.
12831 ($exit_status): Remove, use $exit_code.
12832 ($help): Use Autom4te::ChannelDefs::usage.
12833 (&handle_m4): No longer define the m4_warnings.
12834 At each run, extract and report the warnings.
12835 Always cache the result, including if the exit status is on
12836 failure, since if nothing changes, we should result in the same
12837 failure, hence we can use the cache.
12838 * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
12839 (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
12841 (m4_warn): Redefine as a do-nothing: it is its invocation that
12842 matters, as warnings are now reported via traces.
12843 * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
12844 the contents of m4_warn: make it _call_ m4_warn, so that tracing
12845 the latter reveals calls to the former.
12849 * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
12851 2003-08-21 Akim Demaille <akim@epita.fr>
12853 * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
12856 2003-08-21 Akim Demaille <akim@epita.fr>
12858 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
12860 * lib/Autom4te/ChannelDefs.pm: Doc typos.
12861 (&parse_warnings): Accept a list of warning requests.
12862 (&usage): Return a string, not a side effect.
12863 (cross): New warning category.
12865 2003-08-21 Akim Demaille <akim@epita.fr>
12867 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
12868 (&require_configure_ac): Accept an optional directory argument.
12869 ($configure_ac): Remove.
12870 * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
12871 (&catfile): Remove.
12872 * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
12873 * bin/autoscan.in: Adjust.
12875 2003-08-20 Akim Demaille <akim@epita.fr>
12877 * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
12878 Reported by Alexandre Duret-Lutz.
12880 2003-08-20 Akim Demaille <akim@epita.fr>
12882 * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
12883 * bin/autom4te: Adjust.
12884 In particular, be Autoconf tools are really silent when properly
12885 working, bind the verbosity of the 'note' channel to $verbose.
12886 * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
12887 (&xsystem, &contents): Remove, since they are exported by...
12888 * lib/Autom4te/FileUtils.pm: this.
12890 * lib/Autom4te/General.pm (&up_to_date_p): Move to...
12891 * lib/Autom4te/FileUtils.pm: here.
12893 2003-08-20 Akim Demaille <akim@epita.fr>
12895 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
12896 * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
12899 2003-08-20 Akim Demaille <akim@epita.fr>
12901 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
12902 (autom4te-update): New.
12903 * Makefile.cfg (update): Bind autom4te-update.
12905 2003-08-19 Derek Price <derek@ximbiot.com>
12907 * lib/autotest/general.m4: Comment various HELP_* diversions.
12908 (PARSE_ARGS_BEGIN): New section for option parsing related
12910 (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
12911 package specific options and associated help.
12913 2003-08-19 Akim Demaille <akim@epita.fr>
12915 * config/announce-gen, Makefile.cfg: New.
12916 * Makefile.am: Adjust.
12917 * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
12919 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
12921 * lib/autom4te.in (Automake-preselections): Preselect
12922 AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
12925 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
12927 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
12928 (Autoconf-without-aclocal-m4): ... this new language.
12929 * doc/autoconf.texi (autom4te Invocation): Mention
12930 Autoconf-without-aclocal-m4.
12932 2003-08-18 Derek Price <derek@ximbiot.com>
12934 * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
12935 RUN-IF-PASS optional arguments.
12937 2003-08-18 Derek Price <derek@ximbiot.com>
12939 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
12941 2003-08-16 Derek Price <derek@ximbiot.com>
12943 * doc/autoconf.texi (Writing testsuite.at): Document defaults for
12944 STDOUT & STDERR arguments.
12946 2003-08-14 Derek Price <derek@ximbiot.com>
12948 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
12949 DESCRIPTION rather than FILE and LINE. Shorten result to fit in new,
12950 shorter column three. Add DESCRIPTION to log file content.
12952 2003-08-13 Derek Price <derek@ximbiot.com>
12954 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
12957 2003-08-12 Derek Price <derek@ximbiot.com>
12959 * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
12960 (AT_CHECK_NOESCAPE): Move core functionality to...
12961 (_AT_CHECK): ...this new macro.
12963 2003-08-07 Derek Price <derek@ximbiot.com>
12965 * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
12966 (AT_CHECK_NOESCAPE): ...to this new macro.
12968 2003-07-31 Paul Eggert <eggert@twinsun.com>
12970 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
12971 in Bash 2.01. Problem reported by Brian Gough in
12972 <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
12974 2003-07-25 John W. Eaton <jwe@bevo.che.wisc.edu>
12976 * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
12977 -lcrt1.o, for OS X. (trivial change)
12979 2003-07-07 Paul Eggert <eggert@twinsun.com>
12981 * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
12982 inside '#ifndef __cplusplus'. Problem reported by
12985 2003-07-06 Bill Clarke <llib@computer.org>
12987 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
12988 'long', not 'int', for benefit of Sun's recent C++ compilers
12989 (trivial change). See:
12990 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
12991 (This really should be 'intptr_t', not 'long', but that would
12994 2003-06-25 Akim Demaille <akim@epita.fr>
12996 * lib/Makefile.am (autom4te.cfg): Make it read only.
12997 Depend on Makefile since it contains substitutions.
12998 From Paolo Bonzini.
12999 * lib/autom4te.in (args): Add local.at? for Autotest args.
13000 This change was made on autom4te.cfg which is generated.
13001 Reported by Raja R. Harinath.
13003 2003-06-25 Akim Demaille <akim@epita.fr>
13005 * doc/autoconf.texi (Header Portability): sys/mount.h.
13006 From Gareth McCaughan.
13008 2003-06-23 Akim Demaille <akim@epita.fr>
13010 * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
13011 not all of them. This fixes 1. the fact that when testing
13012 Autoconf there are many many config.log, 2. the incorrect use of
13013 top_srcdir to find config.log.
13014 Don't mix the detailed output of failed test with the summary of
13015 failures. Rather, append detailed log afterwards.
13017 2003-06-23 Akim Demaille <akim@epita.fr>
13019 * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
13020 always run: output config.log on $at_group_log.
13022 2003-06-23 Akim Demaille <akim@epita.fr>
13024 * tests/torture.at (#define header templates): Don't use quotes in
13025 C++ comments as it puzzles Emacs' sh font-lock-mode.
13027 2003-06-23 Akim Demaille <akim@epita.fr>
13029 * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
13030 * lib/autom4te.cfg (args): Add local.at? for Autotest args.
13031 * tests/atspecific.m4: Rename as...
13032 * tests/local.at: This.
13033 * tests/suite.at: Move the globals into...
13034 * tests/local.at: here.
13035 * tests/Makefile.am: Adjust.
13036 * doc/autoconf.texi (testsuite Scripts): Adjust.
13038 2003-06-21 Kevin Ryde <user42@zip.com.au>
13040 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
13041 error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
13042 ensuring we add -std1 for full-ANSI.
13044 * doc/autoconf.texi (hdrindex): New macro.
13045 Add index entries for portability of various standard header files.
13047 2003-06-20 Akim Demaille <akim@epita.fr>
13049 * configure.ac: Bump to 2.57b.
13051 2003-06-20 Akim Demaille <akim@epita.fr>
13055 2003-06-20 Akim Demaille <akim@epita.fr>
13057 * bin/autom4te.in: Don't rely on $HOME being defined.
13058 Reported by Marc Espie as PR/233.
13060 2003-06-20 Akim Demaille <akim@epita.fr>
13062 * lib/autotest/general.m4: Use at_times_file only if used.
13065 2003-06-20 Akim Demaille <akim@epita.fr>
13067 * config/config.guess, config/config.sub, config/elisp-comp,
13068 * config/install-sh, config/mkinstalldirs, doc/standards.texi:
13069 Update from masters.
13071 2003-06-11 Paolo Bonzini <bonzini@gnu.org>
13073 * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
13074 * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
13075 (TEST_SCRIPT): New diversion.
13076 (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
13077 (AT_CLEANUP): ...to here. Undivert TEST_SCRIPT.
13078 (AT_INIT): Support for expected failures.
13080 2003-06-02 Akim Demaille <akim@epita.fr>
13082 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
13084 * lib/Autom4te/General.pm (&backname): Remove, no longer used by
13085 Autoconf nor Automake.
13086 (&contents): New, from Automake.
13089 2003-05-28 Paul Eggert <eggert@twinsun.com>
13091 * NEWS, doc/autoconf.texi (Particular Functions),
13092 lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
13093 is the inverse of localtime.
13095 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
13097 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
13098 (handle_exec_errors): New function. Work around $! being
13099 altered by WEXITSTATUS.
13100 (xqx, xsystem): Use handle_exec_errors.
13102 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
13104 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
13105 Do not call `_exit()', simply modify `$?'.
13106 (xsystem): Reset $! before running system, and check it afterward.
13107 * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
13108 63 for version mismatches.
13110 2003-05-23 Akim Demaille <akim@epita.fr>
13112 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
13113 Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
13114 the middle of a line).
13115 * lib/m4sugar/m4sugar.m4: Likewise.
13116 Remove useless spaces in comments.
13118 2003-05-23 Akim Demaille <akim@epita.fr>
13120 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
13121 exit 63, so that we (or Automake's "missing") can tell the
13122 difference with a plain failure.
13123 * doc/autoconf.texi (Notices): Adjust.
13125 2003-05-23 Akim Demaille <akim@epita.fr>
13127 * Makefile.am, bin/Makefile.am, config/Makefile.am,
13128 * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
13129 White spaces cleanup.
13131 2003-05-22 Jim Meyering <jim@meyering.net>
13132 Paul Eggert <eggert@twinsun.com>
13134 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
13135 Remove `#include <stdlib.h>' from the list; we should never
13136 make confdefs.h include <stdlib.h> or <cstdlib>, because the
13137 resulting namespace pollution would cause other tests to fail.
13138 Configure scripts run with some older versions of g++ and HP's
13139 aCC would fail due to such an #include. Problems reported by
13140 Matthew Mueller in <http://bugs.debian.org/120704> and by
13142 <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
13143 In the test, use the test declaration before including <stdlib.h>,
13144 as that's closer to how it'll be used.
13146 2003-05-23 Akim Demaille <akim@epita.fr>
13148 * doc/autoconf.texi (Header Portability): ucred.h.
13151 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
13153 Overhaul Autotest's logging: generate separate log files
13154 in testsuite.dir/NNN/testsuite.log, and append them to
13155 testsuite.log instead of re-running the test verbosely.
13157 * lib/autotest/general.m4 (AT_INIT): Use a single redirected
13158 file descriptor, write 0 to at_status_file instead of setting
13159 at_status=0, initialize some new variables (at_status_file,
13160 at_group_log, at_suite_log, at_tee_pipe). Remove the cruft
13161 to rerun the tests, instead append the at_group_log to the
13162 at_suite_log when a test fails.
13163 (AT_SETUP): pipe the test case's output into at_tee_pipe,
13164 with the AS_MESSAGE_LOG_FD redirected to stdout.
13165 (AT_CLEANUP): save the output status in $at_status_file
13166 and restore it, redirect the AS_MESSAGE_LOG_FD back to
13167 its original place.
13168 (AT_CHECK): since tests are run with a redirected stdout,
13169 and used to be re-run in verbose mode, turn some $at_verbose
13170 into echo, and don't redirect the output of testing stdout
13173 * lib/autotest/autoconf.texi (testsuite Scripts): Update
13174 the name of the debugging directory and information about
13177 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
13179 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
13182 2003-05-22 Akim Demaille <akim@epita.fr>
13184 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
13185 * lib/autoconf/fortran.m4 lib/autoconf/general.m4
13186 * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
13187 * lib/autoconf/status.m4: Fix and adjust copyright notices.
13189 2003-05-22 Akim Demaille <akim@epita.fr>
13191 * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
13192 * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
13193 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
13194 * lib/autoconf/general.m4, lib/autoconf/headers.m4,
13195 * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
13196 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
13197 * lib/autoconf/status.m4, lib/autoconf/types.m4,
13198 * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
13199 * tests/atspecific.m4, tests/base.at, tests/compile.at,
13200 * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
13201 * tests/tools.at, tests/torture.at:
13202 Whitespace clean up.
13203 Suggested by Jim Meyering.
13205 2003-05-22 Akim Demaille <akim@epita.fr>
13207 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
13208 ' \t' as '\t ' so that Emacs' whitespace.el keep it.
13209 Reported by Jim Meyering.
13211 2003-05-22 Akim Demaille <akim@epita.fr>
13213 * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
13214 Add AC_HELP_STRING to the obsolete macros section.
13216 Use '@.' for sentences that ended in a capital letter.
13219 2003-05-22 Akim Demaille <akim@epita.fr>
13221 * config/config.guess, config/config.sub, config/elisp-comp,
13222 * config/install-sh, config/mdate-sh, config/mkinstalldirs,
13223 * config/texinfo.tex, doc/standards.texi: Update from masters.
13225 2003-05-21 Paolo Bonzini <bonzini@gnu.org>
13227 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
13230 2003-05-21 Akim Demaille <akim@epita.fr>
13232 * bin/autoupdate.in ($m4): Fix quotation.
13233 Reported by Martin Mokrejs.
13235 2003-05-19 Paul Eggert <eggert@twinsun.com>
13237 * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
13238 Remove non-ASCII characters.
13240 2003-05-18 Paolo Bonzini <bonzini@gnu.org>
13242 * tests/semantics.at (AC_SEARCH_LIBS): New test.
13243 * tests/semantics.at (AC_CHECK_HEADERS_OLD,
13244 AC_CHECK_HEADERS_NEW): New tests.
13246 2003-05-17 Akim Demaille <akim@epita.fr>
13248 * lib/autoconf/functions.m4: Use the default includes so that
13249 memcmp be declared before being tested.
13250 Reported by Sander Niemeijer.
13251 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
13252 * doc/autoconf.texi (Default Includes): Document
13253 AC_INCLUDES_DEFAULT.
13255 2003-05-17 Akim Demaille <akim@epita.fr>
13257 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
13258 * doc/autoconf.texi (Obsolete Macros): Adjust.
13259 Reported by Werner LEMBERG and Debian Bug 190886.
13261 2003-05-16 Akim Demaille <akim@epita.fr>
13263 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
13264 user name space clashes.
13265 Reported by Bruno Haible.
13267 2003-05-16 Akim Demaille <akim@epita.fr>
13269 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
13270 * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
13271 them uniform, and more robust to Perl special characters.
13272 Reported by Martin Mokrejs.
13274 2003-05-14 Akim Demaille <akim@epita.fr>
13276 * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
13278 2003-05-14 Akim Demaille <akim@epita.fr>
13280 * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
13283 2003-05-12 Akim Demaille <akim@epita.fr>
13285 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
13287 From Matthias Andree.
13289 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
13291 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
13294 2003-05-06 Akim Demaille <akim@epita.fr>
13296 Don't try to be smart with aclocal 1.8+ because (i) aclocal no
13297 longer updates aclocal.m4 if useless, (ii) if a file m4_included
13298 by aclocal.m4 is changed it might require the importing of another
13299 m4 extension file, i.e., aclocal must be run.
13301 * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
13302 (&parse_args): Use --force with aclocal if required and supported.
13303 (&autoreconf_current_directory): Use &run_aclocal.
13305 2003-05-06 Akim Demaille <akim@epita.fr>
13307 Lock autom4te's cache.
13309 * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
13310 * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
13311 argument instead of a file name, so that the request file remains
13312 open during the whole autom4te run.
13313 ($icache_file): New.
13314 (&freeze): Lock the $icache_file.
13316 2003-04-29 Derek Price <derek@ximbiot.com>
13318 * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
13319 seperator with m4_append_uniq(). It doesn't work.
13320 (AT_CLEANUP): Add `;' to end of at_help_all.
13321 (AT_INIT): Allow --keywords to be specified more than once. When
13322 grepping $at_help_all for keywords, use the field and keyword
13323 seperators to ensure a complete keyword match. Alter at_prev handling
13324 to support the new --keywords behavior.
13326 2003-04-27 Karl Berry <karl@freefriends.org>
13328 * doc/autoconf.texi: Make the dir entries in the autoconf manual
13329 align better with others. I also made some of the individual
13330 entries on one line, for brevity and to make it easier for me to
13331 sort my dir-example file in the Texinfo distribution :).
13333 2003-04-12 Jim Meyering <jim@meyering.net>
13335 * NEWS: Mention the new macro.
13336 * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
13337 * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
13338 * tests/c.at: Test AC_C_RESTRICT.
13339 * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
13341 2003-04-08 Akim Demaille <akim@epita.fr>
13343 * bin/ifnames.in: Skip C++ comments.
13344 From Jeremy Yallop.
13346 2003-04-08 Akim Demaille <akim@epita.fr>
13348 * GNUmakefile (SHELL): Don't assume sh is in /bin/.
13349 From Ilya Zakharevich.
13351 2003-04-08 Akim Demaille <akim@epita.fr>
13353 * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
13354 net/if.h, stdlib.h.
13356 2003-04-01 Derek Price <derek@ximbiot.com>
13358 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
13359 from Akim's checkin of 2003-03-29.
13361 2003-04-01 Derek Price <derek@ximbiot.com>
13363 * tests/torture.at (Configuring subdirectories): Add missing
13364 close-quote for Akim's change from 2003-03-28.
13366 2003-04-01 Akim Demaille <akim@epita.fr>
13368 * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
13369 (AC, AT, MS): these.
13370 (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
13373 * doc/Makefile.am (CLEANFILES): Adjust.
13374 (TEXI2DVI): Make it --batch.
13376 2003-03-31 Derek Price <derek@ximbiot.com>
13378 * lib/autotest/general.m4: Revert the checkin from 2003-03-27
13379 which removed the main loop.
13380 Thanks to Akim Demaille.
13382 2003-03-29 Akim Demaille <akim@epita.fr>
13384 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
13386 From Ilya Zakharevich.
13388 2003-03-29 Akim Demaille <akim@epita.fr>
13390 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
13391 documentation to read is Autoconf's.
13392 Suggested by Paul Eggert.
13394 2003-03-28 Akim Demaille <akim@epita.fr>
13396 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
13397 reading the section "Present But Cannot Be Compiled" when the
13398 header causes problems.
13400 2003-03-28 Akim Demaille <akim@epita.fr>
13402 * tests/torture.at (Configuring subdirectories): Require aclocal
13403 1.4, otherwise the test fails, as it does support configure.ac.
13404 This fixes the "test 40 failed" bug reports.
13406 2003-03-28 Akim Demaille <akim@epita.fr>
13408 * doc/autoconf.texi (C Compiler): `#line' portability.
13409 From Paul Eggert and Nelson H. F. Beebe.
13411 2003-03-27 Derek Price <derek@ximbiot.com>
13413 * lib/autotest/general.m4: Eliminate main loop and reorganize test
13414 layout in order to allow scripting around test groups.
13416 2003-03-27 Derek Price <derek@ximbiot.com>
13418 * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
13419 HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
13420 use new diversions in preparation for accepting new arguments and
13421 allowing scripting around tests.
13422 (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
13424 2003-03-26 Derek Price <derek@ximbiot.com>
13426 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
13427 obsolete AC_HELP_STRING.
13428 (AC_HELP_STRING): AU_DEFUN to...
13429 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
13430 * tests/m4sh.at (AS_HELP_STRING): New test.
13432 * tests/acgeneral.at: Regenerated.
13434 2003-03-26 Derek Price <derek@ximbiot.com>
13436 * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
13437 sense. Verbosify the diversion definitions comment.
13439 2003-03-26 Derek Price <derek@ximbiot.com>
13441 * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
13444 2003-03-21 Eric Siegerman <eric_97@pobox.com>
13446 * doc/autoconf.texi (Present But Cannot Be Compiled):
13447 Grammar fixes and minor rewording. (trivial change)
13449 2003-03-06 Paul Eggert <eggert@twinsun.com>
13451 Work around a problem noted by Nelson H. F. Beebe with coreutils
13452 4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
13453 2002/05/09) rejects '#line 32768 "configure"' because the line
13455 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
13457 * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
13458 * doc/autoconf.texi (Generating Sources): Document this.
13460 2003-03-01 Richard Dawe <rich@phekda.freeserve.co.uk>
13462 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
13463 file name for the m4 program, when it has an "exe" file extension.
13464 DJGPP's error messages include the error code in brackets -
13465 remove the error code during normalization.
13467 2003-02-28 Akim Demaille <akim@epita.fr>
13469 * doc/autoconf.texi (Present But Cannot Be Compiled): New.
13471 2003-02-28 Alexandre Duret-Lutz <adl@gnu.org>
13473 * doc/autoconf.texi (Limitations of Make): Remove the section
13474 about `$<' in inference rules, it was a bogus interpretation of
13475 an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
13476 Tru64 make in the "target lookup" section.
13477 (Automake): Automake 1.5+ no longer requires special tools to be
13478 present on the developer's host.
13480 2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
13482 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
13483 to a shell that can handle redirection or quoting correctly.
13484 Override SHELL with the shell detected by configure.
13485 Use of $^O suggested by Tim van Holder.
13486 * bin/autom4te.in (BEGIN): Likewise.
13487 * bin/autoreconf.in (BEGIN): Likewise.
13488 * bin/autoscan.in (BEGIN): Likewise.
13489 * bin/autoupdate.in (BEGIN): Likewise.
13490 * bin/ifnames.in (BEGIN): Likewise.
13492 * bin/ifnames.in: Add final newline to help and version messages.
13494 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
13495 to cope with DOS-style absolute paths, when constructing
13498 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
13499 When constructing paths with IFS=:, quote the path. If we're
13500 constructing a DOS-style absolute path, we don't want to split it
13503 * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
13506 2003-02-25 Pavel Roskin <proski@gnu.org>
13508 * bin/autoheader.in: Add missing newline when printing
13509 suggestion how change AC_DEFINE call.
13511 2003-02-24 Paul Eggert <eggert@twinsun.com>
13513 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
13514 2002-09-01 patch by replacing "test -n" with "test -z".
13515 This fixes a bug found by Jeff Painter and reported by Tom Epperly in
13516 <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
13518 * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
13519 to fix a mismatch between example and discussion.
13521 2003-02-24 Kevin Ryde <user42@zip.com.au>
13523 * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
13524 format starting with "-".
13526 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
13528 * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
13529 is not portable inside Makefile.
13531 2003-02-20 Akim Demaille <akim@epita.fr>
13533 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
13534 compiler says yeah, but preproc says nope, compiler is right.
13535 Conversely, prompt the reader to send a bug report to the
13536 maintainers of the package, not of Autoconf.
13538 2003-02-20 Klee Dienes <kdienes@apple.com>
13540 * bin/autoreconf.in (autoreconf_current_directory): Properly
13541 handle an empty aclocal.m4.
13543 2003-02-20 Akim Demaille <akim@epita.fr>
13545 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
13546 $ac_prefix_program.
13549 2002-12-23 Paul Eggert <eggert@twinsun.com>
13551 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
13552 innocuous variant befor including <limits.h> or <assert.h>. This
13553 works around a bug reported by Albert Chin: HP-UX 11i
13554 (and earlier versions) have a <limits.h> that declares
13555 gettimeofday and many other functions.
13557 2002-12-03 Paul Eggert <eggert@twinsun.com>
13561 * NEWS, configure.ac: Update version.
13563 * doc/fdl.texi: Upgrade to FDL version 1.2.
13565 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
13566 nontrivially in main's body, so that f's external declaration is
13567 not optimized away in AIX. This should fix the bug reported by
13569 <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
13571 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
13572 _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
13573 defined, to support freestanding compilers. This should fix the
13574 bug reported by Momchil Velkov in
13575 <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
13577 * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
13578 arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
13579 obsolete AC_CHECK_TYPE. The missing empty arg was reported
13580 by Simon Josefsson in
13581 <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
13583 * Makefile.maint (www-gnu): New macro.
13584 (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
13585 the location has moved.
13587 2002-12-02 Martin Frydl <martin@systinet.com>
13589 * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
13590 \(.*\) match is too long and there is something more to be checked.
13591 <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
13593 2002-11-15 Akim Demaille <akim@epita.fr>
13597 * config/install-sh: chmod +x.
13599 * config/move-if-change: Indenting changes.
13600 * Makefile.am (AUTOMAKE_OPTIONS): Move to...
13601 * configure.ac (AM_INIT_AUTOMAKE): here.
13604 2002-11-14 Akim Demaille <akim@epita.fr>
13608 * config/config.guess, config/config.sub, config/install-sh:
13609 Update from masters.
13611 2002-11-14 Akim Demaille <akim@epita.fr>
13613 * Makefile.maint: Sync with Bison, i.e.:
13614 (po-check): Scan .l and .y files instead of the
13615 .c and the .h files that they generate. This fixes the bug
13616 reported by Tim Van Holder in:
13617 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
13618 Look for N_ as well as for _. Try to avoid matching #define for
13622 2002-11-14 Akim Demaille <akim@epita.fr>
13624 * doc/autoconf.texi (C Compiler): Compiling several files at once.
13625 From Paul Eggert and Albert Chin-A-Young.
13627 2002-11-14 Akim Demaille <akim@epita.fr>
13629 * doc/autoconf.texi (C Compiler): Solitary backslashes.
13630 From Paul Eggert and Albert Chin-A-Young.
13632 2002-11-14 Kevin Ryde <user42@zip.com.au>
13634 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
13635 than assigning in main, to avoid HP cc +O3 optimizing it away.
13637 2002-11-12 Peter Eisentraut <peter_e@gmx.net>
13639 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
13640 option. Process --recheck after parsing all options. Pass -q
13641 option to configure on --recheck.
13642 (AC_OUTPUT): Pass -q from configure to config.status.
13643 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
13644 arguments to record.
13645 * doc/autoconf.texi (config.status Invocation): Document
13646 config.status -q option.
13648 2002-11-07 Alexandre Duret-Lutz <adl@gnu.org>
13650 * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
13651 Makefile.in if Makefile.am exists.
13652 (output): Strip `.am' from Makefiles. Don't
13653 output AC_CONFIG_FILES if no Makefiles were found.
13655 2002-11-07 Akim Demaille <akim@epita.fr>
13657 * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
13658 (local_updates): New.
13659 * Makefile.maint: Update, from CVS Bison.
13660 (local_updates): New.
13662 2002-11-06 Akim Demaille <akim@epita.fr>
13664 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
13665 declaration in extern "C" too.
13666 Reported by Roberto Bagnara.
13668 2002-11-06 Akim Demaille <akim@epita.fr>
13670 * tests/torture.at (Configuring subdirectories): Don't use grep
13672 * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
13673 Reported by Ezra Peisach.
13675 2002-11-05 Akim Demaille <akim@epita.fr>
13677 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
13679 We _have_ to stop using the old compatibility scheme that tried to
13680 avoid useless backslashes because Libtool 1.4.3 contains a
13681 AC_DEFINE([error_t], [int],
13682 [Define to a type to use for \`error_t' if it is not
13683 otherwise available.])
13684 We _have_ to quote the single quote and backslashes with \. The
13685 old compatibility scheme saw that ` was backslashed, and therefore
13686 did not quote the single quote. Hence before this patch, Autoconf
13687 was not compatible with Libtool.
13689 2002-11-04 Paul Eggert <eggert@twinsun.com>
13691 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
13692 too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
13693 LC_NAME, LC_PAPER, LC_TELEPHONE.
13694 * doc/autoconf.texi (Special Shell Variables): Mention those vars.
13696 2002-11-04 Akim Demaille <akim@epita.fr>
13700 * Makefile.maint (update, cvs-update, po-update, do-po-update):
13702 * config/texinfo.tex: Update.
13704 2002-11-03 Akim Demaille <akim@epita.fr>
13706 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
13708 (&autoreconf): here.
13709 ($help, $make, &parse_args, &autoreconf_current_directory):
13711 * doc/autoconf.texi (autoreconf Invocation): Adjust.
13713 2002-10-31 Bruno Haible <bruno@clisp.org>
13715 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
13716 Change name of cache variable to ac_cv_func_malloc_0_nonnull.
13717 (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
13718 (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
13719 to ac_cv_func_realloc_0_nonnull.
13720 (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
13722 2002-10-31 Akim Demaille <akim@epita.fr>
13724 The test suite was no longer checking for trailing envvars and files.
13726 * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
13727 (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
13729 2002-10-31 Akim Demaille <akim@epita.fr>
13731 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
13732 `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
13733 Make variable, not a shell variable.
13734 Suggested by Bruno Haible.
13736 2002-10-31 Akim Demaille <akim@epita.fr>
13738 * bin/autom4te.in (load_configuration): Reject #args out of any
13741 2002-10-31 Akim Demaille <akim@epita.fr>
13743 * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
13744 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
13745 (_AC_RUN_IFELSE): Use it.
13746 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
13747 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
13748 * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
13751 2002-10-30 Akim Demaille <akim@epita.fr>
13753 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
13754 * doc/autoconf.texi (autom4te Invocation): Adjust.
13755 Suggested by Tim van Holder.
13757 2002-10-29 Paul Eggert <eggert@twinsun.com>
13759 * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
13760 AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
13761 Problem reported by Bruno Haible.
13763 2002-10-29 Akim Demaille <akim@epita.fr>
13765 * doc/autoconf.texi (Header Templates): Put also in words what the
13766 pictures says to assist free style readers.
13767 (Customizing autom4te): s/--cache=/--cache /.
13769 2002-10-29 Akim Demaille <akim@epita.fr>
13771 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
13773 sparc_address_test returns void.
13774 Use it with an argument, as prototyped.
13777 2002-10-29 Akim Demaille <akim@epita.fr>
13779 * doc/autoconf.texi (Subdirectories): Cygnus dirs have
13780 configure.in, not configure.ac.
13781 Reported by Bruno Haible.
13783 2002-10-29 Akim Demaille <akim@epita.fr>
13785 * tests/torture.at (Deep Package): New test.
13786 (Configuring subdirectories): Don't use a testSubDir as Autotest
13787 now does it itself.
13789 2002-10-29 Akim Demaille <akim@epita.fr>
13791 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
13792 * doc/autoconf.texi (Invoking autom4te): Rename as...
13793 (autom4te Invocation): this, for consistency with the other nodes.
13795 2002-10-29 Akim Demaille <akim@epita.fr>
13797 * lib/autom4te.in (Autoconf): s/automate/autom4te/.
13798 Reported by Ralf Corsepius.
13800 2002-10-29 Akim Demaille <akim@epita.fr>
13802 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
13803 characters is a back as an `obsolete' warning now.
13804 Reported by Ralf Corsepius.
13806 2002-10-28 Akim Demaille <akim@epita.fr>
13808 * configure.ac: Bump to 2.54c.
13810 2002-10-28 Akim Demaille <akim@epita.fr>
13814 * tests/foreign.at (Libtool): Adjust to broken libtoolize.
13816 2002-10-28 Akim Demaille <akim@epita.fr>
13818 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
13819 m4 executable names, and different GNU M4 version.
13820 Reported by Ezra Peisach and Paul Jarc.
13822 2002-10-27 Akim Demaille <akim@epita.fr>
13824 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
13827 2002-10-27 Akim Demaille <akim@epita.fr>
13829 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
13830 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
13831 Die when a simple Fortran program cannot be compiled.
13832 * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
13833 Issue a warning if no function is given.
13835 2002-10-27 Akim Demaille <akim@epita.fr>
13837 * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
13838 Move the documentation of AC_TRY_RUN to...
13839 (Obsolete Macros): here.
13840 Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
13841 (autoconf Invocation): Remove the duplicates with `invoking
13843 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
13844 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
13846 2002-10-27 Akim Demaille <akim@epita.fr>
13848 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
13849 and AC_LANG_FUNC_LINK_TRY.
13850 (Examining Libraries): Rename as...
13851 (Running the Linker): this.
13852 Document AC_LINK_IFELSE.
13853 Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
13854 (Obsolete Macros): here.
13855 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
13856 AC_TRY_LINK_FUNC nor AC_TRY_LINK.
13857 * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
13858 * lib/autoconf/headers.m4 (AC_USG): Likewise.
13860 2002-10-27 Akim Demaille <akim@epita.fr>
13862 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
13864 More `check config.log' messages.
13866 * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
13867 * doc/autoconf.texi (Printing Messages): Document it.
13868 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
13870 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
13871 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
13872 (_AC_COMPILER_OBJEXT): Likewise.
13873 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
13874 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
13876 * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
13879 Deprecate macros with unusual interfaces.
13881 * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
13882 (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
13884 Document the new ones, and proper style.
13886 * doc/autoconf.texi (Generating Sources): New.
13887 Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
13888 (Examining Declarations): Rename as...
13889 (Running the Preprocessor): this.
13890 Document AC_PREPROC_IFELSE.
13891 (Examining Syntax): Rename as...
13892 (Running the Compiler): this.
13893 (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
13894 (Obsolete Macros): Move the definition of AC_TRY_CPP and
13895 AC_TRY_COMPILE here.
13897 2002-10-27 Akim Demaille <akim@epita.fr>
13899 Move sections around.
13901 * doc/autoconf.texi (Customizing autom4te): Remove a lost
13903 Reported by Burno Haible.
13904 (Language Choice): Now the first section of...
13905 (Writing Tests): this section.
13906 Make the introduction less C-centric.
13907 (Guidelines, Test Functions): Move to...
13908 (Writing Test Programs): this new section.
13909 (Test Programs): Merge into...
13912 2002-10-27 Akim Demaille <akim@epita.fr>
13914 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
13915 autom4te.in that resulted in the need for two `make' runs.
13917 2002-10-27 Akim Demaille <akim@epita.fr>
13919 * configure.ac: Bump to 2.54b.
13921 2002-10-25 Akim Demaille <akim@epita.fr>
13925 * Makefile.maint: Update from the Coreutils.
13926 (AMTAR): Remove, obsolete.
13927 (automake_repo): Update to redhat.com.
13929 Adjust to the fact that ansi2knr is now hosted by Automake.
13930 * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
13931 * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
13932 Update from masters.
13933 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
13934 autoscan.pre is not to be installed, and autoscan.list is not to
13936 (CLEANFILES): Add autoscan.list.
13937 (autoscan.list): Disable the cache.
13938 * bin/Makefile.am: Include freeze.mk.
13940 2002-10-25 Akim Demaille <akim@epita.fr>
13942 * bin/autom4te.in (&load_configuration): Take the file as
13944 (&parse_args): Handle -C, --cache.
13946 (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
13947 * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
13948 * doc/autoconf.texi (Invoking autom4te): Document --cache.
13949 Now a subsection of...
13950 (Using autom4te): This new section.
13951 (Customizing autom4te): New.
13952 (autom4te.cache): Adjust.
13954 2002-10-25 Akim Demaille <akim@epita.fr>
13956 * doc/autoconf.texi (Generic Headers): More information on how to
13957 use AC_CHECK_HEADERS.
13959 2002-10-25 Akim Demaille <akim@epita.fr>
13961 * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
13964 2002-10-25 Akim Demaille <akim@epita.fr>
13966 * bin/autoscan.in (output): Output AC_PREREQ.
13967 (%needed_macros): Add AC_PREREQ so that configure.ac without one
13970 2002-10-23 Akim Demaille <akim@epita.fr>
13972 * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
13975 2002-10-23 Akim Demaille <akim@epita.fr>
13977 * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
13978 Reported by Peter Eisentraut.
13980 2002-10-23 Akim Demaille <akim@epita.fr>
13982 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
13985 * doc/autoconf.texi (Particular Headers): Adjust according to Paul
13986 Eggert's recommandations.
13988 2002-10-22 Akim Demaille <akim@epita.fr>
13990 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
13991 Bison, by Paul Eggert.
13992 * doc/autoconf.texi (Particular Headers): Document it.
13994 2002-10-22 Aaron M. Ucko <amu@alum.mit.edu>
13996 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
13997 `$ac_configure_args'.
13999 2002-10-22 Akim Demaille <akim@epita.fr>
14001 * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
14002 (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
14005 2002-10-22 Akim Demaille <akim@epita.fr>
14007 Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
14009 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14010 (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
14011 (_AC_CHECK_HEADER_NEW): Rename as...
14012 (AC_CHECK_HEADER): this.
14014 2002-10-22 Akim Demaille <akim@epita.fr>
14016 * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
14017 words about HP-UX cmp: it was actually a user-written cmp.
14019 2002-10-22 Akim Demaille <akim@epita.fr>
14021 * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
14022 are a few warnings.
14023 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14024 Quote for Perl '' strings, not "".
14025 * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
14028 2002-10-22 Akim Demaille <akim@epita.fr>
14030 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
14031 characters is a syntax warning now.
14032 (_AS_QUOTE): Accept $2 as list of characters to quote.
14033 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
14034 Quote for Perl, not sh.
14035 * bin/autoheader.in: When $debug, report the file which is
14037 * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
14038 `@', to tickle Perl's lists.
14039 Reported by Carlos Velasco.
14041 2002-10-18 Akim Demaille <akim@epita.fr>
14043 * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
14044 missing included files _are_ errors.
14045 Thanks to Alexandre Duret-Lutz.
14046 * tests/tools.at (autom4te cache): Adjust.
14047 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
14048 (AT_CHECK_M4SUGAR): Use it.
14049 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14051 * tests/tools.at (autom4te): Now it does exit 1.
14053 2002-10-17 Akim Demaille <akim@epita.fr>
14055 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
14056 Fixes the `AC_ARG_VAR' test failures.
14057 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
14058 * lib/freeze.mk (check-forbidden-patterns): New.
14059 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
14060 * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
14061 * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
14063 Reported months ago by H. Merijn Brand.
14065 2002-10-17 Akim Demaille <akim@epita.fr>
14067 * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
14069 2002-10-16 Paul Eggert <eggert@twinsun.com>
14071 * Makefile.maint (wget_files): Remove ansi2knr.c.
14072 (ansi2knr.c-url_prefix): Remove.
14074 2002-10-16 Akim Demaille <akim@epita.fr>
14076 Because of caching, some files that no longer exist and are no
14077 longer required can still cause errors.
14078 Reported by Alexandre Duret-Lutz.
14080 * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
14081 to frozen files in @ARGV, as @ARGV must remain being a list of
14082 files. Rather, at M4 call sites, use this...
14083 (&files_to_options): New function.
14084 (&freeze): Use &error.
14085 (&up_to_date): If a file that was included according to the cache
14086 is no longer there, then the output is out dated.
14087 (&main): Don't even check whether a file is up to date is anyway
14089 * tests/tools.at (autom4te cache): New.
14091 2002-10-16 Akim Demaille <akim@epita.fr>
14093 * bin/autoconf.as: Kill dead options.
14094 * bin/autoupdate.in (&parse_args): Kill old options.
14095 * bin/autoreconf.in (&parse_args): Remove dead options.
14097 (&autoreconf): Report the directories we enter *and leave*, so
14098 that error messages can be easily located, and use GNU Make
14099 format, so that Emacs' compile mode understands us.
14100 * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
14101 if some file was changed instead of `print'.
14102 * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
14103 (&parse_args): Remove the dead options.
14104 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
14105 autoheader's quiet mode.
14106 (AT_CHECK_AUTOUPDATE): Likewise.
14107 * tests/tools.at (autoupdate): Adjust.
14108 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14110 2002-10-11 Akim Demaille <akim@epita.fr>
14112 No longer use CPP to check for the existing of headers: use CC to
14113 check for compilability.
14115 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
14116 (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
14117 (_AC_CHECK_HEADER_NEW): Rename as...
14118 (AC_CHECK_HEADER): this.
14120 * lib/autotest/general.m4 (AT_INIT): Include the failed test
14121 numbers in the Subject suggestion.
14123 2002-10-11 Akim Demaille <akim@epita.fr>
14125 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
14126 Suggest using AC_CHECK_DECLS instead.
14128 2002-10-11 Akim Demaille <akim@epita.fr>
14130 * tests/torture.at (AC_ARG_VAR): Have configure report the value
14133 2002-10-11 Akim Demaille <akim@epita.fr>
14135 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
14136 file name to enable parallel executions.
14137 From Sam Varshavchik.
14139 2002-10-08 Akim Demaille <akim@epita.fr>
14141 * bin/autoreconf.in (&autoreconf): Run autopoint before the first
14142 aclocal invocation, as Gettext macros might not be visible to
14144 Instead of blindly running autopoint, scan configure.ac (not the
14145 traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
14146 Reported by Paul D. Smith.
14148 2002-10-08 Paul Eggert <eggert@twinsun.com>
14150 Work around problems found when POSIXLY_CORRECT=1 is set.
14151 None of this seems to have anything to do with POSIX, really,
14152 but it's how Perl getopt works.
14153 * bin/autom4te.in (parse_args): Configure GetOpt with
14155 * doc/autoconf.texi (Invoking autom4te):
14156 --warning -> --warnings.
14157 * lib/autom4te.in: --warning -> --warnings.
14159 2002-09-28 Akim Demaille <akim@epita.fr>
14161 * doc/autoconf.texi (autom4te.cache): New section.
14163 2002-09-28 Akim Demaille <akim@epita.fr>
14165 * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
14166 (Automake-preselections): Update.
14167 * bin/autoreconf.in, bin/autoheader.in: Comment changes.
14169 2002-09-28 Akim Demaille <akim@epita.fr>
14171 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
14172 * lib/autoconf/c.m4, lib/autoconf/functions.m4,
14173 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
14174 * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
14176 2002-09-28 Akim Demaille <akim@epita.fr>
14178 * tests/torture.at (Configuring subdirectories): Be robust to
14179 users who use config.site to require for a cache: in this case,
14180 the two last configure runs, using two different sets of
14181 arguments, trigger a legitimate error.
14183 2002-09-28 Akim Demaille <akim@epita.fr>
14185 * tests/m4sh.at (Functions Support, Functions and return Support):
14188 2002-09-28 Akim Demaille <akim@epita.fr>
14190 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
14191 autoheader are Perl programs.
14192 (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
14193 (autom4te): Specify that the sources are in the $srcdir.
14194 * doc/autoconf.texi (Installation Directory Variables): Adjust.
14196 2002-09-28 Akim Demaille <akim@epita.fr>
14198 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
14199 (tm_zone): Move their rules to...
14200 * lib/autoconf/types.m4: here, using AN_ macros.
14201 * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
14202 (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
14203 (make, mawk, nawk, ranlib, yacc): Similarly, move to...
14204 * lib/autoconf/programs.m4: here.
14205 * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
14206 (ETAGS_FOR_AUTOCONF): New.
14209 2002-09-28 Akim Demaille <akim@epita.fr>
14211 * lib/autoconf/autoscan.m4: New file.
14212 * lib/autoconf/autoconf.m4: Include it.
14213 * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
14214 that were listed in the original autoscan.list.
14215 * lib/autoconf/headers.m4: Similarly with headers.
14216 * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
14217 (.m4.m4f): Don't pass --prepend-include, since that's done by
14218 tests/autom4te itself.
14219 * lib/autoscan/Makefile.am: Include freeze.mk.
14220 (autoscan.list): New target --this file is no longer a source.
14221 (autoscan.pre): New file.
14223 2002-09-28 Akim Demaille <akim@epita.fr>
14225 * bin/autoscan.in (@kinds): Make them singular.
14227 (&init_tables): When --debug, report the list of rules to ease
14228 tracking changes in autoscan.list.
14229 * lib/autoscan/autoscan.list (function): Strip comments, sort.
14231 2002-09-28 Akim Demaille <akim@epita.fr>
14233 * lib/autoscan/functions, lib/autoscan/headers,
14234 * lib/autoscan/identifiers, lib/autoscan/makevars,
14235 * lib/autoscan/programs: Merge into...
14236 * lib/autoscan/autoscan.list: this.
14237 * bin/autoscan.in (&init_tables): Adjust.
14239 2002-09-28 Akim Demaille <akim@epita.fr>
14241 * lib/autoscan/functions, lib/autoscan/headers,
14242 * lib/autoscan/identifiers, lib/autoscan/makevars,
14243 * lib/autoscan/programs: Make the `kind' explicit, i.e., each
14244 `functions' line is now prefixed with `function:'.
14245 * bin/autoscan.in (&init_tables): Adjust.
14247 2002-09-28 Akim Demaille <akim@epita.fr>
14249 From now on, autoscan files must always map a macro name to a
14250 word: there is no `default' macro for autoscan.
14252 * bin/autoscan.in (&init_tables): Reject entries with no macro at
14254 * lib/autoscan/functions, lib/autoscan/headers: Make the macro
14257 2002-09-28 Akim Demaille <akim@epita.fr>
14259 * bin/autoscan.in (%c_keywords): Remove.
14260 (&used): Keep only track of the words we might be interested in.
14261 (&output_kind): It is no longer needed to look for non active
14264 2002-09-27 Akim Demaille <akim@epita.fr>
14266 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
14267 jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
14268 * lib/autoscan/functions: Adjust.
14269 * doc/autoconf.texi (Particular Functions): Adjust.
14271 2002-09-27 Akim Demaille <akim@epita.fr>
14273 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
14275 Thanks to Bill Moseley and Paul Eggert.
14276 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
14277 the tmpdir must be created.
14278 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
14279 dir be in the build tree, instead of $TMPDIR.
14281 2002-09-27 Akim Demaille <akim@epita.fr>
14283 * bin/autoscan.in: Improve the comments.
14284 (&parse_args): Drop obsolete undocumented options.
14285 (&output_kind): Output warnings.
14286 * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
14287 (getwd): Trigger a warning.
14289 2002-09-26 Akim Demaille <akim@epita.fr>
14291 * bin/autoreconf.in: Clarify that -s is meaningless without -i.
14292 Reported by Ralf Corsepius.
14293 * doc/autoconf.texi (autoreconf Invocation): Likewise.
14295 2002-09-26 Akim Demaille <akim@epita.fr>
14297 Single suffix rules and seperated dependencies are not portable.
14299 * doc/autoconf.texi (Installation Directory Variables): Update.
14300 (Limitations of Make): Some about `Single Suffix Rules and
14301 Separated Dependencies'.
14302 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14303 (ifnames, autoscan, autom4te): Un-factor into several rules.
14305 2002-09-25 Paul Eggert <eggert@twinsun.com>
14307 * BUGS (Interoperability bugs): New section. Mention libtool
14308 1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
14310 2002-09-24 Paul Eggert <eggert@twinsun.com>
14312 Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
14313 make handles suffix-rules differently from GNU make.
14315 * bin/Makefile.am (SUFFIXES, .in): Remove.
14316 (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
14317 Move the body of the old .in rule here.
14319 2002-09-16 Akim Demaille <akim@epita.fr>
14321 i960 compilers create `b.out' files by default.
14322 Reported by Ralf Corsepius.
14324 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
14325 (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
14327 2002-09-13 Paul Eggert <eggert@twinsun.com>
14329 * doc/autoconf.texi (Particular Headers): Remove obsolete
14330 reference to `struct timezone' in the description of
14333 2002-09-13 Akim Demaille <akim@epita.fr>
14337 * config/config.sub, config/config.guess: Update.
14338 * Makefile.maint: Update from bits of the Coreutils 4.5.1.
14339 * Makefile.am: Adjust.
14341 2002-09-13 Akim Demaille <akim@epita.fr>
14343 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
14344 reading config.log when the compiler is rejected.
14345 Suggested by Guido Draheim.
14347 2002-09-13 Akim Demaille <akim@epita.fr>
14349 * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
14350 (chdir_init) might hang when stat'ing mounted directories.
14351 Reported by Vance Shipley.
14353 2002-09-12 Akim Demaille <akim@epita.fr>
14355 * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
14358 2002-09-12 Akim Demaille <akim@epita.fr>
14360 * doc/autoconf.texi (Defining Symbols): Present two different
14361 prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
14362 difference between 1 argument calls, and 2-3 argument calls.
14364 2002-09-12 Peter Eisentraut <peter_e@gmx.net>
14366 * doc/autoconf.texi: Review grammar and punctuation.
14368 2002-09-11 Paul Eggert <eggert@twinsun.com>
14370 * doc/autoconf.texi: Fix minor formatting, spelling, and
14372 (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
14373 AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
14376 2002-09-11 Akim Demaille <akim@epita.fr>
14378 * doc/autoconf.texi (Questions): Rename as...
14380 (Defining Directories): New.
14382 2002-09-09 Akim Demaille <akim@epita.fr>
14384 * doc/autoconf.texi (Making testsuite Scripts): Update.
14385 Suggested by Nishio Futoshi.
14387 2002-09-09 Koji Arai <JCA02266@nifty.ne.jp>
14389 * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
14390 plain `@' is wanted.
14392 2002-09-09 Akim Demaille <akim@epita.fr>
14394 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
14395 `duplicates', since the algorithm was too naive and could keep
14396 `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
14397 keep `--prefix foo --prefix bar' as `--prefix foo bar'.
14398 Reported by Ralf Corsepius.
14399 * tests/torture.at (Configuring subdirectories): Exercise these
14402 2002-09-09 Akim Demaille <akim@epita.fr>
14404 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
14405 looking for a replacement file.
14406 * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
14407 directory is relative.
14408 * doc/autoconf.texi (Generic Functions): Clarify the replacement
14409 directory definition.
14410 Reported by Andreas Schwab and Jim Meyering.
14412 2002-09-06 Akim Demaille <akim@epita.fr>
14414 * doc/autoconf.texi (Setting Output Variables): Clarify what
14415 precious variables are.
14416 Suggested by Pontus Skoeld.
14418 2002-09-05 Akim Demaille <akim@epita.fr>
14420 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
14421 (ifnames, autoscan, autom4te): Since we don't only depend on
14422 configure.ac variables (such as VERSION etc.), but also on prefix
14423 and so forth, depend on Makefile, not configure.ac.
14424 Reported by Alexandre Duret-Lutz.
14425 * doc/autoconf.texi (Installation Directory Variables): Adjust.
14427 2002-09-05 Kevin Ryde <user42@zip.com.au>
14429 * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
14430 doesn't seem to be confined to ia64, just say "some versions".
14432 2002-09-04 Akim Demaille <akim@epita.fr>
14434 * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
14436 * Makefile.am (maintainer-clean-local): Remove.
14437 (MAINTAINERCLEANFILES): Remove COPYING.
14439 2002-09-03 Paul Eggert <eggert@twinsun.com>
14441 * doc/autoconf.texi (Configuration Commands): Remove obsolete
14442 example for AC_CONFIG_COMMANDS_PRE. Problem reported by Marcus
14445 2002-09-03 Akim Demaille <akim@epita.fr>
14447 * configure.ac: Bump to 2.53d.
14448 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
14449 as of today, on Automake's team suggestion.
14451 2002-09-03 Akim Demaille <akim@epita.fr>
14455 2002-09-02 Akim Demaille <akim@epita.fr>
14457 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
14459 * configure.ac: Disable SITE_MACRO_DIR.
14461 2002-09-02 Jim Meyering <meyering@lucent.com>
14463 * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
14464 i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
14465 Also, tweak grammar: s/make sure to/be sure to/.
14467 2002-09-02 Paul Eggert <eggert@twinsun.com>
14469 * doc/autoconf.texi (Limitations of Builtins): Explain why logical
14470 directory names are generally preferable to physical names.
14472 2002-09-02 Akim Demaille <akim@epita.fr>
14474 * lib/Autom4te/General.pm (&update_file): s/die/error/.
14475 Reported by Raja R. Harinath.
14476 * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
14477 * bin/autoupdate.in: Use error instead of die.
14479 2002-09-01 Paul Eggert <eggert@twinsun.com>
14481 * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
14482 ordinary shell concatenation rather than echo+tr+sed command that
14483 runs afoul of a long-line-related sed bug in Solaris 8.
14485 * bin/autoheader.in (parse_args): --warning -> --warnings.
14487 * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
14488 stdout, as traditional "ls" does.
14489 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
14490 _AC_COMPILER_EXEEXT_O): Likewise.
14491 * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
14493 * bin/autoconf.as: Add --prepend-include option. This patch was
14494 applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
14495 but bin/autoconf.in is generated automatically from bin/autoconf.as.
14497 * bin/autoconf.in, configure: Regenerate.
14499 * doc/autoconf.texi (Special Shell Variables): Mention
14500 ENV, MAIL, MAILPATH, PS1, PS2, PS4. Index PWD.
14502 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
14503 MAILPATH and set PS1, PS2, PS4 to default values, to work
14504 around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
14505 For LC_ALL etc, first try to set to "C" as POSIX requires and as
14506 the Autoconf documentation specifies; fall back to "unset" only if
14507 this fails. Use a shell for-loop for this rather than an m4 loop,
14508 to shorten the output script.
14510 2002-08-30 Paul Eggert <eggert@twinsun.com>
14512 * doc/autoconf.texi (Special Shell Variables): Mention POSIX
14513 1003.1-2001's requirements for CDPATH. Give a simpler workaround
14514 for the CDPATH problem. Document PWD.
14515 (Limitations of Builtins): Document the problem that "cd $foo" and
14516 "ls $foo" may refer to different directories in shells conforming
14517 to POSIX 1003.1-2001. Use PS1 rather than CDPATH for "unset"
14518 example, since the old example is now out of date.
14520 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
14521 FOO" and "ls FOO" talk about different directories; this catches
14522 problems when POSIX 1003.1-2001 "cd" fails due to symlink
14525 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
14526 of rolling our own unset.
14527 (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
14528 in practice we needn't worry about CDPATH if unset doesn't work.
14530 * Makefile.in, aclocal.m4, bin/Makefile.in,
14531 config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
14532 lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
14533 lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
14534 lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
14535 tests/Makefile.in: Regenerate with Automake 1.6.3.
14537 * config/config.guess, config/config.sub, config/mkinstalldirs:
14540 * configure: Regenerate with self.
14542 2002-08-30 Kevin Ryde <user42@zip.com.au>
14544 * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
14547 2002-08-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14549 * bin/autom4te.in (Request::load): Correctly test for "do" read
14552 2002-08-29 Akim Demaille <akim@epita.fr>
14554 * lib/Autom4te/General.pm (&xqx): New.
14555 (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
14556 hand, which is not portable.
14558 * bin/autom4te.in: Use them.
14559 Use &error instead of die.
14560 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
14563 2002-08-17 Paul Eggert <eggert@twinsun.com>
14565 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
14566 default list of compilers to try, since it was long ago superseded
14567 by the ksh fc builtin. Suggested by Steven G. Johnson.
14569 2002-07-31 Alexandre Duret-Lutz <duret_g@epita.fr>
14571 * doc/autoconf.texi (Invoking autom4te): End the option table,
14572 fixing a bug introduced by the previous patch.
14573 (Limitations of Make): Add a 'target lookup' subentry in the
14574 'VPATH' entry. Rewrite all `make' occurences as `@command{make}'.
14576 2002-07-29 Mark D. Roth <roth@feep.net>
14578 * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
14579 options and use $AUTOM4TE_PATH.
14580 * doc/autoconf.texi: Remove documentation of autom4te
14581 --include-envvar and --site-macro-subdir options and document
14582 use of $AUTOM4TE_PATH.
14583 * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
14584 arguments from each language section.
14586 2002-07-29 Paul Eggert <eggert@twinsun.com>
14588 * doc/install.texi: Include copyright symbol in copyright notice.
14590 * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
14592 (AM_MAKEINFOFLAGS): New macro.
14593 * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
14594 * Makefile.am (INSTALL): Use the new macros.
14595 Use -o rather than --output, since "missing" does not grok --output.
14597 2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
14599 * doc/autoconf.texi (Limitations of Make): Escaped newlines in
14600 comments do not always work. Never trust the exit status of
14603 2002-07-24 Kevin Ryde <user42@zip.com.au>
14605 * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
14606 Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
14608 2002-07-23 Paul Eggert <eggert@twinsun.com>
14610 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
14611 Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
14612 apparently treats PATH="nonexistent" as if it contained ".".
14613 Bug reported by Stefan `Sec' Zehl.
14615 2002-07-22 Alexandre Duret-Lutz <duret_g@epita.fr>
14617 * doc/autoconf.texi (Limitations of Make): Mention the special
14618 handling of the obj/ directory by BSD make.
14620 2002-07-20 Kevin Ryde <user42@zip.com.au>
14622 * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
14625 2002-07-19 Akim Demaille <akim@epita.fr>
14627 * doc/autoconf.texi (Function Portability): `exit'.
14628 (Programming in M4sh): Ethymology of M4sh.
14630 2002-07-19 Akim Demaille <akim@epita.fr>
14632 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
14634 2002-07-18 Akim Demaille <akim@epita.fr>
14638 2002-07-18 Akim Demaille <akim@epita.fr>
14640 * config/config.guess, config/config.sub: Update.
14642 2002-07-18 Akim Demaille <akim@epita.fr>
14644 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
14647 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
14648 * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
14649 * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
14651 2002-07-18 Akim Demaille <akim@epita.fr>,
14652 Alexandre Duret-Lutz <duret_g@epita.fr>
14654 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
14655 _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
14657 2002-07-17 Russ Allbery <rra@stanford.edu>
14659 * doc/autoconf.texi (Initializing configure): Clarify the
14660 description of the tarname default.
14662 2002-07-17 Andreas Buening <andreas.buening@nexgo.de>
14664 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
14665 ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
14666 latter was not run.
14668 2002-07-17 Akim Demaille <akim@epita.fr>
14670 * lib/Autom4te/General.pm (find_file): Browse the directories in
14671 the order they are given.
14673 2002-07-17 Akim Demaille <akim@epita.fr>
14675 * tests/wrapsh.as, tests/wrappl.as: Merge into...
14676 * tests/wrapper.as: this.
14677 * tests/Makefile.am, configure.ac: Adjust.
14679 2002-07-17 Mark D. Roth <roth@feep.net>
14681 * configure.ac: Add --enable-site-macro-dir option.
14682 * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
14683 * bin/autom4te.in: Add --prepend-include, --include-envvar, and
14684 --site-macro-subdir options.
14685 * bin/autoconf.in: Add --prepend-include option.
14686 * bin/autoheader.in: Add --prepend-include option.
14687 * bin/autoreconf.in: Add --prepend-include option.
14688 * bin/autoscan.in: Add --prepend-include option.
14689 * bin/autoupdate.in: Add --prepend-include option.
14690 * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
14691 macro directory, remove note that include path directories are
14692 used in reverse order, and document --prepend-include option.
14693 * lib/autom4te.in: Use --prepend-include instead of --include.
14694 * tests/wrapsh.in: Use --prepend-include instead of --include.
14696 2002-07-17 Akim Demaille <akim@epita.fr>
14698 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
14700 * doc/autoconf.texi (Initializing configure): Adjust.
14702 2002-07-17 Akim Demaille <akim@epita.fr>
14704 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
14705 (_AC_FUNC_MALLOC): New.
14706 (AC_FUNC_MALLOC): Use the latter.
14707 Define HAVE_MALLOC to 0 if broken.
14708 * doc/autoconf.texi (Particular Functions): Adjust.
14710 2002-07-16 Akim Demaille <akim@epita.fr>
14712 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
14713 * doc/autoconf.texi (C Compiler): Adjust.
14715 2002-07-09 Akim Demaille <akim@epita.fr>
14717 * doc/autoconf.texi: Properly set the ``header'' part.
14719 2002-07-09 Akim Demaille <akim@epita.fr>
14721 * doc/autoconf.texi (Systemology): Some about Darwin.
14723 2002-07-09 Alexandre Duret-Lutz <duret_g@epita.fr>
14725 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
14726 Don't use AC_REQUIRE in AU_DEFUN.
14728 2002-07-09 Art Haas <ahaas@neosoft.com>
14730 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
14732 2002-07-02 Alexandre Duret-Lutz <duret_g@epita.fr>
14734 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14735 bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
14736 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
14737 so that Emacs setups GNU style for perl-mode and cperl-mode.
14739 2002-06-27 Paul Eggert <eggert@twinsun.com>
14741 * config/install-sh: Quote $src. Prefer || to test's -o option,
14742 as per "Limitations of Builtins".
14743 * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
14744 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
14746 * tests/mktests.sh: Use grep instead of fgrep, as per
14747 "Limitations of Builtins".
14749 2002-06-15 Paul Eggert <eggert@twinsun.com>
14751 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
14752 autom4te_perllibdir): Set to top build dir or src dir as appropriate,
14753 so that we consistently test the just-built programs.
14754 * tests/wrappl.as: Likewise.
14756 2002-06-12 Paul Eggert <eggert@twinsun.com>
14758 * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
14759 name, so that symlinks to 'autoconf' work properly. Bug reported
14761 * bin/autoheader.in (AUTOM4TE): Likewise.
14762 * bin/autoreconf.in (autoconf, autoheader): Likewise.
14763 * bin/autoscan.in (autom4te): Likewise.
14764 * bin/autoupdate.in (autom4te): Likewise.
14766 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
14767 btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
14770 2002-06-11 Andreas Schwab <schwab@suse.de>
14772 * doc/autoconf.texi: Add more dir entries.
14774 2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
14776 * bin/autom4te.in ($cache): Don't define using `$me', the name
14777 of the cache should not depend on the name under which autom4te
14780 2002-06-07 Akim Demaille <akim@epita.fr>
14782 * tests/tools.at (autoconf: forbidden tokens, basic)
14783 (autoconf: forbidden tokens, exceptions): Adjust to the change of
14784 words in autom4te.in.
14786 2002-06-07 Peter Eisentraut <peter_e@gmx.net>
14788 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
14789 _AC_LANG_PROGRAM_C_F77_HOOKS.
14791 2002-06-07 Akim Demaille <akim@epita.fr>
14793 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
14795 (AC_REPLACE_FNMATCH): this.
14796 * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
14797 AC_FUNC_FNMATCH_GNU.
14799 2002-06-07 Akim Demaille <akim@epita.fr>
14801 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
14802 Rosetta Stone for Unix.
14804 2002-06-07 Akim Demaille <akim@epita.fr>
14806 * bin/autom4te.in (warn_forbidden): When rejecting a token,
14807 suggest m4_pattern_allow.
14808 Suggested by Adam J. Richter.
14810 2002-06-07 Akim Demaille <akim@epita.fr>
14812 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
14813 ac_config_libobj_dir.
14814 (AC_CONFIG_LIBOBJ_DIR): New.
14815 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
14816 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
14817 Use ac_config_libobj_dir to find the replacement files.
14818 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
14819 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
14820 (AC_REPLACE_FNMATCH_GNU): these.
14821 (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
14822 * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
14823 * tests/mktests.sh (ac_exclude_list): Don't check
14824 AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
14826 2002-06-06 Paul Eggert <eggert@twinsun.com>
14828 * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
14829 if ln doesn't work.
14831 * doc/autoconf.texi (Configuration Links): Likewise.
14832 (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
14834 2002-06-05 Paul Eggert <eggert@twinsun.com>
14836 * config/config.guess, config/config.sub, config/texinfo.tex:
14837 Update from masters.
14839 2002-05-29 Paul Eggert <eggert@twinsun.com>
14841 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
14842 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
14843 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
14845 * lib/autoconf/Makefile.am (check-local): Likewise.
14846 * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
14847 * lib/autoconf/types.m4 (commentary only): Likewise.
14848 * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
14849 * lib/autotest/Makefile.am (check-local): Likewise.
14850 * lib/m4sugar/Makefile.am (check-local): Likewise.
14851 * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
14852 * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
14854 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
14855 * doc/autoconf.texi (Particular Programs): Document them.
14856 (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
14859 2002-05-27 Paul Eggert <eggert@twinsun.com>
14861 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
14862 * NEWS, doc/autoconf.texi (Particular Types): Document it.
14863 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
14864 instead of AC_MBSTATE_T, which never existed.
14866 2002-05-23 Akim Demaille <akim@epita.fr>
14868 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
14869 version of Autoconf that is discussed.
14871 2002-05-22 Paul Eggert <eggert@twinsun.com>
14873 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
14874 from the default list of compilers to try. Suggested by
14876 * NEWS: Document the above.
14877 * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
14879 2002-05-17 Paul Eggert <eggert@twinsun.com>
14881 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
14882 the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
14883 This improves on an earlier suggestion by H. Peter Anvin.
14885 2002-05-16 Paul Eggert <eggert@twinsun.com>
14887 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
14888 AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
14889 Both macros now accept an optional source-dir arg.
14890 New macro AC_GNU_SOURCE to define _GNU_SOURCE.
14892 * NEWS: Document this.
14893 * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
14895 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
14896 (AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
14897 not for GNU extensions; this undoes part of the 2000-11-03 change,
14898 reverting to 2.13-compatible behavior.
14899 Add new optional argument DIR.
14900 (AC_FUNC_FNMATCH_GNU): New macro.
14902 * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
14904 2002-05-08 Paul Eggert <eggert@twinsun.com>
14906 * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
14907 Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
14908 and it causes a 'test' syntax error if it fails.
14909 Bug reported by Stephen Gildea.
14911 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
14912 If prototypes are supported, use them to check this at compile-time,
14913 instead of trying to check it at run-time. If we must do a run-time
14914 check, assume that setvbuf is standard when cross-compiling, as
14915 nonstandard setvbuf occurs only on ancient and unlikely hosts.
14916 Bug reported by Paul D. Smith.
14918 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
14919 argument specifying location of getloadavg.c. This removes a
14920 FIXME. This idea was taken from Jim Meyering's implementation in
14922 * doc/autoconf.texi (Particular Functions): Document this.
14923 Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
14924 that's what the code does; this fixes a bug reported by
14927 2002-05-03 Akim Demaille <akim@epita.fr>
14929 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
14930 autopoint instead of gettextize.
14931 ($uses_alocal): Rename as...
14932 ($uses_aclocal): this.
14933 * doc/autoconf.texi (autoreconf Invocation): Adjust.
14934 Suggested by Bruno Haible.
14936 2002-05-03 Akim Demaille <akim@epita.fr>
14938 * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
14940 2002-04-29 Paul Eggert <eggert@twinsun.com>
14942 * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
14943 files to be 1 second older; just set them to be the same time.
14944 Also, sleep 1 second after the first aclocal, to work around
14945 problems with sub-second time stamps on the input files.
14947 2002-04-29 Thien-Thi Nguyen <ttn@gnu.org>
14949 * doc/autoconf.texi: Mention "set -e -x" lossage
14950 under node "Limitations of Builtins".
14952 2002-04-29 Akim Demaille <akim@epita.fr>
14954 * doc/install.texi: Better wording for setting variables when
14956 From Christian Cornelssen.
14958 2002-04-29 Akim Demaille <akim@epita.fr>
14960 * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
14961 of lack of $LINENO support, then the test will compare the $LINENO
14962 in testsuite vs. the lineno in the test file. This is wrong, of
14964 Be sure to protect it.
14965 Reported by Patrick Welche.
14967 2002-04-25 Akim Demaille <akim@epita.fr>
14969 * doc/autoconf.texi (Obsolete Macros): Typo.
14970 Reported by Vladimir Volovich.
14972 2002-04-25 Akim Demaille <akim@epita.fr>
14974 * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
14975 than some of the input files, hence, on the second run of aclocal,
14976 if some of its input are younger, make them older.
14977 Suggested by Paul Eggert.
14979 2002-04-25 Akim Demaille <akim@epita.fr>
14981 * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
14982 Thanks to Paul Eggert.
14984 2002-04-25 Akim Demaille <akim@epita.fr>
14986 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
14987 and ac_subst_vars be sh variables containing the list of
14988 AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
14990 (_AC_INIT_PREPARE): Use them to log them.
14991 (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
14992 (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
14993 _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
14994 _AC_SUBST_FILES and _AC_SUBST_VARS.
14995 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
14997 2002-04-24 Akim Demaille <akim@epita.fr>
14999 * bin/autoreconf.in (autoreconf): Run automake after autoconf and
15000 autoheader, so that automake does not complain about a missing
15001 config.h.in that was to be created.
15003 2002-04-23 Akim Demaille <akim@epita.fr>
15005 * bin/autoheader.in (parse_args): --warning takes an argument.
15008 2002-04-22 Peter Eisentraut <peter_e@gmx.net>
15010 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
15011 and bb.out when cleaning up.
15013 2002-04-22 Akim Demaille <akim@epita.fr>
15017 2002-04-22 Akim Demaille <akim@epita.fr>
15019 * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
15021 2002-04-22 Akim Demaille <akim@epita.fr>
15023 * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
15025 Reported by Gregory Giannoni.
15027 2002-04-22 Akim Demaille <akim@epita.fr>
15029 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
15030 Fixes false failures on Darwin.
15032 2002-04-21 Paul Eggert <eggert@twinsun.com>
15034 * TODO, bin/autoupdate.in, doc/autoconf.texi,
15035 lib/autoconf/general.m4, lib/autoconf/libs.m4,
15036 lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
15037 tests/tools.at: Minor spelling and grammar fixes.
15039 2002-04-20 Paul Eggert <eggert@twinsun.com>
15041 * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
15042 ZSH_VERSION fixes. Bug reported by Raja R Harinath.
15043 * lib/autotest/general.m4 (AT_INIT): Likewise.
15044 * tests/atgeneral.m4 (AT_INIT): Likewise.
15046 2002-04-19 Paul Eggert <eggert@twinsun.com>
15048 * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
15049 doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
15050 lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
15051 lib/autoconf/functions.m4, lib/autoconf/general.m4,
15052 lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
15053 lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
15054 tests/atspecific.m4, tests/semantics.at, tests/torture.at:
15055 Minor spelling and grammar fixes.
15057 * doc/autoconf.texi: Follow the outline suggested in the GNU
15058 Sample Texts sections of the Texinfo 4.2 manual. Most
15059 importantly, this makes sure that the copyright notices appear in
15060 all output formats. You probably need Texinfo 4.2 to generate
15063 Fix some bugs when using "$@" when there might be zero positional
15064 arguments in cases where this matters.
15066 * bin/autoconf.as: Rewrite so that the problem does not come up.
15067 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
15068 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
15069 * lib/autotest/general.m4 (AT_INIT): Likewise.
15071 * bin/autoheader.in: Use 'case' statement to work around problem.
15072 * bin/auto4mte.in: Likewise.
15073 * bin/autoreconf.in: Likewise.
15074 * bin/autoscan.in: Likewise.
15075 * bin/autoupdate.in: Likewise.
15076 * bin/ifnames.in: Likewise.
15078 * doc/autoconf.texi (Shell Substitutions): Document the problem.
15080 * lib/autotest/general.m4 (AT_INIT):
15081 Use Zsh alias to work around problem.
15082 * tests/atgeneral.m4 (AT_INIT): Likewise.
15084 * tests/c.at: We can't have zero arguments, so remove workaround
15085 that is not portable to Zsh.
15087 2002-04-19 Alexandre Duret-Lutz <duret_g@epita.fr>
15089 * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
15090 from aclocal.m4 too.
15092 2002-04-12 Akim Demaille <akim@epita.fr>
15094 * tests/wrappl.as: New, M4sh precursor of wrappl.in.
15096 2002-04-10 Akim Demaille <akim@epita.fr>
15098 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
15099 workaround for ${1+"$@"}.
15100 * doc/autoconf.texi (Shell Substitutions): Explain it.
15101 From Oliver Kiddle and Peter Stephenson.
15103 Have M4sh perform minimal shell sanitizing.
15105 * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
15107 (_AS_PREPARE): this new macro.
15109 (AS_INIT): Invoke AS_SHELL_SANITIZE.
15110 * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
15112 Adjust Autoconf and Autotest.
15114 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
15115 AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
15116 * lib/autotest/general.m4 (AT_INIT): Likewise.
15117 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
15118 Invoke _AS_PREPARE (not AS_PREPARE) in addition to
15121 Use this M4sh to generate Autoconf's shell scripts.
15123 * tests/wrapsh.as: New, precursor of wrapsh.in.
15124 * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
15125 on Autotest and M4sh.
15126 ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
15127 (wrapsh.in): New target.
15128 * bin/autoconf.as: New, precursor of autoconf.in.
15129 (autoconf.in): New target.
15131 2002-04-09 Alexandre Duret-Lutz <duret_g@epita.fr>
15133 * doc/autoconf.texi (Limitations of Make): Mention the issue
15134 with indented comments in rules.
15136 2002-04-09 Andreas Schwab <schwab@suse.de>
15138 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
15139 ac_top_builddir when setting ac_abs_top_builddir.
15141 2002-04-06 Kevin Ryde <user42@zip.com.au>
15143 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
15144 (Portable Shell): Cross reference to Systemology.
15146 2002-04-05 Akim Demaille <akim@epita.fr>
15148 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
15149 directories when descending in a SUBDIRS.
15150 Reported by Ezra Peisach.
15152 2002-04-04 Andreas Schwab <schwab@suse.de>
15154 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
15155 contains no literal separators.
15157 2002-04-03 Akim Demaille <akim@epita.fr>
15159 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
15160 (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
15161 Use dnl, not the KILL diversion.
15163 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
15164 (AC_CONFIG_LINKS): here.
15166 Don't use the KILL diversion, as it kills spurious output, which
15167 results in failures being hidden.
15168 Use m4_defn where appropriate.
15169 (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
15170 after the second argument.
15172 * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
15173 syntax, as it is provided by M4sugar.
15174 * tests/torture.at (Multiple AC_CONFIG_FILES): New.
15176 2002-04-03 Andreas Schwab <schwab@suse.de>
15178 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
15179 expanded if $# <= 2.
15181 * bin/autoreconf.in (autoreconf): Run automake after rerunning
15184 2002-04-03 Akim Demaille <akim@epita.fr>
15186 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
15187 (_AC_COMPILER_EXEEXT_REJECT): New.
15188 Also recognize *.bb and *.bbg as compilation byproducts.
15189 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
15190 (_AC_COMPILER_OBJEXT): Use them.
15191 Fixes Debian #138666.
15193 2002-04-02 Peter Eisentraut <peter_e@gmx.net>
15195 Integrate AC_PROG_CC_STDC into AC_PROG_CC.
15197 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
15198 AU_DEFUN old name. Use _AC_COMPILE_IFELSE.
15199 (AC_PROG_CC): Call _AC_PROG_CC_STDC.
15200 (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
15201 (AC_C_CONST): Same.
15202 (AC_C_INLINE): Same.
15203 (AC_C_PROTOTYPES): Same. Require AC_PROG_CC instead.
15204 * doc/autoconf.texi, NEWS: Document.
15205 * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
15208 2002-04-02 Akim Demaille <akim@epita.fr>
15210 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
15211 _AS_MKDIR_P_PREPARE.
15213 2002-03-28 Kevin Ryde <user42@zip.com.au>
15215 * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
15216 to avoid versions of HP C which don't allow that.
15218 2002-03-27 Paul Eggert <eggert@twinsun.com>
15220 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
15221 (AS_SHELL_SANITIZE): Invoke it.
15222 (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
15224 2002-03-26 Akim Demaille <akim@epita.fr>
15226 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
15228 2002-03-26 Akim Demaille <akim@epita.fr>
15230 * doc/autoconf.texi (Introduction): The GNATS base moved.
15232 2002-03-25 Paul Eggert <eggert@twinsun.com>
15234 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
15235 as POSIX requires, as it doesn't work with Zsh.
15236 * doc/autoconf.texi (Assignments): Document the problem.
15238 2002-03-25 Alexandre Duret-Lutz <duret_g@epita.fr>
15240 * doc/autoconf.texi (Limitations of Make): Mention more issue
15241 about VPATH, overriding of macros in sub-makes, and handling of
15244 2002-03-21 Paul Eggert <eggert@twinsun.com>
15246 * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
15247 problem with here-document buffer boundaries.
15249 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
15250 when reinvoking the shell, to work around problems with installers
15251 who put strange things like "cd" commands in their environments.
15253 2002-03-19 Akim Demaille <akim@epita.fr>
15255 * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
15258 2002-03-19 Akim Demaille <akim@epita.fr>
15260 * bin/autoscan.in (scan_file): Specify the location in `&used'
15264 2002-03-19 Akim Demaille <akim@epita.fr>
15266 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
15267 From Nishio Futoshi.
15269 2002-03-19 Akim Demaille <akim@epita.fr>
15271 * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
15273 2002-03-18 Paul Eggert <eggert@twinsun.com>
15275 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
15276 (Limitations of Usual Tools): Add mkdir section.
15278 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
15279 (AS_MKDIR_P): Require it. Use mkdir -p if available, falling
15280 back on AS_DIRNAME to compute prefixes otherwise; this is
15281 roughly what mkinstalldirs does. That way, we need not have
15282 our own filename disassembler. The old disassembler did not
15283 work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
15285 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
15286 Create at_test_all by a series of assignments,
15287 not by a single assignment of a long string. The latter causes ksh
15288 version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
15289 presumably because of a buffer overrun.
15291 2002-03-14 Paul Eggert <eggert@twinsun.com>
15293 * lib/autotest/general.m4 (at_times_skip):
15294 Renamed from at_times. Now a boolean.
15295 ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
15296 says 'times: not found'.
15298 2002-03-14 Akim Demaille <akim@epita.fr>
15300 * bin/autoreconf.in (&study_gettextize): New.
15301 (&autoreconf): Handle newest gettextize.
15302 Rerun aclocal if needed.
15303 Suggested by Andreas Schwab.
15305 2002-03-13 Akim Demaille <akim@epita.fr>
15307 * doc/autoconf.texi (Special Shell Variables): More about IFS.
15309 2002-03-13 Akim Demaille <akim@epita.fr>
15311 * doc/autoconf.texi (Header Portability): New.
15312 Add information about stdint.h and inttypes.h from Paul Eggert.
15314 2002-03-13 Akim Demaille <akim@epita.fr>
15316 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
15320 2002-03-12 Akim Demaille <akim@epita.fr>
15322 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
15325 2002-03-11 Andreas Schwab <schwab@suse.de>
15327 * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
15328 does not do it if --with-lispdir is given.
15330 2002-03-08 Akim Demaille <akim@epita.fr>
15334 2002-03-08 Akim Demaille <akim@epita.fr>
15336 * doc/autoconf.texi (Subdirectories): Clarify that the
15337 subdirectory should exist.
15339 2002-03-08 Akim Demaille <akim@epita.fr>
15341 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
15343 2002-03-08 Akim Demaille <akim@epita.fr>
15345 * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
15346 aliases the actual variables, and modifications of the former
15349 2002-03-08 Akim Demaille <akim@epita.fr>
15351 * bin/autom4te.in (&handle_m4): Protect us from corrupted file
15352 because of C-c: have m4 output in tmp files, then mv them.
15354 2002-03-08 Akim Demaille <akim@epita.fr>
15356 * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
15357 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
15358 * bin/ifnames.in: Copyright update.
15360 2002-03-08 Akim Demaille <akim@epita.fr>
15362 * doc/autoconf.texi (Invoking autom4te): New.
15364 2002-03-05 Akim Demaille <akim@epita.fr>
15366 * doc/autoconf.texi (Specifying Names): Clarification suggested by
15369 2002-03-05 Akim Demaille <akim@epita.fr>
15373 2002-03-04 Akim Demaille <akim@epita.fr>
15375 * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
15376 * lib/autoconf/general.m4 (AC_INIT): More informative error
15377 message for LIBOBJ.
15379 2002-03-04 Akim Demaille <akim@epita.fr>
15381 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
15384 2002-03-04 Akim Demaille <akim@epita.fr>
15386 * doc/autoconf.texi (Transforming Names): Equality between target
15387 and host is irrelevant.
15388 (Specifying Names, Canonicalizing): Remove all references to the
15389 backward compatibility hooks. Rather, collect them all into...
15390 (Hosts and Cross-Compilation): this new section.
15391 * doc/install.texi (System Type): Ditto.
15392 * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
15393 that `--host' implies cross-compilation.
15395 2002-03-04 Akim Demaille <akim@epita.fr>
15397 * doc/autoconf.texi (Evaluation Macros): New.
15398 * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
15400 (_m4_foreach): Define the variant with immediate evaluation so
15401 that it contains exactly the items, not an expression which
15402 evaluation is the current item.
15403 (m4_re_string, m4_re_word): Don't over quote them.
15405 2002-03-04 Akim Demaille <akim@epita.fr>
15407 Instead of having stacking `shift's evaluated at the end, let
15408 `foreach' loops immediately evaluate them.
15410 * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
15411 $*. This is the n-th time I change my mind, but hopefully this is
15414 (m4_text_wrap): Use m4_foreach, which is finally correct _and_
15416 (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
15417 it was only a hack for m4_text_wrap.
15418 (m4_car2): Remove, replaced by...
15420 (_m4_foreach): Adjust.
15421 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
15422 m4_bpatsubst for clarification.
15424 2002-03-04 Akim Demaille <akim@epita.fr>
15426 * doc/autoconf.texi (Changequote is Evil): New.
15428 2002-03-03 Kevin Ryde <user42@zip.com.au>
15430 * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
15431 on old systems like SunOS.
15433 2002-03-01 Peter Eisentraut <peter_e@gmx.net>
15435 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15436 lib/autoconf/functions.m4, lib/autoconf/general.m4,
15437 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
15438 lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
15441 2002-02-28 Akim Demaille <akim@epita.fr>
15443 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
15444 message to be sent.
15446 2002-02-28 Kevin Ryde <user42@zip.com.au>
15448 * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
15450 2002-02-25 Akim Demaille <akim@epita.fr>
15452 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
15453 From Akinori Musha.
15455 2002-02-13 Alexandre Duret-Lutz <duret_g@epita.fr>
15457 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
15458 translate \r\n to \n.
15460 2002-02-07 Akim Demaille <akim@epita.fr>
15464 2002-02-07 Akim Demaille <akim@epita.fr>
15466 Fix Autoconf PR/209.
15467 Also reported by Frank Denis.
15469 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
15471 2002-02-07 Akim Demaille <akim@epita.fr>
15473 Fix Autoconf PR/207:
15474 AC_PREFIX_PROGRAM fails with dashed program names
15476 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
15477 variable when looking for the prefix program.
15478 Now it also works for shell variables.
15480 2002-02-07 Akim Demaille <akim@epita.fr>
15482 * doc/autoconf.texi (Limitations of Builtins): More about
15485 2002-02-06 Akim Demaille <akim@epita.fr>
15487 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
15488 case/esac, some shells don't support it.
15489 Reported by Zack Weinberg.
15490 * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
15492 2002-02-06 Akim Demaille <akim@epita.fr>
15494 * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
15495 sure not to introduce newlines in at_groups.
15496 * lib/autotest/Makefile.am (autotest.m4f): Typo.
15498 2002-02-06 Akim Demaille <akim@epita.fr>
15500 * tests/torture.at (Configuring subdirectories): Skip if aclocal
15503 2002-02-05 Paul Eggert <eggert@twinsun.com>
15505 * doc/autoconf.texi (Specific Compiler Characteristics):
15506 Describe HP-UX cc bug workaround more accurately.
15507 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
15509 * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
15510 cross-compilers, too. This undoes some of the most recent change
15513 2002-02-05 Akim Demaille <akim@epita.fr>
15515 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
15516 to make sure they are up to date when `check' is run.
15518 2002-02-05 Akim Demaille <akim@epita.fr>
15520 * doc/autoconf.texi (Making testsuite Scripts): Document
15523 2002-02-05 Akim Demaille <akim@epita.fr>
15525 * lib/freeze.mk: New.
15527 2002-02-05 Akim Demaille <akim@epita.fr>
15529 Implement `autom4te --freeze'.
15531 * bin/autom4te.in (&freeze): New.
15532 * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
15533 * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
15535 2002-02-05 Akim Demaille <akim@epita.fr>
15537 * bin/autom4te.in (&parse_args): Implement `frozen files are
15538 optional are the sum of the previous files on the command line'.
15539 Also, pass `--reload-state=' on them, so...
15540 (handle_m4): don't.
15541 * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
15542 (M4sh): Rely on M4sugar.
15543 (Autotest, M4sh, M4sugar): Use frozen files.
15545 2002-01-31 Akim Demaille <akim@epita.fr>
15547 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
15548 * doc/autoconf.texi (Initializing configure): Adjust.
15550 2002-01-30 Akim Demaille <akim@epita.fr>
15552 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
15553 alphanumeric to `-' instead of `_'.
15555 2002-01-30 Akim Demaille <akim@epita.fr>
15557 * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
15558 for plain code, the other for cross-compilation code. The latter
15559 is now run with GCC only.
15560 * doc/autoconf.texi (Compilers and Preprocessors): New.
15562 2002-01-30 Akim Demaille <akim@epita.fr>
15564 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
15566 * doc/autoconf.texi (Initializing configure): Explain how to
15567 change AC_INIT default values.
15569 2002-01-29 Akim Demaille <akim@epita.fr>
15571 * tests/torture.at (Configuring subdirectories): Use configure.in,
15572 so that aclocal 1.4 works.
15573 Reported by Alexandre Duret-Lutz and Larry Schmitt.
15575 2002-01-28 Akim Demaille <akim@epita.fr>
15577 * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
15580 2002-01-28 Akim Demaille <akim@epita.fr>
15582 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
15583 AUTOTEST_PATH *after* it was set.
15584 Don't put `.' in the PATH: the user should be precise and `./' if
15585 needed. In addition, given that the test suite does some `cd', if
15586 `.' is in the path, the `tested programs' sections will report
15587 programs found in the test suite's directory, while during the
15588 tests (performed in their own directory), these programs are no
15589 longer visible. In other words, the results is confusing and
15591 * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
15593 2002-01-24 Akim Demaille <akim@epita.fr>
15597 2002-01-24 Akim Demaille <akim@epita.fr>
15599 * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
15600 * doc/autoconf.texi: Finally add Akim as an author.
15602 2002-01-24 Akim Demaille <akim@epita.fr>
15604 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
15605 (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
15606 Bourne. Use /bin/sh.
15607 From Andreas Buening.
15609 2002-01-24 Akim Demaille <akim@epita.fr>
15611 * config/config.guess, config/config.sub, config/texinfo.tex:
15612 Update from masters.
15614 2002-01-24 Akim Demaille <akim@epita.fr>
15616 * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
15617 * config/auxdir.m4, config/cond.m4, config/depend.m4,
15618 * config/init.m4, config/install-sh.m4, config/lispdir.m4,
15619 * config/missing.m4, config/sanity.m4, config/select.m4,
15620 * config/strip.m4: Remove, to ease sync'ing with any version of
15623 2002-01-24 Akim Demaille <akim@epita.fr>
15625 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
15626 (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
15627 Reported by Geir Ove Myhr.
15629 2002-01-21 Akim Demaille <akim@epita.fr>
15631 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
15633 2002-01-21 Akim Demaille <akim@epita.fr>
15635 * lib/Autom4te/General.pm (getopt): Use a more GNUish error
15636 message on invalid options.
15637 * bin/autom4te.in (parse_args): Don't use
15638 Autoconf::General::getopt with non valid options.
15640 2002-01-17 Jim Meyering <meyering@lucent.com>
15642 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
15643 $ac_cv_exeext so we don't use an old, invalid, cached value.
15645 2002-01-11 Akim Demaille <akim@epita.fr>
15647 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
15649 * doc/autoconf.texi (Function Portability): Document the strnlen
15651 (Particular Functions): Document AC_FUNC_STRNLEN.
15652 * lib/autoscan/functions: Adjust.
15654 2002-01-06 Akim Demaille <akim@epita.fr>
15656 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
15657 package.m4, since is really depends upon configure.ac, not
15659 * doc/autoconf.texi (testsuite Scripts): Adjust.
15660 * tests/Makefile.am (package.m4): New.
15661 EXTRA_DIST it since its a source.
15663 2002-01-06 Akim Demaille <akim@epita.fr>
15665 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
15666 of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
15667 and PACKAGE_BUGREPORT from here...
15668 (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
15670 (_AC_INIT_PREPARE): AC_DEFINE these symbols.
15671 * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
15672 (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
15673 * tests/tools.at (autoheader): Adjust.
15674 * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
15676 2002-01-06 Akim Demaille <akim@epita.fr>
15678 * bin/autoscan.in (scan_file): Use `&used'.
15680 2002-01-03 Akim Demaille <akim@epita.fr>
15682 * doc/autoconf.texi (Output): Improved wording regarding use of
15686 2001-12-18 Kevin Ryde <user42@zip.com.au>
15688 * doc/autoconf.texi (Function Portability): Add notes on sscanf
15689 sometimes needing writable input.
15691 2001-12-17 Jim Meyering <meyering@lucent.com>
15693 * doc/autoconf.texi (New Macros): Tweak wording.
15695 2001-12-14 Akim Demaille <akim@epita.fr>
15697 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
15698 trailing files, don't apply `-rf' to files which might not be
15699 created by configure (core, core.*, and *.core), but just `rm -f'.
15700 Suggested by Jonathan Kamens.
15702 2001-12-14 Aaron M. Ucko <amu@alum.mit.edu>
15704 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
15706 2001-12-14 Akim Demaille <akim@epita.fr>
15708 * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
15710 2001-12-13 Peter Eisentraut <peter_e@gmx.net>
15712 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
15713 abs_builddir, top_buildpath to abs_top_builddir, srcpath to
15714 abs_srcdir, top_srcpath to abs_top_srcdir.
15715 (_AC_OUTPUT_FILES): Adjust.
15716 * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
15717 * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
15718 * tests/wrappl.in, tests/wrapsh.in: Adjust.
15720 2001-12-12 Steven G. Johnson <stevenj@alum.mit.edu>
15722 * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
15723 C/Fortran linking on HP/UX, by extracting the Fortran library
15724 search path from the LPATH line in the $F77 -v output.
15726 2001-12-12 Kevin Ryde <user42@zip.com.au>
15728 * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
15729 forbidden file descriptors table.
15731 2001-11-26 Akim Demaille <akim@epita.fr>
15733 * bin/autoscan.in (%c_keywords): Build it at top level.
15734 Map to 1 in order to simplify its uses.
15736 2001-11-26 Akim Demaille <akim@epita.fr>
15738 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
15739 Remove $filepath, useless.
15740 (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
15741 variables, they are really part of the tokens.
15742 Split the input line on spaces and then look for tokens.
15743 Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
15744 because of `lex$U.$(OBJEXT)'.
15745 (&scan_files): Use "@list" instead of join.
15746 * doc/Makefile.am (CLEANFILES): Add *.fns.
15748 2001-11-26 Akim Demaille <akim@epita.fr>
15750 * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
15751 Remove, replaced by...
15752 * tests/wrappl.in: Be common for all the Perl executables.
15753 In particular autoscan and autoheader want -I.
15754 * configure.ac: Adjust.
15755 * lib/autoscan/headers: errno.h is portable.
15757 2001-11-26 Akim Demaille <akim@epita.fr>
15759 * bin/autoscan.in (used): New.
15762 2001-11-26 Akim Demaille <akim@epita.fr>
15764 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
15766 (&scan_sh_file): Remove a duplicate pattern.
15767 (&check_configure_ac): Use long options.
15768 * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
15770 2001-11-26 Akim Demaille <akim@epita.fr>
15772 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
15773 Before, having a line containing the opening of a multi line
15774 comment made the whole line be ignored.
15776 2001-11-26 Akim Demaille <akim@epita.fr>
15778 * doc/autoconf.texi (Using an Autotest Test Suite): New.
15779 (testsuite Scripts): Be one of its subsection.
15780 (Autotest Logs): New.
15782 2001-11-26 Akim Demaille <akim@epita.fr>
15784 Test groups are now run two directories deeper.
15786 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
15787 top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
15789 * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
15790 top_srcdir, builddir and top_builddir.
15791 Use `at_*dir' relatively to the directory containing the
15792 suite, use `*dir' when relatively to the current group dir.
15794 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
15796 * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
15797 lib/autoconf/functions.m4, lib/autoconf/headers.m4,
15798 tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
15801 2001-11-22 Alexandre Duret-Lutz <duret_g@epita.fr>
15803 * doc/autoconf.texi (Using System Type): Add an example of `case
15804 $host' usage so people quit using `case $target' everywhere.
15806 2001-11-22 Akim Demaille <akim@epita.fr>
15808 * doc/autoconf.texi (Installation Directory Variables): Englishoes
15809 spotted by Jim Meyering.
15811 2001-11-16 Paul Eggert <eggert@twinsun.com>
15813 This patch implements a `long double' suggestion by Oliver Kiddle.
15815 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
15816 static, to catch errors if the value isn't known at compile-time
15817 and the compiler supports dynamic arrays. Change its name from
15818 `_array_' to `test_array' to avoid potential name clashes.
15819 (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
15820 test. Do not define HAVE_LONG_DOUBLE if `long double' is no
15821 better than double. Catch a bug in GCC 2.95.2 x86.
15822 * doc/autoconf.texi (C Compiler): Document the above.
15825 2001-11-13 Akim Demaille <akim@epita.fr>
15827 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
15829 * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
15831 2001-11-13 Akim Demaille <akim@epita.fr>
15833 * lib/autotest/general.m4 (AT_INIT): After having run the test
15834 group, go back to the initial directory, not to at_suite_dir.
15836 2001-11-13 Akim Demaille <akim@epita.fr>
15838 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
15839 (AT_DATA_AUTOCONF): Also protect @&t@ from autom4te.
15840 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
15842 (AT_CHECK_CONFIGURE): Use absolute paths.
15843 (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
15844 The problem is still the old one: there is no means in M4 (that I
15845 know about) to create a defining macro, because there is no means
15846 to create `$1' etc., therefore, the defining macro ``swallows''
15847 all the arguments meant to the defined macro.
15849 2001-11-13 Akim Demaille <akim@epita.fr>
15851 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
15852 (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
15854 * tests/aclocal.m4: Remove, as it is no longer used.
15856 2001-11-13 Akim Demaille <akim@epita.fr>
15858 * lib/autotest/general.m4: Change `tests?' into `groups?' in
15859 variable names when referring to a single test group, or to
15860 `suite' when referring to the whole test suite.
15861 `at_last_test' is removed: m4 compute at_format itself.
15862 (at_stdout, at_stder1, at_stderr): New variables.
15863 (AT_CHECK): Use them.
15865 2001-11-13 Akim Demaille <akim@epita.fr>
15867 * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
15869 Create `testsuite.dir/003/run' instead of `testsuite.003'.
15870 Do it as soon as a test fails, don't wait till the end of the test
15872 Don't remove $as_me.[0-9]*, since these files no longer exist.
15874 2001-11-13 Akim Demaille <akim@epita.fr>
15876 * tests/tools.at: Use absolute paths, since we are no longer run
15879 2001-11-13 Akim Demaille <akim@epita.fr>
15881 Now that tests are running in their own private dir, there is no
15882 need to list the files to remove at the end of tests groups.
15884 * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
15885 (AT_data_files, at_data_files): Remove.
15886 (AT_CLEANUP, AT_DATA): Simplify.
15888 Remove the group dir if !debug && !failed.
15889 * tests/atspecific.m4: Adjust.
15891 2001-11-13 Akim Demaille <akim@epita.fr>
15893 Start a new layout for Autotest: `testsuite' creates
15894 `testsuite.dir' in which the at-check-line etc. files are to be
15895 found, and `testsuite.dir/003' where the test group 3 is run.
15897 * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
15898 at_check_line_file, at_format, at_test_normalized, at_group_dir
15900 Create the directories.
15901 Use absolute paths for at- files.
15902 (AT_CHECK): Adjust.
15904 2001-11-11 Michael Matz <matz@kde.org>
15906 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
15908 (m4_car): Properly quote arguments.
15910 2001-11-13 Akim Demaille <akim@epita.fr>
15912 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
15913 with stricter rules on LIBOBJS.
15915 2001-11-12 Paul Eggert <eggert@twinsun.com>
15917 * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
15918 * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
15921 2001-11-12 Akim Demaille <akim@epita.fr>
15923 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
15925 2001-11-12 Akim Demaille <akim@epita.fr>
15927 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15928 * lib/autoconf/functions.m4, lib/autoconf/general.m4,
15929 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
15930 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
15931 * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
15932 specify to what the macro should be defined (typically to 1).
15934 2001-11-12 Akim Demaille <akim@epita.fr>
15936 * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
15939 2001-11-12 Akim Demaille <akim@epita.fr>
15941 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
15942 AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND. This validates the
15943 definition used by Automake where LEX is +/- "${missing} lex" and
15944 `missing' itself contains variables.
15946 2001-11-12 Akim Demaille <akim@epita.fr>
15948 * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
15949 Now that M4sh pushes BODY, the comments were output at the end of
15952 2001-11-08 Akim Demaille <akim@epita.fr>
15954 * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
15955 that we can trace macros from aclocal.m4.
15956 Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
15957 obsoleted, and redirect to the former anyway.
15958 Reported by Ralf Corsepius.
15960 2001-11-08 Akim Demaille <akim@epita.fr>
15962 * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
15963 processed only if present.
15964 * tests/torture.at (Configuring subdirectories): Use autoreconf
15965 instead of successive calls to autoconf.
15966 Add a nonexistent subdirectory to exercise the patch above.
15967 Reported by Ralf Corsepius.
15969 2001-11-08 Kevin Ryde <user42@zip.com.au>
15971 * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
15972 doesn't accept .S files.
15974 2001-11-07 Akim Demaille <akim@epita.fr>
15976 * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
15977 * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
15978 (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
15979 * bin/autom4te.in (warn_forbidden): New.
15980 (handle_output): Use it.
15981 Read m4_pattern_forbid with messages.
15983 2001-11-05 Akim Demaille <akim@epita.fr>
15985 * bin/autom4te.in (--normalize): Remove.
15986 * lib/autom4te.in: Adjust.
15988 2001-11-05 Akim Demaille <akim@epita.fr>
15990 * tests/Makefile.am (testsuite): Rename this target as...
15991 ($(TESTSUITE)): this.
15994 2001-11-05 Alexandre Duret-Lutz <duret_g@epita.fr>
15996 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
15997 the --prefix option, also remove it's argument.
15999 2001-11-05 Akim Demaille <akim@epita.fr>
16001 * doc/autoconf.texi (testsuite Invocation): Update.
16002 (Writing testsuite.at): Update.
16004 2001-11-03 Akim Demaille <akim@epita.fr>
16006 * doc/autoconf.texi: s/@code/@command/ where appropriate.
16008 2001-11-03 Akim Demaille <akim@epita.fr>
16010 * lib/Autom4te/General.pm: (&catfile, &canonfile)
16011 (&file_name_is_absolute): New, wrappers around routines from
16013 Use and export them.
16014 (&find_configure_ac): Optionally take a directory where to look at.
16015 * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
16017 Default @ARGV to `.', not find_configure_ac.
16018 (&autoreconf): Argument is a directory.
16019 Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
16020 * doc/autoconf.texi (autoreconf Invocation): Update.
16022 2001-11-03 Akim Demaille <akim@epita.fr>
16024 * lib/Autom4te/General.pm (@export_vars, @export_subs)
16025 (@export_forward_subs): New.
16026 Add basename, dirname, and fileparse.
16028 * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
16029 Don't look for aclocal flags if we already know aclocal is not
16031 Move aclocal.m4t only if it exists.
16032 Reported by Ezra Peisach.
16034 2001-11-03 Akim Demaille <akim@epita.fr>
16036 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
16037 passed on command line, defaulting to ./configure.ac if present.
16038 (&maybe_autoreconf, File::Find): Remove, unused.
16039 (&autoreconf): If autoconf is not used, don't try to trace.
16041 2001-11-02 Akim Demaille <akim@epita.fr>
16043 * configure.ac: Bump to 2.52g.
16045 2001-11-02 Akim Demaille <akim@epita.fr>
16049 2001-11-02 Akim Demaille <akim@epita.fr>
16051 * config/config.guess, config/config.sub, doc/standards.texi:
16052 * config/lispdir.m4: Update from masters.
16053 * configure.ac: Bump to 2.52f.
16055 2001-11-02 Akim Demaille <akim@epita.fr>
16057 * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
16058 Don't run aclocal when aclocal.m4 is not from aclocal.
16060 Don't run libtoolize and gettextize if --install is not given.
16062 2001-11-01 Paul Eggert <eggert@twinsun.com>
16064 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
16065 be invoked before _AS_LINENO_PREPARE.
16066 (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
16067 than character ranges.
16069 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
16070 invoking AS_BASENAME. Set the locale variables to 'C' if
16071 possible, as POSIX requires this to get the traditional
16073 * doc/autoconf.texi (Special Shell Variables): Describe the above.
16075 2001-10-31 Paul Eggert <eggert@twinsun.com>
16077 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
16078 with {}, as that triggers a bug in Bash 2.05.
16080 (_AS_LINENO_PREPARE): Use Sed rather than
16081 Awk. Fix the sed prepass to work even if there are multiple
16082 instances of $LINENO on the same line. Do not substitute for
16083 other variables like $LINENOT. Do not check file dates; such a
16084 check is unreliable on sufficiently fast machines, and removing
16085 the check makes the code simpler and more reliable. Check for
16086 output and chmod failures.
16088 * doc/autoconf.texi (Special Shell Variables): Document
16091 2001-10-31 Akim Demaille <akim@epita.fr>
16093 * tests/Makefile.am (atconfig): Remove this target, Automake
16096 2001-10-31 Akim Demaille <akim@epita.fr>
16098 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
16099 AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
16100 provided, while it is optional.
16101 * configure.ac: Adjust.
16103 2001-10-26 Paul Eggert <eggert@twinsun.com>
16105 * NEWS, README, configure.ac, lib/Autom4te/General.pm,
16106 lib/Autom4te/Struct.pm:
16107 Require Perl 5.005_03 instead of just 5.005, as some tests fail
16110 * doc/autoconf.texi (Special Shell Variables): Document some
16111 more LINENO gotchas, particularly with respect to the Awk+Sed hack.
16113 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
16114 (_AS_LINENO_PREPARE): Use it instead of shell eval, since
16115 eval $LINENO is not portable in practice.
16117 2001-10-24 Akim Demaille <akim@epita.fr>
16119 * lib/Autom4te/General.pm (backname): New.
16121 2001-10-24 Akim Demaille <akim@epita.fr>
16123 * m4/: Remove, merged into...
16126 2001-10-23 Tim Van Holder <tim.van.holder@pandora.be>
16128 * doc/autoconf.texi (Shellology): Mention the problems with bash
16129 2.05's use of ANSI quoting in its `set' builtin.
16131 2001-10-22 Paul Eggert <eggert@twinsun.com>
16133 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
16134 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
16135 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
16136 POSIX decided to standardize on the int flavor of strerror_r.
16137 Always do char* test, as there's no reason not to.
16138 Assign to a char* var, to catch strerror_r that returns int*.
16140 * doc/autoconf.texi (Particular Functions):
16141 Document the above changes. Also, document the fact that
16142 AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
16144 * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
16146 2001-10-20 Akim Demaille <akim@epita.fr>
16148 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
16149 the executable was missing from the log.
16151 2001-10-20 Akim Demaille <akim@epita.fr>
16153 * lib/Autom4te/General.pm (&update_file): If destination is
16154 unchanged, remove the source.
16155 (&up_to_date_p): Don't be verbose, be debug.
16156 * bin/autoreconf.in: No longer support --m4dir.
16157 (&autoreconf): Display the full path of the configure.ac we are
16159 Trace it only once.
16160 Be sure to honor --force with gettextize.
16161 Always run aclocal.
16162 * doc/autoconf.texi: Adjust.
16164 2001-10-20 Akim Demaille <akim@epita.fr>
16166 * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
16168 * bin/autoreconf.in (&autoreconf): Do not run gettextize when
16169 `intl' is already present, as it refuses unless --force.
16170 (&parse_args): Use -I, --include instead of the old Autoconf
16172 ($localdir, $autoconf_dir): Remove.
16174 (&maybe_autoreconf): New, to preserve $_ for File::Find.
16176 2001-10-19 Jens Petersen <petersen@redhat.com>
16178 * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
16179 * doc/autoconf.texi (Particular Programs): Likewise.
16181 2001-10-19 Akim Demaille <akim@epita.fr>
16183 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
16184 file in @configure_input@.
16185 Don't mention `automatically' in addition to `generated'.
16186 * tests/torture.at (#define header templates): Adjust.
16188 2001-10-19 Akim Demaille <akim@epita.fr>
16190 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
16191 comment, explain how to install automatic mode selection.
16194 2001-10-19 Ezra Peisach <epeisach@zif.mit.edu>
16196 * bin/autoreconf.in (autoreconf): Display the path to the
16197 configure.ac being studied.
16199 2001-10-18 Paul Eggert <eggert@twinsun.com>
16201 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
16202 long, to work around a bug in the HP C compiler version HP92453-01
16205 * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
16206 (AS_BASENAME_EXPR): New macro.
16207 (AS_BASENAME_SED): Do not assume GNU sed semantics.
16208 (AS_BASENAME): Use 'basename' if that works; then try 'expr';
16209 and fall back on 'sed' only if the other two fail. This makes
16210 AS_BASENAME act more like AS_DIRNAME.
16211 (as_me): Shell-quote the argument of AS_BASENAME, in case $0
16212 contains white space.
16213 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
16214 Use AS_DIRNAME, since I think it's now DOS-friendly.
16215 * tests/m4sh.at (DIRNAME_TEST): New arg $3.
16216 Allow "dirname //FOO" to return either / or //, as POSIX allows
16219 2001-10-10 Akim Demaille <akim@epita.fr>
16221 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
16222 `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
16225 2001-10-10 Akim Demaille <akim@epita.fr>
16227 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
16228 m4_define, since...
16229 (_AS_ECHO_N): AS_REQUIREs it.
16231 2001-10-10 Akim Demaille <akim@epita.fr>
16233 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
16234 (AC_INCLUDES_DEFAULT): Move to...
16235 * lib/autoconf/headers.m4: here.
16236 * lib/autoconf/types.m4: Comment changes.
16237 * doc/autoconf.texi: Specify where the default includes are used
16238 in the macro prototypes.
16240 2001-10-09 Akim Demaille <akim@epita.fr>
16242 * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
16245 2001-10-08 Akim Demaille <akim@epita.fr>
16247 * bin/autoreconf.in (&autoreconf): Remove debugging code.
16248 (&parse_args): Pass verbosity/debugging options to subtools when
16249 --debug, not when --verbose.
16250 * lib/autom4te.in (Autoreconf-preselections): New.
16251 (Autoconf): Use it.
16253 2001-10-08 Akim Demaille <akim@epita.fr>
16255 * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
16257 2001-10-08 Akim Demaille <akim@epita.fr>
16259 * doc/autoconf.texi (autoreconf Invocation): Adjust.
16260 * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
16262 2001-10-08 Akim Demaille <akim@epita.fr>
16264 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
16265 (Syntax of the shell scripts): Don't.
16266 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
16267 bother with $force since...
16268 * lib/Autom4te/General.pm: does.
16270 2001-10-08 Akim Demaille <akim@epita.fr>
16272 * bin/autoreconf.in: Rewrite in Perl.
16273 * configure.ac: Adjust.
16274 * lib/Autom4te/General.pm (&up_to_date_p): New.
16275 * bin/autom4te.in (&up_to_date_p): Use it.
16277 (&up_to_date): this.
16279 2001-10-08 Akim Demaille <akim@epita.fr>
16281 * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
16282 (m4_list_cmp): Use $0 to reinvoke yourself.
16283 (m4_patsubsts): New.
16284 (m4_strip, m4_version_unletter): Use it.
16285 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
16287 2001-10-08 Akim Demaille <akim@epita.fr>
16289 * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
16290 * lib/autoconf/libs.m4, lib/autoconf/status.m4,
16291 * lib/autoconf/types.m4, lib/autotest/general.m4,
16292 * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
16293 * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
16294 m4_bregexp, m4_bpatsubst, and m4_bmatch.
16295 * doc/autoconf.texi (Redefined M4 Macros): Adjust.
16297 2001-10-08 Akim Demaille <akim@epita.fr>
16299 * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
16301 2001-10-08 Akim Demaille <akim@epita.fr>
16303 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
16304 * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
16305 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
16306 * tests/tools.at, tests/m4sh.at: Use it.
16307 * tests/m4sh.at: Don't rely on Autoconf macros.
16308 (DIRNAME_TEST): Also exercise the expr variant.
16309 * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
16310 preferred M4sugar extension is now `.4s'.
16311 * tests/README: Remove.
16313 2001-10-08 Akim Demaille <akim@epita.fr>
16315 * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
16316 (m4_provide_if): this.
16317 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
16318 * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
16319 (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
16320 M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
16322 2001-10-08 Akim Demaille <akim@epita.fr>
16324 Use `add-log-current-defun-function' for ChangeLog creation.
16325 Suggested by Tom Tromey.
16327 * lib/emacs/autotest-mode.el (autotest-mode-map): New.
16328 (autotest-mode): Adjust.
16329 * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
16330 'comment-region onto `C-c ;'.
16331 Comments are `#', not `dnl'.
16332 (autoconf-current-defun): New.
16333 (autoconf-font-lock-keywords): Recognize `m4_defun'.
16335 2001-10-08 Akim Demaille <akim@epita.fr>
16337 * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
16338 * lib/m4sugar/m4sh.m4: here.
16339 (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
16340 * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
16341 (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
16342 include handle the m4_pattern_*, no longer push the
16343 BODY diversion nor set the /bin/sh line, AS_INIT does it.
16344 * lib/autotest/general.m4 (AT_INIT): Likewise.
16345 * tests/base.at: Adjust the tests to use AS_INIT.
16346 * tests/tools.at (AT_DATA_FORBIDDEN): New.
16347 (autoconf: forbidden tokens): Adjust to work on M4sh instead of
16350 2001-10-07 Paul Eggert <eggert@twinsun.com>
16352 * doc/autoconf.texi (config.status Invocation):
16353 CONFIG_SHELL defaults to a shell that supports LINENO if available.
16355 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
16356 shell does not support LINENO, and if CONFIG_SHELL is unset or
16357 empty, and if we can find a shell that does support LINENO,
16358 then set CONFIG_SHELL to that shell and then re-execute
16359 ourselves with CONFIG_SHELL.
16361 2001-10-05 Paul Eggert <eggert@twinsun.com>
16363 * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
16364 doesn't exist. Remove *.tmp, as a .tmp file is created during the
16365 build of $(TESTSUITE).
16367 2001-10-05 Akim Demaille <akim@epita.fr>
16369 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
16370 iff we are a bareword.
16371 Reported by Raja R Harinath.
16373 2001-10-05 Akim Demaille <akim@epita.fr>
16375 * tests/m4sh.at (LINENO): New.
16376 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
16377 PATH_SEPARATOR before using it.
16378 Fix the absolute path case/esac pattern.
16379 Provide $0 as fallback for as_myself.
16380 Reported by Raja R Harinath.
16382 2001-10-05 Akim Demaille <akim@epita.fr>
16384 * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
16385 * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
16387 2001-10-05 Akim Demaille <akim@epita.fr>
16389 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
16390 (AS_SHELL_SANITIZE): here. Use it.
16391 (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
16394 2001-10-04 Akim Demaille <akim@epita.fr>
16396 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
16397 combination of Awk and sed to replace $LINENO.
16399 2001-10-02 Paul Eggert <eggert@twinsun.com>
16401 * doc/autoconf.texi (Limitations of Builtins): You can't use
16402 "source"; it's not portable. Remove confusing and
16403 somewhat-incorrect example involving "." and "/".
16405 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
16406 compatibility with POSIX shells.
16408 2001-10-02 Akim Demaille <akim@epita.fr>
16410 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
16411 instead of exec'ing to preserve $0 and $@.
16413 2001-10-01 Akim Demaille <akim@epita.fr>
16415 * tests/testsuite (AT_INIT) <at_pass_list>: New.
16416 Don't run twice the same test.
16418 2001-10-01 Akim Demaille <akim@epita.fr>
16420 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
16421 No longer output the list of tests.
16422 <--list>: New option.
16423 <--full-help>: Remove.
16424 Complete the short/long options duality.
16425 Various small adjustments.
16427 2001-10-01 Akim Demaille <akim@epita.fr>
16429 * doc/autoconf.texi: Use @kbd for user input.
16430 Always use `$' as shell prompt.
16432 2001-09-30 Paul Eggert <eggert@twinsun.com>
16434 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
16435 Don't use nested parenthesization. This patch was originally
16436 suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
16437 but somehow it didn't get incorporated then.
16438 * doc/autoconf.texi (Limitations of Usual Tools):
16439 Clarify remark about sed and nested parenthesization.
16441 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
16442 Report an error if the size cannot be determined even though
16444 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16445 Check for `expr' arithmetic overflow, and for compilation failure,
16446 and invoke a new argument $4 if either is discovered.
16447 This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
16448 (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
16450 2001-09-28 Akim Demaille <akim@epita.fr>
16452 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
16453 * m4/lispdir.m4: New.
16454 * aclocal.m4, configure.ac: Adjust.
16456 2001-09-28 Akim Demaille <akim@epita.fr>
16458 * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
16460 (AT_INIT): More the wrapped section to where it will be expanded.
16461 Output `AT_tested' only when existing.
16462 Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
16464 2001-09-27 Akim Demaille <akim@epita.fr>
16466 Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
16467 generates too many bug reports.
16469 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
16470 status when executing the ACTION-IF-FALSE.
16471 * tests/base.at (AC_TRY_*): Rename as...
16472 (AC_TRY_COMMAND): this.
16473 (AC_RUN_IFELSE): New.
16474 * tests/compile.at (Extensions, C keywords)
16475 (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
16476 (Broken/missing compilers, AC_PROG_CPP with warnings)
16477 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
16478 * tests/c.at (Extensions, C keywords)
16479 (Broken/missing compilers, AC_PROG_CPP with warnings)
16480 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
16481 (AC_PROG_CPP requires AC_PROG_CC): here and...
16482 * tests/fortran.at (GNU Fortran 77): there.
16483 * doc/autoconf.texi (autoconf Invocation): Fix the example:
16484 AC_TRY_RUN is about compilation, not shell commands.
16485 (Test Programs): AC_TRY_RUN works as used to be advertised.
16487 2001-09-27 Akim Demaille <akim@epita.fr>
16489 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
16491 Be sure to detect when $LINENO always returns the same value.
16492 Look for the original script, basename($0) is certainly not
16494 Pass the CLI arguments to `$as_me.lineno'.
16496 2001-09-25 Akim Demaille <akim@epita.fr>
16498 * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
16499 Be sure the close and reopen the LOG fd before and after using tee
16501 <at_tests_pattern>: Adjust to the new format of at_help_all.
16503 2001-09-23 Akim Demaille <akim@epita.fr>
16505 * bin/autom4te.in (parse_args): There can be several invocations
16508 2001-09-23 Akim Demaille <akim@epita.fr>
16510 * doc/autoconf.texi (Top): Wrap in @ifnottex.
16512 2001-09-23 Akim Demaille <akim@epita.fr>
16514 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
16515 ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
16516 (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
16517 builddir, buildpath, top_builddir, and top_buildpath.
16518 (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
16519 the current directory.
16520 * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
16521 variables *before* changing the current directory.
16522 Skip nonexistent dirs.
16523 * doc/autoconf.texi (Preset Output Variables): Document these
16526 * lib/autotest/general.m4: Do not reset AT_victims.
16527 Don't compute at_srcdir nor at_top_srcdir.
16529 * tests/tools.at: Hence use top_srcdir.
16531 * tests/Makefile.am, tests/autoconf, tests/autoheader,
16532 * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
16534 * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
16535 * tests/wrapsh.in, tests/autoupdate.in: New.
16536 * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
16537 * configure.ac: Build the position independent wrappers.
16539 * man/Makefile.am: Now that test wrappers are position
16540 independent, use them and drop dark envvar magic.
16542 2001-09-23 Akim Demaille <akim@epita.fr>
16544 * doc/autoconf.texi (Common Shell Constructs): Rename as...
16545 (Programming in M4sh): this.
16546 Promote to @section.
16548 2001-09-23 Akim Demaille <akim@epita.fr>
16550 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
16551 Pass $at_debug_args to the rerun test suite.
16552 * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
16553 * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
16556 2001-09-23 Akim Demaille <akim@epita.fr>
16558 * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
16560 2001-09-23 Akim Demaille <akim@epita.fr>
16562 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
16565 2001-09-23 Akim Demaille <akim@epita.fr>
16567 * lib/Autom4te/General.pm (&debug): New.
16568 * bin/autom4te.in ($language): Move to...
16569 (parse_args): here.
16570 Handle --language in languages.
16571 * lib/autom4te.in (Automake-selections, Autoheader-selections)
16572 (Autoscan-selections): New.
16573 (Autoconf): Adjust.
16575 2001-09-23 Tim Van Holder <tim.van.holder@pandora.be>
16577 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
16578 * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
16579 to match current versions from CVS Automake.
16581 2001-09-23 Alexandre Duret-Lutz <duret_g@epita.fr>
16583 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
16586 2001-09-22 Akim Demaille <akim@epita.fr>
16588 * lib/autoconf/autotest.m4: Create `package.m4'.
16589 * tests/Makefile.am (package.m4): Remove.
16591 2001-09-22 Akim Demaille <akim@epita.fr>
16593 Rely on `$LINENO' when possible instead of `__oline__'.
16595 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
16596 `$LINENO' support replacement when not supported.
16597 (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
16598 them explicitly to be sure they are not output before this section
16599 (via m4_require). Cosmetic only.
16600 * lib/autoconf/c.m4, lib/autoconf/general.m4,
16601 * lib/autoconf/programs.m4: Replace all the occurrences of
16602 `__oline__' with `$LINENO'.
16603 * doc/autoconf.texi (Special Shell Variables): Document LINENO.
16605 2001-09-21 Tim Van Holder <tim.van.holder@pandora.be>
16607 * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
16608 character (u: -> ue) in a code comment.
16609 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
16612 2001-09-21 Akim Demaille <akim@epita.fr>
16614 * Makefile.maint (AUTOM4TE): Neutralize autom4te.
16615 Suggested by Jim Meyering.
16617 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16619 * lib/autoconf/programs.m4: Use extensions listed in
16620 $ac_executable_extensions when looking for programs.
16622 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16624 * lib/autoconf/general.m4: Fix a small Englisho.
16625 * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when
16626 setting up ac_dir_suffix and ac_top_builddir.
16627 * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
16629 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16631 * doc/autoconf.texi (File System Conventions): Clarify the use of
16633 (Special Shell Variables[PATH_SEPARATOR]): Ditto.
16634 (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
16635 be used instead of ':'.
16636 * lib/autotest/general.m4: Replace occurrences of ':' in
16637 AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
16639 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16641 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
16642 arguments. Fixed a typo.
16644 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16646 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
16647 $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly.
16649 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16651 * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
16652 * bin/autoupdate.in: Ditto.
16653 * bin/autoheader.in: Reworded a few comments.
16654 * bin/autoconf.in: Reworded help text for a few options.
16655 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
16656 * bin/autoscan.in, bin/autoupdate.in: Ditto.
16658 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
16660 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
16661 already have $file). Set output files to binary mode (helps avoid
16662 CR issues on DOSish systems).
16664 2001-09-19 Akim Demaille <akim@epita.fr>
16666 * lib/autotest/general.m4: Englishoes.
16667 From Tim Van Holder and Alexey Mahotkin.
16669 2001-09-18 Paul Eggert <eggert@twinsun.com>
16671 * doc/autoconf.texi (Common Shell Constructs): New node,
16672 documenting AS_DIRNAME.
16673 (Limitations of Usual Tools): Refer to it when discussing dirname.
16674 Also, update discussion of POSIX standard to reflect latest draft.
16676 * lib/autoconf/c.m4:
16677 (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
16679 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
16680 Do not pass a first argument with leading '-'
16681 to expr, by parenthesizing initial integers that might be negative.
16683 * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
16684 now merely checks whether it is an error to pass an argument
16687 * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
16688 (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check
16689 whether it is a (compile-time) error to pass an argument to
16690 getpgrp. This simpler test supports the revised documentation,
16691 and is all that AC_FUNC_GETPGRP's users really need.
16693 2001-09-18 Akim Demaille <akim@epita.fr>
16695 * doc/autoconf.texi (Limitations of Make) <$<>: New.
16697 2001-09-18 Akim Demaille <akim@epita.fr>
16699 * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
16701 * lib/autotest/general.m4 (AT_INIT): Adjust.
16703 2001-09-18 Paul Wagland <paul@wagland.net>
16705 * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
16707 Add test for AS_BASENAME.
16708 * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
16709 added test. It now correctly handles /1/2/3/, returning '3' not ''.
16710 Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
16711 * tests/base.at: Fixed the expected responses. The old ones were
16713 * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
16714 the documentation claims it should (and how it behaved in 2.13).
16716 2001-09-18 Akim Demaille <akim@epita.fr>
16718 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
16719 the AC_CONFIG_COMMANDS invocation.
16720 This also solves the name clash problems.
16721 Don't set the package's ID.
16722 * lib/m4sugar/Makefile.am (version.m4): Revamp.
16723 No longer to be shipped.
16724 (version.in): Remove.
16725 * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
16726 * lib/autoconf/status.m4: Adjust.
16727 Use `m4_PACKAGE_STRING'.
16728 * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
16729 the only optional argument is the name of the test suite.
16730 Expect `package.m4' to define the package signature.
16731 * lib/autom4te.in (Autotest): Add `package.m4?'.
16732 * tests/Makefile.am (package.m4): New.
16733 * tests/suite.at: ifnames is a victim.
16735 2001-09-18 Akim Demaille <akim@epita.fr>
16737 * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
16738 AC_LIBSOURCE, AC_CONFIG_FILES.
16739 * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
16740 program version string doesn't match the package's.
16741 * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
16744 2001-09-17 Paul Eggert <eggert@twinsun.com>
16746 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
16747 Allow expression to return any value that can fit into unsigned long
16748 (not int, as before). Check for output errors.
16750 2001-09-17 Bruno Haible <haible@ilog.fr>
16752 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
16753 Always include <stdio.h> and <stdlib.h>. Evaluate
16754 the expression in an extra function before these includes. Call
16755 fprintf "%d" only after ensuring the argument is of type 'int'.
16756 Reported by Wayne Chapeskie <waynec@spinnaker.com>.
16758 2001-09-17 Paul Eggert <eggert@twinsun.com>
16760 Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
16761 or CFLAGS=-O5. In that case, the linker has a relaxed view of
16762 fatal errors, and AC_CHECK_LIB causes it to include libraries even
16763 when they don't exist.
16765 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
16766 not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
16769 * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
16770 version with the version used by fileutils 4.1, except use
16771 AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
16774 * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
16776 2001-09-13 Akim Demaille <akim@epita.fr>
16778 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
16780 Reported by Gerrit P. Haase.
16782 2001-09-13 Akim Demaille <akim@epita.fr>
16784 * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
16785 m4_defn'ing is valid.
16787 2001-09-13 Akim Demaille <akim@epita.fr>
16789 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
16790 * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
16793 2001-09-13 Akim Demaille <akim@epita.fr>
16795 * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
16797 (m4_re_escape): New.
16798 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
16799 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
16800 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
16802 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
16803 (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
16804 * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
16805 AT_tests_all for consistency.
16807 (AT_VICTIMS): Similar to AT_KEYWORDS.
16808 (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
16810 2001-09-13 Akim Demaille <akim@epita.fr>
16812 * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
16814 2001-09-13 Akim Demaille <akim@epita.fr>
16816 * lib/autotest/general.m4 (AT_INIT): Create and remove
16817 `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
16818 test suites can cohabit.
16820 2001-09-13 Akim Demaille <akim@epita.fr>
16822 * tests/mktests.sh: Don't output banners for empty test files.
16824 2001-09-13 Akim Demaille <akim@epita.fr>
16826 Test suites can be run independently of configure.
16828 * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
16829 * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
16830 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
16832 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
16834 * lib/autotest/general.m4: Use ECHO_*.
16836 2001-09-13 Akim Demaille <akim@epita.fr>
16838 * bin/ifnames.in: Rewrite in Perl.
16839 * configure.ac: Don't look for AWK.
16840 * tests/tools.at (AWK portability): Remove.
16841 (Syntax of the shell scripts): Don't check ifnames.
16842 (AT_CHECK_PERL_SYNTAX): New.
16843 (Syntax of the Perl scripts): Check ifnames.
16844 * tests/ifnames: New.
16846 2001-09-13 Akim Demaille <akim@epita.fr>
16848 * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
16850 * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
16851 Remove all the other keywords.
16853 2001-09-10 Akim Demaille <akim@epita.fr>
16855 * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
16856 SETUP: no longer used.
16857 Support -k, --keywords.
16858 <at_help>: Be `no', `short', or `long'.
16859 <at_help_all>: New variable.
16860 (AT_KEYWORDS): New.
16861 (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
16862 (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
16863 (_AT_CLEANUP_FILE_IF): Simplify the regexp.
16864 (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
16865 No longer fill the HELP diversion.
16866 (AT_CLEANUP): Use them.
16867 * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
16868 (m4_list_append): Remove.
16870 Spread a few keywords in the Autoconf test suite.
16872 2001-09-10 Akim Demaille <akim@epita.fr>
16874 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
16875 PATH_SEPARATOR, let M4sh compute it.
16876 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
16877 * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
16879 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
16880 Simplify when the path is not a literal.
16881 (AS_UNAME): Use it to report PATH.
16882 * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
16883 (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
16884 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
16885 * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
16886 normalize the path, and to look for victims.
16887 * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
16888 (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
16890 2001-09-07 Akim Demaille <akim@epita.fr>
16892 * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
16893 doesn't neutralize SIGINT, making autoconf etc. non interruptible.
16894 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
16895 related variables into `at_package_*'.
16896 * lib/autotest/general.m4 (AT_VICTIMS): New.
16897 (AT_INIT): Adjust for stand-alone/embedded test suites.
16898 (AS_MESSAGE_LOG_FD): Define and use it.
16899 * tests/suite.at (AT_VICTIMS): Use it.
16900 * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
16903 2001-09-07 Akim Demaille <akim@epita.fr>
16905 Move toward possibly stand-alone test suites.
16907 * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
16908 in addition, it introduces useless differences in logs.
16909 (AT_INIT): Let atconfig and atlocal be both optional.
16910 Adjust PATH computation.
16911 * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
16913 2001-09-07 Akim Demaille <akim@epita.fr>
16915 * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
16916 m4sugar/version.m4.
16918 2001-09-05 Akim Demaille <akim@epita.fr>
16920 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
16921 to avoid GCC warnings.
16924 2001-09-05 Akim Demaille <akim@epita.fr>
16926 * bin/autom4te.in: --language is -l, not -s.
16928 2001-09-05 Akim Demaille <akim@epita.fr>
16930 Be ready to handle filenames as stupid as `dnl.at', for if even
16931 the maintainer is dumb enough to do that...
16933 * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
16934 excellence in M4 quotation: consider `__file__' is active.
16936 And BTW, when invoking m4, pass the --include in the right order:
16939 * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
16942 2001-09-05 Akim Demaille <akim@epita.fr>
16944 * lib/Autom4te/XFile.pm: New lib file.
16945 * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
16946 * bin/autoheader.in: Use it.
16948 2001-09-05 Akim Demaille <akim@epita.fr>
16950 * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
16953 2001-09-05 Akim Demaille <akim@epita.fr>
16955 * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
16956 * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
16958 * bin/autoscan.in: Use `getopt' and `find_files' etc.
16959 Add -I, --include support.
16960 * doc/autoconf.texi (autoscan Invocation): Adjust.
16962 2001-09-05 Akim Demaille <akim@epita.fr>
16964 CVS GNU M4 doesn't like `undefine(undefined)'.
16966 * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
16967 New, extracted from main.
16968 Use IO::File wherever possible.
16969 (input.m4): Be constant, use -I instead of hard coding $tmp.
16970 Therefore be a quoted heredoc.
16971 Don't invoke `_au_disable', since ac was not loaded, but just
16974 2001-08-31 Akim Demaille <akim@epita.fr>
16978 2001-08-31 Akim Demaille <akim@epita.fr>
16980 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
16982 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
16984 2001-08-31 Akim Demaille <akim@epita.fr>
16986 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
16987 serious problems handling heredocs in heredocs.
16988 Reported by Nicolas Joly.
16990 2001-08-31 Akim Demaille <akim@epita.fr>
16992 * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
16993 (Making testsuite Scripts): Update.
16995 2001-08-31 Akim Demaille <akim@epita.fr>
16997 * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
16999 2001-08-31 Akim Demaille <akim@epita.fr>
17001 * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
17002 (testsuite Scripts): There is no such thing as `atconfig.in'.
17003 And actually one diagram is missing: test suite runtime.
17005 2001-08-31 Akim Demaille <akim@epita.fr>
17007 * lib/Autom4te/General.pm (&find_file): Browse the includes in the
17010 2001-08-31 Akim Demaille <akim@epita.fr>
17012 * bin/autoupdate.in (@include): `installcheck' revealed the path
17013 to m4sugar was lacking!
17015 2001-08-31 Akim Demaille <akim@epita.fr>
17017 * man/Makefile.am (.x.1): We really have to pass
17018 autom4te_perllibdir.
17020 2001-08-31 Akim Demaille <akim@epita.fr>
17022 * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
17023 debug scripts, in particular passing explicitly listed tests to
17026 2001-08-31 Akim Demaille <akim@epita.fr>
17028 * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
17029 * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
17030 Use directly autom4te, not autoconf.
17031 * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
17033 2001-08-31 Akim Demaille <akim@epita.fr>
17035 * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
17036 * bin/autoheader.in (%symbol): Strip arguments of macros.
17038 2001-08-31 Akim Demaille <akim@epita.fr>
17040 * doc/autoconf.texi: Catch up -I, --include changes.
17042 2001-08-31 Akim Demaille <akim@epita.fr>
17044 * bin/autom4te.in (&parse_args): Die on unknown languages.
17045 * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
17047 Promote --include over --macrodir and other obsolete options.
17049 2001-08-31 Akim Demaille <akim@epita.fr>
17051 * lib/Autom4te/General.pm ($version, $help, &getopt): New.
17052 * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
17053 * bin/autom4te.in ($autoconf): Pass --force.
17054 `print $out' doesn't print `$_' but `$out'.
17055 * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
17056 (autoheader): Pass --force since the test suite goes too fast for
17058 Adjust to the new autoheader messages.
17060 2001-08-31 Akim Demaille <akim@epita.fr>
17062 * bin/autoheader.in: Handle the acconfig.h etc. junk files.
17063 Check the completeness of the #template.
17064 * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
17065 * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
17068 2001-08-31 Akim Demaille <akim@epita.fr>
17070 * lib/Autom4te/General.pm (&find_file, &update_file): New.
17071 * bin/autoupdate.in, bin/autoheader.in: Adjust.
17072 Drop AC_MACRODIR dead for real.
17073 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
17074 `autoheader: `config.hin' is created'.
17075 * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
17077 2001-08-31 Akim Demaille <akim@epita.fr>
17079 * bin/autoheader.in: Rewrite in Perl.
17080 * tests/autoheader: Adjust.
17082 2001-08-31 Akim Demaille <akim@epita.fr>
17084 * bin/autoconf.in (--include, -I): New option.
17085 Map --localdir, --autoconf-dir onto it.
17086 Forward autom4te's options instead of interpreting them.
17087 * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
17088 There is no such envvar since the inception of autom4te.cfg.
17089 * bin/autom4te.in (&parse_args): Uniquify `@include'.
17090 * bin/autoupdate.in: Adjust, and perform more control.
17091 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
17092 * tests/autoconf: Dittowise.
17094 2001-08-31 Akim Demaille <akim@epita.fr>
17096 * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
17097 * bin/autom4te.in (&find_file): Support `FILE?' standing for
17099 Use -e, not -f, since /dev/null for instance is OK.
17100 (&parse_args): Adjust.
17101 * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
17103 2001-08-31 Akim Demaille <akim@epita.fr>
17105 * configure.ac: Also find tested executables in bin.
17106 * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
17107 * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
17108 installed peer executables, only PATH is allowed to resolve it.
17109 Pass `autoconf_dir' via options, not via invisible envvars.
17110 * lib/Autom4te/General.pm (&find_peer): Remove.
17111 * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
17112 `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
17113 * man/Makefile.am: Let help2man rely on PATH instead of trying to
17114 find the executables for it.
17115 * tests/Makefile.am: Major cleanup. Too lazy to document...
17116 * tests/atlocal.in: Remove all the obscure envvar manipulations.
17118 * tests/atspecific.m4, tests/tools.at: Passing --localdir is
17119 indeed related to running the test suite, while passing
17120 --autoconf-dir and others is related to running non installed
17121 Autoconf executables. So don't do that, leave it to...
17122 * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
17123 * tests/autoscan: New.
17124 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
17125 refer to library files: rely on --language.
17127 2001-08-29 Akim Demaille <akim@epita.fr>
17129 * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
17130 s/--set/--language/.
17132 2001-08-29 Akim Demaille <akim@epita.fr>
17134 * doc/autoconf.texi: Strip the @nodes.
17135 Suggested by Paul Eggert.
17136 (Initializing configure): Typo.
17138 2001-08-29 Akim Demaille <akim@epita.fr>
17140 * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
17141 Suggested by Paul Eggert.
17143 2001-08-29 Akim Demaille <akim@epita.fr>
17145 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
17146 download in a tmp dir.
17148 2001-08-29 Akim Demaille <akim@epita.fr>
17150 * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
17151 case insensitive OSes out there :(
17152 From Tim Van Holder.
17154 2001-08-29 Akim Demaille <akim@epita.fr>
17156 * lib/autom4te.in: New.
17157 * lib/Makefile.am (edit, autom4te.cfg): New.
17158 * bin/autom4te.in (BEGIN): Simplify.
17159 Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
17160 (&load_configuration): New. Use it.
17161 (&parse_args): Support --mode, --set, and --melt.
17162 * bin/autoconf.in: Simplify and adjust.
17163 * tests/Makefile.am (AUTOMAKE): Use --set.
17164 * tests/atlocal.in: Adjust.
17165 * BUGS: distcheck and check are weak.
17167 2001-08-29 Akim Demaille <akim@epita.fr>
17169 * lib/autotest/general.m4: Use
17170 foo=`(command) 2>/dev/null`
17172 foo=`command` 2>/dev/null
17173 (at-devnull): Rename as...
17174 (AT-devnull): this.
17175 (--clean): Remove AT-* files too.
17176 * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
17177 Reported by Nicolas Joly.
17179 2001-08-28 Akim Demaille <akim@epita.fr>
17181 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
17182 quotes inside single quotes.
17183 Reported by Nicolas Joly.
17185 2001-08-28 Kevin Ryde <user42@zip.com.au>
17187 * doc/autoconf.texi (Function Portability): Mention C right shifts.
17189 2001-08-27 Tim Van Holder <tim.van.holder@pandora.be>
17191 * lib/autotest/general.m4: Reword some messages.
17192 (AT_INIT): Check for the `times' builtin before using it.
17193 Support test ranges as arguments to the testsuite.
17194 Have -e imply -d as the help text suggested.
17196 2001-08-27 Akim Demaille <akim@epita.fr>
17198 * Makefile.maint: Formatting changes.
17199 (do-po-update, po-update, cvs-update, update): New targets.
17202 2001-08-27 Akim Demaille <akim@epita.fr>
17204 * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
17205 <at_cmd_line>: New.
17206 Pass it to debug-*.sh scripts.
17207 <AUTOTEST_PATH>: May contain absolute dir names.
17209 2001-08-27 Akim Demaille <akim@epita.fr>
17211 * lib/autotest/general.m4 (AT_INIT): Log the command line.
17212 Support `VAR=VAL' as arguments.
17213 Compute PATH _after_ the options processing, so that AUTOTEST_PATH
17214 may be set via the command line.
17216 2001-08-27 Akim Demaille <akim@epita.fr>
17218 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
17219 * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
17220 first the build dirs, then the src dirs.
17221 * configure.ac (AC_CONFIG_TESTDIR): Adjust.
17223 2001-08-27 Akim Demaille <akim@epita.fr>
17225 * lib/autotest/general.m4 (AT_INIT): Output the definition of
17226 at_data_files earlier.
17227 (--clean, -c): New option.
17228 * tests/Makefile.am: Use this option.
17230 2001-08-27 Akim Demaille <akim@epita.fr>
17232 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
17233 `ac_top_builddir' to mimic Automake's vocabulary, which much more
17236 * doc/autoconf.texi (Configuration Actions): Document the vars
17237 available in commands.
17238 Emphasize the risks of collisions in init-cmds.
17240 2001-08-27 Akim Demaille <akim@epita.fr>
17242 * doc/autoconf.texi (Input) <AC_INIT>: Move to..
17243 (Initializing configure): this new node.
17245 2001-08-27 Akim Demaille <akim@epita.fr>
17247 * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
17249 2001-08-27 Akim Demaille <akim@epita.fr>
17251 * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
17252 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
17254 * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
17256 2001-08-27 Akim Demaille <akim@epita.fr>
17258 * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
17260 * lib/autoconf/autoheader.m4: this new file.
17261 * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
17262 (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
17264 * lib/autoconf/autoupdate.m4: this new file.
17266 2001-08-27 Akim Demaille <akim@epita.fr>
17268 * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
17269 (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
17270 Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
17272 (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
17273 * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
17275 2001-08-27 Akim Demaille <akim@epita.fr>
17277 * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
17278 (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
17279 (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
17280 (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
17281 (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
17282 (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
17283 (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
17284 (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
17285 (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
17286 (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
17287 (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
17288 (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
17289 (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
17290 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
17291 (_AC_OUTPUT_SUBDIRS): Move to...
17292 * lib/autoconf/status.m4: this new file.
17293 * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
17294 * tests/Makefile.am, tests/suite.at: Adjust.
17296 2001-08-27 Akim Demaille <akim@epita.fr>
17300 * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
17301 (AMTAR): Help automake define it.
17302 (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
17303 needed, 1.5 can have a macro and a target with the same name.
17304 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
17305 * m4/strip.m4: New.
17306 * m4/init.m4, m4/sanity.m4: Update.
17307 * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
17308 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
17309 * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
17310 * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
17312 2001-08-27 Akim Demaille <akim@epita.fr>
17314 Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
17316 * lib/autoconf/version.in: Remove.
17317 * lib/m4sugar/version.in: New.
17318 * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
17320 * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
17321 the name of the directory they're in, instead of the filename,
17322 since version.m4 is now in m4sugar, but m4_acversion must not be
17323 classified as an Autoconf macro.
17324 ($input_m4): Don't qualify the path to m4sugar.
17325 Rather, pass autoconf_dir to m4.
17326 * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
17327 * tests/suite.at: Require 2.52c.
17329 2001-08-27 Akim Demaille <akim@epita.fr>
17331 testsuite.log should include config.log.
17333 * lib/autotest/autotest.m4: New.
17334 * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
17335 * tests/suite.at : Adjust.
17336 (AT_INIT): Log config.log.
17337 * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
17338 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
17339 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
17340 (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
17341 of config.log on traps.
17342 (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
17343 Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
17344 for config.status'.
17345 Open the log as soon as possible.
17346 Use the same log introduction as configure's.
17348 2001-08-22 Paul Eggert <eggert@twinsun.com>
17350 * doc/autoconf.texi (Indices): New node.
17351 Move indices out of the top level menu and into this submenu.
17353 2001-08-22 Akim Demaille <akim@epita.fr>
17355 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
17357 (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
17359 2001-08-22 Akim Demaille <akim@epita.fr>
17361 * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
17362 (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
17363 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
17364 * lib/autoconf/programs.m4: here.
17365 * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
17366 (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
17367 (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
17368 * lib/autoconf/programs.m4: here.
17369 (_AC_DECL_YYTEXT): Rename as...
17370 (_AC_PROG_LEX_YYTEXT_DECL): this.
17371 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
17372 * tests/Makefile.am, tests/suite.am: Adjust.
17374 2001-08-22 Akim Demaille <akim@epita.fr>
17376 * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
17378 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
17380 * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
17381 * lib/autoconf/functions.m4: here.
17382 * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
17383 (AH_CHECK_LIB): Move to...
17384 * lib/autoconf/libs: this new file.
17385 * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
17386 (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
17387 * lib/autoconf/libs.m4: here.
17388 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
17390 2001-08-22 Akim Demaille <akim@epita.fr>
17392 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
17393 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
17394 (AC_SITE_LOAD): Better logging of config.site.
17396 2001-08-20 Akim Demaille <akim@epita.fr>
17398 * configure.ac (AT_CONFIG): Fix the path.
17399 * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
17402 2001-08-20 Alexandre Duret-Lutz <duret_g@epita.fr>
17404 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
17405 program with AC_LANG_PROGRAM before feeding it to
17406 AC_COMPILE_IFELSE. Cleanup grep usage.
17408 2001-08-20 Akim Demaille <akim@epita.fr>
17410 * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
17411 * NEWS, README, README-alpha, TODO, tests/README: This package is
17412 `Autoconf', not `autoconf' (the executable).
17414 2001-08-20 Akim Demaille <akim@epita.fr>
17416 Info readers seem to need `Index' in the index node title :(
17418 * doc/autoconf.texi: Reverse the 2001-08-15 change which
17419 simplified index node names.
17421 2001-08-20 Akim Demaille <akim@epita.fr>
17423 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
17424 arguments are not literals.
17425 * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
17426 Specify the output variables, and macros defined.
17428 2001-08-20 Akim Demaille <akim@epita.fr>
17430 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
17431 (Examining Syntax) <AC_TRY_COMPILE>
17432 (Examining Libraries) <AC_TRY_LINK>
17433 (Test Programs) <AC_TRY_RUN>: These macros double quote some of
17435 Reported by Werner Lemberg.
17437 2001-08-20 Akim Demaille <akim@epita.fr>
17439 * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
17440 top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
17441 Load atlocal late enough to dump it in the log.
17442 * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
17444 2001-08-20 Akim Demaille <akim@epita.fr>
17446 * tests/torture.at (Configuring subdirectories): New test.
17447 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
17449 * m4/atconfig.m4: Be sure the let $[0] be expandable.
17450 (top_srcdir): Fix its computation.
17452 2001-08-20 Akim Demaille <akim@epita.fr>
17454 * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
17455 * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
17457 Create `atconfig' automagically.
17458 Configure atlocal.in if present.
17459 * tests/atconfig.in: Remove.
17460 * tests/atlocal.in: New.
17461 * tests/Makefile.am: Adjust.
17463 2001-08-20 Akim Demaille <akim@epita.fr>
17465 Huh!?!?! There are still some user EOF tags used, which prevents
17466 their use in AC_CONFIG_COMMANDS for instance...
17468 * lib/autoconf/general.m4, lib/autoconf/specific.m4,
17469 * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
17470 `_CSEOF', or `_ATEOF', as appropriate.
17471 * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
17472 * lib/autotest/Makefile.am (check-local): Enforce this constraint.
17474 2001-08-20 Akim Demaille <akim@epita.fr>
17476 * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
17477 * tests/semantics.at, tests/tools.at, tests/torture.at:
17478 s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
17480 2001-08-20 Akim Demaille <akim@epita.fr>
17482 Autotest invokes M4sh's initialization.
17484 * lib/autotest/general.m4: Adjust the diversion names.
17485 (AT_INIT): Run AS_INIT.
17486 Use the BINSH diversion to invoke /bin/sh.
17487 * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
17488 * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
17490 2001-08-20 Akim Demaille <akim@epita.fr>
17492 Let M4sh have its own diversions.
17494 * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
17495 (_m4_divert(NOTICE)): Rename as...
17496 * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
17497 (_m4_divert(HEADER-COMMENT)): these.
17498 (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
17499 (_m4_divert(NOTICE)): New, for Libtool.
17500 * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
17501 long ago with `_m4_divert(GROW)'.
17502 (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
17504 2001-08-20 Akim Demaille <akim@epita.fr>
17506 * tests/base.at, tests/compile.at, tests/foreign.at,
17507 * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
17508 * tests/semantics.at, tests/suite.at, tests/tools.at,
17509 * tests/torture.at: Ask Autotest mode, not Autoconf mode.
17511 2001-08-20 Akim Demaille <akim@epita.fr>
17513 * bin/autom4te.in (handle_output): Handle @__@.
17515 2001-08-20 Akim Demaille <akim@epita.fr>
17517 * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
17518 * lib/autotest/general.m4: Adjust the license.
17520 2001-08-17 Paul Eggert <eggert@twinsun.com>
17522 * doc/autoconf.texi (Function Portability): Mention snprintf,
17523 following up on a suggestion by Kevin Ryde.
17525 2001-08-17 Akim Demaille <akim@epita.fr>
17527 * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
17528 `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
17530 2001-08-17 Akim Demaille <akim@epita.fr>
17532 * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
17533 `$0.log' as for projects where testsuite is in src, we'd have
17534 testsuite.log created in src.
17536 2001-08-17 Akim Demaille <akim@epita.fr>
17538 * bin/autom4te.in (&parse_args): Recognize --normalize.
17540 2001-08-17 Akim Demaille <akim@epita.fr>
17542 Start implementing the AC_CHECK_HEADER transition scheme.
17544 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
17545 (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
17546 (AC_CHECK_HEADER): Use them.
17548 2001-08-17 Akim Demaille <akim@epita.fr>
17550 * doc/autoconf.texi: Work around Texinfo buglets.
17551 (Transformation Rules): One example is enough, users are expected
17552 to have their brains on. And BTW, use DESTDIR.
17553 (dvar): New macro. Use it.
17555 2001-08-17 Akim Demaille <akim@epita.fr>
17557 * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
17558 * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
17559 looking for ChangeLogs.
17561 2001-08-17 Akim Demaille <akim@epita.fr>
17563 * bin/autom4te.in: --normalize is a new option.
17564 * bin/autoconf.in: Use it.
17566 2001-08-17 Akim Demaille <akim@epita.fr>
17568 * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
17569 * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
17571 2001-08-16 Paul Eggert <eggert@twinsun.com>
17573 * doc/autoconf.texi, doc/install.texi: Put copyright notice at
17576 2001-08-15 Akim Demaille <akim@epita.fr>
17578 * doc/Makefile.am (fu): New index, can't use fn because of defmac.
17581 2001-08-15 Akim Demaille <akim@epita.fr>
17583 * doc/autoconf.texi (pr): New index.
17584 (prindex, findex): Use, merge, and output them.
17585 (Environment Variable Index, Output Variable Index)
17586 (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
17587 (Autotest Macro Index): Rename as...
17588 (Environment Variables, Output Variables,Preprocessor Symbols)
17589 (Autoconf Macros, M4 Macros, Autotest Macros): these.
17590 * doc/install.texi: Use @command.
17591 (Environment Variables): Rename as...
17592 (Defining Variables): this.
17594 2001-08-15 Akim Demaille <akim@epita.fr>
17596 * doc/autoconf.texi (Function Portability): sprintf's return
17600 2001-08-15 Akim Demaille <akim@epita.fr>
17602 * Makefile.maint (CVS): New.
17603 (local-check): Run changelog-check. last.
17604 (alpha): Don't depend upon local-check, since...
17605 (cvs-dist): depends upon it.
17607 2001-08-15 Tim Van Holder <tim.van.holder@pandora.be>
17609 * tests/Makefile.am: Use a clean-local rule to remove
17610 autom4te.cache (it's a directory, not a file.
17611 * Makefile.am: Ditto (but maintainer-clean-local).
17613 2001-08-15 Akim Demaille <akim@epita.fr>
17615 * bin/autom4te.in (@m4_warning): New.
17616 (&handle_m4): Use it.
17617 * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
17618 warnings are issued at each run.
17619 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
17620 is in the src tree.
17622 2001-08-15 Akim Demaille <akim@epita.fr>
17624 * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
17625 don't waste time running `autoupdate --version' works.
17626 * tests/tools.at (autoupdating AC_PREREQ): Likewise.
17628 2001-08-13 Akim Demaille <akim@epita.fr>
17630 * doc/autoconf.texi (ma): Rename this index as...
17633 2001-08-13 Akim Demaille <akim@epita.fr>
17635 * Makefile.am: Remove dead code and dead comments.
17636 (pdf, html): New targets.
17637 * doc/autoconf.texi (Using Autotest): New chapter.
17638 * doc/Makefile.am (pdf): New targets.
17639 (CLEANFILES): Adjust.
17641 2001-08-13 Akim Demaille <akim@epita.fr>
17643 * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
17644 duration of the test suite.
17646 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
17648 * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
17649 endianness for comparison instead of relying on AT_CHECK_ENV.
17651 2001-08-11 Paul Eggert <eggert@twinsun.com>
17653 * doc/autoconf.texi, doc/install.texi: Add a copyright notice
17654 to the INSTALL file.
17656 2001-08-11 Paul Eggert <eggert@twinsun.com>
17658 * NEWS: The autoconf manual now is distributed under the terms
17659 of the GNU Free Documentation License.
17661 * doc/autoconf.texi: Switch from old style copyright notice to FDL.
17662 Add an appendix "Copying This Manual" for the FDL.
17664 * doc/fdl.texi: New file, from
17665 <http://www.gnu.org/licenses/fdl.texi>.
17667 * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
17669 2001-08-10 Paul Eggert <eggert@twinsun.com>
17671 * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
17672 ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
17673 README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
17674 m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
17675 m4/sanity.m4, tests/README, tests/aclocal.m4,
17676 tests/atspecific.m4, tests/base.at, tests/compile.at,
17677 tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
17678 tests/semantics.at, tests/suite.at, tests/tools.at,
17679 tests/torture.at: Add copyright notice.
17681 * tests/mktests.sh: Update year in copyright notice.
17683 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
17685 * tests/semantics.at (AC_C_BIGENDIAN): New test.
17687 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
17689 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
17690 ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
17691 * doc/autoconf.texi (C Compiler Characteristics): Update
17692 documentation for AC_C_BIGENDIAN.
17694 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
17696 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
17697 magic values from an object file when cross-compiling.
17698 Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
17700 2001-08-10 Akim Demaille <akim@epita.fr>
17702 * bin/autom4te.in (&handle_output): Don't use `grep' with side
17704 Suggested by Russ Allbery.
17706 2001-08-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
17708 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
17709 current $prefix to the sub-configures.
17711 2001-08-09 Tim Van Holder <tim.van.holder@pandora.be>
17713 * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
17714 extension (needed on BeOS). Reported by Guido van Rossum.
17716 2001-08-09 Akim Demaille <akim@epita.fr>
17718 * bin/autom4te.in ($icache): Load it only if older than autom4te.
17720 2001-08-07 Akim Demaille <akim@epita.fr>
17722 * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
17724 (at-setup-line): Huh? Be a variable `at_setup_line', not a file.
17725 No need to remove the files before and after the each test, before
17726 each test and at the end of the suite is enough.
17727 Display only the children `times', not the shell's.
17728 If the test failed or was skipped, at-times is not available.
17730 2001-08-07 Akim Demaille <akim@epita.fr>
17732 Always produce testsuite.log, including when there are no
17733 failures. This helps getting information on skipped tests, and
17734 duration of the tests. Err, implement the latter btw.
17736 * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
17737 Dump information on the first run of each test.
17738 (AT_CLEANUP): Create `at-times' containing the duration of the
17741 2001-08-07 Akim Demaille <akim@epita.fr>
17743 The use of `dumpstat' revealed that `len' was used although it
17744 should not. m4_text_wrap was using it, but in the Autoconf world
17745 where it is legal. Hence (i) test M4sh in its own world, not
17746 Autoconf's, and (ii), ahem, fix the bug :)
17748 * lib/autotest/general.m4: Be sure the set good quotes, as tracing
17749 does not like `' instead of [].
17750 (AT_INIT): Forbid `^_?AT_'.
17751 And don't output such tokens.
17752 * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
17753 `script.as', and `autom4te.cache'.
17754 Remove `empty' and `macro' which are no longer used.
17755 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
17756 * tests/m4sugar.at: Use it.
17757 * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
17759 2001-08-07 Akim Demaille <akim@epita.fr>
17761 * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
17763 2001-08-07 Alexandre Duret-Lutz <duret_g@epita.fr>
17765 * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
17767 2001-08-04 Akim Demaille <akim@epita.fr>
17769 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
17770 (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
17772 * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
17773 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
17774 (AC_F77_MAIN): Likewise.
17776 2001-08-04 Akim Demaille <akim@epita.fr>
17778 Don't rely on M4sugar outputting the patterns in files, since we
17779 might process the output _without_ running m4, hence without these
17782 * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
17783 * bin/autom4te.in (@Request::includes): Remove, unused.
17784 (@Request::source): Rename as...
17785 (@Request::input): this.
17786 (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
17787 (&handle_output): Fetch the patterns from the traces.
17788 `$forbidden' and `$allowed' are constant: use m//o.
17789 (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
17790 (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
17792 2001-08-04 Akim Demaille <akim@epita.fr>
17794 `autoconf && autoheader' is sped up. Now, speed up `autoheader &&
17795 autoconf', i.e., in addition to caching traces, cache the output.
17797 * bin/autom4te.in (Request::cache): Rename as...
17798 (Request::id): this.
17799 ($cache, $icache, $tcache, $ocache): New.
17800 (&handle_m4): Save M4 output in the cache instead of $tmp.
17801 (&handle_output): Adjust.
17802 (&up_to_date_p): Check that the output cache is up to date too.
17803 (top level): Run `&handle_m4' iff force or the cache is invalid.
17804 Run `&handle_output' if the output cache is more recent.
17806 2001-08-04 Akim Demaille <akim@epita.fr>
17808 * bin/autom4te.in ($force): New.
17809 (&parse_args, &print_usage): -f, --force is a new option.
17810 (&handle_output): CPP directives might have spaces after `#'.
17811 (&parse_args): The first file only can be frozen.
17813 2001-08-04 Akim Demaille <akim@epita.fr>
17815 Don't let autom4te compute the `include' traces several times:
17816 first check that the trace cache file is up to date, and then
17817 compare its timestamp with that of the output.
17819 * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
17820 the preamble. Don't require 5.005 as Autom4te::General does it,
17821 and better yet (use `use', not `require'!).
17822 * lib/Autom4te/Struct.pm: Rename the last occurrences of
17823 Class::Struct as Autom4te::Struct.
17824 * lib/Autom4te/General.pm (File::stat): Use it.
17825 (&mtime): New, export it.
17826 * bin/autom4te.in: Use it.
17827 Declare `$req' is invalid if it is outdated.
17828 Don't declare it valid before saving it if something went wrong.
17830 2001-08-04 Akim Demaille <akim@epita.fr>
17832 Autom4te shall not encode Autoconf data, and preselecting traces
17833 must be proposed to the users.
17835 * bin/autom4te.in (@required_trace): Remove.
17837 (&parse_args, &print_usage): -p, --preselect is a new option.
17838 (&up_to_date_p): Adjust.
17839 * bin/autoconf.in: Preselect some Autoconf macros.
17841 2001-08-04 Akim Demaille <akim@epita.fr>
17843 * tests/tools.at (autoconf --trace: user macros): Check traces on
17844 macros invoked without arguments, and macros invoked with multiple
17847 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr>
17849 * bin/autom4te.in (handle_traces): Fix rewriting of traces without
17852 2001-08-03 Akim Demaille <akim@epita.fr>
17854 * bin/autoconf.in ($@): Work around the usual sh bug.
17857 2001-08-03 Akim Demaille <akim@epita.fr>
17859 Clean up the handling of the M4 builtins tracing exception.
17861 * bin/autom4te.in (Request::request): Don't complete M4 builtins
17863 (@m4_builtins): Rename as...
17864 (@m4_builtin): this.
17865 (%m4_builtin_alternate_name): New.
17866 (&parse_args): Complete the trace requests with alternate names.
17867 (&handle_traces): Hence no longer do it here.
17868 (&trace_requests): Remove, unused.
17870 2001-08-03 Akim Demaille <akim@epita.fr>
17872 * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
17873 m4_if, and m4_wrap.
17875 2001-08-03 Akim Demaille <akim@epita.fr>
17877 * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
17878 (m4_divert_pop): Dump the whole diversion stack when a diversion
17880 * bin/autom4te.in (&handle_output): Remember of the first
17881 occurrence of a possibly undefined macro, not the last.
17882 Complain about the possibly undefined macros in the same order as
17883 the appear in the output.
17884 * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
17885 * tests/tools.at (autoconf: forbidden tokens, basic)
17886 (autoconf: forbidden tokens, exceptions): No longer sort
17887 autoconf's stderr, as it is now deterministic.
17888 Check that `dnl' is caught.
17890 2001-08-01 Akim Demaille <akim@epita.fr>
17892 * configure.ac: Bump to 2.52c.
17894 2001-08-01 Akim Demaille <akim@epita.fr>
17898 * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
17900 2001-08-01 Akim Demaille <akim@epita.fr>
17904 2001-08-01 Akim Demaille <akim@epita.fr>
17906 * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
17909 * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
17910 `END', as `Autom4te::General::END' will be triggered.
17911 * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
17912 * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
17913 system to run `mv', `rm', and `cmp'.
17915 2001-08-01 Akim Demaille <akim@epita.fr>
17917 * lib/Autom4te/General.pm (&unique): New.
17918 * bin/autoscan.in (&output): Use it to issue trace requests once.
17920 2001-08-01 Akim Demaille <akim@epita.fr>
17922 * lib/Autom4te/General.pm: New.
17923 * bin/autom4te.in (Autom4te::General): Use it.
17924 ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
17925 (&find_configure_ac, &find_slave): Remove.
17926 * bin/autoscan.in: Likewise.
17927 * bin/autoupdate.in: Likewise.
17929 2001-08-01 Akim Demaille <akim@epita.fr>
17931 * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
17932 * autoheader.in, autoreconf.in, autoupdate.in: Move to...
17933 * bin: here, new directory.
17934 * lib/Autoconf: Rename as...
17935 * lib/Autom4te: this, to please case insensitive junkie OSes.
17937 2001-08-01 Akim Demaille <akim@epita.fr>
17939 * autom4te.in ($m4): Handle the --nesting-limit.
17940 * autoconf.in (M4): Remove.
17942 2001-08-01 Akim Demaille <akim@epita.fr>
17944 * autoconf.in ($AWK): Remove, no longer used.
17945 * test/tools.at: Use AT_CHECK_AUTOCONF.
17946 (AWK portability): Remove, for autoconf no longer uses AWK.
17947 (Syntax of the Perl scripts): New.
17948 * configure.ac: autoconf no longer needs an AWK with a good
17950 Use a static test on AC_PACKAGE_VERSION.
17951 * autom4te.in (&up_to_date_p): Output depends on the arguments.
17952 * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
17953 * tests/atconfig.in (PERL): New.
17955 2001-08-01 Akim Demaille <akim@epita.fr>
17957 * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
17958 (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
17959 (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
17960 (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
17961 (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
17962 (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
17963 (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
17964 (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
17965 (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
17966 (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
17967 (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
17968 (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
17969 (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
17970 * lib/autoconf/c.m4: here, new file.
17972 * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
17973 (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
17974 (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
17975 (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
17976 (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
17977 (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
17978 (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
17979 (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
17980 (AC_F77_FUNC): Move to...
17981 * lib/autoconf/fortran.m4: here, new file.
17983 2001-08-01 Akim Demaille <akim@epita.fr>
17985 * acfunctions.m4: Rename as...
17986 * lib/autoconf/functions.m4: this.
17987 * acgeneral.m4: Rename as...
17988 * lib/autoconf/general.m4: this.
17989 * acheaders.m4: Rename as...
17990 * lib/autoconf/headers.m4: this.
17991 * aclang.m4: Rename as...
17992 * lib/autoconf/lang.m4: this.
17993 * acoldnames.m4: Rename as...
17994 * lib/autoconf/oldnames.m4: this.
17995 * acspecific.m4: Rename as...
17996 * lib/autoconf/specific.m4: this.
17997 * actypes.m4: Rename as...
17998 * lib/autoconf/types.m4: this.
17999 * autoconf.m4: Rename as...
18000 * lib/autoconf/autoconf.m4: this.
18002 * m4sugar.m4: Rename as...
18003 * lib/m4sugar/m4sugar.m4: this.
18004 * m4sh.m4: Rename as...
18005 * lib/m4sugar/m4sh.m4: this.
18007 * tests/atgeneral.m4: Rename as...
18008 * lib/autotest/general.m4: this.
18010 * acfunctions: Rename as...
18011 * lib/autoscan/functions: this.
18012 * acheaders: Rename as...
18013 * lib/autoscan/headers: this.
18014 * acidentifiers: Rename as...
18015 * lib/autoscan/identifiers: this.
18016 * aclibraries: Rename as...
18017 * lib/autoscan/libraries: this.
18018 * acmakevars: Rename as...
18019 * lib/autoscan/makevars: this.
18020 * acprograms: Rename as...
18021 * lib/autoscan/programs: this.
18023 2001-08-01 Akim Demaille <akim@epita.fr>
18025 * doc/autoconf.texi: Moving/deleting open files is not portable.
18026 Portability issues for `.' (source), and more information about sed.
18028 2001-07-25 Steven G. Johnson <stevenj@alum.mit.edu>
18030 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
18031 which has a special meaning and is not a reference to libibmil.a.
18032 Reported by Matteo Frigo.
18034 2001-07-25 Pavel Roskin <proski@gnu.org>
18036 * autom4te.in (mktmpdir): Strip trailing newline from mktemp
18039 2001-07-25 Akim Demaille <akim@epita.fr>
18041 * autoconf.in: Try to define the variables before using them.
18042 * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
18043 instead of `$perllibdir'.
18044 * tests/atconfig.in ($autom4te_perllibdir): Export it.
18046 2001-07-25 Akim Demaille <akim@epita.fr>
18048 * autoconf.in (ac_LF_and_DOT): Remove, unused.
18050 2001-07-24 Akim Demaille <akim@epita.fr>
18052 Let autoconf use autom4te for traces.
18054 * autoconf.in ($task, task trace): Remove, merely pass --trace to
18056 * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
18057 (Because I found no way for autom4te to accept `-').
18058 * autom4te.in (&Request::request): Beware of M4 builtins.
18059 (END): Don't try to remove the content of an empty dir.
18060 (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
18061 (&handle_output): Set a default value to `$forbidden'.
18062 * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
18063 ($autoconf): Pass --debug and --verbose.
18064 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
18067 2001-07-24 Akim Demaille <akim@epita.fr>
18069 Let autoconf use autom4te to create configure.
18071 * autoconf.in ($automate): New var.
18072 (task script): Use autom4te.
18073 * autom4te.in (File::Spec): Use it.
18075 (&parse_args): --warning is -W, not -w.
18076 Find the top level files.
18077 (&handle_m4): Pass the warnings flags.
18078 Don't report verbosely m4's failures, unless requested.
18079 (&handle_output): Don't complain for forbidden tokens in comments.
18080 Be sure to report all the forbidden tokens within a single line.
18081 (&trace_format_to_m4): Preserve `$_'.
18082 (&handle_traces): Sort the output macros.
18083 (&up_to_date_p): Find the files before trying to get its time stamp.
18085 2001-07-24 Akim Demaille <akim@epita.fr>
18087 * Makefile.am: Ship, build and install Autom4te.
18088 (SUBDIRS): Add lib.
18089 * lib/Autoconf/Struct.pm: New, from Automake 1.5.
18090 * configure.in: Require Perl.
18091 * man/autom4te.in: New.
18093 2001-07-19 Paul Eggert <eggert@twinsun.com>
18095 * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
18096 example, rather than (exit 1); exit (which isn't portable).
18098 2001-07-18 Akim Demaille <akim@epita.fr>
18102 2001-07-18 Akim Demaille <akim@epita.fr>
18104 The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
18105 was run, while they are needed also when it is expanded.
18106 Reported by Nicolas Joly.
18108 * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
18109 (AC_LANG_PROGRAM(C)): Use it instead of depending upon
18110 AC_F77_DUMMY_MAIN being expanded.
18112 2001-07-18 Akim Demaille <akim@epita.fr>
18114 * configure.in: Bump to 2.51a.
18116 2001-07-17 Akim Demaille <akim@epita.fr>
18120 2001-07-17 Akim Demaille <akim@epita.fr>
18122 * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
18123 Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
18125 2001-07-17 Akim Demaille <akim@epita.fr>
18127 The runtime test for AC_FUNC_GETPGRP fails when prototypes are
18128 used. Well, then use the prototypes when you can, and runtime as
18130 Reported by Artur Frysiak
18132 * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
18133 (AC_FUNC_GETPGRP): Use it.
18134 First try to compile with 0-ary or 1-ary calls.
18136 2001-07-17 Akim Demaille <akim@epita.fr>
18138 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
18142 2001-07-17 Akim Demaille <akim@epita.fr>
18144 * Makefile.maint: Sync. with cppi 1.10.
18146 2001-07-17 Akim Demaille <akim@epita.fr>
18148 * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
18149 AC_F77_DUMMY_MAIN has been run.
18150 From Pavel Roskin and Steven G. Johnson.
18152 2001-07-17 Akim Demaille <akim@epita.fr>
18154 * configure.in: Rename as...
18155 * configure.ac: this.
18157 2001-07-17 Akim Demaille <akim@epita.fr>
18159 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
18162 * Makefile.maint (release-archive-dir): Rename as...
18163 (release_archive_dir): this, so that it can be specialized in
18166 2001-07-14 Akim Demaille <akim@epita.fr>
18168 * configure.in: Bump to 2.50d.
18170 2001-07-14 Akim Demaille <akim@epita.fr>
18173 * Makefile.maint (alpha): Typo.
18175 2001-07-14 Akim Demaille <akim@epita.fr>
18177 * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
18179 2001-07-14 Akim Demaille <akim@epita.fr>
18181 * config/config.guess, config/config.sub, config/texinfo.tex
18182 * doc/standards.texi, doc/make-stds.texi: Update.
18184 2001-07-14 Akim Demaille <akim@epita.fr>
18186 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
18188 2001-07-14 Akim Demaille <akim@epita.fr>
18190 * Makefile.maint (maintainer-check): Rename as...
18191 (maintainer-distcheck): this.
18192 (changelog-check, static-check): New.
18195 2001-07-14 Kevin Ryde <user42@zip.com.au>
18197 * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
18198 for CXX is g++, not gcc.
18200 2001-07-14 Akim Demaille <akim@epita.fr>
18202 * doc/autoconf.texi (Files): New subsection.
18204 2001-07-14 Akim Demaille <akim@epita.fr>
18206 * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
18208 (Generic Compiler Characteristics): this.
18209 (C++ Compiler): New subsection.
18211 2001-07-14 Akim Demaille <akim@epita.fr>
18213 * autoscan.in: Use IO::File.
18214 Adjust all the routines to use it.
18215 ($log): New file (autoscan.log).
18216 (output): Dump detailed logs into $log, and a shortened version to
18218 (&scan_makefile): Refine the regexp catching tokens in the code.
18219 * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
18220 and the `configure.ac' checking feature.
18222 2001-07-12 Akim Demaille <akim@epita.fr>
18224 For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
18225 Reported by Michael Elizabeth Chastain.
18227 * autoconf.in: Refuse such AWK.
18228 * configure.in: Likewise.
18229 * Makefile.am (acversion.m4): Do not use move-if-change this file
18231 * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
18233 2001-07-10 Jens Petersen <petersen@redhat.com>
18235 * autoscan.in (&scan_makefile): Improve programs regexp to parse
18236 things like "g++", "file.c" and "some-conf" as tokens.
18237 (&scan_file): Match C++ files extensions.
18238 If the filename extension is C++ then ask for c++.
18240 2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
18242 * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
18243 AC_TRY_LINK_FUNC, to check whether defining a dummy
18244 main-like routine is needed for linking with F77 libs.
18246 2001-07-05 Pavel Roskin <proski@gnu.org>
18248 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
18250 (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
18253 2001-07-05 Akim Demaille <akim@epita.fr>
18255 * Makefile.am (move_if_change): New. Use it instead of `mv'.
18256 (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
18258 Reported by Nicolas Joly.
18260 2001-07-04 Akim Demaille <akim@epita.fr>
18262 * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
18264 * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
18265 warnings from compilers.
18266 * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
18267 for all the compilers, not only GNU. Hence move from here...
18268 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
18270 2001-07-04 Akim Demaille <akim@epita.fr>
18272 * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
18273 (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
18276 2001-07-04 Akim Demaille <akim@epita.fr>
18278 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
18279 the ``strings.h'' change claimed below.
18281 2001-07-04 Akim Demaille <akim@epita.fr>
18283 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
18285 2001-07-04 Akim Demaille <akim@epita.fr>
18287 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18288 strings.h if usable with string.h.
18289 Suggested by Paul Eggert.
18291 2001-07-04 Akim Demaille <akim@epita.fr>
18293 * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
18294 From Jens Petersen.
18296 2001-07-03 Akim Demaille <akim@epita.fr>
18298 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
18301 2001-07-03 Akim Demaille <akim@epita.fr>
18303 * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
18304 compiler, not the preprocessor.
18305 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
18306 dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
18308 * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
18309 earlier if there are.
18311 2001-07-03 Akim Demaille <akim@epita.fr>
18313 * autoscan.in ($initfile): Remove.
18314 (&find_file): Rename as...
18315 (&scan_file): this.
18316 Immediately scan the current file, instead of gathering them, and
18317 later having them handled by &scan_files.
18318 (&scan_files): Merely invoke Find::File.
18321 2001-07-02 Akim Demaille <akim@epita.fr>
18323 * autoscan.in: Formatting changes, matching the invocation order.
18324 (File::Find): Use it instead of Perl 4's `find.pl'.
18325 (&wanted): Rename as...
18326 (&find_file): this.
18328 2001-07-01 Pavel Roskin <proski@gnu.org>
18330 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
18331 break in the argument to AC_TRY_LINK_FUNC.
18332 (AC_F77_MAIN): Remove conftest* after using break in the
18333 argument to AC_TRY_LINK.
18335 2001-07-01 Steven G. Johnson <stevenj@alum.mit.edu>
18337 Add alternate 'main' routine detection for linking C/C++ with Fortran,
18338 fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
18340 * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
18341 dummy alternate main is required even if the user provides her own
18343 (AC_F77_MAIN): New macro to detect whether it is possible to
18344 provide an alternate 'main' function name, using the 'main' from
18345 the Fortran libraries.
18346 (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
18347 cross-language link tests can be performed successfully.
18348 (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN. Also put $FLIBS
18349 after $LIBS, for consistency; this should be the general rule since
18350 the user may want to link to Fortran libraries that require $FLIBS.
18351 * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
18353 2001-06-29 Pavel Roskin <proski@gnu.org>
18355 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
18356 at-stdout and at-stderr instead of removing the newline
18357 from the echo output, which is not guaranteed to work.
18359 2001-06-28 Jens Petersen <petersen@redhat.com>
18361 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
18362 confdefs.h when non-zero.
18364 2001-06-28 Akim Demaille <akim@epita.fr>
18366 * configure.in: Bump to 2.50c.
18368 2001-06-26 Akim Demaille <akim@epita.fr>
18372 2001-06-26 Akim Demaille <akim@epita.fr>
18376 2001-06-25 Pavel Roskin <proski@gnu.org>
18378 * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
18379 argument, AUTOCONF-FLAGS.
18380 * tests/mktests.sh (update_exclude_list): Add
18381 AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
18382 * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
18383 AC_FUNC_WAIT3 with "-W no-obsolete".
18385 2001-06-25 Akim Demaille <akim@epita.fr>
18387 * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
18389 2001-06-25 Akim Demaille <akim@epita.fr>
18391 * autoscan.in (%macro): Now maps from word to list of macros.
18392 (&init_tables): Die when a word which is already handled by
18393 explicit macros is mapped to the default macro.
18394 (&print_unique): Remove, inlined in...
18395 (&output_kind): here.
18396 (File::Basename): Use it.
18397 (&output): Sort the CONFIG_FILES.
18398 * acheaders: Normalize.
18399 * acfunctions: Likewise.
18401 2001-06-25 Akim Demaille <akim@epita.fr>
18403 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
18404 characteristics in the logs.
18405 Suggested by Mo DeJong.
18407 2001-06-24 Akim Demaille <akim@epita.fr>
18409 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
18410 (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
18411 * doc/autoconf.texi (Autoconf 2.13): New section.
18413 2001-06-24 Akim Demaille <akim@epita.fr>
18415 * autoconf.in (Task traces): Separate the error messages from the
18416 traces to improve robustness.
18418 2001-06-23 Akim Demaille <akim@epita.fr>
18420 * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
18421 three as failures are unlikely, and speed matters.
18423 2001-06-23 Akim Demaille <akim@epita.fr>
18425 * doc/autoconf.texi (Redefined M4 Macros): New.
18427 2001-06-23 Akim Demaille <akim@epita.fr>
18429 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
18430 inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
18433 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
18435 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
18436 config.status targets to after the evaluation of the INIT-CMDS.
18437 Double quote config.status targets (used to be single quoted).
18439 2001-06-23 Akim Demaille <akim@epita.fr>
18441 * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
18442 Check the content of the created file.
18443 Check the ./config.status command line invocation.
18445 2001-06-23 Akim Demaille <akim@epita.fr>
18447 * tests/foreign.at (Libtool): Reject prehistoric versions.
18449 2001-06-23 Akim Demaille <akim@epita.fr>
18451 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
18452 preexisting files matching a.*.
18454 2001-06-23 Akim Demaille <akim@epita.fr>
18456 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
18458 * doc/autoconf.texi (AC_ARG_VAR): Update.
18460 2001-06-21 Akim Demaille <akim@epita.fr>
18462 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
18463 precious variables have changed.
18464 * tests/torture.at (AC_ARG_VAR): Adjust.
18466 2001-06-21 Akim Demaille <akim@epita.fr>
18468 ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
18469 but some sed choke on multiple `;', and other tools (e.g.,
18470 Automake), include the separator themselves.
18472 * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
18474 2001-06-19 Tim Van Holder <tim.van.holder@pandora.be>
18476 * doc/autoconf.texi (Functions Portability): Rename as...
18477 (Function Portability): this.
18478 (Function Portability): Document potential problems with unlink().
18480 2001-06-19 Paul Eggert <eggert@twinsun.com>
18482 * NEWS, doc/autoconf.texi: Document quadrigraphs.
18484 2001-06-18 Akim Demaille <akim@epita.fr>
18486 * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
18488 2001-06-18 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>
18490 * acfunctions.m4: (AC_FUNC_VFORK) rename as...
18491 (_AC_FUNC_VFORK): this.
18492 Remove AC_DEFINEs and don't guess cross-compilation values.
18493 (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
18494 (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
18495 define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
18496 vfork doesn't work.
18497 Guess values if cross-compiling, but warn.
18498 * acfunctions: Add AC_FUNC_FORK.
18499 * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
18500 and vfork appropriately.
18502 2001-06-18 Akim Demaille <akim@epita.fr>
18504 * doc/autoconf.texi (Functions Portability): New section.
18506 2001-06-18 Akim Demaille <akim@epita.fr>
18508 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
18510 Suggested by Andreas Schwab.
18512 2001-06-18 Akim Demaille <akim@epita.fr>
18514 * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
18515 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
18516 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
18517 (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
18518 Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
18519 and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
18520 (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
18523 2001-06-18 Akim Demaille <akim@epita.fr>
18525 * doc/autoconf.texi (ms): New index.
18526 (Macro Index): Rename as...
18527 (Autoconf Macro Index): this.
18528 (M4 Macro Index): New appendix.
18529 (Programming in M4): New chapter.
18530 Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
18531 (Quoting): Rename as...
18532 (M$ Quotation): this.
18533 Be part of `Programming in M4).
18535 2001-06-18 Nicolas Joly <njoly@pasteur.fr>
18537 * tests/torture.at (AC_ARG_VAR): Set variables and export them
18538 in separate statements for compatibility with Tru64 v5.1.
18540 2001-06-17 Akim Demaille <akim@epita.fr>
18542 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
18543 current values of the precious variables, not the previously
18545 Pass precious variables which are set to config.status.
18546 * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
18547 * tests/torture.at (AC_ARG_VAR): New.
18549 2001-06-15 Paul Eggert <eggert@twinsun.com>
18551 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
18552 AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
18553 and explain why and how to replace them.
18554 * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
18555 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
18557 2001-06-15 Akim Demaille <akim@epita.fr>
18559 `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
18560 Reported by Bruno Haible.
18562 * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
18563 (_AC_ARG_VAR_PRECIOUS): to here.
18565 2001-06-15 Pavel Roskin <proski@gnu.org>
18567 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
18568 an unused pointer use cast to this type and `if' statement to
18569 avoid warnings from the compiler.
18570 (AC_HEADER_TIME): Likewise.
18571 * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
18572 in `if' statement to avoid warnings from the compiler. Declare
18573 ac_aggr static to avoid the need to initialize it.
18575 2001-06-14 Akim Demaille <akim@epita.fr>
18577 * doc/autoconf.texi (Portable Shell): Move to follow `Writing
18580 2001-06-13 Akim Demaille <akim@epita.fr>
18582 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
18583 Suggested by Alexander Mai.
18585 2001-06-13 Akim Demaille <akim@epita.fr>
18587 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
18588 sys/types.h and sys/stat.h, and check for them.
18590 2001-06-13 Akim Demaille <akim@epita.fr>
18592 * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
18595 2001-06-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
18597 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
18598 succeeds and only try adding libdnet upon a failure.
18600 2001-06-12 Akim Demaille <akim@epita.fr>
18602 * autoscan.in (&output_kind): Output the comment only if it exists.
18603 (%kind_comment): Add entry for `programs'.
18604 (&output_programs): Use &output_kind.
18605 (&output_functions, &output_identifiers, &output_headers)
18606 (&output_programs): Inline, and remove.
18608 2001-06-12 Akim Demaille <akim@epita.fr>
18610 * autoscan.in (%kind_comment): New.
18611 (output_kind): New.
18612 (output_functions, output_identifiers, output_headers): Use it.
18614 2001-06-12 Akim Demaille <akim@epita.fr>
18616 * autoscan.in (&print_unique): Take `$kind' and `$word' as
18617 arguments, to factor indirections into `%macro' and `%used'.
18618 (%generic_macro): Fix a typo.
18620 2001-06-12 Akim Demaille <akim@epita.fr>
18622 * aclibraries: New.
18623 * autoscan.in (@kinds): Add `libraries'.
18624 Use `@kinds' instead of hard coded lists.
18625 (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
18626 Remove, replaced by...
18629 2001-06-12 Akim Demaille <akim@epita.fr>
18631 * autoscan.in (%functions_macros %headers_macros)
18632 (%identifiers_macros %programs_macros %makevars_macros): Remove,
18636 2001-06-11 Raja R Harinath <harinath@cs.umn.edu>
18638 * aclang.m4 (AC_NO_EXECUTABLES): Override
18639 _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
18641 2001-06-11 Akim Demaille <akim@epita.fr>
18643 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
18645 Reported by Andreas Schwab.
18647 2001-06-11 Akim Demaille <akim@epita.fr>
18649 * Makefile.am, Makefile.maint: Typos.
18651 2001-06-09 Akim Demaille <akim@epita.fr>
18653 * doc/autoconf.texi (Here-Documents): New section, gathering
18654 documentation about here-documents.
18655 Use `href', not `uref', and other changes.
18657 2001-06-09 Akim Demaille <akim@epita.fr>
18659 * doc/autoconf.texi (Portable Shell Programming): Promoted as a
18662 2001-06-09 Akim Demaille <akim@epita.fr>
18664 * doc/autoconf.texi (Limitations of Builtins): Complete the
18665 description of the here-docs penalties with Alexandre Oliva's
18668 2001-06-01 Paul Eggert <eggert@twinsun.com>
18670 * doc/autoconf.texi: Talk about here documents and speedups.
18671 Do not use "echo" on arbitrary strings.
18672 Spell "here-documents" consistently with the standard.
18674 2001-06-09 Akim Demaille <akim@epita.fr>
18676 * doc/autoconf.texi (Concept Index): Introduce it.
18677 Regenerate the menus.
18679 2001-06-09 Akim Demaille <akim@epita.fr>
18681 * Makefile.maint, GNUmakefile: New, from Jim Meyering.
18682 * config/prev-version.txt: New.
18683 * config/move-if-change: New, for GNU libc.
18685 2001-06-06 Pavel Roskin <proski@gnu.org>
18687 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
18689 2001-06-06 Akim Demaille <akim@epita.fr>
18691 * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
18692 properly when $1 is not a literal.
18693 Fixes PR Autoconf/187, reported by Bram Moolenaar.
18695 2001-06-06 Akim Demaille <akim@epita.fr>
18697 Invoking AC_COPYRIGHT before AC_INIT fails.
18699 * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
18700 * acgeneral.m4 (_m4_divert(VERSION_FSF))
18701 (_m4_divert(VERSION_USER)): New.
18702 (AC_COPYRIGHT): $2 is the diversion to use.
18703 (_AC_INIT_COPYRIGHT): Use the FSF diversion.
18704 (AC_INIT): Remove dead comments as now it's commutative.
18706 2001-06-06 Akim Demaille <akim@epita.fr>
18708 * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
18711 2001-06-05 Akim Demaille <akim@epita.fr>
18713 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
18715 `*dir' variables cannot be NONE.
18716 Reported by Mark Kettenis.
18718 2001-06-05 Paul Eggert <eggert@twinsun.com>
18720 * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
18722 2001-06-04 Akim Demaille <akim@epita.fr>
18724 * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
18725 (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
18726 (AC_TR_SH): Move as...
18727 * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
18728 (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
18730 (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
18731 (_AS_TR_SH_PREPARE): New.
18732 (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
18733 * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
18735 2001-06-02 Akim Demaille <akim@epita.fr>
18737 * Makefile.am (.m4.m4f): Pass the options first.
18738 Fixes PR autoconf/182.
18740 2001-06-02 Nathan Sidwell <nathan@codesourcery.com>
18742 GNU getopt, when POSIXLY_CORRECT does not permute options and
18743 arguments. So pass the options first.
18744 Fixes PR autoconf/184.
18746 * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
18747 (run_m4): Remove files.
18749 Update remainder of script to use them.
18750 (for warning in): Do not use a literal comma as it will not be
18753 2001-06-02 Christian Marquardt <marq@gfz-potsdam.de>
18755 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
18756 Fortran compilers to check.
18757 (_AC_PROG_F77_V): Add '-###' as a possible option to print
18758 information on library and object files.
18759 (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
18762 2001-06-02 Akim Demaille <akim@epita.fr>
18764 * autom4te.in (Request::@request): Declare with `vars', not `my',
18765 as it prevents updates via `do FILENAME'.
18767 2001-06-02 Akim Demaille <akim@epita.fr>
18769 * configure.in (standards_texi): Remove, dead code.
18771 2001-06-02 Akim Demaille <akim@epita.fr>
18773 * autom4te.in: New.
18775 2001-06-02 Pavel Roskin <proski@gnu.org>
18777 * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
18778 for signals other than 0 - exit with code 1.
18779 * m4sh.m4 (AS_TMPDIR): Likewise.
18780 * autoconf.in: Likewise. Also don't rely on exit == exit $?.
18781 * autoheader.in: Likewise.
18782 * autoreconf.in: Likewise.
18783 * tests/torture.at (Signal handling): New test for the above.
18785 2001-06-01 Akim Demaille <akim@epita.fr>
18787 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
18790 2001-05-31 Akim Demaille <akim@epita.fr>
18792 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
18793 Add copyright and comments.
18794 * acheaders: Add stdint.h.
18795 Suggested by Paul Eggert.
18797 2001-05-31 Akim Demaille <akim@epita.fr>
18799 * atgeneral.m4 (AT_INIT): Use $SHELL.
18800 * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
18802 2001-05-31 Akim Demaille <akim@epita.fr>
18804 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
18806 From Paul Eggert and Lars Hecking.
18808 2001-05-31 Akim Demaille <akim@epita.fr>
18810 * tests/base.at: Adjust line numbers in error messages.
18812 2001-05-31 Akim Demaille <akim@epita.fr>
18814 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
18815 to emit the bangshe line.
18816 Reported by David Carter.
18818 2001-05-30 Steven G. Johnson <stevenj@alum.mit.edu>
18820 * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
18821 Fortran (95) compilers to check.
18823 2001-05-29 Alexandre Duret-Lutz <duret_g@epita.fr>
18825 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
18828 2001-05-23 Pavel Roskin <proski@gnu.org>
18830 * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
18831 _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
18832 (AC_PROG_CXXCPP): Likewise.
18834 2001-05-22 Akim Demaille <akim@epita.fr>
18836 * config: New directory.
18837 * configure.in: AC_CONFIG_AUX_DIR it.
18838 * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
18840 2001-05-22 Akim Demaille <akim@epita.fr>
18842 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
18843 * autoupdate.in: Specify the Emacs mode.
18844 * acversion.m4.in: Rename as...
18845 * acversion.m4: this.
18846 * tests/Makefile.am (CLEANFILES): More garbage.
18848 2001-05-22 Akim Demaille <akim@epita.fr>
18850 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
18852 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
18855 2001-05-21 Akim Demaille <akim@epita.fr>
18857 * configure.in: Bump to 2.50a.
18866 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
18867 Free Software Foundation, Inc.
18869 Copying and distribution of this file, with or without
18870 modification, are permitted provided the copyright notice and this
18871 notice are preserved.