1 2010-06-22 Bruno Haible <bruno@clisp.org>
3 Document how to use literal newlines in makefile rules.
4 * doc/autoconf.texi (Newlines in Make Rules): New section.
6 Document how to write comments in makefile rules.
7 * doc/autoconf.texi (Comments in Make Rules): Mention a workaround
10 2010-06-22 Ben Pfaff <blp@cs.stanford.edu>
12 Document how to propogate variables to submakes.
13 * doc/autoconf.texi: Describe technique used by Automake to
14 propagate variables to submakes in more detail.
16 2010-06-22 Peter Johansson <trojkan@gmail.com> (tiny change)
18 Be consistent in doc example.
19 * doc/autoconf.texi: (Polymorphic Variables) be consistent in code
22 2010-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 Add comments for vim syntax highlighting.
25 * doc/autoconf.texi: Restore font-lock in some examples using
28 Formatting cleanups for optional arguments.
29 * doc/autoconf.texi (Configuration Actions, Help Formatting)
30 (External Software): Use @r{} for brackets denoting optional
31 arguments, where @ovar is not safe to use.
33 Clarify nested double-quotes and backquotes shell issues.
34 * doc/autoconf.texi (Shellology): New anchor for pdksh.
35 (Shell Substitutions): Link to it for escaped double-quotes
36 within double-quoted backquotes; add ksh example for unescaped
37 inner double-quotes problem.
39 Mention Tru64 5.1 fgrep limitation with emtpy patterns.
40 * doc/autoconf.texi (Limitations of Usual Tools): Update.
42 Overhaul the manual, esp. the Autotest chapter.
43 * doc/autoconf.texi (Installation Directory Variables):
44 Replace some uses of @var with @code.
45 (Special Shell Variables): Fix misordered paragraph about IFS.
46 (Writing Testsuites): Include paragraph following AT_TESTED in
48 (testsuite Invocation): Failed tests are not rerun.
49 (testsuite Scripts, Autotest Logs, testsuite Invocation)
50 (Making testsuite Scripts): Minor edits for consistency and
53 2010-06-18 Bruno Haible <bruno@clisp.org>
55 Document sed -e limitation.
56 * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
57 problem of sed -e option with script fragments.
59 2010-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61 Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
62 * lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
63 hyphens to underscores when turning option names to variables.
64 Avoid macro name concatenation garbage with trailing `dnl'.
65 (AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
66 The OPTIONS are space-separated, not comma-separated. The
67 negative form of AT_ARG_OPTION is prefixed with `--no-'.
68 * tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
71 * doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
72 and AT_ARG_OPTION_ARG.
73 (testsuite Invocation): Call the thingies passed to the
74 testsuite options, not arguments. Note that the testsuite
75 author may add further package-specific options.
77 Autotest: enable colored test results.
78 * lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
79 (HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
81 --color and --color=never|auto|always. If desired, colorize
82 test results and testsuite summary on standard output.
83 [HELP_TUNING]: Divert content instead to ...
84 [HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
85 end, when we know whether AT_COLOR_TESTS has been specified.
86 (AT_COLOR_TESTS): New macro, set the default for color to auto.
87 * doc/autoconf.texi (Writing Testsuites): Document it.
88 (testsuite Invocation): Document --color* options.
89 * tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
90 * tests/autotest.at (color test results): New test, mirroring
91 color.test from Automake.
94 2010-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96 Avoid texinfo bug with backslashes in macro arguments.
97 * doc/autoconf.texi (Text processing Macros)
98 (Common Shell Constructs): Do not use @dvar with backslashes.
100 2010-06-14 Eric Blake <eblake@redhat.com>
102 Make CONFIG_SITE handling more robust.
103 * lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
104 search, and check for failure to load.
105 * tests/base.at (AC_CACHE_CHECK): Enhance test.
106 * doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
107 works best as an absolute path.
108 * NEWS: Document the semantic change.
110 2010-03-13 Bruno Haible <bruno@clisp.org>
111 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113 Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
114 * doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
115 accepts packages with a + sign in it.
116 (Package Options): Likewise for AC_ARG_ENABLE.
117 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
118 * tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
121 2010-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
123 Autotest: simplify logic to compute test group result.
124 * lib/autotest/general.m4 (AT_INIT): Compactify result
127 New Autotest testsuite option --recheck.
128 * lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
129 Escape hyphen in $at_dir early. Accept command line switch
130 --recheck. Set $at_suite_log early, based on --directory
131 switch; with --recheck, include the list of FAILed and XPASSed
132 tests from old testsuite.log file in $at_groups. Document
133 --recheck in --help output.
134 * tests/autotest.at (recheck): New test.
135 * doc/autoconf.texi (testsuite Invocation): Document --recheck.
138 2010-06-14 Karl Berry <karl@freefriends.org> (tiny change)
140 Clarify comment about old system.
141 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
142 and note that bug has long since been fixed.
144 2010-06-08 Eric Blake <eblake@redhat.com>
146 Run libtool test with modern libtool.
147 * tests/foreign.at (Libtool): Request that libtoolize install
148 auxiliary files. Assume libtool 2.x is modern.
150 2010-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
152 Coverage and doc fixes for AC_LANG_SOURCE and AC_LANG_PROGRAM.
153 * tests/compile.at (AC_LANG_SOURCE, AC_LANG_SOURCE(C++))
154 (AC_LANG_SOURCE example, AC_LANG_PROGRAM example): New tests.
155 * doc/autoconf.texi (Generating Sources): Add markers for tested
156 examples; update quoting, and update AC_INIT usage to also set
157 optional URL arguments. Mention that the examples require gcc.
158 Prompted by report from Brian J. Murrell.
160 Make AS_SET_CATFILE polymorphic, and add testsuite coverage.
161 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Use AS_VAR_SET to set
163 * tests/m4sh.at (AS@&t@_SET_CATFILE): New test.
164 * doc/autoconf.texi (Common Shell Constructs): Document that
165 AS_SET_CATFILE is polymorphic in its VAR argument now.
168 Testsuite coverage for AC_COPYRIGHT and AT_COPYRIGHT.
169 * tests/autotest.at (AT@&t@_COPYRIGHT): New test.
170 * tests/base.at (AC@&t@_COPYRIGHT): Likewise.
172 Testsuite coverage for __file__ and __line__.
173 * tests/m4sugar.at (__file__ and __line__): New test.
175 Testsuite coverage for AC_CACHE_VAL and caching semantics.
176 * tests/base.at (AC_CACHE_CHECK): Extend test.
177 (AC_CACHE_LOAD): New test.
178 * tests/torture.at (Configuring subdirectories): Also test
179 --config-cache with AC_CONFIG_SUBDIRS.
180 * doc/autoconf.texi (Caching Results): Annotate code snippets
181 which are tested in the test suite.
182 (Cache Files): Documented cache variables may be used on the
183 configure command line to override individual entries in the
186 Clarify OpenBSD sh errexit issue with compound commands.
187 * doc/autoconf.texi (Limitations of Builtins): Only the last
188 command in a compound list is problematic.
189 Tested on OpenBSD 4.4.
191 2010-06-07 Eric Blake <eblake@redhat.com>
193 Properly quote AC_PREREQ during autoupdate.
194 * lib/autoconf/general.m4 (AC_PREREQ): Follow consistent quoting
196 * tests/tools.at (autoupdating AC_PREREQ): Update expected
198 Reported by NightStrike.
200 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
202 Documentation and tests for the AC_CHECK_DECL change.
203 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Squash trailing
204 spaces in as_decl_name.
205 (_AC_CHECK_DECLS): Likewise for the define.
206 * tests/semantics.at (AC_CHECK_DECLS): Extend test.
207 * doc/autoconf.texi (Generic Declarations): Update.
210 2010-06-01 Joern Rennecke <joern.rennecke@embecosm.com> (tiny change)
212 Generalize AC_CHECK_DECL for C++: allow optional arguments.
213 * general.m4 (_AC_CHECK_DECL_BODY): Process trailing function
214 argument types as arguments to use for C++.
215 (_AC_CHECK_DECLS): Filter out trailing function argument types
216 when generating the HAVE_DECL_* macro.
218 2010-05-25 Stefano Lattarini <stefano.lattarini@gmail.com>
219 Eric Blake <eblake@redhat.com>
221 Don't expose AC_{COMPILE,LINK}_IFELSE internals in documentation.
222 * doc/autoconf.texi (Runtime) <AC_LINK_IFELSE>: Suggest to use
223 `conftest$EXEEXT' rather than `conftest$ac_exeext' to acces the
224 just-linked program file.
225 (Runtime) <AC_COMPILE_IFELSE>: Suggest to use `conftest.$OBJEXT'
226 rather than `conftest.$ac_object' to access the just-compiled
227 object file. Also, refer to the object file as "just-compiled"
228 rather than "just-linked".
230 2010-05-20 Eric Blake <eblake@redhat.com>
232 Mention another line-counting alternative.
233 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
234 how to use sed to count lines.
235 Suggested by Paolo Bonzini.
237 2010-05-12 Eric Blake <eblake@redhat.com>
239 Document the grep workaround.
240 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
243 2010-05-12 Mark Hessling <mark@rexx.org> (tiny change)
245 Work around QNX4 grep bug.
246 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Count ^
247 rather than $ to avoid QNX4 grep bug.
250 2010-05-11 David Reiss <dreiss@facebook.com> (tiny change)
252 Improve Erlang documentation.
253 * doc/autoconf.texi (Erlang Libraries): Document actual default
257 2010-05-11 Eric Blake <eblake@redhat.com>
259 Fix typo in previous patch.
260 * doc/autoconf.texi (File Descriptors): Add end '.
261 Reported by Ralf Wildenhues.
263 Mention how to silence program probes.
264 * doc/autoconf.texi (File Descriptors): Document how to silence a
267 2010-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
269 Error and warning message formatting cleanups.
270 * doc/autoconf.texi (Autoconf Language, Generic Structures):
271 Do not capitalize the first word in error messages, do not end
273 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS, AC_MSG_FAILURE):
275 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Likewise.
276 * lib/autotest/general.m4 (AT_INIT, at_fn_group_prepare):
278 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
279 * tests/base.at (AC_TRY_COMMAND): Likewise.
280 * tests/torture.at (datarootdir workaround): Adjust expected
283 Fix placing of ellipses in English text.
284 * lib/autoconf/general.m4 (_AC_INIT_HELP): Be sure to add a
285 space before `...' in natural language text.
286 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY):
288 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
289 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
290 * tests/suite.at: Likewise.
291 * tests/torture.at (@%:@define header templates): Likewise.
293 Ensure autotest tests have an atconfig file, for testsuite -v.
294 * tests/autotest.at (AT_CHECK_AT_PREP): Create a default
295 atconfig file in the directory of the testsuite.
296 (AT_CHECK_AT_TITLE): Also check that `./micro-suite -v' output
297 does not contain empty $at_srcdir expansion.
298 (srcdir propagation): Remove the atconfig file generated by
299 AT_CHECK_AT_PREP. Check each suite invocation for $at_srcdir
302 Fix autotest testsuite -v output to print test group title.
303 * lib/autotest/general.m4 (AT_CLEANUP): Actually print test
304 title in verbose output. Fixes AUTOCONF-2.57-101-gc102ed8
306 * tests/autotest.at (AT_CHECK_AT_TITLE): Amend macro to check
307 for test title in -v output.
309 2010-04-26 Eric Blake <eblake@redhat.com>
311 Clarify octal escapes with tr.
312 * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
313 is portable in octal, but not newline.
315 2010-04-22 Joel James Adamson <joel@chondestes.bio.unc.edu> (tiny change)
317 Add a paragraph to FAQ on Debugging configure scripts.
318 * doc/autoconf.texi (Debugging): Mention inspecting config.log.
321 2010-04-21 Mike Frysinger <vapier@gentoo.org> (tiny change)
323 Fix typo in doc example.
324 * doc/autoconf.texi (Subdirectories): Fix typo.
326 2010-04-05 Eric Blake <eblake@redhat.com>
328 Fix m4_cr_all for EBCDIC.
329 * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
330 don't end up with $* in EBCDIC.
331 * NEWS: Document the fix.
333 Reported by Steve Goetze.
335 2010-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
337 Do not use @acronym in the manual.
338 * doc/autoconf.texi: Remove all usage of @acronym.
339 Suggested by Karl Berry.
341 Do not use @sc in the manual.
342 * doc/autoconf.texi: Remove all usage of @sc in the manual.
343 Suggested by Karl Berry.
345 2010-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
347 Fix wrong comment in testsuite.
348 * tests/m4sugar.at (m4@&t@_warn): Remove copy&pasted comment.
350 Formatting cleanups in macro comments.
351 * lib/autoconf/c.m4, lib/autoconf/erlang.m4,
352 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
353 lib/autoconf/general.m4, lib/autoconf/lang.m4,
354 lib/autoconf/programs.m4, lib/autoconf/specific.m4,
355 lib/autoconf/status.m4, lib/autoconf/types.m4,
356 lib/autotest/general.m4, lib/autotest/specific.m4,
357 lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4,
358 tests/autotest.at, tests/local.at, tests/m4sh.at,
359 tests/semantics.at, tests/tools.at, tests/torture.at: Fix macro
362 2010-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
364 manual: index strings containing colon in non-info outputs.
365 * doc/autoconf.texi (Quadrigraphs, Shell Substitutions): Produce
366 index entries for concepts containing a colon in output formats
369 Update copyright years for files generated by mktests.sh.
370 * tests/mktests.sh: Update copyright years for generated files.
372 2010-03-04 Eric Blake <eblake@redhat.com>
374 Document AC_LANG_CONFTEST semantic change.
375 * doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
376 Enhance documentation, to show that semantic change in 2.63b was
379 Reported by Brian J. Murrell, analyzed by Ralf Wildenhues.
381 2010-03-04 Peter Johansson <trojkan@gmail.com> (tiny change)
383 Autoconf Macro Archive URL has changed.
384 * doc/autoconf.texi (Introduction, Coding Style, Defining
385 Directories): The Autoconf Macro Archive is officially `GNU'.
388 2010-03-02 Eric Blake <eblake@redhat.com>
390 Fix shell code in AS_TR_SH documentation.
391 * doc/autoconf.texi (Common Shell Constructs) <AS_TR_SH>: Fix
392 example to expand to valid shell code.
393 Reported by Ralf Wildenhues.
395 Improve documentation on AC_{COMPILE,LINK}_IFELSE.
396 * doc/autoconf.texi (Running the Compiler): Mention that the
397 object file is available after a successful compile.
398 (Running the Linker): Likewise for the linker output.
399 Suggested by Paolo Bonzini.
402 * doc/autoconf.texi (Conditional constructs) <m4_ifblank>: Fix
405 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
407 Fix AS_ERROR for FreeBSD sh.
408 * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): Rewrite as_fn_error
409 to take additional first argument STATUS instead of transporting
410 $? across shell function entry, which does not work with FreeBSD
411 sh. Shift all other arguments by one, adjust.
412 (AS_ERROR): Pass EXIT-STATUS, defaulting to $?, to as_fn_error.
413 Report by Václav Haisman.
415 Fix `autom4te cache creation' testsuite failure on FreeBSD.
416 * tests/tools.at (autom4te cache creation): Normalize exit
417 status of failed redirection to 1, may be 2 with FreeBSD sh.
419 Report by Václav Haisman.
421 Fix Autotest tracing of shell pipelines for FreeBSD sh.
422 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
423 commands that contain [^|]|[^|], a likely shell pipeline.
424 * tests/local.at (_AT_CHECK_ENV): Turn off tracing for egrep |
426 * doc/autoconf.texi (File Descriptors): Document limitation.
427 * tests/autotest.at (Trace output): New test.
429 2010-03-01 Eric Blake <eblake@redhat.com>
431 Update file flow diagram to mention Automake.
432 * doc/autoconf.texi (Making configure Scripts): Avoid confusion
433 with listing Makefile.in twice on one line. Add a diagram showing
434 how automake fits into the picture.
435 Reported by santilín.
437 2010-02-26 Eric Blake <eblake@redhat.com>
439 Optimize AC_REPLACE_FUNCS.
440 * lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): New helper macro.
441 (AC_REPLACE_FUNCS): Use it to reduce forks when checking for
442 replacements, by using literal rather than shell variable.
444 Document how to safely override CFLAGS default.
445 * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
446 change the default CFLAGS.
447 (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
448 Reported by Monty Taylor; wording suggested by Paolo Bonzini.
450 Document that Autoconf relies on IFS.
451 * doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
452 about use of IFS within configure script.
454 Reported by Arkadiusz Miskiewicz.
456 Recommend latest m4 release.
457 * README: Bump recommendation to m4 1.4.14 (minimum remains
459 * doc/autoconf.texi (Introduction): Likewise.
460 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
462 2010-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
464 Fix testsuite failures due to setting of $U.
465 * tests/local.at (_AT_CHECK_ENV): Ignore setting of $U.
467 2010-02-10 Eric Blake <ebb9@byu.net>
469 Avoid $U if it is not initialized.
470 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
471 set if automake did not define it.
473 Reported by Heiko Schlichting, via Julien Élie.
475 2010-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
477 Fix substitution of carriage return on Darwin.
478 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Set
479 ac_cs_awk_cr to '\\r', so that sed portably expands this to '\r'
480 rather than a literal carriage return, to fix substitution on
481 Darwin. Regression introduced in 2.63b.
482 Report by Peter O'Gorman.
484 2010-01-21 Dmitry V. Levin <ldv@altlinux.org>
486 Fix test failure when a shell uses $TMPDIR for here-documents.
487 * tests/tools.at (autotools and whitespace in file names): Create
488 $TMPDIR before potential use like in other whitespace tests.
490 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
492 Add recommendation on (not) unsetting IFS.
493 * doc/autoconf.texi (Special shell variables): Explain why it's
494 better not to unset IFS.
496 2010-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
498 config.status: consistent exit status with nonexistent config file input.
499 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Ensure we
500 exit with status 1 rather than with that of 'false', for
502 (AC_OUTPUT): Ensure to exit 1 in case of config.status failure.
503 * tests/torture.at (Missing templates): Also test code path
507 2010-01-13 Eric Blake <ebb9@byu.net>
509 Fix previous example.
510 * doc/autoconf.texi (Here-Documents): Touch up the example to
511 match output to sample command line.
513 Document here-doc pitfall.
514 * doc/autoconf.texi (Here-Documents): Mention problem with <<-
516 Reported by Jim Meyering.
518 2010-01-12 Eric Blake <ebb9@byu.net>
520 Typo fix in earlier commit.
521 * doc/autoconf.texi (Autoconf Language): Fix typo.
523 2010-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
525 Allow AC_FUNC_MKTIME to work with C++.
526 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): ANSIfy KnR function
527 definitions. Use `const char*' for character literals; cast them
528 to `char*' for putenv.
530 2010-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
532 Export AUTOM4TE in tests/atlocal.in, for aclocal.
533 * tests/atlocal.in: Set and export $AUTOM4TE, for aclocal.
536 2010-01-08 Eric Blake <ebb9@byu.net>
538 Make autotest example act better with automake.
539 * doc/autoconf.texi (Making testsuite Scripts): Rely on automake
540 feature for recommended autotest snippet, following our own use.
542 Clarify language on handling of opening parenthesis.
543 * doc/autoconf.texi (Autoconf Language): Give an example of
544 improper argument passing.
546 Reported by Juan Carlos Hurtado.
548 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
550 Don't fail autom4te preselection test due to different Automake.
551 * tests/tools.at (autom4te preselections): If the cache test
552 fails, extract the Automake version from the toplevel
553 Makefile.in file of the source tree; skip, rather than fail
554 the test group if the automake program has a different version.
556 Report by Dieter Jurzitza, fix suggested by Eric Blake.
558 2010-01-06 Peter Breitenlohner <peb@mppmu.mpg.de>
559 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
561 Fix AC_CONFIG_LINKS to generated files when srcdir is absolute.
562 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Check $ac_source,
563 not $srcdir, for being relative or absolute.
564 * tests/torture.at (AC_CONFIG_LINKS): New test.
565 (AC_CONFIG_LINKS and identical files): Extend test, avoid some
567 Report, patch and testcase example by Peter Breitenlohner.
569 2010-01-05 Eric Blake <ebb9@byu.net>
571 Improve release automation.
572 * maint.mk (gnulib_dir, gnulib-version, bootstrap-tools)
573 (announcement): Copy from latest gnulib maint.mk.
574 * cfg.mk (announce_gen, gpg_key_ID): Delete.
575 (bootstrap-tools): Override the default.
577 Update upstream files.
578 * GNUmakefile: Update via 'make fetch'.
579 * build-aux/announce-gen: Likewise.
580 * build-aux/config.guess: Likewise.
581 * build-aux/config.sub: Likewise.
582 * build-aux/gendocs.sh: Likewise.
583 * build-aux/gnupload: Likewise.
584 * build-aux/move-if-change: Likewise.
585 * build-aux/update-copyright: Likewise.
586 * build-aux/vc-list-files: Likewise.
587 * doc/standards.texi: Likewise.
588 * cfg.mk (update-copyright-env): Enforce wrap column.
590 Update copyright year.
591 All files changed to add 2010, via 'make update-copyright'.
593 2009-12-31 Bruno Haible <bruno@clisp.org>
595 Improve documentation on Solaris tr bugs.
596 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
597 description of NUL handling by Solaris tr.
599 2009-12-31 Eric Blake <ebb9@byu.net>
602 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Clarify
604 Reported by Ralf Wildenhues.
606 2009-12-29 Eric Blake <ebb9@byu.net>
608 Improve documentation on tr portability.
609 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Refine
610 description of NUL handling. Document set size issue.
611 Reported by Bruno Haible.
613 Fix comment in AC_CHECK_DECLS.
614 * lib/autoconf/general.m4 (AC_CHECK_DECL): Document the includes
615 argument to the shell function.
617 2009-12-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
619 Add testsuite exposure for shtool usage.
620 * tests/foreign.at (shtool): New test.
621 Report by Dmitry Grebeniuk.
623 2009-12-12 Eric Blake <ebb9@byu.net>
625 Improve wording about m4 quote characters.
626 * doc/autoconf.texi (Autoconf Language): Autoconf quote characters
627 come from m4sugar, not raw m4.
628 (Active Characters): Mention that it is m4sugar which changes
629 quotes from `' to [].
631 Suggested by Josef Vukovic.
633 2009-12-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
635 Revert "Improve AC_CONFIG_AUX_DIRS a bit." to fix shtool usage.
636 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Revert test for
637 shtool as install script. Regression introduced in 2.64.
638 * NEWS, THANKS: Update.
639 Report by Dmitry Grebeniuk.
640 This reverts commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4.
642 2009-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
644 Fix NEWS description for AC_FUNC_MMAP entry.
647 Fix 2.65 AC_TYPE_INT*_T macro body text regression.
648 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
649 definition to prologue section, to avoid syntax error.
650 * NEWS, THANKS: Update.
651 Report by Pierre Ynard.
653 2009-12-09 Paolo Bonzini <bonzini@gnu.org>
655 Fix `recursion' test failure.
656 * tests/m4sugar.at (recursion): Use empty diversion, not 0.
658 2009-12-05 Stefano Lattarini <stefano.lattarini@gmail.com>
659 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
661 Document Solaris/Heirloom sh set -e issue with command substitutions.
662 * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
663 in previous example. Document failure to honor && lists with set -e
664 and a command substitution in the failing command.
665 Report and initial patch by Stefano Lattarini against Automake.
667 2009-12-04 Eric Blake <ebb9@byu.net>
669 Warn if using unnamed diversion.
670 * lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
671 optional parameter, which controls warning.
672 (m4_divert_pop, m4_cleardivert, m4_divert_require)
673 (_m4_require_call): Adjust callers.
674 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
675 * tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
676 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&t@_append)
677 (m4@&t@_text_wrap, recursion): Likewise.
678 (m4@&t@_warn, m4@&t@_divert_stack): Adjust expected output.
679 * tests/tools.at (autom4te and whitespace in file names)
680 (autoconf: the empty token): Avoid triggering the warning.
681 (autoconf: AC_PRESERVE_HELP_ORDER): New test.
682 * tests/mktests.sh (ac_exclude_list): Retire prior test.
683 * NEWS: Document the warning.
684 * doc/autoconf.texi (Redefined M4 Macros) <m4_divert>,
685 <m4_undivert>: Make even more explicit that using these directly
687 (Diversion support): Further warn against improper diversion
689 <m4_divert_text>: Give an example of proper use.
690 Reported by Mike Frysinger.
692 2009-11-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
694 manual: AC_SEARCH_LIBS also prepends to LIBS.
695 * doc/autoconf.texi (Libraries): Document that AC_SEARCH_LIBS
696 prepends to LIBS, just like AC_CHECK_LIB.
698 2009-11-27 Paolo Bonzini <bonzini@gnu.org>
700 Bump m4.m4 serial number.
701 * m4/m4: Bump serial number to 10.
703 2009-11-27 Harald van Dijk <truedfx@gentoo.org>
705 Fix m4 detection test on dash.
706 * m4/m4 (AC_PROG_GNU_M4): Use AS_ECHO.
708 2009-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
710 Fix AC_FUNC_MMAP regression with C++ compiler in 2.65.
711 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Use const char*
712 for the constant string. Cast void* to char* for assignment.
713 * NEWS, THANKS: Update.
714 Report by Michal Čihař.
716 Add pgfortran to list of Fortran 95+ compilers.
717 * lib/autoconf/fortran.m4 (_AC_F95_FC): Add pgfortran before
719 Based on report by Jeff Squyres.
721 2009-11-22 Bruno Haible <bruno@clisp.org>
723 Fix failure of test 35 when the user has a .autom4te.cfg file.
724 * tests/tools.at (autom4te cache creation): Skip the test if the
725 user has a .autom4te.cfg file.
727 2009-11-21 Eric Blake <ebb9@byu.net>
729 Release Version 2.65.
730 * NEWS: Mention the release.
733 * build-aux/announce-gen: Sync from upstream.
734 * build-aux/config.guess: Likewise.
735 * build-aux/config.sub: Likewise.
736 * cfg.mk (gnu_rel_host, url_dir_list): Move...
737 * maint.mk: ...here, copying ideas from gnulib.
739 (stable): ...to this, copying gnulib.
740 * HACKING (release): Document changes in process.
742 Avoid spurious newline in traced macros.
743 * bin/autoreconf.in (tracing): Drop newline before parsing traced
744 arguments; regression from 2009-11-14.
746 2009-11-20 Eric Blake <ebb9@byu.net>
748 Allow absolute names in AT_TESTED.
749 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Check for
750 absolute names before path walk.
752 Suggested by Allan Clark.
754 2009-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
756 Fix AC_CONFIG_SUBDIRS tracing in autoreconf.
757 * bin/autoreconf.in (autoreconf_current_directory): Collapse
758 newlines in the autoconf trace output, similar to how automake
759 invokes autoconf, so that newlines do not matter in the argument
760 to AC_CONFIG_SUBDIRS.
761 * tests/torture.at (Deep Package): Expose this issue in the
764 Report by Nathan Schulte.
766 2009-11-09 Eric Blake <ebb9@byu.net>
768 Fix AC_FUNC_MMAP for cygwin.
769 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Make the test more
770 portable: Actually check for <sys/param.h>, and only use MAP_FIXED
771 on an address previously returned from mmap.
773 Reported by Corinna Vinschen.
775 2009-11-04 Eric Blake <ebb9@byu.net>
777 Redocument AS_DIRNAME, even with its flaws.
778 * doc/autoconf.texi (Common Shell Constructs) <AS_DIRNAME>:
779 Restore documenatation, since dirname mentions it.
780 Reported by Peter Johansson.
782 Update upstream files.
783 * build-aux/announce-gen: Synchronize from upstream.
784 * build-aux/config.guess: Likewise.
785 * build-aux/config.sub: Likewise.
786 * build-aux/gendocs.sh: Likewise.
787 * build-aux/git-version-gen: Likewise.
788 * build-aux/texinfo.tex: Likewise.
789 * build-aux/update-copyright: Likewise.
790 * doc/standards.texi: Likewise.
791 * lib/Autom4te/Channels.pm: Likewise.
792 * lib/Autom4te/Configure_ac.pm: Likewise.
793 * lib/Autom4te/FileUtils.pm: Likewise.
794 * lib/Autom4te/Struct.pm: Likewise.
795 * lib/Autom4te/XFile.pm: Likewise.
797 2009-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
799 Coverage for autom4te cache creation issues.
800 * tests/tools.at (autom4te cache creation): New test.
802 2009-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
804 Fix testsuite failures with SHELL=zsh.
805 * tests/statesave.m4 (AC_STATE_SAVE): Ignore argv and ARGC when
806 comparing configure variables.
808 2009-11-03 Eric Blake <ebb9@byu.net>
809 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
811 Update NEWS for recent fixes.
812 * NEWS: Add some entries.
814 2009-10-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
816 Micro-optimization of config.status substitution.
817 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): No need to
818 concatenate an empty second string, when we have exactly 148
819 characters to substitute.
820 * tests/torture.at (Substitute a 2000-byte string): Add test
821 exposure for runs of backslashes near the 148 character limit.
823 Fix testsuite failure on AIX 4.3.3.
824 * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT): Remove conftest.err
827 Fix testsuite failure on IRIX and AIX.
828 * tests/torture.at (Substitute and define special characters):
829 Double the backslash before the double-quote in
830 AC_DEFINE_UNQUOTED, as documented for here-documents.
832 2009-10-31 Eric Blake <ebb9@byu.net>
834 Fix cross-manual link to gcc.
835 * doc/autoconf.texi (Portable C and C++): Provide uref rather than
836 xref when building for html.
837 Reported via Karl Berry.
840 * AUTHORS: Document recent copyright assignments.
842 2009-10-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
844 Fix AC_OPENMP configure message for non-C compilers.
845 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Accept as additional
846 fourth arg the compiler variable name, defined in _AC_CC($1).
847 (_AC_CC): New language dispatch macro.
848 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Adjust.
849 * lib/autoconf/fortran.m4 (AC_LANG(Fortran 77), AC_LANG(Fortran)):
851 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++))
852 (AC_LANG(Objective C), AC_LANG(Objective C++)): Likewise.
853 (AC_OPENMP): Use _AC_CC instead of $CC.
855 Do not fail OpenMP tests on systems without aclocal.
856 * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
857 `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
858 * tests/fortran.at (AC_OPENMP and Fortran 77)
859 (AC_OPENMP and Fortran): Likewise.
861 2009-10-31 Bruno Haible <bruno@clisp.org>
862 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
864 Improve cache variable documentation.
865 * doc/autoconf.texi (AC_PROG_AWK, AC_PROG_GREP, AC_PROG_EGREP,
866 AC_PROG_FGREP, AC_PROG_INSTALL, AC_PROG_MKDIR_P, AC_PROG_LEX,
867 AC_PROG_YACC, AC_CHECK_PROG, AC_CHECK_PROGS, AC_PATH_PROG,
868 AC_PATH_PROGS): Don't suggest to use the cache variable, only to
869 override it, or preferably, a non-cache variable associated with
871 (AC_PROG_SED): Likewise. Fix name of cache variable.
872 (AC_FUNC_GETMNTENT): Fix name cache variable.
873 (AC_FUNC_LSTAT): Fix typo.
875 2009-10-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
877 Fix AC_OPENMP for Fortran (F77 and FC).
878 * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
879 * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
880 (AC_OPENMP and C++): New tests.
881 * tests/fortran.at (AC_OPENMP and Fortran 77)
882 (AC_OPENMP and Fortran): New tests.
884 Report by Bart Oldeman.
886 Perl coverage convenience targets.
887 * Makefile.am (PERL_COVERAGE_DB, PERL_COVERAGE_FLAGS)
888 (PERL_COVER): New variables.
889 (check-coverage, check-coverage-run, check-coverage-report)
890 (clean-coverage): New phony targets.
891 (clean-local): Depend on clean-coverage.
893 2009-10-28 Eric Blake <ebb9@byu.net>
895 Fix corner cases in AS_LITERAL_IF and AS_TR_SH.
896 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix bug with unbalanced
898 (_AS_LITERAL_IF): into new helper.
899 (AS_TR_SH, AS_TR_CPP): Fix bugs with expansion of wrong macro.
901 (_AS_TR_SH, _AS_TR_SH_LITERAL, _AS_TR_SH_INDIR, _AS_TR_CPP)
902 (_AS_TR_CPP_LITERAL, _AS_TR_CPP_INDIR): ...into new helpers.
903 (AS_VAR_PUSHDEF): Hoist m4_require, by moving guts...
904 (_AS_VAR_PUSHDEF): ...into new helper.
905 * tests/m4sh.at (AS@&t@_LITERAL_IF): Enhance test.
907 Minor optimizations to m4sh.
908 * lib/m4sugar/m4sh.m4 (AS_VAR_IF, AS_IDENTIFIER_IF)
909 (AS_LITERAL_IF): Parse fewer bytes during expansion, by visiting
910 if-true and if-false arguments only once.
912 Optimize m4_escape for common case.
913 * lib/m4sugar/m4sugar.m4 (m4_escape): Don't use regex if string is
914 already sane, by copying from AS_LITERAL_IF. Move guts...
915 (_m4_escape): ...into new helper.
917 Fix m4_text_wrap handling of quoted whitespace.
918 * lib/m4sugar/m4sugar.m4 (m4_escape): New macro.
919 (m4_text_wrap): Use it to avoid issues with embedded [ and ].
920 * tests/m4sugar.at (m4@&t@_text_wrap): Test it.
921 * NEWS: Document this.
922 * doc/autoconf.texi (Text processing Macros) <m4_escape>:
924 Reported by Mike Frysinger.
926 2009-10-27 Eric Blake <ebb9@byu.net>
928 Mention another feature of AC_RUN_IFELSE.
929 * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Mention that
930 compiled test program still exists during if-true branch.
932 Reported by Stefano Lattarini, suggestion by Ralf Wildenhues.
934 2009-10-26 Paolo Bonzini <bonzini@gnu.org>
936 Pass Autom4te path down to programs that autoreconf invokes.
937 * bin/autoreconf.in (autom4te): New variable. Export its value
938 as $ENV{'AUTOM4TE'}. Suggested by Peter Johansson.
941 2009-10-20 Eric Blake <ebb9@byu.net>
943 Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
944 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
945 (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
947 * NEWS: Document this.
948 Reported by Rainer Orth.
950 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
952 Fix a couple of index entries in the manual.
953 * doc/autoconf.texi (Polymorphic Variables): Fix index entries
954 for AS_VAR_APPEND, AS_VAR_ARITH.
956 2009-10-15 Eric Blake <ebb9@byu.net>
958 Fix typos in INSTALL.
959 * doc/install.texi (Basic Installation, Installation Names): Fix
961 Repored by Ralf Wildenhues.
963 Improve INSTALL wording.
964 * doc/install.texi (Basic Installation): Clarify installcheck
966 (Installation Names): Mention that --prefix only overrides
967 directory locations not specified on the command line. Prefer
968 /alternate/directory over /path/to. Remove a sentence targeted to
969 the developer, not the user.
971 Suggested by Alfred M. Szmidt.
973 2009-10-15 Peter Breitenlohner <peb@mppmu.mpg.de>
975 Fix typos in documentation.
976 * doc/autoconf.texi (Cache Variable Index): Fix typo.
977 (Libraries) <AC_SEARCH_LIBS>: Mention 'none required' result.
979 2009-10-09 Bruno Haible <bruno@clisp.org>
980 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
982 Recommend `sh -n' debugging, and public result variables for macros.
983 * doc/autoconf.texi (Debugging): Recommend to use "bash -n
984 configure". Recommend the use of result variables as an
985 alternative to run-if-true/run-if-false parameters.
987 2009-10-05 Bruno Haible <bruno@clisp.org>
989 * doc/autoconf.texi (Particular Functions): Swap sections about
990 AC_FUNC_MBRTOWC and AC_FUNC_MEMCMP.
992 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
994 Unconditionally check for junk ./--version after mkdir search loop.
995 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
996 presence of ./--version. Reported by Eric Blake.
998 2009-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1000 Clarify documentation about Solaris sed quantifier restriction.
1001 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
1002 not work after subexpressions, \{M,N\} only after one-character
1003 expressions. From GCC PR 38923.
1005 2009-09-21 Eric Blake <ebb9@byu.net>
1007 Fit configure output in 80 columns.
1008 * lib/autoconf/functions.m4
1009 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
1011 2009-09-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1013 Use consistent notation for cache variables.
1014 * doc/autoconf.texi (Generic Programs): Remove `$' before
1017 Documentation of specific and general cache variables.
1018 * doc/autoconf.texi (Default Includes, Alternative Programs)
1019 (Particular Programs, Generic Programs, Files, Libraries)
1020 (Function Portability, Particular Functions, Generic Functions)
1021 (Particular Headers, Generic Headers, Declarations)
1022 (Generic Declarations, Particular Structures, Particular Types)
1023 (Specific Compiler Characteristics)
1024 (Generic Compiler Characteristics, C Compiler, System Services):
1025 Document lots of cache variables.
1027 Suggested by Bruno Haible.
1029 New cache variable index in the manual.
1030 * doc/autoconf.texi: Define new index `CA' for cache variables.
1031 (caindex): New macro.
1032 (Cache Variable Index): New appendix node.
1033 (Top, Indices): Adjust menus.
1034 (Cache Variable Names, Site Defaults): Adjust text.
1035 * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
1037 New FAQ node: Debugging.
1038 * doc/autoconf.texi (Debugging): New node.
1039 (Top, FAQ): Adjust menus.
1040 Report by Bruno Haible.
1042 Document AM_MAKEFLAGS workaround to the macro override problem.
1043 * doc/autoconf.texi (Macros and Submakes): Automake makefiles
1044 provide AM_MAKEFLAGS to help with overriding macros in submake
1046 Prompted by bug report from Bruno Haible.
1048 2009-09-15 Peter Breitenlohner <peb@mppmu.mpg.de>
1050 Implement and document Objective C++ support.
1051 * lib/autoconf/c.m4 (AC_LANG(Objective C++), AC_LANG_OBJCXX)
1052 (AC_LANG_PREPROC(Objective C++), AC_PROG_OBJCXXCPP)
1053 (AC_LANG_COMPILER(Objective C++), AC_PROG_OBJCXX)
1054 (_AC_PROG_OBJCXX_G): New macros.
1055 (_AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
1056 (_AC_ARG_VAR_LIBS): Adjusted.
1057 * doc/autoconf.texi (Objective C++ Compiler): New node.
1058 (Preset Output Variables): Document OBJCXXFLAGS.
1059 (Language Choice): Document `Objective C++' language.
1061 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C++
1064 2009-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1066 Work around DJGPP shell function return bug with command substitutions.
1067 DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
1068 shell function which also contains a command substitution causes
1069 the shell to barf. For more details and a fix see:
1070 <http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
1071 Possible workaround include putting the `return' in a subshell
1072 or calling another function to set the status.
1073 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
1074 (_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
1075 (_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
1076 instead of `return'.
1077 * doc/autoconf.texi (Common Shell Constructs, Shell Functions):
1080 Report by Rugxulo and Reuben Thomas.
1082 DJGPP fix: Do not redirect standard input in configure scripts.
1083 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
1084 nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
1087 2009-09-14 Eric Blake <ebb9@byu.net>
1089 Quote result of m4_toupper and m4_tolower.
1090 * lib/m4sugar/m4sugar.m4 (m4_tolower, m4_toupper): Quote result.
1091 * lib/autotest/general.m4 (AT_KEYWORDS): Adjust caller.
1092 * tests/m4sugar.at (m4@&t@_toupper and m4@&t@_tolower): New test.
1093 * NEWS: Document this.
1095 Reported by Sam Steingold.
1097 2009-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1099 DJGPP fix: remove both conftest and conftest.exe.
1100 The DJGPP compiler may create both `a.out' and `a.exe' without -o,
1101 and both `conftest' and `conftest.exe' with `-o conftest', but not
1102 with `-o conftest.exe'.
1103 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove
1104 `conftest' without $ac_exeext suffix.
1106 DJGPP fix: do not try to source /dev/null as cache or site file.
1107 * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not
1108 load the cache or site file if it is `/dev/null', as DJGPP treats
1109 it as a regular file, but the shell then warns about it later.
1110 Fixes several test suite failures on DJGPP.
1112 testsuite: pass $configure_options to configure invocations.
1113 * tests/local.at (AT_CHECK_CONFIGURE): Add $configure_options
1114 to configure command line.
1115 * tests/autotest.at, tests/base.at, tests/c.at, tests/torture.at:
1116 Likewise for each configure invocation.
1117 * README-hacking: Document configure_options.
1119 testsuite: improve Erlang tests portability, overridability.
1120 * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
1121 value-if-not-found for Erlang tools.
1122 * tests/erlang.at: Likewise. Also, use AS_EXIT instead of plain
1125 2009-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1127 * bin/autoupdate.in: Fix typos in comments.
1129 Improve autotest testsuite summary message.
1130 * lib/autotest/general.m4 (AT_INIT): Hint at the toplevel log
1131 only if not $at_debug_p. Always hint at the per-test output.
1133 Four new autoupdate tests, expected failures.
1134 * tests/tools.at (autoupdating macros recursively)
1135 (autoupdating with m4@&t@_pushdef, autoupdating with AC_REQUIRE)
1136 (autoupdating with complex quoting): New tests.
1138 Fix description of AC_CHECK_LIB regarding other deplibs.
1139 * doc/autoconf.texi (Libraries): Library linking may not fail
1140 even without missing additional libs.
1142 2009-09-12 Eric Blake <ebb9@byu.net>
1144 Track recent copyright assignments.
1147 Improve documentation on quoting.
1148 * doc/autoconf.texi (Autoconf Language): Clarify quoting example.
1150 Reported by santilín.
1152 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1154 New config.status option --config.
1155 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement
1157 * doc/autoconf.texi (config.status Invocation): Document it.
1159 * tests/torture.at (configure invocation): Test it.
1160 Suggested several times, by several people, in the past.
1162 2009-09-10 Eric Blake <ebb9@byu.net>
1164 Document that AS_INIT is automatically used.
1165 * doc/autoconf.texi (Initialization Macros) <AS_INIT>: Add words
1166 to clarify that only bare-bones scripts need a direct AS_INIT.
1167 Suggested by Reuben Thomas.
1169 Clarify portability pitfall of test.
1170 * doc/autoconf.texi (Limitations of Builtins) <test>: Give more
1171 reasons why -a and -o are not portable.
1172 Reported by Reuben Thomas.
1174 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1176 Document sed limitation with escaped metacharacters.
1177 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Use `%'
1178 rather than `/' as delimiter in an example `s' command.
1179 Document inconsistent treatment of escaped metacharacters.
1181 Report by Dave Korn, with additional input from Paolo Bonzini
1184 Document temporary directory `$tmp' for use in config.status.
1185 * doc/autoconf.texi (Configuration Actions): Document `$tmp'.
1188 2009-09-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1190 Update License to GPLv3+ including new Autoconf Exception.
1191 * NEWS, README: Update licensing information.
1192 * COPYING.EXCEPTION: New file.
1193 * Makefile.am (EXTRA_DIST): Distribute it.
1194 * cfg.mk (autom4te-update): Remove copyright change warning.
1195 * lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1196 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1197 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1198 lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
1199 lib/autoconf/functions.m4, lib/autoconf/general.m4,
1200 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
1201 lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
1202 lib/autoconf/programs.m4, lib/autoconf/specific.m4,
1203 lib/autoconf/status.m4, lib/autoconf/types.m4,
1204 lib/autotest/autotest.m4, lib/autotest/general.m4,
1205 lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
1206 lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
1207 statement, bump to GPLv3.
1208 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
1209 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
1210 bin/ifnames.in: Bump to GPLv3+, adjust --version output
1211 to reflect the GPLv3+ and the Autoconf Exception.
1212 * lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1213 lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
1214 lib/autom4te.in, lib/autoscan/autoscan.pre,
1215 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1216 lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
1217 tests/autotest.at, tests/base.at, tests/c.at,
1218 tests/compile.at, tests/erlang.at, tests/foreign.at,
1219 tests/fortran.at, tests/local.at, tests/m4sh.at,
1220 tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
1221 tests/statesave.m4, tests/suite.at, tests/tools.at,
1222 tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
1224 Allow to work on systems without Fcntl::flock implementation.
1225 * configure.ac (PERL_FLOCK): New substitution variable with test
1226 whether Fcntl::flock is implemented by the system.
1227 * bin/Makefile.am (edit): Substitute @PERL_FLOCK@.
1228 * bin/autom4te.in: Call XFile::lock only if flock is
1231 2009-09-04 Reuben Thomas <rrt@sc3d.org> (tiny change)
1233 Mention the Autoconf archive.
1234 * doc/autoconf.texi (Coding Style): Add a link.
1236 2009-08-30 Bruno Haible <bruno@clisp.org>
1238 Document another Solaris tr pitfall.
1239 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
1240 that Solaris /usr/bin/tr does not only have problems with
1241 replacing NUL bytes but discards all NUL bytes from the input.
1243 2009-09-04 Eric Blake <ebb9@byu.net>
1245 Improve wording about what goes before AC_INIT.
1246 * doc/autoconf.texi (Initializing configure): Update wording.
1247 (Versioning) <AC_PREREQ>: Remove misleading text, to match
1248 autoscan's behavior.
1250 Reported by NightStrike, with input from Ralf Wildenhues.
1252 2009-09-04 Thomas Jahns <jahns@dkrz.de> (tiny change)
1254 Fix illegal tab character in Fortran source.
1255 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Change TAB back to
1256 multiple spaces; regression introduced 2008-10-23.
1257 * NEWS: Mention this.
1260 2009-08-22 Romain Lenglet <romain.lenglet@laposte.net>
1262 Fix AT_CHECK_EUNIT for versions of Erlang/OTP without init:stop/1.
1263 * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
1264 versions of Erlang/OTP with an erlang:stop() function that doesn't
1267 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1269 Drop unneeded line in Eunit test.
1270 * tests/autotest.at (Erlang Eunit unit tests): Do not copy
1273 Fix build dependencies for Erlang macro files.
1274 * lib/freeze.mk (autotest_m4f_dependencies): Add
1275 $(src_libdir)/autotest/specific.m4.
1276 * tests/Makefile.am (AUTOCONF_FILES): Add erlang.m4.
1278 2009-09-19 Paolo Bonzini <bonzini@gnu.org>
1280 Use a separate program to test whether the compiler works.
1281 * lib/autoconf/erlang.m4 (_AC_LANG_NULL_PROGRAM(Erlang)): New.
1282 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Copy _AC_LANG_NULL_PROGRAM.
1283 (_AC_LANG_NULL_PROGRAM(), _AC_LANG_NULL_PROGRAM): New.
1284 (_AC_COMPILER_EXEEXT_DEFAULT): Print here "whether the xyz compiler
1285 works", before exiting.
1286 (_AC_COMPILER_EXEEXT_WORKS): Merge into _AC_COMPILER_EXEEXT_CROSS,
1287 remove the "whether the xyz compiler works" message, use
1288 conftest$ac_cv_exeext instead of $ac_file.
1289 (_AC_COMPILER_EXEEXT): Try _AC_COMPILER_EXEEXT_DEFAULT using
1290 the null program, and clean conftest.out only after
1291 _AC_COMPILER_EXEEXT_CROSS.
1292 (AC_NO_EXECUTABLES): Use _AC_LANG_NULL_PROGRAM.
1293 (_AC_COMPILER_OBJEXT): Use _AC_LANG_NULL_PROGRAM.
1295 2009-08-18 Bruno Haible <bruno@clisp.org>
1297 Document Solaris tr range and NUL limitations.
1298 * doc/autoconf.texi (Limitations of Usual Tools): Mention that
1299 Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
1302 2009-08-14 Eric Blake <ebb9@byu.net>
1304 Simplify version control metadata.
1305 * .cvsignore: Delete.
1306 * bin/.cvsignore: Likewise.
1307 * config/.cvsignore: Likewise.
1308 * doc/.cvsignore: Likewise.
1309 * lib/.cvsignore: Likewise.
1310 * lib/autoconf/.cvsignore: Likewise.
1311 * lib/Autom4te/.cvsignore: Likewise.
1312 * lib/autoscan/.cvsignore: Likewise.
1313 * lib/autotest/.cvsignore: Likewise.
1314 * lib/emacs/.cvsignore: Likewise.
1315 * lib/m4sugar/.cvsignore: Likewise.
1316 * man/.cvsignore: Likewise.
1317 * tests/.cvsignore: Likewise.
1318 * bin/.gitignore: Likewise.
1319 * build-aux/.gitignore: Likewise.
1320 * config/.gitignore: Likewise.
1321 * doc/.gitignore: Likewise.
1322 * lib/.gitignore: Likewise.
1323 * lib/autoconf/.gitignore: Likewise.
1324 * lib/Autom4te/.gitignore: Likewise.
1325 * lib/autoscan/.gitignore: Likewise.
1326 * lib/autotest/.gitignore: Likewise.
1327 * lib/emacs/.gitignore: Likewise.
1328 * lib/m4sugar/.gitignore: Likewise.
1329 * man/.gitignore: Likewise.
1330 * tests/.gitignore: Likewise.
1331 * .gitignore: Consolidate all rules into one file.
1333 Normalize remaining copyright lines.
1334 * BUGS: Reformat copyright line, using UPDATE_COPYRIGHT_FORCE.
1336 * README-hacking: Likewise.
1338 * lib/Autom4te/ChannelDefs.pm: Likewise.
1339 * lib/autoconf/fortran.m4: Likewise.
1340 * lib/autoconf/general.m4: Likewise.
1341 * lib/autoconf/lang.m4: Likewise.
1342 * lib/autotest/general.m4: Likewise.
1343 * maint.mk: Likewise.
1344 * tests/compile.at: Likewise.
1346 Improve copyright updating.
1347 * build-aux/update-copyright: Resynchronize from upstream.
1348 * maint.mk (update-copyright): Simplify based on gnulib.
1349 (update-copyright-env): New variable.
1350 * cfg.mk (update-copyright-exclude-regexp): Delete.
1351 (update-copyright-env): New override.
1352 * .x-update-copyright: New file.
1353 * lib/Autom4te/Makefile.am: Add copyright.
1354 * lib/Autom4te/Channels.pm: Revert copyright update to upstream
1356 * lib/Autom4te/Configure_ac.pm: Likewise.
1357 * lib/Autom4te/FileUtils.pm: Likewise.
1358 * lib/Autom4te/Struct.pm: Likewise.
1359 * lib/Autom4te/XFile.pm: Likewise.
1362 * AUTHORS: Include 2009 in copyright.
1363 * lib/Autom4te/C4che.pm: Likewise.
1364 * lib/Autom4te/Channels.pm: Likewise.
1365 * lib/Autom4te/Configure_ac.pm: Likewise.
1366 * lib/Autom4te/FileUtils.pm: Likewise.
1367 * lib/Autom4te/General.pm: Likewise.
1368 * lib/Autom4te/Request.pm: Likewise.
1369 * lib/Autom4te/Struct.pm: Likewise.
1370 * lib/autoconf/Makefile.am: Likewise.
1371 * lib/autoconf/autoconf.m4: Likewise.
1372 * lib/autoconf/autoscan.m4: Likewise.
1373 * lib/autoconf/autoupdate.m4: Likewise.
1374 * lib/autoconf/functions.m4: Likewise.
1375 * lib/autoconf/libs.m4: Likewise.
1376 * lib/autoconf/oldnames.m4: Likewise.
1377 * lib/autoconf/types.m4: Likewise.
1378 * lib/autoscan/Makefile.am: Likewise.
1379 * lib/autoscan/autoscan.pre: Likewise.
1380 * lib/autotest/Makefile.am: Likewise.
1381 * lib/autotest/autotest.m4: Likewise.
1382 * lib/emacs/autoconf-mode.el: Likewise.
1383 * lib/emacs/autotest-mode.el: Likewise.
1384 * lib/freeze.mk: Likewise.
1385 * lib/m4sugar/foreach.m4: Likewise.
1386 * man/Makefile.am: Likewise.
1387 * tests/atlocal.in: Likewise.
1388 * tests/autoscan.at: Likewise.
1389 * tests/foreign.at: Likewise.
1390 * tests/fortran.at: Likewise.
1391 * tests/mktests.sh: Likewise.
1392 * tests/semantics.at: Likewise.
1393 * tests/suite.at: Likewise.
1394 * tests/wrapper.as: Likewise.
1396 Prepare to bulk update copyright years.
1397 * build-aux/update-copyright: New file.
1398 * cfg.mk (gnulib-update): Sync it from gnulib.
1399 (update-copyright-exclude-regexp): New variable.
1400 (web-manual): Move...
1401 * maint.mk (web-manual): ...here, to match gnulib.
1402 (update-copyright): New target, copied from gnulib's
1403 maint.mk (it would be nice to sync this file...).
1404 (build_aux): New macro.
1405 (VC_LIST, emit_upload_commands): Use it.
1406 * build-aux/texinfo.tex: Resynchronize from upstream.
1407 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): Reformat to meet
1409 * lib/autotest/general.m4 (_AT_COPYRIGHT_YEARS): Likewise.
1411 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
1413 Fix testsuite log capturing for tests 183 and 186.
1414 * tests/autotest.at (AT_CHECK_AT_PREP): Prepend AT_dir to
1415 testsuite log file for AT_CAPTURE_FILE.
1417 2009-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1419 Ensure we do not regress with AC_CHECK_MEMBERS.
1420 * tests/semantics.at (AC_CHECK_MEMBERS): Expose the recent
1421 AC_CHECK_MEMBERS fix.
1422 (AC_CHECK_MEMBER): New test group.
1424 2009-08-10 Jeff Squyres <jsquyres@cisco.com> (tiny change)
1426 Fix typo in AC_REQUIRE description.
1427 * doc/autoconf.texi (Prerequisite macros): Fix typo.
1429 2009-08-10 Paolo Bonzini <bonzini@gnu.org>
1431 Fix description of the macro generated by AC_CHECK_MEMBERS.
1432 * lib/autoconf/types.m4 (_AC_CHECK_MEMBERS): Fix regex
1433 replacement. Reported by Bruno Haible.
1435 2009-08-07 Romain Lenglet <romain.lenglet@laposte.net>
1437 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Make AC_RUN_IFELSE
1438 fail if the test module doesn't compile.
1440 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
1442 Use exit code to detect no occurrences with grep.
1443 * tests/autotest.at (Erlang Eunit unit tests): Fix grep invocation.
1445 2009-08-01 Romain Lenglet <romain.lenglet@laposte.net>
1446 Paolo Bonzini <bonzini@gnu.org>
1448 * lib/autotest/specific.m4 (AT_CHECK_EUNIT): New file.
1449 * lib/autotest/Makefile.am (dist_autotestlib_DATA): Add specific.m4.
1450 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add definitions of
1451 variables used by AT_CHECK_EUNIT macro: ERL, ERLC, ERLCFLAGS.
1452 * tests/autotest.at (Erlang Eunit unit tests): Add test for macro
1454 * doc/autoconf.texi (Writing Testsuites): Document macro
1456 * NEWS: Mention macro AT_CHECK_EUNIT.
1458 2009-07-30 Paolo Bonzini <bonzini@gnu.org>
1459 Joel E. Denny <jdenny@clemson.edu>
1461 Clarify comparison of echo, printf, and AS_ECHO*.
1462 * doc/autoconf.texi (Limitations of Builtins): In echo's entry,
1463 give a reason why printf is better than echo. In printf's
1464 entry, cross-reference echo's entry.
1466 2009-07-30 Paolo Bonzini <bonzini@gnu.org>
1468 Add back AH_CHECK_HEADERS.
1469 * lib/autoconf/general.m4 (AH_CHECK_HEADERS): New.
1470 * NEWS: Create new section.
1472 2009-07-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1474 testsuite: avoid bogus hostname match from inner test logs.
1475 * tests/autotest.at (Hard fail): Check more restrictively for
1476 passed tests, so that hostnames recorded in the log file do not
1478 Report by Ludovic Courtès.
1480 2009-07-26 Eric Blake <ebb9@byu.net>
1482 Release Version 2.64.
1483 * NEWS: Mention the release.
1484 * README: This release is stable.
1485 * HACKING (release): Use dist-xz, not dist-lzma.
1487 Document some optional features in INSTALL.
1488 * doc/install.texi (Basic Installation): Mention that INSTALL is
1489 generic, and that not all packages implement all features.
1490 Mention 'make distcheck' for maintainers, and 'make installcheck'
1491 for users. Mention the GNU Coding Standards.
1492 (Installation Names): Mention DESTDIR vs. 'make prefix= install'
1493 as ways to alter the configuration, with caveats of each. Move
1494 --program-prefix discussion...
1495 (Optional Features): ...here. Mention --enable-silent-rules and
1498 Basic improvements to INSTALL.
1499 * doc/install.texi (Basic Installation): Use better markup.
1500 (Multiple Architectures): Introduce the term VPATH.
1501 (Installation Names): Mention that --prefix must be absolute.
1502 * doc/autoconf.texi (Preset Output Variables)
1503 (Installation Directory Variables): Consistently refer to GNU
1506 Update some upstream files.
1507 * build-aux/config.guess: Resynchronize from upstream.
1508 * build-aux/config.sub: Likewise.
1509 * build-aux/texinfo.tex: Likewise.
1510 * build-aux/vc-list-files: Likewise.
1511 * doc/standards.texi: Likewise.
1513 2009-07-25 Eric Blake <ebb9@byu.net>
1515 Recognize new m4sugar keywords.
1516 * lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
1517 m4_define_default, m4_defun_init, m4_defun_once.
1518 (autoconf-font-lock-keywords): Likewise.
1520 Require m4 1.4.6, and fix testsuite to support this version.
1521 * m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
1522 regexp it can't handle.
1523 * NEWS: Mention minimum version bump.
1525 * README-hacking: Likewise.
1526 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
1527 * tests/tools.at (autom4te --trace and whitespace): Update test so
1528 still work with older m4 line numbers.
1529 * tests/m4sugar.at (m4@&t@_require: nested): Likewise.
1530 Reported by Ralf Wildenhues.
1532 2009-07-25 Bruno Haible <bruno@clisp.org>
1534 Clarify autom4te debugging tips.
1535 * doc/autoconf.texi (Debugging via autom4te): Fix example from
1536 previous commit, and add clarification.
1538 2009-07-25 Eric Blake <ebb9@byu.net>
1540 Document some autom4te debugging tips.
1541 * doc/autoconf.texi (Debugging via autom4te): New node.
1542 Suggested by Bruno Haible.
1545 * configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
1547 Let autoheader see through m4 macros in AC_DEFINE.
1548 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
1550 * lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
1551 for using the macro in a template file.
1552 * tests/tools.at (autoheader and macros): New test.
1553 * NEWS: Mention this.
1554 Reported by Bruno Haible.
1556 Improve NEWS wording.
1557 * NEWS: Use more accurate statement.
1558 Suggestedy by Ralf Wildenhues.
1560 2009-07-24 Eric Blake <ebb9@byu.net>
1562 Fix AS_EXIT for FreeBSD sh.
1563 * lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
1564 shell function, since $? is not reliable on function entry.
1565 (_AS_EXIT_PREPARE): Simplify to assume argument.
1566 Reported by Ralf Wildenhues.
1568 2009-07-23 Eric Blake <ebb9@byu.net>
1570 Run more tests under Solaris.
1571 * tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
1572 group when passing over syntax checks.
1574 2009-07-23 Romain Lenglet <romain.lenglet@laposte.net>
1576 Clean up temporary files generated by Erlang macros.
1577 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
1578 (AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
1579 (AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
1580 erlang_cv_* cache variables into ac_cv_erlang_*.
1581 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
1582 files generated by Erlang compiler.
1583 * tests/local.at (AT_CHECK_ENV): Ignore variables defined by
1585 * tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
1587 * tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
1588 generated Erlang tests; they are all hand-tested.
1590 Add autotests for Erlang macros.
1591 * tests/erlang.at: Added tests for all macros in erlang.m4.
1592 * tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
1594 * tests/suite.at: Likewise.
1595 * tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
1596 test for extension of Erlang files.
1597 (Multiple languages): Use correct m4 quoting.
1598 * NEWS: Mention this.
1600 2009-07-22 Eric Blake <ebb9@byu.net>
1602 Fix test of autom4te from stdin.
1603 * tests/tools.at (autom4te cache locking): Make stdin request
1604 explicit, so that --force is properly used.
1606 2009-07-16 Eric Blake <ebb9@byu.net>
1608 Don't hide leading space in autom4te --trace output.
1609 * bin/autom4te.in (handle_traces): Don't flatten leading and
1610 trailing space, since tracing spacing bugs can be useful.
1611 * tests/tools.at (autom4te --trace and whitespace): New test.
1613 2009-07-13 Eric Blake <ebb9@byu.net>
1615 Document that $srcdir can be used during configure.
1616 * doc/autoconf.texi (Preset Output Variables): Add a paragraph.
1618 Reported by Monty Taylor.
1620 2009-07-13 Eric Blake <ebb9@byu.net>
1622 Disable asynchronous job notification for parallel tests.
1623 * lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
1624 mode, since zsh leaves it on after 'emulate sh'.
1625 * doc/autoconf.texi (Limitations of Builtins) <set>: Document that
1626 job control options are not portable.
1628 Guarantee that exit status trumps output matching.
1629 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
1631 * tests/autotest.at (Skip, parallel skip): Enhance tests.
1633 Fix nits in recent patches.
1634 * configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
1636 * doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
1638 (Introduction): Recommend m4 1.4.13.
1640 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise. Use long option --gnu
1643 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
1645 Introduce AT_SKIP_IF and AT_FAIL_IF
1646 * NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
1647 * doc/autoconf.texi (Autotest): Document them.
1648 * lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
1649 AT_FAIL_IF, _AT_CHECK_EXIT): New.
1650 (AT_CHECK): Use _AT_LINE_ESCAPED.
1651 * tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
1653 * tests/local.at: Use AT_SKIP_IF.
1655 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
1657 Use m4 -g when available.
1658 * m4/m4.m4: Unset POSIXLY_CORRECT during first test. Test for -g.
1659 Warn user if he has POSIXLY_CORRECT set but -g is not supported.
1660 * bin/Makefile.am: Substitute @M4_GNU@ into generated files.
1661 * bin/autom4te.in: Pass @M4_GNU@ to m4.
1663 2009-07-13 Eric Blake <ebb9@byu.net>
1666 * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
1668 (_AT_DECIDE_TRACEABLE): Likewise.
1670 2009-07-13 Paolo Bonzini <bonzini@gnu.org>
1672 * lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
1673 $at_trace_echo. Add new REASON argument.
1674 (at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
1675 Use $at_check_filter_trace.
1676 (at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
1677 (at_traceon): Initialize to ':'.
1678 (at_traceoff): Remove, use 'set +x' instead throughout.
1679 (at_check_filter_trace, at_trace_echo): New shell variables.
1680 Initialize them if tracing is requested.
1681 (_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
1683 2009-07-12 Paolo Bonzini <bonzini@gnu.org>
1685 Move atlocal feature tests to configure
1686 * configure.ac: Test for unsupported characters in files and
1688 * tests/atlocal.in: ... and not here.
1690 2009-07-09 Eric Blake <ebb9@byu.net>
1693 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
1694 creating file named -.
1696 Fix testsuite under dash.
1697 * tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
1698 (AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
1699 (AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
1700 (Functions Support, Functions and return Support)
1701 (Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
1702 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
1703 (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
1704 (AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
1705 (AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
1706 (_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
1707 options during the testsuite run.
1708 Reported by Ralf Wildenhues.
1710 2009-07-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1712 Ignore messages on stderr when testing for the zsh issue.
1713 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
1715 2009-07-07 Eric Blake <ebb9@byu.net>
1717 Skip parallel tests when zsh 'set -m' fails.
1718 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
1720 Reported by Ralf Wildenhues.
1722 Make parallel testsuite more portable.
1723 * lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
1724 instead open write descriptor in each group and read descriptor in
1726 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
1728 2009-07-03 Eric Blake <ebb9@byu.net>
1730 Avoid syntax error in ash.
1731 * lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
1732 errors on shells that don't recognize <>.
1733 * tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
1734 tests for this reason. Skip based on the shell to be tested,
1735 not the shell driving the testsuite.
1736 (parallel syntax error): Rearrange similar to previous patch.
1737 (parallel test execution): Defer skip until after serial tests.
1739 2009-07-02 Eric Blake <ebb9@byu.net>
1741 Skip test on shells that can't catch syntax failure.
1742 * tests/autotest.at (Syntax error): Skip test if shell aborts on
1743 syntax error (AIX ksh88) or doesn't detect it (zsh).
1744 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
1746 Reported by Ralf Wildenhues.
1748 2009-06-30 Jan Madzik <jmadzik@gmail.com> (tiny change)
1749 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1751 Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
1752 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
1753 one character is output with `\c'; reset echo output state
1754 if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
1755 * doc/autoconf.texi (Limitations of Builtins): Document it.
1756 * tests/m4sh.at (ECHO_C): New test.
1759 2009-06-27 William Pursell <bill.pursell@gmail.com> (tiny change)
1761 Fix grammaro in documenation.
1762 * doc/autoconf.texi (Guidelines): Fix grammaro.
1764 2009-06-17 Eric Blake <ebb9@byu.net>
1766 Fix AC_CHECK_HEADER infloop for gcc.
1767 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
1768 (_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
1769 about obsoletion, to avoid infinite loop in gcc.
1770 Reported by Ralf Wildenhues.
1772 2009-06-15 Eric Blake <ebb9@byu.net>
1774 Add m4_copy_force, m4_rename_force.
1775 * lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
1777 * tests/m4sugar.at (m4@&t@_defn): Test them.
1778 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
1781 Suggested by Ralf Wildenhues.
1783 Reinstate _AC_CHECK_HEADER_OLD for gcc.
1784 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
1785 (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
1786 others used these undocumented macros.
1787 Reported by Ralf Wildenhues.
1789 2009-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791 Fix concurrent autom4te.cache directory creation race.
1792 * bin/autom4te.in: Do not error out if another `autom4te'
1793 instance created the cache directory before we could.
1795 2009-06-11 Steven G. Johnson <stevenj@alum.mit.edu>
1796 and Eric Blake <ebb9@byu.net>
1798 Create a file in test program when detecting cross-compilation.
1799 * lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
1800 program that creates a file.
1801 (_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
1802 and document why it's needed to robustly detect cross-compiling.
1803 (AC_LANG_DEFINE): Copy implementation across similar languages.
1804 * lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
1805 * lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
1807 * lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
1809 2009-06-11 Eric Blake <ebb9@byu.net>
1811 Simplify AC_LANG(Fortran).
1812 * lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
1813 77, which requires reordering portions of the file.
1814 (AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
1817 Clarify m4_copy semantics.
1818 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
1820 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
1822 2009-06-06 Eric Blake <ebb9@byu.net>
1824 Improve documentation on trap pitfalls.
1825 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
1826 Posix 2008 requirement on trap, and dash bug in implementing it.
1827 Mention various shell bugs with traps defined inside subshells.
1828 Mention older bash limitation with single-command exit trap.
1829 <set>: Mention another 'set -e' limitation.
1830 Reported by Jens Schmidt.
1832 2009-06-06 Jim Meyering <meyering@redhat.com>
1834 Improve testsuite --help
1835 * lib/autotest/general.m4: Correct the example in ./testsuite --help.
1838 2009-06-06 Eric Blake <ebb9@byu.net>
1840 Document fallback behavior of AC_PROG_LEX.
1841 * doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
1842 why fallback is :, and that a --version check must be used to
1843 determine whether flex was found.
1844 Reported by Patrick Welche.
1846 2009-05-28 Jim Meyering <meyering@redhat.com>
1848 Fix syntax errors in autoconf.texi.
1849 * doc/autoconf.texi (Erlang Libraries): @-escape curly braces
1852 2009-05-28 Romain Lenglet <romain.lenglet@laposte.net>
1854 New AC_ERLANG_SUBST_ERTS_VER macro.
1855 * lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
1856 * doc/autoconf.texi (Erlang Libraries): Document
1857 AC_ERLANG_SUBST_ERTS_VER.
1859 * AUTHORS: Update Romain Lenglet's email address.
1861 Suggested by Ruslan Babayev.
1863 2009-05-26 Eric Blake <ebb9@byu.net>
1865 Sanitize more problematic environment variables.
1866 * doc/autoconf.texi (Environment Variable Index): Add more
1867 entries, particularly for precious variables and known culprit
1868 variables. Needed to avoid overfull vbox.
1869 (Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
1870 variables known to cause misbehavior.
1871 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
1872 known to cause problems.
1874 Based on reports from Ilya Bobir and Joey Mingrone.
1876 2009-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1878 Document VPATH = $(variable) issue in VPATH chapter.
1879 * doc/autoconf.texi (Variables listed in VPATH): New node.
1880 (Top, VPATH and Make): Adjust menus.
1881 (Build Directories): Refer to it.
1882 Prompted by report from Bruno Haible.
1884 2009-05-19 Eric Blake <ebb9@byu.net>
1886 Update uses of all-permissive license.
1887 * ChangeLog: Relicense under GPL.
1888 * ChangeLog.0: Likewise.
1889 * ChangeLog.1: Likewise.
1890 * ChangeLog.2: Likewise.
1892 * m4/m4.m4: Use latest wording of FSF all-permissive license.
1893 * m4/make-case.m4: Likewise.
1894 * doc/install.texi: Likewise.
1895 * tests/statesave.m4: Relicense to match rest of testsuite; this
1896 file does not need all-permissive license since it is not designed
1897 for reuse by other packages.
1898 * BUGS: Relicense under all-permissive license.
1899 * HACKING: Likewise.
1902 * README-alpha: Likewise.
1903 * README-hacking: Likewise.
1906 Update some upstream files.
1907 * build-aux/config.guess: Resynchronize from upstream.
1908 * build-aux/gnupload: Likewise.
1909 * build-aux/vc-list-files: Likewise.
1910 * build-aux/texinfo.tex: Likewise.
1911 * doc/gendocs_template: Likewise.
1913 Don't mention undocumented interface in NEWS.
1914 * NEWS: Correct earlier entry about AS_FOR.
1916 2009-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1918 New manual section `Parallel Make'.
1919 * doc/autoconf.texi (Parallel Make): New node, document NetBSD
1921 (Top, Portable Make): Adjust menus.
1923 2009-05-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1925 testsuite: skip `Multiple languages' test without C++ compiler.
1926 * tests/compile.at (Multiple languages): Skip test on systems
1927 without a C++ compiler.
1928 Report by Jim Meyering.
1930 2009-05-13 Eric Blake <ebb9@byu.net>
1932 Document zsh bug with empty commands.
1933 * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
1934 more problems with $?.
1936 2009-05-11 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
1938 Also try X11R7 when looking for X11 files, for NetBSD.
1939 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
1940 with X11R7 in the name.
1942 2009-05-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1944 Limit stderr logging for C compiler version.
1945 * lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
1946 internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
1947 an optional additional argument to limit the number of lines of
1948 stderr output logged, defaulting to 10.
1949 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
1950 _AC_DO_LIMIT for capturing compiler version output. Also test
1951 -qversion, for the IBM xlc compiler.
1952 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1954 Report by Christian Rössel and John R. Cary against Libtool.
1956 2009-04-24 Eric Blake <ebb9@byu.net>
1958 Fix quoting of m4 macros in AT_CHECK.
1959 * lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
1960 escapes, to avoid shell syntax errors caused by late macro
1962 * NEWS: Document this change.
1963 * tests/autotest.at (Metacharacters in command from M4 expansion):
1966 manual: Use consistent spelling of here-document.
1967 * doc/autoconf.texi (Defining Symbols, Programming in M4sh)
1968 (Common Shell Constructs, Macro Names, Writing Testsuites): Fix
1970 Reported by Ralf Wildenhues.
1972 Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
1973 * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
1974 undocumented semantics, where unbalanced " cannot be used in the
1975 stdout/stderr argument.
1976 (AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
1977 the text is used in double-quoted context.
1978 * tests/autotest.at (unquoted output): New test.
1979 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
1980 shell expansions are handled.
1982 Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
1983 * lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
1985 (AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
1986 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
1989 * tests/autotest.at (Binary output, Cleanup): Adjust tests.
1990 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1992 Reported by Ralf Wildenhues.
1994 2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1996 New test to ensure autom4te cache file locking works.
1997 * tests/tools.at (autom4te cache locking): New test.
1998 Report by Eric Blake.
2000 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
2002 manual: another grammar improvement.
2003 * doc/autoconf.texi (Fortran Compiler): Avoid dependency on
2004 pronunciation of `FCFLAGS_f90'.
2006 2009-04-23 Eric Blake <ebb9@byu.net>
2008 Change FOO placeholder to use @var{text} instead.
2009 * doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
2010 to AC_CONFIG_@var{ITEMS}.
2011 * doc/autoconf.texi (config.status Invocation): Likewise.
2012 (AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
2013 (AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
2015 2009-04-22 Eric Blake <ebb9@byu.net>
2018 * lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
2019 * NEWS: Document it.
2020 * doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
2021 <m4_car, m4_cdr>: Improve documentation.
2022 * tests/m4sugar.at (m4 lists): New test.
2024 2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2026 Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
2027 * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
2028 and AC_PROG_CC_C99 prefer extended over strict conformance modes.
2029 Report by Vincent Lefèvre.
2031 2009-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2033 Revert bogus change in last commit.
2034 * doc/autoconf.texi (Initialization Macros): Revert change.
2035 Spotted by Eric Blake.
2037 manual: fix trivial grammar errors.
2038 * doc/autoconf.texi (Fortran Compiler, Initialization Macros)
2039 (Limitations of Usual Tools, Pretty Help Strings)
2040 (config.status Invocation): Fix `a' vs. `an' errors.
2041 Report by Eric Blake.
2043 2009-04-21 Eric Blake <ebb9@byu.net>
2045 Shuffle maintainer-specific rules.
2046 * Makefile.am (maintainer-check-tests): Delete.
2047 (autom4te-update): Move...
2048 * cfg.mk (autom4te-update): ...here.
2049 (fetch): Depend on autom4te-update. Split...
2050 (gnulib-update): ...into new rule. Import move-if-change from
2052 * maint.mk (maintainer-distcheck): Absorb former maintainer-check
2054 * build-aux/move-if-change: New file, undistributed.
2055 * .gitattributes: Handle new upstream file.
2056 * .gitignore: Ignore maintainer cruft.
2057 * HACKING: Update maintainer instructions.
2058 * build-aux/config.guess: Update from upstream.
2059 * build-aux/config.sub: Likewise.
2060 * build-aux/gendocs.sh: Likewise.
2061 * build-aux/texinfo.tex: Likewise.
2062 * doc/gendocs_template: Likewise.
2063 * doc/standards.texi: Likewise.
2065 2009-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2067 Sync autom4te perl modules from Automake.
2068 * lib/Autom4te/Channels.pm: Sync from Automake.
2069 * lib/Autom4te/FileUtils.pm: Likewise.
2070 * lib/Autom4te/XFile.pm: Likewise.
2072 Adjust channel definitions for new Automake `ordered' flag.
2073 * lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
2074 `ordered' flag to zero for channels `fatal', `automake', and
2075 `verb'. This has currently no effect on actual semantics but
2076 avoids a consistency check needed for Automake's usage of the
2079 manual: clarify m4_if synopsis.
2080 * doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
2081 m4_if in the presence of more than three arguments.
2083 Improve and clarify `config.status' usage documentation.
2084 * doc/autoconf.texi (config.status Invocation): Fix markup in
2085 synopsis. Use `tag' instead of `file' notation for the
2086 non-option arguments, to be consistent with the documentation
2087 of the AC_CONFIG_* macros.
2088 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
2089 use `tag' notation for non-option arguments.
2090 Report by John Calcote.
2092 2009-04-15 Eric Blake <ebb9@byu.net>
2094 Test that autotest handles binary output.
2095 * tests/autotest.at (Binary output): New test.
2096 Suggested by Ralf Wildenhues.
2098 Add stdout-nolog and ignore-nolog to AT_CHECK.
2099 * lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
2100 (AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
2101 (AT_DIFF_STDOUT(ignore-nolog)): New macros.
2102 * tests/autotest.at (Logging): New test.
2103 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
2104 new logging actions.
2106 Reported by Ralf Wildenhues.
2108 Teach AT_CHECK about hard failures.
2109 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
2110 <at_fn_check_status, at_fn_group_postprocess>: Handle hard
2112 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
2113 AT_CHECK_NOESCAPE and exit status 99.
2115 * tests/autotest.at (Hard fail, Cleanup): New tests.
2117 2009-04-14 Eric Blake <ebb9@byu.net>
2119 Fix yesterday's regression in AS_IF.
2120 * lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
2121 branch; it is up to the user to avoid syntax errors.
2122 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
2124 2009-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2126 Add traces for AM_SILENT_RULES.
2127 * lib/autom4te.in (Automake-preselections): Trace
2130 2009-04-13 Eric Blake <ebb9@byu.net>
2132 Improve documentation related to expanded-before-required.
2133 * doc/autoconf.texi (Expanded Before Required): Add a case study.
2134 (Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
2135 running a compile test will AC_REQUIRE the compiler check.
2136 (Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
2137 (C Compiler) <AC_PROG_CC>: Mention the fact that only first
2138 invocation of this macro checks for $EXEEXT, and that many other
2139 macros use it via AC_REQUIRE.
2140 Reported by Andreas Schwab.
2142 Mention latest rules about make and set -e.
2143 * doc/autoconf.texi (Failure in Make Rules): Posix is now clear
2144 that make must use set -e.
2145 (Limitations of Builtins) <set>: Clarify more about set -e
2148 Improve documentation about if exit status.
2149 * doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
2150 exit status bugs don't affect modern targets.
2151 Reported by Andreas Schwab.
2153 Add cross-reference to new macros.
2154 * doc/autoconf.texi (Text processing Macros) <m4_normalize>
2155 <m4_strip>: Reference the new m4_ifblank.
2156 Suggested by Mike Frysinger.
2158 Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
2159 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
2160 (_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
2161 including a macro with an empty expansion.
2162 * NEWS: Mention this.
2163 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
2165 Reported by Mike Frysinger.
2167 Add m4_blank and friends.
2168 * lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
2169 (m4_default_nblank_quoted): New macros.
2170 * NEWS: Document them.
2171 * doc/autoconf.texi (Conditional constructs): Likewise.
2172 * tests/m4sugar.at (m4sugar shorthand conditionals): New test.
2173 Suggested by Mike Frysinger.
2175 2009-04-13 Eric Blake <ebb9@byu.net>
2177 Finish upgrade to GFDL 1.3.
2178 * doc/autoconf.texi (copying): Use correct license; comment change
2179 was missed on 2008-11-04.
2181 2009-04-10 Eric Blake <ebb9@byu.net>
2183 Test parallel handling of syntax error.
2184 * tests/autotest.at (parallel syntax error): New test.
2185 Suggested by Ralf Wildenhues.
2187 2009-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2189 Document awk and config.status line length limitations.
2190 * doc/autoconf.texi (Configuration Actions): The input to
2191 config.status should have reasonable line length.
2192 (Limitations of Usual Tools): Document IRIX, HP-UX awk input
2194 Report by Bruno Haible.
2196 Skip `Multiple languages' test if CC is a C++ compiler.
2197 * tests/compile.at (Multiple languages): Before starting the
2198 test proper, build and run a configure script that tests the
2199 C compiler only, and skips the test if this is found to be a
2201 Report by Eric Blake.
2203 Note that AC_DEFUN is needed for aclocal.
2204 * doc/autoconf.texi (Coding Style): Public third-party macros
2205 should be AC_DEFUN'ed.
2206 Report by John Calcote.
2208 2009-04-10 Eric Blake <ebb9@byu.net>
2210 Add undocumented _AS_CLEAN_DIR.
2211 * lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
2213 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
2215 * tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
2216 Reported by Ralf Wildenhues.
2218 2009-04-09 Eric Blake <ebb9@byu.net>
2220 Avoid problems caused by deleting in-use directory.
2221 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
2222 remove the contents of $at_group_dir, not the directory itself.
2224 Fix regression in empty test.
2225 * lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
2226 use in empty test. Fixes regression introduced 2009-04-06.
2227 (_AT_CHECK): Undo fallback when a test is not empty.
2228 (AT_CLEANUP): Expand AT_ingroup before deleting.
2230 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2232 Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
2233 * lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
2234 not crosscompiling to an obsolete system.
2236 2009-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2238 Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
2239 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
2240 Automake relies on this macro.
2242 2009-04-06 Eric Blake <ebb9@byu.net>
2244 Reduce testsuite size.
2245 * tests/statesave.m4: New file.
2246 * tests/Makefile.am (EXTRA_DIST): Distribute it.
2247 * tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
2248 repeating inline definition of AC_STATE_SAVE.
2249 (AT_CHECK_ENV): Factor code...
2250 (_AT_CHECK_ENV): ...into shell function.
2251 * tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
2253 Handle shell comments in AT_CHECK.
2254 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
2255 test correctly. Latent bug in handling shell comment was first
2256 fixed 2008-11-20, but regressed two patches later.
2257 * tests/autotest.at (Shell comment in command): New test.
2258 * NEWS: Document the fix.
2260 Hard fail any test with syntax errors.
2261 * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
2262 Guarantee test failure on syntax error, rather than inheriting
2263 status from previous test.
2264 * tests/autotest.at (Syntax error): New test.
2266 2009-03-31 Eric Blake <ebb9@byu.net>
2268 Beta Release Version 2.63b.
2269 * NEWS: Mention the release.
2270 * README: Clarify that this is a beta release.
2271 * build-aux/texinfo.tex: Synchronize from upstream.
2272 * .x-sc_trailing_blank: Exempt more upstream files.
2274 2009-03-30 Eric Blake <ebb9@byu.net>
2276 Fix testsuite failures under zsh.
2277 * tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
2278 set by zsh -c 'emulate sh'.
2279 Reported by Ralf Wildenhues.
2281 For now, skip parallel tests under less-tested shells.
2282 * tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
2283 (Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
2284 (Fallacy, Skip, errexit, Long test source lines)
2285 (Debugging a successful test, Debugging script and environment)
2286 (Debugging a failed test, Using atlocal)
2287 (Choosing where testsuite is run): Adjust callers.
2288 (AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
2289 under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined. Makes
2290 it easier to avoid testsuite hangs for users with dash or other
2292 (parallel test execution, parallel truth, parallel fallacy)
2293 (parallel skip, parallel errexit)
2294 (parallel autotest and signal handling): Use it.
2295 * BUGS: Mention this.
2297 2009-03-24 Andris Pavenis <andris.pavenis@iki.fi> (tiny change)
2299 Fix awk substitution of carriage returns on DJGPP.
2300 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
2301 generation of ac_cs_awk_cr.
2304 2009-03-24 Aaron W. LaFramboise <aaronenvelope277@aaronwl.com> (tiny change)
2306 Work around cygwin bash igncr mode.
2307 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
2308 bash carriage returns if ac_cr lost \r from ``.
2310 Suggested by Eric Blake.
2312 2009-03-24 Eric Blake <ebb9@byu.net>
2314 Fix underquoted example in manual.
2315 * doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
2316 Properly m4-quote #.
2317 * THANKS: Update spelling.
2318 Reported by Matěj Týč.
2320 2009-03-18 Eric Blake <ebb9@byu.net>
2322 Manual: mention more expr pitfalls.
2323 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
2324 Mention HP-UX limitation, and $ ambiguity.
2326 Reported by Jens Schmidt, in http://bugs.debian.org/466990.
2328 2009-03-17 Jim Meyering <meyering@redhat.com>
2331 * lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
2333 2009-03-17 Eric Blake <ebb9@byu.net>
2335 Use test consistently in examples.
2336 * doc/autoconf.texi (Subdirectories, Caching Results)
2337 (Common Shell Constructs, Prerequisite Macros, Coding Style)
2338 (Changed Results, Particular Programs, Defining Symbols):
2339 Protect against arbitrary user strings.
2340 (Multiple Cases): Mention why $fstype does not need protection.
2341 Reported by Reuben Thomas.
2343 Improve confusing section names.
2344 * doc/autoconf.texi (Specifying Names): Rename node...
2345 (Specifying Target Triplets): ...to this.
2346 (Generic Programs): Adjust references.
2347 * doc/install.texi (System Type): Touch up formatting.
2349 Reported by Tim Freeman, in http://bugs.debian.org/312873.
2351 Remove historical inaccuracy.
2352 * doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
2353 #!/bin/sh needing a space.
2354 Reported by Reuben Thomas.
2356 Recommend AS_HELP_STRING more prominently.
2357 * doc/autoconf.texi (External Software): Reduce mention of
2358 hand-written help strings.
2359 Reported by Reuben Thomas.
2361 2009-03-16 Eric Blake <ebb9@byu.net>
2364 * doc/autoconf.texi (Balancing Parentheses): Fix usage of
2366 Reported by Ralf Wildenhues, fix suggested by Karl Berry.
2368 2009-03-14 Eric Blake <ebb9@byu.net>
2370 Resync upstream files.
2371 * GNUmakefile: Run 'make fetch'.
2372 * build-aux/announce-gen: Likewise.
2373 * build-aux/config.guess: Likewise.
2374 * build-aux/config.sub: Likewise.
2375 * build-aux/gnupload: Likewise.
2376 * build-aux/texinfo.tex: Likewise.
2377 * build-aux/vc-list-files: Likewise.
2378 * doc/gnu-oids.texi: Likewise.
2379 * doc/standards.texi: Likewise.
2381 2009-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2383 New test for SunStudio `restrict' handling.
2384 * tests/c.at (AC_C_RESTRICT and C++): New test.
2385 Prompted by bug report from Rolf Vandevaart.
2387 2009-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2389 Manual: testsuite depends on package.m4.
2390 * doc/autoconf.texi (Making testsuite Scripts): In the example
2391 makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
2393 2009-03-02 Allan Caffee <allan.caffee@gmail.com> (tiny change)
2395 Fix a typo in comment for AS_LITERAL_IF.
2396 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
2397 out of date when this function was moved/renamed in 59ecd766.
2400 2009-03-02 Eric Blake <ebb9@byu.net>
2402 Improve wording for AS_ESCAPE.
2403 * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
2405 * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
2406 Reported by Ralf Wildenhues.
2408 2009-02-24 Eric Blake <ebb9@byu.net>
2410 Use pkgdatadir consistently.
2411 * bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
2412 * lib/Makefile.am (edit): Likewise.
2413 * lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
2414 (M4sugar): Use @pkgdatadir@, not @datadir@.
2415 * bin/autoheader.in ($datadir): Likewise.
2416 * bin/autom4te.in ($datadir): Likewise.
2417 * bin/autoreconf.in ($datadir): Likewise.
2418 * bin/autoscan.in ($datadir): Likewise.
2419 * bin/autoupdate.in ($datadir): Likewise.
2420 * bin/ifnames.in ($datadir): Likewise.
2421 * doc/autoconf.texi (Installation Directory Variables): Update
2422 example to be consistent; focus on $(bindir) as an autoconf
2423 variable, and mention that $(pkgdatadir) comes from automake.
2424 Reported by Reuben Thomas.
2426 2009-02-19 Eric Blake <ebb9@byu.net>
2428 Use m4_translit more efficiently in AS_ESCAPE.
2429 * lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
2430 of set separately from rest.
2431 (AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
2433 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
2434 characters in translit request.
2435 * doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
2439 Mention recently documented macros.
2440 * NEWS: Update list of new documentation.
2442 2009-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2444 Add index for config.site.
2445 * doc/autoconf.texi (Site Defaults): Add index for config.site.
2447 Report by Stephen P. Schaefer.
2449 2009-02-12 Eric Blake <ebb9@byu.net>
2451 Fix m4_set speed regression introduced 2008-12-18.
2452 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
2453 creating larger argument on each iteration.
2454 (m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
2455 (_m4_set_contents_2): Adjust all four-argument callers.
2457 2009-02-05 Eric Blake <ebb9@byu.net>
2459 Mention new AC_DEFUN_ONCE clients.
2460 * NEWS: Mention recent semantic changes.
2461 Reported by Ralf Wildenhues.
2463 2009-02-03 Eric Blake <ebb9@byu.net>
2465 Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
2466 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
2467 AC_DEFUN_ONCE, since this is a one-shot macro.
2468 (AC_PROG_INSTALL): Likewise.
2470 2009-02-03 Eric Blake <ebb9@byu.net>
2472 Mention that packagers should not pre-set CFLAGS.
2473 * doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
2474 advice given by automake on handling variables reserved by GNU
2476 Reported by Karl Berry.
2478 Document lib64 in config.site.
2479 * doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
2480 Mention use of lib64.
2482 Reported by Tom Browder, with help from Peter Breitenlohner.
2484 2009-01-28 Eric Blake <ebb9@byu.net>
2486 Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
2487 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
2488 AC_DEFUN_ONCE, since this is a one-shot macro.
2489 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2490 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
2491 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
2493 2009-01-28 Eric Blake <ebb9@byu.net>
2495 Reduce blank lines in AC_DEFUN_ONCE macros.
2496 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
2497 line when a defun_once macro is required.
2498 (_m4_defun_once): New helper macro, for less memory use.
2499 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
2501 Silence another false positive expand-before-require.
2502 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
2503 (_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
2504 that caused a diversion change, not just diversion number.
2505 (m4_require): Factor...
2506 (_m4_require_check): ...into new macro, which also checks whether
2507 diversion that performed the expansion has been collected.
2508 * tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
2509 Reported by Ralf Wildenhues.
2511 2009-01-28 Eric Blake <ebb9@byu.net>
2513 Fix AC_C_RESTRICT for Sun Studio 12 C++.
2514 * lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
2515 __restrict__ rather than _Restrict, which still trips up Sun
2518 Reported by Rolf Vandevaart.
2520 2009-01-28 Eric Blake <ebb9@byu.net>
2522 Fix years in copyright notices.
2523 * lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
2524 undocumented for now.
2525 * lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
2527 (RELEASE_YEAR): New macro, copied from bin/Makefile.am.
2528 * lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
2529 (AC_COPYRIGHT): Add undocumented third parameter.
2530 (_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
2531 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
2532 * lib/autotest/general.m4 (AT_INIT): Likewise.
2533 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
2534 (AT_COPYRIGHT): Add undocumented third parameter.
2535 * tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
2536 parameter; the generic copyright given by autotest is sufficient
2537 since we are the package that owns autotest.
2539 2009-01-27 Eric Blake <ebb9@byu.net>
2541 Use URLs in --help output, part 3: testsuite.
2542 * doc/autoconf.texi (Writing Testsuites): Mention autotest
2544 (Writing Testsuites) <AT_INIT>: Mention mandatory macros.
2545 (Making testsuite Scripts): Document AT_PACKAGE_URL.
2546 * tests/Makefile.am (package.m4): Follow our own advice.
2547 * lib/autotest/general.m4 (AT_INIT): Give the user a hint about
2548 package.m4. Enhance --help output.
2549 (_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
2551 Use URLs in --help output, part 2: configure.
2552 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
2554 (_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
2556 (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
2557 (_AC_INIT_HELP): Use it in './configure --help' output.
2558 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
2559 './config.status --help'. Bump copyright date.
2560 * doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
2563 * tests/tools.at (autoheader): Adjust test.
2564 * tests/torture.at (@%:@define header templates)
2565 (Torturing config.status): Likewise.
2567 Use URLs in --help output, part 1: autoconf executables.
2568 * bin/autoconf.as (usage): Make output consistent with recent
2569 change in gnulib version-etc module.
2570 * bin/autoheader.in ($help): Likewise.
2571 * bin/autom4te.in ($help): Likewise.
2572 * bin/autoreconf.in ($help): Likewise.
2573 * bin/autoscan.in ($help): Likewise.
2574 * bin/autoupdate.in ($help): Likewise.
2575 * bin/ifnames.in ($help): Likewise.
2577 2009-01-27 Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
2579 Quote traced macros passed from autom4te to M4.
2580 * bin/autom4te (handle_m4): Apply shell_quote to macro names.
2581 * tests/tools.at (autom4te --trace and unusual macro names): New
2585 2009-01-26 Eric Blake <ebb9@byu.net>
2587 Improve AC_DEFUN_ONCE semantics.
2588 * lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
2589 rather than warning, on second use, and make sure first use never
2590 occurs out of order.
2591 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
2593 * tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
2594 (AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
2595 * NEWS: Document this.
2596 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
2598 (Prerequisite Macros) <AC_REQUIRE>: Likewise.
2599 (Expanded Before Required): Likewise.
2600 (One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
2601 Reported by Bruno Haible, with suggestion by Paolo Bonzini.
2603 2009-01-24 Eric Blake <ebb9@byu.net>
2605 Fix typos in recent patches.
2606 * lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
2607 * doc/autoconf.texi (Expanded Before Required): Fix typos.
2608 Reported by Ralf Wildenhues.
2610 Revert change to AC_DIR_HEADER.
2611 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
2612 AC_HEADER_DIRENT no longer triggers a warning, and helps the user
2613 who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
2614 Reported by Paolo Bonzini.
2616 2009-01-22 Eric Blake <ebb9@byu.net>
2618 Silence a false positive expand-before-require case.
2619 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
2620 which a macro was provided.
2621 (m4_require): Compare diversion numbers, rather than m4_require
2622 nesting, when determining direct requires.
2623 * tests/m4sugar.at (m4@&t@_require: nested): Test it.
2624 Reported by Ralf Wildenhues, affecting Libtool.
2626 2009-01-21 Eric Blake <ebb9@byu.net>
2628 Fix out-of-order expansion with expand-before-require.
2629 * lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
2630 required macro when issuing expand-before-require warning.
2631 * doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
2632 (Expanded Before Required): New node.
2633 * tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
2634 * NEWS: Mention this fix.
2635 Suggested by Bruno Haible.
2637 Warn if macro is provided before indirectly required.
2638 * lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
2639 provided since last outermost defun.
2640 (_m4_defun_pro_outer): Empty the set.
2641 (_m4_require_call): Distinguish between direct and indirect
2642 requires, and remove required macros from the set.
2643 (m4_require): Check the set, in order to warn.
2644 * tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
2645 test case for direct requires.
2647 2009-01-20 Eric Blake <ebb9@byu.net>
2649 Clean up some bugs caught by preliminary dependency validation.
2650 * lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
2651 AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
2652 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
2653 (_AS_SHELL_SANITIZE): Fix quoting bugs.
2655 2009-01-19 Eric Blake <ebb9@byu.net>
2657 Improve AC_REQUIRE documentation.
2658 * doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
2659 and mention interaction with AC_REQUIRE.
2660 (Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
2661 ordering constraint bug, and how to fix it.
2662 * tests/m4sugar.at (m4@&t@_require: nested): New test.
2664 Speed up m4_require.
2665 * lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
2666 always be defined, as either empty or a number.
2667 (_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
2668 as a stack, rather than a one-shot macro.
2669 (_m4_require_call): Expect third argument to be pre-expanded.
2670 (m4_divert_require, m4_require): Adjust clients accordingly.
2671 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
2673 2009-01-17 Eric Blake <ebb9@byu.net>
2675 Avoid underfull hbox.
2676 * doc/autoconf.texi (Installation Directory Variables): Reword to
2679 2009-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2681 Ignore `set -e'-related failure of NetBSD sh.
2682 * tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
2683 fails to finish EXIT trap after set -e.
2685 2009-01-06 Eric Blake <ebb9@byu.net>
2687 Maintainer cleanups.
2688 * cfg.mk (web-manual): Use new feature of gendocs.
2689 (fetch): Fetch gendocs.
2690 * Makefile.am (EXTRA_DIST): Distribute new file.
2691 * doc/Makefile.am (EXTRA_DIST): Likewise.
2692 * .gitattributes: Ignore whitespace in upstream files.
2693 * HACKING (Other web updates): Update Free Software Directory
2695 (Upload): No longer mention xdelta.
2696 * maint.mk (xd-delta): Likewise.
2697 * build-aux/gendocs.sh: New upstream file.
2698 * doc/gendocs_template: Likewise.
2699 * build-aux/announce-gen: Resync from upstream.
2700 * build-aux/config.guess: Likewise.
2701 * build-aux/config.sub: Likewise.
2702 * build-aux/gnupload: Likewise.
2703 * build-aux/texinfo.tex: Likewise.
2705 2008-12-30 Eric Blake <ebb9@byu.net>
2707 Make it easier to track diversion bugs.
2708 * lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
2709 internal macros, which are easier to trace than m4_builtin.
2710 (m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
2711 (m4_undivert): Use them.
2712 (_m4_require_call): Likewise. Use fewer macros.
2713 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
2715 2008-12-26 Bruno Haible <bruno@clisp.org>
2717 Improve multiarch detection.
2718 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
2719 indicating a universal build more reliable.
2721 2008-12-28 William Pursell <bill.pursell@gmail.com> (tiny change)
2723 Use AS_CASE in documented example.
2724 * doc/autoconf.texi (Using the System Type): Use AS_CASE in
2725 example instead of raw case.
2727 2008-12-23 Eric Blake <ebb9@byu.net>
2729 Make m4_dumpdef more useful with M4 1.6.
2730 * lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
2731 (m4_init): Install it for new enough m4.
2732 * tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
2733 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
2736 2008-12-24 Bruno Haible <bruno@clisp.org>
2738 Improve INSTALL for HP-UX.
2739 * doc/install.texi (Particular Systems): For HP-UX, also recommend
2740 -D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
2743 2008-12-22 Bruno Haible <bruno@clisp.org>
2745 Improve INSTALL for Haiku.
2746 * doc/install.texi (Particular Systems): Add a recommendation
2747 which prefix to use on Haiku.
2749 2008-12-19 Eric Blake <ebb9@byu.net>
2751 Fix typo in previous commit.
2752 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
2755 Document some recently added macros.
2756 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
2758 * doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
2759 <m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
2761 (Set manipulation Macros) <m4_set_map_sep>: Likewise.
2762 * tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
2763 * NEWS: Document new macros.
2765 2008-12-18 Eric Blake <ebb9@byu.net>
2767 Fix separator in m4_stack_foreach_sep.
2768 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
2770 * tests/m4sugar.at (m4@&t@_stack): Enhance test.
2772 2008-12-18 Eric Blake <ebb9@byu.net>
2774 Mention limitation of M4 1.4.x on builtin tokens.
2775 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
2776 ramification of M4 1.4.x's inability to pass builtin tokens
2777 through text macros.
2778 (Evaluation Macros) <m4_curry>: Likewise.
2779 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
2780 * NEWS: Mention subtle change in m4_dumpdef semantics.
2782 Document m4_version_prereq.
2783 * doc/autoconf.texi (Number processing Macros)
2784 <m4_version_prereq>: Add documentation.
2786 Reported by Bruno Haible.
2788 2008-12-10 Jim Meyering <meyering@redhat.com>
2790 AC_HEADER_ASSERT: don't say assertions are disabled when they're not
2791 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
2792 report "checking whether to enable assertions... no", when they are
2793 in fact enabled. This is solely a bug in the output of configure.
2794 In spite of saying "no", NDEBUG was not defined in that case.
2795 Also, as noted by Eric Blake, leave assertions enabled upon
2796 --enable-assert=INVALID.
2798 2008-12-09 Eric Blake <ebb9@byu.net>
2800 Fix m4_location inside m4_wrap with m4 1.4.5.
2801 * lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
2802 inside wrapped text if older m4 is detected.
2803 Reported by William Pursell.
2805 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
2806 and Eric Blake <ebb9@byu.net>
2808 Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
2809 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
2810 rather than treating it as a synonym for --disable-assert.
2811 * NEWS: Document the fix.
2813 2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
2815 Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
2816 treat --enable-assert and --disable-assert equivalently.
2817 * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
2819 2008-12-05 William Pursell <bill.pursell@gmail.com> (tiny change)
2821 Fix some typos and grammatical errors in documentation.
2822 * doc/autoconf.texi: Clean up some bad use of English.
2824 2008-12-03 Eric Blake <ebb9@byu.net>
2826 Improve AC_STATE_SAVE.
2827 * tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
2828 process by hoisting the uniqueness check into sed.
2829 * doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
2832 2008-12-02 Eric Blake <ebb9@byu.net>
2834 Avoid MacOS readdir bug in testsuite.
2835 * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
2836 duplicated ls entries.
2838 Reported by Bruce Dugan and others.
2840 2008-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2842 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
2843 error messages about `set -m'.
2845 2008-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2847 Fix a couple of test failures with dash.
2848 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
2849 exit status of `cd'.
2850 * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
2851 regeneration, to avoid timing effects.
2853 2008-11-25 Eric Blake <ebb9@byu.net>
2856 * lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
2857 * lib/autotest/general.m4 (AT_INIT): Use it.
2858 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
2859 * tests/m4sugar.at (m4@&t@_divert_stack): Test it.
2860 * doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
2863 Suggested by Paolo Bonzini.
2865 Add safety check for m4_expand vs. diversions.
2866 * lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
2868 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
2871 2008-11-24 Eric Blake <ebb9@byu.net>
2873 Fix typo in AS_MESSAGE_LOG_FD patch.
2874 * lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
2876 2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2878 More reliable signal handling in Autotest.
2879 * lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
2880 Start parallel jobs in their own process group, enabling job
2881 control in the shell if possible, for better signal handling.
2882 Deal with INT, TERM, and HUP in the testsuite driver. In the
2883 parallel driver, propagate TSTP to jobs either as TSTP or as
2884 STOP (to avoid fork bombs with ksh).
2885 Inside the job processes, add PIPE handler to write back the
2886 job token, so the master process does not hang.
2887 Disable the parallel driver if job control is not provided or if
2888 trap does not understand signal names.
2889 * tests/autotest.at (parallel autotest and signals): New test,
2890 exercises INT, TERM, and PIPE, serial and parallel, with and
2891 without `make' in the loop.
2892 Kudos to Richard Stevens for writing APUE.
2894 2008-11-22 Eric Blake <ebb9@byu.net>
2896 Fix testsuite failure on Solaris.
2897 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
2898 failure status to 1.
2900 2008-11-21 Eric Blake <ebb9@byu.net>
2902 Clean up AS_MESSAGE_LOG_FD usage.
2903 * lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
2904 (AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
2905 (_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
2907 (AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
2908 * tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
2909 (AS@&t@_MESSAGE_FD): New test.
2910 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
2911 Give more details about fd manipulation.
2912 (File Descriptor Macros): Describe M4sh defaults for the fds.
2914 2008-11-21 Eric Blake <ebb9@byu.net>
2916 Use shell function for AS_ERROR.
2917 * lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
2920 (_AS_LINENO_PREPARE): Break circular dependency.
2921 (AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
2923 2008-11-21 Eric Blake <ebb9@byu.net>
2925 Fix typos in recent testsuite improvements.
2926 * lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
2928 * NEWS: Clarify the potential impact to users.
2929 * tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
2931 (AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
2932 (unusual file names): Test that the recent echo fix does not
2933 regress. Fix quoting bug that made the test a no-op.
2934 Reported by Paolo Bonzini and Ralf Wildenhues.
2936 2008-11-21 Eric Blake <ebb9@byu.net>
2938 Use modern m4sh constructs in autoconf.
2939 * bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
2942 Change the semantics of AS_EXIT without argument.
2943 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
2945 (AS_ERROR): Guarantee non-zero status.
2946 * bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
2947 we want non-zero status.
2948 * tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
2949 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
2951 <AS_SET_STATUS>: Don't overly restrict implementation.
2952 (Printing Messages) <AC_MSG_ERROR>: Describe better default.
2953 Suggestions by Paolo Bonzini and Ralf Wildenhues.
2955 2008-11-21 Eric Blake <ebb9@byu.net>
2957 Add @anchors within Builtins and Usual Tools lists.
2958 * doc/autoconf.texi (Limitations of Builtins)
2959 (Limitatations of Usual Tools): Add anchors for tools called out
2960 by name. Adjust callers to narrow in on tool of interest.
2962 Move case statement style discussion to m4 quoting section.
2963 * doc/autoconf.texi (Limitations of Builtins): Move comparison of
2965 (Balancing Parentheses): ...to this new node.
2966 Suggested by Ralf Wildenhues.
2968 2008-11-20 Eric Blake <ebb9@byu.net>
2970 Factor more common code out of AT_CHECK into shell function.
2971 * lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
2972 starts with -. Move preparations...
2973 (AT_INIT) <at_fn_check_prepare_trace>
2974 <at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
2975 ...into these new shell functions.
2976 <at_fn_check_newline>: Inline into only caller.
2977 (_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
2979 2008-11-20 Eric Blake <ebb9@byu.net>
2981 Handle version numbers as decimal, even if they start with 0.
2982 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
2983 interpreting leading zeros as octal.
2985 2008-11-20 Eric Blake <ebb9@byu.net>
2988 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
2989 third and fourth arguments once.
2990 (_AT_CHECK): Don't re-expand expected output. Rearrange code for
2991 fewer scans of arguments.
2992 (AT_CHECK): Update caller.
2993 (AT_INIT) <at_fn_filter_trace>: Drop parameter.
2994 * tests/m4sugar.at (m4@&t@_split): Protect test with
2997 Fix XFAIL related to AT_CHECK.
2998 * lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
2999 first argument once.
3000 (_AT_CHECK): Don't re-expand commands.
3001 * tests/autotest.at (Multiline command from M4 expansion): Remove
3003 * tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
3004 * NEWS: Document the fallout.
3006 2008-11-20 Eric Blake <ebb9@byu.net>
3008 Reduce forks in AC_DEFINE.
3009 * lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
3010 (_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
3012 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
3013 * tests/torture.at (Substitute and define special characters):
3014 (Define to a 2000-byte string): Enhance tests to cover
3016 (@%:@define header templates): Enhance test to cover #.
3018 2008-11-20 Eric Blake <ebb9@byu.net>
3020 Improve m4_expand robustness, part 2.
3021 * lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
3022 comments, by wrapping old implementation...
3023 (_m4_expand): ...as this, and renaming old core...
3024 (_m4_expand_): ...to this.
3025 (m4_text_box): Use lighter-weight _m4_expand.
3026 * lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
3027 (_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
3028 * lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
3029 * tests/m4sugar.at (m4@&t@_expand): Enhance test.
3030 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
3031 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
3034 Improve m4_expand robustness, part 1.
3035 * lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
3037 * tests/m4sugar.at (m4@&t@_expand): New test.
3039 2008-11-20 Eric Blake <ebb9@byu.net>
3041 Add m4_chomp, m4_esyscmd_s.
3042 * lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
3044 * doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
3046 (Text processing Macros) <m4_chomp>: Likewise.
3048 * tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
3051 * lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
3052 to make callers guarantee a match.
3053 (m4_init): Adjust caller.
3054 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3055 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
3057 Describe different hacks for balancing ')' in case statements.
3058 * doc/autoconf.texi (Limitations of Builtins) <case>: Add an
3059 exposition on various quoting styles.
3061 2008-11-20 Eric Blake <ebb9@byu.net>
3064 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
3065 (_AS_QUOTE): ...here, delete unused second paramenter, and factor
3067 (_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
3069 2008-11-20 Alfred G. de Wijn <dwijn@iluvatar.eu.org> (tiny change)
3071 For consistency, make temporary variable match language name.
3072 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
3073 Match the save/test variables' names to the FFLAGS/FCFLAGS being
3077 2008-11-19 Eric Blake <ebb9@byu.net>
3079 Improve testsuite generation.
3080 * tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
3081 (AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@. Use
3084 2008-11-18 Eric Blake <ebb9@byu.net>
3086 Use fn for shell functions, func for autoconf CHECK_FUNCS.
3087 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
3089 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
3090 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
3091 (AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
3092 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3093 (_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
3094 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
3095 (_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
3096 * lib/autotest/general.m4 (AT_INIT): Likewise.
3097 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
3098 (AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
3099 (_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
3100 (_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
3101 * doc/autoconf.texi (Shell Functions): Likewise.
3103 2008-11-18 Eric Blake <ebb9@byu.net>
3105 Alter default value of AS_EXIT.
3106 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
3107 parameter be optional.
3108 (AS_EXIT): Use it to make better default.
3109 (_AS_DETECT_BETTER_SHELL): Use new default.
3110 * bin/autoconf.as (exit_missing_arg, getopt): Likewise.
3111 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
3112 * tests/m4sh.at (AS@&t@_EXIT): Update test.
3113 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
3114 new default behavior.
3115 (Limitations of Builtins) <trap>: Adjust to use new default.
3116 * NEWS: Mention the semantic change.
3117 Suggested by Ralf Wildenhues.
3119 Update example to match actual Tru64 behavior.
3120 * doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
3122 Reported by Ralf Wildenhues.
3124 Add AS_SET_STATUS, make AS_EXIT more efficient.
3125 * lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
3127 (AS_EXIT): Rewrite to avoid forks.
3128 (_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
3129 (AS_PREPARE, _AS_PREPARE): Add new preparation.
3130 * doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
3132 * NEWS: Mention new macro.
3133 * tests/m4sh.at (AS@&t@_EXIT): New test.
3134 (BASENAME_TEST): Sort.
3136 Document Tru64 bug with 'set -e'.
3137 * doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
3138 bug in mixing 'set -e' with 'trap .. 0'.
3139 Reported by Ralf Wildenhues.
3141 Document a Solaris /bin/sh bug with 'set -e'.
3142 * doc/autoconf.texi (Shell Functions): Mention the bug.
3144 2008-11-17 Eric Blake <ebb9@byu.net>
3146 Detect empty list in AS_FOR.
3147 * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
3149 * tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
3150 Reported by Paolo Bonzini.
3152 2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3154 Use a different workaround for an automake quirk.
3155 * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3156 (distclean_generic): New helper variable, to fool automake.
3157 ($(distclean_generic)): Depend on clean-local, to prevent
3158 the race in the two rules with accessing and removing
3160 Report by Eric Blake.
3162 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
3163 unbalanced parentheses from last change.
3164 Spotted by Eric Blake, fix suggested by Paolo Bonzini.
3166 Fix exit status of expr version of as_func_arith.
3167 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
3168 status of 1 of expr also as success, to avoid failure if the
3169 computation result is zero. Fixes test failures with IRIX sh,
3170 where the expr variant of as_func_arith is used.
3172 Do not use read-only variable $status.
3173 * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
3176 2008-11-15 Eric Blake <ebb9@byu.net>
3178 Use the new AS_FOR function.
3179 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
3180 abstraction for cleaner code.
3181 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3183 Add AS_FOR, undocumented for now.
3184 * lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
3185 * tests/m4sh.at (AS@&t@_FOR): New test.
3186 Suggested by Paolo Bonzini.
3188 2008-11-13 Eric Blake <ebb9@byu.net>
3190 Optimize single-argument loop.
3191 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
3192 loop only has one argument.
3193 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
3195 2008-11-13 Eric Blake <ebb9@byu.net>
3197 Fix AS_ESCAPE usage bugs.
3198 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
3199 (_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
3201 (AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
3202 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
3203 caveat due to conditional AS_ESCAPE.
3204 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
3206 2008-11-12 Eric Blake <ebb9@byu.net>
3208 Whitespace reduction in configure.
3209 * lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
3210 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
3212 (_AC_DEFINE_Q): Restore empty line, since some clients in the wild
3215 2008-11-12 Eric Blake <ebb9@byu.net>
3217 Make M4sh, not autoconf, guarantee sane $SHELL.
3218 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
3220 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
3221 * doc/autoconf.texi (Initialization Macros): Document the effect
3223 * tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
3224 Reported by Ralf Wildenhues.
3226 2008-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3228 Wrap keywords in `testsuite --list' output.
3229 * lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
3230 avoid lint warnings from gawk, wrap keyword lists to stay below
3231 80 characters per line if possible.
3232 * tests/autotest.at (Keyword wrapping): New test.
3234 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
3236 * doc/autoconf.texi (Conditional constructs, Macro Names): Fix
3239 2008-11-10 Eric Blake <ebb9@byu.net>
3241 Work around <=m4-1.4.9 bug in m4_format.
3242 * lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
3243 (m4_init): Only use it in older m4.
3244 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
3245 m4_format bug in older m4.
3246 * lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
3247 Reported by Bob Proulx.
3249 2008-11-10 Eric Blake <ebb9@byu.net>
3251 Match upstream standards.texi.
3252 * doc/standards.texi: Resync from upstream.
3253 * doc/fdl-1.3.texi: Rename...
3254 * doc/fdl.texi: ...to this.
3255 * doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
3257 * doc/autoconf.texi (GNU Free Documentation License): Likewise.
3258 * cfg.mk (fetch): Likewise.
3260 Yet more FDL 1.3 fallout.
3261 * NEWS: Mention manual license change.
3263 2008-11-10 Eric Blake <ebb9@byu.net>
3265 Avoid some regex uses.
3266 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
3267 than m4_bpatsubst to grab string prefix.
3268 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
3269 (_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
3270 (_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
3271 m4_bpatsubst to change bytes.
3272 (_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
3273 m4_bmatch to find byte.
3274 (_AC_CONFIG_COMPUTE_DEST): New helper macro.
3276 Use more efficient macros in AC_CONFIG_SUBDIRS.
3277 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
3279 (_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
3280 (_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
3282 Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
3283 * lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
3285 (AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
3286 (_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
3288 (AC_LIBSOURCES): Use m4_map_args.
3290 Use more efficient macros in AC_CHECK_TYPES.
3291 * lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
3293 (_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
3295 Use more efficient macros in AC_CHECK_HEADERS.
3296 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
3297 (AH_CHECK_HEADERS_DIRENT): Rename...
3298 (_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
3299 argument, rather than a list.
3300 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
3301 Adjust callers to use m4_map_args_w.
3302 (AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
3303 (_AC_CHECK_HEADER_ONCE): New helper macro.
3305 Use more efficient macros in AC_CHECK_FUNCS.
3306 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
3307 (_AH_CHECK_FUNC): ...and take only one argument, rather than a
3309 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
3311 (_AC_CHECK_FUNC_ONCE): New helper macro.
3312 (AC_REPLACE_FUNCS): Use m4_map_args_w.
3314 Use more efficient macro in AT_INIT.
3315 * lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
3317 2008-11-10 Eric Blake <ebb9@byu.net>
3319 More FDL 1.3 fallout.
3320 * cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
3321 * doc/Makefile.am (standards_TEXINFOS): Reflect upstream
3323 * doc/fdl.texi: Delete.
3324 * doc/gnu-oids.texi: New upstream file.
3325 * doc/standards.texi: Resync from upstream.
3326 * doc/make-stds.texi: Likewise.
3327 * build-aux/announce-gen: Likewise.
3328 * build-aux/texinfo.tex: Likewise.
3330 2008-11-10 Clinton Roy <clinton.roy@gmail.com> (tiny change)
3332 Pass autoreconf -I to aclocal -I
3333 * bin/autoreconf.in (parse_args): Pass --include to aclocal.
3334 * doc/autoconf.texi (autoreconf Invocation): Updates for above.
3335 * NEWS: Document it.
3338 2008-11-10 Eric Blake <ebb9@byu.net>
3340 Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
3341 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
3342 * doc/autoconf.texi (Limitations of Builtins) <printf>: Document
3343 the print workaround.
3344 Idea by Paolo Bonzini.
3346 2008-11-10 Eric Blake <ebb9@byu.net>
3348 Provide a section on all tools allowed in GNU Coding Standards.
3349 * doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
3350 <wait>: Add section.
3351 (Limitations of Usual Tools) <awk>: Make table entry consistent.
3352 <chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
3354 2008-11-09 Paolo Bonzini <bonzini@gnu.org>
3356 Balance parentheses in _AC_CACHE_DUMP.
3357 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
3358 without introducing \).
3360 2008-11-07 Eric Blake <ebb9@byu.net>
3362 Further doc updates for AC_CHECK_HEADER change.
3363 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
3364 new default, and make it more obvious that using [-] is generally
3367 2008-11-07 Eric Blake <ebb9@byu.net>
3369 * ChangeLog: Enforce UTF-8 encoding.
3371 2008-11-06 Eric Blake <ebb9@byu.net>
3373 Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
3374 * lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
3375 argument to speed up check.
3377 2008-11-06 Eric Blake <ebb9@byu.net>
3379 Speed up AC_CHECK_TYPE.
3380 * lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
3381 regex when enough arguments are present.
3383 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
3385 Remove three forks per _AC_RUN_LOG_STDERR in the common case.
3386 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
3387 sequence when the program's stderr was empty, while providing a
3388 conftest.err file even in that case.
3389 (_AC_CACHE_DUMP): Fix mismatched parenthesis.
3391 2008-11-06 Paolo Bonzini <bonzini@gnu.org>
3393 Change `present but cannot be compiled' behavior to use compiler result.
3394 * NEWS: Document it.
3395 * doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
3396 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
3398 * tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
3400 2008-11-05 Eric Blake <ebb9@byu.net>
3403 * lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
3405 (_m4_split): Allow user control over separator.
3406 (m4_split): Adjust caller.
3407 (m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
3409 * tests/m4sugar.at (m4@&t@_append): Augment test keywords.
3410 (M4 loops): Test new interface.
3412 Use m4_set_map_sep in more places.
3413 * lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
3414 (m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
3415 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
3416 Enhance documentation.
3417 <m4_set_foreach>: Mention faster alternative.
3418 (Looping constructs) <m4_foreach>: Likewise.
3420 Unify m4_set_foreach and m4_set_map.
3421 * lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
3423 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
3424 (m4_set_map): Adjust callers.
3426 Use _m4_foreach in more places.
3427 * lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
3428 (_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
3430 * lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
3431 instead of m4_foreach or m4_map_args.
3433 Unify _m4_foreach and _m4_map.
3434 * lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
3435 (_m4_foreach): ...this.
3436 (m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
3437 (m4_map_args, m4_map_args_sep): Adjust callers.
3438 * lib/m4sugar/foreach.m4 (_m4_map): Rename...
3439 (_m4_foreach): ...to this, overwriting old definition.
3441 2008-11-04 Eric Blake <ebb9@byu.net>
3443 Add m4_map_args_sep, undocumented for now.
3444 * lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
3445 (_m4_map): Change API to cover more of m4_map*.
3446 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
3447 (m4_map_args): Delete.
3448 * tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
3451 Improve m4_for performance.
3452 * lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
3453 avoid m4_define by some clients.
3454 (m4_for): Adjust caller.
3455 * lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
3456 (_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
3457 (_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
3458 (_m4_list_cmp): Likewise.
3460 2008-11-04 Eric Blake <ebb9@byu.net>
3462 Adjust expected output.
3463 * tests/torture.at (Missing templates): Reflect added quoting.
3464 Detected by Bob Proulx's buildbot.
3466 Reject arguments with leading =.
3467 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
3468 missing variable name, with fewer forks. Quote invalid arguments
3469 in message, in case they include spaces.
3470 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
3471 (_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
3472 * lib/autotest/general.m4 (AT_INIT): Likewise.
3473 * tests/base.at (configure arguments): Test this.
3474 Reported by Jeff Squyres.
3476 2008-11-04 Eric Blake <ebb9@byu.net>
3479 * cfg.mk (fetch): Add fdl-1.3.texi.
3480 * .gitattributes: Likewise.
3481 * doc/autoconf.texi (GNU Free Documentation License): Point to new
3483 * doc/Makefile.am (autoconf_TEXINFOS): Likewise.
3484 (standards_TEXINFOS): Mention current dependence on older license.
3485 * doc/fdl-1.3.texi: New upstream file.
3486 * GNUmakefile: Resync from upstream.
3487 * build-aux/announce-gen: Likewise.
3488 * build-aux/texinfo.tex: Likewise.
3490 2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3492 Point at AM_SUBST_NOTMAKE.
3493 * doc/autoconf.texi (Setting Output Variables): Add cross
3494 reference to new Automake macro AM_SUBST_NOTMAKE.
3496 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
3498 Eliminate a fork per invocation of AC_LANG_CONFTEST.
3499 * lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
3501 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
3502 top of confdefs.h, which also works around cpp deficiencies.
3503 * lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
3504 (AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
3505 (AC_LANG_CONFTEST()): New.
3507 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
3509 Reorganize definition of languages.
3510 * lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
3511 _AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
3512 _AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
3513 Replace definitions with usage of AC_LANG_DEFINE.
3514 (Sections 2b, 2c): Delete.
3515 (Sections 1b, 1c): Move after section 2a.
3516 * lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
3517 _AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
3518 with usage of AC_LANG_DEFINE.
3519 (AC_LANG_ERLANG): Define using AU_DEFUN.
3520 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
3521 _AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
3522 _AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
3523 _AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
3524 definitions with usage of AC_LANG_DEFINE.
3525 * lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
3527 2008-11-03 Paolo Bonzini <bonzini@gnu.org>
3529 Use preprocessor in cpp tests.
3530 * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
3532 2008-10-31 Paolo Bonzini <bonzini@gnu.org>
3534 Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
3535 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
3536 (_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
3537 (_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
3538 (_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
3539 (_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
3540 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
3543 2008-10-31 Eric Blake <ebb9@byu.net>
3545 Support multiple undiverts and dumpdefs at once.
3546 * lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
3548 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
3549 <m4_undivert>: Document argument list change.
3550 * tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
3553 Simplify diversion stack handling.
3554 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
3555 avoid extra newlines.
3556 (m4_divert_stack_push): Compute location here, rather than caller.
3557 (m4_divert_push): Update caller.
3558 (m4_divert): Likewise, and also adjust current diversion name.
3559 (m4_divert_pop): Simplify rule that diversion stack must never go
3561 (_m4_require_call): Bypass diversion stack when collecting
3562 required macro text.
3563 (m4_init): Set current diversion without requiring m4_init.
3564 * lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
3565 * lib/autotest/general.m4 (AT_INIT): Likewise.
3566 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
3567 text to run prior to m4sugar cleanup.
3568 * doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
3570 (Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
3571 * NEWS: Undo blurb about m4_divert.
3572 * tests/m4sugar.at (m4@&t@_divert_stack): New test.
3574 Simplify expansion stack handling.
3575 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
3576 always output 'top level'.
3577 (_m4_expansion_stack_entry): New macro, to format the string only
3579 (m4_expansion_stack_push): Only push a macro name.
3580 (m4_warn, _m4_defun_pro): Update callers.
3581 (m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
3582 (_m4_defun_epi, m4_fatal): Inline the calls.
3583 * tests/m4sugar.at (m4@&t@_expansion_stack): New test.
3585 2008-10-30 Eric Blake <ebb9@byu.net>
3587 Better documentation of AC_CHECK_HEADER's fourth argument.
3588 * doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
3589 how to suppress compiler or preprocessor header check.
3590 Reported by Jeff Squyres.
3592 2008-10-30 Eric Blake <ebb9@byu.net>
3594 Fix LINENO testsuite failure.
3595 * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
3596 undocumented _AS_PREPARE, and move unset earlier in script.
3598 Update LINENO documentation.
3599 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3600 (Special Shell Variables) <LINENO>: Mention that LINENO support in
3601 child scripts may be broken. Modernize example.
3603 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
3605 Do not check for $LINENO in generated scripts.
3606 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
3609 2008-10-30 Eric Blake <ebb9@byu.net>
3611 Don't check for non-POSIX extensions in suggested tests.
3612 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
3613 we still use += if available, but should not reject shells (like
3614 dash) that don't provide it.
3615 (_AS_DETECT_SUGGESTED): Document a policy for m4sh.
3616 Reported by Paolo Bonzini.
3618 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
3620 Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
3621 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
3622 with a given CONFIG_SHELL, move it to SHELL.
3623 (AS_INIT_GENERATED): Re-export SHELL.
3625 2008-10-30 Eric Blake <ebb9@byu.net>
3627 Work around Solaris /bin/sh case bug.
3628 * lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
3629 a non-empty command list.
3630 (AS_CASE): Always guarantee that a case will match.
3631 * doc/autoconf.texi (Limitations of Builtins) <case>: Document the
3632 Solaris bug, and mention AS_CASE.
3634 2008-10-30 Paolo Bonzini <bonzini@gnu.org>
3636 Require _AS_CR_PREPARE where appropriate.
3637 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
3638 (AS_PREPARE): Require _AS_CR_PREPARE.
3640 Avoid walking the entire PATH when looking for a better shell.
3641 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
3642 as the PATH is walked.
3644 Add third argument to _AS_PATH_WALK
3645 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
3646 (_AS_PATH_WALK): Add third optional argument.
3648 Trim down the length of the shell function test.
3649 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
3651 2008-10-29 Eric Blake <ebb9@byu.net>
3653 Fix LINENO detection to work around bash and pdksh limitations.
3654 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
3655 that we can choose which of two tests to trust.
3656 (_AS_RUN): Set flag when alternate shell is running.
3657 (_AS_DETECT_EXPAND): New macro.
3658 (_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
3660 2008-10-29 Eric Blake <ebb9@byu.net>
3662 Mention proper fix for zsh users.
3663 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
3664 version known to work.
3665 Suggested by Paolo Bonzini.
3667 Document current beta-quality status.
3668 * configure.ac: Reflect fact that change to git-version-gen
3669 produces -, but not always a letter, on non-release builds.
3670 * BUGS: Mention known issues.
3671 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
3672 debugging platforms with deficient shells.
3674 2008-10-29 Eric Blake <ebb9@byu.net>
3676 Alter signature of AS_INIT_GENERATED.
3677 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
3678 manage here-doc and chmod in place. This also allows future
3679 changes for optimizing the child via diversion/m4_wrap magic.
3680 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
3682 * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
3683 Update the documentation.
3685 2008-10-29 Eric Blake <ebb9@byu.net>
3687 Use _m4_stack_reverse in m4_set.
3688 * lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
3689 (_m4_set_contents_2): Rewrite to share _m4_stack_reverse
3691 (m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
3692 (m4_set_map): Adjust callers to new API.
3694 Add m4_stack_foreach_sep.
3695 * lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
3696 (m4_stack_foreach_sep_lifo): New macros.
3697 (_m4_stack_reverse): Adjust prototype, to support it.
3698 (m4_copy): Use fewer macros.
3699 * tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
3700 (m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
3702 2008-10-29 Bruno Haible <bruno@clisp.org>
3704 Mention Sun WorkShop 6.2 OpenMP bug.
3705 * doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
3707 2008-10-29 Paolo Bonzini <bonzini@gnu.org>
3709 Rewrite handling of diversion and expansion stack.
3710 * NEWS: Document stricter requirement on m4_init.
3711 * lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
3713 (_m4_divert_stack_push): New.
3714 (m4_divert): Use _m4_divert_stack_push and replace m4_define with
3716 (m4_divert_push): Use _m4_divert_stack_push.
3717 (m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
3718 pop _m4_divert_stack instead of m4_divert_stack.
3719 (m4_expansion_stack): New. Update comment above it.
3720 (m4_expansion_stack_push, m4_expansion_stack_pop): Work on
3721 _m4_expansion_stack instead of m4_expansion_stack.
3722 (m4_expansion_stack_dump): Check presence of _m4_expansion_stack
3723 instead of m4_expansion_stack. Use m4_expansion_stack's expansion
3724 instead of the definition, and compensate for the trailing newline
3726 (m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
3727 _m4_expansion_stack instead of m4_expansion_stack.
3728 (m4_newline): Expand first argument after the newline.
3729 (m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
3730 * tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
3731 * tests/tools.at (whitespace in file names, the empty token): Likewise.
3733 2008-10-28 Eric Blake <ebb9@byu.net>
3735 Reduce forks while searching for better shell.
3736 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
3737 (_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
3738 already does the job.
3739 (_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
3742 Undo needless efforts to protect $2 in $2_t.
3743 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
3744 (_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
3746 2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3748 Fix parallel test execution output lossage.
3749 * lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
3750 standard output and standard error before the test, use append
3753 Caught by Bob Proulx' build daemons, analysis and suggested fix
3754 by Stéphane Chazelas.
3756 2008-10-28 Eric Blake <ebb9@byu.net>
3758 Use m4_map_args in more places.
3759 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
3760 (m4_undefine, m4_combine): Use m4_map_args, rather than
3763 2008-10-28 Eric Blake <ebb9@byu.net>
3765 Override m4 1.4.x dumpdef, as it breaks autom4te.
3766 * lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
3767 (m4_copy): Formatting touchup.
3768 * doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
3769 semantic differences as well as m4_dumpdefs.
3771 * tests/m4sugar.at (m4@&t@_dumpdef): New test.
3773 2008-10-28 Eric Blake <ebb9@byu.net>
3775 Allow m4sugar to be used without autom4te, such as in bison.
3776 * lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
3777 alternate escape sequences can be used.
3778 (m4_text_box): Likewise. Don't output quadrigraphs.
3779 (m4_qdelta): Delete unused macro.
3781 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
3783 Add m4_stack_foreach and m4_stack_foreach_lifo.
3784 * lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
3785 (m4_stack_foreach, m4_stack_foreach_lifo): New.
3786 (m4_copy): Use m4_stack_foreach and m4_curry.
3787 (_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
3788 (m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
3789 * tests/m4sugar.at (m4_stack_foreach): New test.
3791 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
3793 use a shell function for AC_TYPE_INTx_T
3794 * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
3796 (_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
3798 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
3800 * lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
3801 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
3802 _AC_CHECK_HEADER_NEW): Likewise.
3803 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
3805 2008-10-28 Paolo Bonzini <bonzini@gnu.org>
3807 * lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
3808 (AC_CHECK_MEMBER): Define and use a shell function.
3810 2008-10-27 Eric Blake <ebb9@byu.net>
3812 Prefer m4_fatal over AC_FATAL.
3813 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
3814 (AC_CHECK_MEMBER): Use non-obsolete macro name.
3815 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
3816 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
3818 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
3819 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
3820 (_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
3822 2008-10-27 Eric Blake <ebb9@byu.net>
3824 Avoid raw carriage return in scripts.
3825 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
3826 via tr, rather than with literal byte.
3828 Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
3830 2008-10-27 Eric Blake <ebb9@byu.net>
3833 * lib/autotest/general.m4 (at_func_arith): Delete; replace all
3834 clients with AS_VAR_ARITH instead.
3835 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
3837 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
3838 * tests/torture.at (Torturing config.status): Likewise.
3839 * tests/tools.at (autom4te --force): Likewise.
3842 * lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
3843 (AS_VAR_ARITH): New macros.
3844 (_AS_PREPARE, AS_PREPARE): Emit preparation.
3845 * tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
3846 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
3848 (Limitations of Usual Tools) <expr>: Mention portability problem
3849 if first argument starts with -.
3850 (Shell Substitutions) <$((expression))>: Mention it.
3853 2008-10-27 Eric Blake <ebb9@byu.net>
3855 Use read, rather than `cat`, for safe one-line files.
3856 * lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
3857 known that the file has only one line and no \.
3858 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
3860 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
3862 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
3863 _AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
3864 (_AC_COMPUTE_INT_BODY): New.
3865 (AC_COMPUTE_INT): Define and use a shell function.
3867 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
3869 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
3870 test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
3871 (_AC_CHECK_TYPE_NEW): Define a shell function and call it.
3873 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
3875 * lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
3876 (AC_CHECK_DECL): Use a shell function.
3878 2008-10-27 Paolo Bonzini <bonzini@gnu.org>
3880 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
3881 _AC_CHECK_HEADER_NEW): Use a shell function.
3883 2008-10-25 Eric Blake <ebb9@byu.net>
3885 Track recent copyright assignments.
3888 2008-10-25 Paolo Bonzini <bonzini@gnu.org>
3889 and Eric Blake <ebb9@byu.net>
3891 Use a shell function for _AC_CHECK_HEADER_MONGREL.
3892 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
3894 (_AC_CHECK_HEADER_MONGREL): Use a shell function.
3896 2008-10-25 Eric Blake <ebb9@byu.net>
3898 Simplify _AS_PREPARE handling of functions.
3899 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
3900 (_AS_REQUIRE_SHELL_FN): ...into new helper macro.
3901 (_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
3903 (_AS_LINENO_PREPARE): Make more efficient.
3904 (_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
3905 (_AS_UNSET_PREPARE): Avoid blank newline.
3906 (AS_INIT): Emit as_func_unset alongside other functions.
3908 2008-10-25 Eric Blake <ebb9@byu.net>
3911 * doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
3913 (Limitations of Builtins): Mention AS_EXIT.
3916 Use AS_EXIT in autoconf.as.
3917 * bin/autoconf.as: Consistently use AS_EXIT.
3919 2008-10-24 Eric Blake <ebb9@byu.net>
3921 Fix m4 underquoting in AC_PROG_INSTALL.
3922 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
3925 Speed up AC_CHECK_HEADER.
3926 * lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
3928 2008-10-24 Paolo Bonzini <bonzini@gnu.org>
3929 and Eric Blake <ebb9@byu.net>
3931 Use a shell function for AC_CHECK_FUNC.
3932 * lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
3933 (AC_CHECK_FUNC): Use a shell function.
3934 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
3936 2008-10-24 Eric Blake <ebb9@byu.net>
3938 Work around fact that gnulib-tool doesn't use m4_copy.
3939 * lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
3940 define, so that an initial location is present, to account for
3941 fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
3943 Make m4_defun_init more robust.
3944 * lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
3945 names, and correct number of arguments.
3946 (m4_copy): Also set up location of the copy.
3947 (m4_defun): When copied, use current macro name, not original.
3948 * tests/m4sugar.at (m4@&t@_require: one-shot initialization):
3951 Optimize clients of AS_REQUIRE.
3952 * lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
3954 (m4_defun_init): New undocumented macro.
3955 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
3956 (_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
3957 (AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
3958 (AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
3959 simplify these macros once the one-shot initialization is
3961 * tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
3965 * lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
3967 (_m4_copy): New macro, which preserves pushdef stacks.
3968 (_m4_defun_pro_outer): Bypass it, for speed.
3969 (m4_init): Bypass new implementation, since it breaks on m4_defn.
3970 * bin/autoupdate.in (handle_autoconf_macros): Likewise.
3971 * lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
3972 now that m4_copy checks this.
3973 * doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
3974 this, as well as m4_rename.
3975 * lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
3976 renaming builtins, since it breaks on m4_ifdef.
3978 * tests/m4sugar.at (m4@&t@_defn): Enhance test.
3980 2008-10-24 Eric Blake <ebb9@byu.net>
3982 AC_FUNC_GETGROUPS: Revert regression.
3983 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
3984 ac_cv_func_getgroups_works=no when it is not available.
3986 2008-10-23 Eric Blake <ebb9@byu.net>
3989 * lib/autoconf/fortran.m4: Consistently use tabs.
3991 2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
3993 For gfortran on sh, ignore -little.
3994 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
3995 list of ignored arguments.
3998 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
4000 Eliminate empty lines after AC_*_IFELSE.
4001 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
4002 _AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
4004 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
4006 Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
4007 * lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
4008 Return a boolean status code based on $ac_status.
4010 2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
4012 Ensure actions can look at conftest* files.
4013 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
4014 _AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
4015 Move rm commands, except IPA files and Apple debug symbols...
4016 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
4017 _AC_RUN_IFELSE): ...in here.
4018 * tests/compile.at: Add regression test.
4020 2008-10-23 Eric Blake <ebb9@byu.net>
4022 Remove excess dnl from m4sh.
4023 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
4024 (_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
4025 (AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
4026 (_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
4027 (AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
4028 (_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
4029 (AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
4030 (_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
4031 (_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
4032 (AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
4034 2008-10-23 Paolo Bonzini <bonzini@gnu.org>
4035 and Eric Blake <ebb9@byu.net>
4037 Use a shell function for _AC_RUN_IFELSE.
4038 * lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
4039 (_AC_RUN_IFELSE): Use a shell function.
4040 (_AC_RUN_LOG): Avoid subshell for logging.
4042 2008-10-23 Eric Blake <ebb9@byu.net>
4044 Formatting tweak: balance () with m4sh case statements.
4045 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
4046 (_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
4047 (AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
4048 (_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
4049 allow output of strategic shell comments.
4050 (AS_VERSION_COMPARE): Use AS_CASE.
4051 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4053 2008-10-22 Jim Meyering <meyering@redhat.com>
4055 AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
4056 * lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
4057 the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
4058 it is set to "yes" in the environment and configure is run on
4059 a system like mingw that lacks the getgroups function, it would
4060 mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
4061 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
4063 2008-10-22 Paolo Bonzini <bonzini@gnu.org>
4064 and Eric Blake <ebb9@byu.net>
4066 Use a shell function for _AC_LINK_IFELSE.
4067 * lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
4068 (_AC_LINK_IFELSE): Use a shell function.
4070 2008-10-22 Eric Blake <ebb9@byu.net>
4072 Fix autoconf logging commands.
4073 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
4074 (_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
4075 (_AC_DO_ECHO): Likewise, and use fewer dnl.
4076 (_AC_RUN_LOG_STDERR): Avoid subshell for logging.
4078 2008-10-22 Eric Blake <ebb9@byu.net>
4080 Fix testsuite failure.
4081 * tests/mktests.sh (ac_exclude_list): Don't generate test for
4082 AC_REQUIRE_SHELL_FN.
4084 2008-10-21 Eric Blake <ebb9@byu.net>
4086 Improve wording related to automake and autotest.
4087 * doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
4088 relation to automake. Mention dependency on package.m4.
4089 Consolidate examples. Define AUTOM4TE.
4091 Reported by William Pursell.
4093 2008-10-21 Eric Blake <ebb9@byu.net>
4095 Allow AS_VAR_SET_IF in shell lists.
4096 * lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
4098 * lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
4099 provided by AS_VAR_SET_IF.
4100 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
4102 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4103 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4105 Allow AS_VAR_IF in shell lists.
4106 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
4107 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
4108 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
4110 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
4111 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
4112 (_AC_CHECK_HEADER_DIRENT): Likewise.
4113 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
4114 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
4116 * tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
4118 Allow AS_CASE in shell lists.
4119 * lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
4120 side effects. Allow continuation of script on same line as esac.
4121 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
4122 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
4123 * NEWS: Document the subtle change.
4125 Allow AS_IF in shell lists.
4126 * lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
4127 side effects. Allow continuation of script on same line as fi.
4128 (_AS_DETECT_BETTER_SHELL): Adjust clients.
4129 (AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
4131 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
4132 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
4133 (AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
4134 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4135 * doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
4136 (Polymorphic Variables): Move mention of dnl to the only two
4137 AS_VAR functions that need it.
4139 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
4140 and Eric Blake <ebb9@byu.net>
4142 Use a shell function for _AC_COMPILE_IFELSE.
4143 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
4144 (_AC_COMPILE_IFELSE): Use a shell function.
4146 2008-10-21 Eric Blake <ebb9@byu.net>
4149 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
4150 * lib/autoconf/general.m4 (_AC_INIT_PREPARE)
4151 (_AC_LIBOBJS_NORMALIZE): Likewise.
4152 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
4153 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
4154 (_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
4155 * lib/autotest/general.m4 (AT_INIT): Likewise.
4158 * lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
4159 (_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
4160 (AS_PREPARE, _AS_PREPARE): Emit preparation.
4161 * tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
4162 * doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
4164 <AS_VAR_SET>: Mention ramification of `""` rules.
4165 * NEWS: Mention new macro.
4167 2008-10-21 Paolo Bonzini <bonzini@gnu.org>
4168 and Eric Blake <ebb9@byu.net>
4170 Use a shell function for _AC_PREPROC_IFELSE.
4171 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
4172 (_AC_PREPROC_IFELSE): Use a shell function.
4173 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
4174 (AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
4177 2008-10-21 Eric Blake <ebb9@byu.net>
4179 Add banners to generated files.
4180 * lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
4182 (AS_INIT): Add new banners at strategic points.
4183 * lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
4184 make consistent with other banners.
4185 * lib/autotest/general.m4 (AT_INIT): Make banners consistent.
4187 2008-10-20 Paolo Bonzini <bonzini@gnu.org>
4189 Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
4190 * lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
4191 (m4_divert(SHELL_FN)): New.
4193 2008-10-20 Eric Blake <ebb9@byu.net>
4195 Avoid unportable use of echo in testsuite.
4196 * tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
4199 2008-10-18 Paolo Bonzini <bonzini@gnu.org>
4201 Make sure that nested AS_REQUIRE do not lose the desired diversion.
4202 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
4203 passing it to m4_divert_require, so that its content is not used
4205 * tests/m4sh.at (Nested AS_REQUIRE): New testcase.
4207 2008-10-18 Eric Blake <ebb9@byu.net>
4209 Document bugs in { } handling.
4210 * doc/autoconf.texi (Limitations of Builtins): Mention bug on
4213 Fix some testsuite failures introduced two days ago.
4214 * tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
4215 (AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
4217 Reported by Ralf Wildenhues.
4219 2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4221 Show how to extract single substitutions from config.status.
4222 * doc/autoconf.texi (config.status Invocation): Show example
4225 2008-10-17 Eric Blake <ebb9@byu.net>
4228 * lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
4229 * tests/m4sugar.at (m4@&t@_map_args): Rename...
4230 (m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
4231 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4232 currying as a way to add parameters.
4233 (Evaluation Macros) <m4_curry>: Document the new macro.
4236 Improve suggested test filtering.
4237 * lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
4239 (_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
4240 check for an empty required set.
4243 * lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
4244 * tests/m4sugar.at (m4@&t@_set): Enhance test.
4245 * doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
4249 Document m4_map_args.
4250 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
4252 (m4_map_args, m4_map_args_pair): ...to these names, and document.
4253 (m4_version_unletter): Use the interface.
4254 * lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
4255 (_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
4256 Perform same renames.
4257 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
4258 * tests/m4sugar.at (m4@&t@_map_args): New test.
4259 (recursion): Adjust caller.
4260 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
4261 * doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
4263 * NEWS: Mention the new macros.
4265 2008-10-17 Eric Blake <ebb9@byu.net>
4267 Reduce vertical whitespace in configure.
4268 * lib/autoconf/general.m4 (AC_INIT): Silence newline output during
4269 m4 side effect initializations.
4270 * lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
4272 2008-10-17 Eric Blake <ebb9@byu.net>
4274 Document AS_VAR interfaces.
4275 * doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
4276 (Polymorphic Variables): New node.
4277 * NEWS: Update accordingly.
4279 Test AS_VAR interfaces.
4280 * tests/m4sh.at (AS@&t@_VAR): New test.
4281 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
4282 _AS_TR_SH_PREPARE at top level, rather than argument collection.
4283 (AS_TR_SH): Support command substitution.
4286 * lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
4287 (AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
4288 * lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
4289 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
4290 * lib/autotest/general.m4 (_AT_FINISH): Likewise.
4292 Sort AS_VAR_* interfaces.
4293 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
4294 (AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
4297 2008-10-16 Eric Blake <ebb9@byu.net>
4299 Allow comments before functions emitted by m4sh.
4300 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
4301 argument. Supply closing comment, to ease readability.
4302 (_AS_MKDIR_P_PREPARE): Adjust caller.
4303 (_AS_UNSET_PREPARE): Add comment.
4305 Add AS_FUNCTION_DESCRIBE.
4306 * lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
4307 * lib/autotest/general.m4 (AT_INIT): Use it.
4309 2008-10-16 Eric Blake <ebb9@byu.net>
4311 Speed up m4_qlen with caching.
4312 * lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
4313 (m4_qlen): Cache results for speed.
4315 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
4317 Add a testcase using more then one language.
4318 * tests/compile.at (Multiple languages): New test.
4320 2008-10-16 Paolo Bonzini <bonzini@gnu.org>
4322 Fix Libtool's config.lt test.
4323 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
4326 2008-10-15 Eric Blake <ebb9@byu.net>
4328 Break circular require chain in _AS_LINENO_PREPARE.
4329 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
4330 disabled when reporting LINENO failure, since logging requires
4332 * doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
4333 not m4_rename, since the latter is undocumented.
4334 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
4335 m4_rename, as it does not yet handle pushdef stacks.
4336 Reported by Ralf Wildenhues.
4338 2008-10-15 Eric Blake <ebb9@byu.net>
4340 Cleanups to previous patches.
4341 * doc/autoconf.texi (Portable Shell): Minor edits.
4342 (Limitations of Builtins): Touch up wording.
4343 * lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
4344 (_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
4346 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4348 Updates to shell portability documentation.
4349 * doc/autoconf.texi: Updates all references to "Portable Shell" and
4350 "Limitations of Builtins" to use three-argument commands.
4351 (Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
4352 (Portable Shell): Move here discussion about "Where is the POSIX
4353 shell?" Mention that M4sh provides a SVR2 shell and takes care
4354 of unsetting variables if necessary. Talk about M4sh and not only
4355 Autoconf-generated scripts.
4356 (Special Shell Variables): Talk about M4sh and not only
4357 Autoconf-generated scripts. Don't talk about things that Autoconf
4358 does not do. Mention problems of $LINENO with shell functions.
4359 (Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
4360 discussion of eval bugs before discussion on proper use of eval.
4361 Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
4362 unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
4363 * NEWS: Update list of documented M4sh macros.
4365 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4367 Assume a (possibly buggy) `unset' is present after a
4368 `better shell' was found.
4369 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
4370 * lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
4371 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
4372 alias for AS_UNSET, for backwards compatibility.
4373 (_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
4374 the shell does not support unset.
4375 (_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
4376 (AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
4377 (AS_UNSET): Assume it is there but it might fail if the variable is
4378 not set. Use it throughout instead of $as_unset.
4380 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4382 Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
4383 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
4384 m4_require of _AS_DETECT_BETTER_SHELL.
4385 (_AS_CLEANUP): Add it here.
4386 (_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
4388 (_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
4389 (AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
4390 (AS_PREPARE): Use _AS_SHELL_SANITIZE.
4391 (AS_INIT): Add m4_provide of itself.
4393 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4395 Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
4396 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
4397 "test x$foo = xyes".
4399 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4401 Trim down the size of the better-shell test.
4402 * lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
4403 snippets into shell variables.
4406 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
4408 Support a stack of LINENO values for AS_MESSAGE.
4409 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
4410 the line number emitted to the log file.
4411 (AS_LINENO_PUSH, AS_LINENO_POP): New.
4412 * tests/m4sh.at (LINENO Stack): New test.
4414 2008-10-14 Eric Blake <ebb9@byu.net>
4416 Correct previous patch.
4417 * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
4420 Document shell function environment pitfall.
4421 * doc/autoconf.texi (Shell Functions): Document bugs in bash,
4424 2008-10-14 Paolo Bonzini <bonzini@gnu.org>
4426 Use m4_require to implement AS_REQUIRE.
4427 * lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
4428 (m4_require): Pass it.
4429 (m4_divert_require): New.
4430 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
4431 Remove comment about differences with m4_require.
4432 * tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
4433 the expected behavior.
4434 (Nested AS_REQUIRE_SHELL_FN): New test.
4436 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
4438 Test AS_LINENO_PREPARE.
4439 * tests/m4sh.at: Use documented AS_LINENO_PREPARE.
4441 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
4444 * tests/m4sh.at (as_me): New test.
4446 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
4448 Add and document AS_INIT_GENERATED.
4449 * lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
4450 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
4451 * doc/autoconf.texi (Initialization macros): Document it.
4453 2008-10-13 Eric Blake <ebb9@byu.net>
4455 Use consistent shell function style.
4456 * lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
4457 (_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
4460 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
4462 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
4463 contributors under m4 rather than shell comments.
4465 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
4467 * lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
4468 * doc/autoconf.texi (Initialization macros): Document them.
4469 (Portable Shell): Refer to AS_LINENO_PREPARE.
4470 * NEWS: Mention them.
4472 * bin/autoconf.as: Invoke AS_ME_PREPARE.
4473 * lib/autotest/general.m4: Likewise.
4475 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
4477 * doc/autoconf.texi (Programming in M4sh): Make its own chapter.
4479 2008-10-10 Eric Blake <ebb9@byu.net>
4481 Fix _AS_MKDIR_P usage.
4482 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
4483 match implementation.
4484 (_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
4485 * doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
4486 wording to better match behavior.
4488 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
4490 * doc/autoconf.texi: Be less wary of shell functions.
4491 * NEWS: Document the increased use of shell functions.
4493 2008-10-10 Paolo Bonzini <bonzini@gnu.org>
4495 * m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
4496 meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
4497 (AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
4498 (_AS_PREPARE): Define shell functions.
4499 (_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
4500 Define shell functions.
4502 2008-10-09 Eric Blake <ebb9@byu.net>
4504 Only prepare $as_me if it will be used.
4505 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
4507 (_AS_ECHO_LOG): Depend on $LINENO preparation.
4508 (AS_MESSAGE): Depend on $as_me preparation.
4509 (AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
4511 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
4513 * m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
4514 until the M4SH-INIT diversion using _AS_ME_PREPARE.
4515 (_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
4516 and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
4517 before _AS_LINENO_PREPARE.
4518 (AS_PREPARE): Include all the AS_REQUIREs manually.
4519 (_AS_ME_PREPARE): New.
4520 (_AS_LINENO_PREPARE): Use m4_defun.
4522 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
4524 * m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
4525 require _AS_EXPR_PREPARE.
4526 (_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
4527 (_AS_PREPARE): Add _AS_BASENAME_PREPARE.
4529 2008-10-08 Eric Blake <ebb9@byu.net>
4532 * cfg.mk (cvs_executable_files, cvs_files): Rewrite...
4533 (fetch): ...into new target.
4534 (executable-update): Delete, now that it is unused.
4535 * maint.mk (update, local_updates, cvs_files, gnulib_repo)
4536 (wget-update, cvs-update): Likewise.
4537 * HACKING (Update the foreign files): Document new procedure.
4538 * GNUmakefile: Resync from upstream, via new 'make fetch'.
4539 * build-aux/config.guess: Likewise.
4541 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
4543 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
4544 (AS_INIT): Do not call it.
4546 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
4548 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
4549 _AS_UNSET_PREPARE in M4SH-SANITIZE.
4551 2008-10-08 Eric Blake <ebb9@byu.net>
4553 Avoid repeating required shell tests in suggested set.
4554 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
4555 Use m4_set, rather than m4_expand_once/m4_append.
4556 (_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
4557 required tests out of suggested tests.
4558 Reported by Paolo Bonzini.
4560 2008-10-08 Paolo Bonzini <bonzini@gnu.org>
4562 Add m4sh keyword to all m4sh.at tests.
4563 * tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
4566 2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4568 Document AS_VERSION_COMPARE.
4569 * doc/autoconf.texi (Programming in M4sh): Document
4573 Do not write to testsuite log fd before initialization.
4574 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
4575 Define fds only when initializing the log fd so early error
4576 messages do not try to write to it.
4577 * tests/autotest.at (Startup error messages): New test.
4578 * NEWS: Document this 2.63 regression.
4580 2008-10-07 Eric Blake <ebb9@byu.net>
4582 Ensure _AS_CLEANUP is defined.
4583 * lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
4584 * tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
4586 Improve m4sh maintainability.
4587 * lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
4590 Fix m4 quoting in previous patch.
4591 * lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
4592 name prior to invoking AS_REQUIRE.
4593 Reported by Ralf Wildenhues.
4595 2008-09-18 Paolo Bonzini <bonzini@gnu.org>
4596 and Eric Blake <ebb9@byu.net>
4598 Add a separate diversion for shell functions.
4599 * lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
4600 (AS_REQUIRE): Accept diversion parameter.
4601 (AS_REQUIRE_SHELL_FN): Use it.
4603 2008-10-06 Eric Blake <ebb9@byu.net>
4605 Add m4_default_quoted.
4606 * lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
4607 (m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
4608 * doc/autoconf.texi (Conditional constructs): Document it.
4611 Fix build with case-insensitive make, again.
4612 * Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
4613 Reported via Keith Marshall, originally by newthinker in
4614 <http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
4616 2008-10-06 Bruno Haible <bruno@clisp.org>
4618 Warn about /usr/ucb on Solaris.
4619 * doc/install.texi (Particular Systems): Recommend putting
4620 /usr/ucb late in PATH, if at all.
4622 2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4624 Fix more testsuite hang corner cases.
4625 * lib/autotest/general.m4: Use the serial code path if no test
4627 * tests/autotest.at (parallel test execution): Test -j and -jN
4628 with `-k notmatched'.
4630 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4632 Fix hang with `testsuite -k notmatched'.
4633 * lib/autotest/general.m4: Do not reset $at_jobs if it is equal
4634 to one. Fixes hang with `-k notmatched'.
4636 2008-10-02 Eric Blake <ebb9@byu.net>
4638 Document more binary file portability traps.
4639 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
4640 reader that NUL and sed don't always mix.
4641 <tr>: Mention Solaris /usr/ucb/tr bug with \0.
4643 2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4645 Implement parallel Autotest test execution: testsuite --jobs.
4646 * lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
4647 (AT_INIT): <at_jobs>: New variable.
4648 Accept -j, -jN, --jobs[=N], document them in --help output.
4649 Implement parallel driver loop using a FIFO, enabled with --jobs
4650 and if mkfifo works; otherwise, fall back to sequential loop.
4651 (AT_SETUP): Store, do not output summary progress line if
4653 * tests/autotest.at (parallel test execution, parallel truth)
4654 (parallel fallacy, parallel skip): New tests.
4655 * doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
4656 the mkfifo requirement, and that --errexit may cause concurrent
4660 2008-09-20 Eric Blake <ebb9@byu.net>
4662 Fix sample isinf definition.
4663 * doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
4666 Reported by David Cournapeau.
4668 2008-09-16 Eric Blake <ebb9@byu.net>
4670 Fix Erlang regression, introduced 2006-11-17.
4671 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
4672 caused by underquoting.
4673 * NEWS: Mention this fix.
4675 Reported by BJ Terry.
4677 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4679 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
4681 Mention Solaris sh ':' redirection bug.
4682 * doc/autoconf.texi (File Descriptors): Redirecting ':'
4683 in a loop causes bogus optimization with Solaris sh.
4685 2008-09-10 Eric Blake <ebb9@byu.net>
4687 Avoid testsuite bug when autom4te cache is disabled by user.
4688 * tests/tools.at (autoconf: forbidden tokens, basic): Enable
4689 cache, even if user normally disabled it.
4690 Reported by Bruno Haible.
4692 Avoid testsuite bug in presence of verbose config.site.
4693 * tests/base.at (Input/Output): Nullify config.site during test.
4694 Reported by Bob Friesenhahn.
4696 2008-09-09 Eric Blake <ebb9@byu.net>
4698 Release Version 2.63.
4699 * NEWS: Mention the release.
4701 Formatting tweaks to the manual.
4702 * doc/autoconf.texi (Introduction, Systemology)
4703 (File System Conventions, Portable C and C++)
4704 (Floating Point Portability): Allow URLs to split as needed.
4705 (Indices): Add entries, to work around texinfo bug on indices that
4706 start too close to a page break.
4707 (Particular Functions): Mention ftello.
4708 (Introduction, Language Choice): Use @enddots at sentence end.
4711 * cfg.mk (cvs_executable_files, cvs_files): Update list of files,
4712 although for now, they are still manually sync'd.
4713 * build-aux/gnupload: Update.
4714 * build-aux/config.sub: Likewise.
4715 * GNUmakefile: Likewise.
4717 2008-09-06 Eric Blake <ebb9@byu.net>
4719 Mention that Automake already supports VPATH.
4720 * doc/autoconf.texi (Build Directories): Details in this section
4721 only apply to users avoiding automake.
4723 Reported by Matej Tyc.
4725 Relax tone when warning about cross-compiler names.
4726 * lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
4727 with poorly named tools; the issue has been reported too many
4728 times in the last four years to pull support.
4729 * doc/autoconf.texi (Specifying Names, Generic Programs): Update
4730 documentation accordingly.
4732 Reported by Josef Tran and others, wording suggested by Ralf
4735 2008-09-01 Eric Blake <ebb9@byu.net>
4737 Improve AC_C_BIGENDIAN.
4738 * doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
4739 universal builds require a config header.
4740 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments. Check
4741 AH_HEADER at the last possible moment, so that users can use
4742 AC_CONFIG_HEADER after this macro.
4743 Reported by Stepan Kasal.
4745 Fix manual date information.
4746 * doc/autoconf.tex: UPDATED refers to the day the manual was
4747 built, not the release date of Autoconf.
4748 Based on a bison patch by Akim Demaille.
4750 2008-08-27 Eric Blake <ebb9@byu.net>
4752 Fix off-by-one bug in _m4_shiftn.
4753 * lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
4755 * tests/m4sugar.at (M4 loops): Test it.
4756 Reported by Akim Demaille.
4758 2008-08-26 Eric Blake <ebb9@byu.net>
4760 Improve INSTALL formatting.
4761 * doc/install.texi [!autoconf]: Ensure first paragraphs are
4762 indented like all others in a plain text rendering.
4763 * Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
4764 Reported by Bruno Haible.
4766 2008-08-26 Stepan Kasal <skasal@redhat.com>
4768 Check for case sensitive make.
4769 * m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
4770 * configure.ac: ... called here.
4771 * Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
4772 ($(srcdir)/INSTALL): ...this, but enclose the rule in
4773 "if MAKE_CASE_SENSITIVE".
4775 2008-08-26 Eric Blake <ebb9@byu.net>
4777 Update invocation documentation.
4778 * doc/autoconf.texi (autoscan Invocation): Mention --debug.
4779 (autoreconf Invocation): Mention -v.
4780 (autom4te Invocation): Tie --freeze to -F, not -f.
4781 (autoupdate Invocation): Mention --prepend-include.
4782 * doc/install.texi (configure Invocation): Mention --help=short,
4783 --help=recursive, -n/--no-create, --prefix. Avoid TABs.
4784 * bin/autoscan.in ($help): Omit space before `...'.
4785 * bin/ifnames.in ($help): Likewise.
4786 * bin/autoconf.as (Usage): Likewise.
4787 * bin/autoreconf.in ($help): Likewise.
4788 * bin/autoheader.in ($help): Likewise.
4789 * bin/autom4te.in ($help): Likewise.
4790 * bin/autoupdate.in ($help): Likewise.
4791 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
4792 `[OPTION]...', rather than `[OPTIONS]'. Mention --silent. Indent
4795 Don't let frozen __m4_version__ break downgrade to m4 1.4.x.
4796 * bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
4797 (files_to_options): Avoid inheriting __m4_version__ from frozen
4798 file if current M4 does not support it.
4800 2008-08-25 Eric Blake <ebb9@byu.net>
4802 Adjust to recent m4 1.6 change to support m4_debugmode(d).
4803 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
4804 freeze-time decision of using faster 1.6 implementation...
4805 (m4_init): ...to a runtime decision, and add use of new debugmode
4808 2008-08-22 Peter O'Gorman <pogma@thewrittenword.com>
4810 Limit AC_C_BIGENDIAN univeral checks to Mac OS X.
4811 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
4812 __APPLE_CC__ with possible -arch flags.
4813 * NEWS: Document it.
4815 2008-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4819 2008-08-22 Eric Blake <ebb9@byu.net>
4821 * TODO: Add an item for additional m4sugar looping constructs.
4822 Suggested by Ralf Wildenhues.
4824 Add reminder to keep dual implementations in sync.
4825 * lib/m4sugar/m4sugar.m4: Add comments.
4826 * lib/m4sugar/foreach.m4: Likewise.
4827 Suggested by Ralf Wildenhues.
4829 2008-08-22 Peter Eisentraut <peter_e@gmx.net> (tiny change)
4831 Format warning and error messages to match GCS.
4832 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
4833 (_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
4834 messages with a lowercase letter, end them without punctuation.
4835 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
4836 * lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
4837 * lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
4839 * tests/fortran.at (GNU Fortran): Likewise.
4840 * tests/torture.at (Deep Package): Likewise.
4842 2008-08-21 Eric Blake <ebb9@byu.net>
4844 Avoid extra side effects in m4sugar list expansion.
4845 * lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
4847 (_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
4848 duplicate side effects.
4849 (m4_version_compare): Adjust caller.
4850 * lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
4851 (_m4_list_cmp_raw): ...to match m4sugar.
4852 * doc/autoconf.texi (Looping constructs): Document the behavior of
4854 * tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
4855 Ensure only one side effect.
4856 (recursion): Fix test typo.
4857 Reported by Ralf Wildenhues.
4859 2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4861 * TODO: Add item for compiler default flags.
4862 Suggested by Bruno Haible.
4864 * tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit
4867 2008-08-21 Eric Blake <ebb9@byu.net>
4869 Formatting improvements.
4870 * doc/autoconf.texi: Use @file and @command, rather than @code,
4873 Document another make bug.
4874 * doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
4875 make, GNU make <= 3.80.
4877 Tweak wording about SHELL in Makefile.
4878 * doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
4879 the importance of proper SHELL settings.
4880 Reported by Bruno Haible, in
4881 http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.
4883 2008-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4885 Avoid timestamp races for updated input.
4886 * tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
4888 * tests/tools.at (autotools and whitespace in file names): Add
4889 --force for repeated invocations.
4891 2008-08-20 Bruno Haible <bruno@clisp.org>
4893 Add section to INSTALL about particular systems.
4894 * doc/install.texi (Particular systems): New node.
4895 * doc/autoconf.texi: Adjust menus.
4897 2008-08-19 Bruno Haible <bruno@clisp.org>
4898 and Peter O'Gorman <peter@pogma.com>
4900 Mention universal binaries in INSTALL.
4901 * doc/install.texi (Compiling For Multiple Architectures): Explain
4902 how to create universal binaries on MacOS X.
4904 2008-08-19 Jim Meyering <jim@meyering.net>
4905 Eric Blake <ebb9@byu.net>
4906 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4908 Avoid shell parse errors after interrupt due to empty ``.
4909 * doc/autoconf.texi (Shell Substitutions): Document the issue.
4910 * lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
4911 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
4912 "test AS_VAR_GET([...]) = yes"
4913 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
4914 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
4915 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
4916 (_AC_CHECK_HEADER_DIRENT): Likewise.
4917 * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
4918 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
4919 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
4920 temporary variable to work around the issue.
4921 * tests/foreign.at (Libtool): Quote result of command
4924 2008-08-18 Eric Blake <ebb9@byu.net>
4926 Test m4_transform without tickling shell bugs.
4927 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
4928 something more manageable.
4929 * tests/m4sugar.at (recursion): Move stress test of
4930 m4_transform_pair here.
4931 Reported by Ralf Wildenhues.
4933 Let 'git diff' give better context for doc updates.
4934 * .gitattributes (*.texi*): Add new entry.
4935 * README-hacking: Mention how to use it.
4936 Inspired by a coreutils patch by Jim Meyering.
4938 2008-08-15 Eric Blake <ebb9@byu.net>
4940 Fix m4_map regression from 2007-10-16.
4941 * lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
4942 (m4_map): Ignore empty sublists. For a list consisting of only an
4943 empty sublist, this restores 2.61 behavior of being a no-op.
4944 (m4_map_sep): Likewise, and expand separator.
4945 (m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
4946 (_m4_map): Rewrite, to be common base for all four variants.
4947 * lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
4948 * tests/m4sugar.at (m4@&t@_map): Add tests.
4949 * doc/autoconf.texi (Looping constructs) <m4_map>: Document new
4950 macros, and mention ramifications of expanded separator.
4951 * NEWS: Mention the change.
4953 2008-08-14 Eric Blake <ebb9@byu.net>
4955 Implement m4_transform_pair, to speed up AS_IF.
4956 * lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
4957 macros, undocumented for now.
4958 * lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
4959 the m4 1.4.x counterparts.
4960 * lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
4961 * tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.
4963 2008-08-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4965 * lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
4966 (AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
4967 warn about previous AC_CANONICAL_TARGET.
4968 (AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
4969 unusable in the non-cross-compiling case.
4970 * NEWS, THANKS: Update.
4971 Report by Dave Erickson.
4973 2008-08-12 Eric Blake <ebb9@byu.net>
4976 * lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
4977 implementation for m4 1.4.x.
4978 * tests/m4sugar.at (m4@&t@_bmatch): New test.
4979 (recursion): Test the linear nature.
4980 * NEWS: Document the fix.
4982 Fix m4_cond corner case.
4983 * lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
4984 implementation allows concatenation with subsequent text.
4985 * tests/m4sugar.at (m4@&t@_cond): Enhance test.
4987 Add test for m4_cond.
4988 * tests/m4sugar.at (m4@&t@_cond): New test.
4989 Reported by Ralf Wildenhues.
4991 2008-08-06 Eric Blake <ebb9@byu.net>
4993 Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
4994 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
4995 unique key for the AH_VERBATIM.
4996 * tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
4997 * NEWS: Mention the fix.
4998 Reported by Andreas Schwab, analyzed by Stepan Kasal.
5000 Add linear m4_cond for m4 1.4.x.
5001 * lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
5002 (_m4_cond): ...this, for fewer macros per iteration.
5003 * lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
5004 * tests/m4sugar.at (recursion): Test it.
5005 * NEWS: Document the linear guarantee.
5007 Speed up diversion handling.
5008 * lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
5009 (m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
5012 AC_C_CHAR_UNSIGNED is not strictly necessary.
5013 * doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
5014 portable alternative to this macro.
5016 Reported by Hallvard B Furuseth.
5018 Update some files from upstream.
5019 * GNUmakefile: Update.
5020 * build-aux/announce-gen: Likewise.
5021 * build-aux/config.guess: Likewise.
5022 * build-aux/config.sub: Likewise.
5023 * build-aux/git-version-gen: Likewise.
5024 * build-aux/texinfo.tex: Likewise.
5025 * build-aux/vc-list-files: Likewise.
5026 * doc/make-stds.texi: Likewise.
5027 * doc/standards.texi: Likewise.
5029 2008-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5031 Fix AC_CONFIG_FILES([$var]) 2.62 regression.
5032 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
5033 whitespace in $ac_config_files and $ac_config_headers.
5034 * tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
5035 Report by Andreas Schwab and Per Øyvind Karlsen.
5038 2008-07-30 Eric Blake <ebb9@byu.net>
5040 Fix bugs in previous version of m4_bpatsubsts.
5041 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
5042 allow concatenation with subsequent text.
5043 * tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.
5045 2008-07-29 Eric Blake <ebb9@byu.net>
5047 Add linear m4_bpatsubsts for m4 1.4.x.
5048 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
5049 about anchors, even for only one substitution.
5050 * lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
5051 * doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
5052 Clarify behavior with regard to quoting.
5053 * tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
5054 (m4@&t@_bpatsubsts): New test.
5055 * NEWS: Document the linear guarantee.
5057 Tweak m4_do semantics.
5058 * lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
5060 * lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
5061 arguments, and avoid infinite loop.
5062 * doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
5064 * tests/m4sugar.at (m4@&t@_do): New test.
5067 * lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
5068 (_m4_for): Take additional parameter, for fewer m4_indir calls.
5069 * lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
5070 (m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
5071 * doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
5072 semantic change caused by the optimization.
5073 * tests/m4sugar.at (M4 loops): Test the new semantics.
5075 One more m4_list_cmp tweak.
5076 * lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
5077 * lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
5078 * tests/m4sugar.at (recursion): Test both directions of list
5081 Add m4_reverse, and improve m4_list_cmp.
5082 * lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
5083 (m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
5085 * lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
5087 * tests/m4sugar.at (recursion): Test it.
5088 * doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
5090 (Text processing Macros) <m4_append>: Cross-reference to m4_set.
5091 * NEWS: Mention new macro.
5093 2008-07-28 Eric Blake <ebb9@byu.net>
5095 Avoid _m4_shiftn for m4 1.6 speedup.
5096 * lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
5097 (_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
5098 * lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.
5100 Implement O(n) unique element set creation.
5101 * lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
5102 (m4_set_contains, m4_set_contents, m4_set_delete)
5103 (m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
5104 (m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
5105 (m4_set_size, m4_set_union): New macros.
5106 * lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
5108 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
5109 new m4_set API for the set most likely to be large.
5110 * doc/autoconf.texi (Set manipulation Macros): New node.
5111 * NEWS: Mention new macros.
5112 * tests/m4sugar.at (m4@&t@_set): New test.
5114 2008-07-25 Eric Blake <ebb9@byu.net>
5116 Avoid infinite aclocal loop.
5117 * lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
5118 that aclocal doesn't insist on finding m4sugar/foreach.m4.
5120 Provide O(n) replacement macros for M4 1.4.x.
5121 * lib/m4sugar/foreach.m4: New file.
5122 (m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
5123 (m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
5124 macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
5125 1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
5127 * lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
5128 older M4 is assumed.
5129 (m4_map_sep): Optimize.
5130 (m4_max, m4_min): Refactor, by adding...
5131 (_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
5132 (m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
5133 * lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
5135 * tests/m4sugar.at (M4 loops): Add a stress test that takes
5136 forever if m4_foreach and friends are quadratic.
5137 * NEWS: Mention this.
5139 2008-07-21 Eric Blake <ebb9@byu.net>
5141 Ignore undefined macros, necessary with m4 1.6.
5142 * bin/autoupdate.in (_au___undefine): New macro,...
5143 (_au__undefine): ...wrapped by ifdef to silence m4 warnings.
5144 Reported by Ralf Wildenhues.
5147 * GNUmakefile: Grab from upstream, to fix issue where 'make
5148 install' would allow installation of stale version string.
5150 2008-07-19 Eric Blake <ebb9@byu.net>
5152 Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.
5153 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
5154 through all variables, per POSIX and newer m4.
5155 (_m4_text_wrap): Exploit the looping capabilities.
5156 * tests/m4sugar.at (m4@&t@_defn): Test this.
5157 * NEWS: Document it.
5158 * doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
5159 <m4_undefine>: Likewise.
5161 Reduce overhead of m4_builtin([defn]).
5162 * lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
5163 internal macros, which are slightly more efficient than
5164 m4_builtin([defn]) and company.
5165 (m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
5166 (_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
5167 (_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
5168 (m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
5169 (_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
5170 (_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
5171 (m4_version_prereq): Use them.
5173 Use warnings from m4 when available.
5174 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
5175 define slower wrapper if m4 will warn on our behalf; key off of
5176 __m4_version__, added alongside the new warnings in m4 1.6.
5177 * tests/m4sugar.at (m4@&t@_defn): New test.
5179 2008-07-18 Eric Blake <ebb9@byu.net>
5182 * lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
5183 * tests/m4sugar.at (m4@&t@_join): Test them.
5184 * doc/autoconf.texi (Text processing Macros) <m4_join>: Document
5188 2008-07-17 Stepan Kasal <skasal@redhat.com>
5189 and Eric Blake <ebb9@byu.net>
5191 Improve documentation of config.h.in template rules.
5192 * doc/autoconf.texi (Header Templates): Mention rules on comments
5193 and whitespace, and that the user cannot rely on #undef to survive
5194 through config.status.
5196 2008-07-16 Eric Blake <ebb9@byu.net>
5198 Revert m4_prepend; it is less efficient, and unused by bison.
5199 * lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
5200 (m4_prepend_uniq_w): Delete addition from 2008-07-11.
5201 (_m4_grow_uniq_1): Rename back...
5202 (_m4_append_uniq): ...to this.
5203 * NEWS: Revert NEWS blurb.
5204 * doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
5205 * tests/m4sugar.at (m4@&t@_prepend): Delete.
5207 2008-07-15 Eric Blake <ebb9@byu.net>
5209 Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
5210 * lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
5211 definition for non-Autoconf clients of m4sugar.
5213 2008-07-14 Eric Blake <ebb9@byu.net>
5215 Tighten bound of potential speed of m4_append.
5216 * doc/autoconf.texi (Text processing Macros) <m4_append>
5217 <m4_prepend>: If m4 is fixed, m4_append can be linear rather than
5219 * lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
5220 Analysis by Bruno Haible.
5222 2008-07-11 Eric Blake <ebb9@byu.net>
5224 Inherit improvements from bison's fork of m4sugar.
5225 * lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
5226 find version.texi, since bison does not provide it.
5227 (m4_prepend): Add new macro, from bison.
5228 (m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
5230 (_m4_append_uniq): Rename...
5231 (_m4_grow_uniq_1): ...to this to share implementation, and
5232 optimize initial assignment.
5233 (m4_append_uniq_w): Adjust caller.
5234 * NEWS: Document new macros.
5235 * doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
5236 speed consideration.
5237 <m4_prepend>: Document the new prepend variants.
5238 * tests/m4sugar.at (m4@&t@_prepend): New test.
5240 Work around M4 1.6 warning on undefined macros.
5241 * lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
5242 not already available as builtins.
5244 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5246 * doc/autoconf.texi (@dvar): Remove trailing newline.
5247 (@ovar): Likewise. Fix macro documentation.
5249 2008-07-02 Stepan Kasal <skasal@redhat.com>
5251 Add quotes to the header of autoscan-generated source.
5252 * bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.
5254 2008-06-28 Andreas Schwab <schwab@suse.de>
5256 * doc/autoconf.texi (autoscan Invocation): Fix spacing.
5257 (autoconf Invocation): Likewise.
5258 (autoreconf Invocation): Likewise.
5259 (autoheader Invocation): Likewise.
5260 (autom4te Invocation): Likewise.
5262 2008-06-19 Eric Blake <ebb9@byu.net>
5264 Add comment explaining recent patch.
5265 * lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
5266 of * vs. ? globbing.
5268 2008-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5270 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
5271 linking a file to itself.
5272 Report by Bruno Haible.
5274 2008-06-19 Eric Blake <ebb9@byu.net>
5277 * GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
5278 Reported by Stepan Kasal.
5280 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5282 Reorganize autotest files, factorize for parallel execution.
5283 * lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
5284 earlier in the file.
5285 (AT_INIT): Create line number cache in
5286 $at_suite_dir/at-source-lines.
5287 <at_helper_dir>: New directory at-groups below $at_suite_dir.
5288 Add comment explaining the new directory structure.
5289 (at_func_group_prepare, at_func_group_postprocess): New shell
5290 functions to factorize per-test group work. Keep the actual
5291 test execution outside of a shell function in order to avoid
5292 zsh 4.x exit status bugs.
5293 <at_check_line_file, at_status_file, at_stdout, at_stder1>
5294 <at_stderr, at_test_source>: Turn these into per-group files
5295 below $at_helper_dir. Also store test results there in files
5296 named pass, fail, xpass, xfail, skip. Let the parent collect
5297 results from $at_helper_dir. Adjust summary statistics
5298 computation and result output.
5300 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5302 Fix '#undef variable /* comment */' transform in config headers.
5303 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
5304 undefined preprocessor macros that are followed by a comment
5305 in the header template, do not create nested comments in the
5307 * tests/torture.at (@%:@define header templates): Extend test.
5309 Report by Karsten Hopp <karsten@redhat.com>.
5311 2008-06-09 Eric Blake <ebb9@byu.net>
5313 Mark AC_TYPE_SIGNAL as obsolete.
5314 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
5315 * doc/autoconf.texi (Function Portability): Update documentation.
5316 (Particular Types): Move AC_TYPE_SIGNAL...
5317 (Obsolete Macros): ...here, and mention why.
5318 * NEWS: Mention the change.
5320 Allow lib64 as a default X library location.
5321 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
5322 * NEWS: Mention the change.
5324 Reported by Brad Walker.
5326 2008-06-05 Eric Blake <ebb9@byu.net>
5328 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
5329 * lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
5330 converting it to lower case.
5331 * tests/autotest.at (Keywords and ranges): Test this.
5332 * NEWS: Document the fix.
5334 Reported via Karsten Hopp, by Jochen Schmitt in
5335 https://bugzilla.redhat.com/show_bug.cgi?id=449973
5337 2008-06-03 Eric Blake <ebb9@byu.net>
5339 Fix 'make dist' regression from 2008-05-08.
5340 * Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
5341 GNUmakefile's _autoconf rule removes INSTALL.
5343 2008-05-27 Eric Blake <ebb9@byu.net>
5345 Document Solaris /bin/sh redirection pitfall.
5346 * doc/autoconf.texi (File Descriptors): Mention redirection bug.
5348 2008-05-14 Eric Blake <ebb9@byu.net>
5350 Improve documentation of ! issues.
5351 * doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
5352 Reported by Noah Misch.
5354 Document some FreeBSD shell bugs.
5355 * doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
5356 in compound pipe commands.
5357 <export>: Mention difference of exporting an undefined variable.
5358 (Shell Functions): Mention loss of $? in entry to shell functions.
5359 Extracted from the git mailing list.
5361 2008-05-13 Stepan Kasal <kasal@ucw.cz>
5363 Work around MSYS and Cygwin bugs when dealing with trailing space.
5364 * tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
5365 even when platform bugs are tickled.
5366 Reported by Keith Marshall and Eric Blake.
5368 2008-05-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5370 Let AC_MSG_FAILURE report pwd.
5371 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
5372 Output $ac_pwd along with fatal failure.
5373 * tests/torture.at (Deep Package): Extend test.
5374 Reported numerous times against GCC, and probably other packages.
5376 2008-05-12 Eric Blake <ebb9@byu.net>
5378 Enforce --help and --version compliance.
5379 * configure.ac (AM_INIT_AUTOMAKE): Add std-options option.
5381 2008-05-08 Keith Marshall <keithmarshall@users.sourceforge.net> (tiny change)
5383 Avoid case-insensitive `make install' vs. `INSTALL' conflict.
5384 * Makefile.am ($(srcdir)/INSTALL): Replace all references...
5385 ($(abs_srcdir)/INSTALL): ...with this.
5387 2008-05-06 Eric Blake <ebb9@byu.net>
5390 * doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.
5392 Avoid overfull \hbox.
5393 * doc/autoconf.texi (Versioning): Reword to fit line size.
5395 Document $(( )) pitfalls.
5396 * doc/autoconf.texi (Shell Substitutions): Mention octal
5397 vs. decimal. Mention autotest's at_func_arith.
5399 Improve behavior of './testsuite 01'.
5400 * lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
5401 Alter usage to eval its arguments, in order to normalize away
5402 leading zero. All callers updated.
5403 * tests/autotest.at (Keywords and ranges): Test range
5404 normalization with leading 0.
5406 2008-04-26 Eric Blake <ebb9@byu.net>
5408 Mention Solaris /usr/ucb/tr pitfall.
5409 * doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
5410 Reported by Bruno Haible and Jim Meyering.
5412 2008-04-24 Eric Blake <ebb9@byu.net>
5414 Mention m4sugar's internal quote strings.
5415 * doc/autoconf.texi (Quadrigraphs): Mention alternate quote used
5416 in m4sugar, and how to still output it literally.
5417 * tests/m4sugar.at (m4@&t@_split): And test it.
5418 Reported by Joel E. Denny.
5420 2008-04-23 Eric Blake <ebb9@byu.net>
5422 Allow unbalanced () in m4_expand.
5423 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Use more complex
5425 (m4_noquote, _m4_split): Use consistent complex quote.
5426 * tests/autotest.at (Left paren, Right paren): Test this.
5427 (Parentheses): Ensure new quadrigraphs still work.
5428 (AT_CHECK_AT_TITLE_CHAR): All title char tests exercise m4_expand.
5429 * NEWS: Mention the fix.
5430 * doc/autoconf.texi (Quadrigraphs): Revert mention of macros that
5431 require quadrigraphs for ().
5432 (Evaluation Macros) <m4_expand>: Relax the restriction against
5434 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
5435 (Writing Testsuites) <AT_SETUP>: Likewise.
5436 Reported by Joel E. Denny, fix suggested by Noah Misch.
5438 2008-04-22 Eric Blake <ebb9@byu.net>
5440 Support unbalanced () in AT_SETUP by adding two new quadrigraphs.
5441 * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@.
5442 (handle_traces): Likewise.
5443 * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs.
5444 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests.
5445 * doc/autoconf.texi (Quadrigraphs): Document them.
5446 (Evaluation Macros) <m4_expand>: Enhance documentation.
5447 (Text processing Macros) <m4_text_box>: Document cases where
5448 quadrigraphs can help for problemetic unbalanced parentheses.
5449 (Pretty Help Strings) <AS_HELP_STRING>: Likewise.
5450 (Writing Testsuites) <AT_SETUP>: Likewise.
5451 (Limitations of Builtins) <case>: Consolidate text on unbalanced
5452 parentheses, and add an example of creative comments.
5453 * NEWS: Document the addition.
5454 Reported by Joel E. Denny.
5456 2008-04-16 Eric Blake <ebb9@byu.net>
5458 Document pdksh exec behavior.
5459 * doc/autoconf.texi (Limitations of Builtins) <exec>: New
5461 Discovered by Jim Meyering.
5463 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5465 * tests/autotest.at (AT_CHECK_AT): Allow to pass additional
5466 arguments to the inner suite.
5467 (errexit, input from stdin): New tests.
5469 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5471 * NEWS: Post-release update.
5473 2008-04-10 Eric Blake <ebb9@byu.net>
5475 AC_AUTOCONF_VERSION might contain arbitrary macro names.
5476 * doc/autoconf.texi (Versioning): Mention problem with expansion.
5477 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Adjust test.
5479 2008-04-09 Slava Sysoltsev <Viatcheslav.Sysoltsev@h-d-gmbh.de> (tiny change)
5481 Flush buffered output before exit.
5482 * bin/autom4te.in (handle_output): Explicitly close file.
5484 See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
5486 2008-04-08 Eric Blake <ebb9@byu.net>
5488 Generate web docs for 2.62.
5489 * doc/autoconf.texi (Evaluation Macros): Fix typo.
5490 (Notices): Use recommended means to escape RCS keyword.
5491 * cfg.mk (gnulib_dir): New macro.
5492 (web-manual): New target.
5494 2008-04-05 Eric Blake <ebb9@byu.net>
5496 Release Version 2.62.
5497 * NEWS: Mention the release.
5499 2008-04-04 Stepan Kasal <kasal@ucw.cz>
5500 and Eric Blake <ebb9@byu.net>
5502 Return back to GPLv2+, until the text of the exceptions is
5503 finalized, reverting the change from 2007-07-03 and the first
5504 part of the change from 2007-07-20.
5505 * COPYING: Revert to GPLv2.
5506 * COPYINGv3: New file, since some auxiliary build tools, used for
5507 building autoconf and not installed, are GPLv3.
5508 * Makefile.am (EXTRA_DIST): Distribute COPYINGv3.
5509 * NEWS: Remove mention of GPLv3.
5510 * README: Clarify situation regarding GPLv3.
5512 2008-04-05 Eric Blake <ebb9@byu.net>
5514 Prepare for release.
5515 * maint.mk (announcement): Avoid deleted option.
5516 * cfg.mk (release_archive_dir): Use default.
5517 * build-aux/gnupload: New file, from automake/gnulib.
5518 * Makefile.am (EXTRA_DIST): Distribute it.
5519 * .x-sc_two_space_separator_in_usage: New file, to exempt gnupload
5522 2008-04-05 Jim Meyering <meyering@redhat.com>
5523 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5525 Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
5526 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
5527 is the EOL marker, skip a step that would remove and translate
5528 carriage return bytes.
5530 Reported by Elbert Pol.
5532 2008-04-05 Eric Blake <ebb9@byu.net>
5534 Avoid some autoreconf -Wall warnings.
5535 * configure.ac: Use proper quoting, to be a good example.
5536 (PACKAGE_NAME): Remove setting covered by autoconf.
5537 (AM_INIT_AUTOMAKE): Bump automake requirement, for html rules.
5538 * doc/Makefile.am (TEXI2DVI): Remove settings covered by
5540 (html, autoconf_1.html, standards_1.html): Likewise.
5541 (TEXI2HTML, TEXI2HTML_FLAGS): Remove unused macros.
5542 * Makefile.am (html): Likewise.
5543 * doc/autoconf.texi (Quoting and Parameters): Add missing section
5545 * tests/Makefile.am (AUTOMAKE_OPTIONS): Intentionally ignore
5546 warning about our override, until Automake is fixed.
5547 * README-hacking: Document minimum requirements for bootstrap.
5549 2008-04-03 Eric Blake <ebb9@byu.net>
5551 Fix version number generation in man pages.
5552 * Makefile.am (EXTRA_DIST): Distribute .version.
5553 (.version): New rule.
5554 * man/Makefile.am (common_dep): Depend on .version, not
5556 (.x.1): Use package name for version string.
5557 * GNUmakefile [!_have-Makefile]: Sync from upstream, again.
5558 * build-aux/git-version-gen: Sync from upstream.
5560 More maintainer tweaks: pass 'make maintainer-distcheck'.
5561 * GNUmakefile (_is-dist-target): Sync from upstream.
5562 * build-aux/vc-list-files: Sync from upstream, yet again.
5563 * tests/atlocal.in (unsupported_fs_chars): Always remove tdir.
5564 * tests/Makefile.am (EXTRA_DIST): Don't distribute the built
5566 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump year.
5568 Fix VPATH 'make syntax-check'.
5569 * maint.mk (VC_LIST, VC_LIST_EXCEPT, sc_changelog)
5570 (sc_prohibit_jm_in_m4, makefile-check): Support VPATH.
5571 (author_mark_check): Avoid error message.
5572 * build-aux/vc-list-files: Sync from upstream again.
5573 * build-aux/texinfo.tex: Likewise.
5575 Sync files from upstream, and pass 'make syntax-check'.
5576 * config/announce-gen: Move...
5577 * build-aux/announce-gen: ...here, and sync from gnulib.
5578 * Makefile.am (EXTRA_DIST): Adjust accordingly.
5579 * cfg.mk (announce_gen): Likewise.
5580 (prev_version_file): Delete, relying on default in maint.mk.
5581 (gpg_key_ID): New macro.
5582 (url_dir_list): Rewrite to match coreutils.
5583 * config/prev-version.txt: Move...
5584 * .prev-version: ...here, and adjust to 2.61.
5585 * build-aux/vc-list-files: Sync from coreutils.
5586 * maint.mk: Resynchronize with coreutils, where possible.
5587 (ME): Remove $(srcdir) from definition.
5589 (GIT, VC, VC-tag): New macros.
5590 (CVS_LIST, CVS_LIST_EXCEPT): Rename...
5591 (VC_LIST, VC_LIST_EXCEPT): ...to this.
5592 (cvs-tag-check): Delete.
5593 (cvs-diff-check): Rename...
5594 (vc-diff-check): ...to this.
5595 (sc_file_system): Allow FHS acronym.
5596 * doc/autoconf.texi (Particular Functions): Recommend
5597 unconditional <config.h>.
5598 * build-aux/config.guess: Sync from upstream (manually).
5599 * build-aux/config.sub: Likewise.
5600 * build-aux/texinfo.tex: Likewise.
5601 * doc/make-stds.texi: Likewise.
5602 * doc/standards.texi: Likewise.
5603 * .gitattributes: Ignore whitespace problems in upstream files.
5605 2008-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5607 * doc/autoconf.texi (Limitations of Usual Tools): Mention awk %u
5609 Report by Peter O'Gorman.
5611 2008-04-02 Eric Blake <ebb9@byu.net>
5613 Recommend the just-released M4 1.4.11.
5614 * NEWS: Update recommendation.
5616 * doc/autoconf.texi (Introduction): Likewise.
5617 * m4/m4.m4 (AC_PROG_GNU_M4): Likewise.
5619 2008-04-01 Eric Blake <ebb9@byu.net>
5621 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Bump
5624 2008-03-28 Peter O'Gorman <peter@pogma.com>
5626 Find X11 on Mac OS X too.
5627 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
5628 Check for libX11 with extensions dylib la and dll too.
5630 Reported by Martin Costabel.
5632 2008-03-28 Eric Blake <ebb9@byu.net>
5634 Update TODO based on completed tasks.
5635 * TODO (AC_PROG_INSTALL takes multiple files): Done.
5636 (AC_GNU_SOURCE deprecation): Done, see AC_USE_SYSTEM_EXTENSIONS.
5637 (AC_COMPILE_IFELSE documentation): Done.
5638 (Tracing builtins): Done, now that we require M4 1.4.5.
5639 (AC_PROG_CC_POSIX suggestion, providing header files)
5640 (AC_TYPE_SIGNAL): Not needed; gnulib's approach is better.
5641 (cache consistency): Done with precious variables.
5643 2008-03-26 Eric Blake <ebb9@byu.net>
5645 Document --trace=macro:format in --help output.
5646 * bin/autom4te.in (help): Mention optional trace format.
5647 * bin/autoconf.as (usage): Likewise.
5649 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Fix
5650 typos in last patch.
5651 Reported by Ralf Wildenhues.
5653 2008-03-26 Jim Meyering <meyering@redhat.com>
5655 Fix texinfo syntax error.
5656 * doc/autoconf.texi (Limitations of Usual Tools): s/@kbd {/@kbd{/
5658 2008-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5660 Warn, not fail on whitespace-only precious variable differences.
5661 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Output
5662 precious variable differences less ambiguous with `ugly-quotes'.
5663 If their settings differ only in whitespace, do not fail, but
5664 reuse the old value.
5665 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Extend macro to allow
5666 an optional status and expected-warning argument. Fix m4
5667 quotation for initial value.
5668 (AC_ARG_VAR): Also test for whitespace-only differences, and
5669 that the old value is retained in this case.
5670 * doc/autoconf.texi (Setting Output Variables): Document this.
5672 Report and initial patch by Paolo Bonzini.
5674 2008-03-26 Eric Blake <ebb9@byu.net>
5676 Document busybox sed bug.
5677 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
5678 restrictions when using back-references.
5679 Reported by Vincent Lefevre:
5680 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13013>.
5682 Document Automake interaction with AC_CONFIG_MACRO_DIR.
5683 * doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
5686 Reported by Chris Pickett.
5688 2008-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5690 * tests/autotest.at (Using atlocal): Quote instances of `pwd`.
5692 * tests/local.at (AT_CHECK_M4): Factorize warning output
5694 Suggested by Eric Blake.
5696 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5698 Fix .exe-related test failure on MinGW.
5699 * tests/local.at (AT_CHECK_M4): Normalize `/bin/m4.exe' correctly
5700 for comparing warning output.
5702 Fix Fortran testsuite failures with gfortran 4.3.
5703 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
5704 verbose compiler output, skip lines that set variables; gfortran
5705 4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
5707 Report by Vincent Lefèvre.
5709 2008-03-21 Eric Blake <ebb9@byu.net>
5711 * GNUmakefile: Resynchronize with gnulib.
5713 Document more uses of $cross_compiling.
5714 * doc/autoconf.texi (Runtime): Document that a temporary override
5717 Reported by Ineiev, example by Ralf Wildenhues.
5719 Don't swallow $1 in textual local variables.
5720 * lib/m4sugar/m4sugar.m4 (m4_combine): Don't use overquoting and
5721 expansion of text arguments, as that swallows $1.
5722 (m4_text_wrap): Likewise, by splitting out...
5723 (_m4_text_wrap): ...new helper macro. Also, allow arbitrary
5724 expression for width.
5725 * tests/m4sugar.at (m4@&t@_text_wrap): Test this.
5726 (m4@&t@_combine): Likewise.
5728 2008-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5730 Avoid leftover files on Leopard.
5731 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove a.out.dSYM
5732 directory created on darwin.
5733 (AC_NO_EXECUTABLES): Likewise; also remove objects which may be
5734 left over from a broken link.
5735 * tests/c.at (AC_NO_EXECUTABLES (working linker))
5736 (AC_NO_EXECUTABLES (broken linker)): New tests.
5737 Report by Gary V. Vaughan.
5739 * lib/autom4te.in (Automake-preselections): Trace
5740 _AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF.
5742 2008-03-20 Eric Blake <ebb9@byu.net>
5744 Kill more CVS references.
5745 * README-cvs: Delete. See README-hacking instead.
5746 * README-hacking: Update wording, based on older file.
5747 * BUGS: Remove CVS mention.
5749 2008-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5751 * tests/tools.at (autotools and whitespace in file names): Skip
5752 if aclocal is not present.
5754 2008-03-20 Eric Blake <ebb9@byu.net>
5756 Sync GNUmakefile with gnulib.
5757 * GNUmakefile (Makefile.cfg): Rename...
5758 (cfg.mk): ...to this, and make optional.
5759 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
5760 (Makefile.maint): Rename...
5761 (maint.mk): ...to this.
5762 (all) [!_have-Makefile]: Rename...
5763 (abort-due-to-no-makefile): ...to this, and invoke via
5764 .DEFAULT_GOAL to pick up all targets.
5765 * Makefile.cfg: Rename...
5766 * cfg.mk: ...to this.
5767 * Makefile.maint: Rename...
5768 * maint.mk ...to this.
5769 (ME): Reflect name change.
5770 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
5771 rather than hard-coded name.
5772 * GNUmakefile.cfg: Delete; move rules into cfg.mk.
5773 * Makefile.am (EXTRA_DIST): Reflect file name changes.
5774 * .x-sc_prohibit_atoi_atof: Likewise.
5775 * lib/freeze.mk: Likewise.
5777 2008-03-19 Stepan Kasal <kasal@ucw.cz>
5779 * doc/autoconf.texi (Introduction): Improve the paraphrase of
5780 Henry Spencer's quotation.
5782 2008-03-19 Eric Blake <ebb9@byu.net>
5784 AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
5785 * bin/autoscan.in (output): Avoid obsolete spelling.
5786 * tests/local.at (AC_STATE_SAVE): Update usage.
5788 Reported by John Calcote.
5790 Emphasize that ease of configure triumphs over ease of autoconf.
5791 * doc/autoconf.texi (Introduction): Expand on primary
5792 vs. secondary goal of autoconf.
5794 Inspired by Paul Smith.
5796 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5798 * lib/Autom4te/FileUtils.pm (handle_exec_errors): New argument
5799 $hint, show if the executing program does not exist.
5800 (xsystem_hint): New function, like xsystem but allows to pass
5802 * bin/autoreconf.in: Use xsystem_hint for spawning autopoint and
5804 Report by Bruce Korb.
5806 2008-03-14 Stepan Kasal <kasal@ucw.cz>
5808 * lib/Autom4te/ChannelDefs.pm, tests/fortran.at,
5809 tests/mktests.sh, tests/wrapper.as: Fix typos.
5811 2008-03-12 Eric Blake <ebb9@byu.net>
5813 Fix yesterday's regression in m4_wrap([$1]).
5814 * lib/m4sugar/m4sugar.m4 (_m4_wrap): Don't directly invoke wrapped
5815 text, since it may contain text that looks like parameters.
5816 * tests/m4sh.at (AS@&t@_INIT cleanup): Enhance test.
5818 2008-03-11 Eric Blake <ebb9@byu.net>
5820 Improve error messages for common testsuite bugs.
5821 * lib/autotest/general.m4 (_AT_DEFINE_INIT, _AT_DEFINE_SETUP): New
5822 macros for defining order-enforced macros.
5823 (AT_INIT, AT_SETUP, AT_CLEANUP, AT_BANNER, AT_XFAIL_IF)
5824 (AT_CAPTURE_FILE, AT_DATA, AT_CHECK, AT_CHECK_NOESCAPE): Add error
5825 messages when order violations are detected.
5826 * tests/autotest.at (AT_CHECK_AT_SYNTAX): New helper macro.
5827 (AT_SETUP without AT_INIT, AT_BANNER without AT_INIT)
5828 (AT_CLEANUP without AT_INIT, Missing AT_CLEANUP)
5829 (AT_CHECK without AT_SETUP, AT_DATA without AT_SETUP)
5830 (AT_XFAIL_IF without AT_DATA, AT_KEYWORDS without AT_SETUP,
5831 (AT_CLEANUP without AT_SETUP, AT_BANNER inside AT_SETUP)
5832 (AT_SETUP inside AT_SETUP, Multiple AT_INIT)
5833 (Banner-only test suite): New tests.
5834 Reported by Christopher Hulbert.
5836 Tweak m4_wrap to force FIFO or LIFO semantics.
5837 * lib/m4sugar/m4sugar.m4 (m4_wrap): Override M4 implementation.
5838 (m4_wrap_lifo, _m4_wrap): New macros.
5839 * lib/m4sugar/m4sh.m4 (AS_INIT): Combine all cleanup into known
5840 order, prior to m4sugar's.
5841 (_AS_DETECT_BETTER_SHELL): Use cleanup parameter, rather than
5843 * lib/autotest/general.m4 (AT_INIT): Combine all cleanup into
5844 known order, prior to m4sh's.
5845 * doc/autoconf.texi (Diagnostic Macros) <m4_fatal>: Document
5847 (Redefined M4 Macros) <m4_wrap>: Rewrite documentation to match
5849 * tests/m4sh.at (AS_INIT cleanup): New test.
5850 * NEWS: Document the change.
5852 2008-03-10 Eric Blake <ebb9@byu.net>
5854 Encode nested autotest data.
5855 * tests/autotest.at (AT_CHECK_AT_PREP): Avoid raw AT_ in output.
5856 (unusual file names): Likewise.
5857 (m4_pattern_allow): Remove loophole, to make it easier to catch
5858 poorly written tests.
5860 Factor some autotest tests.
5861 * tests/autotest.at (AT_CHECK_AT_PREP): New macro, to factor out
5862 common initialization.
5863 (AT_CHECK_AT, Banners, Keywords and ranges, srcdir propagation)
5864 (whitespace in absolute testdir, unusual file names): Use it.
5866 2008-03-06 Eric Blake <ebb9@byu.net>
5868 Minor documentation fix.
5869 * doc/autoconf.texi (Evaluation Macros): Fix typo.
5871 2008-03-04 Eric Blake <ebb9@byu.net>
5873 Make AT_CHECK act like a simple command.
5874 * lib/autotest/general.m4 (_AT_CHECK): Wrap commands in {;}.
5875 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Test it.
5877 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5879 On MinGW, substitution of CR and 0xFF fails.
5880 * tests/torture.at (Substitute and define special characters):
5881 MinGW awk cannot handle 0xFF, and on MinGW, the test does the
5884 2008-03-04 Eric Blake <ebb9@byu.net>
5886 Pull in recent maintainer improvements from coreutils.
5887 * GNUmakefile (_is-dist-target): 'make distclean' should not
5889 (_dummy): Change directories before removing autom4te.cache.
5890 (check dist distcheck install) [!_have-Makefile]: Provide nicer
5892 * configure.ac (AC_CONFIG_LINKS): Copy GNUmakefile into VPATH
5893 builds, after initial bootstrap.
5894 * Makefile.am (distclean-local): Work around current automake bug.
5895 * Makefile.maint (ME): Allow VPATH usage.
5897 Use git-merge-changelog when available.
5898 * .gitattributes: New file.
5899 * README-hacking: Document use of git-merge-changelog.
5901 Work around cygwin bug.
5902 * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
5903 "touch 't\'" creates regular file 't'.
5905 Ignore tests that require read-only directories under root.
5906 * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip
5907 no-write portion if user has root-like privileges.
5909 2008-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5911 * lib/autotest/general.m4 (AT_INIT): Fix detection of '-C -'.
5913 2008-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5915 autoreconf -m now honors $MAKE.
5916 * bin/autoreconf.in ($run_make): Renamed from ...
5917 ($make): ... this. Use now as command to run `make',
5918 overridden by $MAKE. Document this in --help output.
5919 * doc/autoconf.texi (autoreconf Invocation): Document
5920 all environment variables honored by autoreconf.
5922 Report by Paul Eggert.
5924 2008-03-03 Eric Blake <ebb9@byu.net>
5926 Documentation improvements.
5927 * doc/autoconf.texi (Looping constructs): s/recurses/repeats/.
5928 (Evaluation Macros): Drop `1' suffix from metasyntax variable name
5929 that preceeds @dots. Improve wording.
5930 (Text processing Macros): Drop `1' suffix from metasyntax variable
5931 name that preceeds @dots.
5932 (Number processing Macros): Drop `1' suffix from metasyntax
5933 variable name that preceeds @dots. Improve wording.
5934 * lib/m4sugar/m4sugar.m4 (m4_cmp): Comment wording fix.
5935 Suggested by Ralf Wildenhues.
5937 2008-03-02 Jim Meyering <meyering@redhat.com>
5939 Don't infloop upon "make dist".
5940 * GNUmakefile: Merge from coreutils.
5941 * Makefile.am (dist-hook): Inject .tarball-version into tarball,
5943 * configure.ac (AC_INIT): Use .tarball-version, not .version.
5944 * build-aux/git-version-gen: Update from gnulib.
5946 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5948 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5949 Before using /dev/full, check that it is a writable character
5951 Report by Benoit Sigoure and Eric Blake.
5953 Actually test that @configure_input@ is expanded correctly.
5954 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5955 Actually check generated file contents for the name of the
5956 generated file, using AC_PROG_FGREP and $FGREP.
5958 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
5960 Be nice with file systems that don't handle unusual characters.
5961 * tests/atlocal.in (func_sanitize_file_name)
5962 (func_sanitize_dir_name): New shell functions.
5963 * tests/tools.at (autom4te and whitespace in file names)
5964 (autotools and whitespace in file names): Use them.
5965 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5966 Cover more potentially problemtic file names. Use the new
5969 Properly handle funny file names for headers in config.status.
5970 The test suite did not cover this bug because the code was not
5971 quoting properly the arguments of `rm -f' (which "fails" silently)
5972 as well as the arguments of `diff' (whose output was redirected to
5973 /dev/null so we couldn't see its error message).
5974 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
5975 file names passed to `rm' and `diff'.
5976 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
5977 Add a regression test.
5979 2008-03-01 Benoit Sigoure <tsuna@lrde.epita.fr>
5980 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5982 Properly expand @configure_input@ in config.status.
5983 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
5984 Escape the backslashes and ampersands in $configure_input before
5985 using it in the sed replacement string to expand @configure_input@.
5986 Report by Eric Blake and Patrick Welche.
5988 2008-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5990 Ignore errors from ./run on w32.
5991 * tests/autotest.at (whitespace in absolute testdir):
5992 Ignore stderr for `./run' which fails to remove the
5993 busy test directory on w32.
5995 2008-02-22 Eric Blake <ebb9@byu.net>
5997 Improve documentation for writing autotest suites.
5998 * doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
5999 checks must live inside a test group.
6000 Reported by Christopher Hulbert.
6002 2008-02-21 Eric Blake <ebb9@byu.net>
6004 Sync git-version-gen from upstream.
6005 * build-aux/git-version-gen: Pull from gnulib.
6006 * configure.ac (AC_INIT): Adjust to new calling convention.
6008 2008-02-12 Eric Blake <ebb9@byu.net>
6010 Avoid trailing space in config.h with AC_DEFINE([var], []).
6011 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
6012 defines with a comment.
6014 2008-02-08 Eric Blake <ebb9@byu.net>
6016 Fix texinfo typos in previous patch.
6017 * doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
6018 Reported by Ralf Wildenhues.
6020 Describe a config.site that can be used for FHS compliance.
6021 * doc/autoconf.texi (Site Defaults): Fix typo. Add new example
6024 Reported by Jules Colding and Ralf Wildenhues.
6026 2008-02-02 Eric Blake <ebb9@byu.net>
6028 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
6030 2008-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6032 * lib/autotest/general.m4 (AT_INIT): Fix --clean to work
6033 again, broken since introduction of `-C dir'.
6034 * tests/autotest.at (Choosing where testsuite is run): Test it.
6036 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
6038 * doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
6040 2008-01-29 Eric Blake <ebb9@byu.net>
6042 Fix more autotest regressions.
6043 * lib/autotest/general.m4 (AT_LINE): Fix regression from
6044 2007-10-04 when file name is `dnl'.
6045 (AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
6046 <TESTS_BEGIN>: ...to this new diversion, to fix regression from
6047 yesterday in libtool's testsuite.
6048 (_AT_ARG_OPTION): Detect write failure.
6049 * doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
6050 make libtool's use kosher. Document m4_init.
6051 (Programming in M4sh): Document AS_INIT.
6052 (Writing Testsuites): Document limitation of AT_DATA file name.
6053 * tests/autotest.at (unusual file names): New test.
6054 (Banners, Keywords and ranges): Use correct shell.
6056 More corner cases in testsuite VAR=VALUE handling.
6057 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
6059 <PARSE_ARGS_END>: Also detect leading digits in assignments.
6060 * tests/autotest.at (Using atlocal): Enhance test to catch last
6063 * doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash
6066 2008-01-28 Eric Blake <ebb9@byu.net>
6068 Fix regression in handling VAR=VALUE arguments to testsuite.
6069 * lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
6070 leading = as invalid. Defer use of command-line variable
6072 <PREPARE_TESTS>: ...here, after atconfig has been sourced. Fix
6073 regression in sourcing files.
6074 * tests/autotest.at (Using atlocal): New test to catch this.
6075 (Debugging a successful test, Choosing where testsuite is run):
6077 Reported by Ralf Wildenhues.
6079 Document grep peculiarity.
6080 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
6081 BSD behavior on binary input.
6083 Minor testsuite improvements.
6084 * lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
6085 forks when sanitizing PATH. Always output machine information,
6086 not just when atconfig was located.
6088 Add 'testsuite -C dir'.
6089 * lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
6091 (AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
6093 <DEFAULTS>: Delay computation of variables based on $at_dir...
6094 <PREPARE_TESTS>: ...to here, since -C can change $at_dir.
6095 <TESTS>: Re-invoke via absolute name, since -C may be in effect.
6096 <PARSE_ARGS>: Parse new option.
6097 <HELP_TUNING>: Document it.
6098 * tests/autotest.at (Choosing where testsuite is run): New test
6100 (Keywords and ranges): Add test for missing -k argument.
6101 * NEWS: Document this.
6102 * doc/autoconf.texi (testsuite Invocation): Likewise.
6104 2008-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6106 * build-aux/config.guess, build-aux/config.sub,
6107 build-aux/texinfo.tex: Sync from gnulib.
6108 * doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
6111 2008-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6113 * doc/autoconf.texi (Particular Programs): Do not mention the
6114 Autoconf version in which the AC_PROG_INSTALL change was done.
6115 Suggested by Paul Eggert.
6117 2008-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6119 Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.
6120 * lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
6121 mode, we change to the source directory, also set $ac_pwd so we
6122 do not go back to the build tree for the next config subdir.
6123 * tests/torture.at (Deep Package): Extend test to contain two
6124 config subdirs on the top level.
6126 Fix parallel `maintainer-check'.
6127 * Makefile.am (maintainer-check-tests): Depend on `all'.
6128 Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
6129 * tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
6131 (maintainer-check): Serialize the testsuite runs.
6133 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
6134 in feature string for --enable/--with. Convert to underscore
6137 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
6138 `install -c file1 file2 dir' works.
6139 * doc/autoconf.texi (Particular Programs): Document this.
6142 2008-01-21 Eric Blake <ebb9@byu.net>
6144 Improve documentation about default include directives.
6145 * doc/autoconf.texi (Generic Headers, Generic Declarations)
6146 (Generic Structures, Generic Types)
6147 (Generic Compiler Characteristics): Add links to
6148 AC_INCLUDES_DEFAULT.
6149 Reported by Reuben Thomas.
6151 2008-01-15 Eric Blake <ebb9@byu.net>
6153 * lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
6155 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6157 * tests/Makefile.am (noinst_SCRIPTS): Renamed from
6158 check_SCRIPTS. Building the wrappers for `all' allows help2man
6159 to use them for the manpages.
6160 Report by Benoit Sigoure.
6162 * bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
6164 2007-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6166 Fix some write failure cases in Autotest.
6167 * lib/autotest/general.m4 (AT_INIT): Do not exit successfully
6168 upon write failures for --help, --version, --list.
6169 Guard against write failures for intermediate created scripts.
6170 <at_func_create_debugging_script>: Do not make the debugging
6171 script executable if it is not complete.
6173 2007-12-12 Eric Blake <ebb9@byu.net>
6175 Fix thinko in earlier patch - m4_join isn't defined yet.
6176 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6177 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6178 (m4_require): Use m4_do, not m4_join.
6180 Fix some whitespace tests on cygwin.
6181 * tests/tools.at (autom4te and whitespace in file names): Restore
6182 font-lock. Create $TMPDIR before it might be used.
6184 Fix spurious testsuite failure with M4 1.4.11.
6185 * tests/local.at (AT_CHECK_M4): Cater to new m4 error message.
6187 Optimize AC_REQUIRE.
6188 * lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
6189 (_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
6190 (m4_require): Avoid extra macro calls.
6192 2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6194 * tests/torture.at (srcdir): Fix quoting.
6196 Do not pass top_srcdir to configure scripts in testsuite.
6197 * tests/autotest.at (srcdir propagation): Copy install-sh to
6199 (my only test): Drop setting of `top_srcdir'.
6200 * tests/base.at (Input/Output): Likewise.
6201 * tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
6202 config.guess, and config.sub to test source tree.
6203 Drop AC_CONFIG_AUX_DIR setting.
6204 (AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
6205 * tests/torture.at (Substitute a 2000-byte string): Drop
6206 AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
6207 (Substitute a newline, datarootdir workaround): Likewise.
6208 (Define a newline): Adjust for linenumber changes in configure.ac.
6209 * tests/foreign.at (Libtool): Adjust comment to reflect changes.
6211 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test
6212 if `pwd` contains whitespace.
6214 Quote $abs_top_srcdir in tests.
6215 * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
6216 * tests/tools.at (Syntax of the shell scripts): Likewise.
6218 * tests/m4sh.at (LINENO): Quote $0.
6220 Fix testsuite program wrapper for whitespace in `pwd`.
6221 The problem here is that the usual mantra is that command
6222 variables can contain arguments, thus we cannot just escape
6223 $AUTOCONF, $AUTOM4TE etc. The compromise is to put the
6224 $top_builddir/tests directory early in $PATH, so that the
6225 wrappers are found by their plain name.
6226 * tests/wrapper.as: Put $testdir early in $PATH.
6227 (AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.
6229 Proper config.status --file/--header and $srcdir escaping.
6230 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
6231 characters in $ac_file_inputs.
6232 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
6234 * tests/torture.at (datarootdir workaround): Adjust.
6235 (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.
6237 Fix Autotest for whitespace in `pwd`.
6238 * lib/autotest/general.m4 (AT_INIT)
6239 <at_func_create_debugging_script, Driver Loop>:
6240 Quote $at_group_dir.
6241 * tests/autotest.at (whitespace in absolute testdir): New test.
6243 * lib/autom4te.in: Quote @datadir@.
6245 Proper file name escaping in Autoconf programs and Perl modules.
6246 This includes escaping of characters special to the shell
6247 as well as special to Perl, e.g., leading `<' or `>'.
6248 For example, when $file starts with `>', `open ">$file"'
6249 wrongly tries to append to a different file.
6250 * bin/autoconf.as: Fix quoting for autom4te options.
6251 * lib/Autom4te/General.pm (shell_quote): New function, taken
6252 from coreutils, written by Jim Meyering.
6254 * bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
6256 * bin/autoreconf.in (parse_args): Likewise.
6257 * bin/autoscan.in (main): Likewise.
6258 * bin/autoupdate.in (main): Likewise.
6259 * bin/autoheader.in: Likewise, fixing old insufficient escaping.
6260 * bin/ifnames.in: Likewise, XFile usage fixes.
6261 * tests/tools.at (autom4te and whitespace in file names): Extend
6262 test. Test twice, with special characters allowed on w32, and the
6263 rest. Test leading and trailing whitespace, for `open_quote'.
6264 (autotools and whitespace in file names): New, analogous test.
6265 Reported by Paul Eggert and Benoit Sigoure, additional suggestions
6266 by Russ Allbery and Eric Blake.
6269 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
6270 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
6271 * lib/Autom4te/FileUtils.pm (open_quote): New function.
6272 (update_file, contents): Use it.
6274 * Makefile.am (autom4te-update): Rewrite for git.
6276 2007-12-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6278 * doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
6280 Fix copyright years.
6281 * Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
6282 lib/autoconf/lang.m4, lib/freeze.mk: Likewise.
6284 2007-12-04 Eric Blake <ebb9@byu.net>
6286 Manually resync with gnulib, since 'make cvs-update' no longer works.
6287 * build-aux/config.guess: New upstream version.
6288 * build-aux/config.sub: Likewise.
6290 When using older automake, don't downgrade build-aux/texinfo.tex.
6291 * configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
6292 * doc/Makefile.am (TEXINFO_TEX): Add.
6294 2007-11-27 Paul Eggert <eggert@cs.ucla.edu>
6296 Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.
6297 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
6298 #undef as this runs afoul of our new way of creating config.h.
6299 Problem reported by Jim Meyering in
6300 <http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.
6302 2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6304 Fix autom4te for unusual characters in input file names.
6305 * bin/autom4te.in (files_to_options): Quote active characters
6307 * tests/tools.at (autom4te and white space in file names):
6310 * doc/autoconf.texi (Limitations of Usual Tools) <awk>:
6311 Document that Tru64 awk always splits $0.
6313 2007-11-24 Stepan Kasal <kasal@ucw.cz>
6315 * lib/autotest/general.m4 (AT_INIT): Do not extract the
6316 `#AT_STOP_...' line at the end of each test.
6318 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6320 * lib/autotest/general.m4 (AT_INIT): For awk line number
6321 extraction script, ensure `$at_group' has a defined value
6322 even for the empty set, and properly quote its usage inside
6325 2007-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6327 * doc/autoconf.texi (Shell Functions): New chapter. Document
6328 IRIX sh $0 issue in functions, move content from ...
6329 (Portable Shell): ... here.
6330 (Shell Script Compiler): Note that shell functions are not
6331 totally unportable any more.
6333 2007-11-22 Stepan Kasal <kasal@ucw.cz>
6334 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6336 * lib/autotest/general.m4 (AT_INIT): Exit awk script after
6337 extracting the line numbers of the last needed test.
6339 2007-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6341 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
6344 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6346 Fix IRIX testsuite debugging failures: $0 in functions.
6347 * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
6348 Do not use $0 inside a function, as IRIX sh will set that to the
6349 function name rather than the script invocation name.
6351 2007-11-19 Paolo Bonzini <bonzini@gnu.org>
6352 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6354 * lib/autotest/general.m4 (at_func_test): Use cached line numbers
6355 to extract test scripts.
6356 (AT_INIT): Extract and cache test script line numbers.
6358 2007-11-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6360 * lib/autotest/general.m4: Revert 2007-11-15 patch and
6361 subsequent fixups; the awk -> here-document conversion trashes
6362 performance too much with AIX sh.
6364 2007-11-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6366 * tests/local.at: Do not test m4, perl with AT_TESTED.
6368 Diagnose and guard against write errors dealing with config.status.
6369 The general idea is this: all write failures from `configure'
6370 writing `config.status' are indicated by $ac_write_error, which
6371 is only checked at the end. This is safe because config.status
6372 code is not executed before the file is complete. Other write
6373 failures, be they inside config.status, or in sub shell/awk
6374 scripts spawned from configure or config.status, typically need
6375 earlier checking, as their results are used right afterwards.
6376 * lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
6377 before writing config.status, check afterwards.
6378 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
6379 (_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
6380 Set `ac_write_error' for write failures to config.status. Barf
6381 upon write failures to temporary files.
6382 Adjust note about closing and reopening the here-document.
6383 (_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
6384 (_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
6385 reopening the here-document.
6386 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6387 Ensure `ac_write_error' does not escape into config.status.
6388 Also, add a couple of code paths not yet exercised in the test
6389 suite: a config file with input from stdin, and a config header
6391 Suggestion for catching write errors by Bruno Haible.
6393 2007-11-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6395 Avoid error with Tru64 awk and testsuite lines with many words.
6396 * lib/autotest/general.m4 (AT_INIT): In the awk script that
6397 reads the testsuite, set the field separator to an unusual value,
6398 in order to not run over the limit of 199 fields. Tru64 4.0D awk
6399 even splits the input if $i, i>0, was never accessed in the script.
6401 Revert 2007-10-17 change.
6402 * TODO: Multiline args in config files and headers mean something
6403 different and are not fixed, see
6404 <http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
6405 Report by Stepan Kasal.
6407 * doc/autoconf.texi (Generic Programs): Fix typo.
6409 2007-11-16 Stepan Kasal <kasal@ucw.cz>
6411 AC_*_TOOL does not canonicalize the prefix
6412 * doc/autoconf.texi (Generic Programs): Do not say that
6413 the *_TOOL macros canonicalize, they simply use the `host_alias'.
6415 2007-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6417 Diagnose write errors in config.status instantiations.
6418 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
6419 (_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
6421 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
6422 Extend test to also check for some write error failures, using...
6423 <AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
6424 Report by Bruno Haible.
6427 * lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
6429 (_AT_CHECK): Use less indentation, to save space.
6431 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6433 Add witness macro for @top_build_prefix@ substitution.
6434 * lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
6435 (_AC_OUTPUT_FILE): Mention it here.
6437 2007-11-15 Paolo Bonzini <bonzini@gnu.org>
6438 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6440 * lib/autotest/general.m4 (at_func_test): Remove.
6441 (AT_INIT): Pre-extract test groups into separate files.
6442 (AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
6443 Remove at-test-source files together with the $at_group_dir.
6444 * tests/autotest.at (Long test source lines): New test.
6446 2007-11-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6448 Shell functions and variables may share a namespace.
6449 * doc/autoconf.texi (Portable Shell): Mention Solaris sh
6452 2007-11-14 Paul Eggert <eggert@cs.ucla.edu>
6454 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
6457 2007-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6459 * lib/autoconf/status.m4: Fix a couple of comment typos.
6461 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
6463 2007-11-13 Jim Meyering <meyering@redhat.com>
6465 Clean up the rule to create "expr".
6466 * tests/Makefile.am (expr): Don't redirect directly to target.
6467 Redirect just once, not for each echo statement.
6468 Use $@, not literal "expr".
6470 2007-11-13 Paul Eggert <eggert@cs.ucla.edu>
6472 Don't worry about preprocessor when testing long long.
6473 See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
6474 * doc/autoconf.texi (Preprocessor Arithmetic): New section.
6475 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
6476 These no longer check for preprocessor flaws.
6477 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
6478 Do not check for preprocessor flaws.
6480 2007-11-13 Jim Meyering <meyering@redhat.com>
6482 Adapt dependencies, now that a version change doesn't modify configure.ac
6483 * GNUmakefile: Remove "make clean" kludge.
6484 * lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
6486 Don't redirect directly to target.
6487 Use $@, not literal "version.m4".
6489 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6491 * doc/autoconf.texi (Making testsuite Scripts): Document
6492 ":;{" shorthand as in previous patch.
6494 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
6496 * doc/autoconf.texi (Limitations of Builtins): Document problem
6497 with { ... } a bit more clearly. Suggest ":;{" as a shorthand
6499 * lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
6500 Use ":;{" shorthand.
6501 * tests/Makefile.am ($(srcdir)/package.m4): Likewise.
6503 2007-11-12 Jim Meyering <meyering@redhat.com>
6505 Add more non-srcdir build support.
6506 * GNUmakefile (dummy): Split a long line.
6507 Add -v option to autoreconf invocation.
6509 Remove the autoreconf-provided INSTALL, so that we regenerate it.
6510 * GNUmakefile (dummy): Remove INSTALL.
6512 Remove racy commands to build scripts in bin/ and tests/.
6513 * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
6514 are guaranteed to be built, remove the rules that tried to build
6515 them. Before, with a parallel build, these rules could lead to
6516 two processes writing tests/wrapper.in concurrently.
6518 Build in man/ only *after* building in bin/ and tests/.
6519 * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
6520 in both bin/ and tests/.
6522 Accommodate non-srcdir build-from-checkout.
6523 * build-aux/git-version-gen: Require an additional parameter: $srcdir.
6524 Use git's --git-dir=$srcdir/.git option.
6525 Add quotes, in case tarball_version_file contains shell meta-characters.
6526 * GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
6527 * configure.ac: Pass "." to git-version-gen.
6529 Avoid spurious test failures due to version skew.
6530 * GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
6532 2007-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6534 Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
6535 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
6536 Remove conftest.dSYM directory.
6537 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
6538 (_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
6539 Remove `conftest.*' recursively.
6540 * lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
6541 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
6543 (_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
6545 Report and analysis by Jeff Squyres and Peter O'Gorman.
6547 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
6549 Fix typos in variable names.
6550 * tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.
6552 2007-11-11 Benoit Sigoure <tsuna@lrde.epita.fr>
6554 Document that $((expression)) is not portable.
6555 * doc/autoconf.texi (Shell Substitutions): Here.
6557 2007-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6559 Ignore configure --help* errors due to LINENO-impaired shells.
6560 * tests/torture.at (Configuring subdirectories, Deep Package):
6561 In the --help* tests in read-only trees, make `.' temporarily
6562 writable again for the `stderr' file, and ignore errors due to
6563 the attempt to write configure.lineno.
6564 Report by Patrick Welche.
6566 2007-11-10 Jim Meyering <meyering@redhat.com>
6568 Generate package.m4 in build-dir, not srcdir.
6569 * tests/Makefile.am (package.m4): Adjust target.
6570 Don't redirect directly to $@.
6571 (CLEANFILES): Add package.m4.
6572 ($(TESTSUITE)): Depend on just-built package.m4, not the one
6574 When running $(AUTOTEST), search "." before searching $(srcdir).
6576 Avoid a race condition that would make parallel "distclean" fail.
6577 * tests/Makefile.am (distclean-generic): Replace the default,
6578 automake-provided rule with an identical one, but with an additional
6579 dependency on distclean-local. Simply adding the dependency would
6580 cause automake not to emit the rule at all.
6581 * BUGS: Building with -jN works, now.
6583 Distribute git-version-gen.
6584 * Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
6585 since GNUmakefile is distributed, and requires it for dist* rules.
6587 Remove two more generated files from version control.
6588 * INSTALL: Remove generated file.
6589 * lib/autoscan/autoscan.list: Remove generated file.
6591 2007-11-09 Paul Eggert <eggert@cs.ucla.edu>
6593 * GNUmakefile (PATH): Remove stray apostrophes; they become
6594 part of PATH, which isn't wanted here.
6596 2007-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6598 New config files output variable `top_build_prefix'.
6599 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
6601 * doc/autoconf.texi (Preset Output Variables): Document it.
6603 Report by Bob Friesenhahn.
6605 Avoid expr for arithmetic evaluation if the shell accepts $((...)).
6606 * lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
6607 function, to parametrize arithmetic with expr vs. the shell.
6608 Use it where possible.
6609 Suggestion by Benoit Sigoure.
6611 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
6613 Adjust the documentation of autotest WRT atlocal.
6614 * doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
6615 when using Automake, to write a rule to produce atlocal, since it's
6616 an AC_CONFIG_FILES. Mention that atlocal.in needs to be
6617 distributed, not atconfig.in.
6619 2007-11-04 Eric Blake <ebb9@byu.net>
6621 Update list information.
6622 * README: Mention new autoconf-commit list.
6623 * doc/autoconf.texi (Introduction): Mention autoconf-commit list.
6625 2007-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6627 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
6629 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
6631 * build-aux/.gitignore: Ignore mkinstalldirs.
6633 * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
6635 2007-11-03 Jim Meyering <meyering@redhat.com>
6637 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
6638 * build-aux/git-version-gen: This syncs from coreutils.
6640 Adjust the build procedure so "make check" works reliably.
6641 * README-hacking: Include an extra step between "make" and
6642 "make check" to ensure that the latter passes.
6644 Use just-built tools, when possible.
6645 * GNUmakefile (PATH): Set and export here, ...
6646 (dummy): ... rather than here.
6648 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6649 and Andreas Schwab <schwab@suse.de>
6651 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
6654 2007-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6656 * configure.ac (AC_PREREQ): Require version 2.60, for
6657 AC_PROG_SED, AC_PROG_GREP.
6659 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
6660 and Jim Meyering <meyering@redhat.com>
6661 and Andreas Schwab <schwab@suse.de>
6662 and Eric Blake <ebb9@byu.net>
6664 Document a bug in GNU Bash with compound commands and redirections.
6665 * doc/autoconf.texi (Limitations of Builtins): Mention that GNU
6666 Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
6669 2007-11-03 Eric Blake <ebb9@byu.net>
6671 Support m4 1.4.5 in testsuite.
6672 * tests/torture.at (Define a newline): Exclude line numbers in
6674 Reported by Ralf Wildenhues.
6676 2007-11-03 Jim Meyering <meyering@redhat.com>
6678 Remove automake-provided files from version control.
6679 * build-aux/elisp-comp: Remove file.
6680 * build-aux/install-sh: Remove file.
6681 * build-aux/missing: Remove file.
6682 * build-aux/mdate-sh: Remove file.
6683 * build-aux/.gitignore: New file.
6684 Suggestion from Ralf Wildenhues.
6686 2007-11-03 Eric Blake <ebb9@byu.net>
6688 Adjust version comparison to account for git snapshot numbers.
6689 * lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
6690 component separator.
6691 * doc/autoconf.texi (Number processing Macros)
6692 <m4_version_compare>: Document this change.
6693 * tests/m4sugar.at (m4@&t@_version_compare): Test it.
6695 2007-10-30 Bruno Haible <bruno@clisp.org>
6697 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
6698 extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
6699 (AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
6700 Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
6701 <http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
6702 Suggested by Paul Eggert.
6704 2007-10-28 Jim Meyering <meyering@redhat.com>
6706 * README-hacking: Autoconf, Automake, and Perl are required to build.
6707 List Gzip and Tar separately. Suggested by Ralf Wildenhues.
6709 2007-10-28 Jim Meyering <meyering@redhat.com>
6711 README-hacking: Recommend running autoreconf -vi.
6712 * GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
6713 so that we use just-built tools when they're available.
6714 Suggestions from Ralf Wildenhues.
6716 2007-10-28 Jim Meyering <meyering@redhat.com>
6718 Make inter-release --version output more useful.
6720 Now, each unofficial build has a version "number" like 2.61a-19-58dd,
6721 which indicates that it is built using the 19th change set
6722 (in _some_ repository) following the "v2.61a" tag, and that 58dd
6723 is a prefix of the commit SHA1.
6724 * build-aux/git-version-gen: New file.
6725 * configure.ac: Run it to set the version.
6726 (AM_INIT_AUTOMAKE): Don't check NEWS here.
6727 * Makefile.am (dist-hook): Arrange so that .version appears only
6728 in distribution tarballs, never in a checked-out repository.
6729 * .gitignore: Add .version here, too. Just in case.
6730 * tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
6731 not configure.ac, now that the version number changes automatically.
6733 Ensure that $(VERSION) is up to date for dist-related targets.
6734 * GNUmakefile: Arrange to rerun autoconf, if the version reported by
6735 git-version-gen doesn't match $(VERSION), but only for dist targets.
6737 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6739 Fix `Deep Package' failure with a configure script early in PATH
6740 * tests/torture.at (Deep Package): Add `.' early in PATH.
6741 Report by Jim Meyering.
6743 2007-10-27 Jim Meyering <meyering@redhat.com>
6745 Remove all generated files from version control.
6746 * aclocal.m4: Remove.
6747 * configure: Remove.
6748 * Makefile.in: Remove, along with all other Makefile.in in subdirs.
6749 * .gitignore: Add aclocal.m4, configure and Makefile.in. Sort.
6750 * README-hacking: New file: how to build from just-checked-out sources.
6752 2007-10-23 Eric Blake <ebb9@byu.net>
6754 Improve corner case of m4_expand.
6755 * lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
6757 * tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
6758 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
6761 2007-10-23 Paul Eggert <eggert@cs.ucla.edu>
6763 * doc/make-stds.texi: Update from gnulib.
6765 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
6766 and Eric Blake <ebb9@byu.net>
6768 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
6769 problem reported by Bruno Haible in
6770 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
6772 2007-10-22 Eric Blake <ebb9@byu.net>
6774 * doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
6777 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
6779 Don't check for bug in HP-UX 11.00 cpp.
6780 * lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6781 Use -1ull rather than -1u, since that causes problems with gnulib; see
6782 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
6784 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6786 * tests/autotest.at (Backquote command substitution)
6787 (Multiline backquote command substitution)
6788 (Parenthetical command substitution)
6789 (Multiline parenthetical command substitution): Fix typos in
6792 2007-10-21 Eric Blake <ebb9@byu.net>
6794 * configure: Regenerate.
6796 2007-10-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6798 Fix config status generation with Tru64 ksh.
6799 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
6800 escaping of backslash in here-documents.
6802 Fix `Deep Package' test failure on FreeBSD.
6803 * tests/torture.at (Deep Package): Do not add `.' to $PATH
6804 unnecessarily. Do not try running `/bin/sh configure' with a
6805 configure script to be found in $PATH, if the shell does not do
6806 this resolution. Fixes test failure on FreeBSD.
6808 Fix config header generation with AIX awk.
6809 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
6810 script, use helper array D_is_set, as `" 0"' does not evaluate
6811 to true for AIX awk.
6813 2007-10-21 Eric Blake <ebb9@byu.net>
6815 * tests/autotest.at (Banners): Reinstate test, with typo
6818 2007-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6820 * lib/autotest/general.m4 (Defaults): Validate input ranges ...
6821 <at_func_validate_ranges>: ... using this new function.
6822 * tests/autotest.at (Keywords and ranges): Test invalid ranges.
6823 Test --list with ranges and keywords.
6824 (Banners): Remove one now-failing test.
6826 2007-10-20 Eric Blake <ebb9@byu.net>
6828 Fix testsuite --list subset.
6829 * lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
6830 back to spaces, before listing subset of tests.
6831 Reported by Ralf Wildenhues.
6833 2007-10-19 Eric Blake <ebb9@byu.net>
6835 s/parenthesis/parentheses/ where appropriate.
6836 * doc/autoconf.texi: Fix typos.
6837 * lib/m4sugar/m4sugar.m4: Likewise.
6838 Reported by Ralf Wildenhues.
6840 Document m4_expand limitation.
6841 * lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
6843 * doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
6844 (Writing Testsuites): Mention limitations inherited from
6847 Improve AT_BANNER handling.
6848 * lib/autotest/general.m4 (BANNERS): New named diversion.
6849 (TESTS_END): Diversion no longer used.
6850 (AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
6851 shell function, which prints only as needed, using an associative
6852 array of banner text from a special diversion.
6853 <PARSE_ARGS_END>: No longer need awk to find banners.
6854 <TESTS>: Banners are no longer processed by main driver loop, so
6855 we no longer need case statement.
6856 (AT_BANNER): Rewrite to populate new diversion.
6857 (AT_SETUP): Each test invokes its own banner. No output is needed
6858 to the TESTS diversion.
6859 * doc/autoconf.texi (Writing Testsuites): Document slight
6861 * tests/autotest.at (AT_BANNERS): Enhance test.
6862 * NEWS: Document AT_BANNER.
6864 Document and test AT_BANNER.
6865 * doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
6866 * tests/autotest.at (AT_CHECK_EGREP): Share between tests.
6867 (AT_CHECK_BANNERS): New test.
6870 * doc/autoconf.texi (Text processing Macros) <m4_strip>
6871 <m4_text_wrap>: Clarify and fix typos.
6873 2007-10-18 Eric Blake <ebb9@byu.net>
6875 Ignore `make dist' changelogs in testsuite.log.
6876 * lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
6877 directories matching AT_PACKAGE_TARNAME-*.
6879 Fix AT_TESTED, AT_KEYWORDS.
6880 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
6881 occurs in string, as duplicates may be added.
6882 (_m4_append_uniq): New helper macro.
6883 (m4_append_uniq_w): New macro.
6884 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
6885 duplication bug by using new macro.
6886 (AT_INIT) <at_tested>: Restore newline separators. Invoke tested
6887 programs with stdin redirected, so programs that don't
6888 understand --version won't try to behave interactively.
6889 * tests/autotest.at (Tested programs): Catch this bug.
6890 * tests/m4sugar.at (m4@&t@_append): Test new macro.
6891 * tests/local.at (AT_TESTED): Add m4, perl.
6892 * doc/autoconf.texi (Text processing Macros): Document
6893 m4_append_uniq_w, and update text on m4_append.
6894 * NEWS: Document the addition.
6896 2007-10-17 Eric Blake <ebb9@byu.net>
6899 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
6901 (AT_INIT) <at_func_create_debugging_script>: ...to shell
6903 (AT_INIT): Defer function declarations until after --help,
6904 --version. Format functions consistently, trying to fit in 80
6906 (TEST_FUNCTIONS): Based on recent changes, rename...
6907 (TEST_GROUPS): ...to this.
6910 * m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
6911 * configure: Regenerate.
6912 Reported by Bob Friesenhahn.
6914 Test recent additions.
6915 * tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
6916 (m4@&t_max and m4@&t_min): New tests.
6917 * doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
6920 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6922 * TODO: multiline args in config files and headers work now.
6924 Autotest: do not use shell functions for individual tests.
6925 * lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
6926 extract the source test source, do not invoke it.
6927 (AT_SETUP, AT_CLEANUP): Source test code outside shell function.
6928 * tests/autotest.at (Fallacy): Actually let the inner suite fail,
6929 expect exit status of 1.
6930 * tests/autotest.at (Skip): New test, for bogus zsh exit status.
6932 * lib/autotest/general.m4 (at_func_test): Fix test extraction
6935 2007-10-17 Eric Blake <ebb9@byu.net>
6937 Fix m4_combine for empty suffix list.
6938 * lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
6939 * doc/autoconf.texi (Text processing Macros): Document this.
6941 Add m4_combine, based on Libtool's lt_combine.
6942 * lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
6943 * doc/autoconf.texi (Text processing Macros): Document it.
6946 2007-10-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6948 Fix `configure --help=recursive' in unconfigured/read-only trees.
6949 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
6950 is not writable, use 'cp -p' in this case, in the hope that it
6951 will not actually be needed. Still try removing files, in case
6952 of other write errors.
6953 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
6954 use $as_myself, not $0.
6955 (_AC_INIT_HELP): For --help=recursive, if the subdir does not
6956 exist, try again in the the source tree. This change assumes
6957 that the subpackage configure script is capable of running
6958 --help=recursive in the source tree.
6959 * tests/torture.at (Configuring subdirectories, Deep Package):
6960 Adjust tests to expose both issues, also try invocation as
6961 `sh configure ...' and plain `configure ...' with PATH adjusted.
6962 * NEWS, THANKS: Update.
6963 Report by Hans Ulrich Niedermann.
6965 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
6967 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6968 Problem reported by H.Merijn Brand in
6969 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6970 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
6971 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6972 Check that preprocessor handles 64-bit ints, too.
6974 2007-10-16 Eric Blake <ebb9@byu.net>
6976 m4_map is a looping construct.
6977 * lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.
6979 Fix m4_map, and add some more utility macros.
6980 * lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
6981 (m4_echo, m4_make_list): New documented macros.
6982 (_m4_quote, _m4_shift2): New helper macros.
6983 (m4_map): Change semantics to allow calling macro without
6985 (m4_map_sep): Likewise. Also change semantics to quote separator,
6986 to match m4_join and m4_append.
6987 (m4_version_unletter): Fix use of m4_map.
6988 * doc/autoconf.texi (Evaluation Macros): Document m4_apply,
6989 m4_count, m4_dquote_elt, m4_echo, m4_make_list.
6990 (Text processing Macros): Mention m4_dquote as a faster
6991 alternative to joining with commas.
6992 (Looping constructs): Document m4_map, m4_map_sep.
6993 * NEWS: Mention new macros.
6995 A few more m4sugar improvements, to benefit libtool.
6996 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
6997 of expansion by avoiding extra uses of $@.
6998 (m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
6999 (_m4_cdr): New helper macro.
7000 (_m4_map, m4_map_sep): Use it to reduce size of expansion.
7001 (_m4_shift3): New helper macro.
7002 (_m4_foreach): Swap argument order, and use new macro to reduce
7004 * doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
7005 count must be positive.
7007 * doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
7008 Reported by Ralf Wildenhues.
7010 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7012 * doc/autoconf.texi (Portable Shell): Improve description of zsh
7013 4.x function subshell bug with exit and trap.
7015 2007-10-15 Eric Blake <ebb9@byu.net>
7017 Enhance AS_HELP_STRING.
7018 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
7019 and reduce number of expansions.
7020 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
7021 and to take indent and wrap column numbers.
7022 * tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
7023 * doc/autoconf.texi (Pretty Help Strings): Document details about
7025 (Text processing Macros): Minor tweaks.
7026 * NEWS: Document this change.
7028 Fix 2007-10-03 regression with AT_SETUP([a, b]).
7029 * lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
7030 (m4_text_box): Use it.
7031 * lib/autotest/general.m4 (AT_SETUP): Use it.
7032 * lib/m4sugar/m4sh.m4 (_AS_RUN): Use it.
7033 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
7034 * NEWS: Revert caveat about semantics change on comma.
7035 * doc/autoconf.texi (Evaluation Macros): Document m4_expand.
7037 2007-10-13 Eric Blake <ebb9@byu.net>
7039 Change m4_join to match libtool's ltsugar semantics.
7040 * lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
7041 Ignore empty arguments, using...
7042 (_m4_join): ...this new helper.
7043 * tests/m4sugar.at (m4@&t@_join): New test.
7044 * doc/autoconf.texi (Text processing Macros): Document new
7045 semantics of m4_join.
7047 Make AC_PREREQ faster and more robust.
7048 * lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
7049 (m4_version_prereq): Inline constant expansions.
7050 (m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
7051 Rewrite in terms of [] list, not () list.
7052 (_m4_list_cmp, _m4_version_unletter): New helper macros.
7053 (m4_version_unletter): Write wrapper around new implementation to
7054 preserve old semantics.
7055 (m4_version_compare): Pass correct type of list, and avoid
7056 overhead of flattening expressions too early.
7057 (m4_do): Move to be near other quoting macros.
7058 (m4_max, m4_min): Always result in decimal output.
7059 * doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
7061 (Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
7062 (Text processing Macros): Move m4_version_compare...
7063 (Number processing Macros): ...to this new node; document m4_cmp,
7064 m4_list_cmp, m4_sign, m4_max, m4_min.
7065 * tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
7066 up on bugs fixed by this patch.
7067 * NEWS: Document new macros.
7069 2007-10-12 Eric Blake <ebb9@byu.net>
7071 * doc/autoconf.texi (Text processing Macros): Fix bad merge.
7072 (Reporting Messages): Fix underfull hbox.
7074 Some more m4sugar documentation.
7075 * lib/m4sugar/m4sugar.m4: Clean up macro order.
7076 * doc/autoconf.texi (Programming in M4): Lighten the warning on
7077 using m4sugar; it is stabilizing and useful.
7078 (Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
7079 m4_divert, m4_undivert, __file__, __line__, __oline__.
7080 (Diagnostics): New node, documenting m4_assert, m4_errprintn,
7081 m4_fatal, m4_location, m4_warn.
7082 (Diversion support): New node, documenting m4_divert_push,
7083 m4_divert_pop, m4_divert_text, m4_divert_once.
7084 (Text processing Macros): Sort. Add m4_flatten, m4_join,
7085 m4_newline, m4_strip, m4_text_box, m4_text_wrap.
7086 (Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
7088 (Printing Messages): Change cross-reference.
7090 Document interaction of recent m4_append change with Libtool HEAD.
7091 * lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
7092 (m4_append_uniq): Add new parameters, based on lt_append_uniq.
7093 * tests/m4sugar.at (m4@&t@_append): New test.
7094 * NEWS: Document semantics change.
7095 * doc/autoconf.texi (Text processing Macros): Likewise.
7097 s/AC_VERSION/AC_AUTOCONF_VERSION/.
7098 * doc/autoconf.texi (Versioning): Change the name.
7100 * lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
7101 * tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
7102 Suggested by Ralf Wildenhues.
7105 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
7106 (_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
7108 * doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
7109 (Programming in M4sh, Macro Names): Beef up description of
7110 namespaces reserved for autoconf.
7111 * configure: Regenerate.
7113 2007-10-12 Eric Blake <ebb9@byu.net>
7114 and Paolo Bonzini <bonzini@gnu.org>
7116 Speed up execution of subset of testsuite.
7117 * lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
7118 (AT_INIT) <at_func_test>: New shell function.
7119 (AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
7120 (AT_INIT) <at_test_source> New variable, names file that holds
7121 current test function definition.
7122 (AT_SETUP): Start the shell function at_func_test_#, into the
7123 TEST_FUNCTIONS diversion.
7124 (AT_CLEANUP): End the shell function. Simplify the TESTS
7125 diversion to invoke the function.
7127 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7129 * .gitignore: Ignore tags and TAGS files.
7131 2007-10-11 Eric Blake <ebb9@byu.net>
7133 Config header generation followup.
7134 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
7135 which won't work with the preprocessor nor with the awk
7137 * tests/torture.at (Define a newline): Test raw newline detection,
7139 * doc/autoconf.texi (Defining Symbols): Document recent change to
7140 allow backslash-newline.
7143 2007-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7145 * lib/autotest/general.m4: Put function braces in separate line.
7147 2007-10-10 Eric Blake <ebb9@byu.net>
7149 Avoid some overhead from m4_defn and m4_popdef.
7150 * lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
7151 pass on first argument, since we are documented that way.
7152 (m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
7153 check where it is safe to do so.
7154 (m4_append): Likewise, and quote the separator.
7155 (m4_text_box): Likewise, and avoid regex, also be robust to
7156 expansion and quadrigraphs.
7158 Another AC_DEFINE speedup.
7159 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
7161 (_AC_DEFINE_Q): ...here, and only do it once.
7162 * lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
7163 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
7164 introduced 2007-10-05.
7167 * lib/autoconf/general.m4: Use consistent indentation.
7168 * configure: Regenerate.
7170 * NEWS: Announce recent round of speed optimizations.
7172 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7174 * NEWS: Announce shell function usage in Autotest.
7176 2007-10-10 Eric Blake <ebb9@byu.net>
7177 and Paul Eggert <eggert@cs.ucla.edu>
7179 Reduce number of forks at startup.
7180 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
7182 * configure: Regenerate.
7184 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7185 and Paul Eggert <eggert@cs.ucla.edu>
7187 Use awk for config header generation.
7188 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
7189 (_AC_OUTPUT_HEADERS_PREPARE): New macro. Rewrite of the config
7190 header machinery for use with awk and placement outside the main
7191 config.status instantiation loop. Retain multi-line defines
7192 through backslash-newline combinations, do not split the script
7194 (_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
7195 (_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
7197 (AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
7200 * tests/torture.at (#define header templates): Extend test by
7201 several more cases: white space before and after `#', macros
7202 with parameters in config.hin and as defines, multi-line macro
7204 (Torturing config.status): Use a define value twice the length
7205 in order to exercise the awk literal string limit.
7206 (Substitute and define special characters): Also try special
7207 delimiter, to exercise the special-case code.
7208 Suggestion by Eric Lemings.
7210 2007-10-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7212 * tests/local.at (AT_COPYRIGHT): Bump copyright years.
7214 2007-10-09 Eric Blake <ebb9@byu.net>
7216 Improve header of bin/autoconf.
7217 * lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
7218 * lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
7220 * bin/autoconf.as: Put copyright up front in generated file.
7222 * bin/autoconf.as (exit_missing_arg): Font-lock tweak.
7224 2007-10-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7226 * doc/install.texi (Basic Installation): Document `uninstall'.
7227 * INSTALL: Regenerate.
7228 Suggestion by Roberto Bagnara.
7230 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
7232 * doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
7234 Adjust doc. to match latest gnulib.
7235 * build-aux/texinfo.tex: Sync from gnulib.
7236 * doc/standards.texi: Likewise.
7237 * doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
7238 Documentation License" and remove the subsection. This simplifies
7239 the manual a bit and is more like what other GNU projects do
7242 2007-10-08 Eric Blake <ebb9@byu.net>
7245 * configure: Regenerate.
7247 Fix regression in m4_text_wrap from 2007-10-05.
7248 * lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
7250 (m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
7252 * lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
7253 * tests/autotest.at (Long test title, Longer test title): Test
7254 this fix, beyond what AS_HELP_STRING already tests.
7256 Avoid m4 warnings on bad m4_format usage.
7257 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
7259 * lib/autotest/general.m4 (AT_SETUP): Likewise; also ensure that
7260 enough arguments are provided.
7262 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
7264 * doc/autoconf.texi (Shell portability): Document shell function
7267 2007-10-06 Paolo Bonzini <bonzini@gnu.org>
7269 * lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
7270 at_func_check_skip, at_func_check_status, at_func_filter_trace,
7271 at_func_log_failure shell functions. Use test -s to avoid
7272 useless diff invocations.
7273 (at_func_check_newline): Renamed from at_check_newline.
7274 (AT_SETUP): Define AT_captured_files to empty.
7275 (AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
7276 (_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir. Use all
7277 the shell functions.
7279 2007-10-05 Paul Eggert <eggert@cs.ucla.edu>
7281 Don't assume "." is writeable, for commands like "autoconf --version".
7282 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
7283 different heuristic instead, one that doesn't rely on creating
7286 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
7289 2007-10-05 Jim Meyering <meyering@redhat.com>
7291 Avoid makeinfo warnings.
7292 * doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
7293 (Looping constructs): Add ` ' after @defmac'd name, m4_do.
7295 2007-10-05 Eric Blake <ebb9@byu.net>
7297 Resolve Python issue 1676135 regarding configure directory args.
7298 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
7299 slashes from directory arguments.
7300 * tests/base.at (configure directories): New test.
7301 * doc/autoconf.texi (Installation Directory Variables): Document
7305 Reported by Björn Lindqvist.
7307 Provide better short-circuiting operation.
7308 * lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
7309 (m4_text_wrap): Use it. Also avoid useless m4_for.
7310 * lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
7312 (_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
7313 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
7315 * doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
7316 documentation. Sort m4_mkstemp, m4_undefine. Move m4_ifndef...
7317 (Conditional constructs): ...here, to new section. Also document
7318 m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
7319 m4_bpatsubsts, and m4_default.
7320 (Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
7323 2007-10-04 Eric Blake <ebb9@byu.net>
7325 Fix recent testsuite failures.
7326 * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
7327 that must not be re-expanded after AS_ESCAPE.
7328 * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
7329 checking if it is an identifier.
7332 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
7333 leading whitespace, as it caused space-tab in testsuite.
7334 (AT_INIT): Avoid trailing newlines in testsuite.
7336 One more round of m4_foreach_w speedups.
7337 * lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
7339 (_m4_split): Avoid useless expansions inside definition. Move
7340 argument defaulting...
7341 (m4_split): ...here. Change alternate quote to something less
7342 likely to appear in $1. Also, special case space as regexp...
7343 (m4_foreach_w): ...to avoid regexp on single-term list.
7344 (m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
7345 useless expansions inside definition.
7346 * tests/m4sugar.at (m4@&t@_split): Add tests.
7348 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
7350 * general.m4 (AT_INIT): Add at_check_newline function.
7351 (_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
7352 (_AT_CHECK): Don't use at_trace_this.
7354 2007-10-04 Paolo Bonzini <bonzini@gnu.org>
7356 Fix previous commit.
7357 * lib/autotest/general.m4 (AT_LINE): Fix regex.
7359 2007-10-04 Eric Blake <ebb9@byu.net>
7361 Speed up building testsuites.
7362 * lib/autotest/general.m4 (AT_LINE): Only use regex when file
7363 changed since last time. Use simpler regex.
7365 2007-10-03 Eric Blake <ebb9@byu.net>
7367 Optimize checking for identifiers.
7368 * lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
7369 macros, more efficient than regex on m4_re_word.
7370 * lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
7371 Rewrite in terms of new macro. As a side-effect, AC_DEFINE can
7373 * configure: Regenerate.
7375 Remove some XFAILs, and make AT_SETUP output line up.
7376 * lib/autotest/general.m4 (AT_SETUP): Only expand description
7377 once; thereafter, use its expansion, properly quoted.
7378 * tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
7379 expansion with arguments, and check for aligned output.
7380 (AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
7381 Add a test for macros with parameters.
7382 * NEWS: Document the semantics change.
7383 * tests/base.at: Fix test titles containing commas.
7384 * tests/compile.at: Likewise.
7385 * tests/tools.at: Likewise.
7386 * tests/torture.at: Likewise.
7388 Another round of regex avoidance.
7389 * lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
7390 (_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
7391 (m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
7392 (m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
7393 character ranges useful in m4_translit.
7394 (m4_toupper, m4_tolower): Optimize the constant portion of
7396 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
7397 creates $, and reject [] thanks to AS_TR_SH rewrite.
7398 (AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
7399 (AS_ESCAPE): Factor...
7400 (_AS_ESCAPE): ...into new macro, with second argument required.
7401 Avoid regex in common case.
7402 (_AS_QUOTE): Use new macro.
7405 * lib/autoconf/types.m4: Avoid space-tab.
7406 * lib/m4sugar/m4sh.m4: Use tab consistently.
7408 2007-10-03 Paul Eggert <eggert@cs.ucla.edu>
7410 * lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
7411 (m4_shiftn): Remove no-longer-needed optimization. Perhaps we
7412 should remove m4_shiftn entirely?
7413 (m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
7414 Prefer m4_shift2 and m4_shift3 to m4_shiftn.
7415 * lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
7416 * lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
7417 * tests/autotest.at (AT_CHECK_AT_TEST): Likewise.
7419 2007-10-03 Eric Blake <ebb9@byu.net>
7422 * lib/m4sugar/m4sugar.m4: Grammar fixes in comments.
7424 2007-10-02 Eric Blake <ebb9@byu.net>
7426 Optimize appending text.
7427 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
7431 * lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
7432 lot of hot spots; optimize it for 2 and 3 shifts.
7434 Optimize AC_PREREQ and other m4sugar numerics.
7435 * lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
7436 (m4_cmp): Compare arbitrary expressions, without overflow.
7437 (m4_version_unletter): Also recognize capital letters.
7438 (m4_version_compare): Avoid regex when splitting version number
7441 2007-10-01 Eric Blake <ebb9@byu.net>
7443 Once again, reject IRIX m4.
7444 * m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
7445 implementations that ignore --trace.
7446 * configure: Regenerate.
7447 Reported by Ralf Wildenhues.
7449 Fix regression in AC_DEFINE([macro(with_arg)]).
7450 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
7451 quotes with a careless m4_substr.
7453 2007-09-30 Eric Blake <ebb9@byu.net>
7455 Allow nameless iteration.
7456 * lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
7458 * tests/m4sugar.at (myvar): Test this.
7460 2007-09-29 Eric Blake <ebb9@byu.net>
7462 Speed optimization: avoid m4 regex when other algorithms work.
7463 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
7464 (_AS_QUOTE_IFELSE): Likewise.
7465 * lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
7466 (m4_bpatsubsts): Split...
7467 (_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
7469 (_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
7470 (m4_qlen): Optimize on short strings, to avoid regex.
7471 (m4_sign): Avoid regex, and fix bug with `01' and `-0'.
7472 * lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
7473 (AC_DEFINE_TRACE): Likewise.
7475 2007-09-28 Eric Blake <ebb9@byu.net>
7477 Oops - my earlier 'optimization' caused a regression.
7478 * tests/local.at (AT_CHECK_M4): Fix typo.
7480 2007-09-27 Eric Blake <ebb9@byu.net>
7481 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7483 Catch even more common AC_CACHE_VAL mistakes.
7484 * lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
7485 lacks '_cv_', or if AC_SUBST appears in body.
7486 * tests/base.at (AC_CACHE_CHECK): Test this change.
7488 2007-09-27 Stepan Kasal <kasal@ucw.cz>
7489 and Eric Blake <ebb9@byu.net>
7491 Autotest no longer caters to Ultrix redirection limitation.
7492 * doc/autoconf.texi (Writing testsuite.at): Remove the
7493 limitation that the first parameter of AT_CHECK cannot
7494 contain redirection.
7495 (File Descriptors): Mention that Ultrix limitation is no longer a
7496 show-stopper in modern code.
7497 * tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
7498 parameter is `stderr' or `experr'. Optimize if it was `ignore'.
7499 * lib/autotest/general.m4 (AT_CHECK): Update comment.
7501 2007-09-27 Eric Blake <ebb9@byu.net>
7503 Squelch changeword in m4sugar.
7504 * lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
7505 feature of m4 1.4.x.
7507 Configure whitespace touchups.
7508 * lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
7509 installation directories, and avoid TAB, in configure --help
7511 * configure.ac: Avoid extra trailing newline.
7512 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
7513 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
7514 config.status --help output.
7515 * configure: Regenerate.
7517 Fix underquotation in AS_HELP_STRING.
7518 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
7520 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
7521 first-prefix argument.
7522 * tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
7523 * NEWS: Document AS_HELP_STRING fix.
7525 Autotest formatting touchups.
7526 * lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
7528 (PATH): Simplify computation of new PATH.
7530 2007-09-26 Eric Blake <ebb9@byu.net>
7532 Fix testsuite breakage in last patch.
7533 * tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
7535 * tests/torture.at (@%:@define header templates): Rename, so that
7536 output lines up correctly.
7538 More font-lock happiness.
7539 * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
7542 2007-09-25 Eric Blake <ebb9@byu.net>
7545 * lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
7546 * lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.
7548 Improve documentation of M4 parameter expansion.
7549 * doc/autoconf.texi (Quoting and Parameters): New section.
7550 (Quotation and Nested Macros): Improve wording.
7552 Improve C99 detection.
7553 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
7554 avoid deprecation warning with icc.
7556 Reported by Ted Bullock.
7558 2007-09-24 Jim Meyering <jim@meyering.net>
7560 Whenever possible, use the vertical bar as sed delimiter.
7561 * lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
7563 * lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
7564 [ac_dir_suffix]: Use "|", not "," as sed delimiter.
7565 * tests/mktests.sh (as_me): Likewise.
7566 * lib/freeze.mk (check-forbidden-patterns): Likewise.
7567 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
7568 * configure: Regenerate.
7569 * doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
7570 * lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
7571 in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.
7572 This is fine, as long as $PATH_SEPARATOR doesn't contain "|".
7574 2007-09-22 Jim Meyering <jim@meyering.net>
7577 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
7578 2004-05-31 change also with a comment in the code.
7580 2007-09-20 Eric Blake <ebb9@byu.net>
7582 More contribution housekeeping.
7584 * AUTHORS: Sort, reflect recent assignment from Helge Deller.
7586 Ignore additional files, when copying cross-repository.
7587 * .gitignore: Ignore CVS directories, emacs edits.
7588 * .cvsignore: Ignore .git directory, emacs edits.
7590 2007-09-15 Eric Blake <ebb9@byu.net>
7592 Provide AC_VERSION, not m4_AUTOCONF_VERSION.
7593 * doc/autoconf.texi (Text processing Macros): Remove mention of
7594 m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
7596 (Notices): Move AC_PREREQ...
7597 (Versioning): ...to this new section, alongside the new AC_VERSION
7598 alias for the undocumented m4_PACKAGE_VERSION.
7599 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
7600 * lib/autoconf/general.m4 (AC_VERSION): New macro.
7601 * NEWS: Update to match this rename.
7602 * tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
7604 * tests/tools.at (autoconf: AC_VERSION): New test.
7605 Suggested by Paolo Bonzini and Benoit Sigoure.
7607 2007-09-14 Eric Blake <ebb9@byu.net>
7609 Prepare for conversion to git.
7610 * doc/.cvsignore: Avoid multiple listings on one line.
7611 * bin/.cvsignore: Likewise.
7612 * .gitignore, bin/.gitignore, config/.gitignore, doc/.gitignore,
7613 lib/.gitignore, lib/Autom4te/.gitignore, lib/autoconf/.gitignore,
7614 lib/autoscan/.gitignore, lib/autotest/.gitignore,
7615 lib/emacs/.gitignore, lib/m4sugar/.gitignore, man/.gitignore,
7616 tests/.gitignore: New files, identical to .cvsignore counterpart.
7618 2007-09-13 Eric Blake <ebb9@byu.net>
7621 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Restore
7623 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Likewise.
7624 * lib/autoconf/general.m4 (_AC_DO_ECHO): Likewise.
7625 * configure: Regenerate.
7627 Clean up 'make dist' of previous patch.
7628 * tests/Makefile.am (EXTRA_DIST): Distribute mktests.stamp.
7629 (CLEANFILES): Don't clean the stamp, since we distribute the
7630 generated files pre-built.
7631 (MAINTAINERCLEANFILES): Clean it here instead.
7632 * tests/Makefile.in: Regenerate.
7634 Avoid parallel 'make check' issue.
7635 * tests/Makefile.am (mktests.stamp): New witness.
7636 (TESTSUITE_GENERATED_AT): Use it.
7637 (CLEANFILES): Clean the witness.
7638 * tests/.cvsignore (mktests.stamp): Ignore the witness.
7640 Document another awk pitfall.
7641 * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
7642 limitation of field variables in END.
7643 Reported by Gary V. Vaughan.
7645 * AUTHORS: Add missing entries.
7647 2007-09-12 Eric Blake <ebb9@byu.net>
7649 Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
7650 * doc/autoconf.texi (Text processing Macros): Document
7651 m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
7652 (Redefined M4 Macros): Document m4_ifndef.
7653 * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
7654 can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
7655 used it while it was undocumented.
7656 * NEWS: Document this change.
7657 * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
7658 * lib/m4sugar/Makefile.in: Regenerate.
7659 * tests/m4sugar.at (m4@&t@_version_compare): New test.
7660 Reported by Bruno Haible.
7662 * doc/autoconf.texi (Generic Compiler Characteristics): Add
7663 missing index entries.
7665 2007-09-11 Eric Blake <ebb9@byu.net>
7667 Centralize all system extensions checks.
7668 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
7669 from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
7670 (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
7671 AC_USE_SYSTEM_EXTENSIONS.
7672 (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
7673 (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
7674 * doc/autoconf.texi (Posix Variants): Reword this section,
7675 emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
7676 rather than a series of system-specific checks.
7677 (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
7679 * NEWS: Document this change.
7681 Reported by Martin Koeppe.
7683 2007-09-08 Eric Blake <ebb9@byu.net>
7685 Clean up obsolete macros references.
7686 * doc/autoconf.texi: Add anchors to support better
7688 (Particular Structures): Move obsolete macros descriptions...
7689 (External Software): Likewise.
7690 (Package Options): Likewise.
7691 (Obsolete Macros): ...to here. Add cross-references to
7692 documentation on replacements.
7693 * NEWS: Mention that these macros have been obsolete for a while
7694 now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
7696 Improve M4 path searching during configure.
7697 * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
7699 (_AC_PATH_PROG_FEATURE_CHECK): Rename...
7700 (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
7701 parameter, and kill side effects.
7702 (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
7703 (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
7704 * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
7706 (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
7707 allow bootstrapping with autoconf 2.61.
7708 * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
7709 * configure: Regenerate.
7710 * doc/autoconf.texi (Generic Programs): Document new macro.
7711 * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
7713 * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
7714 * NEWS: Document the change.
7716 Reported by Hans Aberg.
7718 * doc/autoconf.texi (Generic Programs): Fix typo.
7720 2007-09-06 Eric Blake <ebb9@byu.net>
7722 * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
7723 :, and make it clear that optional @var{path} defaults to $PATH.
7724 (Erlang Compiler and Interpreter): Likewise.
7727 * doc/autoconf.texi: Avoid lines > 80 columns when possible.
7728 Reword some paragraphs to avoid overfull, underfull hbox
7729 warnings. Add index entries to avoid overfull vbox warnings.
7731 2007-09-05 Eric Blake <ebb9@byu.net>
7733 * NEWS: Adjust wording for AC_CONFIG_LINKS.
7734 Reported by Ralf Wildenhues.
7736 2007-09-03 Eric Blake <ebb9@byu.net>
7738 * NEWS: Document fixes that have been applied since 2.61a.
7741 * THANKS: Update, and convert to UTF-8 encoding.
7742 * AUTHORS: Likewise.
7744 2007-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7746 * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
7747 names beginning with `-' again.
7749 2007-08-22 Stepan Kasal <kasal@ucw.cz>
7750 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7752 * doc/autoconf.texi (Defining Directories): Mention
7753 AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
7755 2007-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7757 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
7758 here, this macro is expanded by AC_INIT. Fixes 2.60 regression.
7759 * tests/base.at (configure arguments): New test.
7761 Report by Olaf Lenz.
7763 * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
7764 arguments in comment.
7765 Report by Vincent Torri <vtorri at univ minus evry dot fr>.
7767 2007-08-20 Benoit Sigoure <tsuna@lrde.epita.fr>
7769 * doc/autoconf.texi (File System Conventions): Index the proper
7770 way of detecting absolute file names.
7772 2007-08-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7774 * build-aux/config.guess, build-aux/config.sub,
7775 build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
7776 build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
7777 doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
7778 * doc/autoconf.texi (GNU Free Documentation License): Adjust for
7779 sectioning change in fdl.texi.
7781 * bin/autoconf.as: Update --version output to match current GCS.
7782 * bin/autoheader.in: Likewise.
7783 * bin/autom4te.in: Likewise.
7784 * bin/autoreconf.in: Likewise.
7785 * bin/autoscan.in: Likewise.
7786 * bin/autoupdate.in: Likewise.
7787 * bin/ifnames.in: Likewise.
7789 2007-08-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7791 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
7792 file to itself if source and build trees coincide.
7793 * tests/torture.at (AC_CONFIG_LINKS and identical files): New
7795 Report by Sebastian Freundt <hroptatyr@gna.org>.
7797 2007-07-20 Paul Eggert <eggert@cs.ucla.edu>
7799 Reword the copyright notices to match what's suggested in GPLv3.
7800 In ChangeLog files, use more-permissive notice rather than GPL, as
7801 per usual GNU standards these days.
7803 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
7805 * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
7806 limitation reported by Leo Moisio in
7807 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
7809 2007-07-03 Paul Eggert <eggert@cs.ucla.edu>
7811 * COPYING: Update to GPLv3. All uses changed.
7813 2007-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7814 and Paul Eggert <eggert@cs.ucla.edu>
7816 * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
7819 2007-06-17 Noah Misch <noah@cs.caltech.edu>
7821 * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
7822 * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
7823 `srcdir' as subdirectory of `builddir'.
7825 2007-06-13 Noah Misch <noah@cs.caltech.edu>
7827 * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
7828 * tests/autotest.at (srcdir propagation): New test.
7830 Reported by Mike Frysinger.
7832 2007-06-13 Paul Eggert <eggert@cs.ucla.edu>
7834 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
7835 Problem reported by Fred Kreek in
7836 <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
7837 * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
7838 (Macro Names, Defining Directories): Don't mention PATH as a name
7839 for a fully qualified file name, as this usage violates the GNU
7840 coding standards and we shouldn't recommend it.
7842 * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
7843 string and then assume shell builtins like "test" will work.
7845 2007-06-12 Noah Misch <noah@cs.caltech.edu>
7847 * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
7848 not a valid shell variable name.
7849 * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
7850 * tests/torture.at (AC_SUBST: variable name validation): New test.
7851 Reported by Andreas Schwab.
7853 2007-06-04 Noah Misch <noah@cs.caltech.edu>
7855 * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
7856 works with both C and C++.
7858 2007-06-03 Noah Misch <noah@cs.caltech.edu>,
7859 Bruno Haible <bruno@clisp.org>
7861 * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
7864 2007-05-31 Paul Eggert <eggert@cs.ucla.edu>
7866 * doc/autoconf.texi (Particular Types): Give example of use for
7869 2007-05-29 Stepan Kasal <kasal@ucw.cz>
7871 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
7873 2007-05-28 Paul Eggert <eggert@cs.ucla.edu>
7875 * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
7876 define HAVE_INT8_T, and likewise for similar macros.
7877 Problem reported by Patrick Welche in
7878 <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
7880 2007-05-25 Noah Misch <noah@cs.caltech.edu>
7882 * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
7884 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
7886 * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
7887 choice, since that's what we do with --enable-largefile etc.
7888 Redo indenting and assignments to simplify things a bit, and make
7889 the parens work with Emacs.
7891 * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
7892 in my previous change: AC_C_OPENMP -> AC_OPENMP. Reported by Bruno
7895 2007-05-21 Noah Misch <noah@cs.caltech.edu>
7897 * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
7898 * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
7900 2007-05-21 Bruno Haible <bruno@clisp.org>
7902 * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
7903 * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
7904 * doc/autoconf.texi (Generic Compiler Characteristics): Move
7905 renamed AC_OPENMP documentation here, from "C compiler".
7906 Mention C++ and Fortran.
7908 2007-05-21 Paul Eggert <eggert@cs.ucla.edu>
7910 * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
7912 2007-05-21 Bruno Haible <bruno@clisp.org>
7914 * NEWS: Mention AC_C_OPENMP.
7915 * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
7916 * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
7917 Based in part on Steven G. Johnson's investigations for the AX_OPENMP
7918 macro in the Autoconf macro archive.
7920 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7922 * bin/autom4te.in: Fix typos.
7924 2007-05-16 Noah Misch <noah@cs.caltech.edu>
7926 * bin/autoconf.as: Handle `-' just like other input files.
7927 * bin/autom4te.in (parse_args): Pass `-' through.
7928 (handle_output): Skip the forbidden token search if we read from stdin.
7929 (up_to_date): Always treat stdin as out of date.
7930 * tests/tools.at (autoconf: input from stdin): New test.
7931 (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
7933 2007-05-16 Stepan Kasal <kasal@ucw.cz>
7935 * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
7936 parameters for AT_CLEANUP.
7937 * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
7939 2007-05-14 Paul Eggert <eggert@cs.ucla.edu>
7941 * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
7942 * doc/autoconf.texi (C Compiler): Likewise.
7944 2007-05-14 Noah Misch <noah@cs.caltech.edu>
7946 * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
7948 2007-05-09 Stepan Kasal <kasal@ucw.cz>
7950 * doc/autoconf.texi: Direntry for "autoconf Invocation"
7951 renamed to "autoconf-invocation"
7953 * doc/autoconf.texi (Caching Results): The CACHE-ID variable
7954 in the examples should not use the internal "ac_" prefix.
7956 2007-05-05 Noah Misch <noah@cs.caltech.edu>
7958 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
7959 * doc/autoconf.texi ($@, case): Document Zsh limitations.
7961 2007-05-03 Stepan Kasal <kasal@ucw.cz>
7963 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
7964 Reorganize the comments before and in the macro.
7966 2007-05-02 Stepan Kasal <kasal@ucw.cz>
7968 * lib/autoconf/lang.m4, lib/autoconf/c.m4,
7969 lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
7970 section titles and other comments; no code change.
7972 2007-05-01 Kevin Ryde <user42@zip.com.au>
7974 * doc/autoconf.texi (Particular Programs): Typo
7975 @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
7977 2007-04-30 Paul Eggert <eggert@cs.ucla.edu>
7979 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
7980 'configure' will fail if the shell lacks proper support for shell
7981 functions. Suggested by RMS.
7983 2007-04-29 Paul Eggert <eggert@cs.ucla.edu>
7985 * doc/autoconf.texi (Limitations of Builtins): Correct the warning
7986 about Solaris /bin/printf '%010000x' 123. Problem reported by
7989 2007-04-28 Paul Eggert <eggert@cs.ucla.edu>
7991 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
7992 for a.* when searching for executables, as this prevents users
7993 from having files like a.c. Problem reported by Ralf Wildenhues in:
7994 http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
7995 This fixes a problem introduced on 2000-12-19.
7997 2007-04-26 Paul Eggert <eggert@cs.ucla.edu>
7999 * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
8000 /bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
8003 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
8005 * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
8006 AC_CHECK_TYPE, AC_CHECK_TYPES.
8007 * doc/autoconf.texi (Generic types): C types must be type-names
8008 (the C terminology), not type-ids (the C++ term). C++ types
8009 must not be anonymous.
8010 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
8011 for C++; this drops support for anonymous struct and union types,
8012 which were problematic anyway.
8013 * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
8016 2007-04-12 Jim Meyering <jim@meyering.net>
8018 * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
8020 2007-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8022 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
8023 to prefer a link source from the build tree, if it exists.
8024 Report by Pallav Gupta <pallavgupta@gmail.com>.
8026 2007-04-11 Paul Eggert <eggert@cs.ucla.edu>
8028 * doc/autoconf.texi (Generic Types): Document the restrictions
8029 on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
8030 (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
8031 with objects too. Document the restrictions on its use.
8032 Document the restrictions on AC_CHECK_ALIGNOF's type argument.
8033 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
8034 For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
8035 works but the latter doesn't, then it's a valid type.
8036 This lets people use function types and so forth.
8037 For C++ there doesn't seem to be a simple solution, so leave it alone.
8038 (AC_CHECK_SIZEOF): Allow argument to be a variable.
8039 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
8040 AC_CHECK_TYPE; that wasn't documented or necessary.
8042 2007-04-11 Stepan Kasal <kasal@ucw.cz>
8044 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
8045 when cross-compiling.
8047 2007-04-11 Stepan Kasal <kasal@ucw.cz>
8049 * doc/autoconf.texi (External Software): Fix a typo in the
8052 2007-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8054 * doc/autoconf.texi (External Software, Package Options):
8055 Fix ambiguous wording. Report by Reuben Thomas <rrt@sc3d.org>.
8057 2007-04-06 Paul Eggert <eggert@cs.ucla.edu>
8059 * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
8060 obsolescent. Suggested by Bruno Haible.
8061 * NEWS: Document this.
8063 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
8065 * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
8066 (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
8067 default still has the problem. Problem reported by Bruce Korb.
8069 2007-03-28 Stepan Kasal <kasal@ucw.cz>
8070 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8072 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
8073 comment in the generated config.status.
8075 2007-03-27 Stepan Kasal <kasal@ucw.cz>
8077 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
8079 2007-03-26 Paul Eggert <eggert@cs.ucla.edu>
8081 * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
8082 command and case statements to make it a bit clearer and describe
8085 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
8087 * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
8088 checks for unsigned long long int.
8090 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
8092 * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
8093 nonstandard grep R.E. escape sequences.
8095 2007-03-17 Jim Meyering <jim@meyering.net>
8097 * doc/autoconf.texi: Adjust grammar around use of "heuristics".
8098 (Limitations of Usual Tools): Also list \< and \>, and mention that
8099 HP-UX's grep, like the one from Solaris, does not support that syntax.
8101 2007-03-09 Stepan Kasal <kasal@ucw.cz>
8103 * doc/autoconf.texi (Specifying Names): `--host' does not
8104 change the build type.
8106 2007-03-05 Paul Eggert <eggert@cs.ucla.edu>
8108 * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
8109 suggests AC_CONFIG_HEADERS.
8110 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
8111 AC_CONFIG_HEADERS. Problem reported by
8114 2007-02-28 Paul Eggert <eggert@cs.ucla.edu>
8116 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
8117 Problem reported by Paolo Bonzini in:
8118 http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
8119 * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
8120 universal binaries. Problem reported by Elias Pipping.
8122 2007-02-27 Paul Eggert <eggert@cs.ucla.edu>
8124 * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
8125 * doc/autoconf.texi (C Compiler): Document this. There is a new
8126 extra argument ACTION-IF-UNIVERSAL.
8127 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
8128 Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
8129 Reindent for sanity's sake.
8131 2007-02-24 Eric Blake <ebb9@byu.net>
8133 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
8135 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
8136 * lib/autotest/general.m4 (AT_INIT): Likewise.
8137 (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
8139 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8141 * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
8142 status of rm so we know when it failed.
8143 If cleaning of test dir failed before running the test, warn.
8144 Output the line separator in verbose mode before the warning
8145 to make clear the warning belongs to the following test.
8147 2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
8149 * doc/autoconf.texi (Parentheses): Mention problem with (( in
8152 2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8153 and Paul Eggert <eggert@cs.ucla.edu>
8155 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
8156 errors introduced in last change.
8158 2007-02-07 Paul Eggert <eggert@cs.ucla.edu>
8160 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
8161 an actual carriage return. Use "ac_cr" to contain the actual
8163 * doc/autoconf.texi (Limitations of Usual Tools): Document problem
8164 with traditional Awk and begin.
8165 * tests/torture.at (Limitations of Builtins): Document the problem
8166 with Bash 2.03 printf.
8167 (Substitute and define special characters):
8168 Remove trailing white space. Work around a bug in Solaris 8 /bin/bash.
8170 2007-02-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (tiny change)
8172 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
8173 input from /dev/null in awk test, so even Solaris /usr/bin/awk
8174 will not wait for input with a script containing only a BEGIN
8177 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
8179 * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
8183 2007-02-02 Eric Blake <ebb9@byu.net>
8185 * NEWS: Update copyright.
8187 * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
8189 * configure.ac: Update error message.
8190 * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
8191 Reported by Gary Vaughan and Jim Meyering, and problem analyzed
8193 http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
8195 2007-01-31 Eric Blake <ebb9@byu.net>
8197 * THANKS (people): Update.
8199 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
8201 * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
8203 (Shell Substitutions): Note problems with @{var:=value} etc.
8204 Add a new section for problems with @{#var} etc. Problem noted
8205 by Ralf Wildenhues. See:
8206 http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
8208 2007-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8210 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
8211 AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
8212 trace, if a package uses AC_PROG_MKDIR_P explicitly. The actual
8213 substitution will still be done by the special code.
8214 Report by Jim Meyering.
8216 * doc/autoconf.texi (File System Conventions): Mention that
8217 $PATH_SEPARATOR is for the build system only.
8218 Report by Keith Marshall.
8220 2007-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8222 * doc/autoconf.texi (Setting Output Variables): Mention that
8223 all non-NUL characters are ok in substituted values.
8224 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
8225 (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
8226 carriage return for $AWK, needed for BSD awk.
8227 * tests/torture.at (Substitute and define special characters):
8228 Test all 8 bit non-NUL characters.
8229 Report against Automake by Patrick Welche.
8231 2007-01-15 Stepan Kasal <kasal@ucw.cz>
8233 * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
8235 2007-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8237 * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
8238 early on the reader side, drop stderr of the input to avoid
8239 `broken pipe' error output; this may happen even with shell
8240 builtin `echo' of some bash versions. Reports by Ian Macdonald
8241 <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
8243 2007-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8245 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
8246 separate items of `ac_user_opts', to avoid long lines.
8247 (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
8249 2007-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8251 * doc/autoconf.texi: Fix some typos.
8253 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
8255 Fix some wording problems noted by Paolo Bonzini in:
8256 http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
8257 * doc/autoconf.texi (Signed Overflow Examples): Give more
8258 discussion about the allow_superuser_privileges example,
8259 and change it a bit to make things clearer.
8260 (Optimization and Wraparound): Clarify whether the compiler
8261 will generate an infinite loop for the example derived from
8262 Autoconf's mktime test.
8263 (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
8264 Also, clarify unsigned multiplication overflow.
8266 2007-01-04 Eric Blake <ebb9@byu.net>
8268 * bin/Makefile.am (RELEASE_YEAR): New macro.
8269 (edit): Use it to supply correct copyright year to scripts.
8270 * bin/autoconf.as (version): Use it.
8271 * bin/autoheader.in ($version): Likewise.
8272 * bin/autom4te.in ($version): Likewise.
8273 * bin/autoreconf.in ($version): Likewise.
8274 * bin/autoscan.in ($version): Likewise.
8275 * bin/autoupdate.in ($version): Likewise.
8276 * bin/ifnames.in ($version): Likewise.
8278 2007-01-02 Paul Eggert <eggert@cs.ucla.edu>
8280 * doc/autoconf.texi (Integer Overflow): Revised based on today's
8281 feedback. The most important changes document what happens when
8282 you convert an out-of-range value to a signed integer type, and
8283 say that (sum < a) != (b < 0) reliably detects overflow when sum =
8286 * doc/autoconf.texi (Integer Overflow): Greatly expand and
8287 rewrite, taking notions from the recent discussion on the gcc and
8288 autoconf mailing lists; please see
8289 http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
8290 and follow the many links.
8291 (Integer Overflow Basics, Signed Overflow Examples):
8292 (Optimization and Wraparound, Signed Overflow Advice):
8293 (Signed Integer Division): New sections.
8295 2006-12-28 Steven G. Johnson <stevenj@alum.mit.edu>
8297 * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
8298 preprocessor macro arguments in traced name.
8299 * doc/autoconf.texi (Defining symbols): Document longstanding
8300 support for AC_DEFINE-ing macros with arguments, and document
8301 behavior when the same variable has multiple AC_DEFINEs.
8302 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
8303 old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
8304 macros directly, giving much shorter and simpler code.
8306 2006-12-28 Malcolm Purvis <malcolmp@xemacs.org> (trivial change)
8308 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
8309 space before "$ac_configure_args" to prevent a 'config.status
8310 --recheck' failure if ac_configure_args doesn't contain a leading
8311 space. This works around a problem with the XEmacs configure.ac,
8312 which uses the (undocumented) ac_configure_args variable
8313 inconsistently with Autoconf.
8315 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
8317 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
8318 Include <limits.h>, and use its INT_MAX to rewrite the
8319 j loop so that it does not overflow 'int'. Problem reported by
8321 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8322 Play it safe by shifting left by 1 rather than multiplying by 2,
8323 as GCC is less likely to optimize this away when the value
8324 is signed (when it assumes overflow leads to undefined behavior).
8325 Also, don't assume time_t uses two's complement.
8327 2006-12-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8329 * tests/torture.at (Substitute a 2000-byte string): Avoid using
8330 a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
8331 dumps core on it. Report by Tim Rice.
8333 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
8335 * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
8336 --disable-option-checking to --help output even when
8337 AC_PRESERVE_HELP_ORDER is not used.
8338 (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
8339 --with argument, rather than argument with [-.] replaced by
8341 * NEWS: Fix typo in previous change; the news was in the
8344 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8346 * NEWS: Warnings are now generated by default for unknown
8347 --enable-* and --with-* options.
8348 * doc/autoconf.texi (Option Checking): Renamed from
8349 (Configure Option Checking). Tighten up the wording a bit.
8350 (External Software, Package Options): Cross-reference to Option
8351 Checking, and use this to shorten our section.
8352 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
8353 "$x" to test "x$foo" != x.
8354 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
8355 Don't warn if $enable_option_checking is "no".
8356 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
8357 ac_unrecognized_opts to the empty string.
8358 Don't echo the unrecognized opts, as this might mishandle
8359 backslashes or leading -.
8360 (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
8361 usage next to the other --disable-FEATURE options in the
8364 2006-12-18 Steven G. Johnson <stevenj@alum.mit.edu>
8366 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
8367 (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
8368 Print warning for unrecognized --with and --enable options
8369 (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
8370 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
8371 Disable option checking when subdirs are configured.
8372 (AC_OUTPUT): If warnings are enabled, print warning about
8373 unrecognized --with and --enable options at the end of
8374 the configure output (as well as at the beginning).
8375 * doc/autoconf.texi (Option Checking): New node.
8376 Document new option warning functionality.
8378 2006-12-16 Eric Blake <ebb9@byu.net>
8380 * configure.ac (AC_INIT): Bump version, since 2.61a is released.
8381 * NEWS: Start news for current version.
8383 2006-12-15 Paul Eggert <eggert@cs.ucla.edu>
8385 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
8386 Define HAVE_GETMNTENT to 1, not to the empty string.
8387 Problem originally reported by Jochen Friedrich in
8388 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
8390 This change prompted by a problem report by Andrey Simonenko in
8391 <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
8392 * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
8393 object-like macros only, in the traditional portable character
8395 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
8396 Warn about attempts to define things that are not identifiers.
8397 * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
8398 awful hack that AC_DEFINEd macro names containing parentheses.
8400 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
8402 * doc/autoconf.texi: Undo some of the 2006-12-10 change. It was
8403 too drastic, even if Texinfo in theory requires it for info mode.
8405 (config.status Invocation): Renamed back from Recreating a
8407 (Obsolete config.status Use): Renamed back from Obsolete Recreation.
8408 (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
8410 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
8412 * NEWS: Version 2.61a.
8414 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
8415 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8417 * NEWS: Document changes with echo and printf, and the lack
8418 of limits on the total size of multi-line values of substituted
8419 variables, and the AC_FUNC_FSEEKO fix.
8421 2006-12-10 Paul Eggert <eggert@cs.ucla.edu>
8423 * doc/autoconf.texi (Writing Autoconf Input): Renamed from
8424 Writing configure.ac.
8425 (Autoconf Input Layout): Renamed from configure.ac Layout.
8426 (Recreating a Configuration): Renamed from config.status Invocation.
8427 (Obsolete Recreation): Renamed from Obsolete config.status Use.
8428 (acconfig Header): Renamed from acconfig.h.
8429 (20th-century Autoconf 2): Renamed from Autoconf 2.13.
8430 (Writing Testsuites): Renamed from Writing testsuite.at.
8431 (Autom4te Cache): Renamed from autom4te.cache.
8433 * BUGS: Remove mention of VPATH problem, since it's now documented
8434 not to be a bug in the Autoconf build procedure itself, but rather
8435 a problem with the proprietary `make' programs.
8437 * doc/autoconf.texi (Build Directories): Add a cross reference
8440 * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
8441 * doc/standards.texi: Sync from gnulib.
8443 * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
8444 * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
8445 * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
8446 generated automatically.
8448 2006-12-06 Paul Eggert <eggert@cs.ucla.edu>
8450 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
8451 C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses
8452 the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
8454 2006-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8456 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
8457 `CEOF$ac_eof' special marker, the awk script cannot contain a
8458 line matching `^CEOF', so this is not needed any more.
8459 * tests/torture.at (Substitute a newline): Expose the `%!_!# '
8460 special marker in the test.
8462 2006-12-06 Stepan Kasal <kasal@ucw.cz>
8464 * tests/tools.at (autom4te preselections): Use `find -newer';
8465 remove one of the sleeps.
8467 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
8468 more readable, using ...
8469 (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
8471 * doc/autoconf.texi (autoheader Invocation): Do not double-
8472 quote the parameter of `AH_BOTTOM' in the example.
8474 2006-12-05 Stepan Kasal <kasal@ucw.cz>
8476 * doc/autoconf.texi (Configuration Headers): Remove the
8477 example with multiple input files.
8478 (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
8479 multiple input files.
8481 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8483 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
8484 creating the awk substitution script, handle one input line at a
8485 time, so that the maximum length of a substituted (multi-line)
8486 value is not limited by the size of the sed pattern space.
8487 The trade-off is a slightly repetitive sed script.
8488 * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
8489 can only have up to 7 characters, due to Solaris 10 /bin/sed.
8490 * tests/torture.at (Substitute a 2000-byte string): Increase the
8491 test with several long lines, they should not be caught by sed
8494 * tests/tools.at (autom4te preselections): New test, to flag
8495 entries missing from autom4te.cfg.
8496 Report by David Byron <dbyron@hheld.com>.
8498 * tests/torture.at (Substitute a 2000-byte string): Actually use
8499 AC_PROG_AWK, so the last change works as intended.
8500 (Substitute and define special characters): Likewise.
8501 (Substitute a newline): Likewise.
8503 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
8504 instead of `awk' consistently.
8505 (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
8506 * tests/torture.at (Torturing config.status): Test both the
8507 result of AC_PROG_AWK and plain awk.
8508 (Substitute a 2000-byte string): Likewise.
8509 (Substitute and define special characters): Likewise.
8510 (Substitute a newline): Likewise.
8512 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
8514 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
8515 can be assigned to a function pointer. Problem reported by
8516 Peter Palfrader in <http://bugs.debian.org/401377>. Based on
8517 part of a patch by Ralf Wildenhues in that same bug report.
8519 2006-12-01 Paul Eggert <eggert@cs.ucla.edu>
8521 * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
8522 * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
8524 2006-12-01 Eric Blake <ebb9@byu.net>
8526 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
8527 cross-compiling from cygwin to mingw.
8528 Reported by Bob Rossi. This resurrects the 2000-11-30 patch to
8529 aclang.m4, which was mistakenly removed in the 2001-09-17 patch
8530 to lib/autoconf/c.m4.
8532 2006-12-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8534 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
8535 string for more reliable failure. Wrap the entire test that
8536 causes the broken Solaris printf to dump core, in a subshell,
8537 so the segmentation fault message is reliably suppressed.
8538 Fix shell expansion errors by using /usr/ucb/echo always;
8539 avoid an error on systems without it by another subshell.
8540 Avoid m4 expansion of `$1'. Set the zeroth argument of the
8541 subshell-$as_echo to `as_echo', for better error message.
8543 2006-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8545 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
8546 `BASH_SOURCE' contain a newline, set them to empty, as they may
8549 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
8551 Turn AC_FUNC_SETVBUF_REVERSED into a noop. It's been obsolete for
8552 years and is too hard to maintain now. The last straw was
8553 reported by Jerker Baeck in
8554 <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
8555 * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
8556 * doc/autoconf.texi (Particular Functions): Move
8557 AC_FUNC_SETVBUF_REVERSED from here...
8558 (Obsolete Macros): ... to here. Say that it does nothing now.
8559 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
8560 Turn into (almost) a no-op.
8562 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
8564 Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
8565 These macros are obsolescent and new applications shouldn't need them.
8566 * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
8567 (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
8568 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
8569 (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
8570 (AC_FUNC_VPRINTF): Likewise.
8571 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
8572 (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
8573 * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
8575 * doc/autoconf.texi (Setting Output Variables): Mention that
8576 @VAR1@VAR2 has unspecified behavior. Problem reported by
8578 * NEWS: Mention this.
8580 * Makefile.am: Put only a single '#' into the copyright notice,
8581 so that it's also present in the output file. Standardize wording
8582 in makefile copyright notices to match GNU coding standards.
8583 * bin/Makefile.am: Likewise.
8584 * doc/Makefile.am: Likewise.
8585 * lib/Makefile.am: Likewise.
8586 * lib/freeze.mk: Likewise.
8587 * lib/autoconf/Makefile.am: Likewise.
8588 * lib/autoscan/Makefile.am: Likewise.
8589 * lib/autotest/Makefile.am: Likewise.
8590 * lib/m4sugar/Makefile.am: Likewise.
8591 * man/Makefile.am: Likewise.
8592 * tests/Makefile.am: Likewise.
8593 * lib/emacs/Makefile.am: Remove copyright notice; it's just a
8596 2006-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8598 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
8599 in the sed script that mangles the awk script: delete up to the
8600 first exclamation mark only.
8601 * tests/torture.at (Substitute and define special characters):
8604 2006-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8606 Rewrite config files generation: avoid quadratic growth in
8607 the number of substituted variables by using awk instead of sed
8608 for the bulk of the substitutions.
8609 * NEWS: Mention this.
8610 * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
8611 forbidden in the output (and thus input) file.
8612 * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
8613 (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
8614 generate just one large awk script for substitutions,
8615 eliminating much of the earlier complexity, while adding some
8616 new complexity. Only expand the substitution templates at
8617 configure time, for smaller configure script size. If
8618 _AC_SUBST_FILES are used, test 'awk' for working getline support
8619 at config.status time. If absent, interpolate through the
8620 shell. The awk script was written with much help
8621 from Paolo Bonzini and Paul Eggert.
8622 (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
8623 (_AC_SED_FRAG_NUM): Likewise.
8624 (_AC_SUBST_CMDS): Renamed from...
8625 (_AC_SED_CMDS): ...this.
8626 (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
8627 * tests/torture.at (Substitute a 2000-byte string): Also
8628 substitute a line with 1000 words, and a variable with several
8630 (Substitute and define special characters): Test awk special
8631 characters, and put substitution input strings `@foo@' in the
8632 output, to test that no recursion happens; test several other
8633 combinations from Paolo Bonzini.
8635 2006-11-25 Paul Eggert <eggert@cs.ucla.edu>
8637 * lib/autotest/general.m4 (AT_INIT): Undo recent changes
8638 that replaced echo with AS_ECHO where this wasn't necessary.
8639 Problem reportd by Ralf Wildenhues.
8640 * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
8641 where "/usr/bin/printf '%s\n' S" dumps core if S is long.
8642 This is Sun bug 4206210. Problem reportd by Ralf Wildenhues.
8644 2006-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8646 * lib/freeze.mk (GREP): Removed, no need to initialize this.
8648 2006-11-21 Paul Eggert <eggert@cs.ucla.edu>
8650 * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
8651 that traditional Awk lacks 3-arg "split". It has it.
8652 Mention that FS must be a single character, and a few other
8653 99-byte limits of traditional Awk.
8654 Mention that if (i in a) doesn't work with traditional Awk.
8656 2006-11-18 Paul Eggert <eggert@cs.ucla.edu>
8658 * tests/autotest.at (BSx641-newline in command):
8659 (BS-BS-newline in command, BSx640-newline in command):
8660 (Newline-CODE-BS-newline in command):
8661 (Single-quote-BS-newline in command):
8662 (Single-quote-newline-BS-newline in command):
8663 Use printf '%s\n' instead of echo, for portability to hosts
8664 where echo interprets backslashes. This will break on hosts
8665 that lack printf, but for now let's assume all such hosts
8666 are dead (if not, we should get reports of test failures).
8668 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
8670 'echo' has some portability problems, when given a first argument
8671 with a leading '-', or when given any argument containing '\'.
8672 Avoid using 'echo' in these cases.
8673 * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
8674 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
8675 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
8676 * lib/autotest/general.m4 (AT_INIT): Likewise.
8677 * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
8678 argument might be unportable.
8679 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
8680 * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
8681 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
8682 (_AC_FC_LIBRARY_LDFLAGS): Likewise.
8683 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
8684 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
8685 (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
8686 (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
8687 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
8688 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
8689 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
8690 (AC_PROG_MAKE_SET): Likewise.
8691 * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
8692 (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
8693 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
8694 (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
8695 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
8696 (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
8697 (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
8698 * bin/autoconf.as: Redo verbose flag implementation, as the old
8699 scheme wouldn't work with AS_ECHO.
8700 * lib/autotest/general.m4 (AT_INIT): Likewise.
8701 * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
8702 Don't use ECHO_T, since ECHO_N is now reliable.
8703 * lib/autotest/general.m4 (AT_INIT): Likewise.
8704 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
8705 rather than using a here-document to put the script into a file.
8706 (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
8708 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
8709 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
8710 AS_ECHO_N rather than ECHO_N and ECHO_C. This doesn't fix any
8711 bug, but we might as well stop using ECHO_N and ECHO_C internally.
8712 * lib/autotest/general.m4 (AT_SETUP): Likewise.
8713 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
8714 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8715 (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
8716 operand, as AS_ECHO requires. Avoid double file name expansion.
8717 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
8718 Don't set as_nl, since _AS_ECHO_PREPARE does that now.
8719 (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
8720 (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
8721 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
8722 Double-quote strings that would otherwise contain M4 comments.
8723 * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
8725 * configure.ac (AC_INIT): Bump to 2.61a.
8728 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
8732 * configure.ac (AC_INIT): Bump to 2.61.
8735 * tests/autotest.at (Macro with backslash in a test title):
8736 Comment out for now, as this tests neither fails nor passes
8737 reliably. Problem reported by Ralf Wildenhues.
8739 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
8741 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
8742 in previous change, which caused test failures.
8744 2006-11-16 Stepan Kasal <kasal@ucw.cz>
8746 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
8747 code for --enable, --disable, --with, and --without to...
8748 (_AC_INIT_PARSE_ENABLE): ... a new macro.
8749 * doc/autoconf.texi (Package Options):
8750 * NEWS: Document that AC_ARG_ENABLE allows dots, too.
8752 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
8754 Import these changes from config via gnulib:
8756 2006-11-15 Ben Elliston <bje@gnu.org>
8758 From Josselin Mouette <joss@debian.org>:
8759 * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
8761 2006-11-08 Ben Elliston <bje@gnu.org>
8763 * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
8765 2006-11-07 Steve Woodford <scw@NetBSD.org>
8766 Ben Elliston <bje@gnu.org>
8768 * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
8769 * build-aux/config.sub (sh5el): New basic_machine.
8772 Import this change from coreutils:
8774 2006-02-13 Jim Meyering <jim@meyering.net>
8776 * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
8779 Import this change from gnustandards via gnulib:
8781 2006-11-15 Karl Berry <karl@gnu.org>
8783 * standards.texi: core -> memory, throughout.
8784 (CPU Portability): show correct example of calling write
8785 on a char value; thanks to Paul Eggert for the code.
8786 Both of these suggestions from Eugene Y. Vasserman.
8789 Import these changes from texinfo via gnulib:
8791 2006-11-08 Karl Berry <karl@gnu.org>
8793 * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
8794 as well as pdf images, since they are supported in pdftex with
8797 2006-11-05 Karl Berry <karl@gnu.org>
8799 * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
8801 2006-11-13 Paul Eggert <eggert@cs.ucla.edu>
8803 * NEWS: Document the AC_ARG_WITH change.
8805 2006-11-13 Bruno Haible <bruno@clisp.org>
8807 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
8808 options, transliterate also dots to underscores.
8809 (_AC_ENABLE_IF): Transliterate also dots to underscores.
8810 * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
8811 first argument may also contain dots.
8813 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8815 * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
8816 benefit of platforms like Solaris+GCC where it is common to have a
8817 non-working g++ installation.
8819 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8820 and Joel E. Denny <jdenny@ces.clemson.edu>
8821 and Paul Eggert <eggert@cs.ucla.edu>
8823 * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
8824 and non-portable sed scripts, and use $CONFIG_SHELL when invoking
8827 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
8829 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
8830 ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
8831 Imported from a similar patch to gnulib by Bruno Haible.
8833 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
8835 * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
8836 * doc/autoconf.texi (C Compiler): Document them.
8837 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
8838 New macros, taken from gnulib.
8840 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
8842 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8843 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8846 2006-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8848 * tests/torture.at (Configuring subdirectories): Do not skip
8849 Automake 1.10 nor future Automake 11.1 (sic).
8851 2006-10-26 Joel E. Denny <jdenny@ces.clemson.edu>
8852 and Stepan Kasal <kasal@ucw.cz>
8854 Handle special characters in test case titles correctly.
8855 * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
8857 (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
8858 * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
8859 argument. Extend to check titles printed by ./micro-suite and
8860 ./micro-suite -l and the title in micro-suite.log.
8861 (Backquote in a test title,
8862 Single-quote in a test title,
8863 Double-quote in a test title): Don't expect failure anymore.
8864 (Backslash in a test title): Put a non-whitespace character after the
8865 backslash so that Bourne shells might actually see it as an escape
8867 (Brackets in a test title,
8868 Pound in a test title,
8869 Comma in a test title,
8870 Quoted Macro in a test title,
8871 Macro in a test title,
8872 Macro with single-quote in a test title): New tests.
8873 (Macro with backquote in a test title,
8874 Macro with double-quote in a test title,
8875 Macro with backslash in a test title): New tests expected to fail.
8876 * tests/torture.at (#define header templates): M4-quote this title in
8877 AT_SETUP call so that no M4 code is commented inadvertently somewhere.
8878 The visible effect was a stray [] in the testsuite output.
8880 2006-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8882 * doc/autoconf.texi (Limitations of Builtins): Do not invoke
8883 `trap ... 0' inside a function, for AIX sh.
8885 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
8887 * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
8888 since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
8889 5363) simply issues a warning when dividing by zero at compile
8890 time. Problem reported by Elias Pipping.
8892 2006-10-26 Eric Blake <ebb9@byu.net>
8895 * doc/autoconf.texi (Evaluation Macros): Improve the example to
8896 show effect on macros that expand with commas.
8897 Reported by Joel E. Denny.
8899 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
8900 Also work with M4 1.4.8.
8902 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
8904 * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
8907 2006-10-25 Stepan Kasal <kasal@ucw.cz>
8909 * tests/tools.at (autom4te --force): New test, verifies that
8910 `--force' always rewrites the output file.
8912 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
8914 * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
8915 needs operands on NetBSD 2.0.2. Problem reported by Bruno Haible.
8917 2006-10-24 Stepan Kasal <kasal@ucw.cz>
8919 * tools/trace.at (autoconf --trace: user macros): Test `$%'.
8921 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
8923 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
8924 If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
8925 AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
8926 reported by Nelson H. F. Beebe for Coreutils 6.4.
8928 * tests/tools.at (autoconf --trace: user macros): Remove test
8929 for tracing multiline macros, since m4 1.4.7a uses a different
8930 way to number lines. Problem reported by Ralf Wildenhues.
8932 2006-10-24 Stepan Kasal <kasal@ucw.cz>
8934 * bin/autom4te.in (handle_m4): Do not redirect stdin to
8935 /dev/null since the heuristics for interactive behaviour was
8938 * bin/autom4te.in: With --force, always refresh the output
8939 file. Problem reported by Greg Schafer <gschafer@zip.com.au>.
8941 * bin/autoconf.as: Fix the verbose message at the end.
8943 2006-10-23 Paul Eggert <eggert@cs.ucla.edu>
8945 * configure.ac (AC_INIT): Bump to 2.60c.
8948 2006-10-22 Paul Eggert <eggert@cs.ucla.edu>
8950 * NEWS: Version 2.60b.
8952 Import this change from Texinfo:
8953 2006-10-15 Karl Berry <karl@gnu.org>
8954 * build-aux/texinfo.tex: automake 1.10
8956 * NEWS: Remove AC_CACHE_CHECK_INT.
8957 * doc/autoconf.texi (Caching Results): Likewise.
8958 * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
8959 AC_CACHE_CHECK_INT, since it's no longer public.
8960 * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
8961 * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
8963 2006-10-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8965 * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
8967 2006-10-19 Eric Blake <ebb9@byu.net>
8969 * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
8970 (m4_maketemp): Avoid warnings with M4 1.9a.
8971 * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
8973 * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
8976 2006-10-16 Eric Blake <ebb9@byu.net>
8978 * doc/autoconf.texi (Setting Output Variables): Fix typo.
8980 * bin/autoconf.as (version): Reword to match GNU Coding
8982 * bin/autoheader.in (version): Likewise.
8983 * bin/autom4te.in (version): Likewise.
8984 * bin/autoreconf.in (version): Likewise.
8985 * bin/autoscan.in (version): Likewise.
8986 * bin/autoupdate.in (version): Likewise.
8987 * bin/ifnames.in (version): Likewise.
8989 2006-10-14 Stepan Kasal <kasal@ucw.cz>
8991 * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
8992 looking for special shell characters.
8993 * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
8994 macro defined by AS_VAR_PUSHDEF before passing it as a
8996 * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
8997 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
8998 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
8999 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
9000 (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
9002 * lib/autotest/general.m4 (AT_INIT): Quote parameters of
9004 * tests/m4sh.at (AS_LITERAL_IF): New test.
9006 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
9008 (Imported from Automake.)
9009 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9010 which incorrectly sets the mode of an existing destination
9011 directory. In some cases the unpatched install-sh could do the
9012 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9013 system. We hope this is rare in practice, but it's clearly worth
9014 fixing. Problem reported by Alex Unleashed in
9015 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9016 Also, don't bother to check for -m bugs unless we're using -m;
9017 suggested by Stepan Kasal.
9019 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
9021 Import this change from Automake:
9023 2006-08-23 Alexandre Duret-Lutz <adl@gnu.org>
9024 * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
9025 is enabled by default with gnu and gnits strictness.
9026 Report from Bruno Haible.
9028 2006-03-10 Alexandre Duret-Lutz <adl@gnu.org>
9029 * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
9030 gnu and gnits modes.
9032 Import this change from Config:
9034 2006-09-20 Ben Elliston <bje@gnu.org>
9035 * build-aux/config.sub (score, score-*): New.
9037 Import this change from Gnulib:
9039 2006-09-16 Karl Berry <karl@gnu.org>
9040 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
9041 to avoid sectioning errors.
9043 Import these changes from Texinfo:
9045 2006-10-04 Karl Berry <karl@gnu.org>
9046 * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
9047 (\quoteexpand): rename to \rquoteexpand.
9048 (\codequoteleft): new def, to look for @set codequotebacktick.
9049 (\lquoteexpand, \quoteexpand): new defs.
9050 (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
9051 (\code): must use new \...Char values, since now ` is active.
9053 2006-08-26 Karl Berry <karl@gnu.org>
9054 * build-aux/texinfo.tex (\textdegree): New command.
9056 2006-08-12 Karl Berry <karl@gnu.org>
9057 * build-aux/texinfo.tex (error \box0): smaller font.
9059 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9061 * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
9063 2006-10-13 Stepan Kasal <kasal@ucw.cz>
9065 * doc/autoconf.texi (Autoheader Macros): Warn that the text
9066 added to the template can get mangled.
9068 2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9070 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
9071 include the default headers, and redefine obstack_chunk_alloc
9072 and obstack_chunk_free. Fixes false failure with glibc.
9074 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
9076 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
9077 for backward compatibility with Libtool 1.5.22. Problem reported
9080 2006-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9082 * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
9084 Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
9086 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
9088 * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
9089 the NonStop platform.
9090 * doc/autoconf.texi (Posix Variants): Likewise.
9091 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
9093 * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
9094 (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
9095 (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
9096 Use a better substitute, by inspecting the output of "ls"
9097 rather than just using ":".
9098 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
9099 rather than AS_EXECUTABLE_P, since we needn't worry about
9100 non-regular files here.
9102 * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
9103 due to configuration hassles with this. See Tonya Underwood's report
9104 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
9105 * doc/autoconf.texi (Special Shell Variables): Likewise.
9107 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
9108 Stepan Kasal <kasal@ucw.cz>
9110 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
9111 (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
9113 2006-10-11 Stepan Kasal <kasal@ucw.cz>
9115 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
9116 initialization which is not inherited through the environment
9117 (_AS_BOURNE_COMPATIBLE): ... to this new macro.
9118 (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
9120 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
9122 * doc/autoconf.texi (Limitations of Usual Tools): Describe
9123 problems with mkdir -p -m.
9125 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
9127 * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
9128 comment about ac_cpp_err; it was incorrect, and anyway
9129 ac_cpp_err is being removed below.
9130 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
9131 set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
9132 are both 'yes'. In fact, don't bother setting ac_cpp_err at all;
9134 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
9135 with werror_flag and conftest.err and so forth. This is more
9136 compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
9137 and anyway the user shouldn't normally want to see this gorp logged.
9138 Problem reported by Ralf Wildenhues.
9139 * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
9140 empty, not 'no', since the rest of the code uses 'test -z'.
9142 2006-10-04 Paul Eggert <eggert@cs.ucla.edu>
9144 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
9145 Use a single call to AC_DO_TOKENS rather than multiple, for
9147 (_AC_LINK_IFELSE): Test that resulting file is executable.
9148 Problem reported by mwoehlke in
9149 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
9151 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
9152 than creating a file to use with test -x; this is much faster.
9154 2006-10-02 Bruno Haible <bruno@clisp.org>
9156 * lib/autom4te.in (Automake-preselections): Add
9157 AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
9159 2006-09-27 Stepan Kasal <kasal@ucw.cz>
9161 * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
9162 standard error, `experr' should be used, not `expout'.
9164 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
9166 * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
9167 fseeko testing program twice; just use the earlier result.
9168 * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
9169 Set cache var to 'unknown' (not 'no') if leaving the macro unset
9170 still doesn't let the program compile.
9171 (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
9174 * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
9175 (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h. Just
9176 include it, without including anything else.
9177 (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
9179 (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
9181 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9183 * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
9184 `error.h', and include it, for a `error_at_line' prototype.
9185 Use a nonempty format string in the link test.
9186 * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
9187 for a declaration of wait3.
9189 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
9191 * NEWS: AC_CHECK_DECL now also works with aggregate objects.
9192 * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
9193 can apply to constants too, and that it checks for macro defns.
9194 * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
9195 and simply cast the identifier to void. This handles structure
9196 values. Problem reported by Ralf Wildenhues.
9197 * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
9199 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9201 * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
9202 structure, and function symbols.
9204 2006-09-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9206 * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
9209 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
9211 * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
9213 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9215 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
9216 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9218 * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
9219 warnings (uninitialized value).
9220 (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
9222 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
9224 (AC_STRUCT_TM): Likewise, avoid unused variables.
9226 2006-09-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9228 * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
9229 (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
9230 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
9231 * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
9232 Report by Olly Betts.
9234 2006-09-19 Eric Blake <ebb9@byu.net>
9236 * m4/m4.m4: Change copyright.
9237 * configure: Regenerate.
9238 * Makefile.in: Likewise.
9239 * bin/Makefile.in: Likewise.
9240 * doc/Makefile.in: Likewise.
9241 * lib/Makefile.in: Likewise.
9242 * lib/Autom4te/Makefile.in: Likewise.
9243 * lib/autoconf/Makefile.in: Likewise.
9244 * lib/autoscan/Makefile.in: Likewise.
9245 * lib/autotest/Makefile.in: Likewise.
9246 * lib/emacs/Makefile.in: Likewise.
9247 * lib/m4sugar/Makefile.in: Likewise.
9248 * man/Makefile.in: Likewise.
9249 * tests/Makefile.in: Likewise.
9251 * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
9252 * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
9253 * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
9254 --error-output, to avoid warnings with M4 2.0.
9256 2006-09-19 Stepan Kasal <kasal@ucw.cz>
9258 * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
9259 consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
9260 * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
9262 2006-09-15 Stepan Kasal <kasal@ucw.cz>
9264 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
9265 expansion of AC_CHECK_FUNCS.
9267 2006-09-14 Stepan Kasal <kasal@ucw.cz>
9269 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
9270 mistaken comment: the path has to be relative; do not use
9271 the path at runtime.
9273 2006-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9275 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
9276 argument to `--prefix' for sub-configure scripts.
9277 Pass `--silent' to sub-configure scripts.
9278 * tests/torture.at (Configuring subdirectories): Add tests
9280 * doc/autoconf.texi (Setting Output Variables): Fix example to
9281 not show `--silent' being passed to a `configure' re-run.
9283 2006-09-12 Paul Eggert <eggert@cs.ucla.edu>
9285 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
9286 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
9287 for the existence of the directory at configure-time. That's
9288 too late, anyway. Problem reported by Stefan Seefeld.
9290 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
9291 7.1.4 /usr/bin/posix/sh described by Tim Rice in
9292 <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
9294 2006-09-11 Stepan Kasal <kasal@ucw.cz>
9296 * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
9297 works with GNU M4 1.4.3 again; make the normalized form
9298 match the current m4 message; fix the description.
9299 * test/tools.at (autom4te cache): Adapt to the change.
9301 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
9303 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
9304 to catch glibc bug 2821
9305 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
9307 Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
9308 AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
9309 AC_CHECK_FUNCS. Don't check for stdlib.h, since we now
9312 2006-09-08 Stepan Kasal <kasal@ucw.cz>
9314 * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
9316 (Autoconf): ... here.
9317 (Autoscan-preselections): Delete.
9319 2006-09-07 Stepan Kasal <kasal@ucw.cz>
9321 * lib/autom4te.in (Automake-preselections): Preselect
9324 2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
9326 * doc/autoconf.texi (Preset Output Variables): srcdir and
9327 top_srcdir are not necessarily relative. Problem reported
9330 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9332 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
9333 f90/f95 because the latter drivers of AIX Fortran 9.1 do not
9334 accept files with extension `.f'. For consistency, also prefer
9336 * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
9339 2006-09-05 Romain Lenglet <rlenglet@users.forge.objectweb.org>
9341 * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
9342 of ERLANG_LIB_VER_* variables.
9343 * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
9346 2006-09-03 Paul Eggert <eggert@cs.ucla.edu>
9347 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9349 * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
9350 bugs of Bash 2.01 and 2.05a.
9351 (Fortran Compiler): Document that AC_PROG_CC should be called
9352 before AC_PROG_FC, due to a bug in Autoconf.
9354 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
9356 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
9357 old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
9358 except the first two arguments are reversed.
9359 * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
9360 (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
9361 caches nor outputs a diagnostic. Suggested by Bruno Haible.
9362 * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
9363 equivalent to the old AC_COMPUTE_INT.
9364 (AC_COMPUTE_INT): No longer caches or reports. New signature.
9365 All uses changed to AC_CACHE_CHECK_INT.
9366 * tests/base.at (AC_CACHE_CHECK_INT): New test.
9367 * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
9369 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
9371 * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
9372 and AC_REPLACE_FNMATCH are now obsolescent in Autoconf. New
9373 programs should use their Gnulib counterparts.
9374 * doc/autoconf.texi (Particular Functions): Likewise.
9375 (Macro Names, testsuite Invocation): Replace uses of these
9376 obsolete macros with uses of non-obsolete macros.
9378 2006-08-29 Eric Blake <ebb9@byu.net>
9380 * configure.ac (AC_INIT): Bump to 2.60b.
9383 2006-08-28 Eric Blake <ebb9@byu.net>
9385 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
9386 mistakenly swapped on 2006-08-15.
9388 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
9390 * NEWS: Version 2.60a.
9392 2006-08-25 Stepan Kasal <kasal@ucw.cz>
9394 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
9395 file created by the PGI compiler.
9397 2006-08-25 Noah Misch <noah@cs.caltech.edu>
9399 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
9402 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
9404 Fix Lex library problem reported to us by Julio Garvia.
9405 * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
9406 for the default, which the user can override.
9407 * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
9409 (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
9410 didn't work if some values were cached but not others. Test for
9411 broken lex libraries like native ia64-hp-hpux11.22; see
9412 <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
9413 work around the problem by preferring an empty LEXLIB to -lfl or
9414 -ll. Let the user set LEXLIB='' to indicate no library needed.
9416 * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
9418 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9420 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
9422 Rework to use more-modern build style.
9423 Many files are renamed; all uses of their names were changed.
9424 * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
9425 * .x-sc_useless_cpp_parens: New file.
9426 * build-aux/config.guess: Renamed from config/config.guess. Update.
9427 * build-aux/config.sub: Renamed from config/config.sub. Update.
9428 * build-aux/elisp-comp: Renamed from config/elisp-comp.
9429 * build-aux/install-sh: Renamed from config/install-sh. Update.
9430 * build-aux/mdate-sh: Renamed from config/mdate-sh.
9431 * build-aux/missing: Renamed from config/missing.
9432 * build-aux/texinfo.tex: Renamed from config/texinfo.tex. Update.
9433 * build-aux/vc-list-files: Renamed from config/vc-list-files.
9434 * config/Makefile.am: Removed.
9435 * config/mkinstalldirs: Removed.
9436 * config/move-if-change: Removed.
9437 * m4/m4.m4: Renamed from config/m4.m4. Add (C) to copyright notice.
9438 * Makefile.am (SUBDIRS): Remove config.
9439 (ACLOCAL_AMFLAGS): Include from m4, not config.
9440 (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
9441 (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
9442 (autom4te-update): Rewrite with a loop. Get from gnulib, not automake.
9443 Fail if there's an error.
9444 * Makefile.cfg (move_if_change): Remove.
9445 (wget_files): Remove.
9446 (cvs_executable_files): New macro.
9447 (cvs_files): Use it. Remove mkinstalldirs. Add fdl.texi.
9448 (executable-update): Use $(cvs_executable_files).
9449 (local-checks-to-skip): Remove.
9450 * Makefile.maint: Merge from coreutils, plus add our own changes
9451 (gzip_rsyncable): New macro.
9453 (CVS_LIST): Use build-aux/vc-list-files.
9454 (VERSION_REGEXP): New macro.
9455 (local-checks-available): Add patch-check, $(syntax-check-rules),
9457 (syntax-check-rules): Compute dynamically.
9458 (sc_cast_of_x_alloc_return_value): Work even if no source files.
9459 (sc_cast_of_alloca_return_value): Likewise.
9460 (sc_prohibit_atoi_atof): Simplify regexp.
9461 (sc_no_if_have_config_h, sc_require_config_h):
9462 (sc_prohibit_assert_without_use,
9463 (sc_obsolete_symbols): Check for O_NDELAY.
9464 (sc_texi_notab): Remove.
9465 (sc-changelog): Don't make an exception for '----' lines.
9466 (.re-list): Remove, so we don't have a junk file behind.
9467 (sc_system_h_headers): Remove the need for .re-list.
9468 (sc_the_the): New rule.
9469 (sc_tight_scope): Simplify.
9470 (sc_trailing_blank): Renamed from sc_trailing_space.
9471 (longopt_re): New macro.
9472 (sc_two_space_separator_in_usage): New rule.
9473 (sc_unmarked_diagnostics): Look at all files under CVS.
9474 (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
9475 (news-date-check, changelog-check): Version is OK.
9476 (po-check): Look for lib files even if not in CVS.
9477 (copyright-check): Use $() not ``.
9478 (maintainer-distcheck): Do not depend on changelog-check.
9479 (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
9480 Also check for -Wpointer-arith.
9481 (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
9482 (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
9484 (announcement): Add --gpg-key-id arg.
9486 (move_if_change): Just use mv.
9487 (local_updates: Remove wget-update, po-update.
9488 (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
9489 (config.guess-url_prefix, config.sub-url_prefix): Remove.
9490 (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
9491 (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
9492 ($(get-targets)): Remove.
9493 (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
9494 (gnulib_repo): Renamed from automake_repo. Get from gnulib now.
9495 (cvs-update): Get from gnulib.
9496 (emut_upload_commands): gnupload is in build-aux now.
9497 (alpha beta major): Add changelog-check. Check version.
9498 * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
9499 (AC_CONFIG_FILES): Remove.
9500 * bin/autoconf.as: Add spaces to avoid distcheck warning.
9501 * config/announce-gen: Sync from coreutils.
9502 * doc/make-stds.texi: Sync from gnulib.
9503 * doc/standards.texi: Likewise.
9504 * man/Makefile.am: Adjust for config -> build-aux renaming.
9505 * tests/Makefile.am: Prefer $(FOO) to @FOO@.
9506 * tests/local.at: Adjust from config -> build-aux renaming.
9507 * tests/tools.at: Likewise.
9508 * tests/torture.at: Likewise.
9510 * NEWS: The C99 check now tests for vararg macros and 64-bit
9512 * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
9513 * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
9514 64-bit preprocessor ints. Check for static initialization of
9515 long long. Remove unnecessary casts.
9517 2006-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9519 * doc/autoconf.texi (Particular Programs): Mention that
9520 @INSTALL@ and @MKDIR_P@ may vary for different output files.
9521 Reported by Alexandre Duret-Lutz.
9523 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
9525 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
9526 -lgcc?* and -lSystem, for Darwin/MacOS X. Problem reported by
9528 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
9530 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
9532 * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
9533 pacify insanely picky compilers. Problem reported by Eric Blake.
9535 * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
9536 longer supported by Sun.
9538 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
9540 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
9541 rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
9542 -Wundef -Werror". Problem reported by David Fang in
9543 <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
9544 * doc/autoconf.texi (Header Templates, Default Includes):
9545 (Particular Functions, Generic Functions, Header Portability):
9546 (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
9547 (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
9548 (Present But Cannot Be Compiled, Preprocessor Symbol Index):
9549 Prefer #ifdef to #if.
9550 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
9551 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
9552 (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
9553 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
9555 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
9556 (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
9557 * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
9558 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9559 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
9560 S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
9563 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
9565 * doc/autoconf.texi (Limitations of Usual Tools): Document sed
9566 problems with arg script text that doesn't end in newline, and
9567 with '-e a...'. Problems reported by Ralf Wildenhues.
9569 2006-08-12 Alexandre Julliard <julliard@winehq.org> (tiny change)
9571 * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
9572 check for libXt by a check for libX11.
9574 2006-08-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9576 * doc/autoconf.texi (config.status Invocation): Adjust according
9579 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9581 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
9582 --help' should mention that `--version' outputs configuration
9583 settings. Report by Bruno Haible.
9585 2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
9587 Fix test suite failures reported by Pierre in
9588 <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
9589 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
9590 the compiler created a file "b.out" when it didn't create anything
9592 * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
9593 Discard stderr too, when invoking the test script.
9595 2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
9597 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
9598 in the restoring of the werror flag.
9600 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
9602 * doc/autoconf.texi (Volatile Objects): Be even a little
9603 less skeptical about "volatile", after discussion with
9604 Bruno Haible on bug-gnulib.
9605 (Limitations of Usual Tools): Warn about sed stripping
9606 leading white space from text. From Bruno Haible.
9608 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
9610 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
9611 compiler complains about it, even if things works after the
9612 complaint. Problem reported by Peter O'Gorman.
9614 * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
9615 CPPFLAGS, and LDFLAGS better. Problem reported by Bruno Haible.
9616 Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
9618 2006-07-17 Paul Eggert <eggert@cs.ucla.edu>
9620 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
9621 after -R regardless of host. Patrick Welche reports that this
9622 fixes things on NetBSD 3.99.
9624 * NEWS: Recommend M4 1.4.5.
9626 * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
9627 * tests/tools.at (autom4te cache): Update wording of diagnostic
9630 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
9632 * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
9633 under AC_C_VOLATILE.
9634 (Volatile Objects): Be a little less skeptical about what
9635 "volatile" means. Derived from thoughts by Ben Pfaff in
9636 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
9638 2006-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9640 * doc/autoconf.texi: Fix some typos.
9642 2006-07-07 Paul Eggert <eggert@cs.ucla.edu>
9644 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
9645 more globally, since the 2006-06-30 patch didn't suffice. Problem
9646 reported by Keith Marshall. Also, don't bother with builddir2,
9647 since it shouldn't be needed any more.
9649 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
9651 * doc/autoconf.texi (Generic compiler characteristics):
9652 Document AC_COMPUTE_INT. Fix wrong statements on Default
9653 Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
9655 * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
9656 (_AC_COMPUTE_INT): Add obsoletion warnings.
9657 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
9660 * NEWS: Document change.
9662 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
9664 * doc/autoconf.texi (Volatile Objects): New section.
9666 * NEWS: Document previous change.
9668 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
9670 * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
9671 Require that long long int be at least 64 bits wide. C99 requires
9672 this and enough programs depend on it so we should check for it.
9673 Bruno Haible reports in
9674 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
9675 that long long int is 32 bits wide with some nonstandard compilers.
9676 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9678 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
9680 * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
9681 to a nonexistent file, so that we don't have to worry about
9682 a local site configuration that doesn't use /usr/local.
9683 Problem reported by Keith Marshall in
9684 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
9686 2006-06-28 Paul Eggert <eggert@cs.ucla.edu>
9688 * doc/autoconf.texi: Be more consistent about using @acronym with
9689 "HP" and "HP-UX". Remove mention of OSF; the old version wasn't
9690 quite right (it talked about "OSF/Tru64", even though the
9691 operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
9692 and it even mentioned "OSF 4"!) and at this point there's little
9693 reason to talk about OSF any more, since it died in 1994.
9694 (Specific Compiler Characteristics): Simplify example of
9695 negative-size array.
9696 (File Descriptors): Reorder to make the text flow better.
9697 Remove joke about "appreciate the various levels"; I didn't get it.
9698 Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
9699 <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
9700 (File Descriptors, Limitations of Usual Tools):
9701 Tone down the advice against renaming or removing open files.
9702 (Limitations of Usual Tools): Add a new section, on 'rm'.
9704 2006-06-26 Stepan Kasal <kasal@ucw.cz>
9706 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
9707 -lXt in LIBS, idea from Karsten Hopp; this was due since
9710 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
9711 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
9712 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
9713 (which belong to Xt, not X itself). See Debian bug 327655.
9715 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9717 * configure.ac (AC_INIT): Bump to 2.60a.
9720 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9724 * configure.ac, NEWS: Update.
9726 2006-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9728 * config/texinfo.tex: Sync from upstream.
9730 * bin/autom4te.in (handle_traces): Transform the `@S|@'
9731 quadrigraph correctly in traces.
9733 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
9736 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
9737 datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
9739 * doc/autoconf.texi (Changed Directory Variables): New node,
9740 to document the whole `datarootdir' business a bit better.
9742 * tests/torture.at (datarootdir workaround): Extend test.
9743 Prompted by report by Alexandre Julliard.
9745 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
9747 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
9748 when using default mode of IBM C 6 for AIX. Problem and two-line
9749 fix reported by Larry Jones.
9751 2006-06-22 Alexandre Julliard <julliard@winehq.org>
9753 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
9754 about literal '${datarootdir}' if a definition is found in the
9757 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
9759 * NEWS: Use "M4" rather than "m4" when appropriate.
9760 Problem reported by Eric Blake.
9761 * doc/autoconf.texi: Likewise.
9762 Use @acronym around BSD, GCC, and GNU when appropriate.
9763 (Why GNU M4): Renamed from "Why GNU m4".
9764 (Redefined M4 Macros): Mention that Posix
9765 m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
9766 (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
9769 2006-06-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9771 * bin/autom4te.in (handle_output): Do not forbid the empty
9773 * tests/tools.at (autoconf: the empty token): New test.
9775 2006-06-20 Stepan Kasal <kasal@ucw.cz>
9777 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
9778 calls, so that we do not care whether they are LIFO or FIFO;
9779 in the m4_wrap, do not check which diversion is the topmost
9780 one, just check that the stack is balanced at the end.
9781 * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
9782 base diversion forever--pop the previous diversion before
9783 opening the new one; consequently, remove the m4_wrap call.
9784 * lib/autotest/general.m4 (AT_INIT): Likewise.
9785 * tests/m4sugar.at: Do not use
9786 m4_wrap([m4_diversion_pop([..])]), for educational purposes.
9788 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
9789 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9791 * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
9792 * doc/autoconf.texi (Redefined M4 Macros): Likewise.
9793 Rework example of m4wrap token-pasting trouble so that it doesn't
9794 care whether it's LIFO or FIFO.
9795 Fix some "contrary to"s that are awkward in English.
9797 2006-06-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9799 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
9800 to `yes' instead of `int$1_t' if the type is found, for more
9801 consistent configure output (where $1 is the number of bits).
9802 (_AC_TYPE_UINT): Likewise for `uint$1_t'.
9803 Suggested by Bruno Haible.
9805 * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
9806 needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
9807 with system headers. Report by Bruno Haible.
9809 2006-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9811 * config/config.guess, config/config.sub: Sync from upstream.
9813 * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
9814 in order to avoid picking up an older installed frozen m4sh.m4f.
9815 Besides an outdated shell startup, this could have been created
9816 by an earlier M4 version with incompatible frozen file format.
9818 2006-06-16 Paul Eggert <eggert@cs.ucla.edu>
9820 * README: Recommend m4 1.4.4 instead of 1.4.3..
9821 * doc/autoconf.texi: Likewise.
9822 (Special Chars in Names): Say that $(.FOO) is portable, as
9823 suggested by Stepan Kasal.
9824 (Installation Directory Variables, Build Directories):
9825 (Automatic Remaking, Subdirectories, Fortran Compiler):
9826 (Making testsuite Scripts, Defining Directories):
9827 Quote variable usages better.
9828 (Making testsuite Scripts): Add clean-local rule to makefile
9829 snippet, by Eric Blake.
9830 (Installation Directory Variables): Fix table item font.
9831 Reword slightly to clarify. Generalize advice about
9832 not using special characters to include all file-related
9833 vars, not just VPATH.
9834 (Special Chars in Variables): Warn about special characters in
9836 (Assignments): Clarify default-value example as suggested by
9838 <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
9839 (Special Shell Variables): Note leading ./ or ../, as suggested
9841 (Limitations of Builtins): Under cd, warn about CDPATH.
9842 (The Make Macro MAKEFLAGS): Untabify. Problem reported by
9845 2006-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9847 * doc/autoconf.texi (Configuration Actions): Remove duplicate
9848 `@var', for texi2html.
9849 (Systemology): Some more word wrapping, for DVI output.
9850 (autom4te Invocation): The short option for `--melt' is `-M',
9853 2006-06-15 Paul Eggert <eggert@cs.ucla.edu>
9855 * doc/autoconf.texi: More formatting and English tweaks,
9856 many suggested by Ralf Wildenhues.
9857 Reword to avoid "@code{...}'s" and the like, since it's ugly
9858 with Emacs info mode. discontents -> woes.
9859 Put a few "will"s back. time stamp -> timestamp.
9860 side-effect -> side effect.
9862 2006-06-14 Paul Eggert <eggert@cs.ucla.edu>
9864 * doc/autoconf.texi (Initializing configure, Shell Substitutions):
9865 Warn about $@ not persisting. Problem reported by Julien Danjou in
9866 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
9867 (Special Chars in Names): Renamed from Leading _ in Macro Names.
9868 Mention other special chars, too.
9870 2006-06-14 Eric Blake <ebb9@byu.net>
9872 * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
9874 2006-06-13 Paul Eggert <eggert@cs.ucla.edu>
9876 * doc/autoconf.texi: Some systematic minor improvements, as
9877 follows. Use "makefile" when talking about makefiles
9878 generally (which might be named "makefile" or "Makefile" or even
9879 "foo.mk"), "Makefile" when talking about a specific makefile
9880 called "Makefile". This unclutters the text from weird quotes
9881 (e.g., "`Makefile's" in info mode). Similarly, use "@var{foo}
9882 values" rather than "@var{foo}s" and similar constructs containing
9883 "}s". Use "Make rules" rather than "Makefile rules". Minor
9884 English-language improvements. Change the prefix "sub-" to "sub"
9886 Put blank lines around examples more consistently.
9887 Avoid "rather" and "very" as intensifiers.
9888 Avoid "will" as an auxiliary.
9889 (Limitations of Make): Split this node into....
9890 (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
9891 (Leading _ in Macro Names, Backslash-Newline-Newline):
9892 (Backslash-Newline Comments, Long Lines in Makefiles):
9893 (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
9894 (obj/ and Make, make -k Status, VPATH and Make):
9895 (VPATH and Double-colon, $< in Explicit Rules):
9896 (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
9897 (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
9898 New nodes, resulting from splitup of Limitations of Make.
9899 All cross-references changed. Raise the top node from
9900 a section to a chapter, and all subnodes accordingly.
9901 Redo the introductory wording to match the new organization.
9902 (Installation Directory Variables): Use an example that is
9903 closer to what Autoconf actually does. Mention that VPATH's
9904 value should not contain metacharacters or white space.
9905 (Fortran Compiler): Fix a VPATH bug in an example.
9906 (Leading _ in Macro Names): Mention that this problem is no longer
9907 of practical concern.
9908 (VPATH and Make): Reword the advice to make it clearer
9909 that Autoconf and Automake support VPATH in non-GNU make, but
9910 many packages have bugs in this area.
9911 ($< in Explicit Rules): Refer to Build Directories rather
9912 than using a (non-VPATH-safe) example.
9913 (Automatic Rule Rewriting): Mention the sort of disaster that
9914 can ensue with Solaris-style rule rewriting with VPATH.
9916 2006-06-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9918 * doc/install.texi (Compilers and Options): Weaken the
9919 suggestion to use GNU make for VPATH builds.
9921 * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
9922 AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
9924 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
9925 in regular expression.
9927 2006-06-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9929 * doc/autoconf.texi (Installation Directory Variables):
9930 Drop extra @samp from `@table @samp' item.
9931 (Limitations of Usual Tools): Comment fix.
9932 Do not nest @samp just to point to other table items.
9933 (Writing testsuite.at) <AT_CHECK>: The second argument to
9934 `@dvar' is already @samp'ed.
9935 (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
9936 do not use @var in the second argument.
9938 2006-06-07 Paul Eggert <eggert@cs.ucla.edu>
9940 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
9941 $as_shell.exe too. Problem reported by Andreas Buening in
9942 <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
9944 2006-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9946 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
9947 `unused variable' compiler warning, for `-Wall -Werror'.
9948 Reported by Jaap Haitsma in
9949 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
9951 2006-06-06 Paul Eggert <eggert@cs.ucla.edu>
9953 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
9954 case the compiler dumps core. Problem reported for
9955 OpenServer 5.0.7 by Tim Rice in
9956 <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
9957 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
9960 2006-06-06 Tim Rice <tim@multitalents.net>.
9962 * lib/freeze.mk: Quiet check-forbidden-patterns so the string
9963 "ERROR" only shows up in "make check" output if there is an
9966 2006-06-06 Eric Blake <ebb9@byu.net>
9968 * tests/tools.at (automatically allowed tokens): Fix typo.
9970 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
9972 * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
9974 * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
9975 typically overflows on x86 CPUs, even though the C standard
9978 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9980 * configure.ac (AC_INIT): Bump to 2.59e.
9983 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9987 * config/texinfo.tex: Sync from upstream.
9989 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
9990 seen, invoke libtoolize with `--ltdl' argument.
9991 * lib/autom4te.in (Autoreconf-preselections): Adjust.
9993 Suggested by Eric Blake.
9995 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
9997 * NEWS: Whoops! AC_FUNC_STRNLEN isn't obsolescent. Problem
9998 reported by Ralf Wildenhues.
9999 * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
10001 2006-06-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10005 2006-06-05 Paul Eggert <eggert@cs.ucla.edu>
10007 * doc/autoconf.texi: Modernize some of the references to Solaris.
10009 2006-06-05 Stepan Kasal <kasal@ucw.cz>
10011 * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
10012 message issued by AC_REQUIRE.
10013 * tests/m4sugar.at: Check m4_require's error message.
10014 * tests/base.at: Check AC_REQUIRE's error message.
10015 * tests/local.at (AT_CHECK_M4): New macro, almost identical
10017 (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
10019 (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
10020 `expout' as the last parameter.
10021 * tests/tools.at: Adapt to the above change.
10023 2006-06-04 Stepan Kasal <kasal@ucw.cz>
10025 * doc/autoconf.texi (Limitations of Usual Tools): Correct
10026 information about race-free implementations of mkdir.
10028 2006-06-04 Eric Blake <ebb9@byu.net>
10030 * bin/autoreconf.in (help): Document M4 environment variable.
10031 * bin/autoconf.as (Usage): Likewise.
10032 * bin/autom4te.in (help): Likewise.
10033 * doc/autoconf.texi (autom4te Invocation): Likewise.
10035 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
10037 * NEWS: GNU make now recommended for VPATH builds.
10038 Mention that some macros are now documented to be obsolescent.
10039 * doc/autoconf.texi:
10040 Prefer "current" to "modern" to describe
10041 currently-used (albeit perhaps old-fashioned) hosts.
10042 Mention which ancient features no longer need to be worried about.
10043 setgid -> set-group-ID
10044 setuid -> set-user-ID (these are the Posix terms)
10045 Fix some misuses of "only".
10046 (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
10047 (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
10048 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
10049 (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
10050 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
10051 (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
10052 (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
10053 (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
10054 (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
10055 Mention that these macros are obsolescent.
10056 (Installation Directory Variables): shall -> should
10057 (File Descriptors): Mention that 0, 1, 2 might get reopened.
10058 Mention that it's now safe to use 3 and 4.
10059 (Limitations of Usual Tools): cp -r is now specified by Posix.
10060 Omit longwinded and obsolescent discussion of cp -f.
10061 Modernize discussion of expr, ls.
10062 (Limitations of Make): Modernize discussion of VPATH builds.
10063 Mention $? as a workaround in some cases.
10064 * doc/install.texi (Basic Installation):
10065 Mention "./configure; make; make install" first. Be more
10066 specific about why this file is generic. Remove unnecessary
10067 parens. Remove misleading "only". Remove obsolete advice
10068 about csh. Don't say "configure" takes awhile; say it
10069 might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
10070 and CC=c99 rather than CC=c89, as these are blessed by current
10071 Posix. Recommend GNU make if doing a VPATH build.
10073 2006-06-03 Paul Eggert <eggert@cs.ucla.edu>
10075 * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
10076 examples involving shell prompts.
10078 2006-06-02 Stepan Kasal <kasal@ucw.cz>
10079 and Paul Eggert <eggert@cs.ucla.edu>
10081 * doc/autoconf.texi (Here-Documents): Add details about the
10082 pre-ksh93g bug. Reword slightly to make it clearer. Consistently
10083 use "here-documents" instead of "here documents".
10085 2006-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10087 * config/texinfo.tex, doc/standards.texi: Sync from upstream.
10089 2006-06-01 Paul Eggert <eggert@cs.ucla.edu>
10091 * doc/autoconf.texi (File System Conventions): Warn about ":"
10092 anywhere in directory names.
10094 2006-05-31 Paul Eggert <eggert@cs.ucla.edu>
10096 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
10097 about quoting the case statement, just in case.
10098 * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
10099 was fixed in ksh93g; reported by Ralf Wildenhues.
10101 2006-05-31 Stepan Kasal <kasal@ucw.cz>
10103 * doc/autoconf.texi (System Services): Do not document
10104 overriding EXEEXT via ac_cv_exeext=ext.
10105 (Particular Programs) <AC_PROG_MKDIR_P>:
10106 Document that ${MKDIR_P} understands --.
10107 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
10110 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10112 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
10113 argument with leading hyphen. Problem reported by Paul Eggert.
10115 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
10117 * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
10118 about quoting ac_try: quote all of it, if any of it seems suspicious.
10119 This means we don't have to worry about ${ or sed any more.
10120 Also, double-quote the case statement, to work around misuses via
10121 underquoting as reported by Ralf Wildenhues in
10122 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
10123 (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
10124 undocumented and dangerous macro.
10125 Problem reported by Ralf Wildenhues in
10126 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
10128 2006-05-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10130 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
10131 `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
10132 Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
10134 2006-05-30 Paul Eggert <eggert@cs.ucla.edu>
10136 * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
10137 since evidently some packages rely on the old, broken behavior.
10138 Problem reported by Ralf Wildenhues in
10139 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
10140 (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
10141 pre-2006-05-26 definitions, but leave in the comments that
10142 these macros are dangerous and should not be used.
10143 (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO. All callers changed.
10144 (_AC_DO): Renamed from _AC_EVAL. All callers changed.
10145 (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR. All callers changed.
10146 (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
10147 (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
10149 2006-05-29 Paul Eggert <eggert@cs.ucla.edu>
10151 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
10152 the use of 'tr', since this is our only use of 'tr'.
10154 2006-05-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10155 and Paul Eggert <eggert@cs.ucla.edu>
10157 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
10158 Don't assume 'grep' works on long lines, since AIX grep doesn't.
10160 2005-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10162 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
10163 the output file in the `${datarootdir}' test.
10165 2005-05-28 Stepan Kasal <kasal@ucw.cz>
10166 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10168 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
10169 mention of `datarootdir' in the input file(s), but literal
10170 `${datarootdir}' in the output file, and we haven't warned yet,
10171 then warn as well: the user may have (erroneously) used
10172 `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
10173 `AC_SUBST([mydatadir], ['${datadir}/my'])'.
10174 * tests/torture.at (datarootdir workaround): Extend this test.
10177 2006-05-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10178 and Paul Eggert <eggert@cs.ucla.edu>
10180 * doc/autoconf.texi (autoheader Invocation): The first argument to
10181 `AC_DEFINE_UNQUOTED' need not be a literal. Mention the
10182 alternatives and clear up the language a bit.
10184 2006-05-27 Paul Eggert <eggert@cs.ucla.edu>
10186 * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
10187 ac_config_guess, ac_config_sub, ac_configure.
10188 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
10189 Fix typo that prevented an unnecessary space from being removed.
10190 Problems reported by Ralf Wildenhues in:
10191 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
10193 2006-05-26 Paul Eggert <eggert@cs.ucla.edu>
10195 * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
10196 Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
10197 Don't use the term "thread-safe" to talk about mkdir race
10198 conditions, since the problem is more a process than a thread
10199 issue. Problem reported by Stepan Kasal in:
10200 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
10201 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
10202 the test for 'install' more closely. Look at MKDIR_P first.
10203 Look in the PATH, and at /opt/sfw/bin.
10204 Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
10205 Don't bother to try mkdir -p, since we already check mkdir --version;
10206 just look at the version number. (There's no easy way to check
10207 for race-free implementations.)
10208 * tests/tools.at (autoconf: subdirectories): Adjust to above
10209 changes, since MKDIR_P now might end in "/mkdir -p".
10211 * doc/autoconf.texi (autoheader Invocation): Mention that the
10212 first arg of AC_DEFINE_UNQUOTED must be a literal.
10213 Problem reported by Ben Pfaff in
10214 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
10216 * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
10217 * doc/autoconf.texi (Special Chars in Variables): New section.
10218 (Preset Output Variables): Warn about special chars in CPPFLAGS.
10219 (Installation Directory Variables): Quote $(datadir) better.
10220 (Limitations of Builtins): Describe some of eval's trickiness.
10222 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
10223 * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
10224 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
10225 in front of every arg, not just trailing args. Quote apostrophes.
10226 (_AC_EVAL_ECHO): New macro.
10227 (_AC_EVAL, AC_EVAL_STDERR): Use it. Quote arg of eval.
10228 (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
10230 (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
10231 exposed by quoting of eval argument. Put the command on line line
10233 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
10234 (_AC_PATH_X, AC_PATH_X): Quote more safely.
10235 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
10236 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
10237 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
10238 Handle special chars in prefix, ac_srcdir, ac_aux_dir.
10239 Use eval more safely.
10240 (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
10241 * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
10243 * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
10244 lines, exposed by quoting of eval argument.
10246 2006-05-26 Stepan Kasal <kasal@ucw.cz>
10247 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10249 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
10250 initialization of `ac_cv_exeext', do not override it if it was
10251 already set, unless it was set to `no', for compatibility with
10252 Autoconf-2.13, and comment this.
10253 Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
10254 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
10255 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
10256 * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
10257 Document that this test may be overridden by setting
10260 2006-05-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10262 Revert these two patches:
10264 2006-04-06 Eric Blake <ebb9@byu.net>
10265 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
10266 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
10269 2006-04-01 Stepan Kasal <kasal@ucw.cz>
10270 Clean up _AC_COMPILER_EXEEXT* macros.
10271 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
10272 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
10273 ac_file to the name of the default output file and call
10274 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
10275 initial `rm' of the candidate files...
10276 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
10277 the same list in subsequent `rm' calls, and for the temporary
10278 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
10279 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
10280 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
10281 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
10282 no longer needed) by libtool. Make it a cache check.
10283 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
10284 copied here by mistake.
10285 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
10286 _AC_COMPILER_EXEEXT.
10287 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
10288 _AC_COMPILER_OBJEXT directly.
10289 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
10291 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10293 * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
10294 Fix description of how the buggy `sed' works.
10296 2006-05-25 Noah Misch <noah@cs.caltech.edu>
10298 Sync from Automake:
10300 * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
10301 ENOLCK. Only mention `make -j' when applicable. Only raise
10302 fatal errors when `make -j' is involved. Improve error message.
10304 2006-05-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10306 * doc/autoconf.texi (Here-Documents): We now know more about
10307 the variable expansion in here documents bug.
10308 Thanks to Tim Rice and Stepan Kasal.
10310 * doc/autoconf.texi (Making testsuite Scripts): Add an example
10311 how to use TESTSUITEFLAGS. Suggested by Eric Blake.
10313 2006-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10315 * tests/autotest.at (Multiline command from M4 expansion):
10316 No failure to be expected if the shell quotes newlines in
10317 commands in the `set -x' output. Report by Tim Rice.
10320 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
10322 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
10323 expansion in the here-documents used by config.status, as that
10324 runs afoul of the Korn shell version M-12/28/93d bug described in
10325 the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
10326 fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
10327 <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
10329 2006-05-23 Jim Meyering <jim@meyering.net>
10331 * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10332 Fix typo introduced with 2006-04-02 change. It reversed the sense
10335 2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
10337 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
10338 ac_dB slightly, to save bytes in the script.
10339 Max out at 50 lines, rather than 96; this is more likely
10340 (though not guaranteed) to avoid obscure 'sed' failures.
10342 2006-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10344 * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
10345 `tr -d -' as bad option argument. Work around this by deleting
10346 an unrelated character.
10347 Report by Tim Rice <tim@multitalents.net>.
10349 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>,
10350 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
10351 Stepan Kasal <kasal@ucw.cz>
10353 * doc/autoconf.texi (Particular Programs): Do not promise that
10354 we always prefer the GNU version of the program, and that we
10355 search according to PATH; both rules can have exceptions.
10356 Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
10357 AC_PROG_SED. Move descriptions of limitations
10358 to the Limitations of Usual Tools section.
10359 (Limitations of Usual Tools) <sed>: Mention script length
10360 limitations with Solaris /usr/ucb/sed.
10361 <grep>: Fix wording for empty alternative. Mention that -c and
10362 -l should not be combined, and that -E and -F should not be
10365 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
10366 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10368 * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
10369 limits in Solaris 8 /usr/ucb/sed by testing a long script.
10371 2006-05-22 Stepan Kasal <kasal@ucw.cz>
10373 * doc/autoconf.texi (Defining Symbols): Literal parameter of
10374 AC_DEFINE is now passed to m4_pattern_allow.
10375 * NEWS: Mention that; likewise for AC_SUBST.
10376 * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
10377 the parameter to m4_pattern_allow.
10378 * tests/tools.at: Add a check for that.
10380 2006-05-22 Stepan Kasal <kasal@ucw.cz>
10382 * lib/autoconf/status.m4: Fix typos.
10384 2006-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10386 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
10387 only the files that this macro generates.
10389 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
10391 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
10392 the HP-UX sed limitation of 99 commands, labels do not count.
10393 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
10395 (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
10397 2006-05-21 Paul Eggert <eggert@cs.ucla.edu>
10399 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
10400 Import the following fix from coreutils:
10402 2006-01-13 Jim Meyering <jim@meyering.net>
10404 Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
10405 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
10406 not double-quote uses of that variable, to accommodate the rare
10407 case in which getmntent is available in none of the libraries
10408 checked. This happens at least on FreeBSD 5.0.
10410 2006-05-20 Paul Eggert <eggert@cs.ucla.edu>
10412 * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
10413 ac_config_guess, ac_config_sub, and ac_configure, since evidently
10414 some other programs unwisely rely on these undocumented vars.
10415 But put in warning comments about them.
10416 Problem reported by Ralf Wildenhues in
10417 <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
10418 * NEWS: Document that these variables are intended to go away.
10420 2006-05-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10422 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
10423 and set the language to C++ (analogous to the equivalent Fortran
10426 * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
10427 * doc/autoconf.texi (C++ Compiler): Document it.
10428 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
10431 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
10433 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
10434 that caused config.status to generate 100-command sed scripts; the
10435 portable limit is 99.
10437 2006-05-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10439 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
10440 variable `ac_d' instead of `d' to avoid infringing namespace.
10441 Report by Ralf Menzel.
10443 2006-05-18 Paul Eggert <eggert@cs.ucla.edu>
10445 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
10446 $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
10447 * tests/tools.at (autoconf: subdirectories): New test, taken from
10448 the corresponding problem report by Ralf Wildenhues in:
10449 http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
10451 * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
10452 Quote some uses of shell variables if they might suffer unexpected
10453 globbing. This doesn't fix all instances of quoting problems that
10454 I found, just the easy ones that look safe.
10455 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
10456 (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
10457 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
10458 (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
10459 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
10460 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
10461 * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
10463 * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
10464 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
10466 2006-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10468 * bin/autoreconf.in ($help): Reword according to the manual.
10469 Suggested by Olly Betts.
10471 2006-05-17 Olly Betts <olly@survex.com> (tiny change)
10472 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10474 * bin/autoreconf.in: Pass the directory argument to
10475 `require_configure_ac'. Fix comment.
10476 * tests/torture.at (Configuring subdirectories): Expose this.
10477 Reported by Olly Betts.
10479 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10481 * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
10482 lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
10483 Automake as follows:
10485 * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
10486 `$configure_in' instead of `configure.in', to preserve
10487 directory component.
10489 2006-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10491 * config/config.guess, config/config.sub, config/texinfo.tex,
10492 doc/make-stds.texi, doc/standards.texi: Sync from upstream.
10494 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
10496 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
10497 test for C99 conformance; (bool) 0.5 is an integer constant
10498 expression, but (bool) -0.5 is not. Problem reported by Fedor
10499 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
10501 2006-05-13 Paul Eggert <eggert@cs.ucla.edu>
10503 * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
10504 sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
10505 Warn about obsolete install-sh files. Remove stray sentence
10506 fragment and fix cross reference.
10507 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
10508 install -d; this undoes the 2006-05-10 change.
10509 (MKDIR_P): Mark with AN_MAKEVAR.
10510 (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
10511 that we don't require $INSTALL to be thread-safe. Move comments
10512 out of generated code. Require AC_CONFIG_AUX_DIR_DEFAULT instead
10513 of AC_PROG_INSTALL. Output a message saying that we're checking
10514 mkdir -p. Set MKDIR_P rather than mkdir_p. Do special magic for
10515 MKDIR_P instead of AC_SUBST.
10516 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
10517 Special magic for MKDIR_P, too.
10518 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
10520 * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
10522 2006-05-11 Paul Eggert <eggert@cs.ucla.edu>
10524 Sync from Automake, as follows:
10526 2006-05-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10527 * config/install-sh: Initialize IFS, so field splitting isn't
10529 * config/mkinstalldirs: Likewise.
10530 * config/missing: Remove superfluous quotes. Replace all uses of
10531 `[' by `test', for consistency, and for..
10532 * config/missing (sed_minuso, sed_output): New variables.
10533 (autom4te, help2man, makeinfo): Use them. Unifies detection of
10534 `-o FILE', `--output FILE', `--output=FILE', stricter regex.
10535 Fixes `missing' to detect `--output' for help2man. Fixes
10536 PR automake/483. Report by Dennis J. Linse.
10537 (autom4te): Document in `missing --help'.
10539 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
10541 * NEWS: New macro AC_PROG_MKDIR_P. AS_MKDIR_P is now more robust.
10542 * config/install-sh: Don't use 'path' to talk about file names,
10543 as per GNU coding standards. Close a race condition reported by Ralf
10544 Wildenhues and Stepan Kasal. There is still a race condition
10545 on hosts that predate Posix 1003.1-1992, but we can't help this.
10546 Don't mishandle weird characters like space on pre-Posix hosts.
10547 Invoke mkdir at most once per dir arg on pre-Posix hosts.
10548 * doc/autoconf.texi (Programming in M4sh): Cross-reference to
10549 AC_PROG_MKDIR_P from AS_MKDIR_P.
10550 (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
10551 from mkdir. Mention that Autoconf 2.60 install-sh is safe but
10552 earlier editions are not (including Automake 1.8.3).
10553 Do not suggest mkinstalldirs for thread-safety.
10554 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
10555 that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
10556 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
10557 presence of special characters and race conditions.
10558 * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
10559 in Autoconf's name space.
10561 2006-05-10 Bruno Haible <bruno@clisp.org>
10562 and Paul Eggert <eggert@cs.ucla.edu>
10564 * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
10565 from Automake with minor changes.
10566 * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
10568 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
10570 * config/install-sh: Update to Automake CVS version, as follows:
10571 2006-04-25 Stepan Kasal <kasal@ucw.cz>
10572 * lib/install-sh: Simplify the expr implementation of dirname.
10573 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
10574 * lib/install-sh: Handle --, and diagnose unknown options.
10576 2006-05-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10578 * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
10579 `./autom4te' to create `./testsuite', since the `all' target
10580 will ensure its presence, but `installcheck' should not create
10581 the uninstalled wrappers.
10583 * tests/torture.at (Unusual Automake input files): Skip if we
10584 detect automake < 1.8.
10586 2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10588 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
10589 is set to `no', then that overrides and sets ac_cv_prog_cc_c89
10590 and ac_cv_prog_cc_c99 to `no', for backward compatibility.
10593 2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10595 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
10596 munge (multiple) white space and other oddities.
10597 * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
10598 single quotes in variable assignment.
10599 (AC_ARG_VAR, configure invocation): Adjust tests to expose this
10600 and similar failures by adding multiple spaces, tabs, and other
10601 special characters.
10602 Report and different test suggested by Francesco Romani
10603 <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
10605 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
10606 single quotes, we only need to search for single quotes; this
10607 both simplifies the search pattern, and makes us less
10608 susceptible to `echo' variations for arguments not containing
10610 (_AC_ARG_VAR_VALIDATE): Likewise.
10612 2006-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10614 * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
10615 `$*' and IFS concatenation issue with traditional shells and
10616 bash-2.04. Report by Seanster@Seanster.com.
10618 2006-05-03 Bruno Haible <bruno@clisp.org>
10620 * doc/autoconf.texi (Limitations of Usual Tools): Identify more
10621 precisely which Mac OS X versions have the od problem.
10623 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10625 * doc/autoconf.texi: Use @option systematically.
10627 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
10628 and Bruno Haible <bruno@clisp.org>
10630 * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
10632 (Integer Overflow): Mention the special case of integer division
10635 2006-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10637 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
10638 traditional shells like the Solaris one that do not use the
10639 first IFS character for assembling `$*'.
10640 Prompted by a related report from autoconf_bug@nro.ca.
10642 2006-05-01 Paul Eggert <eggert@cs.ucla.edu>
10643 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10645 * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
10646 Mention more problems with the -e option.
10648 2006-04-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10651 * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
10653 * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
10654 in URLs to improve DVI formatted output (requires texinfo 4.6).
10655 (System Services, Systemology, Shellology): Likewise.
10656 (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
10659 * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
10661 (Runtime): Fix macro argument names to match description:
10662 `action-if-found' -> `action-if-true' and similarly.
10663 (Obsolete Macros): Likewise.
10664 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
10665 (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
10666 (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
10668 2006-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10670 * doc/autoconf.texi (Limitations of Make): Clean up markup.
10673 * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
10676 2006-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10678 * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
10679 /bin/sh set unsorted output.
10680 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
10681 * tests/local.at: Likewise.
10683 2006-04-26 Paul Eggert <eggert@cs.ucla.edu>
10685 * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
10686 (Integer Overflow, Null Pointers, Buffer Overruns):
10687 (Floating Point Portability, Exiting Portably): New sections.
10688 (Writing Test Programs): Fix some langauge. Recommend exiting
10689 with status 1, not merely nonzero. Clarify exit declaration.
10690 (Run Time): Move C exit status stuff to new Exiting Portably section.
10691 (Systemology): Mention Posix and levenez. Update v7 reference.
10692 (Portable Shell): Mention the Posix shell.
10694 2006-04-25 Stepan Kasal <kasal@ucw.cz>
10696 * bin/autoconf.as (me): Replace by as_me.
10698 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
10700 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
10701 since as_me isn't set yet.
10703 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
10705 Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
10706 a few minor bugs in this area.
10708 * doc/autoconf.texi (Programming in M4sh): Comment out the
10709 documentation of AS_BASENAME, for now.
10710 (Shell Substitutions): Do not use AS_DIRNAME in an example.
10711 (Limitations of Builtins) <basename>: Do not refer to
10713 * bin/autoconf.as (me): Don't use AS_BASENAME.
10714 (dir): Remove the unused variable.
10715 * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
10716 AS_DETECT_REQUIRED. All uses changed.
10717 (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
10719 (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
10720 (AS_BASENAME): Use "basename --" to protect against leading "-".
10721 (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR. All uses changed.
10722 (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED. All uses changed.
10723 (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
10724 (_AS_DIRNAME_PREPARE): Likewise.
10725 (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR. All uses changed.
10726 (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED. All uses changed.
10727 (AS_DIRNAME): Use "dirname --".
10729 2006-04-23 Paul Eggert <eggert@cs.ucla.edu>
10731 * doc/autoconf.texi (Runtime): Renamed from "Run Time". All uses
10732 of "run time" and "run-time" changed to "runtime", for consistency.
10733 * lib/autoconf/fortran.m4: Likewise (in comment).
10734 * lib/autoconf/functions.m4: Likewise.
10735 * lib/autoconf/general.m4: Likewise.
10736 * lib/autoconf/headers.m4: Likewise.
10738 * doc/autoconf.texi (Run Time): Document the exit status situation
10739 with more accuracy and detail.
10741 2006-04-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10743 * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
10744 Archive is not officially `GNU' any more. Update URL.
10745 (Defining Directories): Likewise
10746 * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
10748 2006-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10750 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
10751 newline from the `trap' code to finish `config.log'; the NetBSD
10752 /bin/sh resets the exit status after an empty command, as
10753 documented in doc/autoconf.texi.
10754 Reported by Dalibor Topic <robilad@kaffe.org>.
10756 2006-04-19 Paul Eggert <eggert@cs.ucla.edu>
10758 * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
10759 Suggested by Bruno Haible.
10761 2006-04-18 Paul Eggert <eggert@cs.ucla.edu>
10763 * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
10764 some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
10765 Instead, just list the shells that we know work.
10766 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg. All uses
10767 changed. Be more cautious about the _cv_ variable.
10768 * tests/tools.at (Syntax of the shell scripts): Check the
10769 _cv_ variable once, at first, to avoid an internal autoconf error
10770 when sh -n does not work.
10772 2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10774 * lib/Autom4te/FileUtils.pm: Sync from Automake.
10776 2006-04-16 Paul Eggert <eggert@cs.ucla.edu>
10778 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
10779 use ">&-" since we're only 99.999% sure that this is portable,
10780 and since the MinGW bug is fixed in a different way.
10781 * lib/autotest/general.m4 (AT_INIT): Likewise.
10783 2006-04-16 Stepan Kasal <kasal@ucw.cz>
10785 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
10786 before opening config.log, to avoid hitting a bug on MinGW.
10788 2006-04-14 Paul Eggert <eggert@cs.ucla.edu>
10790 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
10791 AS_MESSAGE_LOG_FD before reopening it onto the log file.
10792 This works around a MinGW bug reported by Eric Paire.
10793 Make sure that all writes to the log file append to it,
10794 rather than possibly losing data.
10795 * lib/autotest/general.m4 (AT_INIT): Likewise.
10797 2006-04-14 Stepan Kasal <kasal@ucw.cz>
10799 * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
10802 2006-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10806 * configure.ac (AC_INIT): Bump to 2.59d.
10808 2006-04-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10812 * Makefile.maint (news-date-check): Do not require a leading `*'
10813 before the release date in NEWS.
10815 2006-04-12 Stepan Kasal <kasal@ucw.cz>
10816 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10818 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
10819 the instantiated file do not contain the string 'datarootdir'
10820 but contain @datadir@, @docdir@, @infodir@, @localedir@, or
10821 @mandir@, replace the reference '${datarootdir}' by the value.
10822 * tests/torture.at (datarootdir workaround): New test.
10823 * NEWS: Advertise this temporary fixup.
10824 Based on a patch by Bruno Haible, reported and analyzed by
10825 Paul Eggert and Noah Misch.
10827 2006-04-12 Eric Blake <ebb9@byu.net>
10829 * tests/autotest.at (Debugging a failed test): Fix comment.
10831 2006-04-12 Stepan Kasal <kasal@ucw.cz>
10833 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
10834 all the changes since 2006-04-07.
10836 2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10838 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
10839 succeeded, but `ln -s file dir' failed, take care to remove the
10840 leftover target before the next test, to prevent its spurious
10841 failure; also make sure `ln file dir' works before selecting it.
10842 Thanks to Keith Marshall for pointing this out.
10845 * lib/autotest/general.m4 (AT_INIT): Store quoted variable
10846 assignments in `at_debug_args', so that we put them correctly
10847 in the `run' script.
10848 * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
10849 Reported by Eric Blake.
10851 2006-04-11 Eric Blake <ebb9@byu.net>
10853 * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
10854 top-level tests after micro-suite has been run. Used in...
10855 (Debugging a successful test, Debugging script and environment),
10856 (Debugging a failed test): ...these new tests. The first of these
10858 * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
10859 macro, split out from...
10860 (AT_INIT): ...here, so that using -d also generates a run script.
10861 Document that -d inhibits top-level logging.
10862 * doc/autoconf.texi (testsuite Invocation): Document that -d only
10863 inhibits top-level logging; debug scripts are created.
10865 * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
10867 * tests/autotest.at (Empty test, Empty check): New test to check it.
10869 * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
10872 2006-04-10 Stepan Kasal <kasal@ucw.cz>
10874 * tests/mktests.sh: Use "trap '' 0", not "trap 0". Do not touch
10875 the files if a problem appears. Make the empty *.at files
10876 read-only, too. Proposed by Ralf Wildenhues.
10878 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10880 * config/Makefile.am: Add comment to force updated Makefile.in.
10882 * lib/freeze.mk: Fix typo in comment. Unlike the last, white
10883 space only patch to this file, this patch causes the Makefile.in
10884 files that include freeze.mk to be updated, and thus have a
10885 newer time stamp again, which in turn makes a pristine CVS
10886 checkout have correct time stamps.
10888 * Makefile.maint (cvs-sv): New macro, to be used..
10889 (config.guess-url_prefix, config.sub-url_prefix)
10890 (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
10891 point to CVS text checkout of Gnulib files.
10892 (copyright-check): Bump current year.
10893 (announcement): Do not hard-wire `./announce-gen'.
10894 (cvs-update): Propagate failures of `cvs' and `move-if-change'
10896 * Makefile.cfg (executable-update): Use `chmod a+x' instead of
10898 (wget_files): Update config.guess, config.sub, texinfo.tex by
10899 `wget-update', now that their URLs work again.
10901 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
10903 * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
10904 Problem noted by Paul D. Smith.
10906 2006-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10908 * doc/autoconf.texi: Remove unused words from word list.
10909 * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
10910 .x-sc_trailing_space: New files.
10912 * doc/standards.texi: Sync from gnulib.
10914 * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
10915 `LIBOBJDIR' as experimental.
10917 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
10918 with a target directory; it's internally implemented as `cp'
10919 anyway, but since Autoconf advertises the possibility to use
10920 a target directory when LN_S is `ln -s', we need to find out.
10921 Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
10922 analyzed by Keith Marshall <keith.marshall@total.com>.
10926 2006-04-10 Paul Eggert <eggert@cs.ucla.edu>
10928 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
10929 confdefs.h as-is. In general, if it has backslash-newline or the
10930 like, then it doesn't work either to sort or to remove empty
10933 2006-04-09 Stepan Kasal <kasal@ucw.cz>
10935 * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
10937 2006-04-09 Alexandre Duret-Lutz <adl@gnu.org>
10939 * lib/autom4te.in (Automake-preselections): Preselect
10942 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
10944 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
10945 apostrophe within a single-quoted string, as this is the usual
10946 tradition and is easier to read than '"'"'. Don't rely on the
10947 shell treating "$/" like '$/'. Use a more-consistent indenting
10948 style for the trap.
10950 2006-04-09 Eric Blake <ebb9@byu.net>
10952 * tests/autotest.at (Backquote command substitution),
10953 (Multiline backquote command substitution): Remove mistaken
10954 AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
10956 (Parenthetical command substitution, Multiline parenthetical
10957 command substitution): here.
10959 2006-04-08 Paul Eggert <eggert@cs.ucla.edu>
10961 Import macros from gnulib (often changing their name).
10963 * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
10964 New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
10965 AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
10966 AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
10967 AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
10968 AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
10969 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
10970 AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
10971 AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
10972 AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
10973 The manual mentions Gnulib more prominently.
10974 * doc/autoconf.texi (Gnulib): New node.
10975 (Pointers): Add Gnulib URL.
10976 (Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
10977 (Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
10979 (Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
10980 suggest a #define rather than a typedef for _Bool, and mention
10981 Gnulib rather than trying to substitute stdbool code.
10982 (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
10983 (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
10984 (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
10985 AC_STRUCT_DIRENT_D_TYPE.
10986 (Particular Types): Mention stdint.h and inttypes.h as standard
10988 Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
10989 AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
10990 AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
10991 AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
10992 AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
10993 (C Compiler): Move AC_C_LONG_DOUBLE to ...
10994 (Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
10995 AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
10996 (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
10997 (Coding Style). Don't mention m4_expand_once.
10998 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
10999 AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
11000 * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
11001 (AC_CHECK_FUNCS): Use it.
11002 (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
11003 (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
11004 * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
11005 * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
11006 (AC_HEADER_ASSERT): New macro.
11007 (AC_HEADER_STDBOOL): Don't assume "#error" works.
11008 Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
11009 Catch a bug in an HP-UX C compiler.
11010 * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
11011 * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
11012 (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
11013 (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
11014 (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
11015 (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
11018 * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
11019 use /^foo|bar$/, it does not mean /^(foo|bar)$/.
11021 2006-04-08 Stepan Kasal <kasal@ucw.cz>
11023 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
11024 of the warning introduced by the 2001-08-28 change.
11026 2006-04-08 Stepan Kasal <kasal@ucw.cz>,
11027 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11029 * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
11030 variables shall be overriden by the cache.
11031 * tests/torture.at (AC_ARG_VAR): Test also with a first value
11032 that contains braces.
11034 2006-04-07 Stepan Kasal <kasal@ucw.cz>
11036 Revert the patch from 2006-04-01 and only improve
11037 _AS_DETECT_BETTER_SHELL:
11039 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
11040 skip nonexistent directories.
11041 (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
11042 only shell candidates which exist.
11043 (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
11044 * lib/autotest/general.m4 (AT_INIT): No need to give three
11045 parameters to _AS_PATH_WALK.
11047 2006-04-07 Stepan Kasal <kasal@ucw.cz>,
11048 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11050 * bin/autoupdate.in (handle_autoconf_patches): Change the way we
11051 distinguish m4sugar macros.
11052 * tests/tools.at (autoupdating with aclocal and m4_include):
11053 New test. Bug reported by Gary V. Vaughan <gary@gnu.org>,
11054 test case by Noah Misch <noah@cs.caltech.edu>.
11056 2006-04-07 Stepan Kasal <kasal@ucw.cz>
11058 Revert my change from 2006-03-17, in other words:
11059 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
11061 (AS_SHELL_SANITIZE): Remove DUALCASE=1.
11062 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
11065 2006-04-07 Eric Blake <ebb9@byu.net>
11067 * doc/autoconf.texi (Programming in M4sh): Document that
11068 AS_MKDIR_P exits the script on failure.
11069 * lib/autotest/general.m4: Remove redundant AS_ERROR.
11071 2006-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11073 * config/elisp-comp, config/install-sh, config/mdate-sh,
11074 config/missing, config/mkinstalldirs: Sync from Automake.
11076 * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
11079 * doc/make-stds.texi: Sync from gnulib.
11081 2006-04-06 Eric Blake <ebb9@byu.net>
11083 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
11084 check, s/ac_exeext/ac_cv_exeext/. Fixes regression introduced
11087 2006-04-06 Stepan Kasal <kasal@ucw.cz>,
11088 Eric Blake <ebb9@byu.net>,
11089 Paul Eggert <eggert@cs.ucla.edu>,
11090 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11092 * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
11093 whether `set' quotes correctly: redirect stderr of the tested
11094 `set', and use a subshell, for Ultrix; use `sed' instead of
11095 `grep' for zsh `set' which may write binary output; match only
11096 at the beginning of a line, to avoid false positives.
11097 In order to avoid false positives by unrelated variables with
11098 multiline content, put the dump algorithm in a subshell and
11099 unset all variables containing newlines (except some which are
11100 special to the shell). Warn about cache variables that are
11103 2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11105 * config/config.guess, config/config.sub, config/texinfo.tex:
11106 Sync from upstream.
11108 * tests/mktests.sh: Reword comments.
11110 * tests/mktests.sh: Only skip internal macros starting with
11111 `_AC_' or `__AC_'. Noted by Stepan Kasal.
11112 Update exclusion lists for the test suite to this end:
11113 (AC_ARG_VAR): Do test this now.
11114 (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
11115 (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
11116 (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
11117 (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
11119 * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
11120 shell issue with double-quoted command substitutions of native
11122 Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
11125 * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
11126 no file matches the glob, discard the warning, set `nullglob'.
11127 (syntax-check): Likewise.
11128 (sc_cast_of_x_alloc_return_value): Likewise.
11129 (sc_cast_of_alloca_return_value, sc_error_exit_success)
11130 (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
11131 (m4-check): Likewise.
11132 (sc_system_h_headers): Do not print rule on execution.
11133 (sc_tight_scope): Do not fail for non-existing `src' directory.
11134 (sc_changelog): Skip the Copyright footer.
11135 * lib/autoconf/lang.m4: Remove trailing space.
11137 * lib/autoconf/status.m4: More replacements to
11138 <tab><space> where this makes sense.
11140 2006-04-06 Stepan Kasal <kasal@ucw.cz>
11142 * tests/Makefile.am (maintainer-check-posix):
11143 s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
11145 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
11146 ac_config_<foo>s again, sometimes normalized, sometimes not.
11147 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
11148 (AC_CONFIG_COMMANDS): Do not do so here.
11149 (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
11150 and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
11151 2005-07-25 rewrite. Noticed by Noah Misch.
11153 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
11154 _AC_PRESERVE_HELP_ORDER, ...
11155 (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
11157 * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
11158 inside m4_expand_once; it is redundant.
11160 * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
11161 for --help from Cygnus `configure.'
11163 2006-04-06 Paul Eggert <eggert@cs.ucla.edu>
11165 * doc/autoconf.texi (C Compiler): Warn about #error. Follows up
11166 on a patch proposed by Ralf Wildenhues.
11168 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
11170 * lib/autoconf/status.m4: Replace <space>''<tab> with
11171 <tab><space> where this makes sense.
11173 2006-04-05 Howard Chu <hyc@highlandsun.com> (trivial change)
11174 Noah Misch <noah@cs.caltech.edu>
11176 * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
11177 (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
11178 * doc/autoconf.texi (Help Formatting): New node.
11179 * NEWS: Announce AC_PRESERVE_HELP_ORDER.
11181 2006-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11183 * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
11184 lib/autoconf/specific.m4, lib/autoconf/status.m4,
11185 lib/autoconf/types.m4, lib/autotest/general.m4,
11186 tests/mktests.sh, tests/torture.at: White space cleanup:
11187 remove some SPACE before TAB, or add quoting ('' or @&t@).
11189 * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
11191 * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
11193 2006-04-05 Eric Blake <ebb9@byu.net>
11195 * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
11196 empty test suite works.
11197 * tests/autotest.at (Empty test suite): Remove xfail.
11199 2006-04-05 Noah Misch <noah@cs.caltech.edu>
11201 * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
11202 TAGS to ac_config_<foo>s.
11203 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
11204 (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
11205 normalizing it, consistent it with previous releases.
11206 * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
11208 2006-04-05 Paul Eggert <eggert@cs.ucla.edu>
11210 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
11211 Use simplified args that Eric Blake originally suggested.
11213 2006-04-04 Paul Eggert <eggert@cs.ucla.edu>
11215 * tests/mktests.sh: Don't use 'cat'; just read the files directly.
11216 Prefer 'sort -u' to 'sort | uniq'. Filter data before sorting it.
11217 Use 'comm' rather than N instances of grep; this also fixes a bug
11218 whereby substrings were incorrectly matched, causing us to not
11219 generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
11220 (exclude_list): Exclude empty macros.
11221 (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
11223 Use awk rather than grep -E or egrep, to avoid
11224 portability problems with regular expressions containing newlines.
11225 (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
11226 Switch from grep to awk syntax.
11227 (ac_exclude_script): Renamed from ac_exclude_egrep.
11228 (au_exclude_script): Renamed from au_exclude_egrep.
11230 2006-04-04 Noah Misch <noah@cs.caltech.edu>
11232 * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
11233 a subdirectory subject to Cygnus `configure'.
11234 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
11236 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
11237 report request when we have no AC_PACKAGE_BUGREPORT.
11239 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11243 * tests/mktests.sh: Update copyright year in the header of the
11246 * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
11247 (AC_C_RESTRICT): Likewise. Furthermore, add a function with a
11248 typedef'ed restricted pointer, to catch a compiler bug on
11249 HP-UX 11.x, and fix warnings so it passes with -Werror.
11250 (_AC_PROG_CC_C99): Likewise.
11251 Reported by Albert Chin <china@thewrittenword.com>.
11252 * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
11254 2006-04-03 Noah Misch <noah@cs.caltech.edu>
11256 * bin/autoscan.in (subdirs): New global.
11257 (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
11258 (output): Emit AC_CONFIG_SUBDIRS as needed.
11259 * tests/autoscan.at (autoscan): Remove XFAIL.
11261 2006-04-03 Noah Misch <noah@cs.caltech.edu>
11263 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
11265 2006-04-03 Eric Blake <ebb9@byu.net>
11267 * THANKS: Add myself.
11269 2006-04-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11271 * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
11272 to log, point to testsuite output tree.
11274 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
11276 * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
11277 * doc/autoconf.texi (Function Portability): Mention that C++
11278 has trouble with 'exit'.
11279 (Guidelines): Test programs shouldn't use 'exit'.
11280 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
11281 Remove; all uses removed.
11282 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
11283 Return from 'main' instead of calling 'exit'.
11284 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
11285 (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
11286 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
11287 (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
11288 (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
11289 (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
11290 (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
11291 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
11292 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11293 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
11294 * tests/compile.at: Likewise.
11296 2006-04-02 Pavel Roskin <proski@gnu.org>
11298 * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
11300 2006-04-01 Stepan Kasal <kasal@ucw.cz>
11302 Clean up _AC_COMPILER_EXEEXT* macros.
11304 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
11305 detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
11306 ac_file to the name of the default output file and call
11307 _AC_COMPILER_EXEEXT_WORKS. Move the definition of ac_files and the
11308 initial `rm' of the candidate files...
11309 (_AC_COMPILER_EXEEXT): ... here and simplify them. Moreover, use
11310 the same list in subsequent `rm' calls, and for the temporary
11311 redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
11312 and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
11313 (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
11314 (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
11315 no longer needed) by libtool. Make it a cache check.
11316 (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
11317 copied here by mistake.
11318 (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
11319 _AC_COMPILER_EXEEXT.
11320 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
11321 _AC_COMPILER_OBJEXT directly.
11322 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
11324 2006-04-01 Stepan Kasal <kasal@ucw.cz>
11326 * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
11327 (AS_DIRNAME): Use it.
11328 (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
11330 * tests/*.at: Remove the generated ones.
11332 2006-04-01 Stepan Kasal <kasal@ucw.cz>
11334 * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
11336 2006-04-01 Eric Blake <ebb9@byu.net>
11338 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
11339 directories, unless optional third argument supplied.
11340 (AS_UNAME): Don't optimize PATH walk.
11342 * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
11344 2006-04-01 Eric Blake <ebb9@byu.net>
11345 and Stepan Kasal <kasal@ucw.cz>
11347 * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
11348 and fix some typos.
11350 2006-04-01 Noah Misch <noah@cs.caltech.edu>
11352 * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
11353 Autoconf version number despite a zero- or one-argument AC_INIT.
11355 * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
11357 * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
11358 * doc/autoconf.texi (autoreconf Invocation): Document it.
11360 * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
11361 Append LocalWords so ispell-buffer passes cleanly. Spelling fixes.
11363 2006-04-01 Eric Blake <ebb9@byu.net>
11365 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
11366 * lib/autotest/general.m4: Be tolerant of existing directory when
11367 rm failed to remove it.
11369 2006-04-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11371 * bin/autoupdate.in: Redefine m4_location so that warnings print
11372 the correct lines of the input file by subtracting..
11373 (_au__first_line): ..this new definition.
11375 * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
11376 AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
11377 Remove stray newline in output.
11378 (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
11379 AC_DEFUN this for autoconf, including the obsoletion diagnose.
11380 Fixes autoupdating of code where the replacement output contains
11382 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
11383 * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
11384 (au_exclude_list): Add AC_LANG_SAVE.
11385 * tests/tools.at: Several new tests for all of this.
11386 * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
11388 The AC_LANG_SAVE issue was reported against Libtool by
11389 Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
11390 Kristian Kvilekval <kris@cs.ucsb.edu>.
11392 2006-04-01 Stepan Kasal <kasal@ucw.cz>
11394 * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
11395 switch all of them on and of when necessary. Fixes the bug when
11396 m4sugar macros (e.g., m4_define) were expanded after the first
11397 automatic update (e.g., after AC_PREREQ or AC_INIT).
11399 2006-03-31 Paul Eggert <eggert@cs.ucla.edu>
11401 * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
11402 of AS_BASENAME and AS_DIRNAME. Reported by Stepan Kasal.
11404 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
11405 correctly. Problem reported by Eric Blake.
11406 (_AS_EXPR_PREPARE): Detect Tru64 expr bug. Problem reported by
11409 2006-03-30 Paul Eggert <eggert@cs.ucla.edu>
11411 * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
11412 Tighten up the basename/dirname wording.
11414 2006-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11416 * Makefile.maint (sc_texi_notab): New check: do not use TABs
11417 in texinfo files outside of verbatim environments.
11418 (syntax-check-rules): Update.
11419 * doc/autoconf.texi (Configuration Headers): Conform to it.
11421 2006-03-30 Chris Pickett <cpicke@cs.mcgill.ca> (tiny change)
11423 * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
11424 aclocal cannot be given on the command line.
11426 2006-03-29 Paul Eggert <eggert@cs.ucla.edu>
11428 * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
11429 Give an example for AS_DIRNAME instead of referring to Posix..
11430 (File System Conventions): Put discussion of // versus / here, and
11431 modernize it a bit.
11432 (Limitations of Usual Tools): Add basename. Remove verbiage
11433 after dirname, since it got moved to the above sections.
11434 All this was inspired by a patch proposed earlier by Eric Blake.
11436 2006-03-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11438 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
11439 `$0' to protect against spaces.
11440 * lib/autotest/general.m4 (AT_INIT): Likewise.
11441 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
11444 2006-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11446 * bin/autoscan.in: The value of find_configure_ac should be
11447 checked for existence, so we don't barf over a nonexisting
11448 configure.ac. Reported by Laurence Darby <ldarby@tuffmail.com>.
11450 2006-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11452 * bin/autoupdate.in: Fix some typos.
11454 2006-03-21 Stepan Kasal <kasal@ucw.cz>
11456 * doc/autoconf.texi (Installation Directory Variables): Fix typo.
11458 * lib/autoscan/autoscan.list: Refreshed.
11460 2006-03-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11462 * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
11463 and Erlang related variables.
11465 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
11466 (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
11467 (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
11468 (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
11469 (AC_LANG_BOOL_COMPILE_TRY(Objective C))
11470 (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
11471 (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
11472 (_AC_PROG_OBJC_G): New macros.
11473 (_AC_ARG_VAR_CPPFLAGS): Adjusted.
11474 * doc/autoconf.texi (Objective C Compiler): New node.
11475 (Preset Output Variables): Document OBJCFLAGS.
11476 (Language Choice): Document `Objective C' language.
11477 (Fortran Compiler): Fix typo.
11479 Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
11481 2006-03-20 Stepan Kasal <kasal@ucw.cz>
11483 * doc/autoconf.texi (Default Includes): Fix typo
11484 s/AC_HEADERS_STDC/AC_HEADER_STDC/
11485 (Limitations of Usual Tools): s/unwriteable/unwritable/
11486 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
11487 Fix typos in the comments.
11489 2006-03-17 Stepan Kasal <kasal@ucw.cz>
11491 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
11492 Factor out the warning to...
11493 (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
11494 * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
11495 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
11497 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
11498 case `ac_delim' when writing the sed script.
11500 * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
11501 moved DUALCASE=1 ...
11502 (AS_SHELL_SANITIZE): ... here.
11503 * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
11506 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
11508 (_AC_PATH_PROG): Store the result to VARIABLE.
11509 (AC_PATH_PROG): No need to set VARIABLE again.
11511 * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
11512 the first one is usual AT_CHECK_MACRO test, the second one checks
11513 that the same works when cross-compiling.
11514 * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
11515 (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
11517 2006-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11519 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
11520 the directory `/usr/bin/posix' in the shell search, to prefer
11521 the Posix shell not only in subsequent spawns as with `$BIN_SH'
11524 * doc/autoconf.texi (contents): To fix texi2html output, hide
11525 `@setcontentsaftertitlepage' for HTML.
11526 (Writing Autoconf Macros): Likewise, insert space after `@c'.
11527 (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
11530 2006-03-16 Stepan Kasal <kasal@ucw.cz>
11532 * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
11534 (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
11535 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
11536 why IFS is restored so late; thank you, Ralf, for reminding us.
11538 2006-03-15 Stepan Kasal <kasal@ucw.cz>
11540 * doc/autoconf.texi (Pretty Help Strings): No need to use cached
11541 variables in the examples.
11543 2006-03-14 Romain Lenglet <rlenglet@users.forge.objectweb.org>
11545 * doc/autoconf.texi (several sections): Cleaned up documentation for
11546 macros in erlang.m4.
11548 2006-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11550 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
11551 failure condition for `$(cmd)' style command substitutions.
11552 (Parenthetical command substitution, Multiline parenthetical
11553 command substitution): Use it.
11555 * doc/autoconf.texi (Special Shell Variables): Missing word.
11556 Reported by Keith Marshall <keith.marshall@total.com>.
11558 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
11559 IFS even in case of empty `$PATH'.
11561 2006-03-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11563 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
11564 `expr' away if there is nothing to do.
11565 < --keywords >: Simplify and robustify argument handling.
11566 Revert erroneous comment from 2005-08-23. Extend to allow
11567 keyword negation with `!'.
11568 Update help message. Remove broken code to prevent running
11569 tests multiple times.
11570 * doc/autoconf.texi (testsuite Invocation) < --keywords >:
11571 Update and fix the documentation accordingly.
11572 * tests/autotest.at (Keywords): Renamed to..
11573 (Keywords and ranges): .. this. Extended to make sure negated
11574 keywords, keywords taken from AT_SETUP arguments, and numeric
11575 test ranges work, and that matching is case-insensitive.
11577 2006-03-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11579 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
11580 allow to pass unnamed structs even in C++.
11581 (AC_CHECK_SIZEOF): Likewise.
11582 Also fix quoting error in `AC_MSG_FAILURE' arguments.
11583 * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
11584 struct): New tests for unnamed structs, each both native and
11587 * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
11588 a structure inside a cast, for C++ conformance.
11589 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
11590 Also fix quoting error in `AC_MSG_FAILURE' arguments.
11592 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
11593 nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
11594 trying to execute the command `no'.
11596 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
11597 m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
11600 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
11601 example. Do not emphasize `$%', it is hardly new and special.
11602 Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
11604 * doc/autoconf.texi (Limitations of Usual Tools): Document
11605 OpenBSD and traditional `grep' failure to handle multiple
11606 patterns separated by newlines.
11608 2006-03-10 Romain Lenglet <rlenglet@users.forge.objectweb.org>
11610 * doc/autoconf.texi (several sections): Add documentation for macros
11613 2006-03-10 Eric Blake <ebb9@byu.net>
11615 * doc/autoconf.texi (Obsolete Macros): Fix wording of
11618 2006-03-10 Paul Eggert <eggert@cs.ucla.edu>
11620 * doc/autoconf.texi: Use @acronym more consistently for acronyms
11621 like BSD, GPL, LGPL. Fix minor English typos.
11622 (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
11623 Mention that these macros are becoming obsolete.
11624 (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
11625 Use more modern terminology for which standard is what.
11626 (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
11628 (AC_PROG_CXX): Likewise.
11629 (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
11630 Remove obsolete discussion about how to port to K&R.
11631 (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
11632 the obsolescent AC_HEADER_STDC.
11633 (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
11636 2006-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11638 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
11639 Remove stdin redirection from /dev/null to allow pipe to work.
11641 2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
11643 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
11644 Require that /lib/cpp include stdio.h correctly. Solaris 10's
11645 doesn't. Problem reported by D'Arcy A MacIsaac and diagnosed by
11648 2006-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11650 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
11651 HP-UX sed is 99 commands, not 100.
11652 (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
11653 _AC_SUBST_FILES fragment. Separate `{' and `r' commands by
11654 newline for portability.
11655 * tests/torture.at (Torturing config.status): Also test 100
11656 AC_SUBST_FILE invocations. Fix test to actually verify the
11657 AC_CONFIG_FILES output.
11658 * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
11659 command, label, and read-file `r' limits. Unify HP-UX spelling.
11661 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
11663 ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
11665 (autoconfdir, $(AUTOCONF_FILES)): Likewise.
11666 * tests/mktests.sh: Small shell portability fixes.
11668 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11670 * doc/autoconf.texi (Caching Results): Fix the examples to use a
11671 recommended quoting style and discard unwanted output.
11673 2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
11675 * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
11676 (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
11677 cases, and to work around Tru64 expr bug.
11679 2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11681 * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
11682 expr bug that turns the result of a regex match into a number if
11685 2006-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11687 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
11688 HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
11689 in section `Specific Compiler Characteristics'.
11691 2006-03-04 Eric Blake <ebb9@byu.net>
11693 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
11696 2006-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11698 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
11699 order of variable initialization, so even the Solaris 2.6 shell
11700 can create a config header correctly. Fixes lots of test suite
11703 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11705 * doc/autoconf.texi (Text processing Macros): New node to
11706 document the m4sugar macros m4_re_escape, m4_tolower,
11707 m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
11709 2006-02-22 Paul Eggert <eggert@cs.ucla.edu>
11711 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
11712 XrmInitialize (0) -> XrmInitialize ().
11713 Reported by Toshio Kuratomi.
11715 2006-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11717 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
11718 test, as in `if tests; then cmd1; elif ...; else ...; fi'.
11719 * doc/autoconf.texi (Programming in M4sh): Adjusted.
11720 * tests/m4sh.at (AS_IF and AS_CASE): Test this. Also make sure
11721 both macros are defun'ed so that required macros are evaluated
11724 * doc/autoconf.texi (Prerequisite Macros): State more precisely
11725 where a required macro will be expanded.
11726 (Coding Style): Another reason not to use `m4_define'.
11728 2006-02-21 Eric Blake <ebb9@byu.net>
11730 * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
11732 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11734 * doc/autoconf.texi (Looping constructs): New node, to
11735 document m4_for, m4_foreach, m4_foreach_w, and mention
11736 obsolete AC_FOREACH.
11737 (Obsolete Macros): Document AC_FOREACH.
11738 * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
11739 (m4_for): Fix to never loop (almost) endlessly, work correctly
11740 with arithmetic expressions in arguments, a step of zero or
11741 non-integer multiple of the interval, and avoid integer
11743 * tests/m4sugar.at: New test for m4_for, m4_foreach, and
11746 2006-02-20 Romain Lenglet <rlenglet@users.forge.objectweb.org>
11748 Add basic support for Erlang, both for configuring Erlang/OTP
11749 tools, and Erlang as a conf test language.
11750 * lib/autoconf/erlang.m4: New file.
11751 * lib/autoconf/autoconf.m4: Add erlang.m4.
11752 * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
11753 * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
11754 * NEWS: Add short description of new macros.
11755 * THANKS: Add Romain Lenglet.
11757 2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11759 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
11760 native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
11762 2006-02-15 Eric Blake <ebb9@byu.net>
11764 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
11767 2006-02-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11769 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
11770 (_AS_CASE): Private helper macro.
11771 * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
11772 * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
11773 Fix syntax of AS_IF description
11774 (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
11775 for the AC_REQUIRE mess.
11776 * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
11779 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
11781 * doc/autoconf.texi: Minor style cleanup.
11782 Be consistent about spaces after commas.
11783 Insert [] where empty args look a bit funny.
11784 Fix some "i.e." and "e.g." usages.
11785 Try to avoid "X/Y" usages.
11786 Don't be pedantic about "ISO C99"; just say C99.
11787 Prefer GNU style for spaces in front of parens.
11788 (Function Portability): Comment about C89 versus C99
11789 signed integer division.
11790 (Particular Headers): Use current gnulib style for dirent
11793 2006-02-14 Stepan Kasal <kasal@ucw.cz>
11794 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11796 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
11797 macros without parameters.
11798 * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
11799 * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
11800 * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
11802 (autoupdate): Updated to match AU_ALIAS fix.
11804 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11805 and Paul Eggert <eggert@cs.ucla.edu>
11807 * doc/autoconf.texi (Programming in M4sh): Document
11808 AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
11810 2006-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11812 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
11813 (AS_BOURNE_COMPATIBLE): ..this.
11814 (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
11816 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
11818 * doc/install.texi (Defining Variables): Tighten up the
11819 CONFIG_SHELL wording.
11821 2006-02-12 Paul Eggert <eggert@cs.ucla.edu>
11822 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11824 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
11825 of (set -o) rather than testing whether (set -o posix) succeeds,
11826 to work around a bug in the AIX 5.3 shell. Problem originally
11827 reportd by Howard Chu for libtool.
11829 2006-02-10 J.T. Conklin <jtc@acorntoolworks.com>
11831 * doc/autoconf.texi (Running the Compiler, Running the Linker):
11832 Changes the macro arguments in summaries to match the
11835 2006-02-04 Stepan Kasal <kasal@ucw.cz>
11837 * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
11838 hint as ``a workaround for a bug.''
11840 2006-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11842 * bin/autoreconf.in: New option `--no-recursive'.
11843 Improve wording for subpackages a bit.
11844 * doc/autoconf.texi (autoreconf Invocation): Updated.
11847 * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
11848 in environment of `configure', not the command line.
11849 Reported by Howard Chu <hyc@highlandsun.com>.
11851 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
11853 * doc/autoconf.texi (Limitations of Builtins): Document the
11854 problem with "trap -".
11856 2006-01-23 Steven G. Johnson <stevenj@fftw.org>
11858 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
11859 (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
11860 messages to differentiate Fortran and Fortran 77 tests.
11861 (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
11862 AC_LANG_ASSERT, to allow use in mixed-language projects.
11864 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
11866 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
11867 FOO" to "defined (FOO)".
11868 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
11869 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
11870 * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
11871 * tests/tools.at (ifnames): Likewise.
11873 2006-01-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11875 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
11876 * lib/Autom4te/General.pm (mktmpdir): Likewise.
11877 (END): Improve error message a bit.
11878 Reported by Bruce Korb <bkorb@gnu.org>.
11880 2006-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11882 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
11883 `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
11885 2006-01-11 Stepan Kasal <kasal@ucw.cz>
11887 * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
11888 requires sys/stream.h. Reported by Oliver Kiddle.
11890 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11891 Stepan Kasal <kasal@ucw.cz>
11893 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
11894 before the removals of test dirs, use `find' to avoid modification
11895 of symlinked directories.
11897 2006-01-11 Steven G. Johnson <stevenj@alum.mit.edu>
11899 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
11900 Don't ignore the macro arguments.
11902 2006-01-11 David Thompson <dthompsn@vizsolutions.com>
11904 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
11905 declaration that works for MSVC.
11907 2006-01-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11909 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
11910 Add `*.map' and `.inf' for Green Hills compiler.
11911 Reported by Stefan Seefeld <stefan@codesourcery.com>.
11913 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
11914 correctly: pad with spaces after FIRST_PREFIX if necessary,
11915 and compute string lenghts with `m4_qlen' instead of `m4_len'.
11916 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
11917 * tests/m4sh.at (AS_HELP_STRING): Test extended.
11919 Reported by numerous people, numerous times.
11921 2006-01-05 Paul Eggert <eggert@cs.ucla.edu>
11923 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
11924 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
11925 * lib/autoconf/general.m4, lib/autoconf/status.m4:
11926 * lib/autotest/general.m4, tests/local.at:
11927 Update copyright year to 2006.
11929 * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
11931 * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
11932 for file names, again. Reported by Noah Misch.
11933 (Coding Style): Explain that s|a|b| is preferred for file names.
11934 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
11935 (AC_OUTPUT_MAKE_DEFS): Likewise.
11936 * lib/autotest/general.m4 (AT_INIT): Likewise.
11937 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
11938 * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
11940 Fix Posix-conformance bugs re use of { command in sed scripts,
11941 and improve the sed-related documentation a bit.
11942 * doc/autoconf.texi (Installation Directory Variables): Use
11943 our own style advice re 's,a,b,' versus 's|a|b|'. Use "Sed"
11944 rather than "sed" when talking about Sed in general.
11945 (Particular Programs): Likewise.
11946 (Coding Style): y is like s with respect to / and ,.
11947 (Limitations of Usual Tools): Document the weird restrictions
11948 that Posix has about { }. Use better quoting.
11949 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
11950 Rewrite to conform to Posix rules about { } in sed scripts.
11951 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
11952 * tests/foreign.at (Libtool): Likewise.
11953 * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
11954 Use our own style advice re 's,a,b,' versus 's|a|b|'.
11956 2006-01-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11958 * lib/autoconf/status.m4: Fix typo.
11960 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
11961 singly- or doubly-quoted arguments to `-cmdline', `-ignore',
11962 `-def', for the benefit of Portland `pgf90 -Mipa'.
11963 Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
11965 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11967 * doc/autoconf.texi: Update copyright (and other) dates to 2006.
11968 * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
11969 shell from zsh to bash.
11971 2005-12-31 Stepan Kasal <kasal@ucw.cz>
11973 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
11974 ":" caused problems on OS/2-EMX. Suggested by Andrew Belov.
11976 2005-12-29 Paul Eggert <eggert@cs.ucla.edu>
11978 * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
11979 parentheses in $(...). Problem reported by Eric Blake.
11981 2005-12-12 Paul Eggert <eggert@cs.ucla.edu>
11983 * doc/autoconf.texi (Limitations of Usual Tools):
11984 Mention which characters can be escaped with \ in portable regular
11985 expressions used in grep, sed, expr. Mention the leading ^ problem
11986 with expr. Clean up some confusing wording. Mention which
11987 grep options are portable.
11989 2005-12-09 Stepan Kasal <kasal@ucw.cz>
11991 * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
11993 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
11995 * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
11996 patch, noted by Ralf Wildenhues.
11998 2005-12-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12000 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
12001 posix' unconditionally, for pdksh in `native sh' emulation.
12003 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
12005 * doc/autoconf.texi (Shellology): Document eval $? problem
12007 (Limitations of Builtins): Likewise.
12009 2005-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12011 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
12012 CONFIG_SHELL in the environment of the configure rerun.
12013 * doc/autoconf.texi (Here-Documents, config.status Invocation):
12014 Suggest passing CONFIG_SHELL absolute, and in the environment
12015 rather than as option.
12017 2005-11-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12019 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
12020 Fix quoting of output line (triggered for many AC_SUBST_FILEs).
12021 Fix macro quoting. Fix output for n * 98 substituted variables.
12023 2005-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12025 * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
12026 `tmp' to avoid file removal race.
12028 2005-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12030 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
12031 ac_clean_files and LIBOBJS.
12033 2005-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12035 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
12036 Factor functionality to..
12037 (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
12038 `AC_SUBST($1)' in the public version.
12039 (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
12040 (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
12043 2005-11-01 Stepan Kasal <kasal@ucw.cz>
12045 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
12048 2005-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12050 * NEWS: Move AH_HEADER mention to right place.
12052 2005-10-27 Stepan Kasal <kasal@ucw.cz>
12054 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
12055 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12057 2005-10-25 Stepan Kasal <kasal@ucw.cz>
12059 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
12060 conftst2.$ac_objext.
12061 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12063 2005-10-24 Stepan Kasal <kasal@ucw.cz>
12065 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
12066 conftest.o, to see whether the compiler really obeys; rm the object
12067 file before and after the test and register it with ac_clean_files.
12068 * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
12070 2005-10-21 Stepan Kasal <kasal@ucw.cz>
12072 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
12073 the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
12074 code so that the most common case requires less forks.
12076 2005-10-20 Stepan Kasal <kasal@ucw.cz>
12078 * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
12079 not portable; thanks to Paul Eggert and Alexandre.
12081 * NEWS: Fix an old typo.
12083 2005-10-20 Jim Meyering <jim@meyering.net>
12085 * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
12086 the latter'', in two places.
12088 2005-10-19 Paul Eggert <eggert@cs.ucla.edu>
12090 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
12091 AC_LANG_PROGRAM, fixing a typo. Don't give details about
12092 the inner workings of AC_LANG_FUNC_LINK_TRY.
12093 * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
12094 AC_LANG_FUNC_LINK_TRY. This involves returning the value returned
12095 by the function rather than ignoring it.
12096 (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
12097 comparing its address. Intel's interprocedural optimization was
12098 outsmarting the old heuristic. Problem reported by
12101 2005-10-19 Stepan Kasal <kasal@ucw.cz>
12103 * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
12105 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
12107 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
12108 (m4_map, m4_map_sep): Use it. Handle the empty list correctly.
12110 2005-10-04 Stepan Kasal <kasal@ucw.cz>
12112 * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
12113 before removing it (chmod -R u+rwx); there are three instances of this.
12115 2005-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12116 Stepan Kasal <kasal@ucw.cz>
12118 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
12119 * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
12120 make its content writable before removing it. Remove an errorneous
12121 comment from the end, where the logs of the failed tests are copied
12122 to the main log file.
12124 2005-09-27 Stepan Kasal <kasal@ucw.cz>
12126 * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
12127 in case the computer is too quick. Double quote the configure.ac
12130 * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
12131 problems if the testsuite were running too fast.
12133 2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
12135 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
12136 and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
12137 (which belong to Xt, not X itself). See Debian bug 327655.
12138 * NEWS: Mention this.
12140 2005-09-07 Stepan Kasal <kasal@ucw.cz>
12142 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
12144 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12146 * config/move-if-change: Don't output "$2 is unchanged";
12147 suggested by Ben Elliston. Handle weird characters correctly.
12149 2005-09-06 Stepan Kasal <kasal@ucw.cz>
12151 * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
12152 calls, so that the final expansion of this macro is shorter.
12153 Create the conftest.$ac_ext outside the `for' loop, to speed the run.
12154 Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
12155 the cleanup there. Use AS_VAR_* macros, to be more general.
12156 * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
12158 * lib/autoconf/general.m4: Use AS_IF where appropriate.
12160 * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
12162 2005-09-01 Stepan Kasal <kasal@ucw.cz>
12164 * doc/autoconf.texi (Configuration Headers): Add an index entry
12167 2005-08-26 Pavel Roskin <proski@gnu.org>
12169 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
12170 XMKMF to locate xmkmf. Make XMKMF precious. Export CC when
12173 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
12175 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12176 The previous patch didn't work, so try a better one.
12178 2005-08-26 Stepan Kasal <kasal@ucw.cz>
12180 * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
12181 in the example. Reported by Bruno Haible.
12182 <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
12183 "if $undefined_var;" succeeds with my shell.
12185 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
12186 AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
12187 but change the m4_divert_text to m4_divert_once.
12189 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12191 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
12192 Work around bug in Solaris /usr/xpg4/bin/awk.
12193 The bug is present in at least Solaris 8 through 10.
12195 2005-08-24 Stepan Kasal <kasal@ucw.cz>
12197 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
12198 some evil values and relying on the fact that $* concatenates the
12199 parameters by the first character from IFS.
12201 2005-08-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
12202 Stepan Kasal <kasal@ucw.cz>
12204 * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
12205 first header appears, define AH_HEADER.
12206 * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
12207 Update limitations about when to call AC_CONFIG_HEADERS.
12208 (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
12209 parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
12210 that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
12211 ``Configuration Actions''; fix their index entries.
12213 * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
12214 options correctly. Process N-M as M-N if M is smaller than N.
12215 Process ranges correctly so that N-N will run only N.
12216 Sort and uniquify the tests that will be run. If there is more
12217 than one test, reinsert the banners for the tests.
12218 * tests/autotest.at (Keywords): Unmark XFAIL.
12220 2005-08-23 Stepan Kasal <kasal@ucw.cz>
12222 * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
12223 before passing the macro name to AH_TEMPLATE.
12225 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
12226 now opens log after option processing; in particular, --version
12227 and --help do not touch config.log.
12229 * Makefile.maint: Revert the change from 2005-08-12.
12231 2005-08-22 Stepan Kasal <kasal@ucw.cz>
12233 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
12235 (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
12237 2005-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12239 * doc/autoconf.texi (Using Autotest, testsuite Scripts)
12240 (Autotest Logs, Writing testsuite.at, testsuite Invocation):
12243 * doc/autoconf.texi (Defining Symbols, Changed Results):
12244 Prepend to LIBS, not append, in examples.
12246 2005-08-16 Stepan Kasal <kasal@ucw.cz>
12248 When building in place, set srcdir="."; suggested by Tim Van Holder.
12250 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
12251 build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
12252 (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
12253 * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
12254 does not mean "no --srcdir option".
12256 2005-08-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12258 * tests/autoscan.at (autoscan): New file.
12259 * tests/suite.at: Use it.
12260 * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
12261 Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
12263 * tests/autotest.at (Keywords): Test keywords combinations.
12265 2005-08-12 Stepan Kasal <kasal@ucw.cz>
12267 * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
12268 add "2>&1"; gzip 1.2.4 prints help on stderr.
12270 2005-07-27 Stepan Kasal <kasal@ucw.cz>
12272 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
12273 was pushdef'ed twice while popped only once. Push it only once.
12274 (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
12276 2005-07-26 Stepan Kasal <kasal@ucw.cz>
12278 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
12279 prefixed by mere "===", not "configure: === ".
12281 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
12283 * Makefile.maint: Update from Bison.
12285 * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
12286 "<tab>" in comment, so that the point is understandable.
12288 2005-07-25 Stepan Kasal <kasal@ucw.cz>
12290 Rewrite substantial part of lib/autoconf/status.m4.
12291 The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
12292 and CONFIG_COMMANDS are not processed in four separate loops.
12293 Instead, there is one main loop. This alows that the common code
12294 is expanded only once, thus config.status (and configure) is smaller.
12296 The registration mechnism in AC_CONFIG_FILES and cousins also changed;
12297 the AC_LIST_FILES and cousins macros are no longer used.
12299 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
12300 _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
12301 (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
12302 _AC_OUTPUT_COMMAND): ..., respectively. These macros no longer
12303 contain the initialization, nor the for loop, nor the associated
12304 commands; all these go to ...
12305 (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
12306 _AC_OUTPUT_CONFIG_STATUS.
12307 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
12308 Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
12309 (_AC_OUTPUT_FILE): The creation of the sed script ...
12310 (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
12311 (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
12312 _AC_OUTPUT_MAIN_LOOP.
12313 (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
12314 _AC_CONFIG_COMMANDS): Use ...
12315 (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
12316 (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
12317 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
12318 _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
12319 (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
12320 (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
12322 (_AC_CONFIG_UNIQUE): Update.
12323 (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
12324 Replaced by this ...
12325 (_AC_LIST_TAGS): ... new common macro.
12326 (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
12327 AC_LIST_COMMAND_COMMANDS): Replaced by this ...
12328 (_AC_LIST_TAG_COMMANDS): ... new common macro.
12329 (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
12330 this didn't belong to the `config commands' section.
12331 (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
12332 (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
12333 AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
12334 to the `config commands' section either.
12335 (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
12336 (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
12338 ... and many changes to the comments nearby.
12340 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
12341 set ac_subdirs_all='_AC_LIST_SUBDIRS'.
12342 * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
12343 AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
12344 (#define header templates): The comment at the top of the generated
12345 header now includes the name(s) of the source file(s).
12347 Several unrelated small changes:
12349 * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
12350 parameter to AC_DIAGNOSE.
12351 * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
12352 (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
12353 with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
12354 (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
12355 with AU::AC_OUTPUT.
12356 (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
12357 in AC_OUTPUT doesn't double-quote it either.
12358 * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
12361 2005-07-10 Stepan Kasal <kasal@ucw.cz>
12363 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
12364 versions of Portland Group compiler produce single- and double-quoted
12365 -cmdline argument. Reported by Steven G. Johnson <stevenj@fftw.org>
12366 and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
12368 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
12370 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
12371 This is a corrected version of yesterday's patch.
12373 2005-07-07 Stepan Kasal <kasal@ucw.cz>
12375 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
12376 path, too; insert a "===" to emphasize the line.
12378 * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
12379 ac_cv_build_alias to ac_build_alias.
12380 (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
12382 On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
12383 change eliminates it. Problem reported by Alexandre Duret-Lutz.
12384 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
12385 (AC_ARG_VAR): ... here.
12386 (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
12389 Keep a list of all precious variables and process them with one simple
12390 for loop, instead of expanding all commands, or, OTOH, complicated
12391 processing of output of "set".
12392 * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
12393 variable names in new macro...
12394 (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
12395 (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
12396 a loop to assign all ac_env_* and ac_cv_env_* variables.
12397 (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
12399 (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
12400 its value to shell variable ac_precious_vars and call
12401 _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
12402 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
12403 _AC_ARG_VAR_VALIDATE.
12405 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
12406 and the AC_SUBSTs ...
12407 (AC_INIT): ... here.
12409 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
12410 the ac_subst_files section in config.log.
12412 * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
12414 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
12416 * NEWS: New macro AC_C_TYPEOF.
12417 * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
12418 * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
12419 * tests/c.at (C keywords): Test AC_C_TYPEOF.
12421 Fix problems reported by Nicolas Joly.
12422 * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
12423 * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
12424 They are generated by the Tru64 v5.1B shell.
12426 2005-07-05 Stepan Kasal <kasal@ucw.cz>
12428 Fix my changes from 2005-07-01; reported by Noah Misch.
12429 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
12430 description, the macro now accepts only a single tag.
12431 (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
12433 Fix cases when the varsions of Autoconf and Autotest don't match.
12434 Reported by Noah Misch.
12435 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
12436 at_top_builddir, for compatibility with older autotest.
12437 * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
12438 is not set, use at_top_builddir, for compatibility with older
12439 versions of autoconf.
12441 2005-07-04 Paul Eggert <eggert@cs.ucla.edu>
12443 * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
12444 Problem reported by Patrick Welche.
12446 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
12448 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
12449 sed substitution command, so that we allow | in program prefixes
12450 and program suffixes. (& is a problem anyway; we're not fixing
12452 * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
12453 configure_input, top_builddir, srcdir, etc.
12454 * lib/autotest/general.m4 (AT_INIT): Likewise, for
12455 PATH_SEPARATOR in AUTOTEST_PATH.
12457 2005-07-02 Alexandre Duret-Lutz <adl@gnu.org>
12459 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
12460 for loop over config.site files using `set', to allow
12461 directory names containing IFS characters.
12463 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
12465 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
12466 directories with weird names. Apparently some people like living
12467 on the edge. However, improve the test that "pwd" actually does
12468 report a name for the working directory.
12469 * NEWS: Remove the claim that we test for funny chars in dir names.
12471 2005-07-01 Stepan Kasal <kasal@ucw.cz>
12473 * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
12475 * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
12476 * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
12477 Now accept a single tag, not whitespace separated list.
12478 (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
12480 2005-06-30 Stepan Kasal <kasal@ucw.cz>
12482 * doc/autoconf.texi (Configuration Headers): Change the explanation
12483 about #include <config.h>.
12484 (Generic Functions): Mention the Gnulib project.
12485 (Limitations of Usual Tools) <sed>: Another minor rephrasing.
12487 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
12488 document to output the default config_* lists to config.status.
12489 Don't recognize option --file, if the functionality is not there.
12490 Likewise for --header; moreover, recognize --he and --h as shortcuts
12491 for --help in that case.
12493 * lib/autoconf/status.m4: Fix the order of the "sections", so that it
12494 matches the order of execution. No code changed.
12496 2005-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12498 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
12499 single-quoted -cmdline argument in Portland Group compiler.
12500 Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
12502 2005-06-30 Alexandre Duret-Lutz <adl@gnu.org>
12504 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
12506 2005-06-29 Stepan Kasal <kasal@ucw.cz>
12508 * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
12509 descriptors to child processes; reported by Norman Gray.
12511 2005-06-29 Stepan Kasal <kasal@ucw.cz>
12513 * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
12515 * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
12516 instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
12517 (AC_SUBST): Call it.
12518 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
12519 the directory specific variables; but don't call it for configure_input.
12521 2005-06-28 Derek Price <derek@ximbiot.com>
12523 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
12526 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
12528 * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
12529 directory have inherent problems with special characters like spaces,
12530 due to limitations in Make syntax. Problem reported by Alexandre
12532 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
12533 Also, fix Tru64 porting problem with shell patterns,
12534 reported by Ralf Wildenhues.
12536 2005-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12538 * doc/autoconf.texi (Subdirectories): Fix markup typos.
12540 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
12542 * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
12544 Fix some more shell quoting problems. Prompted by a bug report
12545 from Justace Clutter.
12546 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
12547 variable into diagnostic. Make the diagnostic an error, not a warning,
12548 because we really don't support spaces and suchlike in dir names.
12549 (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
12550 Don't worry about backslashes in srcdir; it can't happen now.
12551 (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
12552 Simplify ac_optarg handling.
12553 (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
12555 2005-06-22 Stepan Kasal <kasal@ucw.cz>
12557 Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
12558 * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
12559 * tests/atlocal.in: Propagate $EGREP and $SED.
12560 * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
12561 (AT_CONFIG_CMP): Use sed instead of grep plumbing.
12563 * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
12564 that '\|' is not allowed in BREs; recommend using newline separated
12565 list of patterns instead of multiple -e options.
12567 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
12569 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
12571 2005-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12573 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
12575 2005-06-21 Stepan Kasal <kasal@ucw.cz>
12577 * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
12578 b, t, r, w commands require single space, while : cannot have any.
12579 (Special Shell Variables): Fix sed code this in the example.
12580 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
12581 * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
12583 * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
12584 expand to the empty list. Don't use two pairs of m4_changequote,
12585 it's not necessary.
12587 2005-06-20 Derek Price <derek@ximbiot.com>
12589 * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
12591 2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
12593 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
12594 * doc/autoconf.texi:
12595 Don't mention Solaris versions so much, if a
12596 problem is common to all extant versions of Solaris. Say "SunOS
12597 4" instead of "SunOS" for SunOS 4.
12598 (awk): Mention more of the limitations of traditional Awk.
12599 (cat): Don't talk about cat -v.
12601 2005-06-16 Paul Eggert <eggert@cs.ucla.edu>
12603 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
12604 (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
12605 but the implementation is entirely different and is designed
12606 to be compatible with glibc strverscmp.
12607 * tests/m4sh.at (AS_VERSION_COMPARE): New test.
12609 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
12610 on Mac OS X 10.4 reported by Peter O'Gorman in:
12611 http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
12612 * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
12613 Use shell builtins rather than 'expr', to work around expr bug.
12615 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
12617 * doc/autoconf.texi: "filesystem" -> "file system".
12618 "behaviour" -> "behavior".
12619 Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
12620 * lib/autoconf/general.m4: Omit blank after ":" sed command,
12622 * lib/m4sugar/m4sh.m4: Likewise.
12623 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
12624 with Solaris sed. Fix by Ralf Menzel and Stepan Kasal.
12626 * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
12627 (.x.1): Ignore the time stamp in the .TH line when deciding whether
12628 to update the man page. That way, we don't have to check in new
12629 man pages every month.
12631 * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
12632 quotes and backslashes. Patch from Derek Price.
12634 2005-06-10 Derek Price <derek@ximbiot.com>
12636 * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
12639 2005-06-08 Paul Eggert <eggert@cs.ucla.edu>
12641 * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
12642 -u, since it outputs chatter if the input files are the same.
12643 Problem reported by Ralf Menzel.
12645 2005-06-08 Derek Price <derek@ximbiot.com>
12647 * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
12648 renaming them since they are about to be redefined anyhow.
12650 2005-06-08 Derek Price <derek@ximbiot.com>
12652 * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
12653 redefined M4 macros to this node. Document m4_include & m4_sinclude.
12654 Move m4_undefine to alphabetical order.
12656 2005-06-07 Paul Eggert <eggert@cs.ucla.edu>
12658 * README: Recommend GNU M4 1.4.3 or later.
12659 * doc/autoconf.texi (Introduction): Likewise.
12660 Reword to avoid some formatting glitches.
12661 Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
12662 Clarify explanation of HP compiler bug.
12663 Redo example output tp match current CVS snapshot.
12664 Use @example.org in email addresses when the examples
12665 might get inadvertently cut-and-pasted into user code.
12666 Remove example of autom4te usage that doesn't seem to work now.
12667 Use modern AC_INIT (except when the example is meant to be
12668 shown with Autoconf 2.13).
12669 Update ksh info for Solaris 9 and later.
12671 Modernize description of Automake versions a bit.
12672 Don't claim a future version of Autoconf is near.
12673 * doc/install.texi: Reword to avoid some formatting glitches.
12675 2005-06-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12677 * doc/autoconf.texi: Add [] to examples, so that the manual
12678 follows its own advice about quoting better.
12679 Reword to avoid some formatting glitches.
12680 * doc/installt.exi: Reword to avoid some formatting glitches.
12682 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
12683 Tru64 ksh pattern matching bug. Reported against Libtool by
12684 Albert Chin <libtool@mlists.thewrittenword.com> and
12685 Nicolas Joly <njoly@pasteur.fr>.
12687 2005-06-06 Stepan Kasal <kasal@ucw.cz>
12689 m4_cdr of one-member list was [[]] (one-member list containing an
12690 empty string) instead of [] (an empty list. Callers were skewed to
12691 match this misbehaviour. As a consequence of this:
12692 - m4_foreach([x], [], [foo]) expanded to `foo', while
12693 - the expansion of m4_foreach([x], [[]], [foo]) was empty.
12694 This bug has been fixed:
12696 * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
12697 expand to an empty string; print error msg if called without
12699 (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
12700 misbehaviour; handle [] and [[]] correctly.
12702 2005-06-06 Stepan Kasal <kasal@ucw.cz>
12704 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
12705 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
12706 scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
12708 2005-06-06 Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> (trivial change)
12710 * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
12711 swallow records with more than 99 fields.
12712 * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
12713 parse the long line.
12715 2005-06-04 Stepan Kasal <kasal@ucw.cz>
12717 * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
12718 swallow literals longer than 399. Reported by Ralf Wildenhues.
12719 * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
12720 to workaround this limitation.
12722 2005-06-03 Steven G. Johnson <stevenj@alum.mit.edu>
12724 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
12725 to gfortran, and make these the first two compiler names
12726 checked (following the general autoconf preference for gcc).
12728 2005-06-03 Stepan Kasal <kasal@ucw.cz>
12730 * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
12731 (DISTCLEANFILES): Remove $(check_SCRIPTS).
12732 (testsuite): Make sure autotest.m4f is up-to-date before using it.
12734 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12736 * lib/autotest/general.m4 (AT_INIT): Don't create a regular
12737 expression of unbounded size when processing the --list
12738 option. This runs afoul of a limit of 399 bytes per regular
12739 expression on AIX. Problem reported by Ralf Wildenhues.
12741 2005-06-01 Paul Eggert <eggert@cs.ucla.edu>
12743 * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
12744 * doc/autoconf.texi (Particular Headers): Reword example
12745 for multiline stdbool replacement.
12746 (Setting Output Variables): Reword text a bit. Don't
12747 give all the details about |#_!!_#|.
12748 Reword description of line replacement.
12750 2005-05-31 Dan Manthey <dan_manthey@partech.com>
12752 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
12753 now contain newlines, and substituted files must be referenced on
12754 a line alone; the sed scripts to substitute them are now very
12756 (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
12757 commands can be put in a sed script portably.
12758 * doc/autoconf.texi (Setting Output Variables): Document above
12759 changes. (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
12760 use of multiline substitution.
12761 * tests/torture.at: No longer expect substitution of newline to fail.
12763 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
12765 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
12766 From Ralf Menzel (trivial change).
12768 2005-05-25 Paul Eggert <eggert@cs.ucla.edu>
12770 * tests/local.at: Don't attempt to check for negated character
12771 classes in shell scripts. The test was too brittle.
12773 2005-05-25 Stepan Kasal <kasal@ucw.cz>
12775 * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
12776 * doc/autoconf.texi (Limitations of Builtins): Document this
12779 2005-05-24 Stepan Kasal <kasal@ucw.cz>
12781 * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
12782 common code; used in many places in the tree.
12783 (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
12784 (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
12786 * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
12788 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
12789 messages when ac_unique_file is not found.
12790 (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
12791 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
12792 commands, for consistency with AC_MSG_ERROR and such.
12794 * bin/autoconf.as: Make more use of "shift 2" in option processing.
12796 * bin/Makefile.am: Merge the two rules for creating scripts.
12798 2005-05-23 Stepan Kasal <kasal@ucw.cz>
12800 * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
12801 obsolete; it was never documented.
12802 (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
12804 2005-05-20 Stepan Kasal <kasal@ucw.cz>
12806 * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
12807 * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
12808 (ac_top_builddir): ... this ...
12809 (ac_top_build_prefix): ... to this; the old name is also kept, for
12810 backward compatibility.
12811 (ac_top_builddir_sub): New variable, without the trailing slash,
12813 (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
12814 * doc/autoconf.texi (Configuration Actions): Rename
12815 ac_top_builddir to ac_top_build_prefix.
12816 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
12817 at_top_builddir to at_top_build_prefix.
12818 * lib/autotest/general.m4 (AT_INIT): Likewise.
12820 2005-05-20 Stepan Kasal <kasal@ucw.cz>
12822 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
12825 2005-05-17 Stepan Kasal <kasal@ucw.cz>
12827 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
12828 argument to m4_foreach. I guess it was necessary in the past,
12829 but I think it's a no-op now.
12831 2005-05-17 Stepan Kasal <kasal@ucw.cz>
12833 * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
12834 ``cat <<_ACEOF'' commands to one.
12835 (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
12836 * lib/autoconf/status.m4: On various places, use expr instead of
12838 (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
12839 (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
12840 * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
12842 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
12843 the wrong patterns between ``case'' and ``esac.'' The previous
12844 code had false positives.
12846 2005-05-14 Alexandre Duret-Lutz <adl@gnu.org>
12848 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
12850 * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
12853 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
12855 * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
12856 ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
12857 Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
12858 bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
12859 bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
12860 bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
12861 config/config.guess, config/config.sub, config/elisp-comp,
12862 config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
12863 doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
12864 lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
12865 lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
12866 lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
12867 lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
12868 lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
12869 lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
12870 lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
12871 lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
12872 lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
12873 lib/autoconf/general.m4, lib/autoconf/headers.m4,
12874 lib/autoconf/lang.m4, lib/autoconf/libs.m4,
12875 lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
12876 lib/autoconf/specific.m4, lib/autoconf/status.m4,
12877 lib/autoconf/types.m4, lib/autoscan/Makefile.am,
12878 lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
12879 lib/autotest/Makefile.am, lib/autotest/autotest.m4,
12880 lib/autotest/general.m4, lib/emacs/Makefile.am,
12881 lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
12882 lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
12883 lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
12884 tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
12885 tests/compile.at, tests/foreign.at, tests/fortran.at,
12886 tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
12887 tests/semantics.at, tests/suite.at, tests/tools.at,
12888 tests/torture.at, tests/wrapper.as:
12889 Update FSF postal mail address.
12891 2005-05-13 Stepan Kasal <kasal@ucw.cz>
12893 * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
12895 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
12896 enough arguments, similarly as in m4_bpatsubsts.
12898 2005-05-12 Stepan Kasal <kasal@ucw.cz>
12900 * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
12903 2005-05-11 Stepan Kasal <kasal@ucw.cz>
12905 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
12906 for absolute directory names in one loop.
12907 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
12908 abbreviations of --version and --debug.
12910 2005-05-10 Paul Eggert <eggert@cs.ucla.edu>
12912 * doc/autoconf.texi (Autoconf Language): Be more precise about
12913 quoting rules. Problems noted by Stepan Kasal.
12914 Also, throughout this document, be more careful about white space.
12915 "blank", "white space", and "space" all have different meanings
12916 and we should be careful to say what we mean.
12918 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
12920 Fix C++ related problems reported by Werner Lemberg.
12921 * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
12922 * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
12923 * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
12924 avoid problems with C++ and throw.
12925 * tests/compile.at: .cpp, not .cc.
12927 * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
12929 2005-05-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12931 * doc/autoconf.texi (Generic Functions): Typos.
12933 2005-05-02 Gary V. Vaughan <gary@gnu.org>
12935 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
12936 object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
12937 set by latest automake.
12939 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
12941 * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
12942 outputs 0 on GNU/Linux these days.
12944 2005-04-29 Paul Eggert <eggert@cs.ucla.edu>
12946 * doc/autoconf.texi (Autoconf Language): Add more description
12947 about quoting heuristics.
12948 (Limitations of Builtins): Describe "set -" problems.
12950 2005-04-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12952 * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
12955 * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
12956 by AC_DEFINE; it was a mistake.
12957 From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
12959 2005-04-25 Stepan Kasal <kasal@ucw.cz>
12961 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
12963 2005-04-22 Stepan Kasal <kasal@ucw.cz>
12965 * doc/autoconf.texi (External Software): Quadrigraphs are not
12966 processed correctly in AS_HELP_STRING; avoid this in the examples.
12967 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
12968 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
12969 comment and reduce m4_default([foo], []) to [foo].
12970 (m4_strip): Update the explanation.
12972 2005-04-19 Paul Eggert <eggert@cs.ucla.edu>
12974 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
12975 Remove core.conftest.* too; it's generated by Tru64 5.1.
12976 Problem reported by Jennis Pruett.
12977 * lib/autoconf/functions.m4
12978 (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
12979 Don't bother to remove core files; AC_RUN_IFELSE should do that
12982 2005-04-19 Stepan Kasal <kasal@ucw.cz>
12984 * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
12986 2005-04-19 Alexandre Duret-Lutz <adl@gnu.org>
12988 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
12989 Report from Horst Wente.
12991 2005-04-15 Stepan Kasal <kasal@ucw.cz>
12993 * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
12996 2005-04-14 Gregorio Guidi <greg_g@gentoo.org>
12998 * doc/autoconf.texi (External Software, Package Options): Add
12999 examples showing how to implement --with-* and --enable-* options.
13001 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
13003 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
13004 as well as configure.in. Problem reported by Gregorio Guidi.
13006 2005-04-10 Paul Eggert <eggert@cs.ucla.edu>
13008 * doc/autoconf.texi (Particular Functions): Use gnulib's current
13009 pattern for alloca snippet.
13011 2005-04-04 Stepan Kasal <kasal@ucw.cz>
13013 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
13015 2005-04-01 Stepan Kasal <kasal@ucw.cz>
13017 * doc/autoconf.texi (Generic Programs): Fix a typo.
13019 2005-04-01 Paul Eggert <eggert@cs.ucla.edu>
13021 * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
13022 fails if %s isn't supported. Problem reported by Ralf Wildenhues.
13024 2005-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13026 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
13027 Merge `-z option' as well for the benefit of Solaris link flags. Pass
13028 whole-archive (-zallextract, -zdefaultextract) options in the hope of
13029 unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported
13030 against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
13032 2005-03-22 Paul Eggert <eggert@cs.ucla.edu>
13034 * NEWS: The configure command now warns you if you attempt to use
13035 a directory whose name contains a special character like space,
13037 * doc/autoconf.texi (Installation Directory Variables): Allow
13038 "," in file names. Do not use \@; it's not a portable regexp.
13039 * bin/Makefile.am (edit): Likewise.
13040 * lib/Makefile.am (edit): Likewise.
13041 * tests/Makefile.am (edit): Likewise.
13042 * tests/semantics.at: Likewise.
13043 * tests/torture.at: Likewise.
13044 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
13045 * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
13046 * doc/autoconf.texi (File System Conventions): Warn about
13047 unportable file names.
13048 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
13050 (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
13051 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
13052 ac_pwd, and quote srcdir.
13053 * lib/autotest/general.m4 (AT_INIT): Quote file name args.
13055 * doc/autoconf.texi: Fix some systematic formatting problems.
13056 ".)" needs a following @: if not at the end of a sentence, and
13057 similarly for "!)". "etc." should be preceded by a comma.
13058 "n-th" -> "@var{n}th". pdksh is still buggy, so update its date.
13060 2005-03-22 Bruno Haible <bruno@clisp.org>
13062 * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
13063 argument is often called 'build-aux'.
13065 2005-03-07 Stepan Kasal <kasal@ucw.cz>
13067 * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
13068 macro AC_TRY_LINK is obsolete.
13069 (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
13072 2005-02-24 Stepan Kasal <kasal@ucw.cz>
13074 * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
13075 `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
13076 from a Common Lisp's `cl'.
13077 (AC_PROG_CXX): Behave according to the documentation: don't
13078 search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
13079 make the variable CCC precious; use `cl.exe', not `cl'.
13081 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
13082 Alexandre Duret-Lutz <adl@gnu.org>
13084 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
13085 /dev/null, as "configure" shouldn't read stdin, and this insulates
13086 us from problems (e.g., when testing for "cl"). Also, do this
13087 redirection before invoking "hostname" or "uname", and keep the
13088 original input stream available via...
13089 (AS_ORIGINAL_STDIN_FD): ... this new macro.
13090 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
13091 bother with "</dev/null" since it's now done at the top of
13093 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
13094 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13095 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13096 * doc/autoconf.texi (File Descriptor Macros): New section.
13097 (Printing Messages): Mention it.
13098 * tests/base.at (Input/Output): New test.
13100 2005-02-23 Paul Eggert <eggert@cs.ucla.edu>
13102 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
13103 newline if neither \c nor -n work, as that would output two
13104 newlines. Prefer -n to \c. Reported by Stepan Kasal.
13106 2005-02-12 Stepan Kasal <kasal@ucw.cz>
13108 * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
13109 This causes that any required macros inside will get before the if.
13110 * doc/autoconf.texi (autom4te.cache): A typo.
13112 2005-02-12 Paul Eggert <eggert@cs.ucla.edu>
13114 Undo previous change, except keep the change to
13115 lib/autoconf/programs.m4 that replaced grep with shell
13116 pattern-matching. This is because net-snmp configure reads stdin.
13117 Reported by Noah Misch.
13119 2005-02-11 Paul Eggert <eggert@cs.ucla.edu>
13121 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
13122 from /dev/null, as "configure" shouldn't read stdin, and this
13123 insulates us from problems (e.g., when testing for "cl").
13124 Suggested by Alexandre Duret-Lutz. Also, do this redirection
13125 before invoking "hostname" or "uname".
13126 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13127 _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
13128 * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
13129 "</dev/null" since it's now done at the top of 'configure'.
13130 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
13131 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
13132 Also, replace grep with shell pattern-matching, to save a process.
13134 2005-02-10 Paul Eggert <eggert@cs.ucla.edu>
13136 * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
13137 _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
13138 avoid thinking that Allegro Common Lisp's "cl" command is a C++
13141 2005-02-09 Paul Eggert <eggert@cs.ucla.edu>
13143 * doc/autoconf.texi (Limitations of Usual Tools): Document that
13144 grep -q isn't portable. Improve grep -s explanation.
13145 Problem reported by Dan Manthey.
13147 2005-02-08 Paul Eggert <eggert@cs.ucla.edu>
13149 * doc/autoconf.texi (Special Shell Variables): Clarify
13150 PATH_SEPARATOR wording; fix typo in IFS. Reported by Gary V. Vaughan.
13152 2005-02-07 Paul Eggert <eggert@cs.ucla.edu>
13154 * doc/autoconf.texi: Use @acronym for DJGPP.
13155 Fix some @code's that should have been @env's, and vice versa.
13156 Sort environment variable names.
13157 Mention that shells no longer inherit IFS.
13158 Don't recommend PATH_SEPARATOR=';' so strongly.
13159 Mention that $RANDOM might expand to the empty string.
13160 "symlink" and "soft link" -> "symbolic link".
13161 Improve mktemp description (reported by Bruno Haible).
13163 2005-02-05 Paul Eggert <eggert@cs.ucla.edu>
13165 * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
13166 * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
13168 * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
13171 2005-02-04 Paul Eggert <eggert@cs.ucla.edu>
13173 * NEWS: Mention AT_COPYRIGHT.
13175 * tests/local.at (AT_CMP): Use diff directly on input files rather
13178 * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
13179 /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
13181 2005-02-04 Noah Misch <noah@cs.caltech.edu>
13182 and Paul Eggert <eggert@cs.ucla.edu>
13184 * tests/autotest.at (Empty test suite): New test.
13185 * tests/torture.at (Substitute and define special characters)
13186 (Substitute a 2000-byte string, Define to a 2000-byte string)
13187 (Substitute a newline, Define a newline): New tests.
13189 2005-02-04 Noah Misch <noah@cs.caltech.edu>
13191 * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
13192 * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
13193 (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
13194 * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
13195 (Standard regular expressions): New test.
13196 (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
13197 excess test name quoting.
13198 * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
13199 CPPFLAGS to `configure' instead of setting it in `configure'.
13201 * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
13202 any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
13205 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
13206 s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
13208 * tests/local.at (AT_CMP): New macro.
13209 (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
13210 (AC_SAVE_STATE): Move environment grep...
13211 (AT_CHECK_ENV): to here. Filter out `'$''. Use AT_CMP.
13212 (AT_CONFIG_CMP): New macro.
13213 (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
13214 * tests/c.at (Extensions): Do not exit early.
13215 * tests/atlocal.in: Inherit $GREP.
13217 * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
13218 (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
13220 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
13221 (AC_COPYRIGHT): Factor header comment portion out and move into...
13222 * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
13223 * lib/autotest/general.at (AT_COPYRIGHT): New macro.
13224 (AT_INIT): Add Autotest copyright notice. Display copyright notices in
13226 * tests/local.at: Add Autoconf test suite copyright notice.
13227 * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
13229 2005-02-04 Bruno Haible <bruno@clisp.org>
13230 and Paul Eggert <eggert@cs.ucla.edu>
13232 * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
13234 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
13236 * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
13237 this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
13239 Try not to generated lines of unlimited length, as POSIX places a
13240 2047-byte limit on line length of portable text files.
13241 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
13242 Use newline as a separator, not space.
13243 * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
13244 (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
13247 2005-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13249 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
13250 as_func_*. Add test to check whether positional parameters
13251 are restored after function return.
13253 2005-02-02 Paul Eggert <eggert@cs.ucla.edu>
13255 * doc/autoconf.texi (Special Shell Variables): Mention _,
13256 BIN_SH, DUALCASE. Say that variables other than "status" are safe
13257 if they contain a lower-case letter. The DUALCASE problem was
13258 reported by Ralf Wildenhues.
13260 * bin/autoconf.as: Don't exit with status 0 after write failure
13261 with --help or --version.
13262 * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
13263 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
13265 2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13267 * doc/autoconf.texi (Limitations of Usual Tools):
13268 Unicos 9 sed limitations.
13269 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
13270 to get the option-enhanced interface on older Crays. Try ftn for
13271 Fortran 95 (newer Crays).
13273 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
13275 * man/Makefile.am (.x.1): Go back to the simple solution, but take
13276 care to echo the commands, so the user knows what's going on.
13277 Modified from a suggestion by Stepan Kasal.
13279 * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
13280 with a cross reference. Derived from a suggestion by Bruce Korb.
13282 2005-01-31 Paul Eggert <eggert@cs.ucla.edu>
13284 * doc/autoconf.texi (config.status Invocation): Warn about
13285 discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
13286 * doc/install.texi (Defining Variables): Likewise.
13287 Based on a proposed patch by Ralf Wildenhues.
13289 * man/Makefile.am (.x.1): Make sure the required generated files
13290 are up to date. Problem and original solution proposed by Stepan Kasal.
13291 $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
13292 implicit-man-prerequisites): New rules, used by the above.
13294 * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
13295 * config/config.guess, config/config.sub, config/install-sh: Likewise.
13296 * config/missing, config/texinfo.tex: Likewise.
13298 2005-01-29 Stepan Kasal <kasal@ucw.cz>
13300 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
13301 Update the long comment explaining it.
13303 m4_require no longer writes an ``is required by'' line to the
13304 execution stack. It contains only one bit of non-redundant
13305 information: that the macro was required, not called. And even
13306 this bit is useless in most situations: have you ever met a macro
13307 which both calls and requires the same macro?
13309 * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
13310 (_m4_defun_pro_outer): ... only via this macro, for the outermost
13312 (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
13313 (m4_expansion_stack_pop): Remove the misplaced comment.
13314 (m4_require): Don't put the ``is required by'' line to the
13315 execution stack; slightly improve the out-of-a-defun error message.
13316 (_m4_divert_grow): New macro, counter for the temporary diversions.
13317 (_m4_require_call): Use it.
13318 * tests/m4sugar.at (m4_require): Expect output without the
13319 ``is required by'' messages.
13321 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
13323 * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
13324 rather than x for expr.
13326 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
13328 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
13329 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
13330 * lib/autotest/general.m4 (AT_INIT): Likewise.
13331 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
13332 * tests/mktests.sh: Likewise.
13334 2005-01-27 Akim Demaille <akim@epita.fr>
13336 Have autoheader honor --force.
13338 * doc/make-stds.texi, doc/standards.texi: Update from masters.
13339 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
13340 * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
13341 from masters, so that FileUtils.pm's update_file provide --force
13343 * bin/autoheader.in: Pass $force to update_file so that
13344 config.h.in is always recreated when --force.
13346 2005-01-24 Stepan Kasal <kasal@ucw.cz>
13348 * doc/autoconf.texi (Introduction): Update Peter Simons' address.
13350 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
13352 * doc/autoconf.texi (Limitations of Builtins): Clarify that
13353 "if test ! -d foo; ..." is portable. Suggested by Stepan Kasal.
13355 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
13357 * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
13358 Warn about newline stripping in `` and $(). Update Solaris
13360 (Limitations of Builtins): Use expr "X...", not expr "x...", as
13361 X insulates us from future changes to Posix.
13362 (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
13365 2005-01-19 Stepan Kasal <kasal@ucw.cz>
13367 * doc/autoconf.texi (Defining Symbols): Delete the false comment that
13368 you cannot use AC_DEFINE to define macros containing `[' or `]'.
13370 2005-01-13 Paul Eggert <eggert@cs.ucla.edu>
13372 * doc/autoconf.texi (Limitations of Usual Tools): Document bug
13373 in Solaris 8 join. Problem reported by Tomohiro Suzuki on
13374 bug-tar mailing list.
13376 2005-01-05 Stepan Kasal <kasal@ucw.cz>
13378 * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
13380 2005-01-05 Paul Eggert <eggert@cs.ucla.edu>
13382 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
13383 ulongval to be static, to avoid unwanted GCC warning. Problem
13384 reported by Michael Jennings via Daniel Reed; see
13385 <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
13387 2005-01-05 Alexandre Duret-Lutz <adl@gnu.org>
13389 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
13390 docdir, htmldir, dvidir, pdfdir, psdir, and localdir. Update
13391 datadir, infodir, and mandir. Adjust argument parsing code.
13392 (_AC_INIT_HELP): Update help text.
13393 * doc/autoconf.texi (Installation Directory Variables): Document
13396 2005-01-04 Noah Misch <noah@cs.caltech.edu>
13398 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
13399 not seem to work, assume it does set $(MAKE).
13400 * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
13402 2005-01-03 Stepan Kasal <kasal@ucw.cz>
13404 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
13406 2005-01-03 Stepan Kasal <kasal@ucw.cz>
13408 A cleanup of the diversion support in m4sugar.
13410 * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
13411 (_m4_divert_n_stack): New macro; the expansion is
13412 <newline>m4_divert_stack, if m4_divert_stack is defined, and void
13414 (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
13415 (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
13416 stored in _m4_divert_diversion or _m4_divert_dump.
13417 (m4_divert_pop): When the parameter is given, compare the symbolic
13418 name with the last diversion pushed on the stack. Previously, the
13419 current diversion was compared with the numeric value of the
13420 diversion given as the parameter.
13421 (m4_require): If the macro hasn't been expanded yet, call ...
13422 (_m4_require_call): this new macro.
13424 2005-01-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13426 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
13427 Workarounds for documented `case' limitations.
13429 2005-01-03 Paul Eggert <eggert@cs.ucla.edu>
13431 * doc/autoconf.texi (Limitations of Usual Tools): Warn about
13432 sed 'command1;command2'. Problem reported by Ralf Wildenhues.
13434 2005-01-02 Paul Eggert <eggert@cs.ucla.edu>
13436 * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
13437 bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
13438 bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
13440 Patch from Roger Leigh (with some minor changes) as follows:
13441 * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
13442 Resurrect AC_PROG_CC_STDC.
13443 * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
13444 AC_PROG_CC_C89, AC_PROG_CC_C99.
13445 (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
13446 * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
13447 AC_PROG_CC_C99): New macros.
13448 (AC_PROG_CC_STDC): Use them.
13449 (_AC_PROG_CC_STDC): Remove.
13450 (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
13451 * THANKS: Add Roger Leigh.
13453 2004-12-30 Noah Misch <noah@cs.caltech.edu>
13455 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
13456 signals that the package uses Automake; a `Makefile.am' is typical but
13457 not essential. Reported by Magnus Therning.
13458 * tests/torture.at (autoreconf.): New banner.
13459 (autoreconf and non-AC configure): Rename to `Non-Autoconf
13460 AC_CONFIG_SUBDIRS'.
13461 (autoreconf an empty directory): Rename to `Empty directory'.
13462 (Unusual Automake input files): New test.
13464 2004-12-30 Noah Misch <noah@cs.caltech.edu>
13466 * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
13467 (AT_SETUP): Clear AT_capture_files.
13468 (_AT_CHECK): On failure, log each of AT_capture_files. Fix comment.
13469 (AT_KEYWORDS): Fix comment typo.
13470 * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
13471 * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
13472 * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
13474 2004-12-29 Albert Chin-A-Young <china@thewrittenword.com>
13476 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
13477 If the variable to set is already set, set ac_cv_path_$1
13478 to the preset value so caller can assume ac_cv_path_$1
13479 is available. (trivial change)
13481 2004-12-27 Noah Misch <noah@cs.caltech.edu>
13483 * BUGS (Minor Problems): Warn about makefile limitations.
13484 * Makefile.am: Find and update `INSTALL' in $(srcdir).
13485 * man/Makefile.am: Find and update manual pages in $(srcdir).
13487 2004-12-24 Eric Blake <ebb9@byu.net>
13489 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
13490 shells in subshell, to avoid noise from ash. (trivial change)
13492 2004-12-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13494 * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
13495 problems with SunOS ksh and backslash escaping, Bourne shells and
13496 closing brackets (both within character classes). Bug reported
13497 against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
13498 <read>: New entry. Mention non-availability of -r.
13500 2004-12-21 Akim Demaille <akim@epita.fr>
13502 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
13503 avoid cluttering displayed messages. Rather, prepend srcdir where
13504 AT_LINE is used for log files.
13506 2004-12-21 Stepan Kasal <kasal@ucw.cz>
13508 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
13509 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
13510 no longer part of the macro, quote the occurrence of ``$tmp''.
13511 * doc/autoconf.texi (Forbidden Patterns): Typo.
13513 2004-12-21 Akim Demaille <akim@epita.fr>
13515 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
13516 separated from the test title by forcing a white space.
13518 2004-12-21 Akim Demaille <akim@epita.fr>
13520 Enable Emacs navigation within testsuite.log files.
13522 * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
13523 use the compilation mode.
13524 (AT_LINE): Point to the srcdir.
13526 2004-12-19 Noah Misch <noah@cs.caltech.edu>
13528 * tests/Makefile.am (installcheck-local): Use $(bindir).
13529 (check-local, installcheck-local): Pass TESTSUITEFLAGS.
13530 * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
13531 Makefile.am scheme Autoconf now uses.
13533 2004-12-18 Noah Misch <noah@cs.caltech.edu>
13535 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
13536 * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
13538 2004-12-18 Noah Misch <noah@cs.caltech.edu>
13540 * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
13541 (_AT_CHECK): Use it.
13542 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
13543 (AS_ESCAPE): Fix comment.
13544 * tests/autotest.at: Adjust section banner comments.
13545 (AT_CHECK_AT): Accept STATUS and STDERR.
13546 (AT_CHECK_AT_TEST): Likewise.
13547 (Invalid brace-enclosed parameter expansion)
13548 (Multiline command from M4 expansion)
13549 (Double-M4-quoted command): New tests.
13551 2004-12-17 Paul Eggert <eggert@cs.ucla.edu>
13553 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
13555 2004-12-17 Akim Demaille <akim@epita.fr>
13557 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
13559 Suggested by Alexandre Duret-Lutz.
13560 * doc/autoconf.texi (Setting Output Variables): Catch up.
13562 2004-12-17 Stepan Kasal <kasal@ucw.cz>
13564 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
13566 2004-12-17 Stepan Kasal <kasal@ucw.cz>
13568 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
13569 remove the comment which said we cannot.
13571 2004-12-17 Stepan Kasal <kasal@ucw.cz>
13573 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
13574 Reini Urban and Paul Eggert for reporting the dependencies.
13576 * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
13577 * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
13578 (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
13580 2004-12-17 Stepan Kasal <kasal@ucw.cz>
13582 * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
13583 so that eg. ``autoscan --help'' doesn't truncate it.
13585 2004-12-15 Nicolas Joly <njoly@pasteur.fr>
13587 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
13588 generated conftest files.
13590 2004-12-13 Noah Misch <noah@cs.caltech.edu>
13592 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
13593 tracing on commands with possibly-escaped newlines.
13594 * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
13595 discontinued behavior and its implications.
13596 * tests/autotest.at (BS-newline in command, ^BS-newline in command)
13597 (BSx641-newline in command, BS-BS-newline in command)
13598 (BSx640-newline in command, Newline-CODE-BS-newline in command)
13599 (Single-quote-BS-newline in command)
13600 (Single-quote-newline-BS-newline in command): New tests.
13602 2004-12-13 Stepan Kasal <kasal@ucw.cz>
13604 * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
13605 on platforms where it works.
13606 (_AS_TEST_PREPARE): Test for ``test -x''.
13607 (_AS_BROKEN_TEST_PREPARE): Nuke.
13609 2004-12-13 Stepan Kasal <kasal@ucw.cz>
13611 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
13612 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
13613 give only 4-letter prefix to AS_TMPDIR, comment fixed.
13614 * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
13615 create the temporary directory.
13616 (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
13618 2004-12-12 Kelley Cook <kcook@gcc.gnu.org>
13620 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
13623 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
13625 * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
13627 2004-12-11 Noah Misch <noah@cs.caltech.edu>
13629 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
13630 to avoid using a negated character class. Reported by Nicolas Joly.
13631 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
13633 2004-12-10 Paul Eggert <eggert@cs.ucla.edu>
13635 * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
13636 autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
13637 Don't depend on .x file explicitly, since "make" does that for us.
13638 Suggested by Stepan Kasal.
13640 * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
13642 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
13643 ifnames): Factor common code. And they said it couldn't be done!
13645 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
13647 * bin/.cvsignore: Add autoconf.in.
13648 * tests/.cvsignore: Add wrapper.in.
13649 * lib/autotest/general.m4: Escape '$' in case pattern.
13651 2004-12-09 Noah Misch <noah@cs.caltech.edu>
13653 * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
13655 * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
13657 * tests/autotest.at: New file.
13658 * tests/suite.at: Include it.
13659 * tests/Makefile.am: Distribute it.
13661 * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
13662 shell tracing on a command that could contain multiple lines.
13663 * doc/autoconf.text: Document that fact and its implications.
13664 * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
13665 * tests/autotest.at (Multiline backquote command substitution,
13666 Multiline parameter expansion, Literal multiline command,
13667 Multiline parenthetical command substitution): Remove XFAIL.
13669 2004-12-09 Paul Eggert <eggert@cs.ucla.edu>
13671 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
13672 and suggest AC_SEARCH_LIBS. Suggested by Noah Misch and Stepan Kasal.
13674 2004-12-08 Noah Misch <noah@cs.caltech.edu>
13676 * configure.ac (test suite): Cease to generate wrapper scripts.
13677 * configure: Regenerate.
13678 * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
13679 (m4f_dependencies): Adjust accordingly.
13680 * tests/Makefile.am (Wrappers): Generate wrapper scripts.
13681 (wrapper.in): Generate it in the build directory.
13682 (MAINTAINERCLEANFILES): Delete wrapper.in.
13683 (CLEANFILES): Add wrapper.in.
13684 * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
13685 the output. Replace each $as_me with a @wrap_program@.
13686 * tests/wrapper.in: Delete it; we always build it.
13688 * bin/Makefile.am (autoconf.in): Generate it in the build directory.
13689 (EXTRA_DIST): Remove autoconf.in.
13690 (CLEANFILES): Add autoconf.in.
13691 (autoconf): Find autoconf.in in the build directory.
13692 * bin/autoconf.in: Delete it; we always build it.
13694 2004-12-08 Noah Misch <noah@cs.caltech.edu>
13696 * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'. Join
13697 PATH members so as to not prepend an empty element. Move a comment.
13698 * Makefile.am (SUBDIRS): Build in `tests' last.
13699 * tests/Makefile.am (installcheck-local): Add check-local dependencies.
13701 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
13703 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
13704 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
13705 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
13706 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
13708 2004-12-07 Stepan Kasal <kasal@ucw.cz>
13710 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
13711 patch: extra "-l"s.
13713 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
13715 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
13716 looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
13717 * doc/autoconf.texi (Particular Functions): Mention new behavior.
13719 2004-12-03 Stepan Kasal <kasal@ucw.cz>
13721 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
13722 out the common code to ...
13723 (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
13724 value of the #define--default to 1, iff the macro was called
13725 with exactly one parameter.
13727 2004-12-02 Paul Eggert <eggert@cs.ucla.edu>
13729 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
13730 "char c = '\200';" rather than "char c = 0x80;" as the
13731 latter doesn't conform to the strict C standard due to
13732 overflow on signed char hosts.
13734 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
13735 to -qlanglvl=ansi. We don't want to disable extensions.
13737 2004-11-29 Paul Eggert <eggert@cs.ucla.edu>
13739 * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
13740 (Using Autotest, testsuite Scripts, Writing testsuite.at):
13741 Reword slightly to avoid some English-language problems noted
13742 by Ralf Wildenhues in:
13743 http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
13745 2004-11-29 Stepan Kasal <kasal@ucw.cz>
13747 * NEWS: Add ^L above each release.
13749 2004-11-28 Paul Eggert <eggert@cs.ucla.edu>
13751 Fix documentation problems reported by Russ Boylan in
13752 <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
13753 along with some nearby cruft.
13754 * doc/autoconf.texi (Libtool): Libtool can be used without
13755 Automake (not without Autoconf).
13756 (Introduction): Mention lists.gnu.org.
13757 * BUGS: Don't mention bugs.gnu.org.
13758 Remove mention of ancient libtool compatibility problem.
13759 * NEWS: Mention that bugs.gnu.org is kaput.
13760 * README: Likewise. Mention where mailing list archives can be found.
13762 2004-11-28 Stepan Kasal <kasal@ucw.cz>
13764 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
13766 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
13768 * doc/autoconf.texi (Pretty Help Strings): Go back to
13769 single-quoting assignments to cache variables.
13771 2004-11-23 Stepan Kasal <kasal@ucw.cz>
13773 * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
13774 with the examples; fix the bug in MY_ARG_WITH example reported
13775 by Alexandre Duret-Lutz.
13776 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
13777 expansion of $1 in the comment emitted to configure.
13779 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
13781 * doc/autoconf.texi (Pretty Help Strings): Fix typo
13782 in my editing of the previous patch. Problem reported
13783 by Alexandre Duret-Lutz.
13785 2004-11-22 Stepan Kasal <kasal@ucw.cz>
13787 * doc/autoconf.texi (Autoconf Language): Explain that
13788 ``descriptions'' may not be double quotes.
13789 (Quotation Rule Of Thumb): Likewise.
13790 (Pretty Help Strings): Likewise; remove the wrong comment;
13791 simplify the examples and improve their quoting.
13793 2004-11-13 Stepan Kasal <kasal@ucw.cz>
13795 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
13796 the $1_found variable, don't test whether the file is executable;
13797 Both things are checked ...
13798 (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
13799 the former ``test -f''.
13800 * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
13802 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
13804 * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
13807 2004-11-10 Derek R. Price <derek@ximbiot.com>
13809 * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
13810 limitations. Reorder paragraphs for clarity.
13812 2004-10-11 Paul Eggert <eggert@cs.ucla.edu>
13814 * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
13815 to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
13816 variants", "Unix", and some related minor wording fixups.
13818 (Shellology, Special Shell Variables): Document that the Zsh
13819 problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks
13820 to Alexandre Duret-Lutz for this info.
13822 2004-10-10 Alexandre Duret-Lutz <adl@gnu.org>
13824 * doc/autoconf.texi (One-Shot Macros): New node.
13826 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
13828 * doc/autoconf.texi (Function Portability): Fix misdescription
13829 of putenv. Problem reported by Michael Wardle.
13831 2004-09-22 Paul Eggert <eggert@cs.ucla.edu>
13833 * doc/autoconf.texi (auindex): New macro.
13834 (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
13835 Problem reported by Stepan Kasal.
13837 2004-09-05 Paul Eggert <eggert@cs.ucla.edu>
13839 Fix problems reported by Andreas Buening in:
13840 http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
13841 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
13843 * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
13844 readable; it's not true in OS/2-emx.
13846 2004-09-04 Paul Eggert <eggert@cs.ucla.edu>
13848 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
13849 "/usr/include", clear ac_x_includes instead of leaving it as "no"
13850 (trivial change). Problem and patch reported by Andrew Church in:
13851 http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
13853 2004-09-03 Paul Eggert <eggert@cs.ucla.edu>
13855 * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
13856 three args in examples. Problem reported by Frederik Fouvry in:
13857 http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
13858 Also, fix some minor spacing and punctuation bugs.
13860 2004-09-02 Akim Demaille <akim@epita.fr>
13862 * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
13863 "case" to restore ordering.
13864 Reported by Stepan Kasal.
13866 2004-08-26 Akim Demaille <akim@epita.fr>
13868 * doc/autoconf.texi: Minor typos and stylos.
13870 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
13872 * configure.ac (AC_INIT): Bump to 2.59c.
13874 2004-08-20 Paul Eggert <eggert@cs.ucla.edu>
13878 * README: Add advice about m4 1.4.2.
13880 * Makefile.cfg (wget_files): Remove config.guess, config.sub,
13881 texinfo.tex for now (done by hand now).
13882 * Makefile.maint (wget_files, cvs_files):
13883 Remove ansi2knr.c; nobody uses it.
13884 (ansi2knr.c-url_prefix): Remove.
13885 (cvs-update): Fix test for failure. I don't know why it ever
13888 * doc/autoconf.texi: Update URLs, some of which went stale.
13889 Use @uref rather than @href.
13891 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
13892 handle "--" as per POSIX. Suggested by Paul Pogonyshev.
13894 * config/config.guess, config/config.sub, config/elisp-comp,
13895 config/install-sh, config/mkinstalldirs, config/texinfo.tex,
13896 doc/fdl.texi, doc/standards.texi: Sync with master copy.
13898 * NEWS, TODO, configure.ac, bin/autoscan.in,
13899 bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
13900 doc/install.texi, lib/Autom4te/Configure_ac.pm,
13901 lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
13902 lib/autoconf/programs.m4, lib/autoconf/status.m4,
13903 lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
13904 lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
13905 tests/tools.at, tests/torture.at:
13906 Use "file name" rather than "filename" or "path",
13907 to be consistent with the terminology of the GNU coding standards.
13909 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
13911 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
13912 AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
13913 HP-UX 11.23 cc/aCC or Tru64 4.0 cc. Problem reported by Noah Misch in
13914 <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
13916 More fixes to support spaces in the name of the build directory.
13917 This isn't a complete fix but it's an improvement.
13919 * bin/autoconf.as (autom4te_options): New var.
13920 Use it instead of appending to AUTOM4TE, so that we can allow
13921 spaces in the build directory's absolute name.
13922 * bin/autoheader.in ($autoconf): Allow spaces in file names.
13923 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
13924 AT_CHECK_NOESCAPE): Likewise.
13925 * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
13926 main program): Likewise.
13928 2004-08-18 Paul Eggert <eggert@cs.ucla.edu>
13930 * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
13931 From Ralf Corsepius in:
13932 http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
13934 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
13936 * doc/autoconf.texi (Function Portability): Document isinf and
13937 and isnan. From a suggestion by Kevin Ryde.
13939 * lib/Autom4te/General.pm (END): Return correct exit status even
13940 if unlink succeeds and sets $?. Needed with Solaris 8's perl 5.00503.
13942 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
13944 * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
13945 for compatibility with Automake 1.4. Reported by J C Fitzgerald in
13946 <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
13948 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
13950 * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
13951 (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
13952 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
13953 * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
13954 * lib/autom4te.in (Automake-preselections): Preselect
13955 AC_REQUIRE_AUX_FILE. Automake 1.10 will trace it.
13957 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
13959 * lib/autom4te.in (Automake-preselections): Preselect
13960 AC_CANONICAL_BUILD and AC_CANONICAL_TARGET. Automake 1.9.1 will
13963 2004-07-29 Paul Eggert <eggert@cs.ucla.edu>
13965 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
13967 * doc/autoconf.texi (Shellology): Mention BIN_SH.
13968 Document problem with "`""`" in pdksh POSIX mode.
13970 2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
13972 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
13973 with pdksh, too. Problem reported by Patrick Welche via
13975 * doc/autoconf.texi (Shellology): Note that set -o posix is
13976 useful for pkdsh, too.
13978 2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
13980 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
13981 _AS_UNSET_PREPARE, so that we can use $as_unset directly.
13982 Don't fail if ENV or BASH_ENV is readonly.
13983 (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
13984 etc. are read only. Problem reported by Ludovic Courtes.
13986 2004-06-23 Noah Misch <noah@cs.caltech.edu>
13988 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
13989 zsh, disable GLOB_SUBST to avoid backslash handling problems.
13992 2004-06-04 Paul Eggert <eggert@cs.ucla.edu>
13994 * doc/autoconf.texi (File System Conventions): Warn about
13995 names like "aux". Problem reported by Eric Blake.
13997 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
13998 by zero instead of array size, so that we can use any arithmetic
13999 constant expression (instead of requiring an integer constant
14000 expression). This allows us to test expressions like DBL_MAX <
14001 LDBL_MAX, which didn't conform to the C standard using the old
14003 (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
14004 now that we can do floating-point tests at compile time.
14006 2004-06-02 Paul Eggert <eggert@cs.ucla.edu>
14008 * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
14009 and LDBL_EPSILON, as the resulting expression isn't an
14010 integer constant expression and violates the C standard.
14011 Problem reported by Nelson H. F. Beebe. Also, check
14012 for "L" suffix, and check that long double doesn't have
14013 worse range or precision than double, that mixed-mode
14014 arithmetic doesn't generate a diagnostic, that double
14015 constants fit in long double.
14017 2004-06-03 Kevin Ryde <user42@zip.com.au>
14019 * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
14020 malloc(0) and realloc(NULL,size).
14022 * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
14025 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
14027 * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
14028 in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
14031 2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
14033 * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
14034 can be rewritten using if-then-else. Suggested by Bruno Haible.
14036 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
14038 * doc/autoconf.texi (testsuite Scripts): Fix typo.
14039 Problem reported by Stepan Kasal.
14041 2004-05-24 Paul Eggert <eggert@cs.ucla.edu>
14043 * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
14044 change). Patch reported by Ralf Wildenhues in
14045 <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
14047 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
14048 function F exists if the compiler and linker let you compile an
14049 expression like (F != 0). Recent versions of GCC optimize away
14050 the reference to F in that case, since every function address must
14051 be nonzero, so the link succeeds even if F does not exist.
14052 Problem reported by Manu in
14053 <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
14055 * doc/autoconf.texi (Systemology): Standardize on the spelling of
14056 "Unix". Many uses changed.
14057 (Limitations of Builtins): Explain better why the ! command isn't
14060 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
14062 * lib/autom4te.in (Automake-preselections): Preselect
14063 LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
14065 2004-05-19 Kevin Ryde <user42@zip.com.au>
14067 * doc/autoconf.texi (Function Portability): Add strerror_r, cross
14068 referencing AC_FUNC_STRERROR_R.
14070 * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
14071 note pessimistic assumption when cross compiling.
14073 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
14075 * doc/autoconf.texi (Limitations of Make): Note that BSD make
14076 (until 2004) invoked subcommands with sh -e, contra POSIX.
14077 Reported by Kevin Ryde.
14079 2004-05-10 Eric Sunshine <sunshine@sunshineco.com>
14081 * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
14082 _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
14083 " $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
14084 `test -f " /usr/bin/grep"', which _always_ failed.
14085 (AC_PROG_SED): Ditto bogus PATH fix.
14086 * autoconf.texi (AC_PROG_GREP): Properly document that this macro
14087 requires that grep correctly supports _multiple_ `-e' options, rather
14088 than stating only that grep should accept `-e'.
14090 2004-05-03 Paul Eggert <eggert@cs.ucla.edu>
14092 Port to C99, which requires that 'exit' be declared.
14094 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
14095 to ensure that stdlib.h is included.
14096 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
14097 AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
14098 _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
14099 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
14100 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
14101 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
14102 when using 'exit' in a test; C99 requires that 'exit' be declared.
14104 2004-05-02 Paul Eggert <eggert@cs.ucla.edu>
14106 * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
14107 now prefers 'grep' implementations that accept -e.
14108 (Limitations of Usual Tools): Describe problems of traditional
14109 egrep and fgrep with long input lines, and of traditional grep
14111 * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
14112 (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
14113 All callers changed. Append /usr/xpg4/bin to the PATH, for
14115 (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
14116 the user with complaints about multiple -e options.
14117 * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
14118 Define it with AC_PROG_GREP.
14119 * configure.ac (AC_PROG_GREP): Add.
14120 * lib/freeze.mk (GREP): New macro.
14122 2004-05-02 Eric Sunshine <sunshine@sunshineco.com>
14124 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
14125 a possible candidate only after all others fail, rather than
14126 consulting it first. This improves backward compatibility by
14127 better reflecting the way shell selection occurred in previous
14128 versions of Autoconf, and should help to avoid triggering latent
14129 problems in other packages, such as the one in Automake where zsh
14130 is not handled robustly:
14131 http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
14132 Although it is not Autoconf's responsibility to work around
14133 problems in Automake, it nevertheless makes sense to avoid
14134 introducing unnecessary incompatibilites.
14136 2004-04-22 Albert Chin-A-Young <china@thewrittenword.com>,
14137 Gary V. Vaughan <gary@gnu.org>
14139 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
14140 how deeply nested we are when a suitable tool is found, set the
14141 ac_path_TOOL_found flag.
14142 (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
14143 nested we are in this macro. Break out of all 3 nested loops if
14144 ac_path_TOOL_found is set.
14146 2004-04-21 Gary V. Vaughan <gary@gnu.org>
14148 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
14149 of the _AS_PATH_WALK loop too if GNU flavor is found.
14151 2004-04-21 Alexandre Duret-Lutz <adl@gnu.org>
14153 * doc/autoconf.texi (Limitations of Make): Update documentation
14154 for `$<'. New entry `Long lines', based on a report from Simon
14155 Josefsson. Augment the documentation for SHELL = @SHELL@ with a
14156 paragraph about DJGPP, based on a mail from Richard Dawe.
14158 2004-04-20 Paul Eggert <eggert@twinsun.com>
14160 * tests/c.at (C keywords): Don't assume that GCC supports
14161 "restrict" and "inline", as sufficiently-old GCC versions do not
14162 (also, GCC configured to be in pedantic C89 mode does not).
14163 Problem reported by Sumit Pandya in:
14164 http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
14166 * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
14167 consider -g to work if it generates warnings when plain compiles
14168 don't. Problem reported by Braden McDaniel in:
14169 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
14171 * doc/autoconf.texi (Slashes): New section, to document a problem
14172 reported by Jim Meyering in:
14173 http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
14175 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
14176 linker output files before linking, to work around IRIX 6 linker bug.
14177 Problem reported by Rainer Orth in:
14178 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
14180 2004-04-20 Gary V. Vaughan <gary@gnu.org>
14182 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
14183 best tool so far counter rely on the tool path variable name to
14184 avoid checks for one tool being affected by the results of running
14185 the length check on a previous tool.
14187 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
14188 match expression argument, as different greps have different
14189 regular expression flavours.
14190 (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
14192 (AC_PROG_EGREP): Pass 'EGREP$'.
14193 (AC_PROG_GREP): Pass 'GREP$'.
14195 2004-04-20 Albert Chin-A-Young <china@thewrittenword.com>
14197 * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
14198 is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
14200 2004-03-29 Paul Eggert <eggert@twinsun.com>
14202 * doc/autoconf.texi (Particular Headers, Particular Types, Generic
14203 Types, Specific Compiler Characteristics, System Services,
14204 Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
14205 etc. consistently instead of 'long', 'short', 'unsigned' etc.
14206 * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
14207 * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
14209 * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
14210 * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
14211 AC_TYPE_OFF_T): Likewise.
14212 * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
14215 * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
14216 pacify libtool 1.5.2. Fix quoting problems in sed command.
14218 2004-03-28 Paul Eggert <eggert@twinsun.com>
14220 * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
14221 now defines HAVE_DECL_TZNAME if it is declared, when
14222 HAVE_STRUCT_TM_TM_ZONE is not defined.
14223 * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
14224 Do not assume atoi. Rely on HAVE_DECL_TZNAME when testing
14227 2004-03-28 Steven G. Johnson <stevenj@fftw.org>
14229 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
14230 superfluous backslashing of quotes (") in sed expressions;
14231 thanks to Paul Eggert.
14233 2004-03-26 Steven G. Johnson <stevenj@alum.mit.edu>
14235 * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
14236 Fortran compiler is ifort, also added pghpf; thanks to Nelson
14237 H. F. Beebe for the bug report.
14239 2004-03-26 Steven G. Johnson <stevenj@fftw.org>
14241 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
14242 quoted -cmdline argument in Portland Group compiler (bug
14243 reported by Jeffrey J. Barteet).
14245 2004-03-25 Kevin Ryde <user42@zip.com.au>
14247 * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
14248 (Run Time): ... here, where it's now mentioned.
14250 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
14252 * doc/autoconf.texi (autom4te Invocation): Language Autoconf
14253 inherits from language Autoconf-without-aclocal-m4.
14254 (Customizing autom4te): Adjust example; the cache must now be
14255 disabled for language Autoconf-without-aclocal-m4.
14257 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
14258 Nathanael Nerode <neroden@twcny.rr.com>
14260 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
14261 AC_CHECK_TOOLS): Warn if a cross-tool is found without
14263 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14264 AC_CHECK_TARGET_TOOLS): New macros.
14265 * doc/autoconf.texi (Generic Programs): Document
14266 (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
14267 AC_CHECK_TARGET_TOOLS, and warn for future changes
14268 in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
14270 (Specifying Names): Document the reason for these future
14271 behavioral changes.
14272 * tests/mktests.sh: Do not generate tests for the
14274 * NEWS: Document these changes.
14276 * doc/autoconf.texi: Avoid macros with unbraced arguments,
14277 they make TeX hang up.
14279 2004-03-15 Paul Eggert <eggert@bogus.example.com>
14281 * NEWS: New macro AC_CHECK_ALIGNOF.
14282 * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
14283 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
14284 int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
14286 (AC_CHECK_ALIGNOF): New macro.
14287 * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
14288 * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
14291 2004-03-03 Paul Eggert <eggert@twinsun.com>
14293 * bin/Makefile.am (edit): Don't use $< in a context where
14294 POSIX doesn't require support for it. Use $@.in instead.
14295 Problem reported by Anthony N. Frasso in
14296 <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
14297 * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
14299 2004-02-23 Gary V. Vaughan <gary@gnu.org>
14301 * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
14302 from the next generation of Libtool.
14303 * lib/autom4te.in (Autoreconf-preselections): Ditto.
14305 2004-02-20 Alexandre Duret-Lutz <adl@gnu.org>
14307 * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
14308 is not always thread-safe. Report from Nathanael Nerode.
14310 2004-02-18 Paul Eggert <eggert@twinsun.com>
14312 Fix a dependencies problem, stemming from a Autoconf 2.59 build
14313 problem on QNX reported by Stephen Rasku in
14314 <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
14316 * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
14317 $(m4sh_m4f_dependencies); this removes a FIXME.
14318 * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
14319 (MAINTAINERCLEANFILES): Split into pieces,
14320 one per related section. Add $(srcdir)/wrapper.in.
14322 2004-02-09 Paul Eggert <eggert@twinsun.com>
14324 * doc/autoconf.texi (Setting Output Variables): Emphasize that
14325 AC_SUBST provides no portable way to escape literal newlines.
14327 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
14328 flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
14329 Darwin uses -lcrt2.o and there's little point to cataloging all
14330 the system variants. Partial fix reported by Andreas Waechter in:
14331 http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
14332 for bug reported by Nelson H. F. Beebe in:
14333 http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
14335 2004-02-04 Paolo Bonzini <bonzini@gnu.org>
14337 * doc/autoconf.texi (AU_DEFUN): Fix English,
14338 suggested by Paul Eggert.
14339 * lib/autoconf/autoupdate.m4: Correct reference to
14340 acobsolete.m4, suggested by Alexandre Duret-Lutz.
14342 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
14344 * bin/autoupdate.in: Define __file__ so that warnings
14345 refer to the correct file.
14346 * doc/autoconf.texi (AU_DEFUN): Describe more correctly
14347 the behavior of the third argument.
14348 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
14349 correctly the behavior of the third argument. Document
14350 what the three macros that AU_DEFUN defines do. Fix
14351 warning message when the third argument includes $0
14352 (reported by Alexandre Duret-Lutz).
14354 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
14355 Eric Sunshine <sunshine@sunshineco.com>
14356 Paul Eggert <eggert@twinsun.com>
14358 * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
14359 (AS_INIT): Output shell initialization there. Removed optional
14360 parameter. Expand _AS_SHELL_FN_SPY.
14361 (AS_INIT_WITH_SHELL_FN): Removed.
14362 (_AS_SHELL_FN_SPY): New macro.
14363 (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
14365 (AS_SHELL_SANITIZE): Remove loop to find better shell
14366 and documentation for the parameter.
14367 (_AS_DETECT_BETTER_SHELL): Move it here.
14368 (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
14369 (_AS_RUN): Move it here, support testing with eval.
14370 (AS_REQUIRE_SHELL_FN): Require shell functions when
14372 (_AS_LINENO_WORKS): Put around braces, we do not
14373 trigger the bash bug anymore.
14374 * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
14375 use AS_INIT_WITH_SHELL_FN.
14376 * bin/autoconf.in, tests/wrapper.in: Regenerated.
14378 2004-01-30 Paolo Bonzini <bonzini@gnu.org>
14380 * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
14381 * doc/autoconf.texi: Don't say that the third parameter
14383 * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
14384 (AU_DEFUN): Honor the third parameter, create autoupdate
14385 macros with AU_DEFINE.
14386 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
14387 AC_DIR_HEADER): Use AU_DEFUN's third parameter.
14388 * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
14389 * lib/autoconf/programs.m4 (AC_RSH): Likewise.
14390 * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
14391 AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
14392 AC_XENIX_DIR): Likewise.
14393 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
14394 AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
14395 * lib/autoconf/status.m4: Remove FIXME.
14396 * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
14397 that the macro is not present anymore in the updated
14399 * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
14402 2004-01-28 Paul Eggert <eggert@twinsun.com>
14404 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
14406 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
14407 2003 (except 1997) to the list of copyright years. This undoes
14408 the 2003-05-22 change, which removed the older years from the list.
14409 * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
14411 2004-01-27 Gary V. Vaughan <gary@gnu.org>
14412 Albert Chin-A-Young <china@thewrittenword.com>
14414 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
14415 grep or ggrep program in PATH that accepts as long lines as
14417 * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
14419 (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
14420 egrep and fgrep respectively if $GREP -E/-F don't work.
14421 (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
14422 _AC_PROG_GREP, and AC_PROG_SED.
14423 (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
14424 longest input length accepted by a command.
14425 (AC_PROG_SED): Use it.
14426 * doc/autoconf.texi (Particular Programs): Document the changes.
14429 2004-01-27 Paul Eggert <eggert@twinsun.com>
14431 * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
14432 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
14433 bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
14434 * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
14436 * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
14437 bin/autoconf.in, config/Makefile.in, config/config.guess,
14438 config/config.sub, config/install-sh, config/mdate-sh,
14439 config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
14440 lib/Makefile.in, lib/Autom4te/Makefile.in,
14441 lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
14442 lib/autotest/Makefile.in, lib/emacs/Makefile.in,
14443 lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
14444 man/autoheader.1, man/autom4te.1, man/autoreconf.1,
14445 man/autoscan.1, man/autoupdate.1, man/config.guess.1,
14446 man/config.sub.1, man/ifnames.1, tests/Makefile.in,
14447 tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
14448 tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
14449 tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
14450 tests/actypes.at: Regenerate and/or sync with original
14453 2004-01-26 Paul Eggert <eggert@twinsun.com>
14455 * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
14456 HAVE_INTTYPES_H is defined. This is needed on Tru64 5.1b with
14457 Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
14458 not <inttypes.h>. Problem reported by Tim Mooney in
14459 <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
14460 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
14463 * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
14464 otherwise "make check" fails because it forbids cmp (I guess
14465 because cmp treats files as binary on DOS-like systems).
14467 * tests/mktests.sh: Update copyright date to 2004, since some tests
14468 have changed in 2004.
14470 2004-01-23 Gary V. Vaughan <gary@gnu.org>
14472 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
14473 non-truncating sed or gsed program in PATH.
14474 * tests/acprograms.at: Add it.
14475 * doc/autoconf.texi (Particular Programs): Document it.
14478 2004-01-15 Paul Eggert <eggert@twinsun.com>
14480 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
14481 -std1 disables some useful extensions on Tru64. Problem reported
14482 by N. Lichtmaier in
14483 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
14485 2004-01-14 Paul Eggert <eggert@twinsun.com>
14487 * doc/autoconf.texi (Programming in M4sh): Document that
14488 AS_MKDIR_P succeeds if the destination is a symbolic link
14489 to an existing directory.
14490 (Limitations of Usual Tools): Note that mkdir -p might not
14491 succeed on symlinks to directories.
14493 2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
14495 * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
14496 * bin/autoheader.in: Grammar fix in message.
14497 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
14498 Test for dir before calling mkdir -p. (trivial changes)
14500 2004-01-13 Eric Blake <ebb9@byu.net>
14502 * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
14503 AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/. (trivial change)
14505 2004-01-10 Jim Meyering <jim@meyering.net>
14507 * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
14509 2004-01-09 Paul Eggert <eggert@twinsun.com>
14511 * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
14512 with `autoconf -Wall,error'. Bug reported by Eric Blake in:
14513 http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
14514 (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
14515 AC_COMPILE_IFELSE, since we now assume our caller invokes
14516 AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
14517 (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
14518 of AC_RUN_IFELSE; this avoids the warning mentioned above.
14519 (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
14521 2004-01-07 Paul Eggert <eggert@twinsun.com>
14523 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
14524 `"'...'"`, as it's confusing (and I suspect it may not work on
14525 some platforms). The code was incorrect anyway, as it assumed
14526 that \$ evaluated to itself in that context. Reported by
14527 Alexandre Duret-Lutz.
14529 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
14531 * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
14532 and _LT_AC_TAGCONFIG.
14534 2004-01-06 Paul Eggert <eggert@twinsun.com>
14536 * doc/autoconf.texi (One Macro Call): Fix an incorrect
14537 example, and add more examples. Reported by Eric Sunshine.
14539 2004-01-05 Paul Eggert <eggert@twinsun.com>
14541 * doc/autoconf.texi (Limitations of Usual Tools):
14542 Remove warning against "rm -fr" introduced yesterday; it
14545 * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
14546 autoscan, autoupdate, ifnames): Don't use chmod -w.
14547 * lib/Makefile.am (autom4te.cfg): Likewise.
14548 * doc/autoconf.texi (Limitations of Usual Tools): Warn against
14551 2004-01-04 Paul Eggert <eggert@twinsun.com>
14552 Paolo Bonzini <bonzini@gnu.org>
14554 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
14555 by doing lineno substitution only on lines containing "$LINENO".
14557 2004-01-04 Paul Eggert <eggert@twinsun.com>
14559 * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
14560 Use "rm -f" to remove conftest.sed, not plain "rm".
14561 Bug reported by David Relson in
14562 <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
14564 * Makefile.am (autom4te-update):
14565 Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
14566 * Makefile.maint (my-distcheck, do-po-update): Likewise.
14567 * doc/autoconf.texi (Guidelines): Likewise.
14568 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
14569 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
14570 * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
14571 * lib/autotest/general.m4 (AT_INIT): Likewise.
14572 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
14573 * tests/Makefile.am (clean-local): Likewise.
14574 * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
14576 * doc/autoconf.texi (Limitations of Usual Tools):
14577 Warn against "rm -fr".
14579 2004-01-03 Paul Eggert <eggert@twinsun.com>
14581 * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
14582 -c -o might not work. From a suggestion by Kevin Ryde.
14583 (C Compiler, Generating Sources, Limitations
14584 of Usual Tools, Limitations of Make, Making testsuite Scripts):
14585 Don't put '-o' after non-options, as POSIX doesn't allow this.
14586 Mention that cc's name might be gcc or c89 or whatever.
14588 2004-01-04 Kevin Ryde <user42@zip.com.au>
14590 * doc/autoconf.texi: Add various further index entries.
14592 2003-12-29 Paul Eggert <eggert@twinsun.com>
14594 * bin/autoreconf.in (autoreconf_current_directory):
14595 Fix typo: mkdir without umask arg.
14597 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
14599 * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
14600 Documents OSF1/Tru64 make behavior. Replace `VPATH = ../src' by
14601 `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
14602 explanation clearer.
14604 2003-12-24 Andreas Schwab <schwab@suse.de>
14606 * doc/autoconf.texi (Default Includes): Fix misspelling of
14607 AC_INCLUDES_DEFAULT.
14609 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
14611 * configure.ac: Test if sh -n works.
14612 * configure: Regenerate.
14613 * tests/atlocal.in: Store the result here.
14614 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
14615 tools.at, looking in atlocal's ac_cv_sh_n_works instead
14616 of explicitly testing.
14617 (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
14618 (AT_CHECK_AUTOCONF): Test for the configure script syntax.
14619 * tests/tools.at (Syntax of the shell scripts): Simplify
14620 using AT_CHECK_SHELL_SYNTAX.
14621 (Syntax of the Perl scripts): Remove definition of
14622 AT_CHECK_PERL_SYNTAX.
14624 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
14626 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
14627 stderr to /dev/null.
14628 * bin/autoconf.in: Regenerate.
14629 * bin/wrapper.in: Regenerate.
14631 2003-11-26 Paolo Bonzini <bonzini@gnu.org>
14633 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
14634 Extracted from AS_SHELL_SANITIZE.
14635 (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
14637 (AS_SHELL_SANITIZE): Move reinvocation code from
14638 _AS_LINENO_WORKS, use it to find out if shell
14640 (_AS_LINENO_WORKS): Don't find another shell if $LINENO
14642 (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
14643 (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
14645 * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
14646 * bin/autoconf.in: Regenerate.
14647 * tests/wrapper.in: Regenerate.
14648 * tests/tools.at: Test the syntax of tests/autoconf
14649 and tests/testsuite.
14651 2003-11-24 Akim Demaille <akim@epita.fr>
14653 * config/announce-gen (&print_locations, &print_signatures)
14656 No longer rely on Gnus to inline the list of signatures: compute
14659 2003-11-24 Akim Demaille <akim@epita.fr>
14661 * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
14662 override some files.
14663 (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
14664 From Debian Autoconf 2.58.
14666 2003-11-24 Akim Demaille <akim@epita.fr>
14668 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
14670 From Debian Autoconf 2.58.
14672 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
14674 * TODO: Remove already done things. Update the part about finding
14675 tools for the target.
14677 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
14679 * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
14680 Make wording more consistent.
14681 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
14682 Explain the transition better.
14683 * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
14684 the transition better.
14686 2003-11-24 Paolo Bonzini <bonzini@gnu.org>
14688 * doc/autoconf.texi (Obsoleting Macros): Don't document the third
14689 parameter of AU_DEFUN.
14690 * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
14691 (AU_DEFUN): Remove the third parameter, it was not used.
14692 Use AC_DEFUN directly, not AU_DEFINE.
14693 * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
14694 the expanded body, consistently with other macros such as AC_USG.
14696 2003-11-17 Paul Eggert <eggert@twinsun.com>
14698 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
14699 into the initial confdefs.h, to work around a bug in NextStep 3.3
14700 patch 3 reported by Eric Sunshine.
14702 2003-11-15 Kevin Ryde <user42@zip.com.au>
14704 * doc/autoconf.texi (Using System Type): Revise, showing $host rather
14705 than $target since the latter is not usual, add guidelines on when to
14706 use or not use the system type.
14708 2003-11-12 Derek Price <derek@ximbiot.com>
14710 * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
14711 typo misrepaired by an auto-spellcheck.
14713 2003-11-12 Akim Demaille <akim@epita.fr>
14715 * bin/autoreconf.in (&parse_args): Don't call automake with
14716 --force-missing unless it actually supports it.
14717 From Debian #219336.
14719 2003-11-12 Akim Demaille <akim@epita.fr>
14721 * configure.ac: Bump to 2.59a.
14724 2003-11-06 Akim Demaille <akim@epita.fr>
14728 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
14730 * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
14731 so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
14732 and ac_abs_top_srcdir are absolute paths.
14733 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
14735 2003-11-05 Akim Demaille <akim@epita.fr>
14737 * configure.ac: Bump to 2.58a.
14739 2003-11-05 Kevin Ryde <user42@zip.com.au>
14741 * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
14742 it provokes a warning from makeinfo about looking like a cross
14743 reference in info output.
14745 * doc/autoconf.texi (Function Portability): Add notes on signal
14746 handler return type, as per AC_TYPE_SIGNAL.
14748 2003-11-04 Akim Demaille <akim@epita.fr>
14751 * doc/standards.texi: Update from master.
14753 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
14755 2003-11-04 Akim Demaille <akim@epita.fr>
14757 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
14758 computing the absolute path to d1 in the source hierarchy: it may
14759 not exist at all. So don't cd into it.
14760 From Alexandre Duret-Lutz.
14761 http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
14763 * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
14764 From Paul Eggert, but named after Perl's IO::Spec->catfile.
14765 * doc/autoconf.texi (Programming in M4sh): Document.
14766 * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
14768 2003-11-03 Pavel Roskin <proski@gnu.org>
14770 * doc/autoconf.texi (Generic Structure Checks): Describe
14771 action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
14773 2003-10-31 Akim Demaille <akim@epita.fr>
14775 * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
14776 (GNU Fortran): New.
14777 * doc/autoconf.texi (Language Choice): Document.
14778 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
14779 the current language is Fortran.
14781 2003-10-31 Akim Demaille <akim@epita.fr>
14783 * bin/autom4te.in (&freeze): Use a less likely warning separator
14784 than `\n\n', so that `\n\n\n' is valid in warnings.
14785 Reported by Steve Huston.
14787 2003-10-28 Akim Demaille <akim@epita.fr>
14789 * Makefile.cfg (local_updates, executable-update): Tweak to be
14790 robust to parallel makes.
14791 Suggested by Alexandre Duret-Lutz.
14793 2003-10-27 Akim Demaille <akim@epita.fr>
14795 * Makefile.cfg (executable-update): New.
14796 (local_updates): Call it.
14798 2003-10-27 Akim Demaille <akim@epita.fr>
14800 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
14801 Don't remove core.* as it may remove valid user files.
14802 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
14803 (AC_FUNC_UTIME_NULL): Likewise.
14805 2003-10-23 Akim Demaille <akim@epita.fr>
14808 * config/config.guess, config/config.sub: Upgrade from masters.
14810 2003-10-23 Akim Demaille <akim@epita.fr>
14812 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
14813 AC_COMPILE_IFELSE that use break skip the clean up. So do it by
14816 2003-10-23 Akim Demaille <akim@epita.fr>
14818 * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
14819 Don't forget to remove conftest.err.
14821 2003-10-23 Akim Demaille <akim@epita.fr>
14823 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
14824 same object file in $LIBOBJS.
14825 Reported by Alexandre Duret-Lutz & Derek Robert Price.
14826 * doc/autoconf.texi (Generic Functions): Adjust.
14828 2003-10-20 Paul Eggert <eggert@twinsun.com>
14830 * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
14831 Use 'eval', so that the resulting configure scripts work even if
14832 the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
14834 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
14836 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
14837 * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
14838 (_AC_LINK_IFELSE): Check the werror flag.
14839 * doc/autoconf.texi (Generic Compiler Characteristics): Document
14841 * NEWS: Mention it.
14843 2003-10-20 Daniel Jacobowitz <drow@mvista.com>
14845 * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
14846 _AC_COMPILER_EXEEXT to attempt a link. If linking fails,
14847 override AC_LINK_IFELSE.
14849 2003-10-15 Paul Eggert <eggert@twinsun.com>
14851 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
14852 pdksh 5.2.14. Bug reported by Ralf Corsepius.
14853 * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
14854 Mention /usr/dt/bin/dtksh on Solaris.
14855 (Shell Substitutions): Warn about $((...)).
14856 (Parentheses): New section.
14858 2003-10-15 Kevin Ryde <user42@zip.com.au>
14860 * doc/autoconf.texi (Function Portability): Add @prindex for exit.
14861 Add putenv and unsetenv. Add sysconf _SC_PAGE_SIZE.
14863 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
14865 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
14868 2003-10-11 Steven G. Johnson <stevenj@alum.mit.edu>
14870 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
14871 name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
14873 2003-10-10 Andreas Schwab <schwab@suse.de>
14875 * bin/autoheader.in: Avoid empty first line in --version and
14877 * bin/ifnames.in: Likewise.
14879 2003-10-09 Paul Eggert <eggert@twinsun.com>
14881 * lib/Autom4te/XFile.pm: Don't assume -j is solo.
14882 Issue a more-informative diagnostic.
14883 Problems reported by Eric Sunshine.
14885 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
14887 * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
14888 -mGLOB_options_string stuff for Intel ifc, which can cause
14889 _AC_FC_LIBRARY_LDFLAGS to fail. Use (faster) case for
14890 pattern-matching instead of grep.
14892 2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
14894 * doc/autoconf.texi: Document new FC Fortran macros.
14896 2003-10-08 Gary V. Vaughan <gary@gnu.org>
14898 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
14899 that future autopoint/aclocal/automake/autoreconf will be able
14900 to trace to find where to install local m4 macros.
14901 * doc/autoconf.texi (Input): Document it.
14904 2003-10-06 Gary V. Vaughan <gary@gnu.org>
14906 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
14907 -lcrtbegin.o to list of ignored flags and fix underquoting of
14910 2003-10-04 Steven G. Johnson <stevenj@ab-initio.mit.edu>
14912 * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
14913 cache variable instead of $G77 to decide whether to include -O2,
14914 since $G77 is specific to Fortran 77.
14916 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
14918 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
14919 free" flag. Re-order flags tested into rough order of popularity.
14921 2003-10-03 Steven G. Johnson <stevenj@alum.mit.edu>
14923 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
14924 arguments so that it can be used with syntax identical to
14925 AC_PROG_F77, and so that we can more easily decide to
14926 remove/deprecate the DIALECT optional argument in the future if it
14927 proves troublesome.
14928 (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
14929 non-freeform-supporting compilers. Document freeform flags.
14931 2003-10-03 Akim Demaille <akim@epita.fr>
14933 * configure.ac: Look for emacs, not macs.
14934 Reported by Eric Sunshine.
14936 2003-10-03 Akim Demaille <akim@epita.fr>
14938 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
14939 * bin/autoreconf.in (autoreconf_current_directory): Create the
14940 AUX_DIR if needed, for sake of automake --add-missing etc.
14941 Suggested by Alexandre Duret-Lutz.
14943 2003-10-03 Akim Demaille <akim@epita.fr>
14945 * configure.ac: Quotation and formatting changes.
14946 (EMACS): Don't set it if it is not recent enough to support
14948 From Eric Sunshine.
14950 2003-10-02 Akim Demaille <akim@epita.fr>
14952 * bin/ifnames.in (&scan_file): Skip C++ comments.
14953 From Jeremy Yallop.
14955 2003-10-01 Pavel Roskin <proski@gnu.org>
14957 * doc/autoconf.texi (Particular Structure Checks):
14958 Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
14960 2003-10-01 Akim Demaille <akim@epita.fr>
14964 2003-09-30 Paul Eggert <eggert@twinsun.com>
14966 * lib/Autom4te/XFile.pm: Use Errno.
14967 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
14968 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
14970 2003-09-30 Akim Demaille <akim@epita.fr>
14972 * config/announce-gen (&print_news_deltas): Extracted from...
14973 (&print_changelog_deltas): here.
14974 (&news_file): Rename as...
14975 (@news_file): this.
14977 2003-09-30 Nicolas Joly <njoly@pasteur.fr>
14979 * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
14980 have been created when invoking the compiler.
14981 * tests/fortran.at (GNU Fortran 77): Quote $G77.
14983 2003-09-29 Akim Demaille <akim@epita.fr>
14987 * config/mkinstalldirs: Upgrade.
14989 2003-09-28 Paul Eggert <eggert@twinsun.com>
14991 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
14992 Problem reported by Lars J. Aas in
14993 <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
14994 (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
14995 "test -d ./-p && rmdir ./-p". Suggested by Andreas Schwab in:
14996 http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
14998 2003-09-26 Akim Demaille <akim@epita.fr>
15000 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
15001 directory for AC_CONFIG_COMMANDS' first argument exists.
15002 This makes valid the invocation of _AC_SRCPATH that follows.
15003 Reported by Eric Sunshine.
15004 * doc/autoconf.texi (Configuration Commands): Adjust.
15006 2003-09-26 Akim Demaille <akim@epita.fr>
15008 * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
15009 Reported by Ralf Corsepius.
15011 2003-09-26 Akim Demaille <akim@epita.fr>
15013 * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
15015 Actually, use AU_ALIAS.
15018 2003-09-26 Paul Eggert <eggert@twinsun.com>
15020 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
15021 rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
15022 Problem reported by Eric Sunshine in:
15023 http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
15025 2003-09-26 Akim Demaille <akim@epita.fr>
15027 The test suite are sometimes assigning timings incorrectly.
15028 Reported by Henk Krus.
15029 Diagnosed by Nicolas Joly.
15031 * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
15033 Instead of making AT_help a sequence of assignments to grow
15034 $at_help_all, just make AT_help_all be the growing contents of
15035 $at_help_all, and make a single assignment in...
15037 (at_times_skip): Flip the meaning and rename as...
15038 (at_times_p): this.
15039 (AT_INIT): When summarizing the test that ran, remove
15040 $at_times_file after use, and check it is present before trying to
15043 2003-09-25 Akim Demaille <akim@epita.fr>
15047 * bin/Makefile.am (edit): Handle '@configure_input@'.
15048 (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
15049 (ifnames): chmod -w.
15050 * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
15051 executables, not bin/ executables! Otherwise all the magic needed
15052 to find non installed files is turned off. This caused a failure
15053 of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
15054 as found in its environment (sent by tests/autoreconf): pointing
15055 to bin/autom4te that could not find its files.
15056 * tests/mktests.sh: Force the replacement of generated files, for
15057 the sake of "mv" program that are interactive when overwriting a
15059 * config/install-sh: Upgrade from CVS Automake.
15061 2003-09-23 Paul Eggert <eggert@twinsun.com>
15063 * doc/autoconf.texi (Limitations of Builtins): Document test -h
15064 versus test -L issues.
15066 2003-09-23 Daniel Jacobowitz <drow@mvista.com> and
15067 Paul Eggert <eggert@twinsun.com>
15069 Trivial change to support GCC's configuration procedure.
15070 * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
15071 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
15072 about inconsistency if the preprocessor is set to give errors for
15074 * doc/autoconf.texi (C Compiler Characteristics): Document this.
15076 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
15078 * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
15079 and XFile.pm from Automake.
15080 * lib/Autom4te/XFile.pm: Update from Automake.
15082 2003-09-12 Akim Demaille <akim@epita.fr>
15086 2003-09-12 Akim Demaille <akim@epita.fr>
15088 * config/config.guess, config/config.sub, config/missing,
15089 * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
15092 2003-09-12 Akim Demaille <akim@epita.fr>
15094 * doc/autoconf.texi (Header Portability): Promote linux/types.h,
15097 2003-09-11 Akim Demaille <akim@epita.fr>
15099 * doc/autoconf.texi (Header Portability): linux/random.h.
15100 From Peter Hendrickson.
15102 2003-09-10 Akim Demaille <akim@epita.fr>
15104 * tests/mktests.sh (au_exclude_egrep): Make it harder to be
15105 willing to edit the output files.
15107 2003-09-10 Akim Demaille <akim@epita.fr>
15109 * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
15110 and AC_FC_FREEFORM.
15111 * tests/mktests.sh: Skip AC_FC_SRCEXT.
15112 * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
15114 2003-09-09 Akim Demaille <akim@epita.fr>
15116 * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
15117 Reported by Gary Vaughan.
15118 * bin/autom4te.in (handle_m4): Likewise.
15120 2003-09-09 Akim Demaille <akim@epita.fr>
15122 * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
15125 2003-09-07 Paul Eggert <eggert@twinsun.com>
15127 * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
15128 Improve the accuracy of the wording about obsolescence.
15129 From a suggestion by Ian Lance Taylor in
15130 <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
15132 2003-09-05 Paul Eggert <eggert@twinsun.com>
15134 * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
15135 for the benefit of g77 3.2. Fix suggested by Steven G. Johnson.
15137 2003-09-04 Akim Demaille <akim@epita.fr>
15139 * tests/mktests.sh (ac_exclude_list): Fix the filtering of
15142 2003-09-04 Akim Demaille <akim@epita.fr>
15144 * bin/autom4te.in: Use &fatal where more appropriate than &error.
15145 (freeze): When exiting, use $exit_code.
15146 * lib/autoconf/fortran.m4: Comment changes.
15148 2003-09-04 Akim Demaille <akim@epita.fr>
15150 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
15152 2003-09-02 Steven G. Johnson <stevenj@alum.mit.edu>
15154 Add support for newer Fortran dialects. The F77 interface is
15155 unchanged, and continues to support Fortran 77. New FC macros
15156 correspond to all the old F77 macros, with output variables FC,
15157 FCFLAGS, and FCLIBS. AC_PROG_FC defaults to picking the newest
15158 available dialect, but older dialects can be specified. There are
15159 new macros AC_FC_SRCEXT to set the source extension, and
15160 AC_FC_FREEFORM to accept free-form source files.
15162 * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
15164 (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
15165 * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
15166 _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
15167 _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
15168 AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
15169 AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
15170 _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
15171 _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
15172 AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
15173 _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
15174 AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
15175 _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
15176 AC_FC_SRCEXT, AC_FC_FREEFORM):
15178 (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
15179 AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
15180 AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
15181 Rewrite in terms of the above.
15182 (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
15183 * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
15184 * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
15185 AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
15187 2003-09-02 Paul Eggert <eggert@twinsun.com>
15189 * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
15190 Document problems with timestamp resolution that 'make', 'cp -p', and
15193 2003-08-27 Akim Demaille <akim@epita.fr>
15195 * tests/m4sugar.at (cross_warning): Make sure to enable the
15196 output, so that we can track spurious m4sugar output.
15197 * tests/local.at: Require 2.57.
15198 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
15199 are defaulted by AT_CHECK anyway.
15200 Use AT_CHECK_AUTOM4TE.
15201 * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
15204 2003-08-27 Akim Demaille <akim@epita.fr>
15206 * bin/autoheader.in: Issue the "Using auxiliary..." message only
15207 when -Wobsolete is set.
15208 Set it on by default.
15209 Suggested by Klee Dienes.
15211 2003-08-27 Akim Demaille <akim@epita.fr>
15213 * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
15215 From Guido Draheim.
15217 2003-08-26 Akim Demaille <akim@epita.fr>
15219 * doc/autoconf.texi (Output): Make clear that one can run code
15222 2003-08-25 Akim Demaille <akim@epita.fr>
15224 * config/announce-gen, GNUmakefile, Makefile.maint: Update from
15227 2003-08-25 Alexandre Duret-Lutz <adl@gnu.org>
15229 * bin/autoreconf.in (parse_args): Do not pass --no-force to
15230 Automake versions prior to 1.8.
15232 2003-08-25 Akim Demaille <akim@epita.fr>
15234 * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
15235 From Ville Karaila.
15237 2003-08-24 Akim Demaille <akim@epita.fr>
15239 * configure.ac: Bump to 2.57c.
15241 2003-08-22 Akim Demaille <akim@epita.fr>
15245 * Makefile.cfg (local-checks-to-skip): New.
15246 * Makefile.maint (local-check): Rename as...
15247 (local-checks-available): this.
15248 (local-check): New.
15250 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
15251 * configure.ac: Require Automake 1.7.6.
15253 2003-08-22 Akim Demaille <akim@epita.fr>
15255 Output stack traces in warnings.
15257 * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
15258 Replace the former...
15259 (m4_warn): Pass the call stack to _m4_warn.
15260 * bin/autom4te.in: Adjust to output the call stack.
15261 * tests/m4sugar.at (m4@&t@_warn): Adjust.
15263 2003-08-22 Akim Demaille <akim@epita.fr>
15265 * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
15266 * bin/autom4te.in: Adjust.
15268 2003-08-21 Akim Demaille <akim@epita.fr>
15270 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
15271 (&verbose): Remove.
15272 (&getopt): Adjust the note and verb channels, depending upon
15274 * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
15275 * bin/autoupdate.in: Adjust.
15276 Use &verb, not &verbose.
15278 2003-08-21 Akim Demaille <akim@epita.fr>
15280 * bin/autoheader.in (&parse_args): Use &parse_warnings and
15282 ($help): Use Autom4te::ChannelDefs::usage.
15283 * bin/autoscan.in: Use Autom4te::ChannelDefs.
15284 * lib/Autom4te/General.pm: Don't export error: you don't own it.
15286 2003-08-21 Akim Demaille <akim@epita.fr>
15288 First stab at preserving warnings between calls to autom4te,
15289 including when the cache is used.
15291 There are still several issues: (i) there are too many runs of m4
15292 (one for include, one for warnings, and some more), (ii) warnings
15293 spreading on several lines are not handled gracefully, (iii) the
15294 code meant to have the call stack display for errors does not work
15295 (its handling should move from m4 to autom4te).
15297 * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
15299 (@preselect): Add m4_warn.
15300 ($exit_status): Remove, use $exit_code.
15301 ($help): Use Autom4te::ChannelDefs::usage.
15302 (&handle_m4): No longer define the m4_warnings.
15303 At each run, extract and report the warnings.
15304 Always cache the result, including if the exit status is on
15305 failure, since if nothing changes, we should result in the same
15306 failure, hence we can use the cache.
15307 * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
15308 (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
15310 (m4_warn): Redefine as a do-nothing: it is its invocation that
15311 matters, as warnings are now reported via traces.
15312 * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
15313 the contents of m4_warn: make it _call_ m4_warn, so that tracing
15314 the latter reveals calls to the former.
15318 * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
15320 2003-08-21 Akim Demaille <akim@epita.fr>
15322 * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
15325 2003-08-21 Akim Demaille <akim@epita.fr>
15327 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
15329 * lib/Autom4te/ChannelDefs.pm: Doc typos.
15330 (&parse_warnings): Accept a list of warning requests.
15331 (&usage): Return a string, not a side effect.
15332 (cross): New warning category.
15334 2003-08-21 Akim Demaille <akim@epita.fr>
15336 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
15337 (&require_configure_ac): Accept an optional directory argument.
15338 ($configure_ac): Remove.
15339 * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
15340 (&catfile): Remove.
15341 * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
15342 * bin/autoscan.in: Adjust.
15344 2003-08-20 Akim Demaille <akim@epita.fr>
15346 * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
15347 Reported by Alexandre Duret-Lutz.
15349 2003-08-20 Akim Demaille <akim@epita.fr>
15351 * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
15352 * bin/autom4te: Adjust.
15353 In particular, be Autoconf tools are really silent when properly
15354 working, bind the verbosity of the 'note' channel to $verbose.
15355 * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
15356 (&xsystem, &contents): Remove, since they are exported by...
15357 * lib/Autom4te/FileUtils.pm: this.
15359 * lib/Autom4te/General.pm (&up_to_date_p): Move to...
15360 * lib/Autom4te/FileUtils.pm: here.
15362 2003-08-20 Akim Demaille <akim@epita.fr>
15364 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
15365 * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
15368 2003-08-20 Akim Demaille <akim@epita.fr>
15370 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
15371 (autom4te-update): New.
15372 * Makefile.cfg (update): Bind autom4te-update.
15374 2003-08-19 Derek Price <derek@ximbiot.com>
15376 * lib/autotest/general.m4: Comment various HELP_* diversions.
15377 (PARSE_ARGS_BEGIN): New section for option parsing related
15379 (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
15380 package specific options and associated help.
15382 2003-08-19 Akim Demaille <akim@epita.fr>
15384 * config/announce-gen, Makefile.cfg: New.
15385 * Makefile.am: Adjust.
15386 * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
15388 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
15390 * lib/autom4te.in (Automake-preselections): Preselect
15391 AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
15394 2003-08-19 Alexandre Duret-Lutz <adl@gnu.org>
15396 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
15397 (Autoconf-without-aclocal-m4): ... this new language.
15398 * doc/autoconf.texi (autom4te Invocation): Mention
15399 Autoconf-without-aclocal-m4.
15401 2003-08-18 Derek Price <derek@ximbiot.com>
15403 * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
15404 RUN-IF-PASS optional arguments.
15406 2003-08-18 Derek Price <derek@ximbiot.com>
15408 * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
15410 2003-08-16 Derek Price <derek@ximbiot.com>
15412 * doc/autoconf.texi (Writing testsuite.at): Document defaults for
15413 STDOUT & STDERR arguments.
15415 2003-08-14 Derek Price <derek@ximbiot.com>
15417 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
15418 DESCRIPTION rather than FILE and LINE. Shorten result to fit in new,
15419 shorter column three. Add DESCRIPTION to log file content.
15421 2003-08-13 Derek Price <derek@ximbiot.com>
15423 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
15426 2003-08-12 Derek Price <derek@ximbiot.com>
15428 * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
15429 (AT_CHECK_NOESCAPE): Move core functionality to...
15430 (_AT_CHECK): ...this new macro.
15432 2003-08-07 Derek Price <derek@ximbiot.com>
15434 * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
15435 (AT_CHECK_NOESCAPE): ...to this new macro.
15437 2003-07-31 Paul Eggert <eggert@twinsun.com>
15439 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
15440 in Bash 2.01. Problem reported by Brian Gough in
15441 <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
15443 2003-07-25 John W. Eaton <jwe@bevo.che.wisc.edu>
15445 * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
15446 -lcrt1.o, for OS X. (trivial change)
15448 2003-07-07 Paul Eggert <eggert@twinsun.com>
15450 * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
15451 inside '#ifndef __cplusplus'. Problem reported by
15454 2003-07-06 Bill Clarke <llib@computer.org>
15456 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
15457 'long', not 'int', for benefit of Sun's recent C++ compilers
15458 (trivial change). See:
15459 http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
15460 (This really should be 'intptr_t', not 'long', but that would
15463 2003-06-25 Akim Demaille <akim@epita.fr>
15465 * lib/Makefile.am (autom4te.cfg): Make it read only.
15466 Depend on Makefile since it contains substitutions.
15467 From Paolo Bonzini.
15468 * lib/autom4te.in (args): Add local.at? for Autotest args.
15469 This change was made on autom4te.cfg which is generated.
15470 Reported by Raja R. Harinath.
15472 2003-06-25 Akim Demaille <akim@epita.fr>
15474 * doc/autoconf.texi (Header Portability): sys/mount.h.
15475 From Gareth McCaughan.
15477 2003-06-23 Akim Demaille <akim@epita.fr>
15479 * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
15480 not all of them. This fixes 1. the fact that when testing
15481 Autoconf there are many many config.log, 2. the incorrect use of
15482 top_srcdir to find config.log.
15483 Don't mix the detailed output of failed test with the summary of
15484 failures. Rather, append detailed log afterwards.
15486 2003-06-23 Akim Demaille <akim@epita.fr>
15488 * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
15489 always run: output config.log on $at_group_log.
15491 2003-06-23 Akim Demaille <akim@epita.fr>
15493 * tests/torture.at (#define header templates): Don't use quotes in
15494 C++ comments as it puzzles Emacs' sh font-lock-mode.
15496 2003-06-23 Akim Demaille <akim@epita.fr>
15498 * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
15499 * lib/autom4te.cfg (args): Add local.at? for Autotest args.
15500 * tests/atspecific.m4: Rename as...
15501 * tests/local.at: This.
15502 * tests/suite.at: Move the globals into...
15503 * tests/local.at: here.
15504 * tests/Makefile.am: Adjust.
15505 * doc/autoconf.texi (testsuite Scripts): Adjust.
15507 2003-06-21 Kevin Ryde <user42@zip.com.au>
15509 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
15510 error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
15511 ensuring we add -std1 for full-ANSI.
15513 * doc/autoconf.texi (hdrindex): New macro.
15514 Add index entries for portability of various standard header files.
15516 2003-06-20 Akim Demaille <akim@epita.fr>
15518 * configure.ac: Bump to 2.57b.
15520 2003-06-20 Akim Demaille <akim@epita.fr>
15524 2003-06-20 Akim Demaille <akim@epita.fr>
15526 * bin/autom4te.in: Don't rely on $HOME being defined.
15527 Reported by Marc Espie as PR/233.
15529 2003-06-20 Akim Demaille <akim@epita.fr>
15531 * lib/autotest/general.m4: Use at_times_file only if used.
15534 2003-06-20 Akim Demaille <akim@epita.fr>
15536 * config/config.guess, config/config.sub, config/elisp-comp,
15537 * config/install-sh, config/mkinstalldirs, doc/standards.texi:
15538 Update from masters.
15540 2003-06-11 Paolo Bonzini <bonzini@gnu.org>
15542 * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
15543 * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
15544 (TEST_SCRIPT): New diversion.
15545 (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
15546 (AT_CLEANUP): ...to here. Undivert TEST_SCRIPT.
15547 (AT_INIT): Support for expected failures.
15549 2003-06-02 Akim Demaille <akim@epita.fr>
15551 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
15553 * lib/Autom4te/General.pm (&backname): Remove, no longer used by
15554 Autoconf nor Automake.
15555 (&contents): New, from Automake.
15558 2003-05-28 Paul Eggert <eggert@twinsun.com>
15560 * NEWS, doc/autoconf.texi (Particular Functions),
15561 lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
15562 is the inverse of localtime.
15564 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
15566 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
15567 (handle_exec_errors): New function. Work around $! being
15568 altered by WEXITSTATUS.
15569 (xqx, xsystem): Use handle_exec_errors.
15571 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
15573 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
15574 Do not call `_exit()', simply modify `$?'.
15575 (xsystem): Reset $! before running system, and check it afterward.
15576 * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
15577 63 for version mismatches.
15579 2003-05-23 Akim Demaille <akim@epita.fr>
15581 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
15582 Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
15583 the middle of a line).
15584 * lib/m4sugar/m4sugar.m4: Likewise.
15585 Remove useless spaces in comments.
15587 2003-05-23 Akim Demaille <akim@epita.fr>
15589 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
15590 exit 63, so that we (or Automake's "missing") can tell the
15591 difference with a plain failure.
15592 * doc/autoconf.texi (Notices): Adjust.
15594 2003-05-23 Akim Demaille <akim@epita.fr>
15596 * Makefile.am, bin/Makefile.am, config/Makefile.am,
15597 * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
15598 White spaces cleanup.
15600 2003-05-22 Jim Meyering <jim@meyering.net>
15601 Paul Eggert <eggert@twinsun.com>
15603 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
15604 Remove `#include <stdlib.h>' from the list; we should never
15605 make confdefs.h include <stdlib.h> or <cstdlib>, because the
15606 resulting namespace pollution would cause other tests to fail.
15607 Configure scripts run with some older versions of g++ and HP's
15608 aCC would fail due to such an #include. Problems reported by
15609 Matthew Mueller in <http://bugs.debian.org/120704> and by
15611 <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
15612 In the test, use the test declaration before including <stdlib.h>,
15613 as that's closer to how it'll be used.
15615 2003-05-23 Akim Demaille <akim@epita.fr>
15617 * doc/autoconf.texi (Header Portability): ucred.h.
15620 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
15622 Overhaul Autotest's logging: generate separate log files
15623 in testsuite.dir/NNN/testsuite.log, and append them to
15624 testsuite.log instead of re-running the test verbosely.
15626 * lib/autotest/general.m4 (AT_INIT): Use a single redirected
15627 file descriptor, write 0 to at_status_file instead of setting
15628 at_status=0, initialize some new variables (at_status_file,
15629 at_group_log, at_suite_log, at_tee_pipe). Remove the cruft
15630 to rerun the tests, instead append the at_group_log to the
15631 at_suite_log when a test fails.
15632 (AT_SETUP): pipe the test case's output into at_tee_pipe,
15633 with the AS_MESSAGE_LOG_FD redirected to stdout.
15634 (AT_CLEANUP): save the output status in $at_status_file
15635 and restore it, redirect the AS_MESSAGE_LOG_FD back to
15636 its original place.
15637 (AT_CHECK): since tests are run with a redirected stdout,
15638 and used to be re-run in verbose mode, turn some $at_verbose
15639 into echo, and don't redirect the output of testing stdout
15642 * lib/autotest/autoconf.texi (testsuite Scripts): Update
15643 the name of the debugging directory and information about
15646 2003-05-22 Paolo Bonzini <bonzini@gnu.org>
15648 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
15651 2003-05-22 Akim Demaille <akim@epita.fr>
15653 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
15654 * lib/autoconf/fortran.m4 lib/autoconf/general.m4
15655 * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
15656 * lib/autoconf/status.m4: Fix and adjust copyright notices.
15658 2003-05-22 Akim Demaille <akim@epita.fr>
15660 * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
15661 * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
15662 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
15663 * lib/autoconf/general.m4, lib/autoconf/headers.m4,
15664 * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
15665 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
15666 * lib/autoconf/status.m4, lib/autoconf/types.m4,
15667 * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
15668 * tests/atspecific.m4, tests/base.at, tests/compile.at,
15669 * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
15670 * tests/tools.at, tests/torture.at:
15671 Whitespace clean up.
15672 Suggested by Jim Meyering.
15674 2003-05-22 Akim Demaille <akim@epita.fr>
15676 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
15677 ' \t' as '\t ' so that Emacs' whitespace.el keep it.
15678 Reported by Jim Meyering.
15680 2003-05-22 Akim Demaille <akim@epita.fr>
15682 * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
15683 Add AC_HELP_STRING to the obsolete macros section.
15685 Use '@.' for sentences that ended in a capital letter.
15688 2003-05-22 Akim Demaille <akim@epita.fr>
15690 * config/config.guess, config/config.sub, config/elisp-comp,
15691 * config/install-sh, config/mdate-sh, config/mkinstalldirs,
15692 * config/texinfo.tex, doc/standards.texi: Update from masters.
15694 2003-05-21 Paolo Bonzini <bonzini@gnu.org>
15696 * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
15699 2003-05-21 Akim Demaille <akim@epita.fr>
15701 * bin/autoupdate.in ($m4): Fix quotation.
15702 Reported by Martin Mokrejs.
15704 2003-05-19 Paul Eggert <eggert@twinsun.com>
15706 * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
15707 Remove non-ASCII characters.
15709 2003-05-18 Paolo Bonzini <bonzini@gnu.org>
15711 * tests/semantics.at (AC_SEARCH_LIBS): New test.
15712 * tests/semantics.at (AC_CHECK_HEADERS_OLD,
15713 AC_CHECK_HEADERS_NEW): New tests.
15715 2003-05-17 Akim Demaille <akim@epita.fr>
15717 * lib/autoconf/functions.m4: Use the default includes so that
15718 memcmp be declared before being tested.
15719 Reported by Sander Niemeijer.
15720 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
15721 * doc/autoconf.texi (Default Includes): Document
15722 AC_INCLUDES_DEFAULT.
15724 2003-05-17 Akim Demaille <akim@epita.fr>
15726 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
15727 * doc/autoconf.texi (Obsolete Macros): Adjust.
15728 Reported by Werner LEMBERG and Debian Bug 190886.
15730 2003-05-16 Akim Demaille <akim@epita.fr>
15732 * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
15733 user name space clashes.
15734 Reported by Bruno Haible.
15736 2003-05-16 Akim Demaille <akim@epita.fr>
15738 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
15739 * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
15740 them uniform, and more robust to Perl special characters.
15741 Reported by Martin Mokrejs.
15743 2003-05-14 Akim Demaille <akim@epita.fr>
15745 * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
15747 2003-05-14 Akim Demaille <akim@epita.fr>
15749 * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
15752 2003-05-12 Akim Demaille <akim@epita.fr>
15754 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
15756 From Matthias Andree.
15758 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
15760 * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
15763 2003-05-06 Akim Demaille <akim@epita.fr>
15765 Don't try to be smart with aclocal 1.8+ because (i) aclocal no
15766 longer updates aclocal.m4 if useless, (ii) if a file m4_included
15767 by aclocal.m4 is changed it might require the importing of another
15768 m4 extension file, i.e., aclocal must be run.
15770 * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
15771 (&parse_args): Use --force with aclocal if required and supported.
15772 (&autoreconf_current_directory): Use &run_aclocal.
15774 2003-05-06 Akim Demaille <akim@epita.fr>
15776 Lock autom4te's cache.
15778 * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
15779 * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
15780 argument instead of a file name, so that the request file remains
15781 open during the whole autom4te run.
15782 ($icache_file): New.
15783 (&freeze): Lock the $icache_file.
15785 2003-04-29 Derek Price <derek@ximbiot.com>
15787 * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
15788 seperator with m4_append_uniq(). It doesn't work.
15789 (AT_CLEANUP): Add `;' to end of at_help_all.
15790 (AT_INIT): Allow --keywords to be specified more than once. When
15791 grepping $at_help_all for keywords, use the field and keyword
15792 seperators to ensure a complete keyword match. Alter at_prev handling
15793 to support the new --keywords behavior.
15795 2003-04-27 Karl Berry <karl@freefriends.org>
15797 * doc/autoconf.texi: Make the dir entries in the autoconf manual
15798 align better with others. I also made some of the individual
15799 entries on one line, for brevity and to make it easier for me to
15800 sort my dir-example file in the Texinfo distribution :).
15802 2003-04-12 Jim Meyering <jim@meyering.net>
15804 * NEWS: Mention the new macro.
15805 * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
15806 * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
15807 * tests/c.at: Test AC_C_RESTRICT.
15808 * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
15810 2003-04-08 Akim Demaille <akim@epita.fr>
15812 * bin/ifnames.in: Skip C++ comments.
15813 From Jeremy Yallop.
15815 2003-04-08 Akim Demaille <akim@epita.fr>
15817 * GNUmakefile (SHELL): Don't assume sh is in /bin/.
15818 From Ilya Zakharevich.
15820 2003-04-08 Akim Demaille <akim@epita.fr>
15822 * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
15823 net/if.h, stdlib.h.
15825 2003-04-01 Derek Price <derek@ximbiot.com>
15827 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
15828 from Akim's checkin of 2003-03-29.
15830 2003-04-01 Derek Price <derek@ximbiot.com>
15832 * tests/torture.at (Configuring subdirectories): Add missing
15833 close-quote for Akim's change from 2003-03-28.
15835 2003-04-01 Akim Demaille <akim@epita.fr>
15837 * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
15838 (AC, AT, MS): these.
15839 (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
15842 * doc/Makefile.am (CLEANFILES): Adjust.
15843 (TEXI2DVI): Make it --batch.
15845 2003-03-31 Derek Price <derek@ximbiot.com>
15847 * lib/autotest/general.m4: Revert the checkin from 2003-03-27
15848 which removed the main loop.
15849 Thanks to Akim Demaille.
15851 2003-03-29 Akim Demaille <akim@epita.fr>
15853 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
15855 From Ilya Zakharevich.
15857 2003-03-29 Akim Demaille <akim@epita.fr>
15859 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
15860 documentation to read is Autoconf's.
15861 Suggested by Paul Eggert.
15863 2003-03-28 Akim Demaille <akim@epita.fr>
15865 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
15866 reading the section "Present But Cannot Be Compiled" when the
15867 header causes problems.
15869 2003-03-28 Akim Demaille <akim@epita.fr>
15871 * tests/torture.at (Configuring subdirectories): Require aclocal
15872 1.4, otherwise the test fails, as it does support configure.ac.
15873 This fixes the "test 40 failed" bug reports.
15875 2003-03-28 Akim Demaille <akim@epita.fr>
15877 * doc/autoconf.texi (C Compiler): `#line' portability.
15878 From Paul Eggert and Nelson H. F. Beebe.
15880 2003-03-27 Derek Price <derek@ximbiot.com>
15882 * lib/autotest/general.m4: Eliminate main loop and reorganize test
15883 layout in order to allow scripting around test groups.
15885 2003-03-27 Derek Price <derek@ximbiot.com>
15887 * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
15888 HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
15889 use new diversions in preparation for accepting new arguments and
15890 allowing scripting around tests.
15891 (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
15893 2003-03-26 Derek Price <derek@ximbiot.com>
15895 * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
15896 obsolete AC_HELP_STRING.
15897 (AC_HELP_STRING): AU_DEFUN to...
15898 * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
15899 * tests/m4sh.at (AS_HELP_STRING): New test.
15901 * tests/acgeneral.at: Regenerated.
15903 2003-03-26 Derek Price <derek@ximbiot.com>
15905 * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
15906 sense. Verbosify the diversion definitions comment.
15908 2003-03-26 Derek Price <derek@ximbiot.com>
15910 * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
15913 2003-03-21 Eric Siegerman <eric_97@pobox.com>
15915 * doc/autoconf.texi (Present But Cannot Be Compiled):
15916 Grammar fixes and minor rewording. (trivial change)
15918 2003-03-06 Paul Eggert <eggert@twinsun.com>
15920 Work around a problem noted by Nelson H. F. Beebe with coreutils
15921 4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
15922 2002/05/09) rejects '#line 32768 "configure"' because the line
15924 * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
15926 * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
15927 * doc/autoconf.texi (Generating Sources): Document this.
15929 2003-03-01 Richard Dawe <rich@phekda.freeserve.co.uk>
15931 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
15932 file name for the m4 program, when it has an "exe" file extension.
15933 DJGPP's error messages include the error code in brackets -
15934 remove the error code during normalization.
15936 2003-02-28 Akim Demaille <akim@epita.fr>
15938 * doc/autoconf.texi (Present But Cannot Be Compiled): New.
15940 2003-02-28 Alexandre Duret-Lutz <adl@gnu.org>
15942 * doc/autoconf.texi (Limitations of Make): Remove the section
15943 about `$<' in inference rules, it was a bogus interpretation of
15944 an old Automake change. Discuss NetBSD, FreeBSD, OpenBSD, and
15945 Tru64 make in the "target lookup" section.
15946 (Automake): Automake 1.5+ no longer requires special tools to be
15947 present on the developer's host.
15949 2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
15951 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
15952 to a shell that can handle redirection or quoting correctly.
15953 Override SHELL with the shell detected by configure.
15954 Use of $^O suggested by Tim van Holder.
15955 * bin/autom4te.in (BEGIN): Likewise.
15956 * bin/autoreconf.in (BEGIN): Likewise.
15957 * bin/autoscan.in (BEGIN): Likewise.
15958 * bin/autoupdate.in (BEGIN): Likewise.
15959 * bin/ifnames.in (BEGIN): Likewise.
15961 * bin/ifnames.in: Add final newline to help and version messages.
15963 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
15964 to cope with DOS-style absolute paths, when constructing
15967 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
15968 When constructing paths with IFS=:, quote the path. If we're
15969 constructing a DOS-style absolute path, we don't want to split it
15972 * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
15975 2003-02-25 Pavel Roskin <proski@gnu.org>
15977 * bin/autoheader.in: Add missing newline when printing
15978 suggestion how change AC_DEFINE call.
15980 2003-02-24 Paul Eggert <eggert@twinsun.com>
15982 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
15983 2002-09-01 patch by replacing "test -n" with "test -z".
15984 This fixes a bug found by Jeff Painter and reported by Tom Epperly in
15985 <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
15987 * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
15988 to fix a mismatch between example and discussion.
15990 2003-02-24 Kevin Ryde <user42@zip.com.au>
15992 * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
15993 format starting with "-".
15995 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
15997 * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
15998 is not portable inside Makefile.
16000 2003-02-20 Akim Demaille <akim@epita.fr>
16002 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
16003 compiler says yeah, but preproc says nope, compiler is right.
16004 Conversely, prompt the reader to send a bug report to the
16005 maintainers of the package, not of Autoconf.
16007 2003-02-20 Klee Dienes <kdienes@apple.com>
16009 * bin/autoreconf.in (autoreconf_current_directory): Properly
16010 handle an empty aclocal.m4.
16012 2003-02-20 Akim Demaille <akim@epita.fr>
16014 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
16015 $ac_prefix_program.
16018 2002-12-23 Paul Eggert <eggert@twinsun.com>
16020 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
16021 innocuous variant befor including <limits.h> or <assert.h>. This
16022 works around a bug reported by Albert Chin: HP-UX 11i
16023 (and earlier versions) have a <limits.h> that declares
16024 gettimeofday and many other functions.
16026 2002-12-03 Paul Eggert <eggert@twinsun.com>
16030 * NEWS, configure.ac: Update version.
16032 * doc/fdl.texi: Upgrade to FDL version 1.2.
16034 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
16035 nontrivially in main's body, so that f's external declaration is
16036 not optimized away in AIX. This should fix the bug reported by
16038 <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
16040 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
16041 _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
16042 defined, to support freestanding compilers. This should fix the
16043 bug reported by Momchil Velkov in
16044 <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
16046 * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
16047 arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
16048 obsolete AC_CHECK_TYPE. The missing empty arg was reported
16049 by Simon Josefsson in
16050 <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
16052 * Makefile.maint (www-gnu): New macro.
16053 (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
16054 the location has moved.
16056 2002-12-02 Martin Frydl <martin@systinet.com>
16058 * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
16059 \(.*\) match is too long and there is something more to be checked.
16060 <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
16062 2002-11-15 Akim Demaille <akim@epita.fr>
16066 * config/install-sh: chmod +x.
16068 * config/move-if-change: Indenting changes.
16069 * Makefile.am (AUTOMAKE_OPTIONS): Move to...
16070 * configure.ac (AM_INIT_AUTOMAKE): here.
16073 2002-11-14 Akim Demaille <akim@epita.fr>
16077 * config/config.guess, config/config.sub, config/install-sh:
16078 Update from masters.
16080 2002-11-14 Akim Demaille <akim@epita.fr>
16082 * Makefile.maint: Sync with Bison, i.e.:
16083 (po-check): Scan .l and .y files instead of the
16084 .c and the .h files that they generate. This fixes the bug
16085 reported by Tim Van Holder in:
16086 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
16087 Look for N_ as well as for _. Try to avoid matching #define for
16091 2002-11-14 Akim Demaille <akim@epita.fr>
16093 * doc/autoconf.texi (C Compiler): Compiling several files at once.
16094 From Paul Eggert and Albert Chin-A-Young.
16096 2002-11-14 Akim Demaille <akim@epita.fr>
16098 * doc/autoconf.texi (C Compiler): Solitary backslashes.
16099 From Paul Eggert and Albert Chin-A-Young.
16101 2002-11-14 Kevin Ryde <user42@zip.com.au>
16103 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
16104 than assigning in main, to avoid HP cc +O3 optimizing it away.
16106 2002-11-12 Peter Eisentraut <peter_e@gmx.net>
16108 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
16109 option. Process --recheck after parsing all options. Pass -q
16110 option to configure on --recheck.
16111 (AC_OUTPUT): Pass -q from configure to config.status.
16112 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
16113 arguments to record.
16114 * doc/autoconf.texi (config.status Invocation): Document
16115 config.status -q option.
16117 2002-11-07 Alexandre Duret-Lutz <adl@gnu.org>
16119 * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
16120 Makefile.in if Makefile.am exists.
16121 (output): Strip `.am' from Makefiles. Don't
16122 output AC_CONFIG_FILES if no Makefiles were found.
16124 2002-11-07 Akim Demaille <akim@epita.fr>
16126 * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
16127 (local_updates): New.
16128 * Makefile.maint: Update, from CVS Bison.
16129 (local_updates): New.
16131 2002-11-06 Akim Demaille <akim@epita.fr>
16133 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
16134 declaration in extern "C" too.
16135 Reported by Roberto Bagnara.
16137 2002-11-06 Akim Demaille <akim@epita.fr>
16139 * tests/torture.at (Configuring subdirectories): Don't use grep
16141 * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
16142 Reported by Ezra Peisach.
16144 2002-11-05 Akim Demaille <akim@epita.fr>
16146 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
16148 We _have_ to stop using the old compatibility scheme that tried to
16149 avoid useless backslashes because Libtool 1.4.3 contains a
16150 AC_DEFINE([error_t], [int],
16151 [Define to a type to use for \`error_t' if it is not
16152 otherwise available.])
16153 We _have_ to quote the single quote and backslashes with \. The
16154 old compatibility scheme saw that ` was backslashed, and therefore
16155 did not quote the single quote. Hence before this patch, Autoconf
16156 was not compatible with Libtool.
16158 2002-11-04 Paul Eggert <eggert@twinsun.com>
16160 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
16161 too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
16162 LC_NAME, LC_PAPER, LC_TELEPHONE.
16163 * doc/autoconf.texi (Special Shell Variables): Mention those vars.
16165 2002-11-04 Akim Demaille <akim@epita.fr>
16169 * Makefile.maint (update, cvs-update, po-update, do-po-update):
16171 * config/texinfo.tex: Update.
16173 2002-11-03 Akim Demaille <akim@epita.fr>
16175 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
16177 (&autoreconf): here.
16178 ($help, $make, &parse_args, &autoreconf_current_directory):
16180 * doc/autoconf.texi (autoreconf Invocation): Adjust.
16182 2002-10-31 Bruno Haible <bruno@clisp.org>
16184 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
16185 Change name of cache variable to ac_cv_func_malloc_0_nonnull.
16186 (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
16187 (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
16188 to ac_cv_func_realloc_0_nonnull.
16189 (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
16191 2002-10-31 Akim Demaille <akim@epita.fr>
16193 The test suite was no longer checking for trailing envvars and files.
16195 * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
16196 (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
16198 2002-10-31 Akim Demaille <akim@epita.fr>
16200 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
16201 `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
16202 Make variable, not a shell variable.
16203 Suggested by Bruno Haible.
16205 2002-10-31 Akim Demaille <akim@epita.fr>
16207 * bin/autom4te.in (load_configuration): Reject #args out of any
16210 2002-10-31 Akim Demaille <akim@epita.fr>
16212 * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
16213 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
16214 (_AC_RUN_IFELSE): Use it.
16215 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
16216 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
16217 * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
16220 2002-10-30 Akim Demaille <akim@epita.fr>
16222 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
16223 * doc/autoconf.texi (autom4te Invocation): Adjust.
16224 Suggested by Tim van Holder.
16226 2002-10-29 Paul Eggert <eggert@twinsun.com>
16228 * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
16229 AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
16230 Problem reported by Bruno Haible.
16232 2002-10-29 Akim Demaille <akim@epita.fr>
16234 * doc/autoconf.texi (Header Templates): Put also in words what the
16235 pictures says to assist free style readers.
16236 (Customizing autom4te): s/--cache=/--cache /.
16238 2002-10-29 Akim Demaille <akim@epita.fr>
16240 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
16242 sparc_address_test returns void.
16243 Use it with an argument, as prototyped.
16246 2002-10-29 Akim Demaille <akim@epita.fr>
16248 * doc/autoconf.texi (Subdirectories): Cygnus dirs have
16249 configure.in, not configure.ac.
16250 Reported by Bruno Haible.
16252 2002-10-29 Akim Demaille <akim@epita.fr>
16254 * tests/torture.at (Deep Package): New test.
16255 (Configuring subdirectories): Don't use a testSubDir as Autotest
16256 now does it itself.
16258 2002-10-29 Akim Demaille <akim@epita.fr>
16260 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
16261 * doc/autoconf.texi (Invoking autom4te): Rename as...
16262 (autom4te Invocation): this, for consistency with the other nodes.
16264 2002-10-29 Akim Demaille <akim@epita.fr>
16266 * lib/autom4te.in (Autoconf): s/automate/autom4te/.
16267 Reported by Ralf Corsepius.
16269 2002-10-29 Akim Demaille <akim@epita.fr>
16271 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
16272 characters is a back as an `obsolete' warning now.
16273 Reported by Ralf Corsepius.
16275 2002-10-28 Akim Demaille <akim@epita.fr>
16277 * configure.ac: Bump to 2.54c.
16279 2002-10-28 Akim Demaille <akim@epita.fr>
16283 * tests/foreign.at (Libtool): Adjust to broken libtoolize.
16285 2002-10-28 Akim Demaille <akim@epita.fr>
16287 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
16288 m4 executable names, and different GNU M4 version.
16289 Reported by Ezra Peisach and Paul Jarc.
16291 2002-10-27 Akim Demaille <akim@epita.fr>
16293 * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
16296 2002-10-27 Akim Demaille <akim@epita.fr>
16298 * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
16299 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
16300 Die when a simple Fortran program cannot be compiled.
16301 * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
16302 Issue a warning if no function is given.
16304 2002-10-27 Akim Demaille <akim@epita.fr>
16306 * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
16307 Move the documentation of AC_TRY_RUN to...
16308 (Obsolete Macros): here.
16309 Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
16310 (autoconf Invocation): Remove the duplicates with `invoking
16312 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
16313 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
16315 2002-10-27 Akim Demaille <akim@epita.fr>
16317 * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
16318 and AC_LANG_FUNC_LINK_TRY.
16319 (Examining Libraries): Rename as...
16320 (Running the Linker): this.
16321 Document AC_LINK_IFELSE.
16322 Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
16323 (Obsolete Macros): here.
16324 * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
16325 AC_TRY_LINK_FUNC nor AC_TRY_LINK.
16326 * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
16327 * lib/autoconf/headers.m4 (AC_USG): Likewise.
16329 2002-10-27 Akim Demaille <akim@epita.fr>
16331 * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
16333 More `check config.log' messages.
16335 * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
16336 * doc/autoconf.texi (Printing Messages): Document it.
16337 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
16339 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
16340 (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
16341 (_AC_COMPILER_OBJEXT): Likewise.
16342 * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
16343 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
16345 * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
16348 Deprecate macros with unusual interfaces.
16350 * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
16351 (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
16353 Document the new ones, and proper style.
16355 * doc/autoconf.texi (Generating Sources): New.
16356 Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
16357 (Examining Declarations): Rename as...
16358 (Running the Preprocessor): this.
16359 Document AC_PREPROC_IFELSE.
16360 (Examining Syntax): Rename as...
16361 (Running the Compiler): this.
16362 (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
16363 (Obsolete Macros): Move the definition of AC_TRY_CPP and
16364 AC_TRY_COMPILE here.
16366 2002-10-27 Akim Demaille <akim@epita.fr>
16368 Move sections around.
16370 * doc/autoconf.texi (Customizing autom4te): Remove a lost
16372 Reported by Burno Haible.
16373 (Language Choice): Now the first section of...
16374 (Writing Tests): this section.
16375 Make the introduction less C-centric.
16376 (Guidelines, Test Functions): Move to...
16377 (Writing Test Programs): this new section.
16378 (Test Programs): Merge into...
16381 2002-10-27 Akim Demaille <akim@epita.fr>
16383 * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
16384 autom4te.in that resulted in the need for two `make' runs.
16386 2002-10-27 Akim Demaille <akim@epita.fr>
16388 * configure.ac: Bump to 2.54b.
16390 2002-10-25 Akim Demaille <akim@epita.fr>
16394 * Makefile.maint: Update from the Coreutils.
16395 (AMTAR): Remove, obsolete.
16396 (automake_repo): Update to redhat.com.
16398 Adjust to the fact that ansi2knr is now hosted by Automake.
16399 * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
16400 * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
16401 Update from masters.
16402 * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
16403 autoscan.pre is not to be installed, and autoscan.list is not to
16405 (CLEANFILES): Add autoscan.list.
16406 (autoscan.list): Disable the cache.
16407 * bin/Makefile.am: Include freeze.mk.
16409 2002-10-25 Akim Demaille <akim@epita.fr>
16411 * bin/autom4te.in (&load_configuration): Take the file as
16413 (&parse_args): Handle -C, --cache.
16415 (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
16416 * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
16417 * doc/autoconf.texi (Invoking autom4te): Document --cache.
16418 Now a subsection of...
16419 (Using autom4te): This new section.
16420 (Customizing autom4te): New.
16421 (autom4te.cache): Adjust.
16423 2002-10-25 Akim Demaille <akim@epita.fr>
16425 * doc/autoconf.texi (Generic Headers): More information on how to
16426 use AC_CHECK_HEADERS.
16428 2002-10-25 Akim Demaille <akim@epita.fr>
16430 * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
16433 2002-10-25 Akim Demaille <akim@epita.fr>
16435 * bin/autoscan.in (output): Output AC_PREREQ.
16436 (%needed_macros): Add AC_PREREQ so that configure.ac without one
16439 2002-10-23 Akim Demaille <akim@epita.fr>
16441 * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
16444 2002-10-23 Akim Demaille <akim@epita.fr>
16446 * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
16447 Reported by Peter Eisentraut.
16449 2002-10-23 Akim Demaille <akim@epita.fr>
16451 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
16454 * doc/autoconf.texi (Particular Headers): Adjust according to Paul
16455 Eggert's recommandations.
16457 2002-10-22 Akim Demaille <akim@epita.fr>
16459 * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
16460 Bison, by Paul Eggert.
16461 * doc/autoconf.texi (Particular Headers): Document it.
16463 2002-10-22 Aaron M. Ucko <amu@alum.mit.edu>
16465 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
16466 `$ac_configure_args'.
16468 2002-10-22 Akim Demaille <akim@epita.fr>
16470 * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
16471 (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
16474 2002-10-22 Akim Demaille <akim@epita.fr>
16476 Restore the 2002-10-11 Akim Demaille <akim@epita.fr> patch:
16478 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
16479 (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
16480 (_AC_CHECK_HEADER_NEW): Rename as...
16481 (AC_CHECK_HEADER): this.
16483 2002-10-22 Akim Demaille <akim@epita.fr>
16485 * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
16486 words about HP-UX cmp: it was actually a user-written cmp.
16488 2002-10-22 Akim Demaille <akim@epita.fr>
16490 * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
16491 are a few warnings.
16492 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
16493 Quote for Perl '' strings, not "".
16494 * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
16497 2002-10-22 Akim Demaille <akim@epita.fr>
16499 * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
16500 characters is a syntax warning now.
16501 (_AS_QUOTE): Accept $2 as list of characters to quote.
16502 * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
16503 Quote for Perl, not sh.
16504 * bin/autoheader.in: When $debug, report the file which is
16506 * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
16507 `@', to tickle Perl's lists.
16508 Reported by Carlos Velasco.
16510 2002-10-18 Akim Demaille <akim@epita.fr>
16512 * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
16513 missing included files _are_ errors.
16514 Thanks to Alexandre Duret-Lutz.
16515 * tests/tools.at (autom4te cache): Adjust.
16516 * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
16517 (AT_CHECK_M4SUGAR): Use it.
16518 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
16520 * tests/tools.at (autom4te): Now it does exit 1.
16522 2002-10-17 Akim Demaille <akim@epita.fr>
16524 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
16525 Fixes the `AC_ARG_VAR' test failures.
16526 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
16527 * lib/freeze.mk (check-forbidden-patterns): New.
16528 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
16529 * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
16530 * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
16532 Reported months ago by H. Merijn Brand.
16534 2002-10-17 Akim Demaille <akim@epita.fr>
16536 * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
16538 2002-10-16 Paul Eggert <eggert@twinsun.com>
16540 * Makefile.maint (wget_files): Remove ansi2knr.c.
16541 (ansi2knr.c-url_prefix): Remove.
16543 2002-10-16 Akim Demaille <akim@epita.fr>
16545 Because of caching, some files that no longer exist and are no
16546 longer required can still cause errors.
16547 Reported by Alexandre Duret-Lutz.
16549 * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
16550 to frozen files in @ARGV, as @ARGV must remain being a list of
16551 files. Rather, at M4 call sites, use this...
16552 (&files_to_options): New function.
16553 (&freeze): Use &error.
16554 (&up_to_date): If a file that was included according to the cache
16555 is no longer there, then the output is out dated.
16556 (&main): Don't even check whether a file is up to date is anyway
16558 * tests/tools.at (autom4te cache): New.
16560 2002-10-16 Akim Demaille <akim@epita.fr>
16562 * bin/autoconf.as: Kill dead options.
16563 * bin/autoupdate.in (&parse_args): Kill old options.
16564 * bin/autoreconf.in (&parse_args): Remove dead options.
16566 (&autoreconf): Report the directories we enter *and leave*, so
16567 that error messages can be easily located, and use GNU Make
16568 format, so that Emacs' compile mode understands us.
16569 * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
16570 if some file was changed instead of `print'.
16571 * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
16572 (&parse_args): Remove the dead options.
16573 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
16574 autoheader's quiet mode.
16575 (AT_CHECK_AUTOUPDATE): Likewise.
16576 * tests/tools.at (autoupdate): Adjust.
16577 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
16579 2002-10-11 Akim Demaille <akim@epita.fr>
16581 No longer use CPP to check for the existing of headers: use CC to
16582 check for compilability.
16584 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
16585 (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
16586 (_AC_CHECK_HEADER_NEW): Rename as...
16587 (AC_CHECK_HEADER): this.
16589 * lib/autotest/general.m4 (AT_INIT): Include the failed test
16590 numbers in the Subject suggestion.
16592 2002-10-11 Akim Demaille <akim@epita.fr>
16594 * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
16595 Suggest using AC_CHECK_DECLS instead.
16597 2002-10-11 Akim Demaille <akim@epita.fr>
16599 * tests/torture.at (AC_ARG_VAR): Have configure report the value
16602 2002-10-11 Akim Demaille <akim@epita.fr>
16604 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
16605 file name to enable parallel executions.
16606 From Sam Varshavchik.
16608 2002-10-08 Akim Demaille <akim@epita.fr>
16610 * bin/autoreconf.in (&autoreconf): Run autopoint before the first
16611 aclocal invocation, as Gettext macros might not be visible to
16613 Instead of blindly running autopoint, scan configure.ac (not the
16614 traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
16615 Reported by Paul D. Smith.
16617 2002-10-08 Paul Eggert <eggert@twinsun.com>
16619 Work around problems found when POSIXLY_CORRECT=1 is set.
16620 None of this seems to have anything to do with POSIX, really,
16621 but it's how Perl getopt works.
16622 * bin/autom4te.in (parse_args): Configure GetOpt with
16624 * doc/autoconf.texi (Invoking autom4te):
16625 --warning -> --warnings.
16626 * lib/autom4te.in: --warning -> --warnings.
16628 2002-09-28 Akim Demaille <akim@epita.fr>
16630 * doc/autoconf.texi (autom4te.cache): New section.
16632 2002-09-28 Akim Demaille <akim@epita.fr>
16634 * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
16635 (Automake-preselections): Update.
16636 * bin/autoreconf.in, bin/autoheader.in: Comment changes.
16638 2002-09-28 Akim Demaille <akim@epita.fr>
16640 * lib/autoscan/autoscan.pre: Move all the remaining rules to...
16641 * lib/autoconf/c.m4, lib/autoconf/functions.m4,
16642 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
16643 * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
16645 2002-09-28 Akim Demaille <akim@epita.fr>
16647 * tests/torture.at (Configuring subdirectories): Be robust to
16648 users who use config.site to require for a cache: in this case,
16649 the two last configure runs, using two different sets of
16650 arguments, trigger a legitimate error.
16652 2002-09-28 Akim Demaille <akim@epita.fr>
16654 * tests/m4sh.at (Functions Support, Functions and return Support):
16657 2002-09-28 Akim Demaille <akim@epita.fr>
16659 * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
16660 autoheader are Perl programs.
16661 (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
16662 (autom4te): Specify that the sources are in the $srcdir.
16663 * doc/autoconf.texi (Installation Directory Variables): Adjust.
16665 2002-09-28 Akim Demaille <akim@epita.fr>
16667 * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
16668 (tm_zone): Move their rules to...
16669 * lib/autoconf/types.m4: here, using AN_ macros.
16670 * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
16671 (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
16672 (make, mawk, nawk, ranlib, yacc): Similarly, move to...
16673 * lib/autoconf/programs.m4: here.
16674 * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
16675 (ETAGS_FOR_AUTOCONF): New.
16678 2002-09-28 Akim Demaille <akim@epita.fr>
16680 * lib/autoconf/autoscan.m4: New file.
16681 * lib/autoconf/autoconf.m4: Include it.
16682 * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
16683 that were listed in the original autoscan.list.
16684 * lib/autoconf/headers.m4: Similarly with headers.
16685 * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
16686 (.m4.m4f): Don't pass --prepend-include, since that's done by
16687 tests/autom4te itself.
16688 * lib/autoscan/Makefile.am: Include freeze.mk.
16689 (autoscan.list): New target --this file is no longer a source.
16690 (autoscan.pre): New file.
16692 2002-09-28 Akim Demaille <akim@epita.fr>
16694 * bin/autoscan.in (@kinds): Make them singular.
16696 (&init_tables): When --debug, report the list of rules to ease
16697 tracking changes in autoscan.list.
16698 * lib/autoscan/autoscan.list (function): Strip comments, sort.
16700 2002-09-28 Akim Demaille <akim@epita.fr>
16702 * lib/autoscan/functions, lib/autoscan/headers,
16703 * lib/autoscan/identifiers, lib/autoscan/makevars,
16704 * lib/autoscan/programs: Merge into...
16705 * lib/autoscan/autoscan.list: this.
16706 * bin/autoscan.in (&init_tables): Adjust.
16708 2002-09-28 Akim Demaille <akim@epita.fr>
16710 * lib/autoscan/functions, lib/autoscan/headers,
16711 * lib/autoscan/identifiers, lib/autoscan/makevars,
16712 * lib/autoscan/programs: Make the `kind' explicit, i.e., each
16713 `functions' line is now prefixed with `function:'.
16714 * bin/autoscan.in (&init_tables): Adjust.
16716 2002-09-28 Akim Demaille <akim@epita.fr>
16718 From now on, autoscan files must always map a macro name to a
16719 word: there is no `default' macro for autoscan.
16721 * bin/autoscan.in (&init_tables): Reject entries with no macro at
16723 * lib/autoscan/functions, lib/autoscan/headers: Make the macro
16726 2002-09-28 Akim Demaille <akim@epita.fr>
16728 * bin/autoscan.in (%c_keywords): Remove.
16729 (&used): Keep only track of the words we might be interested in.
16730 (&output_kind): It is no longer needed to look for non active
16733 2002-09-27 Akim Demaille <akim@epita.fr>
16735 * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
16736 jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
16737 * lib/autoscan/functions: Adjust.
16738 * doc/autoconf.texi (Particular Functions): Adjust.
16740 2002-09-27 Akim Demaille <akim@epita.fr>
16742 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
16744 Thanks to Bill Moseley and Paul Eggert.
16745 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
16746 the tmpdir must be created.
16747 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
16748 dir be in the build tree, instead of $TMPDIR.
16750 2002-09-27 Akim Demaille <akim@epita.fr>
16752 * bin/autoscan.in: Improve the comments.
16753 (&parse_args): Drop obsolete undocumented options.
16754 (&output_kind): Output warnings.
16755 * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
16756 (getwd): Trigger a warning.
16758 2002-09-26 Akim Demaille <akim@epita.fr>
16760 * bin/autoreconf.in: Clarify that -s is meaningless without -i.
16761 Reported by Ralf Corsepius.
16762 * doc/autoconf.texi (autoreconf Invocation): Likewise.
16764 2002-09-26 Akim Demaille <akim@epita.fr>
16766 Single suffix rules and seperated dependencies are not portable.
16768 * doc/autoconf.texi (Installation Directory Variables): Update.
16769 (Limitations of Make): Some about `Single Suffix Rules and
16770 Separated Dependencies'.
16771 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
16772 (ifnames, autoscan, autom4te): Un-factor into several rules.
16774 2002-09-25 Paul Eggert <eggert@twinsun.com>
16776 * BUGS (Interoperability bugs): New section. Mention libtool
16777 1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
16779 2002-09-24 Paul Eggert <eggert@twinsun.com>
16781 Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
16782 make handles suffix-rules differently from GNU make.
16784 * bin/Makefile.am (SUFFIXES, .in): Remove.
16785 (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
16786 Move the body of the old .in rule here.
16788 2002-09-16 Akim Demaille <akim@epita.fr>
16790 i960 compilers create `b.out' files by default.
16791 Reported by Ralf Corsepius.
16793 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
16794 (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
16796 2002-09-13 Paul Eggert <eggert@twinsun.com>
16798 * doc/autoconf.texi (Particular Headers): Remove obsolete
16799 reference to `struct timezone' in the description of
16802 2002-09-13 Akim Demaille <akim@epita.fr>
16806 * config/config.sub, config/config.guess: Update.
16807 * Makefile.maint: Update from bits of the Coreutils 4.5.1.
16808 * Makefile.am: Adjust.
16810 2002-09-13 Akim Demaille <akim@epita.fr>
16812 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
16813 reading config.log when the compiler is rejected.
16814 Suggested by Guido Draheim.
16816 2002-09-13 Akim Demaille <akim@epita.fr>
16818 * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
16819 (chdir_init) might hang when stat'ing mounted directories.
16820 Reported by Vance Shipley.
16822 2002-09-12 Akim Demaille <akim@epita.fr>
16824 * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
16827 2002-09-12 Akim Demaille <akim@epita.fr>
16829 * doc/autoconf.texi (Defining Symbols): Present two different
16830 prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
16831 difference between 1 argument calls, and 2-3 argument calls.
16833 2002-09-12 Peter Eisentraut <peter_e@gmx.net>
16835 * doc/autoconf.texi: Review grammar and punctuation.
16837 2002-09-11 Paul Eggert <eggert@twinsun.com>
16839 * doc/autoconf.texi: Fix minor formatting, spelling, and
16841 (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
16842 AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
16845 2002-09-11 Akim Demaille <akim@epita.fr>
16847 * doc/autoconf.texi (Questions): Rename as...
16849 (Defining Directories): New.
16851 2002-09-09 Akim Demaille <akim@epita.fr>
16853 * doc/autoconf.texi (Making testsuite Scripts): Update.
16854 Suggested by Nishio Futoshi.
16856 2002-09-09 Koji Arai <JCA02266@nifty.ne.jp>
16858 * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
16859 plain `@' is wanted.
16861 2002-09-09 Akim Demaille <akim@epita.fr>
16863 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
16864 `duplicates', since the algorithm was too naive and could keep
16865 `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
16866 keep `--prefix foo --prefix bar' as `--prefix foo bar'.
16867 Reported by Ralf Corsepius.
16868 * tests/torture.at (Configuring subdirectories): Exercise these
16871 2002-09-09 Akim Demaille <akim@epita.fr>
16873 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
16874 looking for a replacement file.
16875 * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
16876 directory is relative.
16877 * doc/autoconf.texi (Generic Functions): Clarify the replacement
16878 directory definition.
16879 Reported by Andreas Schwab and Jim Meyering.
16881 2002-09-06 Akim Demaille <akim@epita.fr>
16883 * doc/autoconf.texi (Setting Output Variables): Clarify what
16884 precious variables are.
16885 Suggested by Pontus Skoeld.
16887 2002-09-05 Akim Demaille <akim@epita.fr>
16889 * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
16890 (ifnames, autoscan, autom4te): Since we don't only depend on
16891 configure.ac variables (such as VERSION etc.), but also on prefix
16892 and so forth, depend on Makefile, not configure.ac.
16893 Reported by Alexandre Duret-Lutz.
16894 * doc/autoconf.texi (Installation Directory Variables): Adjust.
16896 2002-09-05 Kevin Ryde <user42@zip.com.au>
16898 * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
16899 doesn't seem to be confined to ia64, just say "some versions".
16901 2002-09-04 Akim Demaille <akim@epita.fr>
16903 * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
16905 * Makefile.am (maintainer-clean-local): Remove.
16906 (MAINTAINERCLEANFILES): Remove COPYING.
16908 2002-09-03 Paul Eggert <eggert@twinsun.com>
16910 * doc/autoconf.texi (Configuration Commands): Remove obsolete
16911 example for AC_CONFIG_COMMANDS_PRE. Problem reported by Marcus
16914 2002-09-03 Akim Demaille <akim@epita.fr>
16916 * configure.ac: Bump to 2.53d.
16917 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
16918 as of today, on Automake's team suggestion.
16920 2002-09-03 Akim Demaille <akim@epita.fr>
16924 2002-09-02 Akim Demaille <akim@epita.fr>
16926 * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
16928 * configure.ac: Disable SITE_MACRO_DIR.
16930 2002-09-02 Jim Meyering <meyering@lucent.com>
16932 * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
16933 i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
16934 Also, tweak grammar: s/make sure to/be sure to/.
16936 2002-09-02 Paul Eggert <eggert@twinsun.com>
16938 * doc/autoconf.texi (Limitations of Builtins): Explain why logical
16939 directory names are generally preferable to physical names.
16941 2002-09-02 Akim Demaille <akim@epita.fr>
16943 * lib/Autom4te/General.pm (&update_file): s/die/error/.
16944 Reported by Raja R. Harinath.
16945 * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
16946 * bin/autoupdate.in: Use error instead of die.
16948 2002-09-01 Paul Eggert <eggert@twinsun.com>
16950 * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
16951 ordinary shell concatenation rather than echo+tr+sed command that
16952 runs afoul of a long-line-related sed bug in Solaris 8.
16954 * bin/autoheader.in (parse_args): --warning -> --warnings.
16956 * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
16957 stdout, as traditional "ls" does.
16958 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
16959 _AC_COMPILER_EXEEXT_O): Likewise.
16960 * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
16962 * bin/autoconf.as: Add --prepend-include option. This patch was
16963 applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
16964 but bin/autoconf.in is generated automatically from bin/autoconf.as.
16966 * bin/autoconf.in, configure: Regenerate.
16968 * doc/autoconf.texi (Special Shell Variables): Mention
16969 ENV, MAIL, MAILPATH, PS1, PS2, PS4. Index PWD.
16971 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
16972 MAILPATH and set PS1, PS2, PS4 to default values, to work
16973 around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
16974 For LC_ALL etc, first try to set to "C" as POSIX requires and as
16975 the Autoconf documentation specifies; fall back to "unset" only if
16976 this fails. Use a shell for-loop for this rather than an m4 loop,
16977 to shorten the output script.
16979 2002-08-30 Paul Eggert <eggert@twinsun.com>
16981 * doc/autoconf.texi (Special Shell Variables): Mention POSIX
16982 1003.1-2001's requirements for CDPATH. Give a simpler workaround
16983 for the CDPATH problem. Document PWD.
16984 (Limitations of Builtins): Document the problem that "cd $foo" and
16985 "ls $foo" may refer to different directories in shells conforming
16986 to POSIX 1003.1-2001. Use PS1 rather than CDPATH for "unset"
16987 example, since the old example is now out of date.
16989 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
16990 FOO" and "ls FOO" talk about different directories; this catches
16991 problems when POSIX 1003.1-2001 "cd" fails due to symlink
16994 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
16995 of rolling our own unset.
16996 (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
16997 in practice we needn't worry about CDPATH if unset doesn't work.
16999 * Makefile.in, aclocal.m4, bin/Makefile.in,
17000 config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
17001 lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
17002 lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
17003 lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
17004 tests/Makefile.in: Regenerate with Automake 1.6.3.
17006 * config/config.guess, config/config.sub, config/mkinstalldirs:
17009 * configure: Regenerate with self.
17011 2002-08-30 Kevin Ryde <user42@zip.com.au>
17013 * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
17016 2002-08-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17018 * bin/autom4te.in (Request::load): Correctly test for "do" read
17021 2002-08-29 Akim Demaille <akim@epita.fr>
17023 * lib/Autom4te/General.pm (&xqx): New.
17024 (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
17025 hand, which is not portable.
17027 * bin/autom4te.in: Use them.
17028 Use &error instead of die.
17029 * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
17032 2002-08-17 Paul Eggert <eggert@twinsun.com>
17034 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
17035 default list of compilers to try, since it was long ago superseded
17036 by the ksh fc builtin. Suggested by Steven G. Johnson.
17038 2002-07-31 Alexandre Duret-Lutz <duret_g@epita.fr>
17040 * doc/autoconf.texi (Invoking autom4te): End the option table,
17041 fixing a bug introduced by the previous patch.
17042 (Limitations of Make): Add a 'target lookup' subentry in the
17043 'VPATH' entry. Rewrite all `make' occurences as `@command{make}'.
17045 2002-07-29 Mark D. Roth <roth@feep.net>
17047 * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
17048 options and use $AUTOM4TE_PATH.
17049 * doc/autoconf.texi: Remove documentation of autom4te
17050 --include-envvar and --site-macro-subdir options and document
17051 use of $AUTOM4TE_PATH.
17052 * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
17053 arguments from each language section.
17055 2002-07-29 Paul Eggert <eggert@twinsun.com>
17057 * doc/install.texi: Include copyright symbol in copyright notice.
17059 * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
17061 (AM_MAKEINFOFLAGS): New macro.
17062 * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
17063 * Makefile.am (INSTALL): Use the new macros.
17064 Use -o rather than --output, since "missing" does not grok --output.
17066 2002-07-25 Alexandre Duret-Lutz <duret_g@epita.fr>
17068 * doc/autoconf.texi (Limitations of Make): Escaped newlines in
17069 comments do not always work. Never trust the exit status of
17072 2002-07-24 Kevin Ryde <user42@zip.com.au>
17074 * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
17075 Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
17077 2002-07-23 Paul Eggert <eggert@twinsun.com>
17079 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
17080 Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
17081 apparently treats PATH="nonexistent" as if it contained ".".
17082 Bug reported by Stefan `Sec' Zehl.
17084 2002-07-22 Alexandre Duret-Lutz <duret_g@epita.fr>
17086 * doc/autoconf.texi (Limitations of Make): Mention the special
17087 handling of the obj/ directory by BSD make.
17089 2002-07-20 Kevin Ryde <user42@zip.com.au>
17091 * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
17094 2002-07-19 Akim Demaille <akim@epita.fr>
17096 * doc/autoconf.texi (Function Portability): `exit'.
17097 (Programming in M4sh): Ethymology of M4sh.
17099 2002-07-19 Akim Demaille <akim@epita.fr>
17101 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
17103 2002-07-18 Akim Demaille <akim@epita.fr>
17107 2002-07-18 Akim Demaille <akim@epita.fr>
17109 * config/config.guess, config/config.sub: Update.
17111 2002-07-18 Akim Demaille <akim@epita.fr>
17113 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
17116 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
17117 * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
17118 * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
17120 2002-07-18 Akim Demaille <akim@epita.fr>,
17121 Alexandre Duret-Lutz <duret_g@epita.fr>
17123 * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
17124 _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
17126 2002-07-17 Russ Allbery <rra@stanford.edu>
17128 * doc/autoconf.texi (Initializing configure): Clarify the
17129 description of the tarname default.
17131 2002-07-17 Andreas Buening <andreas.buening@nexgo.de>
17133 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
17134 ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
17135 latter was not run.
17137 2002-07-17 Akim Demaille <akim@epita.fr>
17139 * lib/Autom4te/General.pm (find_file): Browse the directories in
17140 the order they are given.
17142 2002-07-17 Akim Demaille <akim@epita.fr>
17144 * tests/wrapsh.as, tests/wrappl.as: Merge into...
17145 * tests/wrapper.as: this.
17146 * tests/Makefile.am, configure.ac: Adjust.
17148 2002-07-17 Mark D. Roth <roth@feep.net>
17150 * configure.ac: Add --enable-site-macro-dir option.
17151 * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
17152 * bin/autom4te.in: Add --prepend-include, --include-envvar, and
17153 --site-macro-subdir options.
17154 * bin/autoconf.in: Add --prepend-include option.
17155 * bin/autoheader.in: Add --prepend-include option.
17156 * bin/autoreconf.in: Add --prepend-include option.
17157 * bin/autoscan.in: Add --prepend-include option.
17158 * bin/autoupdate.in: Add --prepend-include option.
17159 * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
17160 macro directory, remove note that include path directories are
17161 used in reverse order, and document --prepend-include option.
17162 * lib/autom4te.in: Use --prepend-include instead of --include.
17163 * tests/wrapsh.in: Use --prepend-include instead of --include.
17165 2002-07-17 Akim Demaille <akim@epita.fr>
17167 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
17169 * doc/autoconf.texi (Initializing configure): Adjust.
17171 2002-07-17 Akim Demaille <akim@epita.fr>
17173 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
17174 (_AC_FUNC_MALLOC): New.
17175 (AC_FUNC_MALLOC): Use the latter.
17176 Define HAVE_MALLOC to 0 if broken.
17177 * doc/autoconf.texi (Particular Functions): Adjust.
17179 2002-07-16 Akim Demaille <akim@epita.fr>
17181 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
17182 * doc/autoconf.texi (C Compiler): Adjust.
17184 2002-07-09 Akim Demaille <akim@epita.fr>
17186 * doc/autoconf.texi: Properly set the ``header'' part.
17188 2002-07-09 Akim Demaille <akim@epita.fr>
17190 * doc/autoconf.texi (Systemology): Some about Darwin.
17192 2002-07-09 Alexandre Duret-Lutz <duret_g@epita.fr>
17194 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
17195 Don't use AC_REQUIRE in AU_DEFUN.
17197 2002-07-09 Art Haas <ahaas@neosoft.com>
17199 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
17201 2002-07-02 Alexandre Duret-Lutz <duret_g@epita.fr>
17203 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
17204 bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
17205 lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
17206 so that Emacs setups GNU style for perl-mode and cperl-mode.
17208 2002-06-27 Paul Eggert <eggert@twinsun.com>
17210 * config/install-sh: Quote $src. Prefer || to test's -o option,
17211 as per "Limitations of Builtins".
17212 * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
17213 * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
17215 * tests/mktests.sh: Use grep instead of fgrep, as per
17216 "Limitations of Builtins".
17218 2002-06-15 Paul Eggert <eggert@twinsun.com>
17220 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
17221 autom4te_perllibdir): Set to top build dir or src dir as appropriate,
17222 so that we consistently test the just-built programs.
17223 * tests/wrappl.as: Likewise.
17225 2002-06-12 Paul Eggert <eggert@twinsun.com>
17227 * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
17228 name, so that symlinks to 'autoconf' work properly. Bug reported
17230 * bin/autoheader.in (AUTOM4TE): Likewise.
17231 * bin/autoreconf.in (autoconf, autoheader): Likewise.
17232 * bin/autoscan.in (autom4te): Likewise.
17233 * bin/autoupdate.in (autom4te): Likewise.
17235 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
17236 btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
17239 2002-06-11 Andreas Schwab <schwab@suse.de>
17241 * doc/autoconf.texi: Add more dir entries.
17243 2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
17245 * bin/autom4te.in ($cache): Don't define using `$me', the name
17246 of the cache should not depend on the name under which autom4te
17249 2002-06-07 Akim Demaille <akim@epita.fr>
17251 * tests/tools.at (autoconf: forbidden tokens, basic)
17252 (autoconf: forbidden tokens, exceptions): Adjust to the change of
17253 words in autom4te.in.
17255 2002-06-07 Peter Eisentraut <peter_e@gmx.net>
17257 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
17258 _AC_LANG_PROGRAM_C_F77_HOOKS.
17260 2002-06-07 Akim Demaille <akim@epita.fr>
17262 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
17264 (AC_REPLACE_FNMATCH): this.
17265 * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
17266 AC_FUNC_FNMATCH_GNU.
17268 2002-06-07 Akim Demaille <akim@epita.fr>
17270 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
17271 Rosetta Stone for Unix.
17273 2002-06-07 Akim Demaille <akim@epita.fr>
17275 * bin/autom4te.in (warn_forbidden): When rejecting a token,
17276 suggest m4_pattern_allow.
17277 Suggested by Adam J. Richter.
17279 2002-06-07 Akim Demaille <akim@epita.fr>
17281 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
17282 ac_config_libobj_dir.
17283 (AC_CONFIG_LIBOBJ_DIR): New.
17284 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
17285 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
17286 Use ac_config_libobj_dir to find the replacement files.
17287 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
17288 (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
17289 (AC_REPLACE_FNMATCH_GNU): these.
17290 (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
17291 * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
17292 * tests/mktests.sh (ac_exclude_list): Don't check
17293 AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
17295 2002-06-06 Paul Eggert <eggert@twinsun.com>
17297 * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
17298 if ln doesn't work.
17300 * doc/autoconf.texi (Configuration Links): Likewise.
17301 (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
17303 2002-06-05 Paul Eggert <eggert@twinsun.com>
17305 * config/config.guess, config/config.sub, config/texinfo.tex:
17306 Update from masters.
17308 2002-05-29 Paul Eggert <eggert@twinsun.com>
17310 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
17311 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
17312 * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
17314 * lib/autoconf/Makefile.am (check-local): Likewise.
17315 * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
17316 * lib/autoconf/types.m4 (commentary only): Likewise.
17317 * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
17318 * lib/autotest/Makefile.am (check-local): Likewise.
17319 * lib/m4sugar/Makefile.am (check-local): Likewise.
17320 * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
17321 * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
17323 * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
17324 * doc/autoconf.texi (Particular Programs): Document them.
17325 (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
17328 2002-05-27 Paul Eggert <eggert@twinsun.com>
17330 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
17331 * NEWS, doc/autoconf.texi (Particular Types): Document it.
17332 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
17333 instead of AC_MBSTATE_T, which never existed.
17335 2002-05-23 Akim Demaille <akim@epita.fr>
17337 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
17338 version of Autoconf that is discussed.
17340 2002-05-22 Paul Eggert <eggert@twinsun.com>
17342 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
17343 from the default list of compilers to try. Suggested by
17345 * NEWS: Document the above.
17346 * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
17348 2002-05-17 Paul Eggert <eggert@twinsun.com>
17350 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
17351 the member is itself an aggregate. Bug reported by Sergey Poznyakoff.
17352 This improves on an earlier suggestion by H. Peter Anvin.
17354 2002-05-16 Paul Eggert <eggert@twinsun.com>
17356 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
17357 AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
17358 Both macros now accept an optional source-dir arg.
17359 New macro AC_GNU_SOURCE to define _GNU_SOURCE.
17361 * NEWS: Document this.
17362 * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
17364 * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
17365 (AC_FUNC_FNMATCH): Use it. Test only for POSIX conformance,
17366 not for GNU extensions; this undoes part of the 2000-11-03 change,
17367 reverting to 2.13-compatible behavior.
17368 Add new optional argument DIR.
17369 (AC_FUNC_FNMATCH_GNU): New macro.
17371 * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
17373 2002-05-08 Paul Eggert <eggert@twinsun.com>
17375 * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
17376 Don't require AC_SYS_POSIX_TERMIOS. The test is unnecessary,
17377 and it causes a 'test' syntax error if it fails.
17378 Bug reported by Stephen Gildea.
17380 * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
17381 If prototypes are supported, use them to check this at compile-time,
17382 instead of trying to check it at run-time. If we must do a run-time
17383 check, assume that setvbuf is standard when cross-compiling, as
17384 nonstandard setvbuf occurs only on ancient and unlikely hosts.
17385 Bug reported by Paul D. Smith.
17387 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
17388 argument specifying location of getloadavg.c. This removes a
17389 FIXME. This idea was taken from Jim Meyering's implementation in
17391 * doc/autoconf.texi (Particular Functions): Document this.
17392 Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
17393 that's what the code does; this fixes a bug reported by
17396 2002-05-03 Akim Demaille <akim@epita.fr>
17398 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
17399 autopoint instead of gettextize.
17400 ($uses_alocal): Rename as...
17401 ($uses_aclocal): this.
17402 * doc/autoconf.texi (autoreconf Invocation): Adjust.
17403 Suggested by Bruno Haible.
17405 2002-05-03 Akim Demaille <akim@epita.fr>
17407 * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
17409 2002-04-29 Paul Eggert <eggert@twinsun.com>
17411 * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
17412 files to be 1 second older; just set them to be the same time.
17413 Also, sleep 1 second after the first aclocal, to work around
17414 problems with sub-second time stamps on the input files.
17416 2002-04-29 Thien-Thi Nguyen <ttn@gnu.org>
17418 * doc/autoconf.texi: Mention "set -e -x" lossage
17419 under node "Limitations of Builtins".
17421 2002-04-29 Akim Demaille <akim@epita.fr>
17423 * doc/install.texi: Better wording for setting variables when
17425 From Christian Cornelssen.
17427 2002-04-29 Akim Demaille <akim@epita.fr>
17429 * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
17430 of lack of $LINENO support, then the test will compare the $LINENO
17431 in testsuite vs. the lineno in the test file. This is wrong, of
17433 Be sure to protect it.
17434 Reported by Patrick Welche.
17436 2002-04-25 Akim Demaille <akim@epita.fr>
17438 * doc/autoconf.texi (Obsolete Macros): Typo.
17439 Reported by Vladimir Volovich.
17441 2002-04-25 Akim Demaille <akim@epita.fr>
17443 * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
17444 than some of the input files, hence, on the second run of aclocal,
17445 if some of its input are younger, make them older.
17446 Suggested by Paul Eggert.
17448 2002-04-25 Akim Demaille <akim@epita.fr>
17450 * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
17451 Thanks to Paul Eggert.
17453 2002-04-25 Akim Demaille <akim@epita.fr>
17455 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
17456 and ac_subst_vars be sh variables containing the list of
17457 AC_SUBST_FILES'ed and AC_SUBST'ed identifiers. Output them in the
17459 (_AC_INIT_PREPARE): Use them to log them.
17460 (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
17461 (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
17462 _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
17463 _AC_SUBST_FILES and _AC_SUBST_VARS.
17464 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
17466 2002-04-24 Akim Demaille <akim@epita.fr>
17468 * bin/autoreconf.in (autoreconf): Run automake after autoconf and
17469 autoheader, so that automake does not complain about a missing
17470 config.h.in that was to be created.
17472 2002-04-23 Akim Demaille <akim@epita.fr>
17474 * bin/autoheader.in (parse_args): --warning takes an argument.
17477 2002-04-22 Peter Eisentraut <peter_e@gmx.net>
17479 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
17480 and bb.out when cleaning up.
17482 2002-04-22 Akim Demaille <akim@epita.fr>
17486 2002-04-22 Akim Demaille <akim@epita.fr>
17488 * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
17490 2002-04-22 Akim Demaille <akim@epita.fr>
17492 * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
17494 Reported by Gregory Giannoni.
17496 2002-04-22 Akim Demaille <akim@epita.fr>
17498 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
17499 Fixes false failures on Darwin.
17501 2002-04-21 Paul Eggert <eggert@twinsun.com>
17503 * TODO, bin/autoupdate.in, doc/autoconf.texi,
17504 lib/autoconf/general.m4, lib/autoconf/libs.m4,
17505 lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
17506 tests/tools.at: Minor spelling and grammar fixes.
17508 2002-04-20 Paul Eggert <eggert@twinsun.com>
17510 * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
17511 ZSH_VERSION fixes. Bug reported by Raja R Harinath.
17512 * lib/autotest/general.m4 (AT_INIT): Likewise.
17513 * tests/atgeneral.m4 (AT_INIT): Likewise.
17515 2002-04-19 Paul Eggert <eggert@twinsun.com>
17517 * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
17518 doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
17519 lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
17520 lib/autoconf/functions.m4, lib/autoconf/general.m4,
17521 lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
17522 lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
17523 tests/atspecific.m4, tests/semantics.at, tests/torture.at:
17524 Minor spelling and grammar fixes.
17526 * doc/autoconf.texi: Follow the outline suggested in the GNU
17527 Sample Texts sections of the Texinfo 4.2 manual. Most
17528 importantly, this makes sure that the copyright notices appear in
17529 all output formats. You probably need Texinfo 4.2 to generate
17532 Fix some bugs when using "$@" when there might be zero positional
17533 arguments in cases where this matters.
17535 * bin/autoconf.as: Rewrite so that the problem does not come up.
17536 * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
17537 * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
17538 * lib/autotest/general.m4 (AT_INIT): Likewise.
17540 * bin/autoheader.in: Use 'case' statement to work around problem.
17541 * bin/auto4mte.in: Likewise.
17542 * bin/autoreconf.in: Likewise.
17543 * bin/autoscan.in: Likewise.
17544 * bin/autoupdate.in: Likewise.
17545 * bin/ifnames.in: Likewise.
17547 * doc/autoconf.texi (Shell Substitutions): Document the problem.
17549 * lib/autotest/general.m4 (AT_INIT):
17550 Use Zsh alias to work around problem.
17551 * tests/atgeneral.m4 (AT_INIT): Likewise.
17553 * tests/c.at: We can't have zero arguments, so remove workaround
17554 that is not portable to Zsh.
17556 2002-04-19 Alexandre Duret-Lutz <duret_g@epita.fr>
17558 * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
17559 from aclocal.m4 too.
17561 2002-04-12 Akim Demaille <akim@epita.fr>
17563 * tests/wrappl.as: New, M4sh precursor of wrappl.in.
17565 2002-04-10 Akim Demaille <akim@epita.fr>
17567 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
17568 workaround for ${1+"$@"}.
17569 * doc/autoconf.texi (Shell Substitutions): Explain it.
17570 From Oliver Kiddle and Peter Stephenson.
17572 Have M4sh perform minimal shell sanitizing.
17574 * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
17576 (_AS_PREPARE): this new macro.
17578 (AS_INIT): Invoke AS_SHELL_SANITIZE.
17579 * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
17581 Adjust Autoconf and Autotest.
17583 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
17584 AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
17585 * lib/autotest/general.m4 (AT_INIT): Likewise.
17586 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
17587 Invoke _AS_PREPARE (not AS_PREPARE) in addition to
17590 Use this M4sh to generate Autoconf's shell scripts.
17592 * tests/wrapsh.as: New, precursor of wrapsh.in.
17593 * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
17594 on Autotest and M4sh.
17595 ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
17596 (wrapsh.in): New target.
17597 * bin/autoconf.as: New, precursor of autoconf.in.
17598 (autoconf.in): New target.
17600 2002-04-09 Alexandre Duret-Lutz <duret_g@epita.fr>
17602 * doc/autoconf.texi (Limitations of Make): Mention the issue
17603 with indented comments in rules.
17605 2002-04-09 Andreas Schwab <schwab@suse.de>
17607 * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
17608 ac_top_builddir when setting ac_abs_top_builddir.
17610 2002-04-06 Kevin Ryde <user42@zip.com.au>
17612 * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
17613 (Portable Shell): Cross reference to Systemology.
17615 2002-04-05 Akim Demaille <akim@epita.fr>
17617 * bin/autoreconf.in (autoreconf): Be sure to accumulate the
17618 directories when descending in a SUBDIRS.
17619 Reported by Ezra Peisach.
17621 2002-04-04 Andreas Schwab <schwab@suse.de>
17623 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
17624 contains no literal separators.
17626 2002-04-03 Akim Demaille <akim@epita.fr>
17628 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
17629 (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
17630 Use dnl, not the KILL diversion.
17632 (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
17633 (AC_CONFIG_LINKS): here.
17635 Don't use the KILL diversion, as it kills spurious output, which
17636 results in failures being hidden.
17637 Use m4_defn where appropriate.
17638 (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
17639 after the second argument.
17641 * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
17642 syntax, as it is provided by M4sugar.
17643 * tests/torture.at (Multiple AC_CONFIG_FILES): New.
17645 2002-04-03 Andreas Schwab <schwab@suse.de>
17647 * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
17648 expanded if $# <= 2.
17650 * bin/autoreconf.in (autoreconf): Run automake after rerunning
17653 2002-04-03 Akim Demaille <akim@epita.fr>
17655 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
17656 (_AC_COMPILER_EXEEXT_REJECT): New.
17657 Also recognize *.bb and *.bbg as compilation byproducts.
17658 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
17659 (_AC_COMPILER_OBJEXT): Use them.
17660 Fixes Debian #138666.
17662 2002-04-02 Peter Eisentraut <peter_e@gmx.net>
17664 Integrate AC_PROG_CC_STDC into AC_PROG_CC.
17666 * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
17667 AU_DEFUN old name. Use _AC_COMPILE_IFELSE.
17668 (AC_PROG_CC): Call _AC_PROG_CC_STDC.
17669 (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
17670 (AC_C_CONST): Same.
17671 (AC_C_INLINE): Same.
17672 (AC_C_PROTOTYPES): Same. Require AC_PROG_CC instead.
17673 * doc/autoconf.texi, NEWS: Document.
17674 * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
17677 2002-04-02 Akim Demaille <akim@epita.fr>
17679 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
17680 _AS_MKDIR_P_PREPARE.
17682 2002-03-28 Kevin Ryde <user42@zip.com.au>
17684 * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
17685 to avoid versions of HP C which don't allow that.
17687 2002-03-27 Paul Eggert <eggert@twinsun.com>
17689 * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
17690 (AS_SHELL_SANITIZE): Invoke it.
17691 (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
17693 2002-03-26 Akim Demaille <akim@epita.fr>
17695 * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
17697 2002-03-26 Akim Demaille <akim@epita.fr>
17699 * doc/autoconf.texi (Introduction): The GNATS base moved.
17701 2002-03-25 Paul Eggert <eggert@twinsun.com>
17703 * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
17704 as POSIX requires, as it doesn't work with Zsh.
17705 * doc/autoconf.texi (Assignments): Document the problem.
17707 2002-03-25 Alexandre Duret-Lutz <duret_g@epita.fr>
17709 * doc/autoconf.texi (Limitations of Make): Mention more issue
17710 about VPATH, overriding of macros in sub-makes, and handling of
17713 2002-03-21 Paul Eggert <eggert@twinsun.com>
17715 * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
17716 problem with here-document buffer boundaries.
17718 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
17719 when reinvoking the shell, to work around problems with installers
17720 who put strange things like "cd" commands in their environments.
17722 2002-03-19 Akim Demaille <akim@epita.fr>
17724 * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
17727 2002-03-19 Akim Demaille <akim@epita.fr>
17729 * bin/autoscan.in (scan_file): Specify the location in `&used'
17733 2002-03-19 Akim Demaille <akim@epita.fr>
17735 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
17736 From Nishio Futoshi.
17738 2002-03-19 Akim Demaille <akim@epita.fr>
17740 * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
17742 2002-03-18 Paul Eggert <eggert@twinsun.com>
17744 * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
17745 (Limitations of Usual Tools): Add mkdir section.
17747 * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
17748 (AS_MKDIR_P): Require it. Use mkdir -p if available, falling
17749 back on AS_DIRNAME to compute prefixes otherwise; this is
17750 roughly what mkinstalldirs does. That way, we need not have
17751 our own filename disassembler. The old disassembler did not
17752 work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
17754 * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
17755 Create at_test_all by a series of assignments,
17756 not by a single assignment of a long string. The latter causes ksh
17757 version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
17758 presumably because of a buffer overrun.
17760 2002-03-14 Paul Eggert <eggert@twinsun.com>
17762 * lib/autotest/general.m4 (at_times_skip):
17763 Renamed from at_times. Now a boolean.
17764 ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
17765 says 'times: not found'.
17767 2002-03-14 Akim Demaille <akim@epita.fr>
17769 * bin/autoreconf.in (&study_gettextize): New.
17770 (&autoreconf): Handle newest gettextize.
17771 Rerun aclocal if needed.
17772 Suggested by Andreas Schwab.
17774 2002-03-13 Akim Demaille <akim@epita.fr>
17776 * doc/autoconf.texi (Special Shell Variables): More about IFS.
17778 2002-03-13 Akim Demaille <akim@epita.fr>
17780 * doc/autoconf.texi (Header Portability): New.
17781 Add information about stdint.h and inttypes.h from Paul Eggert.
17783 2002-03-13 Akim Demaille <akim@epita.fr>
17785 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
17789 2002-03-12 Akim Demaille <akim@epita.fr>
17791 * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
17794 2002-03-11 Andreas Schwab <schwab@suse.de>
17796 * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
17797 does not do it if --with-lispdir is given.
17799 2002-03-08 Akim Demaille <akim@epita.fr>
17803 2002-03-08 Akim Demaille <akim@epita.fr>
17805 * doc/autoconf.texi (Subdirectories): Clarify that the
17806 subdirectory should exist.
17808 2002-03-08 Akim Demaille <akim@epita.fr>
17810 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
17812 2002-03-08 Akim Demaille <akim@epita.fr>
17814 * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
17815 aliases the actual variables, and modifications of the former
17818 2002-03-08 Akim Demaille <akim@epita.fr>
17820 * bin/autom4te.in (&handle_m4): Protect us from corrupted file
17821 because of C-c: have m4 output in tmp files, then mv them.
17823 2002-03-08 Akim Demaille <akim@epita.fr>
17825 * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
17826 * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
17827 * bin/ifnames.in: Copyright update.
17829 2002-03-08 Akim Demaille <akim@epita.fr>
17831 * doc/autoconf.texi (Invoking autom4te): New.
17833 2002-03-05 Akim Demaille <akim@epita.fr>
17835 * doc/autoconf.texi (Specifying Names): Clarification suggested by
17838 2002-03-05 Akim Demaille <akim@epita.fr>
17842 2002-03-04 Akim Demaille <akim@epita.fr>
17844 * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
17845 * lib/autoconf/general.m4 (AC_INIT): More informative error
17846 message for LIBOBJ.
17848 2002-03-04 Akim Demaille <akim@epita.fr>
17850 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
17853 2002-03-04 Akim Demaille <akim@epita.fr>
17855 * doc/autoconf.texi (Transforming Names): Equality between target
17856 and host is irrelevant.
17857 (Specifying Names, Canonicalizing): Remove all references to the
17858 backward compatibility hooks. Rather, collect them all into...
17859 (Hosts and Cross-Compilation): this new section.
17860 * doc/install.texi (System Type): Ditto.
17861 * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
17862 that `--host' implies cross-compilation.
17864 2002-03-04 Akim Demaille <akim@epita.fr>
17866 * doc/autoconf.texi (Evaluation Macros): New.
17867 * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
17869 (_m4_foreach): Define the variant with immediate evaluation so
17870 that it contains exactly the items, not an expression which
17871 evaluation is the current item.
17872 (m4_re_string, m4_re_word): Don't over quote them.
17874 2002-03-04 Akim Demaille <akim@epita.fr>
17876 Instead of having stacking `shift's evaluated at the end, let
17877 `foreach' loops immediately evaluate them.
17879 * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
17880 $*. This is the n-th time I change my mind, but hopefully this is
17883 (m4_text_wrap): Use m4_foreach, which is finally correct _and_
17885 (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
17886 it was only a hack for m4_text_wrap.
17887 (m4_car2): Remove, replaced by...
17889 (_m4_foreach): Adjust.
17890 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
17891 m4_bpatsubst for clarification.
17893 2002-03-04 Akim Demaille <akim@epita.fr>
17895 * doc/autoconf.texi (Changequote is Evil): New.
17897 2002-03-03 Kevin Ryde <user42@zip.com.au>
17899 * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
17900 on old systems like SunOS.
17902 2002-03-01 Peter Eisentraut <peter_e@gmx.net>
17904 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
17905 lib/autoconf/functions.m4, lib/autoconf/general.m4,
17906 lib/autoconf/headers.m4, lib/autoconf/lang.m4,
17907 lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
17910 2002-02-28 Akim Demaille <akim@epita.fr>
17912 * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
17913 message to be sent.
17915 2002-02-28 Kevin Ryde <user42@zip.com.au>
17917 * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
17919 2002-02-25 Akim Demaille <akim@epita.fr>
17921 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
17922 From Akinori Musha.
17924 2002-02-13 Alexandre Duret-Lutz <duret_g@epita.fr>
17926 * lib/Autom4te/XFile.pm (getline, getlines): New functions,
17927 translate \r\n to \n.
17929 2002-02-07 Akim Demaille <akim@epita.fr>
17933 2002-02-07 Akim Demaille <akim@epita.fr>
17935 Fix Autoconf PR/209.
17936 Also reported by Frank Denis.
17938 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
17940 2002-02-07 Akim Demaille <akim@epita.fr>
17942 Fix Autoconf PR/207:
17943 AC_PREFIX_PROGRAM fails with dashed program names
17945 * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
17946 variable when looking for the prefix program.
17947 Now it also works for shell variables.
17949 2002-02-07 Akim Demaille <akim@epita.fr>
17951 * doc/autoconf.texi (Limitations of Builtins): More about
17954 2002-02-06 Akim Demaille <akim@epita.fr>
17956 * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
17957 case/esac, some shells don't support it.
17958 Reported by Zack Weinberg.
17959 * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
17961 2002-02-06 Akim Demaille <akim@epita.fr>
17963 * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
17964 sure not to introduce newlines in at_groups.
17965 * lib/autotest/Makefile.am (autotest.m4f): Typo.
17967 2002-02-06 Akim Demaille <akim@epita.fr>
17969 * tests/torture.at (Configuring subdirectories): Skip if aclocal
17972 2002-02-05 Paul Eggert <eggert@twinsun.com>
17974 * doc/autoconf.texi (Specific Compiler Characteristics):
17975 Describe HP-UX cc bug workaround more accurately.
17976 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
17978 * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
17979 cross-compilers, too. This undoes some of the most recent change
17982 2002-02-05 Akim Demaille <akim@epita.fr>
17984 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
17985 to make sure they are up to date when `check' is run.
17987 2002-02-05 Akim Demaille <akim@epita.fr>
17989 * doc/autoconf.texi (Making testsuite Scripts): Document
17992 2002-02-05 Akim Demaille <akim@epita.fr>
17994 * lib/freeze.mk: New.
17996 2002-02-05 Akim Demaille <akim@epita.fr>
17998 Implement `autom4te --freeze'.
18000 * bin/autom4te.in (&freeze): New.
18001 * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
18002 * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
18004 2002-02-05 Akim Demaille <akim@epita.fr>
18006 * bin/autom4te.in (&parse_args): Implement `frozen files are
18007 optional are the sum of the previous files on the command line'.
18008 Also, pass `--reload-state=' on them, so...
18009 (handle_m4): don't.
18010 * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
18011 (M4sh): Rely on M4sugar.
18012 (Autotest, M4sh, M4sugar): Use frozen files.
18014 2002-01-31 Akim Demaille <akim@epita.fr>
18016 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
18017 * doc/autoconf.texi (Initializing configure): Adjust.
18019 2002-01-30 Akim Demaille <akim@epita.fr>
18021 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
18022 alphanumeric to `-' instead of `_'.
18024 2002-01-30 Akim Demaille <akim@epita.fr>
18026 * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
18027 for plain code, the other for cross-compilation code. The latter
18028 is now run with GCC only.
18029 * doc/autoconf.texi (Compilers and Preprocessors): New.
18031 2002-01-30 Akim Demaille <akim@epita.fr>
18033 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
18035 * doc/autoconf.texi (Initializing configure): Explain how to
18036 change AC_INIT default values.
18038 2002-01-29 Akim Demaille <akim@epita.fr>
18040 * tests/torture.at (Configuring subdirectories): Use configure.in,
18041 so that aclocal 1.4 works.
18042 Reported by Alexandre Duret-Lutz and Larry Schmitt.
18044 2002-01-28 Akim Demaille <akim@epita.fr>
18046 * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
18049 2002-01-28 Akim Demaille <akim@epita.fr>
18051 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
18052 AUTOTEST_PATH *after* it was set.
18053 Don't put `.' in the PATH: the user should be precise and `./' if
18054 needed. In addition, given that the test suite does some `cd', if
18055 `.' is in the path, the `tested programs' sections will report
18056 programs found in the test suite's directory, while during the
18057 tests (performed in their own directory), these programs are no
18058 longer visible. In other words, the results is confusing and
18060 * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
18062 2002-01-24 Akim Demaille <akim@epita.fr>
18066 2002-01-24 Akim Demaille <akim@epita.fr>
18068 * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
18069 * doc/autoconf.texi: Finally add Akim as an author.
18071 2002-01-24 Akim Demaille <akim@epita.fr>
18073 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
18074 (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
18075 Bourne. Use /bin/sh.
18076 From Andreas Buening.
18078 2002-01-24 Akim Demaille <akim@epita.fr>
18080 * config/config.guess, config/config.sub, config/texinfo.tex:
18081 Update from masters.
18083 2002-01-24 Akim Demaille <akim@epita.fr>
18085 * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
18086 * config/auxdir.m4, config/cond.m4, config/depend.m4,
18087 * config/init.m4, config/install-sh.m4, config/lispdir.m4,
18088 * config/missing.m4, config/sanity.m4, config/select.m4,
18089 * config/strip.m4: Remove, to ease sync'ing with any version of
18092 2002-01-24 Akim Demaille <akim@epita.fr>
18094 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
18095 (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
18096 Reported by Geir Ove Myhr.
18098 2002-01-21 Akim Demaille <akim@epita.fr>
18100 * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
18102 2002-01-21 Akim Demaille <akim@epita.fr>
18104 * lib/Autom4te/General.pm (getopt): Use a more GNUish error
18105 message on invalid options.
18106 * bin/autom4te.in (parse_args): Don't use
18107 Autoconf::General::getopt with non valid options.
18109 2002-01-17 Jim Meyering <meyering@lucent.com>
18111 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
18112 $ac_cv_exeext so we don't use an old, invalid, cached value.
18114 2002-01-11 Akim Demaille <akim@epita.fr>
18116 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
18118 * doc/autoconf.texi (Function Portability): Document the strnlen
18120 (Particular Functions): Document AC_FUNC_STRNLEN.
18121 * lib/autoscan/functions: Adjust.
18123 2002-01-06 Akim Demaille <akim@epita.fr>
18125 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
18126 package.m4, since is really depends upon configure.ac, not
18128 * doc/autoconf.texi (testsuite Scripts): Adjust.
18129 * tests/Makefile.am (package.m4): New.
18130 EXTRA_DIST it since its a source.
18132 2002-01-06 Akim Demaille <akim@epita.fr>
18134 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
18135 of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
18136 and PACKAGE_BUGREPORT from here...
18137 (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
18139 (_AC_INIT_PREPARE): AC_DEFINE these symbols.
18140 * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
18141 (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
18142 * tests/tools.at (autoheader): Adjust.
18143 * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
18145 2002-01-06 Akim Demaille <akim@epita.fr>
18147 * bin/autoscan.in (scan_file): Use `&used'.
18149 2002-01-03 Akim Demaille <akim@epita.fr>
18151 * doc/autoconf.texi (Output): Improved wording regarding use of
18155 2001-12-18 Kevin Ryde <user42@zip.com.au>
18157 * doc/autoconf.texi (Function Portability): Add notes on sscanf
18158 sometimes needing writable input.
18160 2001-12-17 Jim Meyering <meyering@lucent.com>
18162 * doc/autoconf.texi (New Macros): Tweak wording.
18164 2001-12-14 Akim Demaille <akim@epita.fr>
18166 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
18167 trailing files, don't apply `-rf' to files which might not be
18168 created by configure (core, core.*, and *.core), but just `rm -f'.
18169 Suggested by Jonathan Kamens.
18171 2001-12-14 Aaron M. Ucko <amu@alum.mit.edu>
18173 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
18175 2001-12-14 Akim Demaille <akim@epita.fr>
18177 * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
18179 2001-12-13 Peter Eisentraut <peter_e@gmx.net>
18181 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
18182 abs_builddir, top_buildpath to abs_top_builddir, srcpath to
18183 abs_srcdir, top_srcpath to abs_top_srcdir.
18184 (_AC_OUTPUT_FILES): Adjust.
18185 * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
18186 * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
18187 * tests/wrappl.in, tests/wrapsh.in: Adjust.
18189 2001-12-12 Steven G. Johnson <stevenj@alum.mit.edu>
18191 * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
18192 C/Fortran linking on HP/UX, by extracting the Fortran library
18193 search path from the LPATH line in the $F77 -v output.
18195 2001-12-12 Kevin Ryde <user42@zip.com.au>
18197 * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
18198 forbidden file descriptors table.
18200 2001-11-26 Akim Demaille <akim@epita.fr>
18202 * bin/autoscan.in (%c_keywords): Build it at top level.
18203 Map to 1 in order to simplify its uses.
18205 2001-11-26 Akim Demaille <akim@epita.fr>
18207 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
18208 Remove $filepath, useless.
18209 (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
18210 variables, they are really part of the tokens.
18211 Split the input line on spaces and then look for tokens.
18212 Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
18213 because of `lex$U.$(OBJEXT)'.
18214 (&scan_files): Use "@list" instead of join.
18215 * doc/Makefile.am (CLEANFILES): Add *.fns.
18217 2001-11-26 Akim Demaille <akim@epita.fr>
18219 * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
18220 Remove, replaced by...
18221 * tests/wrappl.in: Be common for all the Perl executables.
18222 In particular autoscan and autoheader want -I.
18223 * configure.ac: Adjust.
18224 * lib/autoscan/headers: errno.h is portable.
18226 2001-11-26 Akim Demaille <akim@epita.fr>
18228 * bin/autoscan.in (used): New.
18231 2001-11-26 Akim Demaille <akim@epita.fr>
18233 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
18235 (&scan_sh_file): Remove a duplicate pattern.
18236 (&check_configure_ac): Use long options.
18237 * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
18239 2001-11-26 Akim Demaille <akim@epita.fr>
18241 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
18242 Before, having a line containing the opening of a multi line
18243 comment made the whole line be ignored.
18245 2001-11-26 Akim Demaille <akim@epita.fr>
18247 * doc/autoconf.texi (Using an Autotest Test Suite): New.
18248 (testsuite Scripts): Be one of its subsection.
18249 (Autotest Logs): New.
18251 2001-11-26 Akim Demaille <akim@epita.fr>
18253 Test groups are now run two directories deeper.
18255 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
18256 top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
18258 * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
18259 top_srcdir, builddir and top_builddir.
18260 Use `at_*dir' relatively to the directory containing the
18261 suite, use `*dir' when relatively to the current group dir.
18263 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
18265 * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
18266 lib/autoconf/functions.m4, lib/autoconf/headers.m4,
18267 tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
18270 2001-11-22 Alexandre Duret-Lutz <duret_g@epita.fr>
18272 * doc/autoconf.texi (Using System Type): Add an example of `case
18273 $host' usage so people quit using `case $target' everywhere.
18275 2001-11-22 Akim Demaille <akim@epita.fr>
18277 * doc/autoconf.texi (Installation Directory Variables): Englishoes
18278 spotted by Jim Meyering.
18280 2001-11-16 Paul Eggert <eggert@twinsun.com>
18282 This patch implements a `long double' suggestion by Oliver Kiddle.
18284 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
18285 static, to catch errors if the value isn't known at compile-time
18286 and the compiler supports dynamic arrays. Change its name from
18287 `_array_' to `test_array' to avoid potential name clashes.
18288 (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
18289 test. Do not define HAVE_LONG_DOUBLE if `long double' is no
18290 better than double. Catch a bug in GCC 2.95.2 x86.
18291 * doc/autoconf.texi (C Compiler): Document the above.
18294 2001-11-13 Akim Demaille <akim@epita.fr>
18296 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
18298 * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
18300 2001-11-13 Akim Demaille <akim@epita.fr>
18302 * lib/autotest/general.m4 (AT_INIT): After having run the test
18303 group, go back to the initial directory, not to at_suite_dir.
18305 2001-11-13 Akim Demaille <akim@epita.fr>
18307 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
18308 (AT_DATA_AUTOCONF): Also protect @&t@ from autom4te.
18309 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
18311 (AT_CHECK_CONFIGURE): Use absolute paths.
18312 (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
18313 The problem is still the old one: there is no means in M4 (that I
18314 know about) to create a defining macro, because there is no means
18315 to create `$1' etc., therefore, the defining macro ``swallows''
18316 all the arguments meant to the defined macro.
18318 2001-11-13 Akim Demaille <akim@epita.fr>
18320 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
18321 (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
18323 * tests/aclocal.m4: Remove, as it is no longer used.
18325 2001-11-13 Akim Demaille <akim@epita.fr>
18327 * lib/autotest/general.m4: Change `tests?' into `groups?' in
18328 variable names when referring to a single test group, or to
18329 `suite' when referring to the whole test suite.
18330 `at_last_test' is removed: m4 compute at_format itself.
18331 (at_stdout, at_stder1, at_stderr): New variables.
18332 (AT_CHECK): Use them.
18334 2001-11-13 Akim Demaille <akim@epita.fr>
18336 * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
18338 Create `testsuite.dir/003/run' instead of `testsuite.003'.
18339 Do it as soon as a test fails, don't wait till the end of the test
18341 Don't remove $as_me.[0-9]*, since these files no longer exist.
18343 2001-11-13 Akim Demaille <akim@epita.fr>
18345 * tests/tools.at: Use absolute paths, since we are no longer run
18348 2001-11-13 Akim Demaille <akim@epita.fr>
18350 Now that tests are running in their own private dir, there is no
18351 need to list the files to remove at the end of tests groups.
18353 * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
18354 (AT_data_files, at_data_files): Remove.
18355 (AT_CLEANUP, AT_DATA): Simplify.
18357 Remove the group dir if !debug && !failed.
18358 * tests/atspecific.m4: Adjust.
18360 2001-11-13 Akim Demaille <akim@epita.fr>
18362 Start a new layout for Autotest: `testsuite' creates
18363 `testsuite.dir' in which the at-check-line etc. files are to be
18364 found, and `testsuite.dir/003' where the test group 3 is run.
18366 * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
18367 at_check_line_file, at_format, at_test_normalized, at_group_dir
18369 Create the directories.
18370 Use absolute paths for at- files.
18371 (AT_CHECK): Adjust.
18373 2001-11-11 Michael Matz <matz@kde.org>
18375 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
18377 (m4_car): Properly quote arguments.
18379 2001-11-13 Akim Demaille <akim@epita.fr>
18381 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
18382 with stricter rules on LIBOBJS.
18384 2001-11-12 Paul Eggert <eggert@twinsun.com>
18386 * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
18387 * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
18390 2001-11-12 Akim Demaille <akim@epita.fr>
18392 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
18394 2001-11-12 Akim Demaille <akim@epita.fr>
18396 * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
18397 * lib/autoconf/functions.m4, lib/autoconf/general.m4,
18398 * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
18399 * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
18400 * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
18401 specify to what the macro should be defined (typically to 1).
18403 2001-11-12 Akim Demaille <akim@epita.fr>
18405 * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
18408 2001-11-12 Akim Demaille <akim@epita.fr>
18410 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
18411 AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND. This validates the
18412 definition used by Automake where LEX is +/- "${missing} lex" and
18413 `missing' itself contains variables.
18415 2001-11-12 Akim Demaille <akim@epita.fr>
18417 * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
18418 Now that M4sh pushes BODY, the comments were output at the end of
18421 2001-11-08 Akim Demaille <akim@epita.fr>
18423 * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
18424 that we can trace macros from aclocal.m4.
18425 Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
18426 obsoleted, and redirect to the former anyway.
18427 Reported by Ralf Corsepius.
18429 2001-11-08 Akim Demaille <akim@epita.fr>
18431 * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
18432 processed only if present.
18433 * tests/torture.at (Configuring subdirectories): Use autoreconf
18434 instead of successive calls to autoconf.
18435 Add a nonexistent subdirectory to exercise the patch above.
18436 Reported by Ralf Corsepius.
18438 2001-11-08 Kevin Ryde <user42@zip.com.au>
18440 * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
18441 doesn't accept .S files.
18443 2001-11-07 Akim Demaille <akim@epita.fr>
18445 * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
18446 * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
18447 (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
18448 * bin/autom4te.in (warn_forbidden): New.
18449 (handle_output): Use it.
18450 Read m4_pattern_forbid with messages.
18452 2001-11-05 Akim Demaille <akim@epita.fr>
18454 * bin/autom4te.in (--normalize): Remove.
18455 * lib/autom4te.in: Adjust.
18457 2001-11-05 Akim Demaille <akim@epita.fr>
18459 * tests/Makefile.am (testsuite): Rename this target as...
18460 ($(TESTSUITE)): this.
18463 2001-11-05 Alexandre Duret-Lutz <duret_g@epita.fr>
18465 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
18466 the --prefix option, also remove it's argument.
18468 2001-11-05 Akim Demaille <akim@epita.fr>
18470 * doc/autoconf.texi (testsuite Invocation): Update.
18471 (Writing testsuite.at): Update.
18473 2001-11-03 Akim Demaille <akim@epita.fr>
18475 * doc/autoconf.texi: s/@code/@command/ where appropriate.
18477 2001-11-03 Akim Demaille <akim@epita.fr>
18479 * lib/Autom4te/General.pm: (&catfile, &canonfile)
18480 (&file_name_is_absolute): New, wrappers around routines from
18482 Use and export them.
18483 (&find_configure_ac): Optionally take a directory where to look at.
18484 * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
18486 Default @ARGV to `.', not find_configure_ac.
18487 (&autoreconf): Argument is a directory.
18488 Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
18489 * doc/autoconf.texi (autoreconf Invocation): Update.
18491 2001-11-03 Akim Demaille <akim@epita.fr>
18493 * lib/Autom4te/General.pm (@export_vars, @export_subs)
18494 (@export_forward_subs): New.
18495 Add basename, dirname, and fileparse.
18497 * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
18498 Don't look for aclocal flags if we already know aclocal is not
18500 Move aclocal.m4t only if it exists.
18501 Reported by Ezra Peisach.
18503 2001-11-03 Akim Demaille <akim@epita.fr>
18505 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
18506 passed on command line, defaulting to ./configure.ac if present.
18507 (&maybe_autoreconf, File::Find): Remove, unused.
18508 (&autoreconf): If autoconf is not used, don't try to trace.
18510 2001-11-02 Akim Demaille <akim@epita.fr>
18512 * configure.ac: Bump to 2.52g.
18514 2001-11-02 Akim Demaille <akim@epita.fr>
18518 2001-11-02 Akim Demaille <akim@epita.fr>
18520 * config/config.guess, config/config.sub, doc/standards.texi:
18521 * config/lispdir.m4: Update from masters.
18522 * configure.ac: Bump to 2.52f.
18524 2001-11-02 Akim Demaille <akim@epita.fr>
18526 * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
18527 Don't run aclocal when aclocal.m4 is not from aclocal.
18529 Don't run libtoolize and gettextize if --install is not given.
18531 2001-11-01 Paul Eggert <eggert@twinsun.com>
18533 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
18534 be invoked before _AS_LINENO_PREPARE.
18535 (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
18536 than character ranges.
18538 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
18539 invoking AS_BASENAME. Set the locale variables to 'C' if
18540 possible, as POSIX requires this to get the traditional
18542 * doc/autoconf.texi (Special Shell Variables): Describe the above.
18544 2001-10-31 Paul Eggert <eggert@twinsun.com>
18546 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
18547 with {}, as that triggers a bug in Bash 2.05.
18549 (_AS_LINENO_PREPARE): Use Sed rather than
18550 Awk. Fix the sed prepass to work even if there are multiple
18551 instances of $LINENO on the same line. Do not substitute for
18552 other variables like $LINENOT. Do not check file dates; such a
18553 check is unreliable on sufficiently fast machines, and removing
18554 the check makes the code simpler and more reliable. Check for
18555 output and chmod failures.
18557 * doc/autoconf.texi (Special Shell Variables): Document
18560 2001-10-31 Akim Demaille <akim@epita.fr>
18562 * tests/Makefile.am (atconfig): Remove this target, Automake
18565 2001-10-31 Akim Demaille <akim@epita.fr>
18567 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
18568 AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
18569 provided, while it is optional.
18570 * configure.ac: Adjust.
18572 2001-10-26 Paul Eggert <eggert@twinsun.com>
18574 * NEWS, README, configure.ac, lib/Autom4te/General.pm,
18575 lib/Autom4te/Struct.pm:
18576 Require Perl 5.005_03 instead of just 5.005, as some tests fail
18579 * doc/autoconf.texi (Special Shell Variables): Document some
18580 more LINENO gotchas, particularly with respect to the Awk+Sed hack.
18582 * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
18583 (_AS_LINENO_PREPARE): Use it instead of shell eval, since
18584 eval $LINENO is not portable in practice.
18586 2001-10-24 Akim Demaille <akim@epita.fr>
18588 * lib/Autom4te/General.pm (backname): New.
18590 2001-10-24 Akim Demaille <akim@epita.fr>
18592 * m4/: Remove, merged into...
18595 2001-10-23 Tim Van Holder <tim.van.holder@pandora.be>
18597 * doc/autoconf.texi (Shellology): Mention the problems with bash
18598 2.05's use of ANSI quoting in its `set' builtin.
18600 2001-10-22 Paul Eggert <eggert@twinsun.com>
18602 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
18603 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
18604 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
18605 POSIX decided to standardize on the int flavor of strerror_r.
18606 Always do char* test, as there's no reason not to.
18607 Assign to a char* var, to catch strerror_r that returns int*.
18609 * doc/autoconf.texi (Particular Functions):
18610 Document the above changes. Also, document the fact that
18611 AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
18613 * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
18615 2001-10-20 Akim Demaille <akim@epita.fr>
18617 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
18618 the executable was missing from the log.
18620 2001-10-20 Akim Demaille <akim@epita.fr>
18622 * lib/Autom4te/General.pm (&update_file): If destination is
18623 unchanged, remove the source.
18624 (&up_to_date_p): Don't be verbose, be debug.
18625 * bin/autoreconf.in: No longer support --m4dir.
18626 (&autoreconf): Display the full path of the configure.ac we are
18628 Trace it only once.
18629 Be sure to honor --force with gettextize.
18630 Always run aclocal.
18631 * doc/autoconf.texi: Adjust.
18633 2001-10-20 Akim Demaille <akim@epita.fr>
18635 * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
18637 * bin/autoreconf.in (&autoreconf): Do not run gettextize when
18638 `intl' is already present, as it refuses unless --force.
18639 (&parse_args): Use -I, --include instead of the old Autoconf
18641 ($localdir, $autoconf_dir): Remove.
18643 (&maybe_autoreconf): New, to preserve $_ for File::Find.
18645 2001-10-19 Jens Petersen <petersen@redhat.com>
18647 * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
18648 * doc/autoconf.texi (Particular Programs): Likewise.
18650 2001-10-19 Akim Demaille <akim@epita.fr>
18652 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
18653 file in @configure_input@.
18654 Don't mention `automatically' in addition to `generated'.
18655 * tests/torture.at (#define header templates): Adjust.
18657 2001-10-19 Akim Demaille <akim@epita.fr>
18659 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
18660 comment, explain how to install automatic mode selection.
18663 2001-10-19 Ezra Peisach <epeisach@zif.mit.edu>
18665 * bin/autoreconf.in (autoreconf): Display the path to the
18666 configure.ac being studied.
18668 2001-10-18 Paul Eggert <eggert@twinsun.com>
18670 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
18671 long, to work around a bug in the HP C compiler version HP92453-01
18674 * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
18675 (AS_BASENAME_EXPR): New macro.
18676 (AS_BASENAME_SED): Do not assume GNU sed semantics.
18677 (AS_BASENAME): Use 'basename' if that works; then try 'expr';
18678 and fall back on 'sed' only if the other two fail. This makes
18679 AS_BASENAME act more like AS_DIRNAME.
18680 (as_me): Shell-quote the argument of AS_BASENAME, in case $0
18681 contains white space.
18682 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
18683 Use AS_DIRNAME, since I think it's now DOS-friendly.
18684 * tests/m4sh.at (DIRNAME_TEST): New arg $3.
18685 Allow "dirname //FOO" to return either / or //, as POSIX allows
18688 2001-10-10 Akim Demaille <akim@epita.fr>
18690 * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
18691 `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
18694 2001-10-10 Akim Demaille <akim@epita.fr>
18696 * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
18697 m4_define, since...
18698 (_AS_ECHO_N): AS_REQUIREs it.
18700 2001-10-10 Akim Demaille <akim@epita.fr>
18702 * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
18703 (AC_INCLUDES_DEFAULT): Move to...
18704 * lib/autoconf/headers.m4: here.
18705 * lib/autoconf/types.m4: Comment changes.
18706 * doc/autoconf.texi: Specify where the default includes are used
18707 in the macro prototypes.
18709 2001-10-09 Akim Demaille <akim@epita.fr>
18711 * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
18714 2001-10-08 Akim Demaille <akim@epita.fr>
18716 * bin/autoreconf.in (&autoreconf): Remove debugging code.
18717 (&parse_args): Pass verbosity/debugging options to subtools when
18718 --debug, not when --verbose.
18719 * lib/autom4te.in (Autoreconf-preselections): New.
18720 (Autoconf): Use it.
18722 2001-10-08 Akim Demaille <akim@epita.fr>
18724 * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
18726 2001-10-08 Akim Demaille <akim@epita.fr>
18728 * doc/autoconf.texi (autoreconf Invocation): Adjust.
18729 * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
18731 2001-10-08 Akim Demaille <akim@epita.fr>
18733 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
18734 (Syntax of the shell scripts): Don't.
18735 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
18736 bother with $force since...
18737 * lib/Autom4te/General.pm: does.
18739 2001-10-08 Akim Demaille <akim@epita.fr>
18741 * bin/autoreconf.in: Rewrite in Perl.
18742 * configure.ac: Adjust.
18743 * lib/Autom4te/General.pm (&up_to_date_p): New.
18744 * bin/autom4te.in (&up_to_date_p): Use it.
18746 (&up_to_date): this.
18748 2001-10-08 Akim Demaille <akim@epita.fr>
18750 * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
18751 (m4_list_cmp): Use $0 to reinvoke yourself.
18752 (m4_patsubsts): New.
18753 (m4_strip, m4_version_unletter): Use it.
18754 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
18756 2001-10-08 Akim Demaille <akim@epita.fr>
18758 * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
18759 * lib/autoconf/libs.m4, lib/autoconf/status.m4,
18760 * lib/autoconf/types.m4, lib/autotest/general.m4,
18761 * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
18762 * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
18763 m4_bregexp, m4_bpatsubst, and m4_bmatch.
18764 * doc/autoconf.texi (Redefined M4 Macros): Adjust.
18766 2001-10-08 Akim Demaille <akim@epita.fr>
18768 * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
18770 2001-10-08 Akim Demaille <akim@epita.fr>
18772 * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
18773 * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
18774 * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
18775 * tests/tools.at, tests/m4sh.at: Use it.
18776 * tests/m4sh.at: Don't rely on Autoconf macros.
18777 (DIRNAME_TEST): Also exercise the expr variant.
18778 * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
18779 preferred M4sugar extension is now `.4s'.
18780 * tests/README: Remove.
18782 2001-10-08 Akim Demaille <akim@epita.fr>
18784 * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
18785 (m4_provide_if): this.
18786 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
18787 * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
18788 (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
18789 M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
18791 2001-10-08 Akim Demaille <akim@epita.fr>
18793 Use `add-log-current-defun-function' for ChangeLog creation.
18794 Suggested by Tom Tromey.
18796 * lib/emacs/autotest-mode.el (autotest-mode-map): New.
18797 (autotest-mode): Adjust.
18798 * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
18799 'comment-region onto `C-c ;'.
18800 Comments are `#', not `dnl'.
18801 (autoconf-current-defun): New.
18802 (autoconf-font-lock-keywords): Recognize `m4_defun'.
18804 2001-10-08 Akim Demaille <akim@epita.fr>
18806 * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
18807 * lib/m4sugar/m4sh.m4: here.
18808 (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
18809 * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
18810 (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
18811 include handle the m4_pattern_*, no longer push the
18812 BODY diversion nor set the /bin/sh line, AS_INIT does it.
18813 * lib/autotest/general.m4 (AT_INIT): Likewise.
18814 * tests/base.at: Adjust the tests to use AS_INIT.
18815 * tests/tools.at (AT_DATA_FORBIDDEN): New.
18816 (autoconf: forbidden tokens): Adjust to work on M4sh instead of
18819 2001-10-07 Paul Eggert <eggert@twinsun.com>
18821 * doc/autoconf.texi (config.status Invocation):
18822 CONFIG_SHELL defaults to a shell that supports LINENO if available.
18824 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
18825 shell does not support LINENO, and if CONFIG_SHELL is unset or
18826 empty, and if we can find a shell that does support LINENO,
18827 then set CONFIG_SHELL to that shell and then re-execute
18828 ourselves with CONFIG_SHELL.
18830 2001-10-05 Paul Eggert <eggert@twinsun.com>
18832 * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
18833 doesn't exist. Remove *.tmp, as a .tmp file is created during the
18834 build of $(TESTSUITE).
18836 2001-10-05 Akim Demaille <akim@epita.fr>
18838 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
18839 iff we are a bareword.
18840 Reported by Raja R Harinath.
18842 2001-10-05 Akim Demaille <akim@epita.fr>
18844 * tests/m4sh.at (LINENO): New.
18845 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
18846 PATH_SEPARATOR before using it.
18847 Fix the absolute path case/esac pattern.
18848 Provide $0 as fallback for as_myself.
18849 Reported by Raja R Harinath.
18851 2001-10-05 Akim Demaille <akim@epita.fr>
18853 * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
18854 * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
18856 2001-10-05 Akim Demaille <akim@epita.fr>
18858 * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
18859 (AS_SHELL_SANITIZE): here. Use it.
18860 (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
18863 2001-10-04 Akim Demaille <akim@epita.fr>
18865 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
18866 combination of Awk and sed to replace $LINENO.
18868 2001-10-02 Paul Eggert <eggert@twinsun.com>
18870 * doc/autoconf.texi (Limitations of Builtins): You can't use
18871 "source"; it's not portable. Remove confusing and
18872 somewhat-incorrect example involving "." and "/".
18874 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
18875 compatibility with POSIX shells.
18877 2001-10-02 Akim Demaille <akim@epita.fr>
18879 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
18880 instead of exec'ing to preserve $0 and $@.
18882 2001-10-01 Akim Demaille <akim@epita.fr>
18884 * tests/testsuite (AT_INIT) <at_pass_list>: New.
18885 Don't run twice the same test.
18887 2001-10-01 Akim Demaille <akim@epita.fr>
18889 * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
18890 No longer output the list of tests.
18891 <--list>: New option.
18892 <--full-help>: Remove.
18893 Complete the short/long options duality.
18894 Various small adjustments.
18896 2001-10-01 Akim Demaille <akim@epita.fr>
18898 * doc/autoconf.texi: Use @kbd for user input.
18899 Always use `$' as shell prompt.
18901 2001-09-30 Paul Eggert <eggert@twinsun.com>
18903 * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
18904 Don't use nested parenthesization. This patch was originally
18905 suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
18906 but somehow it didn't get incorporated then.
18907 * doc/autoconf.texi (Limitations of Usual Tools):
18908 Clarify remark about sed and nested parenthesization.
18910 * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
18911 Report an error if the size cannot be determined even though
18913 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
18914 Check for `expr' arithmetic overflow, and for compilation failure,
18915 and invoke a new argument $4 if either is discovered.
18916 This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
18917 (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
18919 2001-09-28 Akim Demaille <akim@epita.fr>
18921 * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
18922 * m4/lispdir.m4: New.
18923 * aclocal.m4, configure.ac: Adjust.
18925 2001-09-28 Akim Demaille <akim@epita.fr>
18927 * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
18929 (AT_INIT): More the wrapped section to where it will be expanded.
18930 Output `AT_tested' only when existing.
18931 Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
18933 2001-09-27 Akim Demaille <akim@epita.fr>
18935 Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
18936 generates too many bug reports.
18938 * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
18939 status when executing the ACTION-IF-FALSE.
18940 * tests/base.at (AC_TRY_*): Rename as...
18941 (AC_TRY_COMMAND): this.
18942 (AC_RUN_IFELSE): New.
18943 * tests/compile.at (Extensions, C keywords)
18944 (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
18945 (Broken/missing compilers, AC_PROG_CPP with warnings)
18946 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
18947 * tests/c.at (Extensions, C keywords)
18948 (Broken/missing compilers, AC_PROG_CPP with warnings)
18949 (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
18950 (AC_PROG_CPP requires AC_PROG_CC): here and...
18951 * tests/fortran.at (GNU Fortran 77): there.
18952 * doc/autoconf.texi (autoconf Invocation): Fix the example:
18953 AC_TRY_RUN is about compilation, not shell commands.
18954 (Test Programs): AC_TRY_RUN works as used to be advertised.
18956 2001-09-27 Akim Demaille <akim@epita.fr>
18958 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
18960 Be sure to detect when $LINENO always returns the same value.
18961 Look for the original script, basename($0) is certainly not
18963 Pass the CLI arguments to `$as_me.lineno'.
18965 2001-09-25 Akim Demaille <akim@epita.fr>
18967 * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
18968 Be sure the close and reopen the LOG fd before and after using tee
18970 <at_tests_pattern>: Adjust to the new format of at_help_all.
18972 2001-09-23 Akim Demaille <akim@epita.fr>
18974 * bin/autom4te.in (parse_args): There can be several invocations
18977 2001-09-23 Akim Demaille <akim@epita.fr>
18979 * doc/autoconf.texi (Top): Wrap in @ifnottex.
18981 2001-09-23 Akim Demaille <akim@epita.fr>
18983 * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
18984 ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
18985 (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
18986 builddir, buildpath, top_builddir, and top_buildpath.
18987 (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
18988 the current directory.
18989 * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
18990 variables *before* changing the current directory.
18991 Skip nonexistent dirs.
18992 * doc/autoconf.texi (Preset Output Variables): Document these
18995 * lib/autotest/general.m4: Do not reset AT_victims.
18996 Don't compute at_srcdir nor at_top_srcdir.
18998 * tests/tools.at: Hence use top_srcdir.
19000 * tests/Makefile.am, tests/autoconf, tests/autoheader,
19001 * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
19003 * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
19004 * tests/wrapsh.in, tests/autoupdate.in: New.
19005 * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
19006 * configure.ac: Build the position independent wrappers.
19008 * man/Makefile.am: Now that test wrappers are position
19009 independent, use them and drop dark envvar magic.
19011 2001-09-23 Akim Demaille <akim@epita.fr>
19013 * doc/autoconf.texi (Common Shell Constructs): Rename as...
19014 (Programming in M4sh): this.
19015 Promote to @section.
19017 2001-09-23 Akim Demaille <akim@epita.fr>
19019 * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
19020 Pass $at_debug_args to the rerun test suite.
19021 * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
19022 * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
19025 2001-09-23 Akim Demaille <akim@epita.fr>
19027 * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
19029 2001-09-23 Akim Demaille <akim@epita.fr>
19031 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
19034 2001-09-23 Akim Demaille <akim@epita.fr>
19036 * lib/Autom4te/General.pm (&debug): New.
19037 * bin/autom4te.in ($language): Move to...
19038 (parse_args): here.
19039 Handle --language in languages.
19040 * lib/autom4te.in (Automake-selections, Autoheader-selections)
19041 (Autoscan-selections): New.
19042 (Autoconf): Adjust.
19044 2001-09-23 Tim Van Holder <tim.van.holder@pandora.be>
19046 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
19047 * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
19048 to match current versions from CVS Automake.
19050 2001-09-23 Alexandre Duret-Lutz <duret_g@epita.fr>
19052 * doc/autoconf.texi (Special Shell Variables): Add pdksh output
19055 2001-09-22 Akim Demaille <akim@epita.fr>
19057 * lib/autoconf/autotest.m4: Create `package.m4'.
19058 * tests/Makefile.am (package.m4): Remove.
19060 2001-09-22 Akim Demaille <akim@epita.fr>
19062 Rely on `$LINENO' when possible instead of `__oline__'.
19064 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
19065 `$LINENO' support replacement when not supported.
19066 (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
19067 them explicitly to be sure they are not output before this section
19068 (via m4_require). Cosmetic only.
19069 * lib/autoconf/c.m4, lib/autoconf/general.m4,
19070 * lib/autoconf/programs.m4: Replace all the occurrences of
19071 `__oline__' with `$LINENO'.
19072 * doc/autoconf.texi (Special Shell Variables): Document LINENO.
19074 2001-09-21 Tim Van Holder <tim.van.holder@pandora.be>
19076 * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
19077 character (u: -> ue) in a code comment.
19078 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
19081 2001-09-21 Akim Demaille <akim@epita.fr>
19083 * Makefile.maint (AUTOM4TE): Neutralize autom4te.
19084 Suggested by Jim Meyering.
19086 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19088 * lib/autoconf/programs.m4: Use extensions listed in
19089 $ac_executable_extensions when looking for programs.
19091 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19093 * lib/autoconf/general.m4: Fix a small Englisho.
19094 * lib/autoconf/status.m4: Fix a small typo. Handle DOS paths when
19095 setting up ac_dir_suffix and ac_top_builddir.
19096 * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
19098 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19100 * doc/autoconf.texi (File System Conventions): Clarify the use of
19102 (Special Shell Variables[PATH_SEPARATOR]): Ditto.
19103 (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
19104 be used instead of ':'.
19105 * lib/autotest/general.m4: Replace occurrences of ':' in
19106 AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
19108 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19110 * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
19111 arguments. Fixed a typo.
19113 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19115 * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
19116 $PATH. Also set AUTOM4TE_CFG, so we can process autom4te properly.
19118 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19120 * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
19121 * bin/autoupdate.in: Ditto.
19122 * bin/autoheader.in: Reworded a few comments.
19123 * bin/autoconf.in: Reworded help text for a few options.
19124 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
19125 * bin/autoscan.in, bin/autoupdate.in: Ditto.
19127 2001-09-20 Tim Van Holder <tim.van.holder@pandora.be>
19129 * lib/Autom4te/XFile.pm (open): Simplified the error message (we
19130 already have $file). Set output files to binary mode (helps avoid
19131 CR issues on DOSish systems).
19133 2001-09-19 Akim Demaille <akim@epita.fr>
19135 * lib/autotest/general.m4: Englishoes.
19136 From Tim Van Holder and Alexey Mahotkin.
19138 2001-09-18 Paul Eggert <eggert@twinsun.com>
19140 * doc/autoconf.texi (Common Shell Constructs): New node,
19141 documenting AS_DIRNAME.
19142 (Limitations of Usual Tools): Refer to it when discussing dirname.
19143 Also, update discussion of POSIX standard to reflect latest draft.
19145 * lib/autoconf/c.m4:
19146 (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
19148 * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
19149 Do not pass a first argument with leading '-'
19150 to expr, by parenthesizing initial integers that might be negative.
19152 * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
19153 now merely checks whether it is an error to pass an argument
19156 * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
19157 (AC_FUNC_GETPGRP): Don't bother with a runtime test. Just check
19158 whether it is a (compile-time) error to pass an argument to
19159 getpgrp. This simpler test supports the revised documentation,
19160 and is all that AC_FUNC_GETPGRP's users really need.
19162 2001-09-18 Akim Demaille <akim@epita.fr>
19164 * doc/autoconf.texi (Limitations of Make) <$<>: New.
19166 2001-09-18 Akim Demaille <akim@epita.fr>
19168 * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
19170 * lib/autotest/general.m4 (AT_INIT): Adjust.
19172 2001-09-18 Paul Wagland <paul@wagland.net>
19174 * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
19176 Add test for AS_BASENAME.
19177 * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
19178 added test. It now correctly handles /1/2/3/, returning '3' not ''.
19179 Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
19180 * tests/base.at: Fixed the expected responses. The old ones were
19182 * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
19183 the documentation claims it should (and how it behaved in 2.13).
19185 2001-09-18 Akim Demaille <akim@epita.fr>
19187 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
19188 the AC_CONFIG_COMMANDS invocation.
19189 This also solves the name clash problems.
19190 Don't set the package's ID.
19191 * lib/m4sugar/Makefile.am (version.m4): Revamp.
19192 No longer to be shipped.
19193 (version.in): Remove.
19194 * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
19195 * lib/autoconf/status.m4: Adjust.
19196 Use `m4_PACKAGE_STRING'.
19197 * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
19198 the only optional argument is the name of the test suite.
19199 Expect `package.m4' to define the package signature.
19200 * lib/autom4te.in (Autotest): Add `package.m4?'.
19201 * tests/Makefile.am (package.m4): New.
19202 * tests/suite.at: ifnames is a victim.
19204 2001-09-18 Akim Demaille <akim@epita.fr>
19206 * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
19207 AC_LIBSOURCE, AC_CONFIG_FILES.
19208 * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
19209 program version string doesn't match the package's.
19210 * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
19213 2001-09-17 Paul Eggert <eggert@twinsun.com>
19215 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19216 Allow expression to return any value that can fit into unsigned long
19217 (not int, as before). Check for output errors.
19219 2001-09-17 Bruno Haible <haible@ilog.fr>
19221 * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
19222 Always include <stdio.h> and <stdlib.h>. Evaluate
19223 the expression in an extra function before these includes. Call
19224 fprintf "%d" only after ensuring the argument is of type 'int'.
19225 Reported by Wayne Chapeskie <waynec@spinnaker.com>.
19227 2001-09-17 Paul Eggert <eggert@twinsun.com>
19229 Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
19230 or CFLAGS=-O5. In that case, the linker has a relaxed view of
19231 fatal errors, and AC_CHECK_LIB causes it to include libraries even
19232 when they don't exist.
19234 * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
19235 not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
19238 * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
19239 version with the version used by fileutils 4.1, except use
19240 AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
19243 * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
19245 2001-09-13 Akim Demaille <akim@epita.fr>
19247 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
19249 Reported by Gerrit P. Haase.
19251 2001-09-13 Akim Demaille <akim@epita.fr>
19253 * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
19254 m4_defn'ing is valid.
19256 2001-09-13 Akim Demaille <akim@epita.fr>
19258 * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
19259 * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
19262 2001-09-13 Akim Demaille <akim@epita.fr>
19264 * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
19266 (m4_re_escape): New.
19267 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
19268 * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
19269 * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
19271 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
19272 (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
19273 * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
19274 AT_tests_all for consistency.
19276 (AT_VICTIMS): Similar to AT_KEYWORDS.
19277 (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
19279 2001-09-13 Akim Demaille <akim@epita.fr>
19281 * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
19283 2001-09-13 Akim Demaille <akim@epita.fr>
19285 * lib/autotest/general.m4 (AT_INIT): Create and remove
19286 `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
19287 test suites can cohabit.
19289 2001-09-13 Akim Demaille <akim@epita.fr>
19291 * tests/mktests.sh: Don't output banners for empty test files.
19293 2001-09-13 Akim Demaille <akim@epita.fr>
19295 Test suites can be run independently of configure.
19297 * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
19298 * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
19299 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
19301 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
19303 * lib/autotest/general.m4: Use ECHO_*.
19305 2001-09-13 Akim Demaille <akim@epita.fr>
19307 * bin/ifnames.in: Rewrite in Perl.
19308 * configure.ac: Don't look for AWK.
19309 * tests/tools.at (AWK portability): Remove.
19310 (Syntax of the shell scripts): Don't check ifnames.
19311 (AT_CHECK_PERL_SYNTAX): New.
19312 (Syntax of the Perl scripts): Check ifnames.
19313 * tests/ifnames: New.
19315 2001-09-13 Akim Demaille <akim@epita.fr>
19317 * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
19319 * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
19320 Remove all the other keywords.
19322 2001-09-10 Akim Demaille <akim@epita.fr>
19324 * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
19325 SETUP: no longer used.
19326 Support -k, --keywords.
19327 <at_help>: Be `no', `short', or `long'.
19328 <at_help_all>: New variable.
19329 (AT_KEYWORDS): New.
19330 (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
19331 (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
19332 (_AT_CLEANUP_FILE_IF): Simplify the regexp.
19333 (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
19334 No longer fill the HELP diversion.
19335 (AT_CLEANUP): Use them.
19336 * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
19337 (m4_list_append): Remove.
19339 Spread a few keywords in the Autoconf test suite.
19341 2001-09-10 Akim Demaille <akim@epita.fr>
19343 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
19344 PATH_SEPARATOR, let M4sh compute it.
19345 * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
19346 * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
19348 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
19349 Simplify when the path is not a literal.
19350 (AS_UNAME): Use it to report PATH.
19351 * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
19352 (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
19353 * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
19354 * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
19355 normalize the path, and to look for victims.
19356 * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
19357 (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
19359 2001-09-07 Akim Demaille <akim@epita.fr>
19361 * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
19362 doesn't neutralize SIGINT, making autoconf etc. non interruptible.
19363 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
19364 related variables into `at_package_*'.
19365 * lib/autotest/general.m4 (AT_VICTIMS): New.
19366 (AT_INIT): Adjust for stand-alone/embedded test suites.
19367 (AS_MESSAGE_LOG_FD): Define and use it.
19368 * tests/suite.at (AT_VICTIMS): Use it.
19369 * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
19372 2001-09-07 Akim Demaille <akim@epita.fr>
19374 Move toward possibly stand-alone test suites.
19376 * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
19377 in addition, it introduces useless differences in logs.
19378 (AT_INIT): Let atconfig and atlocal be both optional.
19379 Adjust PATH computation.
19380 * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
19382 2001-09-07 Akim Demaille <akim@epita.fr>
19384 * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
19385 m4sugar/version.m4.
19387 2001-09-05 Akim Demaille <akim@epita.fr>
19389 * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
19390 to avoid GCC warnings.
19393 2001-09-05 Akim Demaille <akim@epita.fr>
19395 * bin/autom4te.in: --language is -l, not -s.
19397 2001-09-05 Akim Demaille <akim@epita.fr>
19399 Be ready to handle filenames as stupid as `dnl.at', for if even
19400 the maintainer is dumb enough to do that...
19402 * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
19403 excellence in M4 quotation: consider `__file__' is active.
19405 And BTW, when invoking m4, pass the --include in the right order:
19408 * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
19411 2001-09-05 Akim Demaille <akim@epita.fr>
19413 * lib/Autom4te/XFile.pm: New lib file.
19414 * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
19415 * bin/autoheader.in: Use it.
19417 2001-09-05 Akim Demaille <akim@epita.fr>
19419 * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
19422 2001-09-05 Akim Demaille <akim@epita.fr>
19424 * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
19425 * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
19427 * bin/autoscan.in: Use `getopt' and `find_files' etc.
19428 Add -I, --include support.
19429 * doc/autoconf.texi (autoscan Invocation): Adjust.
19431 2001-09-05 Akim Demaille <akim@epita.fr>
19433 CVS GNU M4 doesn't like `undefine(undefined)'.
19435 * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
19436 New, extracted from main.
19437 Use IO::File wherever possible.
19438 (input.m4): Be constant, use -I instead of hard coding $tmp.
19439 Therefore be a quoted heredoc.
19440 Don't invoke `_au_disable', since ac was not loaded, but just
19443 2001-08-31 Akim Demaille <akim@epita.fr>
19447 2001-08-31 Akim Demaille <akim@epita.fr>
19449 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
19451 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
19453 2001-08-31 Akim Demaille <akim@epita.fr>
19455 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
19456 serious problems handling heredocs in heredocs.
19457 Reported by Nicolas Joly.
19459 2001-08-31 Akim Demaille <akim@epita.fr>
19461 * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
19462 (Making testsuite Scripts): Update.
19464 2001-08-31 Akim Demaille <akim@epita.fr>
19466 * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
19468 2001-08-31 Akim Demaille <akim@epita.fr>
19470 * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
19471 (testsuite Scripts): There is no such thing as `atconfig.in'.
19472 And actually one diagram is missing: test suite runtime.
19474 2001-08-31 Akim Demaille <akim@epita.fr>
19476 * lib/Autom4te/General.pm (&find_file): Browse the includes in the
19479 2001-08-31 Akim Demaille <akim@epita.fr>
19481 * bin/autoupdate.in (@include): `installcheck' revealed the path
19482 to m4sugar was lacking!
19484 2001-08-31 Akim Demaille <akim@epita.fr>
19486 * man/Makefile.am (.x.1): We really have to pass
19487 autom4te_perllibdir.
19489 2001-08-31 Akim Demaille <akim@epita.fr>
19491 * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
19492 debug scripts, in particular passing explicitly listed tests to
19495 2001-08-31 Akim Demaille <akim@epita.fr>
19497 * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
19498 * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
19499 Use directly autom4te, not autoconf.
19500 * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
19502 2001-08-31 Akim Demaille <akim@epita.fr>
19504 * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
19505 * bin/autoheader.in (%symbol): Strip arguments of macros.
19507 2001-08-31 Akim Demaille <akim@epita.fr>
19509 * doc/autoconf.texi: Catch up -I, --include changes.
19511 2001-08-31 Akim Demaille <akim@epita.fr>
19513 * bin/autom4te.in (&parse_args): Die on unknown languages.
19514 * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
19516 Promote --include over --macrodir and other obsolete options.
19518 2001-08-31 Akim Demaille <akim@epita.fr>
19520 * lib/Autom4te/General.pm ($version, $help, &getopt): New.
19521 * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
19522 * bin/autom4te.in ($autoconf): Pass --force.
19523 `print $out' doesn't print `$_' but `$out'.
19524 * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
19525 (autoheader): Pass --force since the test suite goes too fast for
19527 Adjust to the new autoheader messages.
19529 2001-08-31 Akim Demaille <akim@epita.fr>
19531 * bin/autoheader.in: Handle the acconfig.h etc. junk files.
19532 Check the completeness of the #template.
19533 * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
19534 * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
19537 2001-08-31 Akim Demaille <akim@epita.fr>
19539 * lib/Autom4te/General.pm (&find_file, &update_file): New.
19540 * bin/autoupdate.in, bin/autoheader.in: Adjust.
19541 Drop AC_MACRODIR dead for real.
19542 * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
19543 `autoheader: `config.hin' is created'.
19544 * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
19546 2001-08-31 Akim Demaille <akim@epita.fr>
19548 * bin/autoheader.in: Rewrite in Perl.
19549 * tests/autoheader: Adjust.
19551 2001-08-31 Akim Demaille <akim@epita.fr>
19553 * bin/autoconf.in (--include, -I): New option.
19554 Map --localdir, --autoconf-dir onto it.
19555 Forward autom4te's options instead of interpreting them.
19556 * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
19557 There is no such envvar since the inception of autom4te.cfg.
19558 * bin/autom4te.in (&parse_args): Uniquify `@include'.
19559 * bin/autoupdate.in: Adjust, and perform more control.
19560 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
19561 * tests/autoconf: Dittowise.
19563 2001-08-31 Akim Demaille <akim@epita.fr>
19565 * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
19566 * bin/autom4te.in (&find_file): Support `FILE?' standing for
19568 Use -e, not -f, since /dev/null for instance is OK.
19569 (&parse_args): Adjust.
19570 * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
19572 2001-08-31 Akim Demaille <akim@epita.fr>
19574 * configure.ac: Also find tested executables in bin.
19575 * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
19576 * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
19577 installed peer executables, only PATH is allowed to resolve it.
19578 Pass `autoconf_dir' via options, not via invisible envvars.
19579 * lib/Autom4te/General.pm (&find_peer): Remove.
19580 * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
19581 `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
19582 * man/Makefile.am: Let help2man rely on PATH instead of trying to
19583 find the executables for it.
19584 * tests/Makefile.am: Major cleanup. Too lazy to document...
19585 * tests/atlocal.in: Remove all the obscure envvar manipulations.
19587 * tests/atspecific.m4, tests/tools.at: Passing --localdir is
19588 indeed related to running the test suite, while passing
19589 --autoconf-dir and others is related to running non installed
19590 Autoconf executables. So don't do that, leave it to...
19591 * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
19592 * tests/autoscan: New.
19593 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
19594 refer to library files: rely on --language.
19596 2001-08-29 Akim Demaille <akim@epita.fr>
19598 * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
19599 s/--set/--language/.
19601 2001-08-29 Akim Demaille <akim@epita.fr>
19603 * doc/autoconf.texi: Strip the @nodes.
19604 Suggested by Paul Eggert.
19605 (Initializing configure): Typo.
19607 2001-08-29 Akim Demaille <akim@epita.fr>
19609 * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
19610 Suggested by Paul Eggert.
19612 2001-08-29 Akim Demaille <akim@epita.fr>
19614 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
19615 download in a tmp dir.
19617 2001-08-29 Akim Demaille <akim@epita.fr>
19619 * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
19620 case insensitive OSes out there :(
19621 From Tim Van Holder.
19623 2001-08-29 Akim Demaille <akim@epita.fr>
19625 * lib/autom4te.in: New.
19626 * lib/Makefile.am (edit, autom4te.cfg): New.
19627 * bin/autom4te.in (BEGIN): Simplify.
19628 Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
19629 (&load_configuration): New. Use it.
19630 (&parse_args): Support --mode, --set, and --melt.
19631 * bin/autoconf.in: Simplify and adjust.
19632 * tests/Makefile.am (AUTOMAKE): Use --set.
19633 * tests/atlocal.in: Adjust.
19634 * BUGS: distcheck and check are weak.
19636 2001-08-29 Akim Demaille <akim@epita.fr>
19638 * lib/autotest/general.m4: Use
19639 foo=`(command) 2>/dev/null`
19641 foo=`command` 2>/dev/null
19642 (at-devnull): Rename as...
19643 (AT-devnull): this.
19644 (--clean): Remove AT-* files too.
19645 * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
19646 Reported by Nicolas Joly.
19648 2001-08-28 Akim Demaille <akim@epita.fr>
19650 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
19651 quotes inside single quotes.
19652 Reported by Nicolas Joly.
19654 2001-08-28 Kevin Ryde <user42@zip.com.au>
19656 * doc/autoconf.texi (Function Portability): Mention C right shifts.
19658 2001-08-27 Tim Van Holder <tim.van.holder@pandora.be>
19660 * lib/autotest/general.m4: Reword some messages.
19661 (AT_INIT): Check for the `times' builtin before using it.
19662 Support test ranges as arguments to the testsuite.
19663 Have -e imply -d as the help text suggested.
19665 2001-08-27 Akim Demaille <akim@epita.fr>
19667 * Makefile.maint: Formatting changes.
19668 (do-po-update, po-update, cvs-update, update): New targets.
19671 2001-08-27 Akim Demaille <akim@epita.fr>
19673 * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
19674 <at_cmd_line>: New.
19675 Pass it to debug-*.sh scripts.
19676 <AUTOTEST_PATH>: May contain absolute dir names.
19678 2001-08-27 Akim Demaille <akim@epita.fr>
19680 * lib/autotest/general.m4 (AT_INIT): Log the command line.
19681 Support `VAR=VAL' as arguments.
19682 Compute PATH _after_ the options processing, so that AUTOTEST_PATH
19683 may be set via the command line.
19685 2001-08-27 Akim Demaille <akim@epita.fr>
19687 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
19688 * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
19689 first the build dirs, then the src dirs.
19690 * configure.ac (AC_CONFIG_TESTDIR): Adjust.
19692 2001-08-27 Akim Demaille <akim@epita.fr>
19694 * lib/autotest/general.m4 (AT_INIT): Output the definition of
19695 at_data_files earlier.
19696 (--clean, -c): New option.
19697 * tests/Makefile.am: Use this option.
19699 2001-08-27 Akim Demaille <akim@epita.fr>
19701 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
19702 `ac_top_builddir' to mimic Automake's vocabulary, which much more
19705 * doc/autoconf.texi (Configuration Actions): Document the vars
19706 available in commands.
19707 Emphasize the risks of collisions in init-cmds.
19709 2001-08-27 Akim Demaille <akim@epita.fr>
19711 * doc/autoconf.texi (Input) <AC_INIT>: Move to..
19712 (Initializing configure): this new node.
19714 2001-08-27 Akim Demaille <akim@epita.fr>
19716 * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
19718 2001-08-27 Akim Demaille <akim@epita.fr>
19720 * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
19721 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
19723 * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
19725 2001-08-27 Akim Demaille <akim@epita.fr>
19727 * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
19729 * lib/autoconf/autoheader.m4: this new file.
19730 * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
19731 (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
19733 * lib/autoconf/autoupdate.m4: this new file.
19735 2001-08-27 Akim Demaille <akim@epita.fr>
19737 * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
19738 (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
19739 Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
19741 (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
19742 * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
19744 2001-08-27 Akim Demaille <akim@epita.fr>
19746 * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
19747 (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
19748 (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
19749 (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
19750 (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
19751 (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
19752 (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
19753 (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
19754 (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
19755 (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
19756 (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
19757 (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
19758 (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
19759 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
19760 (_AC_OUTPUT_SUBDIRS): Move to...
19761 * lib/autoconf/status.m4: this new file.
19762 * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
19763 * tests/Makefile.am, tests/suite.at: Adjust.
19765 2001-08-27 Akim Demaille <akim@epita.fr>
19769 * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
19770 (AMTAR): Help automake define it.
19771 (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
19772 needed, 1.5 can have a macro and a target with the same name.
19773 * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
19774 * m4/strip.m4: New.
19775 * m4/init.m4, m4/sanity.m4: Update.
19776 * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
19777 * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
19778 * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
19779 * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
19781 2001-08-27 Akim Demaille <akim@epita.fr>
19783 Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
19785 * lib/autoconf/version.in: Remove.
19786 * lib/m4sugar/version.in: New.
19787 * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
19789 * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
19790 the name of the directory they're in, instead of the filename,
19791 since version.m4 is now in m4sugar, but m4_acversion must not be
19792 classified as an Autoconf macro.
19793 ($input_m4): Don't qualify the path to m4sugar.
19794 Rather, pass autoconf_dir to m4.
19795 * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
19796 * tests/suite.at: Require 2.52c.
19798 2001-08-27 Akim Demaille <akim@epita.fr>
19800 testsuite.log should include config.log.
19802 * lib/autotest/autotest.m4: New.
19803 * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
19804 * tests/suite.at : Adjust.
19805 (AT_INIT): Log config.log.
19806 * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
19807 * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
19808 * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
19809 (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
19810 of config.log on traps.
19811 (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
19812 Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
19813 for config.status'.
19814 Open the log as soon as possible.
19815 Use the same log introduction as configure's.
19817 2001-08-22 Paul Eggert <eggert@twinsun.com>
19819 * doc/autoconf.texi (Indices): New node.
19820 Move indices out of the top level menu and into this submenu.
19822 2001-08-22 Akim Demaille <akim@epita.fr>
19824 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
19826 (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
19828 2001-08-22 Akim Demaille <akim@epita.fr>
19830 * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
19831 (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
19832 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
19833 * lib/autoconf/programs.m4: here.
19834 * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
19835 (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
19836 (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
19837 * lib/autoconf/programs.m4: here.
19838 (_AC_DECL_YYTEXT): Rename as...
19839 (_AC_PROG_LEX_YYTEXT_DECL): this.
19840 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
19841 * tests/Makefile.am, tests/suite.am: Adjust.
19843 2001-08-22 Akim Demaille <akim@epita.fr>
19845 * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
19847 * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
19849 * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
19850 * lib/autoconf/functions.m4: here.
19851 * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
19852 (AH_CHECK_LIB): Move to...
19853 * lib/autoconf/libs: this new file.
19854 * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
19855 (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
19856 * lib/autoconf/libs.m4: here.
19857 * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
19859 2001-08-22 Akim Demaille <akim@epita.fr>
19861 * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
19862 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
19863 (AC_SITE_LOAD): Better logging of config.site.
19865 2001-08-20 Akim Demaille <akim@epita.fr>
19867 * configure.ac (AT_CONFIG): Fix the path.
19868 * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
19871 2001-08-20 Alexandre Duret-Lutz <duret_g@epita.fr>
19873 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
19874 program with AC_LANG_PROGRAM before feeding it to
19875 AC_COMPILE_IFELSE. Cleanup grep usage.
19877 2001-08-20 Akim Demaille <akim@epita.fr>
19879 * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
19880 * NEWS, README, README-alpha, TODO, tests/README: This package is
19881 `Autoconf', not `autoconf' (the executable).
19883 2001-08-20 Akim Demaille <akim@epita.fr>
19885 Info readers seem to need `Index' in the index node title :(
19887 * doc/autoconf.texi: Reverse the 2001-08-15 change which
19888 simplified index node names.
19890 2001-08-20 Akim Demaille <akim@epita.fr>
19892 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
19893 arguments are not literals.
19894 * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
19895 Specify the output variables, and macros defined.
19897 2001-08-20 Akim Demaille <akim@epita.fr>
19899 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
19900 (Examining Syntax) <AC_TRY_COMPILE>
19901 (Examining Libraries) <AC_TRY_LINK>
19902 (Test Programs) <AC_TRY_RUN>: These macros double quote some of
19904 Reported by Werner Lemberg.
19906 2001-08-20 Akim Demaille <akim@epita.fr>
19908 * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
19909 top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
19910 Load atlocal late enough to dump it in the log.
19911 * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
19913 2001-08-20 Akim Demaille <akim@epita.fr>
19915 * tests/torture.at (Configuring subdirectories): New test.
19916 * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
19918 * m4/atconfig.m4: Be sure the let $[0] be expandable.
19919 (top_srcdir): Fix its computation.
19921 2001-08-20 Akim Demaille <akim@epita.fr>
19923 * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
19924 * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
19926 Create `atconfig' automagically.
19927 Configure atlocal.in if present.
19928 * tests/atconfig.in: Remove.
19929 * tests/atlocal.in: New.
19930 * tests/Makefile.am: Adjust.
19932 2001-08-20 Akim Demaille <akim@epita.fr>
19934 Huh!?!?! There are still some user EOF tags used, which prevents
19935 their use in AC_CONFIG_COMMANDS for instance...
19937 * lib/autoconf/general.m4, lib/autoconf/specific.m4,
19938 * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
19939 `_CSEOF', or `_ATEOF', as appropriate.
19940 * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
19941 * lib/autotest/Makefile.am (check-local): Enforce this constraint.
19943 2001-08-20 Akim Demaille <akim@epita.fr>
19945 * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
19946 * tests/semantics.at, tests/tools.at, tests/torture.at:
19947 s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
19949 2001-08-20 Akim Demaille <akim@epita.fr>
19951 Autotest invokes M4sh's initialization.
19953 * lib/autotest/general.m4: Adjust the diversion names.
19954 (AT_INIT): Run AS_INIT.
19955 Use the BINSH diversion to invoke /bin/sh.
19956 * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
19957 * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
19959 2001-08-20 Akim Demaille <akim@epita.fr>
19961 Let M4sh have its own diversions.
19963 * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
19964 (_m4_divert(NOTICE)): Rename as...
19965 * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
19966 (_m4_divert(HEADER-COMMENT)): these.
19967 (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
19968 (_m4_divert(NOTICE)): New, for Libtool.
19969 * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
19970 long ago with `_m4_divert(GROW)'.
19971 (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
19973 2001-08-20 Akim Demaille <akim@epita.fr>
19975 * tests/base.at, tests/compile.at, tests/foreign.at,
19976 * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
19977 * tests/semantics.at, tests/suite.at, tests/tools.at,
19978 * tests/torture.at: Ask Autotest mode, not Autoconf mode.
19980 2001-08-20 Akim Demaille <akim@epita.fr>
19982 * bin/autom4te.in (handle_output): Handle @__@.
19984 2001-08-20 Akim Demaille <akim@epita.fr>
19986 * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
19987 * lib/autotest/general.m4: Adjust the license.
19989 2001-08-17 Paul Eggert <eggert@twinsun.com>
19991 * doc/autoconf.texi (Function Portability): Mention snprintf,
19992 following up on a suggestion by Kevin Ryde.
19994 2001-08-17 Akim Demaille <akim@epita.fr>
19996 * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
19997 `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
19999 2001-08-17 Akim Demaille <akim@epita.fr>
20001 * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
20002 `$0.log' as for projects where testsuite is in src, we'd have
20003 testsuite.log created in src.
20005 2001-08-17 Akim Demaille <akim@epita.fr>
20007 * bin/autom4te.in (&parse_args): Recognize --normalize.
20009 2001-08-17 Akim Demaille <akim@epita.fr>
20011 Start implementing the AC_CHECK_HEADER transition scheme.
20013 * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
20014 (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
20015 (AC_CHECK_HEADER): Use them.
20017 2001-08-17 Akim Demaille <akim@epita.fr>
20019 * doc/autoconf.texi: Work around Texinfo buglets.
20020 (Transformation Rules): One example is enough, users are expected
20021 to have their brains on. And BTW, use DESTDIR.
20022 (dvar): New macro. Use it.
20024 2001-08-17 Akim Demaille <akim@epita.fr>
20026 * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
20027 * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
20028 looking for ChangeLogs.
20030 2001-08-17 Akim Demaille <akim@epita.fr>
20032 * bin/autom4te.in: --normalize is a new option.
20033 * bin/autoconf.in: Use it.
20035 2001-08-17 Akim Demaille <akim@epita.fr>
20037 * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
20038 * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
20040 2001-08-16 Paul Eggert <eggert@twinsun.com>
20042 * doc/autoconf.texi, doc/install.texi: Put copyright notice at
20045 2001-08-15 Akim Demaille <akim@epita.fr>
20047 * doc/Makefile.am (fu): New index, can't use fn because of defmac.
20050 2001-08-15 Akim Demaille <akim@epita.fr>
20052 * doc/autoconf.texi (pr): New index.
20053 (prindex, findex): Use, merge, and output them.
20054 (Environment Variable Index, Output Variable Index)
20055 (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
20056 (Autotest Macro Index): Rename as...
20057 (Environment Variables, Output Variables,Preprocessor Symbols)
20058 (Autoconf Macros, M4 Macros, Autotest Macros): these.
20059 * doc/install.texi: Use @command.
20060 (Environment Variables): Rename as...
20061 (Defining Variables): this.
20063 2001-08-15 Akim Demaille <akim@epita.fr>
20065 * doc/autoconf.texi (Function Portability): sprintf's return
20069 2001-08-15 Akim Demaille <akim@epita.fr>
20071 * Makefile.maint (CVS): New.
20072 (local-check): Run changelog-check. last.
20073 (alpha): Don't depend upon local-check, since...
20074 (cvs-dist): depends upon it.
20076 2001-08-15 Tim Van Holder <tim.van.holder@pandora.be>
20078 * tests/Makefile.am: Use a clean-local rule to remove
20079 autom4te.cache (it's a directory, not a file.
20080 * Makefile.am: Ditto (but maintainer-clean-local).
20082 2001-08-15 Akim Demaille <akim@epita.fr>
20084 * bin/autom4te.in (@m4_warning): New.
20085 (&handle_m4): Use it.
20086 * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
20087 warnings are issued at each run.
20088 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
20089 is in the src tree.
20091 2001-08-15 Akim Demaille <akim@epita.fr>
20093 * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
20094 don't waste time running `autoupdate --version' works.
20095 * tests/tools.at (autoupdating AC_PREREQ): Likewise.
20097 2001-08-13 Akim Demaille <akim@epita.fr>
20099 * doc/autoconf.texi (ma): Rename this index as...
20102 2001-08-13 Akim Demaille <akim@epita.fr>
20104 * Makefile.am: Remove dead code and dead comments.
20105 (pdf, html): New targets.
20106 * doc/autoconf.texi (Using Autotest): New chapter.
20107 * doc/Makefile.am (pdf): New targets.
20108 (CLEANFILES): Adjust.
20110 2001-08-13 Akim Demaille <akim@epita.fr>
20112 * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
20113 duration of the test suite.
20115 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
20117 * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
20118 endianness for comparison instead of relying on AT_CHECK_ENV.
20120 2001-08-11 Paul Eggert <eggert@twinsun.com>
20122 * doc/autoconf.texi, doc/install.texi: Add a copyright notice
20123 to the INSTALL file.
20125 2001-08-11 Paul Eggert <eggert@twinsun.com>
20127 * NEWS: The autoconf manual now is distributed under the terms
20128 of the GNU Free Documentation License.
20130 * doc/autoconf.texi: Switch from old style copyright notice to FDL.
20131 Add an appendix "Copying This Manual" for the FDL.
20133 * doc/fdl.texi: New file, from
20134 <http://www.gnu.org/licenses/fdl.texi>.
20136 * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
20138 2001-08-10 Paul Eggert <eggert@twinsun.com>
20140 * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
20141 ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
20142 README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
20143 m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
20144 m4/sanity.m4, tests/README, tests/aclocal.m4,
20145 tests/atspecific.m4, tests/base.at, tests/compile.at,
20146 tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
20147 tests/semantics.at, tests/suite.at, tests/tools.at,
20148 tests/torture.at: Add copyright notice.
20150 * tests/mktests.sh: Update year in copyright notice.
20152 2001-08-12 Alexandre Duret-Lutz <duret_g@epita.fr>
20154 * tests/semantics.at (AC_C_BIGENDIAN): New test.
20156 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
20158 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
20159 ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
20160 * doc/autoconf.texi (C Compiler Characteristics): Update
20161 documentation for AC_C_BIGENDIAN.
20163 2001-08-11 Alexandre Duret-Lutz <duret_g@epita.fr>
20165 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
20166 magic values from an object file when cross-compiling.
20167 Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
20169 2001-08-10 Akim Demaille <akim@epita.fr>
20171 * bin/autom4te.in (&handle_output): Don't use `grep' with side
20173 Suggested by Russ Allbery.
20175 2001-08-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
20177 * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
20178 current $prefix to the sub-configures.
20180 2001-08-09 Tim Van Holder <tim.van.holder@pandora.be>
20182 * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
20183 extension (needed on BeOS). Reported by Guido van Rossum.
20185 2001-08-09 Akim Demaille <akim@epita.fr>
20187 * bin/autom4te.in ($icache): Load it only if older than autom4te.
20189 2001-08-07 Akim Demaille <akim@epita.fr>
20191 * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
20193 (at-setup-line): Huh? Be a variable `at_setup_line', not a file.
20194 No need to remove the files before and after the each test, before
20195 each test and at the end of the suite is enough.
20196 Display only the children `times', not the shell's.
20197 If the test failed or was skipped, at-times is not available.
20199 2001-08-07 Akim Demaille <akim@epita.fr>
20201 Always produce testsuite.log, including when there are no
20202 failures. This helps getting information on skipped tests, and
20203 duration of the tests. Err, implement the latter btw.
20205 * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
20206 Dump information on the first run of each test.
20207 (AT_CLEANUP): Create `at-times' containing the duration of the
20210 2001-08-07 Akim Demaille <akim@epita.fr>
20212 The use of `dumpstat' revealed that `len' was used although it
20213 should not. m4_text_wrap was using it, but in the Autoconf world
20214 where it is legal. Hence (i) test M4sh in its own world, not
20215 Autoconf's, and (ii), ahem, fix the bug :)
20217 * lib/autotest/general.m4: Be sure the set good quotes, as tracing
20218 does not like `' instead of [].
20219 (AT_INIT): Forbid `^_?AT_'.
20220 And don't output such tokens.
20221 * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
20222 `script.as', and `autom4te.cache'.
20223 Remove `empty' and `macro' which are no longer used.
20224 * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
20225 * tests/m4sugar.at: Use it.
20226 * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
20228 2001-08-07 Akim Demaille <akim@epita.fr>
20230 * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
20232 2001-08-07 Alexandre Duret-Lutz <duret_g@epita.fr>
20234 * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
20236 2001-08-04 Akim Demaille <akim@epita.fr>
20238 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
20239 (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
20241 * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
20242 * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
20243 (AC_F77_MAIN): Likewise.
20245 2001-08-04 Akim Demaille <akim@epita.fr>
20247 Don't rely on M4sugar outputting the patterns in files, since we
20248 might process the output _without_ running m4, hence without these
20251 * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
20252 * bin/autom4te.in (@Request::includes): Remove, unused.
20253 (@Request::source): Rename as...
20254 (@Request::input): this.
20255 (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
20256 (&handle_output): Fetch the patterns from the traces.
20257 `$forbidden' and `$allowed' are constant: use m//o.
20258 (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
20259 (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
20261 2001-08-04 Akim Demaille <akim@epita.fr>
20263 `autoconf && autoheader' is sped up. Now, speed up `autoheader &&
20264 autoconf', i.e., in addition to caching traces, cache the output.
20266 * bin/autom4te.in (Request::cache): Rename as...
20267 (Request::id): this.
20268 ($cache, $icache, $tcache, $ocache): New.
20269 (&handle_m4): Save M4 output in the cache instead of $tmp.
20270 (&handle_output): Adjust.
20271 (&up_to_date_p): Check that the output cache is up to date too.
20272 (top level): Run `&handle_m4' iff force or the cache is invalid.
20273 Run `&handle_output' if the output cache is more recent.
20275 2001-08-04 Akim Demaille <akim@epita.fr>
20277 * bin/autom4te.in ($force): New.
20278 (&parse_args, &print_usage): -f, --force is a new option.
20279 (&handle_output): CPP directives might have spaces after `#'.
20280 (&parse_args): The first file only can be frozen.
20282 2001-08-04 Akim Demaille <akim@epita.fr>
20284 Don't let autom4te compute the `include' traces several times:
20285 first check that the trace cache file is up to date, and then
20286 compare its timestamp with that of the output.
20288 * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
20289 the preamble. Don't require 5.005 as Autom4te::General does it,
20290 and better yet (use `use', not `require'!).
20291 * lib/Autom4te/Struct.pm: Rename the last occurrences of
20292 Class::Struct as Autom4te::Struct.
20293 * lib/Autom4te/General.pm (File::stat): Use it.
20294 (&mtime): New, export it.
20295 * bin/autom4te.in: Use it.
20296 Declare `$req' is invalid if it is outdated.
20297 Don't declare it valid before saving it if something went wrong.
20299 2001-08-04 Akim Demaille <akim@epita.fr>
20301 Autom4te shall not encode Autoconf data, and preselecting traces
20302 must be proposed to the users.
20304 * bin/autom4te.in (@required_trace): Remove.
20306 (&parse_args, &print_usage): -p, --preselect is a new option.
20307 (&up_to_date_p): Adjust.
20308 * bin/autoconf.in: Preselect some Autoconf macros.
20310 2001-08-04 Akim Demaille <akim@epita.fr>
20312 * tests/tools.at (autoconf --trace: user macros): Check traces on
20313 macros invoked without arguments, and macros invoked with multiple
20316 2001-08-03 Alexandre Duret-Lutz <duret_g@epita.fr>
20318 * bin/autom4te.in (handle_traces): Fix rewriting of traces without
20321 2001-08-03 Akim Demaille <akim@epita.fr>
20323 * bin/autoconf.in ($@): Work around the usual sh bug.
20326 2001-08-03 Akim Demaille <akim@epita.fr>
20328 Clean up the handling of the M4 builtins tracing exception.
20330 * bin/autom4te.in (Request::request): Don't complete M4 builtins
20332 (@m4_builtins): Rename as...
20333 (@m4_builtin): this.
20334 (%m4_builtin_alternate_name): New.
20335 (&parse_args): Complete the trace requests with alternate names.
20336 (&handle_traces): Hence no longer do it here.
20337 (&trace_requests): Remove, unused.
20339 2001-08-03 Akim Demaille <akim@epita.fr>
20341 * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
20342 m4_if, and m4_wrap.
20344 2001-08-03 Akim Demaille <akim@epita.fr>
20346 * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
20347 (m4_divert_pop): Dump the whole diversion stack when a diversion
20349 * bin/autom4te.in (&handle_output): Remember of the first
20350 occurrence of a possibly undefined macro, not the last.
20351 Complain about the possibly undefined macros in the same order as
20352 the appear in the output.
20353 * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
20354 * tests/tools.at (autoconf: forbidden tokens, basic)
20355 (autoconf: forbidden tokens, exceptions): No longer sort
20356 autoconf's stderr, as it is now deterministic.
20357 Check that `dnl' is caught.
20359 2001-08-01 Akim Demaille <akim@epita.fr>
20361 * configure.ac: Bump to 2.52c.
20363 2001-08-01 Akim Demaille <akim@epita.fr>
20367 * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
20369 2001-08-01 Akim Demaille <akim@epita.fr>
20373 2001-08-01 Akim Demaille <akim@epita.fr>
20375 * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
20378 * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
20379 `END', as `Autom4te::General::END' will be triggered.
20380 * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
20381 * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
20382 system to run `mv', `rm', and `cmp'.
20384 2001-08-01 Akim Demaille <akim@epita.fr>
20386 * lib/Autom4te/General.pm (&unique): New.
20387 * bin/autoscan.in (&output): Use it to issue trace requests once.
20389 2001-08-01 Akim Demaille <akim@epita.fr>
20391 * lib/Autom4te/General.pm: New.
20392 * bin/autom4te.in (Autom4te::General): Use it.
20393 ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
20394 (&find_configure_ac, &find_slave): Remove.
20395 * bin/autoscan.in: Likewise.
20396 * bin/autoupdate.in: Likewise.
20398 2001-08-01 Akim Demaille <akim@epita.fr>
20400 * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
20401 * autoheader.in, autoreconf.in, autoupdate.in: Move to...
20402 * bin: here, new directory.
20403 * lib/Autoconf: Rename as...
20404 * lib/Autom4te: this, to please case insensitive junkie OSes.
20406 2001-08-01 Akim Demaille <akim@epita.fr>
20408 * autom4te.in ($m4): Handle the --nesting-limit.
20409 * autoconf.in (M4): Remove.
20411 2001-08-01 Akim Demaille <akim@epita.fr>
20413 * autoconf.in ($AWK): Remove, no longer used.
20414 * test/tools.at: Use AT_CHECK_AUTOCONF.
20415 (AWK portability): Remove, for autoconf no longer uses AWK.
20416 (Syntax of the Perl scripts): New.
20417 * configure.ac: autoconf no longer needs an AWK with a good
20419 Use a static test on AC_PACKAGE_VERSION.
20420 * autom4te.in (&up_to_date_p): Output depends on the arguments.
20421 * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
20422 * tests/atconfig.in (PERL): New.
20424 2001-08-01 Akim Demaille <akim@epita.fr>
20426 * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
20427 (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
20428 (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
20429 (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
20430 (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
20431 (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
20432 (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
20433 (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
20434 (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
20435 (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
20436 (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
20437 (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
20438 (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
20439 * lib/autoconf/c.m4: here, new file.
20441 * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
20442 (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
20443 (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
20444 (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
20445 (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
20446 (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
20447 (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
20448 (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
20449 (AC_F77_FUNC): Move to...
20450 * lib/autoconf/fortran.m4: here, new file.
20452 2001-08-01 Akim Demaille <akim@epita.fr>
20454 * acfunctions.m4: Rename as...
20455 * lib/autoconf/functions.m4: this.
20456 * acgeneral.m4: Rename as...
20457 * lib/autoconf/general.m4: this.
20458 * acheaders.m4: Rename as...
20459 * lib/autoconf/headers.m4: this.
20460 * aclang.m4: Rename as...
20461 * lib/autoconf/lang.m4: this.
20462 * acoldnames.m4: Rename as...
20463 * lib/autoconf/oldnames.m4: this.
20464 * acspecific.m4: Rename as...
20465 * lib/autoconf/specific.m4: this.
20466 * actypes.m4: Rename as...
20467 * lib/autoconf/types.m4: this.
20468 * autoconf.m4: Rename as...
20469 * lib/autoconf/autoconf.m4: this.
20471 * m4sugar.m4: Rename as...
20472 * lib/m4sugar/m4sugar.m4: this.
20473 * m4sh.m4: Rename as...
20474 * lib/m4sugar/m4sh.m4: this.
20476 * tests/atgeneral.m4: Rename as...
20477 * lib/autotest/general.m4: this.
20479 * acfunctions: Rename as...
20480 * lib/autoscan/functions: this.
20481 * acheaders: Rename as...
20482 * lib/autoscan/headers: this.
20483 * acidentifiers: Rename as...
20484 * lib/autoscan/identifiers: this.
20485 * aclibraries: Rename as...
20486 * lib/autoscan/libraries: this.
20487 * acmakevars: Rename as...
20488 * lib/autoscan/makevars: this.
20489 * acprograms: Rename as...
20490 * lib/autoscan/programs: this.
20492 2001-08-01 Akim Demaille <akim@epita.fr>
20494 * doc/autoconf.texi: Moving/deleting open files is not portable.
20495 Portability issues for `.' (source), and more information about sed.
20497 2001-07-25 Steven G. Johnson <stevenj@alum.mit.edu>
20499 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
20500 which has a special meaning and is not a reference to libibmil.a.
20501 Reported by Matteo Frigo.
20503 2001-07-25 Pavel Roskin <proski@gnu.org>
20505 * autom4te.in (mktmpdir): Strip trailing newline from mktemp
20508 2001-07-25 Akim Demaille <akim@epita.fr>
20510 * autoconf.in: Try to define the variables before using them.
20511 * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
20512 instead of `$perllibdir'.
20513 * tests/atconfig.in ($autom4te_perllibdir): Export it.
20515 2001-07-25 Akim Demaille <akim@epita.fr>
20517 * autoconf.in (ac_LF_and_DOT): Remove, unused.
20519 2001-07-24 Akim Demaille <akim@epita.fr>
20521 Let autoconf use autom4te for traces.
20523 * autoconf.in ($task, task trace): Remove, merely pass --trace to
20525 * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
20526 (Because I found no way for autom4te to accept `-').
20527 * autom4te.in (&Request::request): Beware of M4 builtins.
20528 (END): Don't try to remove the content of an empty dir.
20529 (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
20530 (&handle_output): Set a default value to `$forbidden'.
20531 * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
20532 ($autoconf): Pass --debug and --verbose.
20533 * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
20536 2001-07-24 Akim Demaille <akim@epita.fr>
20538 Let autoconf use autom4te to create configure.
20540 * autoconf.in ($automate): New var.
20541 (task script): Use autom4te.
20542 * autom4te.in (File::Spec): Use it.
20544 (&parse_args): --warning is -W, not -w.
20545 Find the top level files.
20546 (&handle_m4): Pass the warnings flags.
20547 Don't report verbosely m4's failures, unless requested.
20548 (&handle_output): Don't complain for forbidden tokens in comments.
20549 Be sure to report all the forbidden tokens within a single line.
20550 (&trace_format_to_m4): Preserve `$_'.
20551 (&handle_traces): Sort the output macros.
20552 (&up_to_date_p): Find the files before trying to get its time stamp.
20554 2001-07-24 Akim Demaille <akim@epita.fr>
20556 * Makefile.am: Ship, build and install Autom4te.
20557 (SUBDIRS): Add lib.
20558 * lib/Autoconf/Struct.pm: New, from Automake 1.5.
20559 * configure.in: Require Perl.
20560 * man/autom4te.in: New.
20562 2001-07-19 Paul Eggert <eggert@twinsun.com>
20564 * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
20565 example, rather than (exit 1); exit (which isn't portable).
20567 2001-07-18 Akim Demaille <akim@epita.fr>
20571 2001-07-18 Akim Demaille <akim@epita.fr>
20573 The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
20574 was run, while they are needed also when it is expanded.
20575 Reported by Nicolas Joly.
20577 * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
20578 (AC_LANG_PROGRAM(C)): Use it instead of depending upon
20579 AC_F77_DUMMY_MAIN being expanded.
20581 2001-07-18 Akim Demaille <akim@epita.fr>
20583 * configure.in: Bump to 2.51a.
20585 2001-07-17 Akim Demaille <akim@epita.fr>
20589 2001-07-17 Akim Demaille <akim@epita.fr>
20591 * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
20592 Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
20594 2001-07-17 Akim Demaille <akim@epita.fr>
20596 The runtime test for AC_FUNC_GETPGRP fails when prototypes are
20597 used. Well, then use the prototypes when you can, and runtime as
20599 Reported by Artur Frysiak
20601 * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
20602 (AC_FUNC_GETPGRP): Use it.
20603 First try to compile with 0-ary or 1-ary calls.
20605 2001-07-17 Akim Demaille <akim@epita.fr>
20607 * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
20611 2001-07-17 Akim Demaille <akim@epita.fr>
20613 * Makefile.maint: Sync. with cppi 1.10.
20615 2001-07-17 Akim Demaille <akim@epita.fr>
20617 * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
20618 AC_F77_DUMMY_MAIN has been run.
20619 From Pavel Roskin and Steven G. Johnson.
20621 2001-07-17 Akim Demaille <akim@epita.fr>
20623 * configure.in: Rename as...
20624 * configure.ac: this.
20626 2001-07-17 Akim Demaille <akim@epita.fr>
20628 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
20631 * Makefile.maint (release-archive-dir): Rename as...
20632 (release_archive_dir): this, so that it can be specialized in
20635 2001-07-14 Akim Demaille <akim@epita.fr>
20637 * configure.in: Bump to 2.50d.
20639 2001-07-14 Akim Demaille <akim@epita.fr>
20642 * Makefile.maint (alpha): Typo.
20644 2001-07-14 Akim Demaille <akim@epita.fr>
20646 * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
20648 2001-07-14 Akim Demaille <akim@epita.fr>
20650 * config/config.guess, config/config.sub, config/texinfo.tex
20651 * doc/standards.texi, doc/make-stds.texi: Update.
20653 2001-07-14 Akim Demaille <akim@epita.fr>
20655 * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
20657 2001-07-14 Akim Demaille <akim@epita.fr>
20659 * Makefile.maint (maintainer-check): Rename as...
20660 (maintainer-distcheck): this.
20661 (changelog-check, static-check): New.
20664 2001-07-14 Kevin Ryde <user42@zip.com.au>
20666 * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
20667 for CXX is g++, not gcc.
20669 2001-07-14 Akim Demaille <akim@epita.fr>
20671 * doc/autoconf.texi (Files): New subsection.
20673 2001-07-14 Akim Demaille <akim@epita.fr>
20675 * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
20677 (Generic Compiler Characteristics): this.
20678 (C++ Compiler): New subsection.
20680 2001-07-14 Akim Demaille <akim@epita.fr>
20682 * autoscan.in: Use IO::File.
20683 Adjust all the routines to use it.
20684 ($log): New file (autoscan.log).
20685 (output): Dump detailed logs into $log, and a shortened version to
20687 (&scan_makefile): Refine the regexp catching tokens in the code.
20688 * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
20689 and the `configure.ac' checking feature.
20691 2001-07-12 Akim Demaille <akim@epita.fr>
20693 For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
20694 Reported by Michael Elizabeth Chastain.
20696 * autoconf.in: Refuse such AWK.
20697 * configure.in: Likewise.
20698 * Makefile.am (acversion.m4): Do not use move-if-change this file
20700 * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
20702 2001-07-10 Jens Petersen <petersen@redhat.com>
20704 * autoscan.in (&scan_makefile): Improve programs regexp to parse
20705 things like "g++", "file.c" and "some-conf" as tokens.
20706 (&scan_file): Match C++ files extensions.
20707 If the filename extension is C++ then ask for c++.
20709 2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
20711 * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
20712 AC_TRY_LINK_FUNC, to check whether defining a dummy
20713 main-like routine is needed for linking with F77 libs.
20715 2001-07-05 Pavel Roskin <proski@gnu.org>
20717 * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
20719 (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
20722 2001-07-05 Akim Demaille <akim@epita.fr>
20724 * Makefile.am (move_if_change): New. Use it instead of `mv'.
20725 (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
20727 Reported by Nicolas Joly.
20729 2001-07-04 Akim Demaille <akim@epita.fr>
20731 * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
20733 * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
20734 warnings from compilers.
20735 * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
20736 for all the compilers, not only GNU. Hence move from here...
20737 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
20739 2001-07-04 Akim Demaille <akim@epita.fr>
20741 * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
20742 (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
20745 2001-07-04 Akim Demaille <akim@epita.fr>
20747 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
20748 the ``strings.h'' change claimed below.
20750 2001-07-04 Akim Demaille <akim@epita.fr>
20752 * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
20754 2001-07-04 Akim Demaille <akim@epita.fr>
20756 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
20757 strings.h if usable with string.h.
20758 Suggested by Paul Eggert.
20760 2001-07-04 Akim Demaille <akim@epita.fr>
20762 * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
20763 From Jens Petersen.
20765 2001-07-03 Akim Demaille <akim@epita.fr>
20767 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
20770 2001-07-03 Akim Demaille <akim@epita.fr>
20772 * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
20773 compiler, not the preprocessor.
20774 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
20775 dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
20777 * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
20778 earlier if there are.
20780 2001-07-03 Akim Demaille <akim@epita.fr>
20782 * autoscan.in ($initfile): Remove.
20783 (&find_file): Rename as...
20784 (&scan_file): this.
20785 Immediately scan the current file, instead of gathering them, and
20786 later having them handled by &scan_files.
20787 (&scan_files): Merely invoke Find::File.
20790 2001-07-02 Akim Demaille <akim@epita.fr>
20792 * autoscan.in: Formatting changes, matching the invocation order.
20793 (File::Find): Use it instead of Perl 4's `find.pl'.
20794 (&wanted): Rename as...
20795 (&find_file): this.
20797 2001-07-01 Pavel Roskin <proski@gnu.org>
20799 * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
20800 break in the argument to AC_TRY_LINK_FUNC.
20801 (AC_F77_MAIN): Remove conftest* after using break in the
20802 argument to AC_TRY_LINK.
20804 2001-07-01 Steven G. Johnson <stevenj@alum.mit.edu>
20806 Add alternate 'main' routine detection for linking C/C++ with Fortran,
20807 fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
20809 * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
20810 dummy alternate main is required even if the user provides her own
20812 (AC_F77_MAIN): New macro to detect whether it is possible to
20813 provide an alternate 'main' function name, using the 'main' from
20814 the Fortran libraries.
20815 (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
20816 cross-language link tests can be performed successfully.
20817 (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN. Also put $FLIBS
20818 after $LIBS, for consistency; this should be the general rule since
20819 the user may want to link to Fortran libraries that require $FLIBS.
20820 * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
20822 2001-06-29 Pavel Roskin <proski@gnu.org>
20824 * atgeneral.m4 (AT_CHECK): Add a newline to the end of
20825 at-stdout and at-stderr instead of removing the newline
20826 from the echo output, which is not guaranteed to work.
20828 2001-06-28 Jens Petersen <petersen@redhat.com>
20830 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
20831 confdefs.h when non-zero.
20833 2001-06-28 Akim Demaille <akim@epita.fr>
20835 * configure.in: Bump to 2.50c.
20837 2001-06-26 Akim Demaille <akim@epita.fr>
20841 2001-06-26 Akim Demaille <akim@epita.fr>
20845 2001-06-25 Pavel Roskin <proski@gnu.org>
20847 * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
20848 argument, AUTOCONF-FLAGS.
20849 * tests/mktests.sh (update_exclude_list): Add
20850 AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
20851 * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
20852 AC_FUNC_WAIT3 with "-W no-obsolete".
20854 2001-06-25 Akim Demaille <akim@epita.fr>
20856 * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
20858 2001-06-25 Akim Demaille <akim@epita.fr>
20860 * autoscan.in (%macro): Now maps from word to list of macros.
20861 (&init_tables): Die when a word which is already handled by
20862 explicit macros is mapped to the default macro.
20863 (&print_unique): Remove, inlined in...
20864 (&output_kind): here.
20865 (File::Basename): Use it.
20866 (&output): Sort the CONFIG_FILES.
20867 * acheaders: Normalize.
20868 * acfunctions: Likewise.
20870 2001-06-25 Akim Demaille <akim@epita.fr>
20872 * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
20873 characteristics in the logs.
20874 Suggested by Mo DeJong.
20876 2001-06-24 Akim Demaille <akim@epita.fr>
20878 * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
20879 (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
20880 * doc/autoconf.texi (Autoconf 2.13): New section.
20882 2001-06-24 Akim Demaille <akim@epita.fr>
20884 * autoconf.in (Task traces): Separate the error messages from the
20885 traces to improve robustness.
20887 2001-06-23 Akim Demaille <akim@epita.fr>
20889 * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
20890 three as failures are unlikely, and speed matters.
20892 2001-06-23 Akim Demaille <akim@epita.fr>
20894 * doc/autoconf.texi (Redefined M4 Macros): New.
20896 2001-06-23 Akim Demaille <akim@epita.fr>
20898 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
20899 inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
20902 2001-06-23 Paolo Bonzini <bonzini@gnu.org>
20904 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
20905 config.status targets to after the evaluation of the INIT-CMDS.
20906 Double quote config.status targets (used to be single quoted).
20908 2001-06-23 Akim Demaille <akim@epita.fr>
20910 * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
20911 Check the content of the created file.
20912 Check the ./config.status command line invocation.
20914 2001-06-23 Akim Demaille <akim@epita.fr>
20916 * tests/foreign.at (Libtool): Reject prehistoric versions.
20918 2001-06-23 Akim Demaille <akim@epita.fr>
20920 * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
20921 preexisting files matching a.*.
20923 2001-06-23 Akim Demaille <akim@epita.fr>
20925 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
20927 * doc/autoconf.texi (AC_ARG_VAR): Update.
20929 2001-06-21 Akim Demaille <akim@epita.fr>
20931 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
20932 precious variables have changed.
20933 * tests/torture.at (AC_ARG_VAR): Adjust.
20935 2001-06-21 Akim Demaille <akim@epita.fr>
20937 ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
20938 but some sed choke on multiple `;', and other tools (e.g.,
20939 Automake), include the separator themselves.
20941 * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
20943 2001-06-19 Tim Van Holder <tim.van.holder@pandora.be>
20945 * doc/autoconf.texi (Functions Portability): Rename as...
20946 (Function Portability): this.
20947 (Function Portability): Document potential problems with unlink().
20949 2001-06-19 Paul Eggert <eggert@twinsun.com>
20951 * NEWS, doc/autoconf.texi: Document quadrigraphs.
20953 2001-06-18 Akim Demaille <akim@epita.fr>
20955 * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
20957 2001-06-18 Ruediger Kuhlmann <info@ruediger-kuhlmann.de>
20959 * acfunctions.m4: (AC_FUNC_VFORK) rename as...
20960 (_AC_FUNC_VFORK): this.
20961 Remove AC_DEFINEs and don't guess cross-compilation values.
20962 (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
20963 (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
20964 define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
20965 vfork doesn't work.
20966 Guess values if cross-compiling, but warn.
20967 * acfunctions: Add AC_FUNC_FORK.
20968 * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
20969 and vfork appropriately.
20971 2001-06-18 Akim Demaille <akim@epita.fr>
20973 * doc/autoconf.texi (Functions Portability): New section.
20975 2001-06-18 Akim Demaille <akim@epita.fr>
20977 * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
20979 Suggested by Andreas Schwab.
20981 2001-06-18 Akim Demaille <akim@epita.fr>
20983 * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
20984 (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
20985 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
20986 (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
20987 Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
20988 and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
20989 (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
20992 2001-06-18 Akim Demaille <akim@epita.fr>
20994 * doc/autoconf.texi (ms): New index.
20995 (Macro Index): Rename as...
20996 (Autoconf Macro Index): this.
20997 (M4 Macro Index): New appendix.
20998 (Programming in M4): New chapter.
20999 Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
21000 (Quoting): Rename as...
21001 (M$ Quotation): this.
21002 Be part of `Programming in M4).
21004 2001-06-18 Nicolas Joly <njoly@pasteur.fr>
21006 * tests/torture.at (AC_ARG_VAR): Set variables and export them
21007 in separate statements for compatibility with Tru64 v5.1.
21009 2001-06-17 Akim Demaille <akim@epita.fr>
21011 * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
21012 current values of the precious variables, not the previously
21014 Pass precious variables which are set to config.status.
21015 * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
21016 * tests/torture.at (AC_ARG_VAR): New.
21018 2001-06-15 Paul Eggert <eggert@twinsun.com>
21020 * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
21021 AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
21022 and explain why and how to replace them.
21023 * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
21024 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
21026 2001-06-15 Akim Demaille <akim@epita.fr>
21028 `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
21029 Reported by Bruno Haible.
21031 * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
21032 (_AC_ARG_VAR_PRECIOUS): to here.
21034 2001-06-15 Pavel Roskin <proski@gnu.org>
21036 * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
21037 an unused pointer use cast to this type and `if' statement to
21038 avoid warnings from the compiler.
21039 (AC_HEADER_TIME): Likewise.
21040 * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
21041 in `if' statement to avoid warnings from the compiler. Declare
21042 ac_aggr static to avoid the need to initialize it.
21044 2001-06-14 Akim Demaille <akim@epita.fr>
21046 * doc/autoconf.texi (Portable Shell): Move to follow `Writing
21049 2001-06-13 Akim Demaille <akim@epita.fr>
21051 * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
21052 Suggested by Alexander Mai.
21054 2001-06-13 Akim Demaille <akim@epita.fr>
21056 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
21057 sys/types.h and sys/stat.h, and check for them.
21059 2001-06-13 Akim Demaille <akim@epita.fr>
21061 * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
21064 2001-06-12 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
21066 * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
21067 succeeds and only try adding libdnet upon a failure.
21069 2001-06-12 Akim Demaille <akim@epita.fr>
21071 * autoscan.in (&output_kind): Output the comment only if it exists.
21072 (%kind_comment): Add entry for `programs'.
21073 (&output_programs): Use &output_kind.
21074 (&output_functions, &output_identifiers, &output_headers)
21075 (&output_programs): Inline, and remove.
21077 2001-06-12 Akim Demaille <akim@epita.fr>
21079 * autoscan.in (%kind_comment): New.
21080 (output_kind): New.
21081 (output_functions, output_identifiers, output_headers): Use it.
21083 2001-06-12 Akim Demaille <akim@epita.fr>
21085 * autoscan.in (&print_unique): Take `$kind' and `$word' as
21086 arguments, to factor indirections into `%macro' and `%used'.
21087 (%generic_macro): Fix a typo.
21089 2001-06-12 Akim Demaille <akim@epita.fr>
21091 * aclibraries: New.
21092 * autoscan.in (@kinds): Add `libraries'.
21093 Use `@kinds' instead of hard coded lists.
21094 (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
21095 Remove, replaced by...
21098 2001-06-12 Akim Demaille <akim@epita.fr>
21100 * autoscan.in (%functions_macros %headers_macros)
21101 (%identifiers_macros %programs_macros %makevars_macros): Remove,
21105 2001-06-11 Raja R Harinath <harinath@cs.umn.edu>
21107 * aclang.m4 (AC_NO_EXECUTABLES): Override
21108 _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
21110 2001-06-11 Akim Demaille <akim@epita.fr>
21112 * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
21114 Reported by Andreas Schwab.
21116 2001-06-11 Akim Demaille <akim@epita.fr>
21118 * Makefile.am, Makefile.maint: Typos.
21120 2001-06-09 Akim Demaille <akim@epita.fr>
21122 * doc/autoconf.texi (Here-Documents): New section, gathering
21123 documentation about here-documents.
21124 Use `href', not `uref', and other changes.
21126 2001-06-09 Akim Demaille <akim@epita.fr>
21128 * doc/autoconf.texi (Portable Shell Programming): Promoted as a
21131 2001-06-09 Akim Demaille <akim@epita.fr>
21133 * doc/autoconf.texi (Limitations of Builtins): Complete the
21134 description of the here-docs penalties with Alexandre Oliva's
21137 2001-06-01 Paul Eggert <eggert@twinsun.com>
21139 * doc/autoconf.texi: Talk about here documents and speedups.
21140 Do not use "echo" on arbitrary strings.
21141 Spell "here-documents" consistently with the standard.
21143 2001-06-09 Akim Demaille <akim@epita.fr>
21145 * doc/autoconf.texi (Concept Index): Introduce it.
21146 Regenerate the menus.
21148 2001-06-09 Akim Demaille <akim@epita.fr>
21150 * Makefile.maint, GNUmakefile: New, from Jim Meyering.
21151 * config/prev-version.txt: New.
21152 * config/move-if-change: New, for GNU libc.
21154 2001-06-06 Pavel Roskin <proski@gnu.org>
21156 * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
21158 2001-06-06 Akim Demaille <akim@epita.fr>
21160 * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
21161 properly when $1 is not a literal.
21162 Fixes PR Autoconf/187, reported by Bram Moolenaar.
21164 2001-06-06 Akim Demaille <akim@epita.fr>
21166 Invoking AC_COPYRIGHT before AC_INIT fails.
21168 * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
21169 * acgeneral.m4 (_m4_divert(VERSION_FSF))
21170 (_m4_divert(VERSION_USER)): New.
21171 (AC_COPYRIGHT): $2 is the diversion to use.
21172 (_AC_INIT_COPYRIGHT): Use the FSF diversion.
21173 (AC_INIT): Remove dead comments as now it's commutative.
21175 2001-06-06 Akim Demaille <akim@epita.fr>
21177 * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
21180 2001-06-05 Akim Demaille <akim@epita.fr>
21182 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
21184 `*dir' variables cannot be NONE.
21185 Reported by Mark Kettenis.
21187 2001-06-05 Paul Eggert <eggert@twinsun.com>
21189 * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
21191 2001-06-04 Akim Demaille <akim@epita.fr>
21193 * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
21194 (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
21195 (AC_TR_SH): Move as...
21196 * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
21197 (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
21199 (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
21200 (_AS_TR_SH_PREPARE): New.
21201 (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
21202 * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
21204 2001-06-02 Akim Demaille <akim@epita.fr>
21206 * Makefile.am (.m4.m4f): Pass the options first.
21207 Fixes PR autoconf/182.
21209 2001-06-02 Nathan Sidwell <nathan@codesourcery.com>
21211 GNU getopt, when POSIXLY_CORRECT does not permute options and
21212 arguments. So pass the options first.
21213 Fixes PR autoconf/184.
21215 * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
21216 (run_m4): Remove files.
21218 Update remainder of script to use them.
21219 (for warning in): Do not use a literal comma as it will not be
21222 2001-06-02 Christian Marquardt <marq@gfz-potsdam.de>
21224 * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
21225 Fortran compilers to check.
21226 (_AC_PROG_F77_V): Add '-###' as a possible option to print
21227 information on library and object files.
21228 (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
21231 2001-06-02 Akim Demaille <akim@epita.fr>
21233 * autom4te.in (Request::@request): Declare with `vars', not `my',
21234 as it prevents updates via `do FILENAME'.
21236 2001-06-02 Akim Demaille <akim@epita.fr>
21238 * configure.in (standards_texi): Remove, dead code.
21240 2001-06-02 Akim Demaille <akim@epita.fr>
21242 * autom4te.in: New.
21244 2001-06-02 Pavel Roskin <proski@gnu.org>
21246 * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
21247 for signals other than 0 - exit with code 1.
21248 * m4sh.m4 (AS_TMPDIR): Likewise.
21249 * autoconf.in: Likewise. Also don't rely on exit == exit $?.
21250 * autoheader.in: Likewise.
21251 * autoreconf.in: Likewise.
21252 * tests/torture.at (Signal handling): New test for the above.
21254 2001-06-01 Akim Demaille <akim@epita.fr>
21256 * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
21259 2001-05-31 Akim Demaille <akim@epita.fr>
21261 * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
21262 Add copyright and comments.
21263 * acheaders: Add stdint.h.
21264 Suggested by Paul Eggert.
21266 2001-05-31 Akim Demaille <akim@epita.fr>
21268 * atgeneral.m4 (AT_INIT): Use $SHELL.
21269 * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
21271 2001-05-31 Akim Demaille <akim@epita.fr>
21273 * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
21275 From Paul Eggert and Lars Hecking.
21277 2001-05-31 Akim Demaille <akim@epita.fr>
21279 * tests/base.at: Adjust line numbers in error messages.
21281 2001-05-31 Akim Demaille <akim@epita.fr>
21283 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
21284 to emit the bangshe line.
21285 Reported by David Carter.
21287 2001-05-30 Steven G. Johnson <stevenj@alum.mit.edu>
21289 * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
21290 Fortran (95) compilers to check.
21292 2001-05-29 Alexandre Duret-Lutz <duret_g@epita.fr>
21294 * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
21297 2001-05-23 Pavel Roskin <proski@gnu.org>
21299 * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
21300 _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
21301 (AC_PROG_CXXCPP): Likewise.
21303 2001-05-22 Akim Demaille <akim@epita.fr>
21305 * config: New directory.
21306 * configure.in: AC_CONFIG_AUX_DIR it.
21307 * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
21309 2001-05-22 Akim Demaille <akim@epita.fr>
21311 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
21312 * autoupdate.in: Specify the Emacs mode.
21313 * acversion.m4.in: Rename as...
21314 * acversion.m4: this.
21315 * tests/Makefile.am (CLEANFILES): More garbage.
21317 2001-05-22 Akim Demaille <akim@epita.fr>
21319 * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
21321 * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
21324 2001-05-21 Akim Demaille <akim@epita.fr>
21326 * configure.in: Bump to 2.50a.
21335 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
21336 2009, 2010 Free Software Foundation, Inc.
21338 This program is free software: you can redistribute it and/or
21339 modify it under the terms of the GNU General Public License as
21340 published by the Free Software Foundation, either version 3 of the
21341 License, or (at your option) any later version.
21343 This program is distributed in the hope that it will be useful,
21344 but WITHOUT ANY WARRANTY; without even the implied warranty of
21345 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21346 General Public License for more details.
21348 You should have received a copy of the GNU General Public License
21349 along with this program. If not, see
21350 <http://www.gnu.org/licenses/>.