Document another awk pitfall.
[autoconf/ericb.git] / ChangeLog
blobd0ce0a6e93381ec5748ad964e87d22897f5c3e9d
1 2007-09-13  Eric Blake  <ebb9@byu.net>
3         Document another awk pitfall.
4         * doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
5         limitation of field variables in END.
6         Reported by Gary V. Vaughan.
8         * AUTHORS: Add missing entries.
10 2007-09-12  Eric Blake  <ebb9@byu.net>
12         Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
13         * doc/autoconf.texi (Text processing Macros): Document
14         m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
15         (Redefined M4 Macros): Document m4_ifndef.
16         * lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
17         can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
18         used it while it was undocumented.
19         * NEWS: Document this change.
20         * lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
21         * lib/m4sugar/Makefile.in: Regenerate.
22         * tests/m4sugar.at (m4@&t@_version_compare): New test.
23         Reported by Bruno Haible.
25         * doc/autoconf.texi (Generic Compiler Characteristics): Add
26         missing index entries.
28 2007-09-11  Eric Blake  <ebb9@byu.net>
30         Centralize all system extensions checks.
31         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
32         from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
33         (AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
34         AC_USE_SYSTEM_EXTENSIONS.
35         (AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
36         (AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
37         * doc/autoconf.texi (Posix Variants): Reword this section,
38         emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
39         rather than a series of system-specific checks.
40         (Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
41         AC_MINIX.
42         * NEWS: Document this change.
43         * THANKS: Update.
44         Reported by Martin Koeppe.
46 2007-09-08  Eric Blake  <ebb9@byu.net>
48         Clean up obsolete macros references.
49         * doc/autoconf.texi: Add anchors to support better
50         cross-referencing.
51         (Particular Structures): Move obsolete macros descriptions...
52         (External Software): Likewise.
53         (Package Options): Likewise.
54         (Obsolete Macros): ...to here.  Add cross-references to
55         documentation on replacements.
56         * NEWS: Mention that these macros have been obsolete for a while
57         now: AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH AC_ENABLE.
59         Improve M4 path searching during configure.
60         * lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
61         macro.
62         (_AC_PATH_PROG_FEATURE_CHECK): Rename...
63         (_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
64         parameter, and kill side effects.
65         (_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
66         (_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
67         * m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
68         is found.
69         (AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
70         allow bootstrapping with autoconf 2.61.
71         * configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
72         * configure: Regenerate.
73         * doc/autoconf.texi (Generic Programs): Document new macro.
74         * tests/mktests.sh (au_exclude_script): Exclude auto-testing new
75         macro.
76         * tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
77         * NEWS: Document the change.
78         * THANKS: Update.
79         Reported by Hans Aberg.
81         * doc/autoconf.texi (Generic Programs): Fix typo.
83 2007-09-06  Eric Blake  <ebb9@byu.net>
85         * doc/autoconf.texi (Generic Programs): Use $PATH_SEPARATOR, not
86         :, and make it clear that optional @var{path} defaults to $PATH.
87         (Erlang Compiler and Interpreter): Likewise.
89         Texinfo cleanup.
90         * doc/autoconf.texi: Avoid lines > 80 columns when possible.
91         Reword some paragraphs to avoid overfull, underfull hbox
92         warnings.  Add index entries to avoid overfull vbox warnings.
94 2007-09-05  Eric Blake  <ebb9@byu.net>
96         * NEWS: Adjust wording for AC_CONFIG_LINKS.
97         Reported by Ralf Wildenhues.
99 2007-09-03  Eric Blake  <ebb9@byu.net>
101         * NEWS: Document fixes that have been applied since 2.61a.
103         Housekeeping.
104         * THANKS: Update, and convert to UTF-8 encoding.
105         * AUTHORS: Likewise.
107 2007-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109         * lib/autoconf/general.m4 (AC_SITE_LOAD): Guard against file
110         names beginning with `-' again.
112 2007-08-22  Stepan Kasal  <kasal@ucw.cz>
113             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115         * doc/autoconf.texi (Defining Directories): Mention
116         AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake.
118 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120         * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
121         here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
122         * tests/base.at (configure arguments): New test.
123         * THANKS: Update.
124         Report by Olaf Lenz.
126         * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
127         arguments in comment.
128         Report by Vincent Torri <vtorri at univ minus evry dot fr>.
130 2007-08-20  Benoit Sigoure  <tsuna@lrde.epita.fr>
132         * doc/autoconf.texi (File System Conventions): Index the proper
133         way of detecting absolute file names.
135 2007-08-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
137         * build-aux/config.guess, build-aux/config.sub,
138         build-aux/elisp-comp, build-aux/install-sh, build-aux/mdate-sh,
139         build-aux/missing, build-aux/texinfo.tex, doc/fdl.texi,
140         doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
141         * doc/autoconf.texi (GNU Free Documentation License): Adjust for
142         sectioning change in fdl.texi.
144         * bin/autoconf.as: Update --version output to match current GCS.
145         * bin/autoheader.in: Likewise.
146         * bin/autom4te.in: Likewise.
147         * bin/autoreconf.in: Likewise.
148         * bin/autoscan.in: Likewise.
149         * bin/autoupdate.in: Likewise.
150         * bin/ifnames.in: Likewise.
152 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
154         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not try to link a
155         file to itself if source and build trees coincide.
156         * tests/torture.at (AC_CONFIG_LINKS and identical files): New
157         test.
158         Report by Sebastian Freundt <hroptatyr@gna.org>.
160 2007-07-20  Paul Eggert  <eggert@cs.ucla.edu>
162         Reword the copyright notices to match what's suggested in GPLv3.
163         In ChangeLog files, use more-permissive notice rather than GPL, as
164         per usual GNU standards these days.
166 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
168         * doc/autoconf.texi (autoreconf Invocation): Document ACLOCAL_AMFLAGS
169         limitation reported by Leo Moisio in
170         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432941>.
172 2007-07-03  Paul Eggert  <eggert@cs.ucla.edu>
174         * COPYING: Update to GPLv3.  All uses changed.
176 2007-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
177         and Paul Eggert  <eggert@cs.ucla.edu>
179         * doc/autoconf.texi (Limitations of Usual Tools): sed -e ''
180         fails on AIX 5.3.
182 2007-06-17  Noah Misch  <noah@cs.caltech.edu>
184         * lib/autotest/general.m4 (AT_INIT): Handle absolute `srcdir'.
185         * tests/autotest.at (srcdir propagation): Test absolute `srcdir' and
186         `srcdir' as subdirectory of `builddir'.
188 2007-06-13  Noah Misch  <noah@cs.caltech.edu>
190         * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
191         * tests/autotest.at (srcdir propagation): New test.
192         * THANKS: Update.
193         Reported by Mike Frysinger.
195 2007-06-13  Paul Eggert  <eggert@cs.ucla.edu>
197         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Set FPATH too.
198         Problem reported by Fred Kreek in
199         <http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00009.html>.
200         * doc/autoconf.texi (Special Shell Variables): Warn about FPATH.
201         (Macro Names, Defining Directories): Don't mention PATH as a name
202         for a fully qualified file name, as this usage violates the GNU
203         coding standards and we shouldn't recommend it.
205         * lib/autotest/general.m4 (AT_INIT): Don't set PATH to the empty
206         string and then assume shell builtins like "test" will work.
208 2007-06-12  Noah Misch  <noah@cs.caltech.edu>
210         * lib/autoconf/general.m4 (AC_SUBST): Raise a fatal error if VARIABLE is
211         not a valid shell variable name.
212         * tests/mktests.sh (ac_exclude_list): Add AC_ARG_VAR.
213         * tests/torture.at (AC_SUBST: variable name validation): New test.
214         Reported by Andreas Schwab.
216 2007-06-04  Noah Misch  <noah@cs.caltech.edu>
218         * doc/autoconf.texi (AC_F77_MAIN): Give a specific usage example that
219         works with both C and C++.
221 2007-06-03  Noah Misch  <noah@cs.caltech.edu>,
222             Bruno Haible  <bruno@clisp.org>
224         * lib/autoconf/c.m4 (AC_OPENMP): Use a simple loop instead of compiler
225         brand tests.
227 2007-05-31  Paul Eggert  <eggert@cs.ucla.edu>
229         * doc/autoconf.texi (Particular Types): Give example of use for
230         AC_TYPE_INT8_T etc.
232 2007-05-29  Stepan Kasal  <kasal@ucw.cz>
234         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Fix a typo.
236 2007-05-28  Paul Eggert  <eggert@cs.ucla.edu>
238         * doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
239         define HAVE_INT8_T, and likewise for similar macros.
240         Problem reported by Patrick Welche in
241         <http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.
243 2007-05-25  Noah Misch  <noah@cs.caltech.edu>
245         * bin/Makefile.am ($(top_builddir)/bin/autom4te): New dependency.
247 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
249         * lib/autoconf/c.m4 (AC_OPENMP): Don't echo --enable-openmp
250         choice, since that's what we do with --enable-largefile etc.
251         Redo indenting and assignments to simplify things a bit, and make
252         the parens work with Emacs.
254         * doc/autoconf.texi (Generic Compiler Characteristics): Fix typo
255         in my previous change: AC_C_OPENMP -> AC_OPENMP.  Reported by Bruno
256         Haible.
258 2007-05-21  Noah Misch  <noah@cs.caltech.edu>
260         * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE.
261         * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS.
263 2007-05-21  Bruno Haible  <bruno@clisp.org>
265         * NEWS: Rename AC_C_OPENMP to AC_OPENMP.
266         * lib/autoconf/c.m4 (AC_OPENMP): Renamed from AC_C_OPENMP.
267         * doc/autoconf.texi (Generic Compiler Characteristics): Move
268         renamed AC_OPENMP documentation here, from "C compiler".
269         Mention C++ and Fortran.
271 2007-05-21  Paul Eggert  <eggert@cs.ucla.edu>
273         * doc/autoconf.texi (C Compiler): Tweak OpenMP documentation a bit.
275 2007-05-21  Bruno Haible  <bruno@clisp.org>
277         * NEWS: Mention AC_C_OPENMP.
278         * lib/autoconf/c.m4 (AC_C_OPENMP): New macro.
279         * doc/autoconf.texi (C Compiler): Document AC_C_OPENMP.
281 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
283         * bin/autom4te.in: Fix typos.
285 2007-05-16  Noah Misch  <noah@cs.caltech.edu>
287         * bin/autoconf.as: Handle `-' just like other input files.
288         * bin/autom4te.in (parse_args): Pass `-' through.
289         (handle_output): Skip the forbidden token search if we read from stdin.
290         (up_to_date): Always treat stdin as out of date.
291         * tests/tools.at (autoconf: input from stdin): New test.
292         (autoconf: forbidden tokens, basic): Check a second `autoconf' run.
294 2007-05-16  Stepan Kasal  <kasal@ucw.cz>
296         * tests/foreign.at tests/semantics.at, tests/tools.at: Remove
297         parameters for AT_CLEANUP.
298         * tests/local.at (AT_CHECK_AU_MACRO): Likewise.
300 2007-05-14  Paul Eggert  <eggert@cs.ucla.edu>
302         * NEWS: Document that AC_C_RESTRICT checks 'restrict' last.
303         * doc/autoconf.texi (C Compiler): Likewise.
305 2007-05-14  Noah Misch  <noah@cs.caltech.edu>
307         * lib/autoconf/c.m4 (AC_C_RESTRICT): Check `restrict' last.
309 2007-05-09  Stepan Kasal  <kasal@ucw.cz>
311         * doc/autoconf.texi: Direntry for "autoconf Invocation"
312         renamed to "autoconf-invocation"
314         * doc/autoconf.texi (Caching Results): The CACHE-ID variable
315         in the examples should not use the internal "ac_" prefix.
317 2007-05-05  Noah Misch  <noah@cs.caltech.edu>
319         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): Use `eval'.
320         * doc/autoconf.texi ($@, case): Document Zsh limitations.
322 2007-05-03  Stepan Kasal  <kasal@ucw.cz>
324         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Put a.out first.
325         Reorganize the comments before and in the macro.
327 2007-05-02  Stepan Kasal  <kasal@ucw.cz>
329         * lib/autoconf/lang.m4, lib/autoconf/c.m4,
330         lib/autoconf/fortran.m4, lib/autoconf/erlang.m4: Cleanup of
331         section titles and other comments; no code change.
333 2007-05-01  Kevin Ryde  <user42@zip.com.au>
335         * doc/autoconf.texi (Particular Programs): Typo
336         @acindex{AC_PROG_MKDIR_P} shouldn't have "AC" in that call.
338 2007-04-30  Paul Eggert  <eggert@cs.ucla.edu>
340         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Don't imply that
341         'configure' will fail if the shell lacks proper support for shell
342         functions.  Suggested by RMS.
344 2007-04-29  Paul Eggert  <eggert@cs.ucla.edu>
346         * doc/autoconf.texi (Limitations of Builtins): Correct the warning
347         about Solaris /bin/printf '%010000x' 123.  Problem reported by
348         Bruno Haible.
350 2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
352         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look
353         for a.* when searching for executables, as this prevents users
354         from having files like a.c.  Problem reported by Ralf Wildenhues in:
355         http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html
356         This fixes a problem introduced on 2000-12-19.
358 2007-04-26  Paul Eggert  <eggert@cs.ucla.edu>
360         * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
361         /bin/printf '%010000x' 123.  Problem reported by Arto C. Nirkko
362         via Bruno Haible.
364 2007-04-12  Paul Eggert  <eggert@cs.ucla.edu>
366         * NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
367         AC_CHECK_TYPE, AC_CHECK_TYPES.
368         * doc/autoconf.texi (Generic types): C types must be type-names
369         (the C terminology), not type-ids (the C++ term).  C++ types
370         must not be anonymous.
371         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
372         for C++; this drops support for anonymous struct and union types,
373         which were problematic anyway.
374         * tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
375         for C++.
377 2007-04-12  Jim Meyering  <jim@meyering.net>
379         * doc/autoconf.texi (Libraries): Typo fix: insert missing "in".
381 2007-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
383         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Fix AC_CONFIG_LINKS
384         to prefer a link source from the build tree, if it exists.
385         Report by Pallav Gupta <pallavgupta@gmail.com>.
387 2007-04-11  Paul Eggert  <eggert@cs.ucla.edu>
389         * doc/autoconf.texi (Generic Types): Document the restrictions
390         on types imposed by AC_CHECK_TYPE, AC_CHECK_TYPES.
391         (Generic Compiler Characteristics): AC_CHECK_SIZEOF now works
392         with objects too.  Document the restrictions on its use.
393         Document the restrictions on AC_CHECK_ALIGNOF's type argument.
394         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW):
395         For C, just try sizeof (TYPE) and sizeof ((TYPE)); if the former
396         works but the latter doesn't, then it's a valid type.
397         This lets people use function types and so forth.
398         For C++ there doesn't seem to be a simple solution, so leave it alone.
399         (AC_CHECK_SIZEOF): Allow argument to be a variable.
400         (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Don't bother to invoke
401         AC_CHECK_TYPE; that wasn't documented or necessary.
403 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
405         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Skip AS_TEST_X
406         when cross-compiling.
408 2007-04-11  Stepan Kasal  <kasal@ucw.cz>
410         * doc/autoconf.texi (External Software): Fix a typo in the
411         previous change.
413 2007-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
415         * doc/autoconf.texi (External Software, Package Options):
416         Fix ambiguous wording.  Report by Reuben Thomas <rrt@sc3d.org>.
418 2007-04-06  Paul Eggert  <eggert@cs.ucla.edu>
420         * doc/autoconf.texi (Particular Types): AC_C_LONG_DOUBLE is now
421         obsolescent.  Suggested by Bruno Haible.
422         * NEWS: Document this.
424 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
426         * doc/autoconf.texi (Here-Documents, Limitations of Builtins):
427         (Limitations of Usual Tools): Don't say "older" if Solaris 10 by
428         default still has the problem.  Problem reported by Bruce Korb.
430 2007-03-28  Stepan Kasal  <kasal@ucw.cz>
431         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
433         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix a
434         comment in the generated config.status.
436 2007-03-27  Stepan Kasal  <kasal@ucw.cz>
438         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Update comment.
440 2007-03-26  Paul Eggert  <eggert@cs.ucla.edu>
442         * doc/autoconf.texi (Shellology): Rework treatment of the 'test'
443         command and case statements to make it a bit clearer and describe
444         more pitfalls.
446 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
448         * doc/autoconf.texi (C Compiler): Mention that AC_PROG_CC_C99 also
449         checks for unsigned long long int.
451 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
453         * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
454         nonstandard grep R.E. escape sequences.
456 2007-03-17  Jim Meyering  <jim@meyering.net>
458         * doc/autoconf.texi: Adjust grammar around use of "heuristics".
459         (Limitations of Usual Tools): Also list \< and \>, and mention that
460         HP-UX's grep, like the one from Solaris, does not support that syntax.
462 2007-03-09  Stepan Kasal  <kasal@ucw.cz>
464         * doc/autoconf.texi (Specifying Names): `--host' does not
465         change the build type.
467 2007-03-05  Paul Eggert  <eggert@cs.ucla.edu>
469         * doc/autoconf.texi (C Compiler): Warn that AC_C_BIGENDIAN
470         suggests AC_CONFIG_HEADERS.
471         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Warn if not using
472         AC_CONFIG_HEADERS.  Problem reported by
473         Peter O'Gorman.
475 2007-02-28  Paul Eggert  <eggert@cs.ucla.edu>
477         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Fix typo "__LITLE_ENDIAN__".
478         Problem reported by Paolo Bonzini in:
479         http://lists.gnu.org/archive/html/autoconf-patches/2007-02/msg00024.html
480         * tests/semantics.at (AC_C_BIGENDIAN): Don't reject hosts that have
481         universal binaries.  Problem reported by Elias Pipping.
483 2007-02-27  Paul Eggert  <eggert@cs.ucla.edu>
485         * NEWS: AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
486         * doc/autoconf.texi (C Compiler): Document this.  There is a new
487         extra argument ACTION-IF-UNIVERSAL.
488         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Implement this.
489         Add support for Solaris-style _LITTLE_ENDIAN and _BIG_ENDIAN.
490         Reindent for sanity's sake.
492 2007-02-24  Eric Blake  <ebb9@byu.net>
494         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
495         copyright.
496         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
497         * lib/autotest/general.m4 (AT_INIT): Likewise.
498         (_AT_DECIDE_TRACEABLE): Fix syntax highlighting.
500 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
502         * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
503         status of rm so we know when it failed.
504         If cleaning of test dir failed before running the test, warn.
505         Output the line separator in verbose mode before the warning
506         to make clear the warning belongs to the following test.
508 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
510         * doc/autoconf.texi (Parentheses): Mention problem with (( in
511         shells.
513 2007-02-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
514         and Paul Eggert  <eggert@cs.ucla.edu>
516         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix quoting
517         errors introduced in last change.
519 2007-02-07  Paul Eggert  <eggert@cs.ucla.edu>
521         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer \r to
522         an actual carriage return.  Use "ac_cr" to contain the actual
523         carriage return.
524         * doc/autoconf.texi (Limitations of Usual Tools): Document problem
525         with traditional Awk and begin.
526         * tests/torture.at (Limitations of Builtins): Document the problem
527         with Bash 2.03 printf.
528         (Substitute and define special characters):
529         Remove trailing white space.  Work around a bug in Solaris 8 /bin/bash.
531 2007-02-06  Ralf Menzel  <menzel@ls6.cs.uni-dortmund.de>  (tiny change)
533         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Redirect
534         input from /dev/null in awk test, so even Solaris /usr/bin/awk
535         will not wait for input with a script containing only a BEGIN
536         rule.
538 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
540         * doc/autoconf.texi (Introduction, Why GNU M4): Clarify M4 version
541         requirements.
542         * README: Likewise.
544 2007-02-02  Eric Blake  <ebb9@byu.net>
546         * NEWS: Update copyright.
548         * m4/m4.m4 (AC_PROG_GNU_M4): Reject M4 1.4 through 1.4.4 as
549         broken.
550         * configure.ac: Update error message.
551         * NEWS: Note that M4 1.4.5 or later is now a hard dependency.
552         Reported by Gary Vaughan and Jim Meyering, and problem analyzed
553         by Stepan Kasal:
554         http://lists.gnu.org/archive/html/bug-autoconf/2006-11/msg00025.html
556 2007-01-31  Eric Blake  <ebb9@byu.net>
558         * THANKS (people): Update.
560 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
562         * doc/autoconf.texi (Shellology): pdksh 5.2.14 is still the
563         latest version.
564         (Shell Substitutions): Note problems with @{var:=value} etc.
565         Add a new section for problems with @{#var} etc.  Problem noted
566         by Ralf Wildenhues.  See:
567         http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00157.html
569 2007-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
571         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Also
572         AC_SUBST([MKDIR_P]), so that Automake < 1.10 will pick up its
573         trace, if a package uses AC_PROG_MKDIR_P explicitly.  The actual
574         substitution will still be done by the special code.
575         Report by Jim Meyering.
577         * doc/autoconf.texi (File System Conventions): Mention that
578         $PATH_SEPARATOR is for the build system only.
579         Report by Keith Marshall.
581 2007-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583         * doc/autoconf.texi (Setting Output Variables): Mention that
584         all non-NUL characters are ok in substituted values.
585         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Fix comment typo.
586         (_AC_OUTPUT_FILES_PREPARE): Test and use backslash escaping of
587         carriage return for $AWK, needed for BSD awk.
588         * tests/torture.at (Substitute and define special characters):
589         Test all 8 bit non-NUL characters.
590         Report against Automake by Patrick Welche.
592 2007-01-15  Stepan Kasal  <kasal@ucw.cz>
594         * doc/autoconf.texi: Direntry for "autoconf Invocation" renamed.
596 2007-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
598         * lib/autoconf/programs.m4 (AC_PROG_SED): When closing a pipe
599         early on the reader side, drop stderr of the input to avoid
600         `broken pipe' error output; this may happen even with shell
601         builtin `echo' of some bash versions.  Reports by Ian Macdonald
602         <iamacdo@telkomsa.net> and Sam Sexton <Sam.Sexton@reuters.com>.
604 2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
606         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Use newlines to
607         separate items of `ac_user_opts', to avoid long lines.
608         (_AC_INIT_PARSE_ENABLE2, _AC_ENABLE_IF_ACTION): Adjust.
610 2007-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
612         * doc/autoconf.texi: Fix some typos.
614 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
616         Fix some wording problems noted by Paolo Bonzini in:
617         http://lists.gnu.org/archive/html/autoconf-patches/2007-01/msg00077.html
618         * doc/autoconf.texi (Signed Overflow Examples): Give more
619         discussion about the allow_superuser_privileges example,
620         and change it a bit to make things clearer.
621         (Optimization and Wraparound): Clarify whether the compiler
622         will generate an infinite loop for the example derived from
623         Autoconf's mktime test.
624         (Signed Overflow Advice): Say that -ftrapv is meant for debugging.
625         Also, clarify unsigned multiplication overflow.
627 2007-01-04  Eric Blake  <ebb9@byu.net>
629         * bin/Makefile.am (RELEASE_YEAR): New macro.
630         (edit): Use it to supply correct copyright year to scripts.
631         * bin/autoconf.as (version): Use it.
632         * bin/autoheader.in ($version): Likewise.
633         * bin/autom4te.in ($version): Likewise.
634         * bin/autoreconf.in ($version): Likewise.
635         * bin/autoscan.in ($version): Likewise.
636         * bin/autoupdate.in ($version): Likewise.
637         * bin/ifnames.in ($version): Likewise.
639 2007-01-02  Paul Eggert  <eggert@cs.ucla.edu>
641         * doc/autoconf.texi (Integer Overflow): Revised based on today's
642         feedback.  The most important changes document what happens when
643         you convert an out-of-range value to a signed integer type, and
644         say that (sum < a) != (b < 0) reliably detects overflow when sum =
645         a + b.
647         * doc/autoconf.texi (Integer Overflow): Greatly expand and
648         rewrite, taking notions from the recent discussion on the gcc and
649         autoconf mailing lists; please see
650         http://lists.gnu.org/archive/html/autoconf-patches/2006-12/msg00091.html
651         and follow the many links.
652         (Integer Overflow Basics, Signed Overflow Examples):
653         (Optimization and Wraparound, Signed Overflow Advice):
654         (Signed Integer Division): New sections.
656 2006-12-28  Steven G. Johnson  <stevenj@alum.mit.edu>
658         * lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't include
659         preprocessor macro arguments in traced name.
660         * doc/autoconf.texi (Defining symbols): Document longstanding
661         support for AC_DEFINE-ing macros with arguments, and document
662         behavior when the same variable has multiple AC_DEFINEs.
663         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Revert to the
664         old implementation which AC_DEFINEs the FC_FUNC and FC_FUNC_
665         macros directly, giving much shorter and simpler code.
667 2006-12-28  Malcolm Purvis <malcolmp@xemacs.org>  (trivial change)
669         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Insert a
670         space before "$ac_configure_args" to prevent a 'config.status
671         --recheck' failure if ac_configure_args doesn't contain a leading
672         space.  This works around a problem with the XEmacs configure.ac,
673         which uses the (undocumented) ac_configure_args variable
674         inconsistently with Autoconf.
676 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
678         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):
679         Include <limits.h>, and use its INT_MAX to rewrite the
680         j loop so that it does not overflow 'int'.  Problem reported by
681         Ralf Wildenhues in
682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
683         Play it safe by shifting left by 1 rather than multiplying by 2,
684         as GCC is less likely to optimize this away when the value
685         is signed (when it assumes overflow leads to undefined behavior).
686         Also, don't assume time_t uses two's complement.
688 2006-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
690         * tests/torture.at (Substitute a 2000-byte string): Avoid using
691         a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
692         dumps core on it.  Report by Tim Rice.
694 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
696         * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
697         --disable-option-checking to --help output even when
698         AC_PRESERVE_HELP_ORDER is not used.
699         (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
700         --with argument, rather than argument with [-.] replaced by
701         underscores.
702         * NEWS: Fix typo in previous change; the news was in the
703         wrong section.
705 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
707         * NEWS: Warnings are now generated by default for unknown
708         --enable-* and --with-* options.
709         * doc/autoconf.texi (Option Checking): Renamed from
710         (Configure Option Checking).  Tighten up the wording a bit.
711         (External Software, Package Options): Cross-reference to Option
712         Checking, and use this to shorten our section.
713         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Prefer test -n
714         "$x" to test "x$foo" != x.
715         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
716         Don't warn if $enable_option_checking is "no".
717         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Initialize
718         ac_unrecognized_opts to the empty string.
719         Don't echo the unrecognized opts, as this might mishandle
720         backslashes or leading -.
721         (AC_PRESERVE_HELP_ORDER): Put the --disable-option-checking
722         usage next to the other --disable-FEATURE options in the
723         help string.
725 2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
727         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PARSE_ARGS):
728         (_AC_INIT_PARSE_ENABLE2, _AC_INIT_HELP, _AC_ENABLE_IF):
729         Print warning for unrecognized --with and --enable options
730         (AC_DISABLE_OPTION_CHECKING): New macro to disable warnings.
731         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS):
732         Disable option checking when subdirs are configured.
733         (AC_OUTPUT): If warnings are enabled, print warning about
734         unrecognized --with and --enable options at the end of
735         the configure output (as well as at the beginning).
736         * doc/autoconf.texi (Option Checking): New node.
737         Document new option warning functionality.
739 2006-12-16  Eric Blake  <ebb9@byu.net>
741         * configure.ac (AC_INIT): Bump version, since 2.61a is released.
742         * NEWS: Start news for current version.
744 2006-12-15  Paul Eggert  <eggert@cs.ucla.edu>
746         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
747         Define HAVE_GETMNTENT to 1, not to the empty string.
748         Problem originally reported by Jochen Friedrich in
749         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243>.
751         This change prompted by a problem report by Andrey Simonenko in
752         <http://lists.gnu.org/archive/html/bug-autoconf/2006-12/msg00026.html>.
753         * doc/autoconf.texi (Defining Symbols): AC_DEFINE works for
754         object-like macros only, in the traditional portable character
755         set.
756         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL):
757         Warn about attempts to define things that are not identifiers.
758         * lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Rewrite to avoid
759         awful hack that AC_DEFINEd macro names containing parentheses.
761 2006-12-12  Paul Eggert  <eggert@cs.ucla.edu>
763         * doc/autoconf.texi: Undo some of the 2006-12-10 change.  It was
764         too drastic, even if Texinfo in theory requires it for info mode.
766         (config.status Invocation): Renamed back from Recreating a
767         Configuration).
768         (Obsolete config.status Use): Renamed back from Obsolete Recreation.
769         (Autoconf 2.13): Renamed back from 20th-century Autoconf 2.
771 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
773         * NEWS: Version 2.61a.
775 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
776         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
778         * NEWS: Document changes with echo and printf, and the lack
779         of limits on the total size of multi-line values of substituted
780         variables, and the AC_FUNC_FSEEKO fix.
782 2006-12-10  Paul Eggert  <eggert@cs.ucla.edu>
784         * doc/autoconf.texi (Writing Autoconf Input): Renamed from
785         Writing configure.ac.
786         (Autoconf Input Layout): Renamed from configure.ac Layout.
787         (Recreating a Configuration): Renamed from config.status Invocation.
788         (Obsolete Recreation): Renamed from Obsolete config.status Use.
789         (acconfig Header): Renamed from acconfig.h.
790         (20th-century Autoconf 2): Renamed from Autoconf 2.13.
791         (Writing Testsuites): Renamed from Writing testsuite.at.
792         (Autom4te Cache): Renamed from autom4te.cache.
794         * BUGS: Remove mention of VPATH problem, since it's now documented
795         not to be a bug in the Autoconf build procedure itself, but rather
796         a problem with the proprietary `make' programs.
798         * doc/autoconf.texi (Build Directories): Add a cross reference
799         to VPATH and Make.
801         * build-aux/config.guess, build-aux/config.sub, build-aux/texinfo.tex:
802         * doc/standards.texi: Sync from gnulib.
804         * man/autoconf.1, man/autoheader.1, man/autom4te.1, man/autoreconf.1:
805         * man/autoscan.1, man/autoupdate.1, man/config.guess.1:
806         * man/config.sub.1, man/ifnames.1: Remove from CVS, since they're
807         generated automatically.
809 2006-12-06  Paul Eggert  <eggert@cs.ucla.edu>
811         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
812         C 5.8 on Solaris 10.  Using -xc99=all rather than -xc99 bypasses
813         the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
815 2006-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
817         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the
818         `CEOF$ac_eof' special marker, the awk script cannot contain a
819         line matching `^CEOF', so this is not needed any more.
820         * tests/torture.at (Substitute a newline): Expose the `%!_!# '
821         special marker in the test.
823 2006-12-06  Stepan Kasal  <kasal@ucw.cz>
825         * tests/tools.at (autom4te preselections): Use `find -newer';
826         remove one of the sleeps.
828         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Make it
829         more readable, using ...
830         (_AC_INIT_PARSE_ENABLE2): ... this new helper macro.
832         * doc/autoconf.texi (autoheader Invocation): Do not double-
833         quote the parameter of `AH_BOTTOM' in the example.
835 2006-12-05  Stepan Kasal  <kasal@ucw.cz>
837         * doc/autoconf.texi (Configuration Headers): Remove the
838         example with multiple input files.
839         (autoheader Invocation): Encourage `AH_BOTTOM', discouraging
840         multiple input files.
842 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
844         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When
845         creating the awk substitution script, handle one input line at a
846         time, so that the maximum length of a substituted (multi-line)
847         value is not limited by the size of the sed pattern space.
848         The trade-off is a slightly repetitive sed script.
849         * doc/autoconf.texi (Limitations of Usual Tools): Branch labels
850         can only have up to 7 characters, due to Solaris 10 /bin/sed.
851         * tests/torture.at (Substitute a 2000-byte string): Increase the
852         test with several long lines, they should not be caught by sed
853         limits any more.
855         * tests/tools.at (autom4te preselections): New test, to flag
856         entries missing from autom4te.cfg.
857         Report by David Byron <dbyron@hheld.com>.
859         * tests/torture.at (Substitute a 2000-byte string): Actually use
860         AC_PROG_AWK, so the last change works as intended.
861         (Substitute and define special characters): Likewise.
862         (Substitute a newline): Likewise.
864         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use `$AWK'
865         instead of `awk' consistently.
866         (_AC_OUTPUT_CONFIG_STATUS): Initialize $AWK.
867         * tests/torture.at (Torturing config.status): Test both the
868         result of AC_PROG_AWK and plain awk.
869         (Substitute a 2000-byte string): Likewise.
870         (Substitute and define special characters): Likewise.
871         (Substitute a newline): Likewise.
873 2006-12-04  Paul Eggert  <eggert@cs.ucla.edu>
875         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
876         can be assigned to a function pointer.  Problem reported by
877         Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
878         part of a patch by Ralf Wildenhues in that same bug report.
880 2006-12-01  Paul Eggert  <eggert@cs.ucla.edu>
882         * tests/mktests.sh (ac_exclude_list): Exclude AC_FUNC_SETVBUF_REVERSED.
883         * tests/semantics.at (AC_FUNC_SETVBUF_REVERSED): New test.
885 2006-12-01  Eric Blake  <ebb9@byu.net>
887         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE): Avoid newline, to aid in
888         cross-compiling from cygwin to mingw.
889         Reported by Bob Rossi.  This resurrects the 2000-11-30 patch to
890         aclang.m4, which was mistakenly removed in the 2001-09-17 patch
891         to lib/autoconf/c.m4.
893 2006-12-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
895         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Use a longer test
896         string for more reliable failure.  Wrap the entire test that
897         causes the broken Solaris printf to dump core, in a subshell,
898         so the segmentation fault message is reliably suppressed.
899         Fix shell expansion errors by using /usr/ucb/echo always;
900         avoid an error on systems without it by another subshell.
901         Avoid m4 expansion of `$1'.  Set the zeroth argument of the
902         subshell-$as_echo to `as_echo', for better error message.
904 2006-11-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
906         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): If `BASH_ARGV' or
907         `BASH_SOURCE' contain a newline, set them to empty, as they may
908         not be unset.
910 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
912         Turn AC_FUNC_SETVBUF_REVERSED into a noop.  It's been obsolete for
913         years and is too hard to maintain now.  The last straw was
914         reported by Jerker Baeck in
915         <http://lists.gnu.org/archive/html/autoconf/2006-11/msg00102.html>.
916         * NEWS: AC_FUNC_SETVBUF_REVERSED is now obsolete.
917         * doc/autoconf.texi (Particular Functions): Move
918         AC_FUNC_SETVBUF_REVERSED from here...
919         (Obsolete Macros): ... to here.  Say that it does nothing now.
920         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
921         Turn into (almost) a no-op.
923         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_CONST):
924         (AC_C_VOLATILE):
925         Do not recommend via AN_FUNCTION, AN_IDENTIFIER, or AN_HEADER.
926         These macros are obsolescent and new applications shouldn't need them.
927         * lib/autoconf/functions.m4 (AC_FUNC_CLOSEDIR_VOID, AC_REPLACE_FNMATCH):
928         (AC_FUNC_GETLOADAVG, AC_FUNC_GETPGRP, AC_FUNC_MEMCMP):
929         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, AC_FUNC_STAT, AC_FUNC_LSTAT):
930         (AC_FUNC_STRFTIME, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
931         (AC_FUNC_VPRINTF): Likewise.
932         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT, AC_HEADER_STAT):
933         (AC_HEADER_STDC, AC_HEADER_SYS_WAIT, AC_HEADER_TIME): Likewise.
934         * lib/autoconf/types.m4 (AC_STRUCT_TM): Likewise.
936         * doc/autoconf.texi (Setting Output Variables): Mention that
937         @VAR1@VAR2 has unspecified behavior.  Problem reported by
938         Ralf Wildenhues.
939         * NEWS: Mention this.
941         * Makefile.am: Put only a single '#' into the copyright notice,
942         so that it's also present in the output file.  Standardize wording
943         in makefile copyright notices to match GNU coding standards.
944         * bin/Makefile.am: Likewise.
945         * doc/Makefile.am: Likewise.
946         * lib/Makefile.am: Likewise.
947         * lib/freeze.mk: Likewise.
948         * lib/autoconf/Makefile.am: Likewise.
949         * lib/autoscan/Makefile.am: Likewise.
950         * lib/autotest/Makefile.am: Likewise.
951         * lib/m4sugar/Makefile.am: Likewise.
952         * man/Makefile.am: Likewise.
953         * tests/Makefile.am: Likewise.
954         * lib/emacs/Makefile.am: Remove copyright notice; it's just a
955         one-line file.
957 2006-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
959         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix error
960         in the sed script that mangles the awk script: delete up to the
961         first exclamation mark only.
962         * tests/torture.at (Substitute and define special characters):
963         Test '!' too.
965 2006-11-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
967         Rewrite config files generation: avoid quadratic growth in
968         the number of substituted variables by using awk instead of sed
969         for the bulk of the substitutions.
970         * NEWS: Mention this.
971         * doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
972         forbidden in the output (and thus input) file.
973         * lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
974         (_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
975         generate just one large awk script for substitutions,
976         eliminating much of the earlier complexity, while adding some
977         new complexity.  Only expand the substitution templates at
978         configure time, for smaller configure script size.  If
979         _AC_SUBST_FILES are used, test 'awk' for working getline support
980         at config.status time.  If absent, interpolate through the
981         shell.  The awk script was written with much help
982         from Paolo Bonzini and Paul Eggert.
983         (_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
984         (_AC_SED_FRAG_NUM): Likewise.
985         (_AC_SUBST_CMDS): Renamed from...
986         (_AC_SED_CMDS): ...this.
987         (_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
988         * tests/torture.at (Substitute a 2000-byte string): Also
989         substitute a line with 1000 words, and a variable with several
990         long lines.
991         (Substitute and define special characters): Test awk special
992         characters, and put substitution input strings `@foo@' in the
993         output, to test that no recursion happens; test several other
994         combinations from Paolo Bonzini.
996 2006-11-25  Paul Eggert  <eggert@cs.ucla.edu>
998         * lib/autotest/general.m4 (AT_INIT): Undo recent changes
999         that replaced echo with AS_ECHO where this wasn't necessary.
1000         Problem reportd by Ralf Wildenhues.
1001         * lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Port to Solaris 7,
1002         where "/usr/bin/printf '%s\n' S" dumps core if S is long.
1003         This is Sun bug 4206210.  Problem reportd by Ralf Wildenhues.
1005 2006-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1007         * lib/freeze.mk (GREP): Removed, no need to initialize this.
1009 2006-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1011         * doc/autoconf.texi (Limitations of Usual Tools): Don't claim
1012         that traditional Awk lacks 3-arg "split".  It has it.
1013         Mention that FS must be a single character, and a few other
1014         99-byte limits of traditional Awk.
1015         Mention that if (i in a) doesn't work with traditional Awk.
1017 2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1019         * tests/autotest.at (BSx641-newline in command):
1020         (BS-BS-newline in command, BSx640-newline in command):
1021         (Newline-CODE-BS-newline in command):
1022         (Single-quote-BS-newline in command):
1023         (Single-quote-newline-BS-newline in command):
1024         Use printf '%s\n' instead of echo, for portability to hosts
1025         where echo interprets backslashes.  This will break on hosts
1026         that lack printf, but for now let's assume all such hosts
1027         are dead (if not, we should get reports of test failures).
1029 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1031         'echo' has some portability problems, when given a first argument
1032         with a leading '-', or when given any argument containing '\'.
1033         Avoid using 'echo' in these cases.
1034         * bin/Makefile.am $(bin_SCRIPTS): Rewrite to avoid 'echo' entirely.
1035         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Likewise.
1036         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1037         * lib/autotest/general.m4 (AT_INIT): Likewise.
1038         * bin/autoconf.as: Use AS_ECHO rather than plain echo, when the
1039         argument might be unportable.
1040         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Likewise.
1041         * lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Likewise.
1042         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
1043         (_AC_FC_LIBRARY_LDFLAGS): Likewise.
1044         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Likewise.
1045         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE, _AC_INIT_PREPARE):
1046         (_AC_ARG_VAR_VALIDATE, AC_ARG_PROGRAM, _AC_MSG_LOG_CONFTEST):
1047         (AC_RUN_LOG, _AC_RUN_IFELSE, _AC_LIBOBJS_NORMALIZE): Likewise.
1048         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
1049         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Likewise.
1050         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
1051         (AC_PROG_MAKE_SET): Likewise.
1052         * lib/autoconf/status.m4 (_AC_SRCDIRS, _AC_OUTPUT_HEADER):
1053         (_AC_OUTPUT_SUBDIRS, _AC_OUTPUT_CONFIG_STATUS): Likewise.
1054         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT, AT_INIT):
1055         (AT_CLEANUP, _AT_DECIDE_TRACEABLE, _AT_CHECK): Likewise.
1056         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE, _AS_ECHO_UNQUOTED):
1057         (_AS_BASENAME_SED, _AS_DIRNAME_SED, AS_MKDIR_P, AS_TMPDIR, AS_UNAME):
1058         (AS_TR_SH, AS_TR_CPP, AS_VAR_GET): Likewise.
1059         * bin/autoconf.as: Redo verbose flag implementation, as the old
1060         scheme wouldn't work with AS_ECHO.
1061         * lib/autotest/general.m4 (AT_INIT): Likewise.
1062         * lib/autoconf/general.m4 (AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED):
1063         Don't use ECHO_T, since ECHO_N is now reliable.
1064         * lib/autotest/general.m4 (AT_INIT): Likewise.
1065         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use sed "$script"
1066         rather than using a here-document to put the script into a file.
1067         (_AC_DO_ECHO): Hoist the eval out of the echo, so that we can
1068         use AS_ECHO.
1069         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Likewise.
1070         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Use
1071         AS_ECHO_N rather than ECHO_N and ECHO_C.  This doesn't fix any
1072         bug, but we might as well stop using ECHO_N and ECHO_C internally.
1073         * lib/autotest/general.m4 (AT_SETUP): Likewise.
1074         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N): Likewise.
1075         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
1076         (_AC_OUTPUT_MAIN_LOOP): Rework echo so that it has just one
1077         operand, as AS_ECHO requires.  Avoid double file name expansion.
1078         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke _AS_ECHO_PREPARE.
1079         Don't set as_nl, since _AS_ECHO_PREPARE does that now.
1080         (_AS_PREPARE): Comment that _AS_ECHO_N_PREPARE is just for user code.
1081         (AS_ECHO, AS_ECHO_N, _AS_ECHO_PREPARE): New macros.
1082         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
1083         Double-quote strings that would otherwise contain M4 comments.
1084         * tests/m4sh.at (AS_ECHO and AS_ECHO_N): New test.
1086         * configure.ac (AC_INIT): Bump to 2.61a.
1087         * NEWS: Likewise.
1089 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1091         Version 2.61.
1093         * configure.ac (AC_INIT): Bump to 2.61.
1094         * NEWS: Likewise.
1096         * tests/autotest.at (Macro with backslash in a test title):
1097         Comment out for now, as this tests neither fails nor passes
1098         reliably.  Problem reported by Ralf Wildenhues.
1100 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1102         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
1103         in previous change, which caused test failures.
1105 2006-11-16  Stepan Kasal  <kasal@ucw.cz>
1107         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
1108         code for --enable, --disable, --with, and --without to...
1109         (_AC_INIT_PARSE_ENABLE): ... a new macro.
1110         * doc/autoconf.texi (Package Options):
1111         * NEWS: Document that AC_ARG_ENABLE allows dots, too.
1113 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1115         Import these changes from config via gnulib:
1117         2006-11-15  Ben Elliston  <bje@gnu.org>
1119         From Josselin Mouette <joss@debian.org>:
1120         * build-aux/config.guess (SX-8:SUPER-UX:*:*): New.
1122         2006-11-08  Ben Elliston  <bje@gnu.org>
1124         * build-aux/config.guess (authenticamd:Interix*:[3456]*): Another AMD64.
1126         2006-11-07  Steve Woodford  <scw@NetBSD.org>
1127                     Ben Elliston  <bje@gnu.org>
1129         * build-aux/config.guess (*:NetBSD:*:*): Handle sh5el arch.
1130         * build-aux/config.sub (sh5el): New basic_machine.
1133         Import this change from coreutils:
1135         2006-02-13  Jim Meyering  <jim@meyering.net>
1137         * GNUmakefile (all): Emit diagnostics to stderr, not stdout.
1140         Import this change from gnustandards via gnulib:
1142         2006-11-15  Karl Berry  <karl@gnu.org>
1144         * standards.texi: core -> memory, throughout.
1145         (CPU Portability): show correct example of calling write
1146         on a char value; thanks to Paul Eggert for the code.
1147         Both of these suggestions from Eugene Y. Vasserman.
1150         Import these changes from texinfo via gnulib:
1152         2006-11-08  Karl Berry  <karl@gnu.org>
1154         * build-aux/texinfo.tex (\dopdfimage): look for png, jpg/jpeg/JPG, and
1155           as well as pdf images, since they are supported in pdftex with
1156           no further ado.
1158         2006-11-05  Karl Berry  <karl@gnu.org>
1160         * doc/texinfo.tex (Image Syntax): don't mention GIF any more.
1162 2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
1164         * NEWS: Document the AC_ARG_WITH change.
1166 2006-11-13  Bruno Haible  <bruno@clisp.org>
1168         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
1169         options, transliterate also dots to underscores.
1170         (_AC_ENABLE_IF): Transliterate also dots to underscores.
1171         * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
1172         first argument may also contain dots.
1174 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1176         * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
1177         benefit of platforms like Solaris+GCC where it is common to have a
1178         non-working g++ installation.
1180 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1181         and Joel E. Denny  <jdenny@ces.clemson.edu>
1182         and Paul Eggert  <eggert@cs.ucla.edu>
1184         * tests/autotest.at (AT_CHECK_AT_TITLE): Fix shell quoting bugs
1185         and non-portable sed scripts, and use $CONFIG_SHELL when invoking
1186         ./micro-suite.
1188 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1190         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Set
1191         ac_cv_type_long_long_int to 'yes' instead of 'cross-compiling'.
1192         Imported from a similar patch to gnulib by Bruno Haible.
1194 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1196         * NEWS: New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
1197         * doc/autoconf.texi (C Compiler): Document them.
1198         * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS):
1199         New macros, taken from gnulib.
1201 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1203         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
1204         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
1205         Matthew Woehlke.
1207 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1209         * tests/torture.at (Configuring subdirectories): Do not skip
1210         Automake 1.10 nor future Automake 11.1 (sic).
1212 2006-10-26  Joel E. Denny  <jdenny@ces.clemson.edu>
1213         and Stepan Kasal  <kasal@ucw.cz>
1215         Handle special characters in test case titles correctly.
1216         * lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
1217         properly.
1218         (AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
1219         * tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
1220         argument.  Extend to check titles printed by ./micro-suite and
1221         ./micro-suite -l and the title in micro-suite.log.
1222         (Backquote in a test title,
1223         Single-quote in a test title,
1224         Double-quote in a test title): Don't expect failure anymore.
1225         (Backslash in a test title): Put a non-whitespace character after the
1226         backslash so that Bourne shells might actually see it as an escape
1227         sequence.
1228         (Brackets in a test title,
1229         Pound in a test title,
1230         Comma in a test title,
1231         Quoted Macro in a test title,
1232         Macro in a test title,
1233         Macro with single-quote in a test title): New tests.
1234         (Macro with backquote in a test title,
1235         Macro with double-quote in a test title,
1236         Macro with backslash in a test title): New tests expected to fail.
1237         * tests/torture.at (#define header templates): M4-quote this title in
1238         AT_SETUP call so that no M4 code is commented inadvertently somewhere.
1239         The visible effect was a stray [] in the testsuite output.
1241 2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1243         * doc/autoconf.texi (Limitations of Builtins): Do not invoke
1244         `trap ... 0' inside a function, for AIX sh.
1246 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1248         * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
1249         since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build
1250         5363) simply issues a warning when dividing by zero at compile
1251         time.  Problem reported by Elias Pipping.
1253 2006-10-26  Eric Blake  <ebb9@byu.net>
1255         * THANKS: Update.
1256         * doc/autoconf.texi (Evaluation Macros): Improve the example to
1257         show effect on macros that expand with commas.
1258         Reported by Joel E. Denny.
1260         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
1261         Also work with M4 1.4.8.
1263 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1265         * doc/autoconf.texi (Slashes): Document Tru64 4.0 bug reported by
1266         Jim Meyering.
1268 2006-10-25  Stepan Kasal  <kasal@ucw.cz>
1270         * tests/tools.at (autom4te --force): New test, verifies that
1271         `--force' always rewrites the output file.
1273 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1275         * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
1276         needs operands on NetBSD 2.0.2.  Problem reported by Bruno Haible.
1278 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
1280         * tools/trace.at (autoconf --trace: user macros): Test `$%'.
1282 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1284         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
1285         If FUNCTION-BODY is nonempty, use AC_LINK_IFELSE rather than
1286         AC_COMPILE_IFELSE, to work around problem with OSF/1 4.0F fseeko
1287         reported by Nelson H. F. Beebe for Coreutils 6.4.
1289         * tests/tools.at (autoconf --trace: user macros): Remove test
1290         for tracing multiline macros, since m4 1.4.7a uses a different
1291         way to number lines.  Problem reported by Ralf Wildenhues.
1293 2006-10-24  Stepan Kasal  <kasal@ucw.cz>
1295         * bin/autom4te.in (handle_m4): Do not redirect stdin to
1296         /dev/null since the heuristics for interactive behaviour was
1297         fixed in CVS m4.
1299         * bin/autom4te.in: With --force, always refresh the output
1300         file.  Problem reported by Greg Schafer <gschafer@zip.com.au>.
1302         * bin/autoconf.as: Fix the verbose message at the end.
1304 2006-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1306         * configure.ac (AC_INIT): Bump to 2.60c.
1307         * NEWS: Likewise.
1309 2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1311         * NEWS: Version 2.60b.
1313         Import this change from Texinfo:
1314         2006-10-15  Karl Berry  <karl@gnu.org>
1315         * build-aux/texinfo.tex: automake 1.10
1317         * NEWS: Remove AC_CACHE_CHECK_INT.
1318         * doc/autoconf.texi (Caching Results): Likewise.
1319         * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
1320         AC_CACHE_CHECK_INT, since it's no longer public.
1321         * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
1322         * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
1324 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1326         * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
1328 2006-10-19  Eric Blake  <ebb9@byu.net>
1330         * lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
1331         (m4_maketemp): Avoid warnings with M4 1.9a.
1332         * lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
1333         m4_mkstemp.
1334         * doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
1335         * NEWS: Likewise.
1337 2006-10-16  Eric Blake  <ebb9@byu.net>
1339         * doc/autoconf.texi (Setting Output Variables): Fix typo.
1341         * bin/autoconf.as (version): Reword to match GNU Coding
1342         Standards.
1343         * bin/autoheader.in (version): Likewise.
1344         * bin/autom4te.in (version): Likewise.
1345         * bin/autoreconf.in (version): Likewise.
1346         * bin/autoscan.in (version): Likewise.
1347         * bin/autoupdate.in (version): Likewise.
1348         * bin/ifnames.in (version): Likewise.
1350 2006-10-14  Stepan Kasal  <kasal@ucw.cz>
1352         * lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Expand $1 before
1353         looking for special shell characters.
1354         * lib/autoconf/functions.m4 (AC_CHECK_FUNC): Do not expand the
1355         macro defined by AS_VAR_PUSHDEF before passing it as a
1356         parameter.
1357         * lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
1358         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB):
1359         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
1360         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL):
1361         (_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_DIRENT):
1362         Likewise.
1363         * lib/autotest/general.m4 (AT_INIT): Quote parameters of
1364         AS_VAR_* properly.
1365         * tests/m4sh.at (AS_LITERAL_IF): New test.
1367 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1369         (Imported from Automake.)
1370         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
1371         which incorrectly sets the mode of an existing destination
1372         directory.  In some cases the unpatched install-sh could do the
1373         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
1374         system.  We hope this is rare in practice, but it's clearly worth
1375         fixing.  Problem reported by Alex Unleashed in
1376         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
1377         Also, don't bother to check for -m bugs unless we're using -m;
1378         suggested by Stepan Kasal.
1380 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1382         Import this change from Automake:
1384         2006-08-23  Alexandre Duret-Lutz  <adl@gnu.org>
1385         * lib/Autom4te/ChannelDefs.pm (usage): Mention that -Wportability
1386         is enabled by default with gnu and gnits strictness.
1387         Report from Bruno Haible.
1389         2006-03-10  Alexandre Duret-Lutz  <adl@gnu.org>
1390         * lib/Autom4te/ChannelDefs.pm: Make -Wportability the default in
1391         gnu and gnits modes.
1393         Import this change from Config:
1395         2006-09-20  Ben Elliston  <bje@gnu.org>
1396         * build-aux/config.sub (score, score-*): New.
1398         Import this change from Gnulib:
1400         2006-09-16  Karl Berry  <karl@gnu.org>
1401         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
1402         to avoid sectioning errors.
1404         Import these changes from Texinfo:
1406         2006-10-04  Karl Berry  <karl@gnu.org>
1407         * build-aux/texinfo.tex (\singlequotechar): rename to \codequoteright.
1408         (\quoteexpand): rename to \rquoteexpand.
1409         (\codequoteleft): new def, to look for @set codequotebacktick.
1410         (\lquoteexpand, \quoteexpand): new defs.
1411         (\lquoteChar, \rquoteChar, \dashChar, \underChar: new \chardef's.
1412         (\code): must use new \...Char values, since now ` is active.
1414         2006-08-26  Karl Berry  <karl@gnu.org>
1415         * build-aux/texinfo.tex (\textdegree): New command.
1417         2006-08-12  Karl Berry  <karl@gnu.org>
1418         * build-aux/texinfo.tex (error \box0): smaller font.
1420 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1422         * doc/autoconf.texi (Autoheader Macros): Fix syntax error.
1424 2006-10-13  Stepan Kasal  <kasal@ucw.cz>
1426         * doc/autoconf.texi (Autoheader Macros): Warn that the text
1427         added to the template can get mangled.
1429 2006-10-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1431         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
1432         include the default headers, and redefine obstack_chunk_alloc
1433         and obstack_chunk_free.  Fixes false failure with glibc.
1435 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1437         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,
1438         for backward compatibility with Libtool 1.5.22.  Problem reported
1439         by Ralf Wildenhues.
1441 2006-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1443         * lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Require
1444         AC_PROG_CC.
1445         Report by IOhannes m zmoelnig <zmoelnig@iem.at>.
1447 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1449         * NEWS: AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for
1450         the NonStop platform.
1451         * doc/autoconf.texi (Posix Variants): Likewise.
1452         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1454         * lib/m4sugar/m4sh.m4 (AS_TEST_X): New macro.
1455         (AS_EXECUTABLE_P): Use as_test_x rather than as_executable_p.
1456         (_AS_TEST_PREPARE): Set as_test_x rather than as_executable_p.
1457         Use a better substitute, by inspecting the output of "ls"
1458         rather than just using ":".
1459         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Use AS_TEST_X
1460         rather than AS_EXECUTABLE_P, since we needn't worry about
1461         non-regular files here.
1463         * NEWS: Autoconf-generated shell scripts no longer export BIN_SH,
1464         due to configuration hassles with this.  See Tonya Underwood's report
1465         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00003.html>.
1466         * doc/autoconf.texi (Special Shell Variables): Likewise.
1468 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1469             Stepan Kasal  <kasal@ucw.cz>
1471         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Don't set BIN_SH.
1472         (_AS_DETECT_BETTER_SHELL): Don't look in /usr/bin/posix.
1474 2006-10-11  Stepan Kasal  <kasal@ucw.cz>
1476         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Move the
1477           initialization which is not inherited through the environment
1478         (_AS_BOURNE_COMPATIBLE): ... to this new macro.
1479         (_AS_RUN): Call _AS_BOURNE_COMPATIBLE, not AS_BOURNE_COMPATIBLE.
1481 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
1483         * doc/autoconf.texi (Limitations of Usual Tools): Describe
1484         problems with mkdir -p -m.
1486 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
1488         * lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Remove
1489         comment about ac_cpp_err; it was incorrect, and anyway
1490         ac_cpp_err is being removed below.
1491         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE): Don't
1492         set ac_cpp_err to 'yesyes' if preproc_warn_flag and werror_flag
1493         are both 'yes'.  In fact, don't bother setting ac_cpp_err at all;
1494         nobody uses it.
1495         (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't log our funky tests
1496         with werror_flag and conftest.err and so forth.  This is more
1497         compatible with how _AC_PROG_PREPROC_WORKS_IFELSE behaves,
1498         and anyway the user shouldn't normally want to see this gorp logged.
1499         Problem reported by Ralf Wildenhues.
1500         * lib/autoconf/lang.m4 (AC_LANG_WERROR): werror_flag's default is
1501         empty, not 'no', since the rest of the code uses 'test -z'.
1503 2006-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1505         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
1506         Use a single call to AC_DO_TOKENS rather than multiple, for
1507         efficiency.
1508         (_AC_LINK_IFELSE): Test that resulting file is executable.
1509         Problem reported by mwoehlke in
1510         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.
1512         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Use "test -x /" rather
1513         than creating a file to use with test -x; this is much faster.
1515 2006-10-02  Bruno Haible  <bruno@clisp.org>
1517         * lib/autom4te.in (Automake-preselections): Add
1518         AM_GNU_GETTEXT_INTL_SUBDIR, for automake 1.10.
1520 2006-09-27  Stepan Kasal  <kasal@ucw.cz>
1522         * doc/autoconf.texi (Writing testsuite.at): Fix a typo: for
1523         standard error, `experr' should be used, not `expout'.
1525 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1527         * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Don't compile the
1528         fseeko testing program twice; just use the earlier result.
1529         * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
1530         Set cache var to 'unknown' (not 'no') if leaving the macro unset
1531         still doesn't let the program compile.
1532         (AC_SYS_LARGEFILE): Test for _LARGE_FILES only if earlier tests
1533         failed.
1535         * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
1536         (AC_FUNC_ERROR_AT_LINE): Don't bother to check for error.h.  Just
1537         include it, without including anything else.
1538         (AC_FUNC_FSEEKO): Avoid gcc -Wall warnings about constant
1539         expressions.
1540         (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.
1542 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1544         * lib/autoconf/functions.m4 (AC_FUNC_ERROR_AT_LINE): Check for
1545         `error.h', and include it, for a `error_at_line' prototype.
1546         Use a nonempty format string in the link test.
1547         * lib/autoconf/functions.m4 (AC_FUNC_WAIT3): Include <sys/wait.h>,
1548         for a declaration of wait3.
1550 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1552         * NEWS: AC_CHECK_DECL now also works with aggregate objects.
1553         * doc/autoconf.texi (Generic Declarations): Clarify that AC_CHECK_DECL
1554         can apply to constants too, and that it checks for macro defns.
1555         * lib/autoconf/general.m4 (AC_CHECK_DECL): Assume C89 or better,
1556         and simply cast the identifier to void.  This handles structure
1557         values.  Problem reported by Ralf Wildenhues.
1558         * tests/semantics.at (AC_CHECK_DECLS): Also check enums.
1560 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1562         * tests/semantics.at (AC_CHECK_DECLS): Also check macros,
1563         structure, and function symbols.
1565 2006-09-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1567         * tests/semantics.at (AC_CHECK_MEMBERS): Also test with a struct
1568         member.
1570 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1572         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
1573         * README: Likewise.
1574         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
1576 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1577         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1579         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
1580         warnings (uninitialized value).
1581         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
1582         present.
1583         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
1584         parentheses.
1585         (AC_STRUCT_TM): Likewise, avoid unused variables.
1587 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1589         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
1590         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
1591         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
1592         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
1593         Report by Olly Betts.
1595 2006-09-19  Eric Blake  <ebb9@byu.net>
1597         * m4/m4.m4: Change copyright.
1598         * configure: Regenerate.
1599         * Makefile.in: Likewise.
1600         * bin/Makefile.in: Likewise.
1601         * doc/Makefile.in: Likewise.
1602         * lib/Makefile.in: Likewise.
1603         * lib/Autom4te/Makefile.in: Likewise.
1604         * lib/autoconf/Makefile.in: Likewise.
1605         * lib/autoscan/Makefile.in: Likewise.
1606         * lib/autotest/Makefile.in: Likewise.
1607         * lib/emacs/Makefile.in: Likewise.
1608         * lib/m4sugar/Makefile.in: Likewise.
1609         * man/Makefile.in: Likewise.
1610         * tests/Makefile.in: Likewise.
1612         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
1613         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
1614         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
1615         --error-output, to avoid warnings with M4 2.0.
1617 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
1619         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
1620           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
1621         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
1623 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
1625         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
1626         expansion of AC_CHECK_FUNCS.
1628 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
1630         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
1631         mistaken comment: the path has to be relative; do not use
1632         the path at runtime.
1634 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1636         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
1637         argument to `--prefix' for sub-configure scripts.
1638         Pass `--silent' to sub-configure scripts.
1639         * tests/torture.at (Configuring subdirectories): Add tests
1640         for both changes.
1641         * doc/autoconf.texi (Setting Output Variables): Fix example to
1642         not show `--silent' being passed to a `configure' re-run.
1644 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1646         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
1647         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
1648         for the existence of the directory at configure-time.  That's
1649         too late, anyway.  Problem reported by Stefan Seefeld.
1651         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
1652         7.1.4 /usr/bin/posix/sh described by Tim Rice in
1653         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
1655 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
1657         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
1658         works with GNU M4 1.4.3 again; make the normalized form
1659         match the current m4 message; fix the description.
1660         * test/tools.at (autom4te cache): Adapt to the change.
1662 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
1664         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
1665         to catch glibc bug 2821
1666         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1668         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
1669         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
1670         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
1671         assume C89.
1673 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
1675         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
1676         preselections ...
1677         (Autoconf): ... here.
1678         (Autoscan-preselections): Delete.
1680 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
1682         * lib/autom4te.in (Automake-preselections): Preselect
1683         AM_ENABLE_MULTILIB.
1685 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1687         * doc/autoconf.texi (Preset Output Variables): srcdir and
1688         top_srcdir are not necessarily relative.  Problem reported
1689         by Dries Kimpe.
1691 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1693         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
1694         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
1695         accept files with extension `.f'.  For consistency, also prefer
1696         xlf over f77.
1697         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
1698         from last patch.
1700 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
1702         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
1703         of ERLANG_LIB_VER_* variables.
1704         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
1705         variables.
1707 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1708         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1710         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
1711         bugs of Bash 2.01 and 2.05a.
1712         (Fortran Compiler): Document that AC_PROG_CC should be called
1713         before AC_PROG_FC, due to a bug in Autoconf.
1715 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1717         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
1718         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
1719         except the first two arguments are reversed.
1720         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
1721         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
1722         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
1723         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
1724         equivalent to the old AC_COMPUTE_INT.
1725         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
1726         All uses changed to AC_CACHE_CHECK_INT.
1727         * tests/base.at (AC_CACHE_CHECK_INT): New test.
1728         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
1730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1732         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
1733         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
1734         programs should use their Gnulib counterparts.
1735         * doc/autoconf.texi (Particular Functions): Likewise.
1736         (Macro Names, testsuite Invocation): Replace uses of these
1737         obsolete macros with uses of non-obsolete macros.
1739 2006-08-29  Eric Blake  <ebb9@byu.net>
1741         * configure.ac (AC_INIT): Bump to 2.60b.
1742         * NEWS: Update.
1744 2006-08-28  Eric Blake  <ebb9@byu.net>
1746         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
1747         mistakenly swapped on 2006-08-15.
1749 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1751         * NEWS: Version 2.60a.
1753 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
1755         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
1756         file created by the PGI compiler.
1758 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
1760         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
1761         simplify the code.
1763 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1765         Fix Lex library problem reported to us by Julio Garvia.
1766         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
1767         for the default, which the user can override.
1768         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
1769         deal with LEXLIB.
1770         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
1771         didn't work if some values were cached but not others.  Test for
1772         broken lex libraries like native ia64-hp-hpux11.22; see
1773         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
1774         work around the problem by preferring an empty LEXLIB to -lfl or
1775         -ll.  Let the user set LEXLIB='' to indicate no library needed.
1777         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
1778         * README: Likewise.
1779         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
1781 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1783         Rework to use more-modern build style.
1784         Many files are renamed; all uses of their names were changed.
1785         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
1786         * .x-sc_useless_cpp_parens: New file.
1787         * build-aux/config.guess: Renamed from config/config.guess.  Update.
1788         * build-aux/config.sub: Renamed from config/config.sub.  Update.
1789         * build-aux/elisp-comp: Renamed from config/elisp-comp.
1790         * build-aux/install-sh: Renamed from config/install-sh.  Update.
1791         * build-aux/mdate-sh: Renamed from config/mdate-sh.
1792         * build-aux/missing: Renamed from config/missing.
1793         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
1794         * build-aux/vc-list-files: Renamed from config/vc-list-files.
1795         * config/Makefile.am: Removed.
1796         * config/mkinstalldirs: Removed.
1797         * config/move-if-change: Removed.
1798         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
1799         * Makefile.am (SUBDIRS): Remove config.
1800         (ACLOCAL_AMFLAGS): Include from m4, not config.
1801         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
1802         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
1803         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
1804         Fail if there's an error.
1805         * Makefile.cfg (move_if_change): Remove.
1806         (wget_files): Remove.
1807         (cvs_executable_files): New macro.
1808         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
1809         (executable-update): Use $(cvs_executable_files).
1810         (local-checks-to-skip): Remove.
1811         * Makefile.maint: Merge from coreutils, plus add our own changes
1812         (gzip_rsyncable): New macro.
1813         (GZIP_ENV): Use it.
1814         (CVS_LIST): Use build-aux/vc-list-files.
1815         (VERSION_REGEXP): New macro.
1816         (local-checks-available): Add patch-check, $(syntax-check-rules),
1817         check-AUTHORS.
1818         (syntax-check-rules): Compute dynamically.
1819         (sc_cast_of_x_alloc_return_value): Work even if no source files.
1820         (sc_cast_of_alloca_return_value): Likewise.
1821         (sc_prohibit_atoi_atof): Simplify regexp.
1822         (sc_no_if_have_config_h, sc_require_config_h):
1823         (sc_prohibit_assert_without_use,
1824         (sc_obsolete_symbols): Check for O_NDELAY.
1825         (sc_texi_notab): Remove.
1826         (sc-changelog): Don't make an exception for '----' lines.
1827         (.re-list): Remove, so we don't have a junk file behind.
1828         (sc_system_h_headers): Remove the need for .re-list.
1829         (sc_the_the):  New rule.
1830         (sc_tight_scope): Simplify.
1831         (sc_trailing_blank): Renamed from sc_trailing_space.
1832         (longopt_re): New macro.
1833         (sc_two_space_separator_in_usage): New rule.
1834         (sc_unmarked_diagnostics): Look at all files under CVS.
1835         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
1836         (news-date-check, changelog-check): Version is OK.
1837         (po-check): Look for lib files even if not in CVS.
1838         (copyright-check): Use $() not ``.
1839         (maintainer-distcheck): Do not depend on changelog-check.
1840         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
1841         Also check for -Wpointer-arith.
1842         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
1843         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
1844         Remove.
1845         (announcement): Add --gpg-key-id arg.
1846         (cvs-sv): Remove.
1847         (move_if_change): Just use mv.
1848         (local_updates: Remove wget-update, po-update.
1849         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
1850         (config.guess-url_prefix, config.sub-url_prefix): Remove.
1851         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
1852         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
1853         ($(get-targets)): Remove.
1854         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
1855         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
1856         (cvs-update): Get from gnulib.
1857         (emut_upload_commands): gnupload is in build-aux now.
1858         (alpha beta major): Add changelog-check.  Check version.
1859         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
1860         (AC_CONFIG_FILES): Remove.
1861         * bin/autoconf.as: Add spaces to avoid distcheck warning.
1862         * config/announce-gen: Sync from coreutils.
1863         * doc/make-stds.texi: Sync from gnulib.
1864         * doc/standards.texi: Likewise.
1865         * man/Makefile.am: Adjust for config -> build-aux renaming.
1866         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
1867         * tests/local.at: Adjust from config -> build-aux renaming.
1868         * tests/tools.at: Likewise.
1869         * tests/torture.at: Likewise.
1871         * NEWS: The C99 check now tests for vararg macros and 64-bit
1872         preprocessor ints.
1873         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
1874         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
1875         64-bit preprocessor ints.  Check for static initialization of
1876         long long.  Remove unnecessary casts.
1878 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1880         * doc/autoconf.texi (Particular Programs): Mention that
1881         @INSTALL@ and @MKDIR_P@ may vary for different output files.
1882         Reported by Alexandre Duret-Lutz.
1884 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1886         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
1887         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
1888         Bill Northcott in
1889         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
1891 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1893         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
1894         pacify insanely picky compilers.  Problem reported by Eric Blake.
1896         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
1897         longer supported by Sun.
1899 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1901         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
1902         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
1903         -Wundef -Werror".  Problem reported by David Fang in
1904         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
1905         * doc/autoconf.texi (Header Templates, Default Includes):
1906         (Particular Functions, Generic Functions, Header Portability):
1907         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
1908         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
1909         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
1910         Prefer #ifdef to #if.
1911         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
1912         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
1913         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
1914         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
1915         Likewise.
1916         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
1917         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
1918         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
1919         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
1920         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
1921         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
1922         this.
1924 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1926         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
1927         problems with arg script text that doesn't end in newline, and
1928         with '-e a...'.  Problems reported by Ralf Wildenhues.
1930 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
1932         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
1933         check for libXt by a check for libX11.
1935 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1937         * doc/autoconf.texi (config.status Invocation): Adjust according
1938         to last change.
1940 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1942         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
1943         --help' should mention that `--version' outputs configuration
1944         settings.  Report by Bruno Haible.
1946 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1948         Fix test suite failures reported by Pierre in
1949         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
1950         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
1951         the compiler created a file "b.out" when it didn't create anything
1952         at all.
1953         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
1954         Discard stderr too, when invoking the test script.
1956 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
1958         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
1959         in the restoring of the werror flag.
1961 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1963         * doc/autoconf.texi (Volatile Objects): Be even a little
1964         less skeptical about "volatile", after discussion with
1965         Bruno Haible on bug-gnulib.
1966         (Limitations of Usual Tools): Warn about sed stripping
1967         leading white space from text.  From Bruno Haible.
1969 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1971         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
1972         compiler complains about it, even if things works after the
1973         complaint.  Problem reported by Peter O'Gorman.
1975         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
1976         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
1977         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
1979 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
1981         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
1982         after -R regardless of host.  Patrick Welche reports that this
1983         fixes things on NetBSD 3.99.
1985         * NEWS: Recommend M4 1.4.5.
1986         * README: Likewise.
1987         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
1988         * tests/tools.at (autom4te cache): Update wording of diagnostic
1989         to match M4 1.4.5.
1991 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1993         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
1994         under AC_C_VOLATILE.
1995         (Volatile Objects): Be a little less skeptical about what
1996         "volatile" means.  Derived from thoughts by Ben Pfaff in
1997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
1999 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2001         * doc/autoconf.texi: Fix some typos.
2003 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2005         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
2006         more globally, since the 2006-06-30 patch didn't suffice.  Problem
2007         reported by Keith Marshall.  Also, don't bother with builddir2,
2008         since it shouldn't be needed any more.
2010 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
2012         * doc/autoconf.texi (Generic compiler characteristics):
2013         Document AC_COMPUTE_INT.  Fix wrong statements on Default
2014         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
2016         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
2017         (_AC_COMPUTE_INT): Add obsoletion warnings.
2018         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
2019         AC_COMPUTE_INT.
2021         * NEWS: Document change.
2023 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2025         * doc/autoconf.texi (Volatile Objects): New section.
2027         * NEWS: Document previous change.
2029 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2031         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
2032         Require that long long int be at least 64 bits wide.  C99 requires
2033         this and enough programs depend on it so we should check for it.
2034         Bruno Haible reports in
2035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
2036         that long long int is 32 bits wide with some nonstandard compilers.
2037         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
2039 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2041         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
2042         to a nonexistent file, so that we don't have to worry about
2043         a local site configuration that doesn't use /usr/local.
2044         Problem reported by Keith Marshall in
2045         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
2047 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2049         * doc/autoconf.texi: Be more consistent about using @acronym with
2050         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
2051         quite right (it talked about "OSF/Tru64", even though the
2052         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
2053         and it even mentioned "OSF 4"!) and at this point there's little
2054         reason to talk about OSF any more, since it died in 1994.
2055         (Specific Compiler Characteristics): Simplify example of
2056         negative-size array.
2057         (File Descriptors): Reorder to make the text flow better.
2058         Remove joke about "appreciate the various levels"; I didn't get it.
2059         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
2060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
2061         (File Descriptors, Limitations of Usual Tools):
2062         Tone down the advice against renaming or removing open files.
2063         (Limitations of Usual Tools): Add a new section, on 'rm'.
2065 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
2067         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
2068         -lXt in LIBS, idea from Karsten Hopp; this was due since
2069         this change:
2071         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2072         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
2073         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
2074         (which belong to Xt, not X itself).  See Debian bug 327655.
2076 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2078         * configure.ac (AC_INIT): Bump to 2.60a.
2079         * NEWS: Update.
2081 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2083         Version 2.60.
2085         * configure.ac, NEWS: Update.
2087 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2089         * config/texinfo.tex: Sync from upstream.
2091         * bin/autom4te.in (handle_traces): Transform the `@S|@'
2092         quadrigraph correctly in traces.
2094         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
2095         Fix typos.
2097         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
2098         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
2099         not defined.
2100         * doc/autoconf.texi (Changed Directory Variables): New node,
2101         to document the whole `datarootdir' business a bit better.
2102         * NEWS: Update.
2103         * tests/torture.at (datarootdir workaround): Extend test.
2104         Prompted by report by Alexandre Julliard.
2106 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2108         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
2109         when using default mode of IBM C 6 for AIX.  Problem and two-line
2110         fix reported by Larry Jones.
2112 2006-06-22  Alexandre Julliard <julliard@winehq.org>
2114         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
2115         about literal '${datarootdir}' if a definition is found in the
2116         output file.
2118 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2120         * NEWS: Use "M4" rather than "m4" when appropriate.
2121         Problem reported by Eric Blake.
2122         * doc/autoconf.texi: Likewise.
2123         Use @acronym around BSD, GCC, and GNU when appropriate.
2124         (Why GNU M4): Renamed from "Why GNU m4".
2125         (Redefined M4 Macros): Mention that Posix
2126         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
2127         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
2128         to int.
2130 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2132         * bin/autom4te.in (handle_output): Do not forbid the empty
2133         pattern.
2134         * tests/tools.at (autoconf: the empty token): New test.
2136 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
2138         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
2139         calls, so that we do not care whether they are LIFO or FIFO;
2140         in the m4_wrap, do not check which diversion is the topmost
2141         one, just check that the stack is balanced at the end.
2142         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
2143         base diversion forever--pop the previous diversion before
2144         opening the new one; consequently, remove the m4_wrap call.
2145         * lib/autotest/general.m4 (AT_INIT): Likewise.
2146         * tests/m4sugar.at: Do not use
2147         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
2149 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
2150         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2152         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
2153         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
2154         Rework example of m4wrap token-pasting trouble so that it doesn't
2155         care whether it's LIFO or FIFO.
2156         Fix some "contrary to"s that are awkward in English.
2158 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2160         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
2161         to `yes' instead of `int$1_t' if the type is found, for more
2162         consistent configure output (where $1 is the number of bits).
2163         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
2164         Suggested by Bruno Haible.
2166         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
2167         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
2168         with system headers.  Report by Bruno Haible.
2170 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2172         * config/config.guess, config/config.sub: Sync from upstream.
2174         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
2175         in order to avoid picking up an older installed frozen m4sh.m4f.
2176         Besides an outdated shell startup, this could have been created
2177         by an earlier M4 version with incompatible frozen file format.
2179 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2181         * README: Recommend m4 1.4.4 instead of 1.4.3..
2182         * doc/autoconf.texi: Likewise.
2183         (Special Chars in Names): Say that $(.FOO) is portable, as
2184         suggested by Stepan Kasal.
2185         (Installation Directory Variables, Build Directories):
2186         (Automatic Remaking, Subdirectories, Fortran Compiler):
2187         (Making testsuite Scripts, Defining Directories):
2188         Quote variable usages better.
2189         (Making testsuite Scripts): Add clean-local rule to makefile
2190         snippet, by Eric Blake.
2191         (Installation Directory Variables): Fix table item font.
2192         Reword slightly to clarify.  Generalize advice about
2193         not using special characters to include all file-related
2194         vars, not just VPATH.
2195         (Special Chars in Variables): Warn about special characters in
2196         $(srcdir) too.
2197         (Assignments): Clarify default-value example as suggested by
2198         Ralf Wildenhues in
2199         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
2200         (Special Shell Variables): Note leading ./ or ../, as suggested
2201         by Eric Blake.
2202         (Limitations of Builtins): Under cd, warn about CDPATH.
2203         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
2204         Ralf Wildenhues.
2206 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2208         * doc/autoconf.texi (Configuration Actions): Remove duplicate
2209         `@var', for texi2html.
2210         (Systemology): Some more word wrapping, for DVI output.
2211         (autom4te Invocation): The short option for `--melt' is `-M',
2212         not `-m'.
2214 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2216         * doc/autoconf.texi: More formatting and English tweaks,
2217         many suggested by Ralf Wildenhues.
2218         Reword to avoid "@code{...}'s" and the like, since it's ugly
2219         with Emacs info mode.  discontents -> woes.
2220         Put a few "will"s back.  time stamp -> timestamp.
2221         side-effect -> side effect.
2223 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2225         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
2226         Warn about $@ not persisting.  Problem reported by Julien Danjou in
2227         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
2228         (Special Chars in Names): Renamed from Leading _ in Macro Names.
2229         Mention other special chars, too.
2231 2006-06-14  Eric Blake  <ebb9@byu.net>
2233         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
2235 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2237         * doc/autoconf.texi: Some systematic minor improvements, as
2238         follows.  Use "makefile" when talking about makefiles
2239         generally (which might be named "makefile" or "Makefile" or even
2240         "foo.mk"), "Makefile" when talking about a specific makefile
2241         called "Makefile".  This unclutters the text from weird quotes
2242         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
2243         values" rather than "@var{foo}s" and similar constructs containing
2244         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
2245         English-language improvements.  Change the prefix "sub-" to "sub"
2246         and "re-" to "re".
2247         Put blank lines around examples more consistently.
2248         Avoid "rather" and "very" as intensifiers.
2249         Avoid "will" as an auxiliary.
2250         (Limitations of Make): Split this node into....
2251         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
2252         (Leading _ in Macro Names, Backslash-Newline-Newline):
2253         (Backslash-Newline Comments, Long Lines in Makefiles):
2254         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
2255         (obj/ and Make, make -k Status, VPATH and Make):
2256         (VPATH and Double-colon, $< in Explicit Rules):
2257         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
2258         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
2259         New nodes, resulting from splitup of Limitations of Make.
2260         All cross-references changed.  Raise the top node from
2261         a section to a chapter, and all subnodes accordingly.
2262         Redo the introductory wording to match the new organization.
2263         (Installation Directory Variables): Use an example that is
2264         closer to what Autoconf actually does.  Mention that VPATH's
2265         value should not contain metacharacters or white space.
2266         (Fortran Compiler): Fix a VPATH bug in an example.
2267         (Leading _ in Macro Names): Mention that this problem is no longer
2268         of practical concern.
2269         (VPATH and Make): Reword the advice to make it clearer
2270         that Autoconf and Automake support VPATH in non-GNU make, but
2271         many packages have bugs in this area.
2272         ($< in Explicit Rules): Refer to Build Directories rather
2273         than using a (non-VPATH-safe) example.
2274         (Automatic Rule Rewriting): Mention the sort of disaster that
2275         can ensue with Solaris-style rule rewriting with VPATH.
2277 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2279         * doc/install.texi (Compilers and Options): Weaken the
2280         suggestion to use GNU make for VPATH builds.
2282         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
2283         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
2285         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
2286         in regular expression.
2288 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2290         * doc/autoconf.texi (Installation Directory Variables):
2291         Drop extra @samp from `@table @samp' item.
2292         (Limitations of Usual Tools): Comment fix.
2293         Do not nest @samp just to point to other table items.
2294         (Writing testsuite.at) <AT_CHECK>: The second argument to
2295         `@dvar' is already @samp'ed.
2296         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
2297         do not use @var in the second argument.
2299 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2301         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
2302         $as_shell.exe too.  Problem reported by Andreas Buening in
2303         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
2305 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2307         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
2308         `unused variable' compiler warning, for `-Wall -Werror'.
2309         Reported by Jaap Haitsma in
2310         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
2312 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
2314         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
2315         case the compiler dumps core.  Problem reported for
2316         OpenServer 5.0.7 by Tim Rice in
2317         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
2318         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
2319         Likewise.
2321 2006-06-06  Tim Rice <tim@multitalents.net>.
2323         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
2324         "ERROR" only shows up in "make check" output if there is an
2325         error.
2327 2006-06-06  Eric Blake  <ebb9@byu.net>
2329         * tests/tools.at (automatically allowed tokens): Fix typo.
2331 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
2333         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
2335         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
2336         typically overflows on x86 CPUs, even though the C standard
2337         requires otherwise.
2339 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2341         * configure.ac (AC_INIT): Bump to 2.59e.
2342         * NEWS: Update.
2344 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2346         Version 2.59d.
2348         * config/texinfo.tex: Sync from upstream.
2350         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
2351         seen, invoke libtoolize with `--ltdl' argument.
2352         * lib/autom4te.in (Autoreconf-preselections): Adjust.
2353         * NEWS: Update.
2354         Suggested by Eric Blake.
2356 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
2358         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
2359         reported by Ralf Wildenhues.
2360         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
2362 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2364         * THANKS: Update.
2366 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
2368         * doc/autoconf.texi: Modernize some of the references to Solaris.
2370 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
2372         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
2373         message issued by AC_REQUIRE.
2374         * tests/m4sugar.at: Check m4_require's error message.
2375         * tests/base.at: Check AC_REQUIRE's error message.
2376         * tests/local.at (AT_CHECK_M4): New macro, almost identical
2377         to...
2378         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
2379         AT_CHECK_M4.
2380         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
2381         `expout' as the last parameter.
2382         * tests/tools.at: Adapt to the above change.
2384 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
2386         * doc/autoconf.texi (Limitations of Usual Tools): Correct
2387         information about race-free implementations of mkdir.
2389 2006-06-04  Eric Blake  <ebb9@byu.net>
2391         * bin/autoreconf.in (help): Document M4 environment variable.
2392         * bin/autoconf.as (Usage): Likewise.
2393         * bin/autom4te.in (help): Likewise.
2394         * doc/autoconf.texi (autom4te Invocation): Likewise.
2396 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
2398         * NEWS: GNU make now recommended for VPATH builds.
2399         Mention that some macros are now documented to be obsolescent.
2400         * doc/autoconf.texi:
2401         Prefer "current" to "modern" to describe
2402         currently-used (albeit perhaps old-fashioned) hosts.
2403         Mention which ancient features no longer need to be worried about.
2404         setgid -> set-group-ID
2405         setuid -> set-user-ID (these are the Posix terms)
2406         Fix some misuses of "only".
2407         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
2408         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
2409         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
2410         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
2411         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
2412         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
2413         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
2414         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
2415         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
2416         Mention that these macros are obsolescent.
2417         (Installation Directory Variables): shall -> should
2418         (File Descriptors): Mention that 0, 1, 2 might get reopened.
2419         Mention that it's now safe to use 3 and 4.
2420         (Limitations of Usual Tools): cp -r is now specified by Posix.
2421         Omit longwinded and obsolescent discussion of cp -f.
2422         Modernize discussion of expr, ls.
2423         (Limitations of Make): Modernize discussion of VPATH builds.
2424         Mention $? as a workaround in some cases.
2425         * doc/install.texi (Basic Installation):
2426         Mention "./configure; make; make install" first.  Be more
2427         specific about why this file is generic.  Remove unnecessary
2428         parens.  Remove misleading "only".  Remove obsolete advice
2429         about csh.  Don't say "configure" takes awhile; say it
2430         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
2431         and CC=c99 rather than CC=c89, as these are blessed by current
2432         Posix.  Recommend GNU make if doing a VPATH build.
2434 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
2436         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
2437         examples involving shell prompts.
2439 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
2440         and Paul Eggert  <eggert@cs.ucla.edu>
2442         * doc/autoconf.texi (Here-Documents): Add details about the
2443         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
2444         use "here-documents" instead of "here documents".
2446 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2448         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
2450 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2452         * doc/autoconf.texi (File System Conventions): Warn about ":"
2453         anywhere in directory names.
2455 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2457         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
2458         about quoting the case statement, just in case.
2459         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
2460         was fixed in ksh93g; reported by Ralf Wildenhues.
2462 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
2464         * doc/autoconf.texi (System Services): Do not document
2465         overriding EXEEXT via ac_cv_exeext=ext.
2466         (Particular Programs) <AC_PROG_MKDIR_P>:
2467         Document that ${MKDIR_P} understands --.
2468         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
2469         comment.
2471 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2473         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
2474         argument with leading hyphen.  Problem reported by Paul Eggert.
2476 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
2478         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
2479         about quoting ac_try: quote all of it, if any of it seems suspicious.
2480         This means we don't have to worry about ${ or sed any more.
2481         Also, double-quote the case statement, to work around misuses via
2482         underquoting as reported by Ralf Wildenhues in
2483         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
2484         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
2485         undocumented and dangerous macro.
2486         Problem reported by Ralf Wildenhues in
2487         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
2489 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2491         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
2492         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
2493         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
2495 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
2497         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
2498         since evidently some packages rely on the old, broken behavior.
2499         Problem reported by Ralf Wildenhues in
2500         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
2501         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
2502         pre-2006-05-26 definitions, but leave in the comments that
2503         these macros are dangerous and should not be used.
2504         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
2505         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
2506         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
2507         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
2508         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
2510 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2512         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
2513         the use of 'tr', since this is our only use of 'tr'.
2515 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2516         and Paul Eggert  <eggert@cs.ucla.edu>
2518         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
2519         Don't assume 'grep' works on long lines, since AIX grep doesn't.
2521 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2523         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
2524         the output file in the `${datarootdir}' test.
2526 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
2527         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2529         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
2530         mention of `datarootdir' in the input file(s), but literal
2531         `${datarootdir}' in the output file, and we haven't warned yet,
2532         then warn as well: the user may have (erroneously) used
2533         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
2534         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
2535         * tests/torture.at (datarootdir workaround): Extend this test.
2536         * NEWS: Update.
2538 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2539         and Paul Eggert  <eggert@cs.ucla.edu>
2541         * doc/autoconf.texi (autoheader Invocation): The first argument to
2542         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
2543         alternatives and clear up the language a bit.
2545 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2547         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
2548         ac_config_guess, ac_config_sub, ac_configure.
2549         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
2550         Fix typo that prevented an unnecessary space from being removed.
2551         Problems reported by Ralf Wildenhues in:
2552         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
2554 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2556         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
2557         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
2558         Don't use the term "thread-safe" to talk about mkdir race
2559         conditions, since the problem is more a process than a thread
2560         issue.  Problem reported by Stepan Kasal in:
2561         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
2562         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
2563         the test for 'install' more closely.  Look at MKDIR_P first.
2564         Look in the PATH, and at /opt/sfw/bin.
2565         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
2566         Don't bother to try mkdir -p, since we already check mkdir --version;
2567         just look at the version number.  (There's no easy way to check
2568         for race-free implementations.)
2569         * tests/tools.at (autoconf: subdirectories): Adjust to above
2570         changes, since MKDIR_P now might end in "/mkdir -p".
2572         * doc/autoconf.texi (autoheader Invocation): Mention that the
2573         first arg of AC_DEFINE_UNQUOTED must be a literal.
2574         Problem reported by Ben Pfaff in
2575         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
2577         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
2578         * doc/autoconf.texi (Special Chars in Variables): New section.
2579         (Preset Output Variables): Warn about special chars in CPPFLAGS.
2580         (Installation Directory Variables): Quote $(datadir) better.
2581         (Limitations of Builtins): Describe some of eval's trickiness.
2583         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
2584         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
2585         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
2586         in front of every arg, not just trailing args.  Quote apostrophes.
2587         (_AC_EVAL_ECHO): New macro.
2588         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
2589         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
2590         removed.
2591         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
2592         exposed by quoting of eval argument.  Put the command on line line
2593         so it logs better.
2594         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
2595         (_AC_PATH_X, AC_PATH_X): Quote more safely.
2596         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
2597         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
2598         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
2599         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
2600         Use eval more safely.
2601         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
2602         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
2603         to be replaced.
2604         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
2605         lines, exposed by quoting of eval argument.
2607 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
2608         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2610         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
2611         initialization of `ac_cv_exeext', do not override it if it was
2612         already set, unless it was set to `no', for compatibility with
2613         Autoconf-2.13, and comment this.
2614         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
2615         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
2616         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
2617         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
2618         Document that this test may be overridden by setting
2619         `ac_cv_exeext'.
2621 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2623         Revert these two patches:
2625         2006-04-06  Eric Blake  <ebb9@byu.net>
2626         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
2627         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
2628         2006-04-01.
2630         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
2631         Clean up _AC_COMPILER_EXEEXT* macros.
2632         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
2633           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
2634           ac_file to the name of the default output file and call
2635           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
2636           initial `rm' of the candidate files...
2637         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
2638           the same list in subsequent `rm' calls, and for the temporary
2639           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
2640           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
2641         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
2642         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
2643           no longer needed) by libtool.  Make it a cache check.
2644         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
2645           copied here by mistake.
2646         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
2647           _AC_COMPILER_EXEEXT.
2648         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
2649           _AC_COMPILER_OBJEXT directly.
2650         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2652 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2654         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
2655         Fix description of how the buggy `sed' works.
2657 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
2659         Sync from Automake:
2661         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
2662         ENOLCK.  Only mention `make -j' when applicable.  Only raise
2663         fatal errors when `make -j' is involved.  Improve error message.
2665 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2667         * doc/autoconf.texi (Here-Documents): We now know more about
2668         the variable expansion in here documents bug.
2669         Thanks to Tim Rice and Stepan Kasal.
2671         * doc/autoconf.texi (Making testsuite Scripts): Add an example
2672         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
2674 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2676         * tests/autotest.at (Multiline command from M4 expansion):
2677         No failure to be expected if the shell quotes newlines in
2678         commands in the `set -x' output.  Report by Tim Rice.
2679         * THANKS: Update.
2681 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2683         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
2684         expansion in the here-documents used by config.status, as that
2685         runs afoul of the Korn shell version M-12/28/93d bug described in
2686         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
2687         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
2688         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
2690 2006-05-23  Jim Meyering  <jim@meyering.net>
2692         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
2693         Fix typo introduced with 2006-04-02 change.  It reversed the sense
2694         of the test.
2696 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2698         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
2699         ac_dB slightly, to save bytes in the script.
2700         Max out at 50 lines, rather than 96; this is more likely
2701         (though not guaranteed) to avoid obscure 'sed' failures.
2703 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2705         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
2706         `tr -d -' as bad option argument.  Work around this by deleting
2707         an unrelated character.
2708         Report by Tim Rice <tim@multitalents.net>.
2710 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
2711             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
2712             Stepan Kasal  <kasal@ucw.cz>
2714         * doc/autoconf.texi (Particular Programs): Do not promise that
2715         we always prefer the GNU version of the program, and that we
2716         search according to PATH; both rules can have exceptions.
2717         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
2718         AC_PROG_SED.  Move descriptions of limitations
2719         to the Limitations of Usual Tools section.
2720         (Limitations of Usual Tools) <sed>: Mention script length
2721         limitations with Solaris /usr/ucb/sed.
2722         <grep>: Fix wording for empty alternative.  Mention that -c and
2723         -l should not be combined, and that -E and -F should not be
2724         combined.
2726 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2727         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2729         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
2730         limits in Solaris 8 /usr/ucb/sed by testing a long script.
2732 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
2734         * doc/autoconf.texi (Defining Symbols): Literal parameter of
2735         AC_DEFINE is now passed to m4_pattern_allow.
2736         * NEWS: Mention that; likewise for AC_SUBST.
2737         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
2738         the parameter to m4_pattern_allow.
2739         * tests/tools.at: Add a check for that.
2741 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
2743         * lib/autoconf/status.m4: Fix typos.
2745 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2747         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
2748         only the files that this macro generates.
2750 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2752         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
2753         the HP-UX sed limitation of 99 commands, labels do not count.
2754         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
2755         in the comment.
2756         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
2758 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2760         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
2761         Import the following fix from coreutils:
2763         2006-01-13  Jim Meyering  <jim@meyering.net>
2765         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
2766         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
2767         not double-quote uses of that variable, to accommodate the rare
2768         case in which getmntent is available in none of the libraries
2769         checked.  This happens at least on FreeBSD 5.0.
2771 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2773         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
2774         ac_config_guess, ac_config_sub, and ac_configure, since evidently
2775         some other programs unwisely rely on these undocumented vars.
2776         But put in warning comments about them.
2777         Problem reported by Ralf Wildenhues in
2778         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
2779         * NEWS: Document that these variables are intended to go away.
2781 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2783         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
2784         and set the language to C++ (analogous to the equivalent Fortran
2785         tests).
2787         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
2788         * doc/autoconf.texi (C++ Compiler): Document it.
2789         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
2790         * NEWS: Update.
2792 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2794         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
2795         that caused config.status to generate 100-command sed scripts; the
2796         portable limit is 99.
2798 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2800         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
2801         variable `ac_d' instead of `d' to avoid infringing namespace.
2802         Report by Ralf Menzel.
2804 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2806         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
2807         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
2808         * tests/tools.at (autoconf: subdirectories): New test, taken from
2809         the corresponding problem report by Ralf Wildenhues in:
2810         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
2812         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
2813         Quote some uses of shell variables if they might suffer unexpected
2814         globbing.  This doesn't fix all instances of quoting problems that
2815         I found, just the easy ones that look safe.
2816         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
2817         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
2818         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
2819         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
2820         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
2821         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
2822         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
2823         Likewise.
2824         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
2825         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
2827 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2829         * bin/autoreconf.in ($help): Reword according to the manual.
2830         Suggested by Olly Betts.
2832 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
2833         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2835         * bin/autoreconf.in: Pass the directory argument to
2836         `require_configure_ac'.  Fix comment.
2837         * tests/torture.at (Configuring subdirectories): Expose this.
2838         Reported by Olly Betts.
2840 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
2843         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
2844         Automake as follows:
2846         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
2847         `$configure_in' instead of `configure.in', to preserve
2848         directory component.
2850 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2852         * config/config.guess, config/config.sub, config/texinfo.tex,
2853         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
2855 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2857         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
2858         test for C99 conformance; (bool) 0.5 is an integer constant
2859         expression, but (bool) -0.5 is not.  Problem reported by Fedor
2860         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
2862 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2864         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
2865         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
2866         Warn about obsolete install-sh files.  Remove stray sentence
2867         fragment and fix cross reference.
2868         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
2869         install -d; this undoes the 2006-05-10 change.
2870         (MKDIR_P): Mark with AN_MAKEVAR.
2871         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
2872         that we don't require $INSTALL to be thread-safe.  Move comments
2873         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
2874         of AC_PROG_INSTALL.  Output a message saying that we're checking
2875         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
2876         MKDIR_P instead of AC_SUBST.
2877         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
2878         Special magic for MKDIR_P, too.
2879         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
2880         a dnl.
2881         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
2883 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2885         Sync from Automake, as follows:
2887         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2888         * config/install-sh: Initialize IFS, so field splitting isn't
2889         turned off later.
2890         * config/mkinstalldirs: Likewise.
2891         * config/missing: Remove superfluous quotes.  Replace all uses of
2892         `[' by `test', for consistency, and for..
2893         * config/missing (sed_minuso, sed_output): New variables.
2894         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
2895         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
2896         Fixes `missing' to detect `--output' for help2man.  Fixes
2897         PR automake/483.  Report by Dennis J. Linse.
2898         (autom4te): Document in `missing --help'.
2900 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2902         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
2903         * config/install-sh: Don't use 'path' to talk about file names,
2904         as per GNU coding standards.  Close a race condition reported by Ralf
2905         Wildenhues and Stepan Kasal.  There is still a race condition
2906         on hosts that predate Posix 1003.1-1992, but we can't help this.
2907         Don't mishandle weird characters like space on pre-Posix hosts.
2908         Invoke mkdir at most once per dir arg on pre-Posix hosts.
2909         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
2910         AC_PROG_MKDIR_P from AS_MKDIR_P.
2911         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
2912         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
2913         earlier editions are not (including Automake 1.8.3).
2914         Do not suggest mkinstalldirs for thread-safety.
2915         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
2916         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
2917         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
2918         presence of special characters and race conditions.
2919         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
2920         in Autoconf's name space.
2922 2006-05-10  Bruno Haible  <bruno@clisp.org>
2923         and Paul Eggert  <eggert@cs.ucla.edu>
2925         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
2926         from Automake with minor changes.
2927         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
2929 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2931         * config/install-sh: Update to Automake CVS version, as follows:
2932         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
2933         * lib/install-sh: Simplify the expr implementation of dirname.
2934         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2935         * lib/install-sh: Handle --, and diagnose unknown options.
2937 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2939         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
2940         `./autom4te' to create `./testsuite', since the `all' target
2941         will ensure its presence, but `installcheck' should not create
2942         the uninstalled wrappers.
2944         * tests/torture.at (Unusual Automake input files): Skip if we
2945         detect automake < 1.8.
2947 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2949         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
2950         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
2951         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
2952         * NEWS: Update.
2954 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2956         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
2957         munge (multiple) white space and other oddities.
2958         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
2959         single quotes in variable assignment.
2960         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
2961         and similar failures by adding multiple spaces, tabs, and other
2962         special characters.
2963         Report and different test suggested by Francesco Romani
2964         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
2966         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
2967         single quotes, we only need to search for single quotes; this
2968         both simplifies the search pattern, and makes us less
2969         susceptible to `echo' variations for arguments not containing
2970         single quotes.
2971         (_AC_ARG_VAR_VALIDATE): Likewise.
2973 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2975         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
2976         `$*' and IFS concatenation issue with traditional shells and
2977         bash-2.04.  Report by Seanster@Seanster.com.
2979 2006-05-03  Bruno Haible  <bruno@clisp.org>
2981         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
2982         precisely which Mac OS X versions have the od problem.
2984 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2986         * doc/autoconf.texi: Use @option systematically.
2988 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2989         and Bruno Haible  <bruno@clisp.org>
2991         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
2992         about 'od'.
2993         (Integer Overflow): Mention the special case of integer division
2994         overflow.
2996 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2998         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
2999         traditional shells like the Solaris one that do not use the
3000         first IFS character for assembling `$*'.
3001         Prompted by a related report from autoconf_bug@nro.ca.
3003 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3004         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3006         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
3007         Mention more problems with the -e option.
3009 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3011         * NEWS: Typo.
3012         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
3014         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
3015         in URLs to improve DVI formatted output (requires texinfo 4.6).
3016         (System Services, Systemology, Shellology): Likewise.
3017         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
3018         output.
3020         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
3021         continuous text.
3022         (Runtime): Fix macro argument names to match description:
3023         `action-if-found' -> `action-if-true' and similarly.
3024         (Obsolete Macros): Likewise.
3025         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
3026         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
3027         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
3029 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3031         * doc/autoconf.texi (Limitations of Make): Clean up markup.
3033         * ChangeLog: Typo.
3034         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
3035         DVI output.
3037 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3039         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
3040         /bin/sh set unsorted output.
3041         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
3042         * tests/local.at: Likewise.
3044 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3046         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
3047         (Integer Overflow, Null Pointers, Buffer Overruns):
3048         (Floating Point Portability, Exiting Portably): New sections.
3049         (Writing Test Programs): Fix some langauge.  Recommend exiting
3050         with status 1, not merely nonzero.  Clarify exit declaration.
3051         (Run Time): Move C exit status stuff to new Exiting Portably section.
3052         (Systemology): Mention Posix and levenez.  Update v7 reference.
3053         (Portable Shell): Mention the Posix shell.
3055 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
3057         * bin/autoconf.as (me): Replace by as_me.
3059 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3061         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
3062         since as_me isn't set yet.
3064 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3066         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
3067         a few minor bugs in this area.
3069         * doc/autoconf.texi (Programming in M4sh): Comment out the
3070         documentation of AS_BASENAME, for now.
3071         (Shell Substitutions): Do not use AS_DIRNAME in an example.
3072         (Limitations of Builtins) <basename>: Do not refer to
3073         AS_BASENAME.
3074         * bin/autoconf.as (me): Don't use AS_BASENAME.
3075         (dir): Remove the unused variable.
3076         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
3077         AS_DETECT_REQUIRED.  All uses changed.
3078         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
3079         All uses changed.
3080         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
3081         (AS_BASENAME): Use "basename --" to protect against leading "-".
3082         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
3083         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
3084         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
3085         (_AS_DIRNAME_PREPARE): Likewise.
3086         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
3087         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
3088         (AS_DIRNAME): Use "dirname --".
3090 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3092         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
3093         of "run time" and "run-time" changed to "runtime", for consistency.
3094         * lib/autoconf/fortran.m4: Likewise (in comment).
3095         * lib/autoconf/functions.m4: Likewise.
3096         * lib/autoconf/general.m4: Likewise.
3097         * lib/autoconf/headers.m4: Likewise.
3099         * doc/autoconf.texi (Run Time): Document the exit status situation
3100         with more accuracy and detail.
3102 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3104         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
3105         Archive is not officially `GNU' any more.  Update URL.
3106         (Defining Directories): Likewise
3107         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
3109 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3111         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
3112         newline from the `trap' code to finish `config.log'; the NetBSD
3113         /bin/sh resets the exit status after an empty command, as
3114         documented in doc/autoconf.texi.
3115         Reported by Dalibor Topic <robilad@kaffe.org>.
3117 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
3119         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
3120         Suggested by Bruno Haible.
3122 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
3124         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
3125         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
3126         Instead, just list the shells that we know work.
3127         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
3128         changed.  Be more cautious about the _cv_ variable.
3129         * tests/tools.at (Syntax of the shell scripts): Check the
3130         _cv_ variable once, at first, to avoid an internal autoconf error
3131         when sh -n does not work.
3133 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3135         * lib/Autom4te/FileUtils.pm: Sync from Automake.
3137 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
3139         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
3140         use ">&-" since we're only 99.999% sure that this is portable,
3141         and since the MinGW bug is fixed in a different way.
3142         * lib/autotest/general.m4 (AT_INIT): Likewise.
3144 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
3146         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
3147         before opening config.log, to avoid hitting a bug on MinGW.
3149 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
3151         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
3152         AS_MESSAGE_LOG_FD before reopening it onto the log file.
3153         This works around a MinGW bug reported by Eric Paire.
3154         Make sure that all writes to the log file append to it,
3155         rather than possibly losing data.
3156         * lib/autotest/general.m4 (AT_INIT): Likewise.
3158 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
3160         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
3161         description.
3163 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3165         * NEWS: Update.
3167         * configure.ac (AC_INIT): Bump to 2.59d.
3169 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3171         Version 2.59c.
3173         * Makefile.maint (news-date-check): Do not require a leading `*'
3174         before the release date in NEWS.
3176 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
3177         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3179         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
3180         the instantiated file do not contain the string 'datarootdir'
3181         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
3182         @mandir@, replace the reference '${datarootdir}' by the value.
3183         * tests/torture.at (datarootdir workaround): New test.
3184         * NEWS: Advertise this temporary fixup.
3185         Based on a patch by Bruno Haible, reported and analyzed by
3186         Paul Eggert and Noah Misch.
3188 2006-04-12  Eric Blake  <ebb9@byu.net>
3190         * tests/autotest.at (Debugging a failed test): Fix comment.
3192 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
3194         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
3195         all the changes since 2006-04-07.
3197 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3199         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
3200         succeeded, but `ln -s file dir' failed, take care to remove the
3201         leftover target before the next test, to prevent its spurious
3202         failure; also make sure `ln file dir' works before selecting it.
3203         Thanks to Keith Marshall for pointing this out.
3204         * THANKS: Update.
3206         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
3207         assignments in `at_debug_args', so that we put them correctly
3208         in the `run' script.
3209         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
3210         Reported by Eric Blake.
3212 2006-04-11  Eric Blake  <ebb9@byu.net>
3214         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
3215         top-level tests after micro-suite has been run.   Used in...
3216         (Debugging a successful test, Debugging script and environment),
3217         (Debugging a failed test): ...these new tests.  The first of these
3218         is fixed by...
3219         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
3220         macro, split out from...
3221         (AT_INIT): ...here, so that using -d also generates a run script.
3222         Document that -d inhibits top-level logging.
3223         * doc/autoconf.texi (testsuite Invocation): Document that -d only
3224         inhibits top-level logging; debug scripts are created.
3226         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
3227         check.
3228         * tests/autotest.at (Empty test, Empty check): New test to check it.
3230         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
3231         from gcc.
3233 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
3235         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
3236         the files if a problem appears.  Make the empty *.at files
3237         read-only, too.  Proposed by Ralf Wildenhues.
3239 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3241         * config/Makefile.am: Add comment to force updated Makefile.in.
3243         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
3244         space only patch to this file, this patch causes the Makefile.in
3245         files that include freeze.mk to be updated, and thus have a
3246         newer time stamp again, which in turn makes a pristine CVS
3247         checkout have correct time stamps.
3249         * Makefile.maint (cvs-sv): New macro, to be used..
3250         (config.guess-url_prefix, config.sub-url_prefix)
3251         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
3252         point to CVS text checkout of Gnulib files.
3253         (copyright-check): Bump current year.
3254         (announcement): Do not hard-wire `./announce-gen'.
3255         (cvs-update): Propagate failures of `cvs' and `move-if-change'
3256         correctly.
3257         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
3258         `chmod +x'.
3259         (wget_files): Update config.guess, config.sub, texinfo.tex by
3260         `wget-update', now that their URLs work again.
3262 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3264         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
3265         Problem noted by Paul D. Smith.
3267 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3269         * doc/autoconf.texi: Remove unused words from word list.
3270         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
3271         .x-sc_trailing_space: New files.
3273         * doc/standards.texi: Sync from gnulib.
3275         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
3276         `LIBOBJDIR' as experimental.
3278         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
3279         with a target directory; it's internally implemented as `cp'
3280         anyway, but since Autoconf advertises the possibility to use
3281         a target directory when LN_S is `ln -s', we need to find out.
3282         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
3283         analyzed by Keith Marshall <keith.marshall@total.com>.
3285         * THANKS: Update.
3287 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3289         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
3290         confdefs.h as-is.  In general, if it has backslash-newline or the
3291         like, then it doesn't work either to sort or to remove empty
3292         lines.
3294 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
3296         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
3298 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
3300         * lib/autom4te.in (Automake-preselections): Preselect
3301         _AM_SUBST_NOTMAKE.
3303 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3305         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
3306         apostrophe within a single-quoted string, as this is the usual
3307         tradition and is easier to read than '"'"'.  Don't rely on the
3308         shell treating "$/" like '$/'.  Use a more-consistent indenting
3309         style for the trap.
3311 2006-04-09  Eric Blake  <ebb9@byu.net>
3313         * tests/autotest.at (Backquote command substitution),
3314         (Multiline backquote command substitution): Remove mistaken
3315         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
3316         applied...
3317         (Parenthetical command substitution, Multiline parenthetical
3318         command substitution): here.
3320 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3322         Import macros from gnulib (often changing their name).
3324         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
3325         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
3326         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
3327         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
3328         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
3329         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
3330         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
3331         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
3332         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
3333         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
3334         The manual mentions Gnulib more prominently.
3335         * doc/autoconf.texi (Gnulib): New node.
3336         (Pointers): Add Gnulib URL.
3337         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
3338         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
3339         Gnulib section.
3340         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
3341         suggest a #define rather than a typedef for _Bool, and mention
3342         Gnulib rather than trying to substitute stdbool code.
3343         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
3344         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
3345         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
3346         AC_STRUCT_DIRENT_D_TYPE.
3347         (Particular Types): Mention stdint.h and inttypes.h as standard
3348         headers too.
3349         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
3350         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
3351         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
3352         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
3353         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
3354         (C Compiler): Move AC_C_LONG_DOUBLE to ...
3355         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
3356         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
3357         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
3358         (Coding Style).  Don't mention m4_expand_once.
3359         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
3360         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
3361         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
3362         (AC_CHECK_FUNCS): Use it.
3363         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
3364         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
3365         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
3366         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
3367         (AC_HEADER_ASSERT): New macro.
3368         (AC_HEADER_STDBOOL): Don't assume "#error" works.
3369         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
3370         Catch a bug in an HP-UX C compiler.
3371         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
3372         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
3373         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
3374         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
3375         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
3376         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
3377         New macros.
3379         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
3380         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
3382 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
3384         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
3385         of the warning introduced by the 2001-08-28 change.
3387 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
3388             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3390         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
3391         variables shall be overriden by the cache.
3392         * tests/torture.at (AC_ARG_VAR): Test also with a first value
3393         that contains braces.
3395 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
3397         Revert the patch from 2006-04-01 and only improve
3398         _AS_DETECT_BETTER_SHELL:
3400         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
3401         skip nonexistent directories.
3402         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
3403         only shell candidates which exist.
3404         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
3405         * lib/autotest/general.m4 (AT_INIT): No need to give three
3406         parameters to _AS_PATH_WALK.
3408 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
3409             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3411         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
3412         distinguish m4sugar macros.
3413         * tests/tools.at (autoupdating with aclocal and m4_include):
3414         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
3415         test case by Noah Misch <noah@cs.caltech.edu>.
3417 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
3419         Revert my change from 2006-03-17, in other words:
3420         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
3421           and DUALCASE=1.
3422         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
3423         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
3424           it is set.
3426 2006-04-07  Eric Blake  <ebb9@byu.net>
3428         * doc/autoconf.texi (Programming in M4sh): Document that
3429         AS_MKDIR_P exits the script on failure.
3430         * lib/autotest/general.m4: Remove redundant AS_ERROR.
3432 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3434         * config/elisp-comp, config/install-sh, config/mdate-sh,
3435         config/missing, config/mkinstalldirs: Sync from Automake.
3437         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
3438         from Automake.
3440         * doc/make-stds.texi: Sync from gnulib.
3442 2006-04-06  Eric Blake  <ebb9@byu.net>
3444         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
3445         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
3446         2006-04-01.
3448 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
3449             Eric Blake  <ebb9@byu.net>,
3450             Paul Eggert  <eggert@cs.ucla.edu>,
3451             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3453         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
3454         whether `set' quotes correctly: redirect stderr of the tested
3455         `set', and use a subshell, for Ultrix; use `sed' instead of
3456         `grep' for zsh `set' which may write binary output; match only
3457         at the beginning of a line, to avoid false positives.
3458         In order to avoid false positives by unrelated variables with
3459         multiline content, put the dump algorithm in a subshell and
3460         unset all variables containing newlines (except some which are
3461         special to the shell).  Warn about cache variables that are
3462         unset.
3464 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3466         * config/config.guess, config/config.sub, config/texinfo.tex:
3467         Sync from upstream.
3469         * tests/mktests.sh: Reword comments.
3471         * tests/mktests.sh: Only skip internal macros starting with
3472         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
3473         Update exclusion lists for the test suite to this end:
3474         (AC_ARG_VAR): Do test this now.
3475         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
3476         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
3477         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
3478         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
3480         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
3481         shell issue with double-quoted command substitutions of native
3482         commands.
3483         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
3484         Marshall.
3486         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
3487         no file matches the glob, discard the warning, set `nullglob'.
3488         (syntax-check): Likewise.
3489         (sc_cast_of_x_alloc_return_value): Likewise.
3490         (sc_cast_of_alloca_return_value, sc_error_exit_success)
3491         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
3492         (m4-check): Likewise.
3493         (sc_system_h_headers): Do not print rule on execution.
3494         (sc_tight_scope): Do not fail for non-existing `src' directory.
3495         (sc_changelog): Skip the Copyright footer.
3496         * lib/autoconf/lang.m4: Remove trailing space.
3498         * lib/autoconf/status.m4: More replacements to
3499         <tab><space> where this makes sense.
3501 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
3503         * tests/Makefile.am (maintainer-check-posix):
3504           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
3506         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
3507           ac_config_<foo>s again, sometimes normalized, sometimes not.
3508         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
3509         (AC_CONFIG_COMMANDS): Do not do so here.
3510         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
3511           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
3512           2005-07-25 rewrite.  Noticed by Noah Misch.
3514         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
3515           _AC_PRESERVE_HELP_ORDER, ...
3516         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
3518         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
3519           inside m4_expand_once; it is redundant.
3521         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
3522           for --help from Cygnus `configure.'
3524 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3526         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
3527         on a patch proposed by Ralf Wildenhues.
3529 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3531         * lib/autoconf/status.m4: Replace <space>''<tab> with
3532         <tab><space> where this makes sense.
3534 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
3535             Noah Misch  <noah@cs.caltech.edu>
3537         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
3538         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
3539         * doc/autoconf.texi (Help Formatting): New node.
3540         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
3542 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3544         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
3545         lib/autoconf/specific.m4, lib/autoconf/status.m4,
3546         lib/autoconf/types.m4, lib/autotest/general.m4,
3547         tests/mktests.sh, tests/torture.at: White space cleanup:
3548         remove some SPACE before TAB, or add quoting ('' or @&t@).
3550         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
3552         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
3554 2006-04-05  Eric Blake  <ebb9@byu.net>
3556         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
3557         empty test suite works.
3558         * tests/autotest.at (Empty test suite): Remove xfail.
3560 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
3562         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
3563         TAGS to ac_config_<foo>s.
3564         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
3565         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
3566         normalizing it, consistent it with previous releases.
3567         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
3569 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3571         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
3572         Use simplified args that Eric Blake originally suggested.
3574 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3576         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
3577         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
3578         Use 'comm' rather than N instances of grep; this also fixes a bug
3579         whereby substrings were incorrectly matched, causing us to not
3580         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
3581         (exclude_list): Exclude empty macros.
3582         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
3584         Use awk rather than grep -E or egrep, to avoid
3585         portability problems with regular expressions containing newlines.
3586         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
3587         Switch from grep to awk syntax.
3588         (ac_exclude_script): Renamed from ac_exclude_egrep.
3589         (au_exclude_script): Renamed from au_exclude_egrep.
3591 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
3593         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
3594         a subdirectory subject to Cygnus `configure'.
3595         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
3597         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
3598         report request when we have no AC_PACKAGE_BUGREPORT.
3600 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3602         * THANKS: Update.
3604         * tests/mktests.sh: Update copyright year in the header of the
3605         generated files.
3607         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
3608         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
3609         typedef'ed restricted pointer, to catch a compiler bug on
3610         HP-UX 11.x, and fix warnings so it passes with -Werror.
3611         (_AC_PROG_CC_C99): Likewise.
3612         Reported by Albert Chin <china@thewrittenword.com>.
3613         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
3615 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
3617         * bin/autoscan.in (subdirs): New global.
3618         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
3619         (output): Emit AC_CONFIG_SUBDIRS as needed.
3620         * tests/autoscan.at (autoscan): Remove XFAIL.
3622 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
3624         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
3626 2006-04-03  Eric Blake  <ebb9@byu.net>
3628         * THANKS: Add myself.
3630 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3632         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
3633         to log, point to testsuite output tree.
3635 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
3637         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
3638         * doc/autoconf.texi (Function Portability): Mention that C++
3639         has trouble with 'exit'.
3640         (Guidelines): Test programs shouldn't use 'exit'.
3641         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
3642         Remove; all uses removed.
3643         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
3644         Return from 'main' instead of calling 'exit'.
3645         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
3646         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
3647         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
3648         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
3649         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
3650         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
3651         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
3652         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
3653         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
3654         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
3655         * tests/compile.at: Likewise.
3657 2006-04-02  Pavel Roskin  <proski@gnu.org>
3659         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
3661 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
3663         Clean up _AC_COMPILER_EXEEXT* macros.
3665         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
3666           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
3667           ac_file to the name of the default output file and call
3668           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
3669           initial `rm' of the candidate files...
3670         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
3671           the same list in subsequent `rm' calls, and for the temporary
3672           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
3673           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
3674         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
3675         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
3676           no longer needed) by libtool.  Make it a cache check.
3677         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
3678           copied here by mistake.
3679         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
3680           _AC_COMPILER_EXEEXT.
3681         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
3682           _AC_COMPILER_OBJEXT directly.
3683         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3685 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
3687         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
3688         (AS_DIRNAME): Use it.
3689         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
3691         * tests/*.at: Remove the generated ones.
3693 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
3695         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
3697 2006-04-01  Eric Blake  <ebb9@byu.net>
3699         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
3700         directories, unless optional third argument supplied.
3701         (AS_UNAME): Don't optimize PATH walk.
3703         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
3705 2006-04-01  Eric Blake  <ebb9@byu.net>
3706         and Stepan Kasal  <kasal@ucw.cz>
3708         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
3709         and fix some typos.
3711 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
3713         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
3714         Autoconf version number despite a zero- or one-argument AC_INIT.
3716         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
3717         subordinate tools.
3718         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
3719         * doc/autoconf.texi (autoreconf Invocation): Document it.
3721         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
3722         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
3724 2006-04-01  Eric Blake  <ebb9@byu.net>
3726         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
3727         * lib/autotest/general.m4: Be tolerant of existing directory when
3728           rm failed to remove it.
3730 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3732         * bin/autoupdate.in: Redefine m4_location so that warnings print
3733         the correct lines of the input file by subtracting..
3734         (_au__first_line): ..this new definition.
3736         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
3737         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
3738         Remove stray newline in output.
3739         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
3740         AC_DEFUN this for autoconf, including the obsoletion diagnose.
3741         Fixes autoupdating of code where the replacement output contains
3742         m4sugar macros.
3743         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
3744         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
3745          (au_exclude_list): Add AC_LANG_SAVE.
3746         * tests/tools.at: Several new tests for all of this.
3747         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
3748         hairy details.
3749         The AC_LANG_SAVE issue was reported against Libtool by
3750         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
3751         Kristian Kvilekval <kris@cs.ucsb.edu>.
3753 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
3755         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
3756           switch all of them on and of when necessary.  Fixes the bug when
3757           m4sugar macros (e.g., m4_define) were expanded after the first
3758           automatic update (e.g., after AC_PREREQ or AC_INIT).
3760 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
3762         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
3763         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
3765         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
3766         correctly.  Problem reported by Eric Blake.
3767         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
3768         Ralf Wildenhues.
3770 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3772         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
3773         Tighten up the basename/dirname wording.
3775 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3777         * Makefile.maint (sc_texi_notab): New check: do not use TABs
3778         in texinfo files outside of verbatim environments.
3779         (syntax-check-rules): Update.
3780         * doc/autoconf.texi (Configuration Headers): Conform to it.
3782 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
3784         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
3785           aclocal cannot be given on the command line.
3787 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3789         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
3790         Give an example for AS_DIRNAME instead of referring to Posix..
3791         (File System Conventions): Put discussion of // versus / here, and
3792         modernize it a bit.
3793         (Limitations of Usual Tools): Add basename.  Remove verbiage
3794         after dirname, since it got moved to the above sections.
3795         All this was inspired by a patch proposed earlier by Eric Blake.
3797 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3799         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
3800         `$0' to protect against spaces.
3801         * lib/autotest/general.m4 (AT_INIT): Likewise.
3802         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
3803         `$0', $as_me.
3805 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3807         * bin/autoscan.in: The value of find_configure_ac should be
3808         checked for existence, so we don't barf over a nonexisting
3809         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
3811 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3813         * bin/autoupdate.in: Fix some typos.
3815 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
3817         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
3819         * lib/autoscan/autoscan.list: Refreshed.
3821 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3823         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
3824         and Erlang related variables.
3826         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
3827         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
3828         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
3829         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
3830         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
3831         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
3832         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
3833         (_AC_PROG_OBJC_G): New macros.
3834         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
3835         * doc/autoconf.texi (Objective C Compiler): New node.
3836         (Preset Output Variables): Document OBJCFLAGS.
3837         (Language Choice): Document `Objective C' language.
3838         (Fortran Compiler): Fix typo.
3839         * NEWS: Updated.
3840         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
3842 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
3844         * doc/autoconf.texi (Default Includes): Fix typo
3845           s/AC_HEADERS_STDC/AC_HEADER_STDC/
3846         (Limitations of Usual Tools): s/unwriteable/unwritable/
3847         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
3848           Fix typos in the comments.
3850 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
3852         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
3853           Factor out the warning to...
3854         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
3855         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
3856         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
3858         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
3859           case `ac_delim' when writing the sed script.
3861         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
3862           moved DUALCASE=1 ...
3863         (AS_SHELL_SANITIZE): ... here.
3864         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
3865           that it is set.
3867         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
3868           AC_SUBST.
3869         (_AC_PATH_PROG): Store the result to VARIABLE.
3870         (AC_PATH_PROG): No need to set VARIABLE again.
3872         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
3873           the first one is usual AT_CHECK_MACRO test, the second one checks
3874           that the same works when cross-compiling.
3875         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
3876         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
3878 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3880         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
3881         the directory `/usr/bin/posix' in the shell search, to prefer
3882         the Posix shell not only in subsequent spawns as with `$BIN_SH'
3883         on Tru64.
3885         * doc/autoconf.texi (contents): To fix texi2html output, hide
3886         `@setcontentsaftertitlepage' for HTML.
3887         (Writing Autoconf Macros): Likewise, insert space after `@c'.
3888         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
3889         `@,{c}'.
3891 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
3893         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
3894           sanitizing...
3895         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
3896         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
3897           why IFS is restored so late; thank you, Ralf, for reminding us.
3899 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
3901         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
3902           variables in the examples.
3904 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
3906         * doc/autoconf.texi (several sections): Cleaned up documentation for
3907         macros in erlang.m4.
3909 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3911         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
3912         failure condition for `$(cmd)' style command substitutions.
3913         (Parenthetical command substition, Multiline parenthetical
3914         command substition): Use it.
3916         * doc/autoconf.texi (Special Shell Variables): Missing word.
3917         Reported by Keith Marshall <keith.marshall@total.com>.
3919         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
3920         IFS even in case of empty `$PATH'.
3922 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3924         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
3925         `expr' away if there is nothing to do.
3926         < --keywords >: Simplify and robustify argument handling.
3927         Revert erroneous comment from 2005-08-23.  Extend to allow
3928         keyword negation with `!'.
3929         Update help message.  Remove broken code to prevent running
3930         tests multiple times.
3931         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
3932         Update and fix the documentation accordingly.
3933         * tests/autotest.at (Keywords): Renamed to..
3934         (Keywords and ranges): .. this.  Extended to make sure negated
3935         keywords, keywords taken from AT_SETUP arguments, and numeric
3936         test ranges work, and that matching is case-insensitive.
3938 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3940         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
3941         allow to pass unnamed structs even in C++.
3942         (AC_CHECK_SIZEOF):  Likewise.
3943         Also fix quoting error in `AC_MSG_FAILURE' arguments.
3944         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
3945         struct): New tests for unnamed structs, each both native and
3946         cross-compiling.
3948         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
3949         a structure inside a cast, for C++ conformance.
3950         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
3951         Also fix quoting error in `AC_MSG_FAILURE' arguments.
3953         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
3954         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
3955         trying to execute the command `no'.
3957         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
3958         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
3959         expanded outside.
3961         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
3962         example.  Do not emphasize `$%', it is hardly new and special.
3963         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
3965         * doc/autoconf.texi (Limitations of Usual Tools): Document
3966         OpenBSD and traditional `grep' failure to handle multiple
3967         patterns separated by newlines.
3969 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
3971         * doc/autoconf.texi (several sections): Add documentation for macros
3972         in erlang.m4.
3974 2006-03-10  Eric Blake  <ebb9@byu.net>
3976         * doc/autoconf.texi (Obsolete Macros): Fix wording of
3977         AC_TRY_LINK_FUNC.
3979 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3981         * doc/autoconf.texi: Use @acronym more consistently for acronyms
3982         like BSD, GPL, LGPL.  Fix minor English typos.
3983         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
3984         Mention that these macros are becoming obsolete.
3985         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
3986         Use more modern terminology for which standard is what.
3987         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
3988         and to ansi2knr.
3989         (AC_PROG_CXX): Likewise.
3990         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
3991         Remove obsolete discussion about how to port to K&R.
3992         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
3993         the obsolescent AC_HEADER_STDC.
3994         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
3995         can't rely on it.
3997 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3999         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4000         Remove stdin redirection from /dev/null to allow pipe to work.
4002 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4004         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
4005         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
4006         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
4007         Ralf Wildenhues.
4009 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4011         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
4012         HP-UX sed is 99 commands, not 100.
4013         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
4014         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
4015         newline for portability.
4016         * tests/torture.at (Torturing config.status): Also test 100
4017         AC_SUBST_FILE invocations.  Fix test to actually verify the
4018         AC_CONFIG_FILES output.
4019         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
4020         command, label, and read-file `r' limits.  Unify HP-UX spelling.
4022         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
4023         non-suffix rule.
4024         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
4025         non-GNU make.
4026         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
4027         * tests/mktests.sh: Small shell portability fixes.
4029 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4031         * doc/autoconf.texi (Caching Results): Fix the examples to use a
4032         recommended quoting style and discard unwanted output.
4034 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4036         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
4037         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
4038         cases, and to work around Tru64 expr bug.
4040 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4042         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
4043         expr bug that turns the result of a regex match into a number if
4044         possible.
4046 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4048         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
4049         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
4050         in section `Specific Compiler Characteristics'.
4052 2006-03-04  Eric Blake  <ebb9@byu.net>
4054         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
4055         variable warning.
4057 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4059         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
4060         order of variable initialization, so even the Solaris 2.6 shell
4061         can create a config header correctly.  Fixes lots of test suite
4062         failures.
4064 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4066         * doc/autoconf.texi (Text processing Macros): New node to
4067         document the m4sugar macros m4_re_escape, m4_tolower,
4068         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
4070 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4072         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
4073         XrmInitialize (0) -> XrmInitialize ().
4074         Reported by Toshio Kuratomi.
4076 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4078         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
4079         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
4080         * doc/autoconf.texi (Programming in M4sh): Adjusted.
4081         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
4082         both macros are defun'ed so that required macros are evaluated
4083         outside.
4085         * doc/autoconf.texi (Prerequisite Macros): State more precisely
4086         where a required macro will be expanded.
4087         (Coding Style): Another reason not to use `m4_define'.
4089 2006-02-21  Eric Blake  <ebb9@byu.net>
4091         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
4093 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4095         * doc/autoconf.texi (Looping constructs): New node, to
4096         document m4_for, m4_foreach, m4_foreach_w, and mention
4097         obsolete AC_FOREACH.
4098         (Obsolete Macros): Document AC_FOREACH.
4099         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
4100         (m4_for): Fix to never loop (almost) endlessly, work correctly
4101         with arithmetic expressions in arguments, a step of zero or
4102         non-integer multiple of the interval, and avoid integer
4103         overflow.
4104         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
4105         m4_foreach_w.
4107 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
4109         Add basic support for Erlang, both for configuring Erlang/OTP
4110         tools, and Erlang as a conf test language.
4111         * lib/autoconf/erlang.m4: New file.
4112         * lib/autoconf/autoconf.m4: Add erlang.m4.
4113         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
4114         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
4115         * NEWS: Add short description of new macros.
4116         * THANKS: Add Romain Lenglet.
4118 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4120         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
4121         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
4123 2006-02-15  Eric Blake  <ebb9@byu.net>
4125         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
4126         warning.
4128 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4130         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
4131         (_AS_CASE): Private helper macro.
4132         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
4133         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
4134         Fix syntax of AS_IF description
4135         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
4136         for the AC_REQUIRE mess.
4137         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
4138         AS_SHELL_SANITIZE.
4140 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
4142         * doc/autoconf.texi: Minor style cleanup.
4143         Be consistent about spaces after commas.
4144         Insert [] where empty args look a bit funny.
4145         Fix some "i.e." and "e.g." usages.
4146         Try to avoid "X/Y" usages.
4147         Don't be pedantic about "ISO C99"; just say C99.
4148         Prefer GNU style for spaces in front of parens.
4149         (Function Portability): Comment about C89 versus C99
4150         signed integer division.
4151         (Particular Headers): Use current gnulib style for dirent
4152         includes.
4154 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
4155         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4157         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
4158         macros without parameters.
4159         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
4160         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
4161         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
4162         `$#' bug.
4163         (autoupdate): Updated to match AU_ALIAS fix.
4165 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4166         and Paul Eggert  <eggert@cs.ucla.edu>
4168         * doc/autoconf.texi (Programming in M4sh): Document
4169         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
4171 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4173         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
4174         (AS_BOURNE_COMPATIBLE): ..this.
4175         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
4177 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4179         * doc/install.texi (Defining Variables): Tighten up the
4180         CONFIG_SHELL wording.
4182 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
4183         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4185         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
4186         of (set -o) rather than testing whether (set -o posix) succeeds,
4187         to work around a bug in the AIX 5.3 shell.  Problem originally
4188         reportd by Howard Chu for libtool.
4190 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
4192         * doc/autoconf.texi (Running the Compiler, Running the Linker):
4193         Changes the macro arguments in summaries to match the
4194         descriptions.
4196 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
4198         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
4199         hint as ``a workaround for a bug.''
4201 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4203         * bin/autoreconf.in: New option `--no-recursive'.
4204         Improve wording for subpackages a bit.
4205         * doc/autoconf.texi (autoreconf Invocation): Updated.
4206         * NEWS: Updated.
4208         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
4209         in environment of `configure', not the command line.
4210         Reported by Howard Chu <hyc@highlandsun.com>.
4212 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4214         * doc/autoconf.texi (Limitations of Builtins): Document the
4215         problem with "trap -".
4217 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
4219         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
4220         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
4221         messages to differentiate Fortran and Fortran 77 tests.
4222         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
4223         AC_LANG_ASSERT, to allow use in mixed-language projects.
4225 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4227         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
4228         FOO" to "defined (FOO)".
4229         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
4230         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
4231         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
4232         * tests/tools.at (ifnames): Likewise.
4234 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4236         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
4237         * lib/Autom4te/General.pm (mktmpdir): Likewise.
4238         (END): Improve error message a bit.
4239         Reported by Bruce Korb <bkorb@gnu.org>.
4241 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4243         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
4244         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
4246 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
4248         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
4249         requires sys/stream.h.  Reported by Oliver Kiddle.
4251 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4252             Stepan Kasal  <kasal@ucw.cz>
4254         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
4255         before the removals of test dirs, use `find' to avoid modification
4256         of symlinked directories.
4258 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
4260         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
4261         Don't ignore the macro arguments.
4263 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
4265         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
4266         declaration that works for MSVC.
4268 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4270         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
4271         Add `*.map' and `.inf' for Green Hills compiler.
4272         Reported by Stefan Seefeld <stefan@codesourcery.com>.
4274         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
4275         correctly: pad with spaces after FIRST_PREFIX if necessary,
4276         and compute string lenghts with `m4_qlen' instead of `m4_len'.
4277         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
4278         * tests/m4sh.at (AS_HELP_STRING): Test extended.
4279         * NEWS: Updated.
4280         Reported by numerous people, numerous times.
4282 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4284         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
4285         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
4286         * lib/autoconf/general.m4, lib/autoconf/status.m4:
4287         * lib/autotest/general.m4, tests/local.at:
4288         Update copyright year to 2006.
4290         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
4291         sed substitutions.
4292         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
4293         for file names, again.  Reported by Noah Misch.
4294         (Coding Style): Explain that s|a|b| is preferred for file names.
4295         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
4296         (AC_OUTPUT_MAKE_DEFS): Likewise.
4297         * lib/autotest/general.m4 (AT_INIT): Likewise.
4298         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
4299         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
4301         Fix Posix-conformance bugs re use of { command in sed scripts,
4302         and improve the sed-related documentation a bit.
4303         * doc/autoconf.texi (Installation Directory Variables): Use
4304         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
4305         rather than "sed" when talking about Sed in general.
4306         (Particular Programs): Likewise.
4307         (Coding Style): y is like s with respect to / and ,.
4308         (Limitations of Usual Tools): Document the weird restrictions
4309         that Posix has about { }.  Use better quoting.
4310         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
4311         Rewrite to conform to Posix rules about { } in sed scripts.
4312         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
4313         * tests/foreign.at (Libtool): Likewise.
4314         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
4315         Use our own style advice re 's,a,b,' versus 's|a|b|'.
4317 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4319         * lib/autoconf/status.m4: Fix typo.
4321         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
4322         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
4323         `-def', for the benefit of Portland `pgf90 -Mipa'.
4324         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
4326 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4328         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
4329         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
4330         shell from zsh to bash.
4332 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
4334         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
4335           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
4337 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4339         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
4340         parentheses in $(...).  Problem reported by Eric Blake.
4342 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4344         * doc/autoconf.texi (Limitations of Usual Tools):
4345         Mention which characters can be escaped with \ in portable regular
4346         expressions used in grep, sed, expr.  Mention the leading ^ problem
4347         with expr.  Clean up some confusing wording.  Mention which
4348         grep options are portable.
4350 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
4352         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
4354 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4356         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
4357         patch, noted by Ralf Wildenhues.
4359 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4361         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
4362         posix' unconditionally, for pdksh in `native sh' emulation.
4364 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4366         * doc/autoconf.texi (Shellology): Document eval $? problem
4367         with ash.
4368         (Limitations of Builtins): Likewise.
4370 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4372         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
4373         CONFIG_SHELL in the environment of the configure rerun.
4374         * doc/autoconf.texi (Here-Documents, config.status Invocation):
4375         Suggest passing CONFIG_SHELL absolute, and in the environment
4376         rather than as option.
4378 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4380         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
4381         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
4382         Fix macro quoting.  Fix output for n * 98 substituted variables.
4384 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4386         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
4387         `tmp' to avoid file removal race.
4389 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4391         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
4392         ac_clean_files and LIBOBJS.
4394 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4396         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
4397         Factor functionality to..
4398         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
4399         `AC_SUBST($1)' in the public version.
4400         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
4401         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
4402         ac_pt_* variables.
4404 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
4406         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
4407         filesystems.
4409 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4411         * NEWS: Move AH_HEADER mention to right place.
4413 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
4415         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
4416         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
4418 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
4420         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
4421         conftst2.$ac_objext.
4422         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
4424 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
4426         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
4427         conftest.o, to see whether the compiler really obeys; rm the object
4428         file before and after the test and register it with ac_clean_files.
4429         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
4431 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
4433         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
4434         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
4435         code so that the most common case requires less forks.
4437 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
4439         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
4440         not portable; thanks to Paul Eggert and Alexandre.
4442         * NEWS: Fix an old typo.
4444 2005-10-20  Jim Meyering  <jim@meyering.net>
4446         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
4447         the latter'', in two places.
4449 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4451         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
4452         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
4453         the inner workings of AC_LANG_FUNC_LINK_TRY.
4454         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
4455         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
4456         by the function rather than ignoring it.
4457         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
4458         comparing its address.  Intel's interprocedural optimization was
4459         outsmarting the old heuristic.  Problem reported by
4460         Mikulas Patocka.
4462 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
4464         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
4466 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4468         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
4469         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
4471 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
4473         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
4474         before removing it (chmod -R u+rwx); there are three instances of this.
4476 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4477             Stepan Kasal  <kasal@ucw.cz>
4479         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
4480         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
4481         make its content writable before removing it.  Remove an errorneous
4482         comment from the end, where the logs of the failed tests are copied
4483         to the main log file.
4485 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
4487         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
4488           in case the computer is too quick.  Double quote the configure.ac
4489           snippets.
4491         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
4492           problems if the testsuite were running too fast.
4494 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4496         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
4497         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
4498         (which belong to Xt, not X itself).  See Debian bug 327655.
4499         * NEWS: Mention this.
4501 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
4503         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
4505 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
4507         * config/move-if-change: Don't output "$2 is unchanged";
4508         suggested by Ben Elliston.  Handle weird characters correctly.
4510 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
4512         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
4513           calls, so that the final expansion of this macro is shorter.
4514           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
4515           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
4516           the cleanup there.  Use AS_VAR_* macros, to be more general.
4517         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
4519         * lib/autoconf/general.m4: Use AS_IF where appropriate.
4521         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
4523 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
4525         * doc/autoconf.texi (Configuration Headers): Add an index entry
4526           for AH_HEADER.
4528 2005-08-26  Pavel Roskin  <proski@gnu.org>
4530         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
4531         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
4532         running xmkmf.
4534 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
4536         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
4537         The previous patch didn't work, so try a better one.
4539 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
4541         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
4542         in the example.  Reported by Bruno Haible.
4543         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
4544         "if $undefined_var;" succeeds with my shell.
4546         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
4547         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
4548         but change the m4_divert_text to m4_divert_once.
4550 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
4552         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
4553         Work around bug in Solaris /usr/xpg4/bin/awk.
4554         The bug is present in at least Solaris 8 through 10.
4556 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
4558         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
4559         some evil values and relying on the fact that $* concatenates the
4560         parameters by the first character from IFS.
4562 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
4563             Stepan Kasal  <kasal@ucw.cz>
4565         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
4566         first header appears, define AH_HEADER.
4567         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
4568         Update limitations about when to call AC_CONFIG_HEADERS.
4569         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
4570         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
4571         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
4572         ``Configuration Actions''; fix their index entries.
4574         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
4575         options correctly.  Process N-M as M-N if M is smaller than N.
4576         Process ranges correctly so that N-N will run only N.
4577         Sort and uniquify the tests that will be run.  If there is more
4578         than one test, reinsert the banners for the tests.
4579         * tests/autotest.at (Keywords): Unmark XFAIL.
4581 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
4583         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
4584           before passing the macro name to AH_TEMPLATE.
4586         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
4587           now opens log after option processing; in particular, --version
4588           and --help do not touch config.log.
4590         * Makefile.maint: Revert the change from 2005-08-12.
4592 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
4594         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
4595           common code to...
4596         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
4598 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4600         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
4601         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
4602         Language cleanup.
4604         * doc/autoconf.texi (Defining Symbols, Changed Results):
4605         Prepend to LIBS, not append, in examples.
4607 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
4609         When building in place, set srcdir="."; suggested by Tim Van Holder.
4611         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
4612           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
4613         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
4614         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
4615           does not mean "no --srcdir option".
4617 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4619         * tests/autoscan.at (autoscan): New file.
4620         * tests/suite.at: Use it.
4621         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
4622         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
4624         * tests/autotest.at (Keywords): Test keywords combinations.
4626 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
4628         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
4629           add "2>&1"; gzip 1.2.4 prints help on stderr.
4631 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
4633         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
4634         was pushdef'ed twice while popped only once.  Push it only once.
4635         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
4637 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
4639         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
4640         prefixed by mere "===", not "configure: === ".
4642 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4644         * Makefile.maint: Update from Bison.
4646         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
4647         "<tab>" in comment, so that the point is understandable.
4649 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
4651         Rewrite substantial part of lib/autoconf/status.m4.
4652         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
4653         and CONFIG_COMMANDS are not processed in four separate loops.
4654         Instead, there is one main loop.  This alows that the common code
4655         is expanded only once, thus config.status (and configure) is smaller.
4657         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
4658         the AC_LIST_FILES and cousins macros are no longer used.
4660         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
4661         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
4662         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
4663         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
4664         contain the initialization, nor the for loop, nor the associated
4665         commands; all these go to ...
4666         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
4667         _AC_OUTPUT_CONFIG_STATUS.
4668         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
4669         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
4670         (_AC_OUTPUT_FILE): The creation of the sed script ...
4671         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
4672         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
4673         _AC_OUTPUT_MAIN_LOOP.
4674         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
4675         _AC_CONFIG_COMMANDS): Use ...
4676         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
4677         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
4678         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
4679         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
4680         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
4681         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
4682         ... new macros.
4683         (_AC_CONFIG_UNIQUE): Update.
4684         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
4685         Replaced by this ...
4686         (_AC_LIST_TAGS): ... new common macro.
4687         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
4688         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
4689         (_AC_LIST_TAG_COMMANDS): ... new common macro.
4690         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
4691         this didn't belong to the `config commands' section.
4692         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
4693         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
4694         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
4695         to the `config commands' section either.
4696         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
4697         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
4699         ... and many changes to the comments nearby.
4701         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
4702         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
4703         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
4704         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
4705         (#define header templates): The comment at the top of the generated
4706         header now includes the name(s) of the source file(s).
4708         Several unrelated small changes:
4710         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
4711         parameter to AC_DIAGNOSE.
4712         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
4713         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
4714         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
4715         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
4716         with AU::AC_OUTPUT.
4717         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
4718         in AC_OUTPUT doesn't double-quote it either.
4719         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
4720         parameters.
4722 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
4724         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
4725         versions of Portland Group compiler produce single- and double-quoted
4726         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
4727         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
4729 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4731         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
4732         This is a corrected version of yesterday's patch.
4734 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
4736         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
4737         path, too; insert a "===" to emphasize the line.
4739         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
4740           ac_cv_build_alias to ac_build_alias.
4741         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
4743         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
4744         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
4745         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
4746         (AC_ARG_VAR): ... here.
4747         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
4748           target_alias.
4750         Keep a list of all precious variables and process them with one simple
4751         for loop, instead of expanding all commands, or, OTOH, complicated
4752         processing of output of "set".
4753         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
4754         variable names in new macro...
4755         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
4756         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
4757           a loop to assign all ac_env_* and ac_cv_env_* variables.
4758         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
4759           to INIT_PREPARE.
4760         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
4761           its value to shell variable ac_precious_vars and call
4762           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
4763         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
4764           _AC_ARG_VAR_VALIDATE.
4766         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
4767           and the AC_SUBSTs ...
4768         (AC_INIT): ... here.
4770         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
4771           the ac_subst_files section in config.log.
4773         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
4775 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4777         * NEWS: New macro AC_C_TYPEOF.
4778         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
4779         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
4780         * tests/c.at (C keywords): Test AC_C_TYPEOF.
4782         Fix problems reported by Nicolas Joly.
4783         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
4784         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
4785         They are generated by the Tru64 v5.1B shell.
4787 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
4789         Fix my changes from 2005-07-01; reported by Noah Misch.
4790         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
4791         description, the macro now accepts only a single tag.
4792         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
4794         Fix cases when the varsions of Autoconf and Autotest don't match.
4795         Reported by Noah Misch.
4796         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
4797         at_top_builddir, for compatibility with older autotest.
4798         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
4799         is not set, use at_top_builddir, for compatibility with older
4800         versions of autoconf.
4802 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4804         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
4805         Problem reported by Patrick Welche.
4807 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4809         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
4810         sed substitution command, so that we allow | in program prefixes
4811         and program suffixes.  (& is a problem anyway; we're not fixing
4812         that here.)
4813         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
4814         configure_input, top_builddir, srcdir, etc.
4815         * lib/autotest/general.m4 (AT_INIT): Likewise, for
4816         PATH_SEPARATOR in AUTOTEST_PATH.
4818 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
4820         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
4821         for loop over config.site files using `set', to allow
4822         directory names containing IFS characters.
4824 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4826         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
4827         directories with weird names.  Apparently some people like living
4828         on the edge.  However, improve the test that "pwd" actually does
4829         report a name for the working directory.
4830         * NEWS: Remove the claim that we test for funny chars in dir names.
4832 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
4834         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
4835         replaced ...
4836         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
4837         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
4838         Now accept a single tag, not whitespace separated list.
4839         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
4841 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
4843         * doc/autoconf.texi (Configuration Headers): Change the explanation
4844         about #include <config.h>.
4845         (Generic Functions): Mention the Gnulib project.
4846         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
4848         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
4849         document to output the default config_* lists to config.status.
4850         Don't recognize option --file, if the functionality is not there.
4851         Likewise for --header; moreover, recognize --he and --h as shortcuts
4852         for --help in that case.
4854         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
4855         matches the order of execution.  No code changed.
4857 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4859         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
4860         single-quoted -cmdline argument in Portland Group compiler.
4861         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
4863 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
4865         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
4867 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
4869         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
4870         descriptors to child processes; reported by Norman Gray.
4872 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
4874         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
4876         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
4877         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
4878         (AC_SUBST): Call it.
4879         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
4880         the directory specific variables; but don't call it for configure_input.
4882 2005-06-28  Derek Price  <derek@ximbiot.com>
4884         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
4885         addition.
4887 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4889         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
4890         directory have inherent problems with special characters like spaces,
4891         due to limitations in Make syntax.  Problem reported by Alexandre
4892         Duret-Lutz.
4893         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
4894         Also, fix Tru64 porting problem with shell patterns,
4895         reported by Ralf Wildenhues.
4897 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4899         * doc/autoconf.texi (Subdirectories): Fix markup typos.
4901 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4903         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
4905         Fix some more shell quoting problems.  Prompted by a bug report
4906         from Justace Clutter.
4907         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
4908         variable into diagnostic.  Make the diagnostic an error, not a warning,
4909         because we really don't support spaces and suchlike in dir names.
4910         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
4911         Don't worry about backslashes in srcdir; it can't happen now.
4912         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
4913         Simplify ac_optarg handling.
4914         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
4916 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
4918         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
4919         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
4920         * tests/atlocal.in: Propagate $EGREP and $SED.
4921         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
4922         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
4924         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
4925         that '\|' is not allowed in BREs; recommend using newline separated
4926         list of patterns instead of multiple -e options.
4928         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
4930         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
4932 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4934         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
4936 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
4938         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
4939         b, t, r, w commands require single space, while : cannot have any.
4940         (Special Shell Variables): Fix sed code this in the example.
4941         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
4942         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
4944         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
4945         expand to the empty list.  Don't use two pairs of m4_changequote,
4946         it's not necessary.
4948 2005-06-20  Derek Price  <derek@ximbiot.com>
4950         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
4952 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4954         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
4955         * doc/autoconf.texi:
4956         Don't mention Solaris versions so much, if a
4957         problem is common to all extant versions of Solaris.  Say "SunOS
4958         4" instead of "SunOS" for SunOS 4.
4959         (awk): Mention more of the limitations of traditional Awk.
4960         (cat): Don't talk about cat -v.
4962 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4964         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
4965         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
4966         but the implementation is entirely different and is designed
4967         to be compatible with glibc strverscmp.
4968         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
4970         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
4971         on Mac OS X 10.4 reported by Peter O'Gorman in:
4972         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
4973         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
4974         Use shell builtins rather than 'expr', to work around expr bug.
4976 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
4978         * doc/autoconf.texi: "filesystem" -> "file system".
4979         "behaviour" -> "behavior".
4980         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
4981         * lib/autoconf/general.m4: Omit blank after ":" sed command,
4982         as per POSIX.
4983         * lib/m4sugar/m4sh.m4: Likewise.
4984         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
4985         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
4987         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
4988         (.x.1): Ignore the time stamp in the .TH line when deciding whether
4989         to update the man page.  That way, we don't have to check in new
4990         man pages every month.
4992         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
4993         quotes and backslashes.  Patch from Derek Price.
4995 2005-06-10  Derek Price  <derek@ximbiot.com>
4997         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
4998         AS_TR_SH.
5000 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
5002         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
5003         -u, since it outputs chatter if the input files are the same.
5004         Problem reported by Ralf Menzel.
5006 2005-06-08  Derek Price  <derek@ximbiot.com>
5008         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
5009         renaming them since they are about to be redefined anyhow.
5011 2005-06-08  Derek Price  <derek@ximbiot.com>
5013         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
5014         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
5015         Move m4_undefine to alphabetical order.
5017 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5019         * README: Recommend GNU M4 1.4.3 or later.
5020         * doc/autoconf.texi (Introduction): Likewise.
5021         Reword to avoid some formatting glitches.
5022         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
5023         Clarify explanation of HP compiler bug.
5024         Redo example output tp match current CVS snapshot.
5025         Use @example.org in email addresses when the examples
5026         might get inadvertently cut-and-pasted into user code.
5027         Remove example of autom4te usage that doesn't seem to work now.
5028         Use modern AC_INIT (except when the example is meant to be
5029         shown with Autoconf 2.13).
5030         Update ksh info for Solaris 9 and later.
5031         KB -> kB.
5032         Modernize description of Automake versions a bit.
5033         Don't claim a future version of Autoconf is near.
5034         * doc/install.texi: Reword to avoid some formatting glitches.
5036 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5038         * doc/autoconf.texi: Add [] to examples, so that the manual
5039         follows its own advice about quoting better.
5040         Reword to avoid some formatting glitches.
5041         * doc/installt.exi: Reword to avoid some formatting glitches.
5043         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
5044         Tru64 ksh pattern matching bug.  Reported against Libtool by
5045         Albert Chin <libtool@mlists.thewrittenword.com> and
5046         Nicolas Joly <njoly@pasteur.fr>.
5048 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
5050         m4_cdr of one-member list was [[]] (one-member list containing an
5051         empty string) instead of [] (an empty list.  Callers were skewed to
5052         match this misbehaviour.  As a consequence of this:
5053          - m4_foreach([x], [], [foo]) expanded to `foo', while
5054          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
5055         This bug has been fixed:
5057         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
5058           expand to an empty string; print error msg if called without
5059           an argument list.
5060         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
5061           misbehaviour; handle [] and [[]] correctly.
5063 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
5065         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
5066         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
5067           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
5069 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
5071         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
5072           swallow records with more than 99 fields.
5073         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
5074           parse the long line.
5076 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
5078         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
5079           swallow literals longer than 399.  Reported by Ralf Wildenhues.
5080         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
5081           to workaround this limitation.
5083 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5085         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
5086         to gfortran, and make these the first two compiler names
5087         checked (following the general autoconf preference for gcc).
5089 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
5091         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
5092         (DISTCLEANFILES): Remove $(check_SCRIPTS).
5093         (testsuite): Make sure autotest.m4f is up-to-date before using it.
5095 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5097         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
5098         expression of unbounded size when processing the --list
5099         option.  This runs afoul of a limit of 399 bytes per regular
5100         expression on AIX.  Problem reported by Ralf Wildenhues.
5102 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5104         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
5105         * doc/autoconf.texi (Particular Headers): Reword example
5106         for multiline stdbool replacement.
5107         (Setting Output Variables): Reword text a bit.  Don't
5108         give all the details about |#_!!_#|.
5109         Reword description of line replacement.
5111 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
5113         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
5114         now contain newlines, and substituted files must be referenced on
5115         a line alone; the sed scripts to substitute them are now very
5116         different.
5117         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
5118         commands can be put in a sed script portably.
5119         * doc/autoconf.texi (Setting Output Variables): Document above
5120         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
5121         use of multiline substitution.
5122         * tests/torture.at: No longer expect substitution of newline to fail.
5124 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5126         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
5127         From Ralf Menzel (trivial change).
5129 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5131         * tests/local.at: Don't attempt to check for negated character
5132         classes in shell scripts.  The test was too brittle.
5134 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
5136         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
5137         * doc/autoconf.texi (Limitations of Builtins): Document this
5138           limitation.
5140 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
5142         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
5143           common code; used in many places in the tree.
5144         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
5145         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
5147         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
5149         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
5150           messages when ac_unique_file is not found.
5151         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
5152         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
5153           commands, for consistency with AC_MSG_ERROR and such.
5155         * bin/autoconf.as: Make more use of "shift 2" in option processing.
5157         * bin/Makefile.am: Merge the two rules for creating scripts.
5159 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
5161         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
5162         obsolete; it was never documented.
5163         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
5165 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
5167         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
5168         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
5169         (ac_top_builddir): ... this ...
5170         (ac_top_build_prefix): ... to this; the old name is also kept, for
5171           backward compatibility.
5172         (ac_top_builddir_sub): New variable, without the trailing slash,
5173           always nonempty.
5174         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
5175         * doc/autoconf.texi (Configuration Actions): Rename
5176           ac_top_builddir to ac_top_build_prefix.
5177         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
5178           at_top_builddir to at_top_build_prefix.
5179         * lib/autotest/general.m4 (AT_INIT): Likewise.
5181 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
5183         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
5184           of confdefs.h .
5186 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
5188         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
5189           argument to m4_foreach.  I guess it was necessary in the past,
5190           but I think it's a no-op now.
5192 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
5194         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
5195           ``cat <<_ACEOF'' commands to one.
5196         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
5197         * lib/autoconf/status.m4: On various places, use expr instead of
5198           ``echo|sed.''
5199         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
5200         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
5201         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
5202           a range.
5203         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
5204           the wrong patterns between ``case'' and ``esac.''  The previous
5205           code had false positives.
5207 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
5209         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
5210         as on 2005-05-02.
5211         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
5212         Mention LIBOBJDIR.
5214 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5216         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
5217         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
5218         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
5219         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
5220         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
5221         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
5222         config/config.guess, config/config.sub, config/elisp-comp,
5223         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
5224         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
5225         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
5226         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
5227         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
5228         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
5229         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
5230         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
5231         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
5232         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
5233         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
5234         lib/autoconf/general.m4, lib/autoconf/headers.m4,
5235         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
5236         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
5237         lib/autoconf/specific.m4, lib/autoconf/status.m4,
5238         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
5239         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
5240         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
5241         lib/autotest/general.m4, lib/emacs/Makefile.am,
5242         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
5243         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
5244         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
5245         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
5246         tests/compile.at, tests/foreign.at, tests/fortran.at,
5247         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
5248         tests/semantics.at, tests/suite.at, tests/tools.at,
5249         tests/torture.at, tests/wrapper.as:
5250         Update FSF postal mail address.
5252 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
5254         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
5255           check.
5256         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
5257           enough arguments, similarly as in m4_bpatsubsts.
5259 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
5261         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
5262           of absolute paths.
5264 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
5266         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
5267           for absolute directory names in one loop.
5268         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
5269           abbreviations of --version and --debug.
5271 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5273         * doc/autoconf.texi (Autoconf Language): Be more precise about
5274         quoting rules.  Problems noted by Stepan Kasal.
5275         Also, throughout this document, be more careful about white space.
5276         "blank", "white space", and "space" all have different meanings
5277         and we should be careful to say what we mean.
5279 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5281         Fix C++ related problems reported by Werner Lemberg.
5282         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
5283         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
5284         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
5285         avoid problems with C++ and throw.
5286         * tests/compile.at: .cpp, not .cc.
5288         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
5290 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5292         * doc/autoconf.texi (Generic Functions): Typos.
5294 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
5296         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
5297         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
5298         set by latest automake.
5300 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5302         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
5303         outputs 0 on GNU/Linux these days.
5305 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5307         * doc/autoconf.texi (Autoconf Language): Add more description
5308         about quoting heuristics.
5309         (Limitations of Builtins): Describe "set -" problems.
5311 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5313         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
5314         not newline.
5316         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
5317         by AC_DEFINE; it was a mistake.
5318         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
5320 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
5322         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
5324 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
5326         * doc/autoconf.texi (External Software): Quadrigraphs are not
5327           processed correctly in AS_HELP_STRING; avoid this in the examples.
5328         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
5329         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
5330           comment and reduce m4_default([foo], []) to [foo].
5331         (m4_strip): Update the explanation.
5333 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
5335         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
5336         Remove core.conftest.* too; it's generated by Tru64 5.1.
5337         Problem reported by Jennis Pruett.
5338         * lib/autoconf/functions.m4
5339         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
5340         Don't bother to remove core files; AC_RUN_IFELSE should do that
5341         for you.
5343 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
5345         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
5347 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
5349         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
5350         Report from Horst Wente.
5352 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
5354         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
5355           the comment.
5357 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
5359         * doc/autoconf.texi (External Software, Package Options): Add
5360           examples showing how to implement --with-* and --enable-* options.
5362 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
5364         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
5365         as well as configure.in.  Problem reported by Gregorio Guidi.
5367 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
5369         * doc/autoconf.texi (Particular Functions): Use gnulib's current
5370         pattern for alloca snippet.
5372 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
5374         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
5376 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
5378         * doc/autoconf.texi (Generic Programs): Fix a typo.
5380 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
5382         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
5383         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
5385 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5387         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
5388         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
5389         whole-archive (-zallextract, -zdefaultextract) options in the hope of
5390         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
5391         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
5393 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5395         * NEWS: The configure command now warns you if you attempt to use
5396         a directory whose name contains a special character like space,
5397         newline, or "\".
5398         * doc/autoconf.texi (Installation Directory Variables): Allow
5399         "," in file names.  Do not use \@; it's not a portable regexp.
5400         * bin/Makefile.am (edit): Likewise.
5401         * lib/Makefile.am (edit): Likewise.
5402         * tests/Makefile.am (edit): Likewise.
5403         * tests/semantics.at: Likewise.
5404         * tests/torture.at: Likewise.
5405         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
5406         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
5407         * doc/autoconf.texi (File System Conventions): Warn about
5408         unportable file names.
5409         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
5410         (AC_INIT): Use it.
5411         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
5412         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
5413         ac_pwd, and quote srcdir.
5414         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
5416         * doc/autoconf.texi: Fix some systematic formatting problems.
5417         ".)"  needs a following @: if not at the end of a sentence, and
5418         similarly for "!)".  "etc." should be preceded by a comma.
5419         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
5421 2005-03-22  Bruno Haible  <bruno@clisp.org>
5423         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
5424         argument is often called 'build-aux'.
5426 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
5428         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
5429           macro AC_TRY_LINK is obsolete.
5430         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
5431           `AC_CONFIG_FILES'.
5433 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
5435         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
5436           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
5437           from a Common Lisp's `cl'.
5438         (AC_PROG_CXX): Behave according to the documentation: don't
5439           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
5440           make the variable CCC precious; use `cl.exe', not `cl'.
5442 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
5443             Alexandre Duret-Lutz  <adl@gnu.org>
5445         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
5446         /dev/null, as "configure" shouldn't read stdin, and this insulates
5447         us from problems (e.g., when testing for "cl").  Also, do this
5448         redirection before invoking "hostname" or "uname", and keep the
5449         original input stream available via...
5450         (AS_ORIGINAL_STDIN_FD): ... this new macro.
5451         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
5452         bother with "</dev/null" since it's now done at the top of
5453         'configure'.
5454         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
5455         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5456         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
5457         * doc/autoconf.texi (File Descriptor Macros): New section.
5458         (Printing Messages): Mention it.
5459         * tests/base.at (Input/Output): New test.
5461 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
5463         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
5464         newline if neither \c nor -n work, as that would output two
5465         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
5467 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
5469         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
5470         This causes that any required macros inside will get before the if.
5471         * doc/autoconf.texi (autom4te.cache): A typo.
5473 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5475         Undo previous change, except keep the change to
5476         lib/autoconf/programs.m4 that replaced grep with shell
5477         pattern-matching.  This is because net-snmp configure reads stdin.
5478         Reported by Noah Misch.
5480 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
5482         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
5483         from /dev/null, as "configure" shouldn't read stdin, and this
5484         insulates us from problems (e.g., when testing for "cl").
5485         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
5486         before invoking "hostname" or "uname".
5487         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
5488         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
5489         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
5490         "</dev/null" since it's now done at the top of 'configure'.
5491         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
5492         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
5493         Also, replace grep with shell pattern-matching, to save a process.
5495 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
5497         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
5498         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
5499         avoid thinking that Allegro Common Lisp's "cl" command is a C++
5500         compiler.
5502 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5504         * doc/autoconf.texi (Limitations of Usual Tools): Document that
5505         grep -q isn't portable.  Improve grep -s explanation.
5506         Problem reported by Dan Manthey.
5508 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5510         * doc/autoconf.texi (Special Shell Variables): Clarify
5511         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
5513 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5515         * doc/autoconf.texi: Use @acronym for DJGPP.
5516         Fix some @code's that should have been @env's, and vice versa.
5517         Sort environment variable names.
5518         Mention that shells no longer inherit IFS.
5519         Don't recommend PATH_SEPARATOR=';' so strongly.
5520         Mention that $RANDOM might expand to the empty string.
5521         "symlink" and "soft link" -> "symbolic link".
5522         Improve mktemp description (reported by Bruno Haible).
5524 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
5526         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
5527         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
5528         Likewise.
5529         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
5530         Likewise.
5532 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5534         * NEWS: Mention AT_COPYRIGHT.
5536         * tests/local.at (AT_CMP): Use diff directly on input files rather
5537         than copying them.
5539         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
5540         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
5542 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
5543         and Paul Eggert  <eggert@cs.ucla.edu>
5545         * tests/autotest.at (Empty test suite): New test.
5546         * tests/torture.at (Substitute and define special characters)
5547         (Substitute a 2000-byte string, Define to a 2000-byte string)
5548         (Substitute a newline, Define a newline): New tests.
5550 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
5552         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
5553         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
5554         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
5555         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
5556         (Standard regular expressions): New test.
5557         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
5558         excess test name quoting.
5559         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
5560         CPPFLAGS to `configure' instead of setting it in `configure'.
5562         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
5563         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
5564         on some platforms.
5566         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
5567         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
5569         * tests/local.at (AT_CMP): New macro.
5570         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
5571         (AC_SAVE_STATE): Move environment grep...
5572         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
5573         (AT_CONFIG_CMP): New macro.
5574         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
5575         * tests/c.at (Extensions): Do not exit early.
5576         * tests/atlocal.in: Inherit $GREP.
5578         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
5579         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
5581         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
5582         (AC_COPYRIGHT): Factor header comment portion out and move into...
5583         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
5584         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
5585         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
5586         --version output.
5587         * tests/local.at: Add Autoconf test suite copyright notice.
5588         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
5590 2005-02-04  Bruno Haible  <bruno@clisp.org>
5591         and Paul Eggert  <eggert@cs.ucla.edu>
5593         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
5595 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5597         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
5598         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
5600         Try not to generated lines of unlimited length, as POSIX places a
5601         2047-byte limit on line length of portable text files.
5602         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
5603         Use newline as a separator, not space.
5604         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
5605         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
5606         space.
5608 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5610         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
5611         as_func_*.  Add test to check whether positional parameters
5612         are restored after function return.
5614 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5616         * doc/autoconf.texi (Special Shell Variables): Mention _,
5617         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
5618         if they contain a lower-case letter.  The DUALCASE problem was
5619         reported by Ralf Wildenhues.
5621         * bin/autoconf.as: Don't exit with status 0 after write failure
5622         with --help or --version.
5623         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
5624         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
5626 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5628         * doc/autoconf.texi (Limitations of Usual Tools):
5629         Unicos 9 sed limitations.
5630         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
5631         to get the option-enhanced interface on older Crays.  Try ftn for
5632         Fortran 95 (newer Crays).
5634 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
5636         * man/Makefile.am (.x.1): Go back to the simple solution, but take
5637         care to echo the commands, so the user knows what's going on.
5638         Modified from a suggestion by Stepan Kasal.
5640         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
5641         with a cross reference.  Derived from a suggestion by Bruce Korb.
5643 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
5645         * doc/autoconf.texi (config.status Invocation): Warn about
5646         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
5647         * doc/install.texi (Defining Variables): Likewise.
5648         Based on a proposed patch by Ralf Wildenhues.
5650         * man/Makefile.am (.x.1): Make sure the required generated files
5651         are up to date.  Problem and original solution proposed by Stepan Kasal.
5652         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
5653         implicit-man-prerequisites): New rules, used by the above.
5655         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
5656         * config/config.guess, config/config.sub, config/install-sh: Likewise.
5657         * config/missing, config/texinfo.tex: Likewise.
5659 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
5661         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
5662         Update the long comment explaining it.
5664         m4_require no longer writes an ``is required by'' line to the
5665         execution stack.  It contains only one bit of non-redundant
5666         information: that the macro was required, not called.  And even
5667         this bit is useless in most situations: have you ever met a macro
5668         which both calls and requires the same macro?
5670         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
5671         (_m4_defun_pro_outer): ... only via this macro, for the outermost
5672           macro.
5673         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
5674         (m4_expansion_stack_pop): Remove the misplaced comment.
5675         (m4_require): Don't put the ``is required by'' line to the
5676           execution stack; slightly improve the out-of-a-defun error message.
5677         (_m4_divert_grow): New macro, counter for the temporary diversions.
5678         (_m4_require_call): Use it.
5679         * tests/m4sugar.at (m4_require): Expect output without the
5680           ``is required by'' messages.
5682 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5684         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
5685         rather than x for expr.
5687         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
5688         this is safe.
5689         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
5690         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
5691         * lib/autotest/general.m4 (AT_INIT): Likewise.
5692         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
5693         * tests/mktests.sh: Likewise.
5695 2005-01-27  Akim Demaille  <akim@epita.fr>
5697         Have autoheader honor --force.
5699         * doc/make-stds.texi, doc/standards.texi: Update from masters.
5700         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
5701         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
5702         from masters, so that FileUtils.pm's update_file provide --force
5703         support.
5704         * bin/autoheader.in: Pass $force to update_file so that
5705         config.h.in is always recreated when --force.
5707 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
5709         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
5711 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5713         * doc/autoconf.texi (Limitations of Builtins): Clarify that
5714         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
5716 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
5718         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
5719         Warn about newline stripping in `` and $().  Update Solaris
5720         version to 9.
5721         (Limitations of Builtins): Use expr "X...", not expr "x...", as
5722         X insulates us from future changes to Posix.
5723         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
5724         stripping.
5726 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
5728         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
5729           you cannot use AC_DEFINE to define macros containing `[' or `]'.
5731 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
5733         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
5734         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
5735         bug-tar mailing list.
5737 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
5739         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
5741 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5743         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
5744         ulongval to be static, to avoid unwanted GCC warning.  Problem
5745         reported by Michael Jennings via Daniel Reed; see
5746         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
5748 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
5750         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
5751         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
5752         datadir, infodir, and mandir.  Adjust argument parsing code.
5753         (_AC_INIT_HELP): Update help text.
5754         * doc/autoconf.texi (Installation Directory Variables): Document
5755         new variables.
5757 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
5759         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
5760         not seem to work, assume it does set $(MAKE).
5761         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
5763 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
5765         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
5767 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
5769         A cleanup of the diversion support in m4sugar.
5771         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
5772         (_m4_divert_n_stack): New macro; the expansion is
5773           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
5774           otherwise.
5775         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
5776         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
5777           stored in _m4_divert_diversion or _m4_divert_dump.
5778         (m4_divert_pop): When the parameter is given, compare the symbolic
5779           name with the last diversion pushed on the stack.  Previously, the
5780           current diversion was compared with the numeric value of the
5781           diversion given as the parameter.
5782         (m4_require): If the macro hasn't been expanded yet, call ...
5783         (_m4_require_call): this new macro.
5785 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5787         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
5788         Workarounds for documented `case' limitations.
5790 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5792         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
5793         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
5795 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5797         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
5798         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
5799         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
5801         Patch from Roger Leigh (with some minor changes) as follows:
5802         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
5803         Resurrect AC_PROG_CC_STDC.
5804         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
5805         AC_PROG_CC_C89, AC_PROG_CC_C99.
5806         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
5807         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
5808         AC_PROG_CC_C99): New macros.
5809         (AC_PROG_CC_STDC): Use them.
5810         (_AC_PROG_CC_STDC): Remove.
5811         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
5812         * THANKS: Add Roger Leigh.
5814 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
5816         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
5817         signals that the package uses Automake; a `Makefile.am' is typical but
5818         not essential.  Reported by Magnus Therning.
5819         * tests/torture.at (autoreconf.): New banner.
5820         (autoreconf and non-AC configure): Rename to `Non-Autoconf
5821         AC_CONFIG_SUBDIRS'.
5822         (autoreconf an empty directory): Rename to `Empty directory'.
5823         (Unusual Automake input files): New test.
5825 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
5827         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
5828         (AT_SETUP): Clear AT_capture_files.
5829         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
5830         (AT_KEYWORDS): Fix comment typo.
5831         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
5832         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
5833         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
5835 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
5837         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
5838         If the variable to set is already set, set ac_cv_path_$1
5839         to the preset value so caller can assume ac_cv_path_$1
5840         is available.  (trivial change)
5842 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
5844         * BUGS (Minor Problems): Warn about makefile limitations.
5845         * Makefile.am: Find and update `INSTALL' in $(srcdir).
5846         * man/Makefile.am: Find and update manual pages in $(srcdir).
5848 2004-12-24  Eric Blake  <ebb9@byu.net>
5850         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
5851         shells in subshell, to avoid noise from ash.  (trivial change)
5853 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5855         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
5856         problems with SunOS ksh and backslash escaping, Bourne shells and
5857         closing brackets (both within character classes).  Bug reported
5858         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
5859         <read>: New entry.  Mention non-availability of -r.
5861 2004-12-21  Akim Demaille  <akim@epita.fr>
5863         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
5864         avoid cluttering displayed messages.  Rather, prepend srcdir where
5865         AT_LINE is used for log files.
5867 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
5869         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
5870         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
5871           no longer part of the macro, quote the occurrence of ``$tmp''.
5872         * doc/autoconf.texi (Forbidden Patterns): Typo.
5874 2004-12-21  Akim Demaille  <akim@epita.fr>
5876         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
5877         separated from the test title by forcing a white space.
5879 2004-12-21  Akim Demaille  <akim@epita.fr>
5881         Enable Emacs navigation within testsuite.log files.
5883         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
5884         use the compilation mode.
5885         (AT_LINE): Point to the srcdir.
5887 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
5889         * tests/Makefile.am (installcheck-local): Use $(bindir).
5890         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
5891         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
5892         Makefile.am scheme Autoconf now uses.
5894 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
5896         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
5897         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
5899 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
5901         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
5902         (_AT_CHECK): Use it.
5903         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
5904         (AS_ESCAPE): Fix comment.
5905         * tests/autotest.at: Adjust section banner comments.
5906         (AT_CHECK_AT): Accept STATUS and STDERR.
5907         (AT_CHECK_AT_TEST): Likewise.
5908         (Invalid brace-enclosed parameter expansion)
5909         (Multiline command from M4 expansion)
5910         (Double-M4-quoted command): New tests.
5912 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
5914         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
5916 2004-12-17  Akim Demaille  <akim@epita.fr>
5918         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
5919         m4_pattern_allow.
5920         Suggested by Alexandre Duret-Lutz.
5921         * doc/autoconf.texi (Setting Output Variables): Catch up.
5923 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
5925         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
5927 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
5929         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
5930           remove the comment which said we cannot.
5932 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
5934         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
5935         Reini Urban and Paul Eggert for reporting the dependencies.
5937         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
5938         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
5939         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
5941 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
5943         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
5944           so that eg. ``autoscan --help'' doesn't truncate it.
5946 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
5948         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
5949         generated conftest files.
5951 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
5953         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
5954         tracing on commands with possibly-escaped newlines.
5955         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
5956         discontinued behavior and its implications.
5957         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
5958         (BSx641-newline in command, BS-BS-newline in command)
5959         (BSx640-newline in command, Newline-CODE-BS-newline in command)
5960         (Single-quote-BS-newline in command)
5961         (Single-quote-newline-BS-newline in command): New tests.
5963 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
5965         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
5966           on platforms where it works.
5967         (_AS_TEST_PREPARE): Test for ``test -x''.
5968         (_AS_BROKEN_TEST_PREPARE): Nuke.
5970 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
5972         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
5973         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
5974           give only 4-letter prefix to AS_TMPDIR, comment fixed.
5975         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
5976           create the temporary directory.
5977         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
5979 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
5981         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
5982         (trivial change)
5984 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
5986         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
5988 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
5990         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
5991         to avoid using a negated character class.  Reported by Nicolas Joly.
5992         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
5994 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5996         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
5997         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
5998         Don't depend on .x file explicitly, since "make" does that for us.
5999         Suggested by Stepan Kasal.
6001         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
6002         Add *.tmp.
6003         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
6004         ifnames): Factor common code.  And they said it couldn't be done!
6006 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6008         * bin/.cvsignore: Add autoconf.in.
6009         * tests/.cvsignore: Add wrapper.in.
6010         * lib/autotest/general.m4: Escape '$' in case pattern.
6012 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
6014         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
6016         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
6018         * tests/autotest.at: New file.
6019         * tests/suite.at: Include it.
6020         * tests/Makefile.am: Distribute it.
6022         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
6023           shell tracing on a command that could contain multiple lines.
6024         * doc/autoconf.text: Document that fact and its implications.
6025         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
6026         * tests/autotest.at (Multiline backquote command substitution,
6027           Multiline parameter expansion, Literal multiline command,
6028           Multiline parenthetical command substitution): Remove XFAIL.
6030 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
6032         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
6033         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
6035 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
6037         * configure.ac (test suite): Cease to generate wrapper scripts.
6038         * configure: Regenerate.
6039         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
6040         (m4f_dependencies): Adjust accordingly.
6041         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
6042         (wrapper.in): Generate it in the build directory.
6043         (MAINTAINERCLEANFILES): Delete wrapper.in.
6044         (CLEANFILES): Add wrapper.in.
6045         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
6046         the output.  Replace each $as_me with a @wrap_program@.
6047         * tests/wrapper.in: Delete it; we always build it.
6049         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
6050         (EXTRA_DIST): Remove autoconf.in.
6051         (CLEANFILES): Add autoconf.in.
6052         (autoconf): Find autoconf.in in the build directory.
6053         * bin/autoconf.in: Delete it; we always build it.
6055 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
6057         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
6058         PATH members so as to not prepend an empty element.  Move a comment.
6059         * Makefile.am (SUBDIRS): Build in `tests' last.
6060         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
6062 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
6064         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
6065         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
6066         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
6067         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
6069 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
6071         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
6072         patch: extra "-l"s.
6074 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6076         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
6077         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
6078         * doc/autoconf.texi (Particular Functions): Mention new behavior.
6080 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
6082         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
6083           out the common code to ...
6084         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
6085           value of the #define--default to 1, iff the macro was called
6086           with exactly one parameter.
6088 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6090         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
6091         "char c = '\200';" rather than "char c = 0x80;" as the
6092         latter doesn't conform to the strict C standard due to
6093         overflow on signed char hosts.
6095         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
6096         to -qlanglvl=ansi.  We don't want to disable extensions.
6098 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
6100         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
6101         (Using Autotest, testsuite Scripts, Writing testsuite.at):
6102         Reword slightly to avoid some English-language problems noted
6103         by Ralf Wildenhues in:
6104         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
6106 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
6108         * NEWS: Add ^L above each release.
6110 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6112         Fix documentation problems reported by Russ Boylan in
6113         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
6114         along with some nearby cruft.
6115         * doc/autoconf.texi (Libtool): Libtool can be used without
6116         Automake (not without Autoconf).
6117         (Introduction): Mention lists.gnu.org.
6118         * BUGS: Don't mention bugs.gnu.org.
6119         Remove mention of ancient libtool compatibility problem.
6120         * NEWS: Mention that bugs.gnu.org is kaput.
6121         * README: Likewise.  Mention where mailing list archives can be found.
6123 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
6125         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
6127 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
6129         * doc/autoconf.texi (Pretty Help Strings): Go back to
6130         single-quoting assignments to cache variables.
6132 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
6134         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
6135         with the examples; fix the bug in MY_ARG_WITH example reported
6136         by Alexandre Duret-Lutz.
6137         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
6138         expansion of $1 in the comment emitted to configure.
6140 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
6142         * doc/autoconf.texi (Pretty Help Strings): Fix typo
6143         in my editing of the previous patch.  Problem reported
6144         by Alexandre Duret-Lutz.
6146 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
6148         * doc/autoconf.texi (Autoconf Language): Explain that
6149         ``descriptions'' may not be double quotes.
6150         (Quotation Rule Of Thumb): Likewise.
6151         (Pretty Help Strings): Likewise; remove the wrong comment;
6152         simplify the examples and improve their quoting.
6154 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
6156         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
6157         the $1_found variable, don't test whether the file is executable;
6158         Both things are checked ...
6159         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
6160         the former ``test -f''.
6161         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
6163 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
6165         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
6166         use cp -R instead.
6168 2004-11-10  Derek R. Price  <derek@ximbiot.com>
6170         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
6171         limitations.  Reorder paragraphs for clarity.
6173 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6175         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
6176         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
6177         variants", "Unix", and some related minor wording fixups.
6179         (Shellology, Special Shell Variables): Document that the Zsh
6180         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
6181         to Alexandre Duret-Lutz for this info.
6183 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
6185         * doc/autoconf.texi (One-Shot Macros): New node.
6187 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
6189         * doc/autoconf.texi (Function Portability): Fix misdescription
6190         of putenv.  Problem reported by Michael Wardle.
6192 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6194         * doc/autoconf.texi (auindex): New macro.
6195         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
6196         Problem reported by Stepan Kasal.
6198 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6200         Fix problems reported by Andreas Buening in:
6201         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
6202         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
6203         in test makefile.
6204         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
6205         readable; it's not true in OS/2-emx.
6207 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
6209         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
6210         "/usr/include", clear ac_x_includes instead of leaving it as "no"
6211         (trivial change).  Problem and patch reported by Andrew Church in:
6212         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
6214 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6216         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
6217         three args in examples.  Problem reported by Frederik Fouvry in:
6218         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
6219         Also, fix some minor spacing and punctuation bugs.
6221 2004-09-02  Akim Demaille  <akim@epita.fr>
6223         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
6224         "case" to restore ordering.
6225         Reported by Stepan Kasal.
6227 2004-08-26  Akim Demaille  <akim@epita.fr>
6229         * doc/autoconf.texi: Minor typos and stylos.
6231 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6233         * configure.ac (AC_INIT): Bump to 2.59c.
6235 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6237         Version 2.59b.
6239         * README: Add advice about m4 1.4.2.
6241         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
6242         texinfo.tex for now (done by hand now).
6243         * Makefile.maint (wget_files, cvs_files):
6244         Remove ansi2knr.c; nobody uses it.
6245         (ansi2knr.c-url_prefix): Remove.
6246         (cvs-update): Fix test for failure.  I don't know why it ever
6247         worked...
6249         * doc/autoconf.texi: Update URLs, some of which went stale.
6250         Use @uref rather than @href.
6252         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
6253         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
6255         * config/config.guess, config/config.sub, config/elisp-comp,
6256         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
6257         doc/fdl.texi, doc/standards.texi: Sync with master copy.
6259         * NEWS, TODO, configure.ac, bin/autoscan.in,
6260         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
6261         doc/install.texi, lib/Autom4te/Configure_ac.pm,
6262         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
6263         lib/autoconf/programs.m4, lib/autoconf/status.m4,
6264         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
6265         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
6266         tests/tools.at, tests/torture.at:
6267         Use "file name" rather than "filename" or "path",
6268         to be consistent with the terminology of the GNU coding standards.
6270 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
6272         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
6273         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
6274         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
6275         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
6277         More fixes to support spaces in the name of the build directory.
6278         This isn't a complete fix but it's an improvement.
6280         * bin/autoconf.as (autom4te_options): New var.
6281         Use it instead of appending to AUTOM4TE, so that we can allow
6282         spaces in the build directory's absolute name.
6283         * bin/autoheader.in ($autoconf): Allow spaces in file names.
6284         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
6285         AT_CHECK_NOESCAPE): Likewise.
6286         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
6287         main program): Likewise.
6289 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6291         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
6292         From Ralf Corsepius in:
6293         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
6295 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6297         * doc/autoconf.texi (Function Portability): Document isinf and
6298         and isnan.  From a suggestion by Kevin Ryde.
6300         * lib/Autom4te/General.pm (END): Return correct exit status even
6301         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
6303 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6305         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
6306         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
6307         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
6309 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
6311         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
6312         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
6313         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
6314         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
6315         * lib/autom4te.in (Automake-preselections): Preselect
6316         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
6318 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
6320         * lib/autom4te.in (Automake-preselections): Preselect
6321         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
6322         trace them.
6324 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
6326         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
6327         Tru64.
6328         * doc/autoconf.texi (Shellology): Mention BIN_SH.
6329         Document problem with "`""`" in pdksh POSIX mode.
6331 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6333         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
6334         with pdksh, too.  Problem reported by Patrick Welche via
6335         Gary V. Vaughan.
6336         * doc/autoconf.texi (Shellology): Note that set -o posix is
6337         useful for pkdsh, too.
6339 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6341         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
6342         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
6343         Don't fail if ENV or BASH_ENV is readonly.
6344         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
6345         etc. are read only.  Problem reported by Ludovic Courtes.
6347 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
6349         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
6350         zsh, disable GLOB_SUBST to avoid backslash handling problems.
6351         (trivial change)
6353 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6355         * doc/autoconf.texi (File System Conventions): Warn about
6356         names like "aux".  Problem reported by Eric Blake.
6358         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
6359         by zero instead of array size, so that we can use any arithmetic
6360         constant expression (instead of requiring an integer constant
6361         expression).  This allows us to test expressions like DBL_MAX <
6362         LDBL_MAX, which didn't conform to the C standard using the old
6363         method.
6364         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
6365         now that we can do floating-point tests at compile time.
6367 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6369         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
6370         and LDBL_EPSILON, as the resulting expression isn't an
6371         integer constant expression and violates the C standard.
6372         Problem reported by Nelson H. F. Beebe.  Also, check
6373         for "L" suffix, and check that long double doesn't have
6374         worse range or precision than double, that mixed-mode
6375         arithmetic doesn't generate a diagnostic, that double
6376         constants fit in long double.
6378 2004-06-03  Kevin Ryde  <user42@zip.com.au>
6380         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
6381         malloc(0) and realloc(NULL,size).
6383         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
6384         Bob Proulx.
6386 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6388         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
6389         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
6390         by Jim Meyering.
6392 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
6394         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
6395         can be rewritten using if-then-else.  Suggested by Bruno Haible.
6397 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6399         * doc/autoconf.texi (testsuite Scripts): Fix typo.
6400         Problem reported by Stepan Kasal.
6402 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6404         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
6405         change).  Patch reported by Ralf Wildenhues in
6406         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
6408         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
6409         function F exists if the compiler and linker let you compile an
6410         expression like (F != 0).  Recent versions of GCC optimize away
6411         the reference to F in that case, since every function address must
6412         be nonzero, so the link succeeds even if F does not exist.
6413         Problem reported by Manu in
6414         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
6416         * doc/autoconf.texi (Systemology): Standardize on the spelling of
6417         "Unix".  Many uses changed.
6418         (Limitations of Builtins): Explain better why the ! command isn't
6419         portable.
6421 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
6423         * lib/autom4te.in (Automake-preselections): Preselect
6424         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
6426 2004-05-19  Kevin Ryde  <user42@zip.com.au>
6428         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
6429         referencing AC_FUNC_STRERROR_R.
6431         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
6432         note pessimistic assumption when cross compiling.
6434 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6436         * doc/autoconf.texi (Limitations of Make): Note that BSD make
6437         (until 2004) invoked subcommands with sh -e, contra POSIX.
6438         Reported by Kevin Ryde.
6440 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
6442         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
6443         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
6444         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
6445         `test -f "        /usr/bin/grep"', which _always_ failed.
6446         (AC_PROG_SED): Ditto bogus PATH fix.
6447         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
6448         requires that grep correctly supports _multiple_ `-e' options, rather
6449         than stating only that grep should accept `-e'.
6451 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6453         Port to C99, which requires that 'exit' be declared.
6455         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
6456         to ensure that stdlib.h is included.
6457         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
6458         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
6459         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
6460         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
6461         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
6462         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
6463         when using 'exit' in a test; C99 requires that 'exit' be declared.
6465 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6467         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
6468         now prefers 'grep' implementations that accept -e.
6469         (Limitations of Usual Tools): Describe problems of traditional
6470         egrep and fgrep with long input lines, and of traditional grep
6471         with -e.
6472         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
6473         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
6474         All callers changed.  Append /usr/xpg4/bin to the PATH, for
6475         Solaris.
6476         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
6477         the user with complaints about multiple -e options.
6478         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
6479         Define it with AC_PROG_GREP.
6480         * configure.ac (AC_PROG_GREP): Add.
6481         * lib/freeze.mk (GREP): New macro.
6483 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
6485         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
6486         a possible candidate only after all others fail, rather than
6487         consulting it first.  This improves backward compatibility by
6488         better reflecting the way shell selection occurred in previous
6489         versions of Autoconf, and should help to avoid triggering latent
6490         problems in other packages, such as the one in Automake where zsh
6491         is not handled robustly:
6492         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
6493         Although it is not Autoconf's responsibility to work around
6494         problems in Automake, it nevertheless makes sense to avoid
6495         introducing unnecessary incompatibilites.
6497 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
6498             Gary V. Vaughan  <gary@gnu.org>
6500         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
6501         how deeply nested we are when a suitable tool is found, set the
6502         ac_path_TOOL_found flag.
6503         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
6504         nested we are in this macro.  Break out of all 3 nested loops if
6505         ac_path_TOOL_found is set.
6507 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
6509         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
6510         of the _AS_PATH_WALK loop too if GNU flavor is found.
6512 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
6514         * doc/autoconf.texi (Limitations of Make): Update documentation
6515         for `$<'.  New entry `Long lines', based on a report from Simon
6516         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
6517         paragraph about DJGPP, based on a mail from Richard Dawe.
6519 2004-04-20  Paul Eggert  <eggert@twinsun.com>
6521         * tests/c.at (C keywords): Don't assume that GCC supports
6522         "restrict" and "inline", as sufficiently-old GCC versions do not
6523         (also, GCC configured to be in pedantic C89 mode does not).
6524         Problem reported by Sumit Pandya in:
6525         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
6527         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
6528         consider -g to work if it generates warnings when plain compiles
6529         don't.  Problem reported by Braden McDaniel in:
6530         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
6532         * doc/autoconf.texi (Slashes): New section, to document a problem
6533         reported by Jim Meyering in:
6534         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
6536         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
6537         linker output files before linking, to work around IRIX 6 linker bug.
6538         Problem reported by Rainer Orth in:
6539         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
6541 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
6543         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
6544         best tool so far counter rely on the tool path variable name to
6545         avoid checks for one tool being affected by the results of running
6546         the length check on a previous tool.
6548         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
6549         match expression argument, as different greps have different
6550         regular expression flavours.
6551         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
6552         literals.
6553         (AC_PROG_EGREP): Pass 'EGREP$'.
6554         (AC_PROG_GREP): Pass 'GREP$'.
6556 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
6558         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
6559         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
6561 2004-03-29  Paul Eggert  <eggert@twinsun.com>
6563         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
6564         Types, Specific Compiler Characteristics, System Services,
6565         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
6566         etc. consistently instead of 'long', 'short', 'unsigned' etc.
6567         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
6568         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
6569         Likewise.
6570         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
6571         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
6572         AC_TYPE_OFF_T): Likewise.
6573         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
6574         Likewise.
6576         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
6577         pacify libtool 1.5.2.  Fix quoting problems in sed command.
6579 2004-03-28  Paul Eggert  <eggert@twinsun.com>
6581         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
6582         now defines HAVE_DECL_TZNAME if it is declared, when
6583         HAVE_STRUCT_TM_TM_ZONE is not defined.
6584         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
6585         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
6586         for HAVE_TZNAME.
6588 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
6590         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
6591         superfluous backslashing of quotes (") in sed expressions;
6592         thanks to Paul Eggert.
6594 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
6596         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
6597         Fortran compiler is ifort, also added pghpf; thanks to Nelson
6598         H. F. Beebe for the bug report.
6600 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
6602         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
6603         quoted -cmdline argument in Portland Group compiler (bug
6604         reported by Jeffrey J. Barteet).
6606 2004-03-25  Kevin Ryde  <user42@zip.com.au>
6608         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
6609         (Run Time): ... here, where it's now mentioned.
6611 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
6613         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
6614         inherits from language Autoconf-without-aclocal-m4.
6615         (Customizing autom4te): Adjust example; the cache must now be
6616         disabled for language Autoconf-without-aclocal-m4.
6618 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
6619             Nathanael Nerode  <neroden@twcny.rr.com>
6621         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
6622         AC_CHECK_TOOLS): Warn if a cross-tool is found without
6623         a prefix.
6624         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
6625         AC_CHECK_TARGET_TOOLS): New macros.
6626         * doc/autoconf.texi (Generic Programs): Document
6627         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
6628         AC_CHECK_TARGET_TOOLS, and warn for future changes
6629         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
6630         AC_CHECK_TOOLS.
6631         (Specifying Names): Document the reason for these future
6632         behavioral changes.
6633         * tests/mktests.sh: Do not generate tests for the
6634         new macros.
6635         * NEWS: Document these changes.
6637         * doc/autoconf.texi: Avoid macros with unbraced arguments,
6638         they make TeX hang up.
6640 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
6642         * NEWS: New macro AC_CHECK_ALIGNOF.
6643         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
6644         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
6645         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
6646         vowel.
6647         (AC_CHECK_ALIGNOF): New macro.
6648         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
6649         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
6650         those for sizeof.
6652 2004-03-03  Paul Eggert  <eggert@twinsun.com>
6654         * bin/Makefile.am (edit): Don't use $< in a context where
6655         POSIX doesn't require support for it.  Use $@.in instead.
6656         Problem reported by Anthony N. Frasso in
6657         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
6658         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
6660 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
6662         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
6663         from the next generation of Libtool.
6664         * lib/autom4te.in (Autoreconf-preselections): Ditto.
6666 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
6668         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
6669         is not always thread-safe.  Report from Nathanael Nerode.
6671 2004-02-18  Paul Eggert  <eggert@twinsun.com>
6673         Fix a dependencies problem, stemming from a Autoconf 2.59 build
6674         problem on QNX reported by Stephen Rasku in
6675         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
6677         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
6678         $(m4sh_m4f_dependencies); this removes a FIXME.
6679         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
6680         (MAINTAINERCLEANFILES): Split into pieces,
6681         one per related section.  Add $(srcdir)/wrapper.in.
6683 2004-02-09  Paul Eggert  <eggert@twinsun.com>
6685         * doc/autoconf.texi (Setting Output Variables): Emphasize that
6686         AC_SUBST provides no portable way to escape literal newlines.
6688         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
6689         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
6690         Darwin uses -lcrt2.o and there's little point to cataloging all
6691         the system variants.  Partial fix reported by Andreas Waechter in:
6692         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
6693         for bug reported by Nelson H. F. Beebe in:
6694         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
6696 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
6698         * doc/autoconf.texi (AU_DEFUN): Fix English,
6699         suggested by Paul Eggert.
6700         * lib/autoconf/autoupdate.m4: Correct reference to
6701         acobsolete.m4, suggested by Alexandre Duret-Lutz.
6703 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
6705         * bin/autoupdate.in: Define __file__ so that warnings
6706         refer to the correct file.
6707         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
6708         the behavior of the third argument.
6709         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
6710         correctly the behavior of the third argument.  Document
6711         what the three macros that AU_DEFUN defines do.  Fix
6712         warning message when the third argument includes $0
6713         (reported by Alexandre Duret-Lutz).
6715 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
6716             Eric Sunshine  <sunshine@sunshineco.com>
6717             Paul Eggert  <eggert@twinsun.com>
6719         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
6720         (AS_INIT): Output shell initialization there. Removed optional
6721         parameter. Expand _AS_SHELL_FN_SPY.
6722         (AS_INIT_WITH_SHELL_FN): Removed.
6723         (_AS_SHELL_FN_SPY): New macro.
6724         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
6725         macros.
6726         (AS_SHELL_SANITIZE): Remove loop to find better shell
6727         and documentation for the parameter.
6728         (_AS_DETECT_BETTER_SHELL): Move it here.
6729         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
6730         (_AS_RUN): Move it here, support testing with eval.
6731         (AS_REQUIRE_SHELL_FN): Require shell functions when
6732         it is used.
6733         (_AS_LINENO_WORKS): Put around braces, we do not
6734         trigger the bash bug anymore.
6735         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
6736         use AS_INIT_WITH_SHELL_FN.
6737         * bin/autoconf.in, tests/wrapper.in: Regenerated.
6739 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
6741         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
6742         * doc/autoconf.texi: Don't say that the third parameter
6743         is broken.
6744         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
6745         (AU_DEFUN): Honor the third parameter, create autoupdate
6746         macros with AU_DEFINE.
6747         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
6748         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
6749         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
6750         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
6751         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
6752         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
6753         AC_XENIX_DIR): Likewise.
6754         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
6755         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
6756         * lib/autoconf/status.m4: Remove FIXME.
6757         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
6758         that the macro is not present anymore in the updated
6759         configure.ac.
6760         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
6761         of autoupdate.
6763 2004-01-28  Paul Eggert  <eggert@twinsun.com>
6765         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
6766         copyright years.
6767         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
6768         2003 (except 1997) to the list of copyright years.  This undoes
6769         the 2003-05-22 change, which removed the older years from the list.
6770         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
6772 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
6773             Albert Chin-A-Young  <china@thewrittenword.com>
6775         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
6776         grep or ggrep program in PATH that accepts as long lines as
6777         possible.
6778         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
6779         AC_PROG_GREP.
6780         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
6781         egrep and fgrep respectively if $GREP -E/-F don't work.
6782         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
6783         _AC_PROG_GREP, and AC_PROG_SED.
6784         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
6785         longest input length accepted by a command.
6786         (AC_PROG_SED): Use it.
6787         * doc/autoconf.texi (Particular Programs): Document the changes.
6788         * NEWS: Updated.
6790 2004-01-27  Paul Eggert  <eggert@twinsun.com>
6792         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
6793         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6794         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
6795         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
6797         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
6798         bin/autoconf.in, config/Makefile.in, config/config.guess,
6799         config/config.sub, config/install-sh, config/mdate-sh,
6800         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
6801         lib/Makefile.in, lib/Autom4te/Makefile.in,
6802         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
6803         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
6804         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
6805         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
6806         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
6807         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
6808         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
6809         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
6810         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
6811         tests/actypes.at: Regenerate and/or sync with original
6812         sources.
6814 2004-01-26  Paul Eggert  <eggert@twinsun.com>
6816         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
6817         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
6818         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
6819         not <inttypes.h>.  Problem reported by Tim Mooney in
6820         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
6821         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
6822         Likewise.
6824         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
6825         otherwise "make check" fails because it forbids cmp (I guess
6826         because cmp treats files as binary on DOS-like systems).
6828         * tests/mktests.sh: Update copyright date to 2004, since some tests
6829         have changed in 2004.
6831 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
6833         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
6834         non-truncating sed or gsed program in PATH.
6835         * tests/acprograms.at: Add it.
6836         * doc/autoconf.texi (Particular Programs): Document it.
6837         * NEWS: Updated.
6839 2004-01-15  Paul Eggert  <eggert@twinsun.com>
6841         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
6842         -std1 disables some useful extensions on Tru64.  Problem reported
6843         by N. Lichtmaier in
6844         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
6846 2004-01-14  Paul Eggert  <eggert@twinsun.com>
6848         * doc/autoconf.texi (Programming in M4sh): Document that
6849         AS_MKDIR_P succeeds if the destination is a symbolic link
6850         to an existing directory.
6851         (Limitations of Usual Tools): Note that mkdir -p might not
6852         succeed on symlinks to directories.
6854 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
6856         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
6857         * bin/autoheader.in: Grammar fix in message.
6858         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
6859         Test for dir before calling mkdir -p.  (trivial changes)
6861 2004-01-13  Eric Blake  <ebb9@byu.net>
6863         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
6864         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
6866 2004-01-10  Jim Meyering  <jim@meyering.net>
6868         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
6870 2004-01-09  Paul Eggert  <eggert@twinsun.com>
6872         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
6873         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
6874         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
6875         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
6876         AC_COMPILE_IFELSE, since we now assume our caller invokes
6877         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
6878         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
6879         of AC_RUN_IFELSE; this avoids the warning mentioned above.
6880         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
6882 2004-01-07  Paul Eggert  <eggert@twinsun.com>
6884         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
6885         `"'...'"`, as it's confusing (and I suspect it may not work on
6886         some platforms).  The code was incorrect anyway, as it assumed
6887         that \$ evaluated to itself in that context.  Reported by
6888         Alexandre Duret-Lutz.
6890 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
6892         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
6893         and _LT_AC_TAGCONFIG.
6895 2004-01-06  Paul Eggert  <eggert@twinsun.com>
6897         * doc/autoconf.texi (One Macro Call): Fix an incorrect
6898         example, and add more examples.  Reported by Eric Sunshine.
6900 2004-01-05  Paul Eggert  <eggert@twinsun.com>
6902         * doc/autoconf.texi (Limitations of Usual Tools):
6903         Remove warning against "rm -fr" introduced yesterday; it
6904         was a false alarm.
6906         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
6907         autoscan, autoupdate, ifnames): Don't use chmod -w.
6908         * lib/Makefile.am (autom4te.cfg): Likewise.
6909         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
6910         "chmod -w".
6912 2004-01-04  Paul Eggert  <eggert@twinsun.com>
6913             Paolo Bonzini  <bonzini@gnu.org>
6915         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
6916         by doing lineno substitution only on lines containing "$LINENO".
6918 2004-01-04  Paul Eggert  <eggert@twinsun.com>
6920         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
6921         Use "rm -f" to remove conftest.sed, not plain "rm".
6922         Bug reported by David Relson in
6923         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
6925         * Makefile.am (autom4te-update):
6926         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
6927         * Makefile.maint (my-distcheck, do-po-update): Likewise.
6928         * doc/autoconf.texi (Guidelines): Likewise.
6929         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
6930         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
6931         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
6932         * lib/autotest/general.m4 (AT_INIT): Likewise.
6933         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
6934         * tests/Makefile.am (clean-local): Likewise.
6935         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
6936         srcdir): Likewise.
6937         * doc/autoconf.texi (Limitations of Usual Tools):
6938         Warn against "rm -fr".
6940 2004-01-03  Paul Eggert  <eggert@twinsun.com>
6942         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
6943         -c -o might not work.  From a suggestion by Kevin Ryde.
6944         (C Compiler, Generating Sources, Limitations
6945         of Usual Tools, Limitations of Make, Making testsuite Scripts):
6946         Don't put '-o' after non-options, as POSIX doesn't allow this.
6947         Mention that cc's name might be gcc or c89 or whatever.
6949 2004-01-04  Kevin Ryde  <user42@zip.com.au>
6951         * doc/autoconf.texi: Add various further index entries.
6953 2003-12-29  Paul Eggert  <eggert@twinsun.com>
6955         * bin/autoreconf.in (autoreconf_current_directory):
6956         Fix typo: mkdir without umask arg.
6958 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
6960         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
6961         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
6962         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
6963         explanation clearer.
6965 2003-12-24  Andreas Schwab  <schwab@suse.de>
6967         * doc/autoconf.texi (Default Includes): Fix misspelling of
6968         AC_INCLUDES_DEFAULT.
6970 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
6972         * configure.ac: Test if sh -n works.
6973         * configure: Regenerate.
6974         * tests/atlocal.in: Store the result here.
6975         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
6976         tools.at, looking in atlocal's ac_cv_sh_n_works instead
6977         of explicitly testing.
6978         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
6979         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
6980         * tests/tools.at (Syntax of the shell scripts): Simplify
6981         using AT_CHECK_SHELL_SYNTAX.
6982         (Syntax of the Perl scripts): Remove definition of
6983         AT_CHECK_PERL_SYNTAX.
6985 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
6987         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
6988         stderr to /dev/null.
6989         * bin/autoconf.in: Regenerate.
6990         * bin/wrapper.in: Regenerate.
6992 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
6994         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
6995         Extracted from AS_SHELL_SANITIZE.
6996         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
6997         macros.
6998         (AS_SHELL_SANITIZE): Move reinvocation code from
6999         _AS_LINENO_WORKS, use it to find out if shell
7000         functions work.
7001         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
7002         does not work.
7003         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
7004         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
7005         was called.
7006         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
7007         * bin/autoconf.in: Regenerate.
7008         * tests/wrapper.in: Regenerate.
7009         * tests/tools.at: Test the syntax of tests/autoconf
7010         and tests/testsuite.
7012 2003-11-24  Akim Demaille  <akim@epita.fr>
7014         * config/announce-gen (&print_locations, &print_signatures)
7015         (&sizes): New.
7016         Use them.
7017         No longer rely on Gnus to inline the list of signatures: compute
7018         them on the fly.
7020 2003-11-24  Akim Demaille  <akim@epita.fr>
7022         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
7023         override some files.
7024         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
7025         From Debian Autoconf 2.58.
7027 2003-11-24  Akim Demaille  <akim@epita.fr>
7029         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
7030         uses.
7031         From Debian Autoconf 2.58.
7033 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
7035         * TODO: Remove already done things.  Update the part about finding
7036         tools for the target.
7038 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
7040         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
7041         Make wording more consistent.
7042         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
7043         Explain the transition better.
7044         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
7045         the transition better.
7047 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
7049         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
7050         parameter of AU_DEFUN.
7051         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
7052         (AU_DEFUN): Remove the third parameter, it was not used.
7053         Use AC_DEFUN directly, not AU_DEFINE.
7054         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
7055         the expanded body, consistently with other macros such as AC_USG.
7057 2003-11-17  Paul Eggert  <eggert@twinsun.com>
7059         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
7060         into the initial confdefs.h, to work around a bug in NextStep 3.3
7061         patch 3 reported by Eric Sunshine.
7063 2003-11-15  Kevin Ryde  <user42@zip.com.au>
7065         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
7066         than $target since the latter is not usual, add guidelines on when to
7067         use or not use the system type.
7069 2003-11-12  Derek Price  <derek@ximbiot.com>
7071         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
7072         typo misrepaired by an auto-spellcheck.
7074 2003-11-12  Akim Demaille  <akim@epita.fr>
7076         * bin/autoreconf.in (&parse_args): Don't call automake with
7077         --force-missing unless it actually supports it.
7078         From Debian #219336.
7080 2003-11-12  Akim Demaille  <akim@epita.fr>
7082         * configure.ac: Bump to 2.59a.
7083         Require 2.59.
7085 2003-11-06  Akim Demaille  <akim@epita.fr>
7087         Version 2.59.
7089 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
7091         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
7092         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
7093         and ac_abs_top_srcdir are absolute paths.
7094         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
7096 2003-11-05  Akim Demaille  <akim@epita.fr>
7098         * configure.ac: Bump to 2.58a.
7100 2003-11-05  Kevin Ryde  <user42@zip.com.au>
7102         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
7103         it provokes a warning from makeinfo about looking like a cross
7104         reference in info output.
7106         * doc/autoconf.texi (Function Portability): Add notes on signal
7107         handler return type, as per AC_TYPE_SIGNAL.
7109 2003-11-04  Akim Demaille  <akim@epita.fr>
7111         Version 2.58.
7112         * doc/standards.texi: Update from master.
7114         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
7116 2003-11-04  Akim Demaille  <akim@epita.fr>
7118         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
7119         computing the absolute path to d1 in the source hierarchy: it may
7120         not exist at all.  So don't cd into it.
7121         From Alexandre Duret-Lutz.
7122         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
7124         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
7125         From Paul Eggert, but named after Perl's IO::Spec->catfile.
7126         * doc/autoconf.texi (Programming in M4sh): Document.
7127         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
7129 2003-11-03  Pavel Roskin  <proski@gnu.org>
7131         * doc/autoconf.texi (Generic Structure Checks): Describe
7132         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
7134 2003-10-31  Akim Demaille  <akim@epita.fr>
7136         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
7137         (GNU Fortran): New.
7138         * doc/autoconf.texi (Language Choice): Document.
7139         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
7140         the current language is Fortran.
7142 2003-10-31  Akim Demaille  <akim@epita.fr>
7144         * bin/autom4te.in (&freeze): Use a less likely warning separator
7145         than `\n\n', so that `\n\n\n' is valid in warnings.
7146         Reported by Steve Huston.
7148 2003-10-28  Akim Demaille  <akim@epita.fr>
7150         * Makefile.cfg (local_updates, executable-update): Tweak to be
7151         robust to parallel makes.
7152         Suggested by Alexandre Duret-Lutz.
7154 2003-10-27  Akim Demaille  <akim@epita.fr>
7156         * Makefile.cfg (executable-update): New.
7157         (local_updates): Call it.
7159 2003-10-27  Akim Demaille  <akim@epita.fr>
7161         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
7162         Don't remove core.* as it may remove valid user files.
7163         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
7164         (AC_FUNC_UTIME_NULL): Likewise.
7166 2003-10-23  Akim Demaille  <akim@epita.fr>
7168         Version 2.57g.
7169         * config/config.guess, config/config.sub: Upgrade from masters.
7171 2003-10-23  Akim Demaille  <akim@epita.fr>
7173         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
7174         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
7175         hand...
7177 2003-10-23  Akim Demaille  <akim@epita.fr>
7179         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
7180         Don't forget to remove conftest.err.
7182 2003-10-23  Akim Demaille  <akim@epita.fr>
7184         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
7185         same object file in $LIBOBJS.
7186         Reported by Alexandre Duret-Lutz & Derek Robert Price.
7187         * doc/autoconf.texi (Generic Functions): Adjust.
7189 2003-10-20  Paul Eggert  <eggert@twinsun.com>
7191         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
7192         Use 'eval', so that the resulting configure scripts work even if
7193         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
7195 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
7197         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
7198         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
7199         (_AC_LINK_IFELSE): Check the werror flag.
7200         * doc/autoconf.texi (Generic Compiler Characteristics): Document
7201         AC_LANG_WERROR.
7202         * NEWS: Mention it.
7204 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
7206         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
7207         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
7208         override AC_LINK_IFELSE.
7210 2003-10-15  Paul Eggert  <eggert@twinsun.com>
7212         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
7213         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
7214         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
7215         Mention /usr/dt/bin/dtksh on Solaris.
7216         (Shell Substitutions): Warn about $((...)).
7217         (Parentheses): New section.
7219 2003-10-15  Kevin Ryde  <user42@zip.com.au>
7221         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
7222         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
7224 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
7226         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
7227         cross test.
7229 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
7231         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
7232         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
7234 2003-10-10  Andreas Schwab  <schwab@suse.de>
7236         * bin/autoheader.in: Avoid empty first line in --version and
7237         --help output.
7238         * bin/ifnames.in: Likewise.
7240 2003-10-09  Paul Eggert  <eggert@twinsun.com>
7242         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
7243         Issue a more-informative diagnostic.
7244         Problems reported by Eric Sunshine.
7246 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
7248         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
7249         -mGLOB_options_string stuff for Intel ifc, which can cause
7250         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
7251         pattern-matching instead of grep.
7253 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
7255         * doc/autoconf.texi: Document new FC Fortran macros.
7257 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
7259         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
7260         that future autopoint/aclocal/automake/autoreconf will be able
7261         to trace to find where to install local m4 macros.
7262         * doc/autoconf.texi (Input): Document it.
7263         * NEWS: Updated.
7265 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
7267         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
7268         -lcrtbegin.o to list of ignored flags and fix underquoting of
7269         -lcrt[01].o.
7271 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
7273         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
7274         cache variable instead of $G77 to decide whether to include -O2,
7275         since $G77 is specific to Fortran 77.
7277 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
7279         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
7280         free" flag.  Re-order flags tested into rough order of popularity.
7282 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
7284         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
7285         arguments so that it can be used with syntax identical to
7286         AC_PROG_F77, and so that we can more easily decide to
7287         remove/deprecate the DIALECT optional argument in the future if it
7288         proves troublesome.
7289         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
7290         non-freeform-supporting compilers.  Document freeform flags.
7292 2003-10-03  Akim Demaille  <akim@epita.fr>
7294         * configure.ac: Look for emacs, not macs.
7295         Reported by Eric Sunshine.
7297 2003-10-03  Akim Demaille  <akim@epita.fr>
7299         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
7300         * bin/autoreconf.in (autoreconf_current_directory): Create the
7301         AUX_DIR if needed, for sake of automake --add-missing etc.
7302         Suggested by Alexandre Duret-Lutz.
7304 2003-10-03  Akim Demaille  <akim@epita.fr>
7306         * configure.ac: Quotation and formatting changes.
7307         (EMACS): Don't set it if it is not recent enough to support
7308         autoconf-mode.el.
7309         From Eric Sunshine.
7311 2003-10-02  Akim Demaille  <akim@epita.fr>
7313         * bin/ifnames.in (&scan_file): Skip C++ comments.
7314         From Jeremy Yallop.
7316 2003-10-01  Pavel Roskin  <proski@gnu.org>
7318         * doc/autoconf.texi (Particular Structure Checks):
7319         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
7321 2003-10-01  Akim Demaille  <akim@epita.fr>
7323         Version 2.57f.
7325 2003-09-30  Paul Eggert  <eggert@twinsun.com>
7327         * lib/Autom4te/XFile.pm: Use Errno.
7328         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
7329         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
7331 2003-09-30  Akim Demaille  <akim@epita.fr>
7333         * config/announce-gen (&print_news_deltas): Extracted from...
7334         (&print_changelog_deltas): here.
7335         (&news_file): Rename as...
7336         (@news_file): this.
7338 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
7340         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
7341         have been created when invoking the compiler.
7342         * tests/fortran.at (GNU Fortran 77): Quote $G77.
7344 2003-09-29  Akim Demaille  <akim@epita.fr>
7346         Version 2.57e.
7348         * config/mkinstalldirs: Upgrade.
7350 2003-09-28  Paul Eggert  <eggert@twinsun.com>
7352         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
7353         Problem reported by Lars J. Aas in
7354         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
7355         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
7356         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
7357         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
7359 2003-09-26  Akim Demaille  <akim@epita.fr>
7361         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
7362         directory for AC_CONFIG_COMMANDS' first argument exists.
7363         This makes valid the invocation of _AC_SRCPATH that follows.
7364         Reported by Eric Sunshine.
7365         * doc/autoconf.texi (Configuration Commands): Adjust.
7367 2003-09-26  Akim Demaille  <akim@epita.fr>
7369         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
7370         Reported by Ralf Corsepius.
7372 2003-09-26  Akim Demaille  <akim@epita.fr>
7374         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
7375         arguments.
7376         Actually, use AU_ALIAS.
7377         From Bruno Haible.
7379 2003-09-26  Paul Eggert  <eggert@twinsun.com>
7381         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
7382         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
7383         Problem reported by Eric Sunshine in:
7384         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
7386 2003-09-26  Akim Demaille  <akim@epita.fr>
7388         The test suite are sometimes assigning timings incorrectly.
7389         Reported by Henk Krus.
7390         Diagnosed by Nicolas Joly.
7392         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
7393         AT_help_all.
7394         Instead of making AT_help a sequence of assignments to grow
7395         $at_help_all, just make AT_help_all be the growing contents of
7396         $at_help_all, and make a single assignment in...
7397         (AT_INIT): here.
7398         (at_times_skip): Flip the meaning and rename as...
7399         (at_times_p): this.
7400         (AT_INIT): When summarizing the test that ran, remove
7401         $at_times_file after use, and check it is present before trying to
7402         use it.
7404 2003-09-25  Akim Demaille  <akim@epita.fr>
7406         Version 2.57d.
7408         * bin/Makefile.am (edit): Handle '@configure_input@'.
7409         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
7410         (ifnames): chmod -w.
7411         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
7412         executables, not bin/ executables!  Otherwise all the magic needed
7413         to find non installed files is turned off.  This caused a failure
7414         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
7415         as found in its environment (sent by tests/autoreconf): pointing
7416         to bin/autom4te that could not find its files.
7417         * tests/mktests.sh: Force the replacement of generated files, for
7418         the sake of "mv" program that are interactive when overwriting a
7419         -w file.
7420         * config/install-sh: Upgrade from CVS Automake.
7422 2003-09-23  Paul Eggert  <eggert@twinsun.com>
7424         * doc/autoconf.texi (Limitations of Builtins): Document test -h
7425         versus test -L issues.
7427 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
7428             Paul Eggert  <eggert@twinsun.com>
7430         Trivial change to support GCC's configuration procedure.
7431         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
7432         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
7433         about inconsistency if the preprocessor is set to give errors for
7434         any warning.
7435         * doc/autoconf.texi (C Compiler Characteristics): Document this.
7437 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
7439         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
7440         and XFile.pm from Automake.
7441         * lib/Autom4te/XFile.pm: Update from Automake.
7443 2003-09-12  Akim Demaille  <akim@epita.fr>
7445         Version 2.57c.
7447 2003-09-12  Akim Demaille  <akim@epita.fr>
7449         * config/config.guess, config/config.sub, config/missing,
7450         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
7451         from masters.
7453 2003-09-12  Akim Demaille  <akim@epita.fr>
7455         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
7456         not asm/types.h.
7458 2003-09-11  Akim Demaille  <akim@epita.fr>
7460         * doc/autoconf.texi (Header Portability): linux/random.h.
7461         From Peter Hendrickson.
7463 2003-09-10  Akim Demaille  <akim@epita.fr>
7465         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
7466         willing to edit the output files.
7468 2003-09-10  Akim Demaille  <akim@epita.fr>
7470         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
7471         and AC_FC_FREEFORM.
7472         * tests/mktests.sh: Skip AC_FC_SRCEXT.
7473         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
7475 2003-09-09  Akim Demaille  <akim@epita.fr>
7477         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
7478         Reported by Gary Vaughan.
7479         * bin/autom4te.in (handle_m4): Likewise.
7481 2003-09-09  Akim Demaille  <akim@epita.fr>
7483         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
7484         trailing files.
7486 2003-09-07  Paul Eggert  <eggert@twinsun.com>
7488         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
7489         Improve the accuracy of the wording about obsolescence.
7490         From a suggestion by Ian Lance Taylor in
7491         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
7493 2003-09-05  Paul Eggert  <eggert@twinsun.com>
7495         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
7496         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
7498 2003-09-04  Akim Demaille  <akim@epita.fr>
7500         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
7501         AC_FUNC_WAIT3.
7503 2003-09-04  Akim Demaille  <akim@epita.fr>
7505         * bin/autom4te.in: Use &fatal where more appropriate than &error.
7506         (freeze): When exiting, use $exit_code.
7507         * lib/autoconf/fortran.m4: Comment changes.
7509 2003-09-04  Akim Demaille  <akim@epita.fr>
7511         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
7513 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
7515         Add support for newer Fortran dialects.  The F77 interface is
7516         unchanged, and continues to support Fortran 77.  New FC macros
7517         correspond to all the old F77 macros, with output variables FC,
7518         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
7519         available dialect, but older dialects can be specified.  There are
7520         new macros AC_FC_SRCEXT to set the source extension, and
7521         AC_FC_FREEFORM to accept free-form source files.
7523         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
7524         New macros.
7525         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
7526         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
7527         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
7528         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
7529         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
7530         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
7531         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
7532         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
7533         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
7534         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
7535         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
7536         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
7537         AC_FC_SRCEXT, AC_FC_FREEFORM):
7538         New macros.
7539         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
7540         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
7541         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
7542         Rewrite in terms of the above.
7543         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
7544         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
7545         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
7546         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
7548 2003-09-02  Paul Eggert  <eggert@twinsun.com>
7550         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
7551         Document problems with timestamp resolution that 'make', 'cp -p', and
7552         'touch -r' have.
7554 2003-08-27  Akim Demaille  <akim@epita.fr>
7556         * tests/m4sugar.at (cross_warning): Make sure to enable the
7557         output, so that we can track spurious m4sugar output.
7558         * tests/local.at: Require 2.57.
7559         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
7560         are defaulted by AT_CHECK anyway.
7561         Use AT_CHECK_AUTOM4TE.
7562         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
7563         missing dnl.
7565 2003-08-27  Akim Demaille  <akim@epita.fr>
7567         * bin/autoheader.in: Issue the "Using auxiliary..." message only
7568         when -Wobsolete is set.
7569         Set it on by default.
7570         Suggested by Klee Dienes.
7572 2003-08-27  Akim Demaille  <akim@epita.fr>
7574         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
7575         documentation.
7576         From Guido Draheim.
7578 2003-08-26  Akim Demaille  <akim@epita.fr>
7580         * doc/autoconf.texi (Output): Make clear that one can run code
7581         after AC_OUTPUT.
7583 2003-08-25  Akim Demaille  <akim@epita.fr>
7585         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
7586         CVS Bison.
7588 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
7590         * bin/autoreconf.in (parse_args): Do not pass --no-force to
7591         Automake versions prior to 1.8.
7593 2003-08-25  Akim Demaille  <akim@epita.fr>
7595         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
7596         From Ville Karaila.
7598 2003-08-24  Akim Demaille  <akim@epita.fr>
7600         * configure.ac: Bump to 2.57c.
7602 2003-08-22  Akim Demaille  <akim@epita.fr>
7604         Version 2.57b.
7606         * Makefile.cfg (local-checks-to-skip): New.
7607         * Makefile.maint (local-check): Rename as...
7608         (local-checks-available): this.
7609         (local-check): New.
7611         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
7612         * configure.ac: Require Automake 1.7.6.
7614 2003-08-22  Akim Demaille  <akim@epita.fr>
7616         Output stack traces in warnings.
7618         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
7619         Replace the former...
7620         (m4_warn): Pass the call stack to _m4_warn.
7621         * bin/autom4te.in: Adjust to output the call stack.
7622         * tests/m4sugar.at (m4@&t@_warn): Adjust.
7624 2003-08-22  Akim Demaille  <akim@epita.fr>
7626         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
7627         * bin/autom4te.in: Adjust.
7629 2003-08-21  Akim Demaille  <akim@epita.fr>
7631         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
7632         (&verbose): Remove.
7633         (&getopt): Adjust the note and verb channels, depending upon
7634         --verbose.
7635         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
7636         * bin/autoupdate.in: Adjust.
7637         Use &verb, not &verbose.
7639 2003-08-21  Akim Demaille  <akim@epita.fr>
7641         * bin/autoheader.in (&parse_args): Use &parse_warnings and
7642         &parse_WARNINGS.
7643         ($help): Use Autom4te::ChannelDefs::usage.
7644         * bin/autoscan.in: Use Autom4te::ChannelDefs.
7645         * lib/Autom4te/General.pm: Don't export error: you don't own it.
7647 2003-08-21  Akim Demaille  <akim@epita.fr>
7649         First stab at preserving warnings between calls to autom4te,
7650         including when the cache is used.
7652         There are still several issues: (i) there are too many runs of m4
7653         (one for include, one for warnings, and some more), (ii) warnings
7654         spreading on several lines are not handled gracefully, (iii) the
7655         code meant to have the call stack display for errors does not work
7656         (its handling should move from m4 to autom4te).
7658         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
7659         Use them.
7660         (@preselect): Add m4_warn.
7661         ($exit_status): Remove, use $exit_code.
7662         ($help): Use Autom4te::ChannelDefs::usage.
7663         (&handle_m4): No longer define the m4_warnings.
7664         At each run, extract and report the warnings.
7665         Always cache the result, including if the exit status is on
7666         failure, since if nothing changes, we should result in the same
7667         failure, hence we can use the cache.
7668         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
7669         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
7670         Remove.
7671         (m4_warn): Redefine as a do-nothing: it is its invocation that
7672         matters, as warnings are now reported via traces.
7673         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
7674         the contents of m4_warn: make it _call_ m4_warn, so that tracing
7675         the latter reveals calls to the former.
7677         Adjust the tests.
7679         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
7681 2003-08-21  Akim Demaille  <akim@epita.fr>
7683         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
7684         Use them.
7686 2003-08-21  Akim Demaille  <akim@epita.fr>
7688         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
7689         forward order.
7690         * lib/Autom4te/ChannelDefs.pm: Doc typos.
7691         (&parse_warnings): Accept a list of warning requests.
7692         (&usage): Return a string, not a side effect.
7693         (cross): New warning category.
7695 2003-08-21  Akim Demaille  <akim@epita.fr>
7697         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
7698         (&require_configure_ac): Accept an optional directory argument.
7699         ($configure_ac): Remove.
7700         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
7701         (&catfile): Remove.
7702         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
7703         * bin/autoscan.in: Adjust.
7705 2003-08-20  Akim Demaille  <akim@epita.fr>
7707         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
7708         Reported by Alexandre Duret-Lutz.
7710 2003-08-20  Akim Demaille  <akim@epita.fr>
7712         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
7713         * bin/autom4te: Adjust.
7714         In particular, be Autoconf tools are really silent when properly
7715         working, bind the verbosity of the 'note' channel to $verbose.
7716         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
7717         (&xsystem, &contents): Remove, since they are exported by...
7718         * lib/Autom4te/FileUtils.pm: this.
7719         More perldoc.
7720         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
7721         * lib/Autom4te/FileUtils.pm: here.
7723 2003-08-20  Akim Demaille  <akim@epita.fr>
7725         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
7726         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
7727         from CVS Automake.
7729 2003-08-20  Akim Demaille  <akim@epita.fr>
7731         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
7732         (autom4te-update): New.
7733         * Makefile.cfg (update): Bind autom4te-update.
7735 2003-08-19  Derek Price  <derek@ximbiot.com>
7737         * lib/autotest/general.m4: Comment various HELP_* diversions.
7738         (PARSE_ARGS_BEGIN): New section for option parsing related
7739         initialization.
7740         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
7741         package specific options and associated help.
7743 2003-08-19  Akim Demaille  <akim@epita.fr>
7745         * config/announce-gen, Makefile.cfg: New.
7746         * Makefile.am: Adjust.
7747         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
7749 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
7751         * lib/autom4te.in (Automake-preselections): Preselect
7752         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
7753         and m4_sinclude.
7755 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
7757         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
7758         (Autoconf-without-aclocal-m4): ... this new language.
7759         * doc/autoconf.texi (autom4te Invocation): Mention
7760         Autoconf-without-aclocal-m4.
7762 2003-08-18  Derek Price  <derek@ximbiot.com>
7764         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
7765         RUN-IF-PASS optional arguments.
7767 2003-08-18  Derek Price  <derek@ximbiot.com>
7769         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
7771 2003-08-16  Derek Price  <derek@ximbiot.com>
7773         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
7774         STDOUT & STDERR arguments.
7776 2003-08-14  Derek Price  <derek@ximbiot.com>
7778         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
7779         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
7780         shorter column three.  Add DESCRIPTION to log file content.
7782 2003-08-13  Derek Price  <derek@ximbiot.com>
7784         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
7785         output.
7787 2003-08-12  Derek Price  <derek@ximbiot.com>
7789         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
7790         (AT_CHECK_NOESCAPE): Move core functionality to...
7791         (_AT_CHECK): ...this new macro.
7793 2003-08-07  Derek Price  <derek@ximbiot.com>
7795         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
7796         (AT_CHECK_NOESCAPE): ...to this new macro.
7798 2003-07-31  Paul Eggert  <eggert@twinsun.com>
7800         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
7801         in Bash 2.01.  Problem reported by Brian Gough in
7802         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
7804 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
7806         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
7807         -lcrt1.o, for OS X.  (trivial change)
7809 2003-07-07  Paul Eggert  <eggert@twinsun.com>
7811         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
7812         inside '#ifndef __cplusplus'.  Problem reported by
7813         Bob Friesenhahn.
7815 2003-07-06  Bill Clarke  <llib@computer.org>
7817         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
7818         'long', not 'int', for benefit of Sun's recent C++ compilers
7819         (trivial change).  See:
7820         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
7821         (This really should be 'intptr_t', not 'long', but that would
7822         take more work.)
7824 2003-06-25  Akim Demaille  <akim@epita.fr>
7826         * lib/Makefile.am (autom4te.cfg): Make it read only.
7827         Depend on Makefile since it contains substitutions.
7828         From Paolo Bonzini.
7829         * lib/autom4te.in (args): Add local.at? for Autotest args.
7830         This change was made on autom4te.cfg which is generated.
7831         Reported by Raja R. Harinath.
7833 2003-06-25  Akim Demaille  <akim@epita.fr>
7835         * doc/autoconf.texi (Header Portability): sys/mount.h.
7836         From Gareth McCaughan.
7838 2003-06-23  Akim Demaille  <akim@epita.fr>
7840         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
7841         not all of them.  This fixes 1. the fact that when testing
7842         Autoconf there are many many config.log, 2. the incorrect use of
7843         top_srcdir to find config.log.
7844         Don't mix the detailed output of failed test with the summary of
7845         failures.  Rather, append detailed log afterwards.
7847 2003-06-23  Akim Demaille  <akim@epita.fr>
7849         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
7850         always run: output config.log on $at_group_log.
7852 2003-06-23  Akim Demaille  <akim@epita.fr>
7854         * tests/torture.at (#define header templates): Don't use quotes in
7855         C++ comments as it puzzles Emacs' sh font-lock-mode.
7857 2003-06-23  Akim Demaille  <akim@epita.fr>
7859         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
7860         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
7861         * tests/atspecific.m4: Rename as...
7862         * tests/local.at: This.
7863         * tests/suite.at: Move the globals into...
7864         * tests/local.at: here.
7865         * tests/Makefile.am: Adjust.
7866         * doc/autoconf.texi (testsuite Scripts): Adjust.
7868 2003-06-21  Kevin Ryde  <user42@zip.com.au>
7870         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
7871         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
7872         ensuring we add -std1 for full-ANSI.
7874         * doc/autoconf.texi (hdrindex): New macro.
7875         Add index entries for portability of various standard header files.
7877 2003-06-20  Akim Demaille  <akim@epita.fr>
7879         * configure.ac: Bump to 2.57b.
7881 2003-06-20  Akim Demaille  <akim@epita.fr>
7883         Version 2.57a.
7885 2003-06-20  Akim Demaille  <akim@epita.fr>
7887         * bin/autom4te.in: Don't rely on $HOME being defined.
7888         Reported by Marc Espie as PR/233.
7890 2003-06-20  Akim Demaille  <akim@epita.fr>
7892         * lib/autotest/general.m4: Use at_times_file only if used.
7893         From Nicolas Joly.
7895 2003-06-20  Akim Demaille  <akim@epita.fr>
7897         * config/config.guess, config/config.sub, config/elisp-comp,
7898         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
7899         Update from masters.
7901 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
7903         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
7904         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
7905         (TEST_SCRIPT): New diversion.
7906         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
7907         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
7908         (AT_INIT): Support for expected failures.
7910 2003-06-02  Akim Demaille  <akim@epita.fr>
7912         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
7913         changes.
7914         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
7915         Autoconf nor Automake.
7916         (&contents): New, from Automake.
7917         PODify.
7919 2003-05-28  Paul Eggert  <eggert@twinsun.com>
7921         * NEWS, doc/autoconf.texi (Particular Functions),
7922         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
7923         is the inverse of localtime.
7925 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
7927         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
7928         (handle_exec_errors): New function.  Work around $! being
7929         altered by WEXITSTATUS.
7930         (xqx, xsystem): Use handle_exec_errors.
7932 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
7934         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
7935         Do not call `_exit()', simply modify `$?'.
7936         (xsystem): Reset $! before running system, and check it afterward.
7937         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
7938         63 for version mismatches.
7940 2003-05-23  Akim Demaille  <akim@epita.fr>
7942         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
7943         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
7944         the middle of a line).
7945         * lib/m4sugar/m4sugar.m4: Likewise.
7946         Remove useless spaces in comments.
7948 2003-05-23  Akim Demaille  <akim@epita.fr>
7950         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
7951         exit 63, so that we (or Automake's "missing") can tell the
7952         difference with a plain failure.
7953         * doc/autoconf.texi (Notices): Adjust.
7955 2003-05-23  Akim Demaille  <akim@epita.fr>
7957         * Makefile.am, bin/Makefile.am, config/Makefile.am,
7958         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
7959         White spaces cleanup.
7961 2003-05-22  Jim Meyering  <jim@meyering.net>
7962             Paul Eggert  <eggert@twinsun.com>
7964         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
7965         Remove `#include <stdlib.h>' from the list; we should never
7966         make confdefs.h include <stdlib.h> or <cstdlib>, because the
7967         resulting namespace pollution would cause other tests to fail.
7968         Configure scripts run with some older versions of g++ and HP's
7969         aCC would fail due to such an #include.  Problems reported by
7970         Matthew Mueller in <http://bugs.debian.org/120704> and by
7971         Keith Bostic in
7972         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
7973         In the test, use the test declaration before including <stdlib.h>,
7974         as that's closer to how it'll be used.
7976 2003-05-23  Akim Demaille  <akim@epita.fr>
7978         * doc/autoconf.texi (Header Portability): ucred.h.
7979         From Ian Redfern.
7981 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
7983         Overhaul Autotest's logging: generate separate log files
7984         in testsuite.dir/NNN/testsuite.log, and append them to
7985         testsuite.log instead of re-running the test verbosely.
7987         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
7988         file descriptor, write 0 to at_status_file instead of setting
7989         at_status=0, initialize some new variables (at_status_file,
7990         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
7991         to rerun the tests, instead append the at_group_log to the
7992         at_suite_log when a test fails.
7993         (AT_SETUP): pipe the test case's output into at_tee_pipe,
7994         with the AS_MESSAGE_LOG_FD redirected to stdout.
7995         (AT_CLEANUP): save the output status in $at_status_file
7996         and restore it, redirect the AS_MESSAGE_LOG_FD back to
7997         its original place.
7998         (AT_CHECK): since tests are run with a redirected stdout,
7999         and used to be re-run in verbose mode, turn some $at_verbose
8000         into echo, and don't redirect the output of testing stdout
8001         and stderr.
8003         * lib/autotest/autoconf.texi (testsuite Scripts): Update
8004         the name of the debugging directory and information about
8005         its contents.
8007 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
8009         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
8010         parameter.
8012 2003-05-22  Akim Demaille  <akim@epita.fr>
8014         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
8015         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
8016         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
8017         * lib/autoconf/status.m4: Fix and adjust copyright notices.
8019 2003-05-22  Akim Demaille  <akim@epita.fr>
8021         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
8022         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
8023         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8024         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
8025         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
8026         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
8027         * lib/autoconf/status.m4, lib/autoconf/types.m4,
8028         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
8029         * tests/atspecific.m4, tests/base.at, tests/compile.at,
8030         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
8031         * tests/tools.at, tests/torture.at:
8032         Whitespace clean up.
8033         Suggested by Jim Meyering.
8035 2003-05-22  Akim Demaille  <akim@epita.fr>
8037         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
8038         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
8039         Reported by Jim Meyering.
8041 2003-05-22  Akim Demaille  <akim@epita.fr>
8043         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
8044         Add AC_HELP_STRING  to the obsolete macros section.
8045         Typos.
8046         Use '@.' for sentences that ended in a capital letter.
8047         From Art Haas.
8049 2003-05-22  Akim Demaille  <akim@epita.fr>
8051         * config/config.guess, config/config.sub, config/elisp-comp,
8052         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
8053         * config/texinfo.tex, doc/standards.texi: Update from masters.
8055 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
8057         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
8058         it to eval.
8060 2003-05-21  Akim Demaille  <akim@epita.fr>
8062         * bin/autoupdate.in ($m4): Fix quotation.
8063         Reported by Martin Mokrejs.
8065 2003-05-19  Paul Eggert  <eggert@twinsun.com>
8067         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
8068         Remove non-ASCII characters.
8070 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
8072         * tests/semantics.at (AC_SEARCH_LIBS): New test.
8073         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
8074         AC_CHECK_HEADERS_NEW): New tests.
8076 2003-05-17  Akim Demaille  <akim@epita.fr>
8078         * lib/autoconf/functions.m4: Use the default includes so that
8079         memcmp be declared before being tested.
8080         Reported by Sander Niemeijer.
8081         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
8082         * doc/autoconf.texi (Default Includes): Document
8083         AC_INCLUDES_DEFAULT.
8085 2003-05-17  Akim Demaille  <akim@epita.fr>
8087         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
8088         * doc/autoconf.texi (Obsolete Macros): Adjust.
8089         Reported by Werner LEMBERG and Debian Bug 190886.
8091 2003-05-16  Akim Demaille  <akim@epita.fr>
8093         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
8094         user name space clashes.
8095         Reported by Bruno Haible.
8097 2003-05-16  Akim Demaille  <akim@epita.fr>
8099         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
8100         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
8101         them uniform, and more robust to Perl special characters.
8102         Reported by Martin Mokrejs.
8104 2003-05-14  Akim Demaille  <akim@epita.fr>
8106         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
8108 2003-05-14  Akim Demaille  <akim@epita.fr>
8110         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
8111         linux/irda.h.
8113 2003-05-12  Akim Demaille  <akim@epita.fr>
8115         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
8116         message.
8117         From Matthias Andree.
8119 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
8121         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
8122         and truncate.
8124 2003-05-06  Akim Demaille  <akim@epita.fr>
8126         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
8127         longer updates aclocal.m4 if useless, (ii) if a file m4_included
8128         by aclocal.m4 is changed it might require the importing of another
8129         m4 extension file, i.e., aclocal must be run.
8131         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
8132         (&parse_args): Use --force with aclocal if required and supported.
8133         (&autoreconf_current_directory): Use &run_aclocal.
8135 2003-05-06  Akim Demaille  <akim@epita.fr>
8137         Lock autom4te's cache.
8139         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
8140         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
8141         argument instead of a file name, so that the request file remains
8142         open during the whole autom4te run.
8143         ($icache_file): New.
8144         (&freeze): Lock the $icache_file.
8146 2003-04-29  Derek Price  <derek@ximbiot.com>
8148         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
8149         seperator with m4_append_uniq().  It doesn't work.
8150         (AT_CLEANUP): Add `;' to end of at_help_all.
8151         (AT_INIT): Allow --keywords to be specified more than once.  When
8152         grepping $at_help_all for keywords, use the field and keyword
8153         seperators to ensure a complete keyword match.  Alter at_prev handling
8154         to support the new --keywords behavior.
8156 2003-04-27  Karl Berry  <karl@freefriends.org>
8158         * doc/autoconf.texi: Make the dir entries in the autoconf manual
8159         align better with others.  I also made some of the individual
8160         entries on one line, for brevity and to make it easier for me to
8161         sort my dir-example file in the Texinfo distribution :).
8163 2003-04-12  Jim Meyering  <jim@meyering.net>
8165         * NEWS: Mention the new macro.
8166         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
8167         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
8168         * tests/c.at: Test AC_C_RESTRICT.
8169         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
8171 2003-04-08  Akim Demaille  <akim@epita.fr>
8173         * bin/ifnames.in: Skip C++ comments.
8174         From Jeremy Yallop.
8176 2003-04-08  Akim Demaille  <akim@epita.fr>
8178         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
8179         From Ilya Zakharevich.
8181 2003-04-08  Akim Demaille  <akim@epita.fr>
8183         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
8184         net/if.h, stdlib.h.
8186 2003-04-01  Derek Price  <derek@ximbiot.com>
8188         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
8189         from Akim's checkin of 2003-03-29.
8191 2003-04-01  Derek Price  <derek@ximbiot.com>
8193         * tests/torture.at (Configuring subdirectories): Add missing
8194         close-quote for Akim's change from 2003-03-28.
8196 2003-04-01  Akim Demaille  <akim@epita.fr>
8198         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
8199         (AC, AT, MS): these.
8200         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
8201         New.
8202         Use them.
8203         * doc/Makefile.am (CLEANFILES): Adjust.
8204         (TEXI2DVI): Make it --batch.
8206 2003-03-31  Derek Price  <derek@ximbiot.com>
8208         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
8209         which removed the main loop.
8210         Thanks to Akim Demaille.
8212 2003-03-29  Akim Demaille  <akim@epita.fr>
8214         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
8215         that starts a GUI.
8216         From Ilya Zakharevich.
8218 2003-03-29  Akim Demaille  <akim@epita.fr>
8220         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
8221         documentation to read is Autoconf's.
8222         Suggested by Paul Eggert.
8224 2003-03-28  Akim Demaille  <akim@epita.fr>
8226         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
8227         reading the section "Present But Cannot Be Compiled" when the
8228         header causes problems.
8230 2003-03-28  Akim Demaille  <akim@epita.fr>
8232         * tests/torture.at (Configuring subdirectories): Require aclocal
8233         1.4, otherwise the test fails, as it does support configure.ac.
8234         This fixes the "test 40 failed" bug reports.
8236 2003-03-28  Akim Demaille  <akim@epita.fr>
8238         * doc/autoconf.texi (C Compiler): `#line' portability.
8239         From Paul Eggert and Nelson H. F. Beebe.
8241 2003-03-27  Derek Price  <derek@ximbiot.com>
8243         * lib/autotest/general.m4: Eliminate main loop and reorganize test
8244         layout in order to allow scripting around test groups.
8246 2003-03-27  Derek Price  <derek@ximbiot.com>
8248         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
8249         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
8250         use new diversions in preparation for accepting new arguments and
8251         allowing scripting around tests.
8252         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
8254 2003-03-26  Derek Price  <derek@ximbiot.com>
8256         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
8257         obsolete AC_HELP_STRING.
8258         (AC_HELP_STRING): AU_DEFUN to...
8259         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
8260         * tests/m4sh.at (AS_HELP_STRING): New test.
8262         * tests/acgeneral.at: Regenerated.
8264 2003-03-26  Derek Price  <derek@ximbiot.com>
8266         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
8267         sense.  Verbosify the diversion definitions comment.
8269 2003-03-26  Derek Price  <derek@ximbiot.com>
8271         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
8272         AS_PREPARE.
8274 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
8276         * doc/autoconf.texi (Present But Cannot Be Compiled):
8277         Grammar fixes and minor rewording. (trivial change)
8279 2003-03-06  Paul Eggert  <eggert@twinsun.com>
8281         Work around a problem noted by Nelson H. F. Beebe with coreutils
8282         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
8283         2002/05/09) rejects '#line 32768 "configure"' because the line
8284         number overflows.
8285         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
8286         #line directives.
8287         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
8288         * doc/autoconf.texi (Generating Sources): Document this.
8290 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
8292         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
8293         file name for the m4 program, when it has an "exe" file extension.
8294         DJGPP's error messages include the error code in brackets -
8295         remove the error code during normalization.
8297 2003-02-28  Akim Demaille  <akim@epita.fr>
8299         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
8301 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
8303         * doc/autoconf.texi (Limitations of Make): Remove the section
8304         about `$<' in inference rules, it was a bogus interpretation of
8305         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
8306         Tru64 make in the "target lookup" section.
8307         (Automake): Automake 1.5+ no longer requires special tools to be
8308         present on the developer's host.
8310 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
8312         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
8313         to a shell that can handle redirection or quoting correctly.
8314         Override SHELL with the shell detected by configure.
8315         Use of $^O suggested by Tim van Holder.
8316         * bin/autom4te.in (BEGIN): Likewise.
8317         * bin/autoreconf.in (BEGIN): Likewise.
8318         * bin/autoscan.in (BEGIN): Likewise.
8319         * bin/autoupdate.in (BEGIN): Likewise.
8320         * bin/ifnames.in (BEGIN): Likewise.
8322         * bin/ifnames.in: Add final newline to help and version messages.
8324         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
8325         to cope with DOS-style absolute paths, when constructing
8326         ${ac_make}.
8328         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
8329         When constructing paths with IFS=:, quote the path. If we're
8330         constructing a DOS-style absolute path, we don't want to split it
8331         on the colon.
8333         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
8334         in description.
8336 2003-02-25  Pavel Roskin  <proski@gnu.org>
8338         * bin/autoheader.in: Add missing newline when printing
8339         suggestion how change AC_DEFINE call.
8341 2003-02-24  Paul Eggert  <eggert@twinsun.com>
8343         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
8344         2002-09-01 patch by replacing "test -n" with "test -z".
8345         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
8346         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
8348         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
8349         to fix a mismatch between example and discussion.
8351 2003-02-24  Kevin Ryde  <user42@zip.com.au>
8353         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
8354         format starting with "-".
8356 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
8358         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
8359         is not portable inside Makefile.
8361 2003-02-20  Akim Demaille  <akim@epita.fr>
8363         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
8364         compiler says yeah, but preproc says nope, compiler is right.
8365         Conversely, prompt the reader to send a bug report to the
8366         maintainers of the package, not of Autoconf.
8368 2003-02-20  Klee Dienes  <kdienes@apple.com>
8370         * bin/autoreconf.in (autoreconf_current_directory): Properly
8371         handle an empty aclocal.m4.
8373 2003-02-20  Akim Demaille  <akim@epita.fr>
8375         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
8376         $ac_prefix_program.
8377         From Larry Jones.
8379 2002-12-23  Paul Eggert  <eggert@twinsun.com>
8381         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
8382         innocuous variant befor including <limits.h> or <assert.h>.  This
8383         works around a bug reported by Albert Chin: HP-UX 11i
8384         (and earlier versions) have a <limits.h> that declares
8385         gettimeofday and many other functions.
8387 2002-12-03  Paul Eggert  <eggert@twinsun.com>
8389         Version 2.57.
8391         * NEWS, configure.ac: Update version.
8393         * doc/fdl.texi: Upgrade to FDL version 1.2.
8395         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
8396         nontrivially in main's body, so that f's external declaration is
8397         not optimized away in AIX.  This should fix the bug reported by
8398         Martin Frydl in
8399         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
8401         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
8402         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
8403         defined, to support freestanding compilers.  This should fix the
8404         bug reported by Momchil Velkov in
8405         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
8407         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
8408         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
8409         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
8410         by Simon Josefsson in
8411         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
8413         * Makefile.maint (www-gnu): New macro.
8414         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
8415         the location has moved.
8417 2002-12-02  Martin Frydl  <martin@systinet.com>
8419         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
8420         \(.*\) match is too long and there is something more to be checked.
8421         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
8423 2002-11-15  Akim Demaille  <akim@epita.fr>
8425         Version 2.56.
8427         * config/install-sh: chmod +x.
8428         From Paul Eggert.
8429         * config/move-if-change: Indenting changes.
8430         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
8431         * configure.ac (AM_INIT_AUTOMAKE): here.
8432         Require 1.7.1.
8434 2002-11-14  Akim Demaille  <akim@epita.fr>
8436         Version 2.55.
8438         * config/config.guess, config/config.sub, config/install-sh:
8439         Update from masters.
8441 2002-11-14  Akim Demaille  <akim@epita.fr>
8443         * Makefile.maint: Sync with Bison, i.e.:
8444         (po-check): Scan .l and .y files instead of the
8445         .c and the .h files that they generate.  This fixes the bug
8446         reported by Tim Van Holder in:
8447         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
8448         Look for N_ as well as for _.  Try to avoid matching #define for
8449         N_ and _.
8450         From Paul Eggert.
8452 2002-11-14  Akim Demaille  <akim@epita.fr>
8454         * doc/autoconf.texi (C Compiler): Compiling several files at once.
8455         From Paul Eggert and Albert Chin-A-Young.
8457 2002-11-14  Akim Demaille  <akim@epita.fr>
8459         * doc/autoconf.texi (C Compiler): Solitary backslashes.
8460         From Paul Eggert and Albert Chin-A-Young.
8462 2002-11-14  Kevin Ryde  <user42@zip.com.au>
8464         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
8465         than assigning in main, to avoid HP cc +O3 optimizing it away.
8467 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
8469         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
8470         option.  Process --recheck after parsing all options.  Pass -q
8471         option to configure on --recheck.
8472         (AC_OUTPUT): Pass -q from configure to config.status.
8473         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
8474         arguments to record.
8475         * doc/autoconf.texi (config.status Invocation): Document
8476         config.status -q option.
8478 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
8480         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
8481         Makefile.in if Makefile.am exists.
8482         (output): Strip `.am' from Makefiles.  Don't
8483         output AC_CONFIG_FILES if no Makefiles were found.
8485 2002-11-07  Akim Demaille  <akim@epita.fr>
8487         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
8488         (local_updates): New.
8489         * Makefile.maint: Update, from CVS Bison.
8490         (local_updates): New.
8492 2002-11-06  Akim Demaille  <akim@epita.fr>
8494         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
8495         declaration in extern "C" too.
8496         Reported by Roberto Bagnara.
8498 2002-11-06  Akim Demaille  <akim@epita.fr>
8500         * tests/torture.at (Configuring subdirectories): Don't use grep
8501         -w.
8502         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
8503         Reported by Ezra Peisach.
8505 2002-11-05  Akim Demaille  <akim@epita.fr>
8507         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
8508         Remove.
8509         We _have_ to stop using the old compatibility scheme that tried to
8510         avoid useless backslashes because Libtool 1.4.3 contains a
8511         AC_DEFINE([error_t], [int],
8512         [Define to a type to use for \`error_t' if it is not
8513         otherwise available.])
8514         We _have_ to quote the single quote and backslashes with \.  The
8515         old compatibility scheme saw that ` was backslashed, and therefore
8516         did not quote the single quote.  Hence before this patch, Autoconf
8517         was not compatible with Libtool.
8519 2002-11-04  Paul Eggert  <eggert@twinsun.com>
8521         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
8522         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
8523         LC_NAME, LC_PAPER, LC_TELEPHONE.
8524         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
8526 2002-11-04  Akim Demaille  <akim@epita.fr>
8528         Version 2.54c.
8530         * Makefile.maint (update, cvs-update, po-update, do-po-update):
8531         New.
8532         * config/texinfo.tex: Update.
8534 2002-11-03  Akim Demaille  <akim@epita.fr>
8536         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
8537         from...
8538         (&autoreconf): here.
8539         ($help, $make, &parse_args, &autoreconf_current_directory):
8540         Support -m/--make.
8541         * doc/autoconf.texi (autoreconf Invocation): Adjust.
8543 2002-10-31  Bruno Haible  <bruno@clisp.org>
8545         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
8546         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
8547         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
8548         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
8549         to ac_cv_func_realloc_0_nonnull.
8550         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
8552 2002-10-31  Akim Demaille  <akim@epita.fr>
8554         The test suite was no longer checking for trailing envvars and files.
8556         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
8557         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
8559 2002-10-31  Akim Demaille  <akim@epita.fr>
8561         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
8562         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
8563         Make variable, not a shell variable.
8564         Suggested by Bruno Haible.
8566 2002-10-31  Akim Demaille  <akim@epita.fr>
8568         * bin/autom4te.in (load_configuration): Reject #args out of any
8569         language.
8571 2002-10-31  Akim Demaille  <akim@epita.fr>
8573         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
8574         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
8575         (_AC_RUN_IFELSE): Use it.
8576         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
8577         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
8578         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
8579         inline it.
8581 2002-10-30  Akim Demaille  <akim@epita.fr>
8583         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
8584         * doc/autoconf.texi (autom4te Invocation): Adjust.
8585         Suggested by Tim van Holder.
8587 2002-10-29  Paul Eggert  <eggert@twinsun.com>
8589         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
8590         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
8591         Problem reported by Bruno Haible.
8593 2002-10-29  Akim Demaille  <akim@epita.fr>
8595         * doc/autoconf.texi (Header Templates): Put also in words what the
8596         pictures says to assist free style readers.
8597         (Customizing autom4te): s/--cache=/--cache /.
8599 2002-10-29  Akim Demaille  <akim@epita.fr>
8601         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
8602         sys/wait.h.
8603         sparc_address_test returns void.
8604         Use it with an argument, as prototyped.
8605         From Bruno Haible.
8607 2002-10-29  Akim Demaille  <akim@epita.fr>
8609         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
8610         configure.in, not configure.ac.
8611         Reported by Bruno Haible.
8613 2002-10-29  Akim Demaille  <akim@epita.fr>
8615         * tests/torture.at (Deep Package): New test.
8616         (Configuring subdirectories): Don't use a testSubDir as Autotest
8617         now does it itself.
8619 2002-10-29  Akim Demaille  <akim@epita.fr>
8621         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
8622         * doc/autoconf.texi (Invoking autom4te): Rename as...
8623         (autom4te Invocation): this, for consistency with the other nodes.
8625 2002-10-29  Akim Demaille  <akim@epita.fr>
8627         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
8628         Reported by Ralf Corsepius.
8630 2002-10-29  Akim Demaille  <akim@epita.fr>
8632         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
8633         characters is a back as an `obsolete' warning now.
8634         Reported by Ralf Corsepius.
8636 2002-10-28  Akim Demaille  <akim@epita.fr>
8638         * configure.ac: Bump to 2.54c.
8640 2002-10-28  Akim Demaille  <akim@epita.fr>
8642         Version 2.54b.
8644         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
8646 2002-10-28  Akim Demaille  <akim@epita.fr>
8648         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
8649         m4 executable names, and different GNU M4 version.
8650         Reported by Ezra Peisach and Paul Jarc.
8652 2002-10-27  Akim Demaille  <akim@epita.fr>
8654         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
8655         AC_RUN_IFELSE.
8657 2002-10-27  Akim Demaille  <akim@epita.fr>
8659         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
8660         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
8661         Die when a simple Fortran program cannot be compiled.
8662         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
8663         Issue a warning if no function is given.
8665 2002-10-27  Akim Demaille  <akim@epita.fr>
8667         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
8668         Move the documentation of AC_TRY_RUN to...
8669         (Obsolete Macros): here.
8670         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
8671         (autoconf Invocation): Remove the duplicates with `invoking
8672         autom4te'.
8673         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
8674         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
8676 2002-10-27  Akim Demaille  <akim@epita.fr>
8678         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
8679         and AC_LANG_FUNC_LINK_TRY.
8680         (Examining Libraries): Rename as...
8681         (Running the Linker): this.
8682         Document AC_LINK_IFELSE.
8683         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
8684         (Obsolete Macros): here.
8685         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
8686         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
8687         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
8688         * lib/autoconf/headers.m4 (AC_USG): Likewise.
8690 2002-10-27  Akim Demaille  <akim@epita.fr>
8692         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
8694         More `check config.log' messages.
8696         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
8697         * doc/autoconf.texi (Printing Messages): Document it.
8698         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
8699         appropriate.
8700         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
8701         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
8702         (_AC_COMPILER_OBJEXT): Likewise.
8703         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
8704         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
8705         Likewise.
8706         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
8707         Likewise.
8709         Deprecate macros with unusual interfaces.
8711         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
8712         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
8714         Document the new ones, and proper style.
8716         * doc/autoconf.texi (Generating Sources): New.
8717         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
8718         (Examining Declarations): Rename as...
8719         (Running the Preprocessor): this.
8720         Document AC_PREPROC_IFELSE.
8721         (Examining Syntax): Rename as...
8722         (Running the Compiler): this.
8723         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
8724         (Obsolete Macros): Move the definition of AC_TRY_CPP and
8725         AC_TRY_COMPILE here.
8727 2002-10-27  Akim Demaille  <akim@epita.fr>
8729         Move sections around.
8731         * doc/autoconf.texi (Customizing autom4te): Remove a lost
8732         sentence.
8733         Reported by Burno Haible.
8734         (Language Choice): Now the first section of...
8735         (Writing Tests): this section.
8736         Make the introduction less C-centric.
8737         (Guidelines, Test Functions): Move to...
8738         (Writing Test Programs): this new section.
8739         (Test Programs): Merge into...
8740         (Run Time): this.
8742 2002-10-27  Akim Demaille  <akim@epita.fr>
8744         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
8745         autom4te.in that resulted in the need for two `make' runs.
8747 2002-10-27  Akim Demaille  <akim@epita.fr>
8749         * configure.ac: Bump to 2.54b.
8751 2002-10-25  Akim Demaille  <akim@epita.fr>
8753         Version 2.54a.
8755         * Makefile.maint: Update from the Coreutils.
8756         (AMTAR): Remove, obsolete.
8757         (automake_repo): Update to redhat.com.
8758         (cvs_file): New.
8759         Adjust to the fact that ansi2knr is now hosted by Automake.
8760         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
8761         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
8762         Update from masters.
8763         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
8764         autoscan.pre is not to be installed, and autoscan.list is not to
8765         be shipped.
8766         (CLEANFILES): Add autoscan.list.
8767         (autoscan.list): Disable the cache.
8768         * bin/Makefile.am: Include freeze.mk.
8770 2002-10-25  Akim Demaille  <akim@epita.fr>
8772         * bin/autom4te.in (&load_configuration): Take the file as
8773         argument.
8774         (&parse_args): Handle -C, --cache.
8775         ($help): Adjust.
8776         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
8777         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
8778         * doc/autoconf.texi (Invoking autom4te): Document --cache.
8779         Now a subsection of...
8780         (Using autom4te): This new section.
8781         (Customizing autom4te): New.
8782         (autom4te.cache): Adjust.
8784 2002-10-25  Akim Demaille  <akim@epita.fr>
8786         * doc/autoconf.texi (Generic Headers): More information on how to
8787         use AC_CHECK_HEADERS.
8789 2002-10-25  Akim Demaille  <akim@epita.fr>
8791         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
8792         Space changes.
8794 2002-10-25  Akim Demaille  <akim@epita.fr>
8796         * bin/autoscan.in (output): Output AC_PREREQ.
8797         (%needed_macros): Add AC_PREREQ so that configure.ac without one
8798         be reported.
8800 2002-10-23  Akim Demaille  <akim@epita.fr>
8802         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
8803         document _Bool.
8805 2002-10-23  Akim Demaille  <akim@epita.fr>
8807         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
8808         Reported by Peter Eisentraut.
8810 2002-10-23  Akim Demaille  <akim@epita.fr>
8812         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
8813         type _Bool.
8814         Fix a typo.
8815         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
8816         Eggert's recommandations.
8818 2002-10-22  Akim Demaille  <akim@epita.fr>
8820         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
8821         Bison, by Paul Eggert.
8822         * doc/autoconf.texi (Particular Headers): Document it.
8824 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
8826         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
8827         `$ac_configure_args'.
8829 2002-10-22  Akim Demaille  <akim@epita.fr>
8831         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
8832         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
8833         From Art Haas.
8835 2002-10-22  Akim Demaille  <akim@epita.fr>
8837         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
8839         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
8840         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
8841         (_AC_CHECK_HEADER_NEW): Rename as...
8842         (AC_CHECK_HEADER): this.
8844 2002-10-22  Akim Demaille  <akim@epita.fr>
8846         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
8847         words about HP-UX cmp: it was actually a user-written cmp.
8849 2002-10-22  Akim Demaille  <akim@epita.fr>
8851         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
8852         are a few warnings.
8853         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
8854         Quote for Perl '' strings, not "".
8855         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
8856         strings.
8858 2002-10-22  Akim Demaille  <akim@epita.fr>
8860         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
8861         characters is a syntax warning now.
8862         (_AS_QUOTE): Accept $2 as list of characters to quote.
8863         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
8864         Quote for Perl, not sh.
8865         * bin/autoheader.in: When $debug, report the file which is
8866         `do'ne.
8867         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
8868         `@', to tickle Perl's lists.
8869         Reported by Carlos Velasco.
8871 2002-10-18  Akim Demaille  <akim@epita.fr>
8873         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
8874         missing included files _are_ errors.
8875         Thanks to Alexandre Duret-Lutz.
8876         * tests/tools.at (autom4te cache): Adjust.
8877         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
8878         (AT_CHECK_M4SUGAR): Use it.
8879         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
8880         Adjust.
8881         * tests/tools.at (autom4te): Now it does exit 1.
8883 2002-10-17  Akim Demaille  <akim@epita.fr>
8885         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
8886         Fixes the `AC_ARG_VAR' test failures.
8887         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
8888         * lib/freeze.mk (check-forbidden-patterns): New.
8889         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
8890         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
8891         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
8892         /dev/null.
8893         Reported months ago by H. Merijn Brand.
8895 2002-10-17  Akim Demaille  <akim@epita.fr>
8897         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
8899 2002-10-16  Paul Eggert  <eggert@twinsun.com>
8901         * Makefile.maint (wget_files): Remove ansi2knr.c.
8902         (ansi2knr.c-url_prefix): Remove.
8904 2002-10-16  Akim Demaille  <akim@epita.fr>
8906         Because of caching, some files that no longer exist and are no
8907         longer required can still cause errors.
8908         Reported by Alexandre Duret-Lutz.
8910         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
8911         to frozen files in @ARGV, as @ARGV must remain being a list of
8912         files.  Rather, at M4 call sites, use this...
8913         (&files_to_options): New function.
8914         (&freeze): Use &error.
8915         (&up_to_date): If a file that was included according to the cache
8916         is no longer there, then the output is out dated.
8917         (&main): Don't even check whether a file is up to date is anyway
8918         --force is given.
8919         * tests/tools.at (autom4te cache): New.
8921 2002-10-16  Akim Demaille  <akim@epita.fr>
8923         * bin/autoconf.as: Kill dead options.
8924         * bin/autoupdate.in (&parse_args): Kill old options.
8925         * bin/autoreconf.in (&parse_args): Remove dead options.
8926         Factor some code.
8927         (&autoreconf): Report the directories we enter *and leave*, so
8928         that error messages can be easily located, and use GNU Make
8929         format, so that Emacs' compile mode understands us.
8930         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
8931         if some file was changed instead of `print'.
8932         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
8933         (&parse_args): Remove the dead options.
8934         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
8935         autoheader's quiet mode.
8936         (AT_CHECK_AUTOUPDATE): Likewise.
8937         * tests/tools.at (autoupdate): Adjust.
8938         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
8940 2002-10-11  Akim Demaille  <akim@epita.fr>
8942         No longer use CPP to check for the existing of headers: use CC to
8943         check for compilability.
8945         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
8946         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
8947         (_AC_CHECK_HEADER_NEW): Rename as...
8948         (AC_CHECK_HEADER): this.
8950         * lib/autotest/general.m4 (AT_INIT): Include the failed test
8951         numbers in the Subject suggestion.
8953 2002-10-11  Akim Demaille  <akim@epita.fr>
8955         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
8956         Suggest using AC_CHECK_DECLS instead.
8958 2002-10-11  Akim Demaille  <akim@epita.fr>
8960         * tests/torture.at (AC_ARG_VAR): Have configure report the value
8961         of `precious'.
8963 2002-10-11  Akim Demaille  <akim@epita.fr>
8965         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
8966         file name to enable parallel executions.
8967         From Sam Varshavchik.
8969 2002-10-08  Akim Demaille  <akim@epita.fr>
8971         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
8972         aclocal invocation, as Gettext macros might not be visible to
8973         aclocal.
8974         Instead of blindly running autopoint, scan configure.ac (not the
8975         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
8976         Reported by Paul D. Smith.
8978 2002-10-08  Paul Eggert  <eggert@twinsun.com>
8980         Work around problems found when POSIXLY_CORRECT=1 is set.
8981         None of this seems to have anything to do with POSIX, really,
8982         but it's how Perl getopt works.
8983         * bin/autom4te.in (parse_args): Configure GetOpt with
8984         "permute", too.
8985         * doc/autoconf.texi (Invoking autom4te):
8986         --warning -> --warnings.
8987         * lib/autom4te.in: --warning -> --warnings.
8989 2002-09-28  Akim Demaille  <akim@epita.fr>
8991         * doc/autoconf.texi (autom4te.cache): New section.
8993 2002-09-28  Akim Demaille  <akim@epita.fr>
8995         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
8996         (Automake-preselections): Update.
8997         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
8999 2002-09-28  Akim Demaille  <akim@epita.fr>
9001         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
9002         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
9003         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
9004         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
9006 2002-09-28  Akim Demaille  <akim@epita.fr>
9008         * tests/torture.at (Configuring subdirectories): Be robust to
9009         users who use config.site to require for a cache: in this case,
9010         the two last configure runs, using two different sets of
9011         arguments, trigger a legitimate error.
9013 2002-09-28  Akim Demaille  <akim@epita.fr>
9015         * tests/m4sh.at (Functions Support, Functions and return Support):
9016         New.
9018 2002-09-28  Akim Demaille  <akim@epita.fr>
9020         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
9021         autoheader are Perl programs.
9022         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
9023         (autom4te): Specify that the sources are in the $srcdir.
9024         * doc/autoconf.texi (Installation Directory Variables): Adjust.
9026 2002-09-28  Akim Demaille  <akim@epita.fr>
9028         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
9029         (tm_zone): Move their rules to...
9030         * lib/autoconf/types.m4: here, using AN_ macros.
9031         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
9032         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
9033         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
9034         * lib/autoconf/programs.m4: here.
9035         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
9036         (ETAGS_FOR_AUTOCONF): New.
9037         Use it.
9039 2002-09-28  Akim Demaille  <akim@epita.fr>
9041         * lib/autoconf/autoscan.m4: New file.
9042         * lib/autoconf/autoconf.m4: Include it.
9043         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
9044         that were listed in the original autoscan.list.
9045         * lib/autoconf/headers.m4: Similarly with headers.
9046         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
9047         (.m4.m4f): Don't pass --prepend-include, since that's done by
9048         tests/autom4te itself.
9049         * lib/autoscan/Makefile.am: Include freeze.mk.
9050         (autoscan.list): New target --this file is no longer a source.
9051         (autoscan.pre): New file.
9053 2002-09-28  Akim Demaille  <akim@epita.fr>
9055         * bin/autoscan.in (@kinds): Make them singular.
9056         Adjust all uses.
9057         (&init_tables): When --debug, report the list of rules to ease
9058         tracking changes in autoscan.list.
9059         * lib/autoscan/autoscan.list (function): Strip comments, sort.
9061 2002-09-28  Akim Demaille  <akim@epita.fr>
9063         * lib/autoscan/functions, lib/autoscan/headers,
9064         * lib/autoscan/identifiers, lib/autoscan/makevars,
9065         * lib/autoscan/programs: Merge into...
9066         * lib/autoscan/autoscan.list: this.
9067         * bin/autoscan.in (&init_tables): Adjust.
9069 2002-09-28  Akim Demaille  <akim@epita.fr>
9071         * lib/autoscan/functions, lib/autoscan/headers,
9072         * lib/autoscan/identifiers, lib/autoscan/makevars,
9073         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
9074         `functions' line is now prefixed with `function:'.
9075         * bin/autoscan.in (&init_tables): Adjust.
9077 2002-09-28  Akim Demaille  <akim@epita.fr>
9079         From now on, autoscan files must always map a macro name to a
9080         word: there is no `default' macro for autoscan.
9082         * bin/autoscan.in (&init_tables): Reject entries with no macro at
9083         all.
9084         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
9085         explicit.
9087 2002-09-28  Akim Demaille  <akim@epita.fr>
9089         * bin/autoscan.in (%c_keywords): Remove.
9090         (&used): Keep only track of the words we might be interested in.
9091         (&output_kind): It is no longer needed to look for non active
9092         checks.
9094 2002-09-27  Akim Demaille  <akim@epita.fr>
9096         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
9097         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
9098         * lib/autoscan/functions: Adjust.
9099         * doc/autoconf.texi (Particular Functions): Adjust.
9101 2002-09-27  Akim Demaille  <akim@epita.fr>
9103         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
9104         from /tmp.
9105         Thanks to Bill Moseley and Paul Eggert.
9106         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
9107         the tmpdir must be created.
9108         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
9109         dir be in the build tree, instead of $TMPDIR.
9111 2002-09-27  Akim Demaille  <akim@epita.fr>
9113         * bin/autoscan.in: Improve the comments.
9114         (&parse_args): Drop obsolete undocumented options.
9115         (&output_kind): Output warnings.
9116         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
9117         (getwd): Trigger a warning.
9119 2002-09-26  Akim Demaille  <akim@epita.fr>
9121         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
9122         Reported by Ralf Corsepius.
9123         * doc/autoconf.texi (autoreconf Invocation): Likewise.
9125 2002-09-26  Akim Demaille  <akim@epita.fr>
9127         Single suffix rules and seperated dependencies are not portable.
9129         * doc/autoconf.texi (Installation Directory Variables): Update.
9130         (Limitations of Make): Some about `Single Suffix Rules and
9131         Separated Dependencies'.
9132         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
9133         (ifnames, autoscan, autom4te): Un-factor into several rules.
9135 2002-09-25  Paul Eggert  <eggert@twinsun.com>
9137         * BUGS (Interoperability bugs): New section.  Mention libtool
9138         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
9140 2002-09-24  Paul Eggert  <eggert@twinsun.com>
9142         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
9143         make handles suffix-rules differently from GNU make.
9145         * bin/Makefile.am (SUFFIXES, .in): Remove.
9146         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
9147         Move the body of the old .in rule here.
9149 2002-09-16  Akim Demaille  <akim@epita.fr>
9151         i960 compilers create `b.out' files by default.
9152         Reported by Ralf Corsepius.
9154         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
9155         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
9157 2002-09-13  Paul Eggert  <eggert@twinsun.com>
9159         * doc/autoconf.texi (Particular Headers): Remove obsolete
9160         reference to `struct timezone' in the description of
9161         AC_HEADER_TIME.
9163 2002-09-13  Akim Demaille  <akim@epita.fr>
9165         Version 2.54.
9167         * config/config.sub, config/config.guess: Update.
9168         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
9169         * Makefile.am: Adjust.
9171 2002-09-13  Akim Demaille  <akim@epita.fr>
9173         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
9174         reading config.log when the compiler is rejected.
9175         Suggested by Guido Draheim.
9177 2002-09-13  Akim Demaille  <akim@epita.fr>
9179         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
9180         (chdir_init) might hang when stat'ing mounted directories.
9181         Reported by Vance Shipley.
9183 2002-09-12  Akim Demaille  <akim@epita.fr>
9185         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
9186         the lists.
9188 2002-09-12  Akim Demaille  <akim@epita.fr>
9190         * doc/autoconf.texi (Defining Symbols): Present two different
9191         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
9192         difference between 1 argument calls, and 2-3 argument calls.
9194 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
9196         * doc/autoconf.texi: Review grammar and punctuation.
9198 2002-09-11  Paul Eggert  <eggert@twinsun.com>
9200         * doc/autoconf.texi: Fix minor formatting, spelling, and
9201         grammatical typos.
9202         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
9203         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
9204         is obsolescent.
9206 2002-09-11  Akim Demaille  <akim@epita.fr>
9208         * doc/autoconf.texi (Questions): Rename as...
9209         (FAQ): this.
9210         (Defining Directories): New.
9212 2002-09-09  Akim Demaille  <akim@epita.fr>
9214         * doc/autoconf.texi (Making testsuite Scripts): Update.
9215         Suggested by Nishio Futoshi.
9217 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
9219         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
9220         plain `@' is wanted.
9222 2002-09-09  Akim Demaille  <akim@epita.fr>
9224         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
9225         `duplicates', since the algorithm was too naive and could keep
9226         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
9227         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
9228         Reported by Ralf Corsepius.
9229         * tests/torture.at (Configuring subdirectories): Exercise these
9230         cases.
9232 2002-09-09  Akim Demaille  <akim@epita.fr>
9234         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
9235         looking for a replacement file.
9236         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
9237         directory is relative.
9238         * doc/autoconf.texi (Generic Functions): Clarify the replacement
9239         directory definition.
9240         Reported by Andreas Schwab and Jim Meyering.
9242 2002-09-06  Akim Demaille  <akim@epita.fr>
9244         * doc/autoconf.texi (Setting Output Variables): Clarify what
9245         precious variables are.
9246         Suggested by Pontus Skoeld.
9248 2002-09-05  Akim Demaille  <akim@epita.fr>
9250         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
9251         (ifnames, autoscan, autom4te): Since we don't only depend on
9252         configure.ac variables (such as VERSION etc.), but also on prefix
9253         and so forth, depend on Makefile, not configure.ac.
9254         Reported by Alexandre Duret-Lutz.
9255         * doc/autoconf.texi (Installation Directory Variables): Adjust.
9257 2002-09-05  Kevin Ryde  <user42@zip.com.au>
9259         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
9260         doesn't seem to be confined to ia64, just say "some versions".
9262 2002-09-04  Akim Demaille  <akim@epita.fr>
9264         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
9265         Automake 1.6c.
9266         * Makefile.am (maintainer-clean-local): Remove.
9267         (MAINTAINERCLEANFILES): Remove COPYING.
9269 2002-09-03  Paul Eggert  <eggert@twinsun.com>
9271         * doc/autoconf.texi (Configuration Commands): Remove obsolete
9272         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
9273         Brinkmann.
9275 2002-09-03  Akim Demaille  <akim@epita.fr>
9277         * configure.ac: Bump to 2.53d.
9278         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
9279         as of today, on Automake's team suggestion.
9281 2002-09-03  Akim Demaille  <akim@epita.fr>
9283         Version 2.53c.
9285 2002-09-02  Akim Demaille  <akim@epita.fr>
9287         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
9288         SITE_MACRO_DIR.
9289         * configure.ac: Disable SITE_MACRO_DIR.
9291 2002-09-02  Jim Meyering  <meyering@lucent.com>
9293         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
9294         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
9295         Also, tweak grammar: s/make sure to/be sure to/.
9297 2002-09-02  Paul Eggert  <eggert@twinsun.com>
9299         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
9300         directory names are generally preferable to physical names.
9302 2002-09-02  Akim Demaille  <akim@epita.fr>
9304         * lib/Autom4te/General.pm (&update_file): s/die/error/.
9305         Reported by Raja R. Harinath.
9306         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
9307         * bin/autoupdate.in: Use error instead of die.
9309 2002-09-01  Paul Eggert  <eggert@twinsun.com>
9311         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
9312         ordinary shell concatenation rather than echo+tr+sed command that
9313         runs afoul of a long-line-related sed bug in Solaris 8.
9315         * bin/autoheader.in (parse_args): --warning -> --warnings.
9317         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
9318         stdout, as traditional "ls" does.
9319         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
9320         _AC_COMPILER_EXEEXT_O): Likewise.
9321         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
9323         * bin/autoconf.as: Add --prepend-include option.  This patch was
9324         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
9325         but bin/autoconf.in is generated automatically from bin/autoconf.as.
9327         * bin/autoconf.in, configure: Regenerate.
9329         * doc/autoconf.texi (Special Shell Variables): Mention
9330         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
9332         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
9333         MAILPATH and set PS1, PS2, PS4 to default values, to work
9334         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
9335         For LC_ALL etc, first try to set to "C" as POSIX requires and as
9336         the Autoconf documentation specifies; fall back to "unset" only if
9337         this fails.  Use a shell for-loop for this rather than an m4 loop,
9338         to shorten the output script.
9340 2002-08-30  Paul Eggert  <eggert@twinsun.com>
9342         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
9343         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
9344         for the CDPATH problem.  Document PWD.
9345         (Limitations of Builtins): Document the problem that "cd $foo" and
9346         "ls $foo" may refer to different directories in shells conforming
9347         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
9348         example, since the old example is now out of date.
9350         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
9351         FOO" and "ls FOO" talk about different directories; this catches
9352         problems when POSIX 1003.1-2001 "cd" fails due to symlink
9353         spaghetti.
9355         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
9356         of rolling our own unset.
9357         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
9358         in practice we needn't worry about CDPATH if unset doesn't work.
9360         * Makefile.in, aclocal.m4, bin/Makefile.in,
9361         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
9362         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
9363         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
9364         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
9365         tests/Makefile.in: Regenerate with Automake 1.6.3.
9367         * config/config.guess, config/config.sub, config/mkinstalldirs:
9368         Update.
9370         * configure: Regenerate with self.
9372 2002-08-30  Kevin Ryde  <user42@zip.com.au>
9374         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
9375         default output.
9377 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9379         * bin/autom4te.in (Request::load): Correctly test for "do" read
9380         failure.
9382 2002-08-29  Akim Demaille  <akim@epita.fr>
9384         * lib/Autom4te/General.pm (&xqx): New.
9385         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
9386         hand, which is not portable.
9387         (&error): New.
9388         * bin/autom4te.in: Use them.
9389         Use &error instead of die.
9390         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
9391         Adjust.
9393 2002-08-17  Paul Eggert  <eggert@twinsun.com>
9395         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
9396         default list of compilers to try, since it was long ago superseded
9397         by the ksh fc builtin.  Suggested by Steven G. Johnson.
9399 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
9401         * doc/autoconf.texi (Invoking autom4te): End the option table,
9402         fixing a bug introduced by the previous patch.
9403         (Limitations of Make): Add a 'target lookup' subentry in the
9404         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
9406 2002-07-29  Mark D. Roth  <roth@feep.net>
9408         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
9409         options and use $AUTOM4TE_PATH.
9410         * doc/autoconf.texi: Remove documentation of autom4te
9411         --include-envvar and --site-macro-subdir options and document
9412         use of $AUTOM4TE_PATH.
9413         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
9414         arguments from each language section.
9416 2002-07-29  Paul Eggert  <eggert@twinsun.com>
9418         * doc/install.texi: Include copyright symbol in copyright notice.
9420         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
9421         Replace with:
9422         (AM_MAKEINFOFLAGS): New macro.
9423         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
9424         * Makefile.am (INSTALL): Use the new macros.
9425         Use -o rather than --output, since "missing" does not grok --output.
9427 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
9429         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
9430         comments do not always work. Never trust the exit status of
9431         `make -k'.
9433 2002-07-24  Kevin Ryde  <user42@zip.com.au>
9435         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
9436         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
9438 2002-07-23  Paul Eggert  <eggert@twinsun.com>
9440         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
9441         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
9442         apparently treats PATH="nonexistent" as if it contained ".".
9443         Bug reported by Stefan `Sec' Zehl.
9445 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
9447         * doc/autoconf.texi (Limitations of Make): Mention the special
9448         handling of the obj/ directory by BSD make.
9450 2002-07-20  Kevin Ryde  <user42@zip.com.au>
9452         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
9453         backslashes.
9455 2002-07-19  Akim Demaille  <akim@epita.fr>
9457         * doc/autoconf.texi (Function Portability): `exit'.
9458         (Programming in M4sh): Ethymology of M4sh.
9460 2002-07-19  Akim Demaille  <akim@epita.fr>
9462         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
9464 2002-07-18  Akim Demaille  <akim@epita.fr>
9466         Version 2.53b.
9468 2002-07-18  Akim Demaille  <akim@epita.fr>
9470         * config/config.guess, config/config.sub: Update.
9472 2002-07-18  Akim Demaille  <akim@epita.fr>
9474         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
9475         Automake's parts.
9477         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
9478         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
9479         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
9481 2002-07-18  Akim Demaille  <akim@epita.fr>,
9482             Alexandre Duret-Lutz  <duret_g@epita.fr>
9484         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
9485         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
9487 2002-07-17  Russ Allbery  <rra@stanford.edu>
9489         * doc/autoconf.texi (Initializing configure): Clarify the
9490         description of the tarname default.
9492 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
9494         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
9495         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
9496         latter was not run.
9498 2002-07-17  Akim Demaille  <akim@epita.fr>
9500         * lib/Autom4te/General.pm (find_file): Browse the directories in
9501         the order they are given.
9503 2002-07-17  Akim Demaille  <akim@epita.fr>
9505         * tests/wrapsh.as, tests/wrappl.as: Merge into...
9506         * tests/wrapper.as: this.
9507         * tests/Makefile.am, configure.ac: Adjust.
9509 2002-07-17  Mark D. Roth  <roth@feep.net>
9511         * configure.ac: Add --enable-site-macro-dir option.
9512         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
9513         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
9514         --site-macro-subdir options.
9515         * bin/autoconf.in: Add --prepend-include option.
9516         * bin/autoheader.in: Add --prepend-include option.
9517         * bin/autoreconf.in: Add --prepend-include option.
9518         * bin/autoscan.in: Add --prepend-include option.
9519         * bin/autoupdate.in: Add --prepend-include option.
9520         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
9521         macro directory, remove note that include path directories are
9522         used in reverse order, and document --prepend-include option.
9523         * lib/autom4te.in: Use --prepend-include instead of --include.
9524         * tests/wrapsh.in: Use --prepend-include instead of --include.
9526 2002-07-17  Akim Demaille  <akim@epita.fr>
9528         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
9529         tarnames.
9530         * doc/autoconf.texi (Initializing configure): Adjust.
9532 2002-07-17  Akim Demaille  <akim@epita.fr>
9534         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
9535         (_AC_FUNC_MALLOC): New.
9536         (AC_FUNC_MALLOC): Use the latter.
9537         Define HAVE_MALLOC to 0 if broken.
9538         * doc/autoconf.texi (Particular Functions): Adjust.
9540 2002-07-16  Akim Demaille  <akim@epita.fr>
9542         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
9543         * doc/autoconf.texi (C Compiler): Adjust.
9545 2002-07-09  Akim Demaille  <akim@epita.fr>
9547         * doc/autoconf.texi: Properly set the ``header'' part.
9549 2002-07-09  Akim Demaille  <akim@epita.fr>
9551         * doc/autoconf.texi (Systemology): Some about Darwin.
9553 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
9555         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
9556         Don't use AC_REQUIRE in AU_DEFUN.
9558 2002-07-09  Art Haas  <ahaas@neosoft.com>
9560         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
9562 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
9564         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
9565         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
9566         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
9567         so that Emacs setups GNU style for perl-mode and cperl-mode.
9569 2002-06-27  Paul Eggert  <eggert@twinsun.com>
9571         * config/install-sh: Quote $src.  Prefer || to test's -o option,
9572         as per "Limitations of Builtins".
9573         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
9574         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
9576         * tests/mktests.sh: Use grep instead of fgrep, as per
9577         "Limitations of Builtins".
9579 2002-06-15  Paul Eggert  <eggert@twinsun.com>
9581         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
9582         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
9583         so that we consistently test the just-built programs.
9584         * tests/wrappl.as: Likewise.
9586 2002-06-12  Paul Eggert  <eggert@twinsun.com>
9588         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
9589         name, so that symlinks to 'autoconf' work properly.  Bug reported
9590         by Bruno Haible.
9591         * bin/autoheader.in (AUTOM4TE): Likewise.
9592         * bin/autoreconf.in (autoconf, autoheader): Likewise.
9593         * bin/autoscan.in (autom4te): Likewise.
9594         * bin/autoupdate.in (autom4te): Likewise.
9596         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
9597         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
9598         on Solaris 2.5.1.
9600 2002-06-11  Andreas Schwab  <schwab@suse.de>
9602         * doc/autoconf.texi: Add more dir entries.
9604 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
9606         * bin/autom4te.in ($cache): Don't define using `$me', the name
9607         of the cache should not depend on the name under which autom4te
9608         was installed.
9610 2002-06-07  Akim Demaille  <akim@epita.fr>
9612         * tests/tools.at (autoconf: forbidden tokens, basic)
9613         (autoconf: forbidden tokens, exceptions): Adjust to the change of
9614         words in autom4te.in.
9616 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
9618         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
9619         _AC_LANG_PROGRAM_C_F77_HOOKS.
9621 2002-06-07  Akim Demaille  <akim@epita.fr>
9623         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
9624         rename as...
9625         (AC_REPLACE_FNMATCH): this.
9626         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
9627         AC_FUNC_FNMATCH_GNU.
9629 2002-06-07  Akim Demaille  <akim@epita.fr>
9631         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
9632         Rosetta Stone for Unix.
9634 2002-06-07  Akim Demaille  <akim@epita.fr>
9636         * bin/autom4te.in (warn_forbidden): When rejecting a token,
9637         suggest m4_pattern_allow.
9638         Suggested by Adam J. Richter.
9640 2002-06-07  Akim Demaille  <akim@epita.fr>
9642         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
9643         ac_config_libobj_dir.
9644         (AC_CONFIG_LIBOBJ_DIR): New.
9645         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
9646         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
9647         Use ac_config_libobj_dir to find the replacement files.
9648         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
9649         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
9650         (AC_REPLACE_FNMATCH_GNU): these.
9651         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
9652         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
9653         * tests/mktests.sh (ac_exclude_list): Don't check
9654         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
9656 2002-06-06  Paul Eggert  <eggert@twinsun.com>
9658         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
9659         if ln doesn't work.
9660         * NEWS: Likewise.
9661         * doc/autoconf.texi (Configuration Links): Likewise.
9662         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
9664 2002-06-05  Paul Eggert  <eggert@twinsun.com>
9666         * config/config.guess, config/config.sub, config/texinfo.tex:
9667         Update from masters.
9669 2002-05-29  Paul Eggert  <eggert@twinsun.com>
9671         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
9672         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
9673         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
9674         Likewise.
9675         * lib/autoconf/Makefile.am (check-local): Likewise.
9676         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
9677         * lib/autoconf/types.m4 (commentary only): Likewise.
9678         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
9679         * lib/autotest/Makefile.am (check-local): Likewise.
9680         * lib/m4sugar/Makefile.am (check-local): Likewise.
9681         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
9682         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
9684         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
9685         * doc/autoconf.texi (Particular Programs): Document them.
9686         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
9687         * NEWS: Likewise.
9689 2002-05-27  Paul Eggert  <eggert@twinsun.com>
9691         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
9692         * NEWS, doc/autoconf.texi (Particular Types): Document it.
9693         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
9694         instead of AC_MBSTATE_T, which never existed.
9696 2002-05-23  Akim Demaille  <akim@epita.fr>
9698         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
9699         version of Autoconf that is discussed.
9701 2002-05-22  Paul Eggert  <eggert@twinsun.com>
9703         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
9704         from the default list of compilers to try.  Suggested by
9705         Kate Hedstrom.
9706         * NEWS: Document the above.
9707         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
9709 2002-05-17  Paul Eggert  <eggert@twinsun.com>
9711         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
9712         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
9713         This improves on an earlier suggestion by H. Peter Anvin.
9715 2002-05-16  Paul Eggert  <eggert@twinsun.com>
9717         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
9718         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
9719         Both macros now accept an optional source-dir arg.
9720         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
9722         * NEWS: Document this.
9723         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
9725         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
9726         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
9727         not for GNU extensions; this undoes part of the 2000-11-03 change,
9728         reverting to 2.13-compatible behavior.
9729         Add new optional argument DIR.
9730         (AC_FUNC_FNMATCH_GNU): New macro.
9732         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
9734 2002-05-08  Paul Eggert  <eggert@twinsun.com>
9736         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
9737         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
9738         and it causes a 'test' syntax error if it fails.
9739         Bug reported by Stephen Gildea.
9741         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
9742         If prototypes are supported, use them to check this at compile-time,
9743         instead of trying to check it at run-time.  If we must do a run-time
9744         check, assume that setvbuf is standard when cross-compiling, as
9745         nonstandard setvbuf occurs only on ancient and unlikely hosts.
9746         Bug reported by Paul D. Smith.
9748         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
9749         argument specifying location of getloadavg.c.  This removes a
9750         FIXME.  This idea was taken from Jim Meyering's implementation in
9751         textutils.
9752         * doc/autoconf.texi (Particular Functions): Document this.
9753         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
9754         that's what the code does; this fixes a bug reported by
9755         Paul D. Smith.
9757 2002-05-03  Akim Demaille  <akim@epita.fr>
9759         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
9760         autopoint instead of gettextize.
9761         ($uses_alocal): Rename as...
9762         ($uses_aclocal): this.
9763         * doc/autoconf.texi (autoreconf Invocation): Adjust.
9764         Suggested by Bruno Haible.
9766 2002-05-03  Akim Demaille  <akim@epita.fr>
9768         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
9770 2002-04-29  Paul Eggert  <eggert@twinsun.com>
9772         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
9773         files to be 1 second older; just set them to be the same time.
9774         Also, sleep 1 second after the first aclocal, to work around
9775         problems with sub-second time stamps on the input files.
9777 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
9779         * doc/autoconf.texi: Mention "set -e -x" lossage
9780         under node "Limitations of Builtins".
9782 2002-04-29  Akim Demaille  <akim@epita.fr>
9784         * doc/install.texi: Better wording for setting variables when
9785         running configure.
9786         From Christian Cornelssen.
9788 2002-04-29  Akim Demaille  <akim@epita.fr>
9790         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
9791         of lack of $LINENO support, then the test will compare the $LINENO
9792         in testsuite vs. the lineno in the test file.  This is wrong, of
9793         course.
9794         Be sure to protect it.
9795         Reported by Patrick Welche.
9797 2002-04-25  Akim Demaille  <akim@epita.fr>
9799         * doc/autoconf.texi (Obsolete Macros): Typo.
9800         Reported by Vladimir Volovich.
9802 2002-04-25  Akim Demaille  <akim@epita.fr>
9804         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
9805         than some of the input files, hence, on the second run of aclocal,
9806         if some of its input are younger, make them older.
9807         Suggested by Paul Eggert.
9809 2002-04-25  Akim Demaille  <akim@epita.fr>
9811         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
9812         Thanks to Paul Eggert.
9814 2002-04-25  Akim Demaille  <akim@epita.fr>
9816         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
9817         and ac_subst_vars be sh variables containing the list of
9818         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
9819         DEFAULT diversion.
9820         (_AC_INIT_PREPARE): Use them to log them.
9821         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
9822         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
9823         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
9824         _AC_SUBST_FILES and _AC_SUBST_VARS.
9825         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
9827 2002-04-24  Akim Demaille  <akim@epita.fr>
9829         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
9830         autoheader, so that automake does not complain about a missing
9831         config.h.in that was to be created.
9833 2002-04-23  Akim Demaille  <akim@epita.fr>
9835         * bin/autoheader.in (parse_args): --warning takes an argument.
9836         Fixes PR/220.
9838 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
9840         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
9841         and bb.out when cleaning up.
9843 2002-04-22  Akim Demaille  <akim@epita.fr>
9845         Version 2.53a.
9847 2002-04-22  Akim Demaille  <akim@epita.fr>
9849         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
9851 2002-04-22  Akim Demaille  <akim@epita.fr>
9853         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
9854         comma.
9855         Reported by Gregory Giannoni.
9857 2002-04-22  Akim Demaille  <akim@epita.fr>
9859         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
9860         Fixes false failures on Darwin.
9862 2002-04-21  Paul Eggert  <eggert@twinsun.com>
9864         * TODO, bin/autoupdate.in, doc/autoconf.texi,
9865         lib/autoconf/general.m4, lib/autoconf/libs.m4,
9866         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
9867         tests/tools.at: Minor spelling and grammar fixes.
9869 2002-04-20  Paul Eggert  <eggert@twinsun.com>
9871         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
9872         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
9873         * lib/autotest/general.m4 (AT_INIT): Likewise.
9874         * tests/atgeneral.m4 (AT_INIT): Likewise.
9876 2002-04-19  Paul Eggert  <eggert@twinsun.com>
9878         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
9879         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
9880         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
9881         lib/autoconf/functions.m4, lib/autoconf/general.m4,
9882         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
9883         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
9884         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
9885         Minor spelling and grammar fixes.
9887         * doc/autoconf.texi: Follow the outline suggested in the GNU
9888         Sample Texts sections of the Texinfo 4.2 manual.  Most
9889         importantly, this makes sure that the copyright notices appear in
9890         all output formats.  You probably need Texinfo 4.2 to generate
9891         the manual now.
9893         Fix some bugs when using "$@" when there might be zero positional
9894         arguments in cases where this matters.
9896         * bin/autoconf.as: Rewrite so that the problem does not come up.
9897         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
9898         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
9899         * lib/autotest/general.m4 (AT_INIT): Likewise.
9901         * bin/autoheader.in: Use 'case' statement to work around problem.
9902         * bin/auto4mte.in: Likewise.
9903         * bin/autoreconf.in: Likewise.
9904         * bin/autoscan.in: Likewise.
9905         * bin/autoupdate.in: Likewise.
9906         * bin/ifnames.in: Likewise.
9908         * doc/autoconf.texi (Shell Substitutions): Document the problem.
9910         * lib/autotest/general.m4 (AT_INIT):
9911         Use Zsh alias to work around problem.
9912         * tests/atgeneral.m4 (AT_INIT): Likewise.
9914         * tests/c.at: We can't have zero arguments, so remove workaround
9915         that is not portable to Zsh.
9917 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
9919         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
9920         from aclocal.m4 too.
9922 2002-04-12  Akim Demaille  <akim@epita.fr>
9924         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
9926 2002-04-10  Akim Demaille  <akim@epita.fr>
9928         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
9929         workaround for ${1+"$@"}.
9930         * doc/autoconf.texi (Shell Substitutions): Explain it.
9931         From Oliver Kiddle and Peter Stephenson.
9933         Have M4sh perform minimal shell sanitizing.
9935         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
9936         part into...
9937         (_AS_PREPARE): this new macro.
9938         (AS_PREPARE): New.
9939         (AS_INIT): Invoke AS_SHELL_SANITIZE.
9940         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
9942         Adjust Autoconf and Autotest.
9944         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
9945         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
9946         * lib/autotest/general.m4 (AT_INIT): Likewise.
9947         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
9948         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
9949         AS_SHELL_SANITIZE.
9951         Use this M4sh to generate Autoconf's shell scripts.
9953         * tests/wrapsh.as: New, precursor of wrapsh.in.
9954         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
9955         on Autotest and M4sh.
9956         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
9957         (wrapsh.in): New target.
9958         * bin/autoconf.as: New, precursor of autoconf.in.
9959         (autoconf.in): New target.
9961 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
9963         * doc/autoconf.texi (Limitations of Make): Mention the issue
9964         with indented comments in rules.
9966 2002-04-09  Andreas Schwab  <schwab@suse.de>
9968         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
9969         ac_top_builddir when setting ac_abs_top_builddir.
9971 2002-04-06  Kevin Ryde  <user42@zip.com.au>
9973         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
9974         (Portable Shell): Cross reference to Systemology.
9976 2002-04-05  Akim Demaille  <akim@epita.fr>
9978         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
9979         directories when descending in a SUBDIRS.
9980         Reported by Ezra Peisach.
9982 2002-04-04  Andreas Schwab  <schwab@suse.de>
9984         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
9985         contains no literal separators.
9987 2002-04-03  Akim Demaille  <akim@epita.fr>
9989         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
9990         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
9991         Use dnl, not the KILL diversion.
9992         Extracted from...
9993         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
9994         (AC_CONFIG_LINKS): here.
9995         Adjust.
9996         Don't use the KILL diversion, as it kills spurious output, which
9997         results in failures being hidden.
9998         Use m4_defn where appropriate.
9999         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
10000         after the second argument.
10001         Use m4_defn.
10002         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
10003         syntax, as it is provided by M4sugar.
10004         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
10006 2002-04-03  Andreas Schwab  <schwab@suse.de>
10008         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
10009         expanded if $# <= 2.
10011         * bin/autoreconf.in (autoreconf): Run automake after rerunning
10012         aclocal.
10014 2002-04-03  Akim Demaille  <akim@epita.fr>
10016         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
10017         (_AC_COMPILER_EXEEXT_REJECT): New.
10018         Also recognize *.bb and *.bbg as compilation byproducts.
10019         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
10020         (_AC_COMPILER_OBJEXT): Use them.
10021         Fixes Debian #138666.
10023 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
10025         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
10027         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
10028         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
10029         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
10030         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
10031         (AC_C_CONST): Same.
10032         (AC_C_INLINE): Same.
10033         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
10034         * doc/autoconf.texi, NEWS: Document.
10035         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
10036         AC_C_CROSS.
10038 2002-04-02  Akim Demaille  <akim@epita.fr>
10040         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
10041         _AS_MKDIR_P_PREPARE.
10043 2002-03-28  Kevin Ryde  <user42@zip.com.au>
10045         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
10046         to avoid versions of HP C which don't allow that.
10048 2002-03-27  Paul Eggert  <eggert@twinsun.com>
10050         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
10051         (AS_SHELL_SANITIZE): Invoke it.
10052         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
10054 2002-03-26  Akim Demaille  <akim@epita.fr>
10056         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
10058 2002-03-26  Akim Demaille  <akim@epita.fr>
10060         * doc/autoconf.texi (Introduction): The GNATS base moved.
10062 2002-03-25  Paul Eggert  <eggert@twinsun.com>
10064         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
10065         as POSIX requires, as it doesn't work with Zsh.
10066         * doc/autoconf.texi (Assignments): Document the problem.
10068 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
10070         * doc/autoconf.texi (Limitations of Make): Mention more issue
10071         about VPATH, overriding of macros in sub-makes, and handling of
10072         SHELL.
10074 2002-03-21  Paul Eggert  <eggert@twinsun.com>
10076         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
10077         problem with here-document buffer boundaries.
10079         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
10080         when reinvoking the shell, to work around problems with installers
10081         who put strange things like "cd" commands in their environments.
10083 2002-03-19  Akim Demaille  <akim@epita.fr>
10085         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
10086         From Aaron Ucko.
10088 2002-03-19  Akim Demaille  <akim@epita.fr>
10090         * bin/autoscan.in (scan_file): Specify the location in `&used'
10091         invocations.
10092         From Nicolas Joly.
10094 2002-03-19  Akim Demaille  <akim@epita.fr>
10096         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
10097         From Nishio Futoshi.
10099 2002-03-19  Akim Demaille  <akim@epita.fr>
10101         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
10103 2002-03-18  Paul Eggert  <eggert@twinsun.com>
10105         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
10106         (Limitations of Usual Tools): Add mkdir section.
10108         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
10109         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
10110         back on AS_DIRNAME to compute prefixes otherwise; this is
10111         roughly what mkinstalldirs does.  That way, we need not have
10112         our own filename disassembler.  The old disassembler did not
10113         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
10115         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
10116         Create at_test_all by a series of assignments,
10117         not by a single assignment of a long string.  The latter causes ksh
10118         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
10119         presumably because of a buffer overrun.
10121 2002-03-14  Paul Eggert  <eggert@twinsun.com>
10123         * lib/autotest/general.m4 (at_times_skip):
10124         Renamed from at_times.  Now a boolean.
10125         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
10126         says 'times: not found'.
10128 2002-03-14  Akim Demaille  <akim@epita.fr>
10130         * bin/autoreconf.in (&study_gettextize): New.
10131         (&autoreconf): Handle newest gettextize.
10132         Rerun aclocal if needed.
10133         Suggested by Andreas Schwab.
10135 2002-03-13  Akim Demaille  <akim@epita.fr>
10137         * doc/autoconf.texi (Special Shell Variables): More about IFS.
10139 2002-03-13  Akim Demaille  <akim@epita.fr>
10141         * doc/autoconf.texi (Header Portability): New.
10142         Add information about stdint.h and inttypes.h from Paul Eggert.
10144 2002-03-13  Akim Demaille  <akim@epita.fr>
10146         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
10147         -p'.
10148         From Bob Proulx.
10150 2002-03-12  Akim Demaille  <akim@epita.fr>
10152         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
10153         m4_require.
10155 2002-03-11  Andreas Schwab  <schwab@suse.de>
10157         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
10158         does not do it if --with-lispdir is given.
10160 2002-03-08  Akim Demaille  <akim@epita.fr>
10162         Version 2.53.
10164 2002-03-08  Akim Demaille  <akim@epita.fr>
10166         * doc/autoconf.texi (Subdirectories): Clarify that the
10167         subdirectory should exist.
10169 2002-03-08  Akim Demaille  <akim@epita.fr>
10171         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
10173 2002-03-08  Akim Demaille  <akim@epita.fr>
10175         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
10176         aliases the actual variables, and modifications of the former
10177         affect the latter.
10179 2002-03-08  Akim Demaille  <akim@epita.fr>
10181         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
10182         because of C-c: have m4 output in tmp files, then mv them.
10184 2002-03-08  Akim Demaille  <akim@epita.fr>
10186         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
10187         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
10188         * bin/ifnames.in: Copyright update.
10190 2002-03-08  Akim Demaille  <akim@epita.fr>
10192         * doc/autoconf.texi (Invoking autom4te): New.
10194 2002-03-05  Akim Demaille  <akim@epita.fr>
10196         * doc/autoconf.texi (Specifying Names): Clarification suggested by
10197         Kevin Ryde.
10199 2002-03-05  Akim Demaille  <akim@epita.fr>
10201         Version 2.52i.
10203 2002-03-04  Akim Demaille  <akim@epita.fr>
10205         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
10206         * lib/autoconf/general.m4 (AC_INIT): More informative error
10207         message for LIBOBJ.
10209 2002-03-04  Akim Demaille  <akim@epita.fr>
10211         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
10212         parallel builds.
10214 2002-03-04  Akim Demaille  <akim@epita.fr>
10216         * doc/autoconf.texi (Transforming Names): Equality between target
10217         and host is irrelevant.
10218         (Specifying Names, Canonicalizing): Remove all references to the
10219         backward compatibility hooks.  Rather, collect them all into...
10220         (Hosts and Cross-Compilation): this new section.
10221         * doc/install.texi (System Type): Ditto.
10222         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
10223         that `--host' implies cross-compilation.
10225 2002-03-04  Akim Demaille  <akim@epita.fr>
10227         * doc/autoconf.texi (Evaluation Macros): New.
10228         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
10229         useless.
10230         (_m4_foreach): Define the variant with immediate evaluation so
10231         that it contains exactly the items, not an expression which
10232         evaluation is the current item.
10233         (m4_re_string, m4_re_word): Don't over quote them.
10235 2002-03-04  Akim Demaille  <akim@epita.fr>
10237         Instead of having stacking `shift's evaluated at the end, let
10238         `foreach' loops immediately evaluate them.
10240         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
10241         $*.  This is the n-th time I change my mind, but hopefully this is
10242         the last...
10243         (m4_lquote): New.
10244         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
10245         efficient.
10246         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
10247         it was only a hack for m4_text_wrap.
10248         (m4_car2): Remove, replaced by...
10249         (m4_cdr): New.
10250         (_m4_foreach): Adjust.
10251         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
10252         m4_bpatsubst for clarification.
10254 2002-03-04  Akim Demaille  <akim@epita.fr>
10256         * doc/autoconf.texi (Changequote is Evil): New.
10258 2002-03-03  Kevin Ryde  <user42@zip.com.au>
10260         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
10261         on old systems like SunOS.
10263 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
10265         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
10266         lib/autoconf/functions.m4, lib/autoconf/general.m4,
10267         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
10268         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
10269         of messages.
10271 2002-02-28  Akim Demaille  <akim@epita.fr>
10273         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
10274         message to be sent.
10276 2002-02-28  Kevin Ryde  <user42@zip.com.au>
10278         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
10280 2002-02-25  Akim Demaille  <akim@epita.fr>
10282         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
10283         From Akinori Musha.
10285 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
10287         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
10288         translate \r\n to \n.
10290 2002-02-07  Akim Demaille  <akim@epita.fr>
10292         Version 2.52h.
10294 2002-02-07  Akim Demaille  <akim@epita.fr>
10296         Fix Autoconf PR/209.
10297         Also reported by Frank Denis.
10299         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
10301 2002-02-07  Akim Demaille  <akim@epita.fr>
10303         Fix Autoconf PR/207:
10304         AC_PREFIX_PROGRAM fails with dashed program names
10306         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
10307         variable when looking for the prefix program.
10308         Now it also works for shell variables.
10310 2002-02-07  Akim Demaille  <akim@epita.fr>
10312         * doc/autoconf.texi (Limitations of Builtins): More about
10313         case/esac.
10315 2002-02-06  Akim Demaille  <akim@epita.fr>
10317         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
10318         case/esac, some shells don't support it.
10319         Reported by Zack Weinberg.
10320         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
10322 2002-02-06  Akim Demaille  <akim@epita.fr>
10324         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
10325         sure not to introduce newlines in at_groups.
10326         * lib/autotest/Makefile.am (autotest.m4f): Typo.
10328 2002-02-06  Akim Demaille  <akim@epita.fr>
10330         * tests/torture.at (Configuring subdirectories): Skip if aclocal
10331         is not available.
10333 2002-02-05  Paul Eggert  <eggert@twinsun.com>
10335         * doc/autoconf.texi (Specific Compiler Characteristics):
10336         Describe HP-UX cc bug workaround more accurately.
10337         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
10338         not unsigned long.
10339         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
10340         cross-compilers, too.  This undoes some of the most recent change
10341         to this file.
10343 2002-02-05  Akim Demaille  <akim@epita.fr>
10345         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
10346         to make sure they are up to date when `check' is run.
10348 2002-02-05  Akim Demaille  <akim@epita.fr>
10350         * doc/autoconf.texi (Making testsuite Scripts): Document
10351         package.m4.
10353 2002-02-05  Akim Demaille  <akim@epita.fr>
10355         * lib/freeze.mk: New.
10357 2002-02-05  Akim Demaille  <akim@epita.fr>
10359         Implement `autom4te --freeze'.
10361         * bin/autom4te.in (&freeze): New.
10362         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
10363         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
10365 2002-02-05  Akim Demaille  <akim@epita.fr>
10367         * bin/autom4te.in (&parse_args): Implement `frozen files are
10368         optional are the sum of the previous files on the command line'.
10369         Also, pass `--reload-state=' on them, so...
10370         (handle_m4): don't.
10371         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
10372         (M4sh): Rely on M4sugar.
10373         (Autotest, M4sh, M4sugar): Use frozen files.
10375 2002-01-31  Akim Demaille  <akim@epita.fr>
10377         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
10378         * doc/autoconf.texi (Initializing configure): Adjust.
10380 2002-01-30  Akim Demaille  <akim@epita.fr>
10382         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
10383         alphanumeric to `-' instead of `_'.
10385 2002-01-30  Akim Demaille  <akim@epita.fr>
10387         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
10388         for plain code, the other for cross-compilation code.  The latter
10389         is now run with GCC only.
10390         * doc/autoconf.texi (Compilers and Preprocessors): New.
10392 2002-01-30  Akim Demaille  <akim@epita.fr>
10394         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
10395         values.
10396         * doc/autoconf.texi (Initializing configure): Explain how to
10397         change AC_INIT default values.
10399 2002-01-29  Akim Demaille  <akim@epita.fr>
10401         * tests/torture.at (Configuring subdirectories): Use configure.in,
10402         so that aclocal 1.4 works.
10403         Reported by Alexandre Duret-Lutz and Larry Schmitt.
10405 2002-01-28  Akim Demaille  <akim@epita.fr>
10407         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
10408         needs an argument.
10410 2002-01-28  Akim Demaille  <akim@epita.fr>
10412         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
10413         AUTOTEST_PATH *after* it was set.
10414         Don't put `.' in the PATH: the user should be precise and `./' if
10415         needed.  In addition, given that the test suite does some `cd', if
10416         `.' is in the path, the `tested programs' sections will report
10417         programs found in the test suite's directory, while during the
10418         tests (performed in their own directory), these programs are no
10419         longer visible.  In other words, the results is confusing and
10420         useless.
10421         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
10423 2002-01-24  Akim Demaille  <akim@epita.fr>
10425         Version 2.52g.
10427 2002-01-24  Akim Demaille  <akim@epita.fr>
10429         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
10430         * doc/autoconf.texi: Finally add Akim as an author.
10432 2002-01-24  Akim Demaille  <akim@epita.fr>
10434         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
10435         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
10436         Bourne. Use /bin/sh.
10437         From Andreas Buening.
10439 2002-01-24  Akim Demaille  <akim@epita.fr>
10441         * config/config.guess, config/config.sub, config/texinfo.tex:
10442         Update from masters.
10444 2002-01-24  Akim Demaille  <akim@epita.fr>
10446         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
10447         * config/auxdir.m4, config/cond.m4, config/depend.m4,
10448         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
10449         * config/missing.m4, config/sanity.m4, config/select.m4,
10450         * config/strip.m4: Remove, to ease sync'ing with any version of
10451         Automake.
10453 2002-01-24  Akim Demaille  <akim@epita.fr>
10455         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
10456         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
10457         Reported by Geir Ove Myhr.
10459 2002-01-21  Akim Demaille  <akim@epita.fr>
10461         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
10463 2002-01-21  Akim Demaille  <akim@epita.fr>
10465         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
10466         message on invalid options.
10467         * bin/autom4te.in (parse_args): Don't use
10468         Autoconf::General::getopt with non valid options.
10470 2002-01-17  Jim Meyering  <meyering@lucent.com>
10472         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
10473         $ac_cv_exeext so we don't use an old, invalid, cached value.
10475 2002-01-11  Akim Demaille  <akim@epita.fr>
10477         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
10478         Meyering.
10479         * doc/autoconf.texi (Function Portability): Document the strnlen
10480         limitation.
10481         (Particular Functions): Document AC_FUNC_STRNLEN.
10482         * lib/autoscan/functions: Adjust.
10484 2002-01-06  Akim Demaille  <akim@epita.fr>
10486         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
10487         package.m4, since is really depends upon configure.ac, not
10488         configure.
10489         * doc/autoconf.texi (testsuite Scripts): Adjust.
10490         * tests/Makefile.am (package.m4): New.
10491         EXTRA_DIST it since its a source.
10493 2002-01-06  Akim Demaille  <akim@epita.fr>
10495         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
10496         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
10497         and PACKAGE_BUGREPORT from here...
10498         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
10499         arguments.
10500         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
10501         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
10502         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
10503         * tests/tools.at (autoheader): Adjust.
10504         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
10506 2002-01-06  Akim Demaille  <akim@epita.fr>
10508         * bin/autoscan.in (scan_file): Use `&used'.
10510 2002-01-03  Akim Demaille  <akim@epita.fr>
10512         * doc/autoconf.texi (Output): Improved wording regarding use of
10513         AC_OUTPUT.
10514         From Olly Betts.
10516 2001-12-18  Kevin Ryde  <user42@zip.com.au>
10518         * doc/autoconf.texi (Function Portability): Add notes on sscanf
10519         sometimes needing writable input.
10521 2001-12-17  Jim Meyering  <meyering@lucent.com>
10523         * doc/autoconf.texi (New Macros): Tweak wording.
10525 2001-12-14  Akim Demaille  <akim@epita.fr>
10527         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
10528         trailing files, don't apply `-rf' to files which might not be
10529         created by configure (core, core.*, and *.core), but just `rm -f'.
10530         Suggested by Jonathan Kamens.
10532 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
10534         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
10536 2001-12-14  Akim Demaille  <akim@epita.fr>
10538         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
10540 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
10542         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
10543         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
10544         abs_srcdir, top_srcpath to abs_top_srcdir.
10545         (_AC_OUTPUT_FILES): Adjust.
10546         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
10547         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
10548         * tests/wrappl.in, tests/wrapsh.in: Adjust.
10550 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
10552         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
10553         C/Fortran linking on HP/UX, by extracting the Fortran library
10554         search path from the LPATH line in the $F77 -v output.
10556 2001-12-12  Kevin Ryde  <user42@zip.com.au>
10558         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
10559         forbidden file descriptors table.
10561 2001-11-26  Akim Demaille  <akim@epita.fr>
10563         * bin/autoscan.in (%c_keywords): Build it at top level.
10564         Map to 1 in order to simplify its uses.
10566 2001-11-26  Akim Demaille  <akim@epita.fr>
10568         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
10569         Remove $filepath, useless.
10570         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
10571         variables, they are really part of the tokens.
10572         Split the input line on spaces and then look for tokens.
10573         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
10574         because of `lex$U.$(OBJEXT)'.
10575         (&scan_files): Use "@list" instead of join.
10576         * doc/Makefile.am (CLEANFILES): Add *.fns.
10578 2001-11-26  Akim Demaille  <akim@epita.fr>
10580         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
10581         Remove, replaced by...
10582         * tests/wrappl.in: Be common for all the Perl executables.
10583         In particular autoscan and autoheader want -I.
10584         * configure.ac: Adjust.
10585         * lib/autoscan/headers: errno.h is portable.
10587 2001-11-26  Akim Demaille  <akim@epita.fr>
10589         * bin/autoscan.in (used): New.
10590         Use it.
10592 2001-11-26  Akim Demaille  <akim@epita.fr>
10594         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
10595         directives.
10596         (&scan_sh_file): Remove a duplicate pattern.
10597         (&check_configure_ac): Use long options.
10598         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
10600 2001-11-26  Akim Demaille  <akim@epita.fr>
10602         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
10603         Before, having a line containing the opening of a multi line
10604         comment made the whole line be ignored.
10606 2001-11-26  Akim Demaille  <akim@epita.fr>
10608         * doc/autoconf.texi (Using an Autotest Test Suite): New.
10609         (testsuite Scripts): Be one of its subsection.
10610         (Autotest Logs): New.
10612 2001-11-26  Akim Demaille  <akim@epita.fr>
10614         Test groups are now run two directories deeper.
10616         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
10617         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
10618         at_top_builddir.
10619         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
10620         top_srcdir, builddir and top_builddir.
10621         Use `at_*dir' relatively to the directory containing the
10622         suite, use `*dir' when relatively to the current group dir.
10624 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
10626         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
10627         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
10628         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
10629         spelling errors.
10631 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
10633         * doc/autoconf.texi (Using System Type): Add an example of `case
10634         $host' usage so people quit using `case $target' everywhere.
10636 2001-11-22  Akim Demaille  <akim@epita.fr>
10638         * doc/autoconf.texi (Installation Directory Variables): Englishoes
10639         spotted by Jim Meyering.
10641 2001-11-16  Paul Eggert  <eggert@twinsun.com>
10643         This patch implements a `long double' suggestion by Oliver Kiddle.
10645         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
10646         static, to catch errors if the value isn't known at compile-time
10647         and the compiler supports dynamic arrays.  Change its name from
10648         `_array_' to `test_array' to avoid potential name clashes.
10649         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
10650         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
10651         better than double.  Catch a bug in GCC 2.95.2 x86.
10652         * doc/autoconf.texi (C Compiler): Document the above.
10653         * NEWS: Likewise.
10655 2001-11-13  Akim Demaille  <akim@epita.fr>
10657         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
10658         hand.
10659         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
10661 2001-11-13  Akim Demaille  <akim@epita.fr>
10663         * lib/autotest/general.m4 (AT_INIT): After having run the test
10664         group, go back to the initial directory, not to at_suite_dir.
10666 2001-11-13  Akim Demaille  <akim@epita.fr>
10668         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
10669         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
10670         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
10671         option.
10672         (AT_CHECK_CONFIGURE): Use absolute paths.
10673         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
10674         The problem is still the old one: there is no means in M4 (that I
10675         know about) to create a defining macro, because there is no means
10676         to create `$1' etc., therefore, the defining macro ``swallows''
10677         all the arguments meant to the defined macro.
10679 2001-11-13  Akim Demaille  <akim@epita.fr>
10681         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
10682         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
10683         configure.ac.
10684         * tests/aclocal.m4: Remove, as it is no longer used.
10686 2001-11-13  Akim Demaille  <akim@epita.fr>
10688         * lib/autotest/general.m4: Change `tests?' into `groups?' in
10689         variable names when referring to a single test group, or to
10690         `suite' when referring to the whole test suite.
10691         `at_last_test' is removed: m4 compute at_format itself.
10692         (at_stdout, at_stder1, at_stderr): New variables.
10693         (AT_CHECK): Use them.
10695 2001-11-13  Akim Demaille  <akim@epita.fr>
10697         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
10698         in PATH.
10699         Create `testsuite.dir/003/run' instead of `testsuite.003'.
10700         Do it as soon as a test fails, don't wait till the end of the test
10701         suite.
10702         Don't remove $as_me.[0-9]*, since these files no longer exist.
10704 2001-11-13  Akim Demaille  <akim@epita.fr>
10706         * tests/tools.at: Use absolute paths, since we are no longer run
10707         in place.
10709 2001-11-13  Akim Demaille  <akim@epita.fr>
10711         Now that tests are running in their own private dir, there is no
10712         need to list the files to remove at the end of tests groups.
10714         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
10715         (AT_data_files, at_data_files): Remove.
10716         (AT_CLEANUP, AT_DATA): Simplify.
10717         (AT_INIT): Adjust.
10718         Remove the group dir if !debug && !failed.
10719         * tests/atspecific.m4: Adjust.
10721 2001-11-13  Akim Demaille  <akim@epita.fr>
10723         Start a new layout for Autotest: `testsuite' creates
10724         `testsuite.dir' in which the at-check-line etc. files are to be
10725         found, and `testsuite.dir/003' where the test group 3 is run.
10727         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
10728         at_check_line_file, at_format, at_test_normalized, at_group_dir
10729         are new variables.
10730         Create the directories.
10731         Use absolute paths for at- files.
10732         (AT_CHECK): Adjust.
10734 2001-11-11  Michael Matz  <matz@kde.org>
10736         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
10737         (m4_car2): New.
10738         (m4_car): Properly quote arguments.
10740 2001-11-13  Akim Demaille  <akim@epita.fr>
10742         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
10743         with stricter rules on LIBOBJS.
10745 2001-11-12  Paul Eggert  <eggert@twinsun.com>
10747         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
10748         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
10749         __PROTOTYPES too.
10751 2001-11-12  Akim Demaille  <akim@epita.fr>
10753         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
10755 2001-11-12  Akim Demaille  <akim@epita.fr>
10757         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
10758         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
10759         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
10760         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
10761         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
10762         specify to what the macro should be defined (typically to 1).
10764 2001-11-12  Akim Demaille  <akim@epita.fr>
10766         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
10767         From Jim Meyering.
10769 2001-11-12  Akim Demaille  <akim@epita.fr>
10771         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
10772         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
10773         definition used by Automake where LEX is +/- "${missing} lex" and
10774         `missing' itself contains variables.
10776 2001-11-12  Akim Demaille  <akim@epita.fr>
10778         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
10779         Now that M4sh pushes BODY, the comments were output at the end of
10780         the test suites.
10782 2001-11-08  Akim Demaille  <akim@epita.fr>
10784         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
10785         that we can trace macros from aclocal.m4.
10786         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
10787         obsoleted, and redirect to the former anyway.
10788         Reported by Ralf Corsepius.
10790 2001-11-08  Akim Demaille  <akim@epita.fr>
10792         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
10793         processed only if present.
10794         * tests/torture.at (Configuring subdirectories): Use autoreconf
10795         instead of successive calls to autoconf.
10796         Add a nonexistent subdirectory to exercise the patch above.
10797         Reported by Ralf Corsepius.
10799 2001-11-08  Kevin Ryde  <user42@zip.com.au>
10801         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
10802         doesn't accept .S files.
10804 2001-11-07  Akim Demaille  <akim@epita.fr>
10806         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
10807         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
10808         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
10809         * bin/autom4te.in (warn_forbidden): New.
10810         (handle_output): Use it.
10811         Read m4_pattern_forbid with messages.
10813 2001-11-05  Akim Demaille  <akim@epita.fr>
10815         * bin/autom4te.in (--normalize): Remove.
10816         * lib/autom4te.in: Adjust.
10818 2001-11-05  Akim Demaille  <akim@epita.fr>
10820         * tests/Makefile.am (testsuite): Rename this target as...
10821         ($(TESTSUITE)): this.
10822         From Nicolas Joly.
10824 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
10826         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
10827         the --prefix option, also remove it's argument.
10829 2001-11-05  Akim Demaille  <akim@epita.fr>
10831         * doc/autoconf.texi (testsuite Invocation): Update.
10832         (Writing testsuite.at): Update.
10834 2001-11-03  Akim Demaille  <akim@epita.fr>
10836         * doc/autoconf.texi: s/@code/@command/ where appropriate.
10838 2001-11-03  Akim Demaille  <akim@epita.fr>
10840         * lib/Autom4te/General.pm: (&catfile, &canonfile)
10841         (&file_name_is_absolute): New, wrappers around routines from
10842         File::Spec.
10843         Use and export them.
10844         (&find_configure_ac): Optionally take a directory where to look at.
10845         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
10846         the arguments.
10847         Default @ARGV to `.', not find_configure_ac.
10848         (&autoreconf): Argument is a directory.
10849         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
10850         * doc/autoconf.texi (autoreconf Invocation): Update.
10852 2001-11-03  Akim Demaille  <akim@epita.fr>
10854         * lib/Autom4te/General.pm (@export_vars, @export_subs)
10855         (@export_forward_subs): New.
10856         Add basename, dirname, and fileparse.
10857         (@EXPORT): Adjust.
10858         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
10859         Don't look for aclocal flags if we already know aclocal is not
10860         used.
10861         Move aclocal.m4t only if it exists.
10862         Reported by Ezra Peisach.
10864 2001-11-03  Akim Demaille  <akim@epita.fr>
10866         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
10867         passed on command line, defaulting to ./configure.ac if present.
10868         (&maybe_autoreconf, File::Find): Remove, unused.
10869         (&autoreconf): If autoconf is not used, don't try to trace.
10871 2001-11-02  Akim Demaille  <akim@epita.fr>
10873         * configure.ac: Bump to 2.52g.
10875 2001-11-02  Akim Demaille  <akim@epita.fr>
10877         Version 2.52f.
10879 2001-11-02  Akim Demaille  <akim@epita.fr>
10881         * config/config.guess, config/config.sub, doc/standards.texi:
10882         * config/lispdir.m4: Update from masters.
10883         * configure.ac: Bump to 2.52f.
10885 2001-11-02  Akim Demaille  <akim@epita.fr>
10887         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
10888         Don't run aclocal when aclocal.m4 is not from aclocal.
10889         From Ezra Peisach.
10890         Don't run libtoolize and gettextize if --install is not given.
10892 2001-11-01  Paul Eggert  <eggert@twinsun.com>
10894         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
10895         be invoked before _AS_LINENO_PREPARE.
10896         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
10897         than character ranges.
10899         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
10900         invoking AS_BASENAME.  Set the locale variables to 'C' if
10901         possible, as POSIX requires this to get the traditional
10902         behavior.
10903         * doc/autoconf.texi (Special Shell Variables): Describe the above.
10905 2001-10-31  Paul Eggert  <eggert@twinsun.com>
10907         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
10908         with {}, as that triggers a bug in Bash 2.05.
10910         (_AS_LINENO_PREPARE): Use Sed rather than
10911         Awk.  Fix the sed prepass to work even if there are multiple
10912         instances of $LINENO on the same line.  Do not substitute for
10913         other variables like $LINENOT.  Do not check file dates; such a
10914         check is unreliable on sufficiently fast machines, and removing
10915         the check makes the code simpler and more reliable.  Check for
10916         output and chmod failures.
10918         * doc/autoconf.texi (Special Shell Variables): Document
10919         the above.
10921 2001-10-31  Akim Demaille  <akim@epita.fr>
10923         * tests/Makefile.am (atconfig): Remove this target, Automake
10924         handles it now.
10926 2001-10-31  Akim Demaille  <akim@epita.fr>
10928         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
10929         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
10930         provided, while it is optional.
10931         * configure.ac: Adjust.
10933 2001-10-26  Paul Eggert  <eggert@twinsun.com>
10935         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
10936           lib/Autom4te/Struct.pm:
10937         Require Perl 5.005_03 instead of just 5.005, as some tests fail
10938         with 5.005_02.
10940         * doc/autoconf.texi (Special Shell Variables): Document some
10941         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
10943         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
10944         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
10945         eval $LINENO is not portable in practice.
10947 2001-10-24  Akim Demaille  <akim@epita.fr>
10949         * lib/Autom4te/General.pm (backname): New.
10951 2001-10-24  Akim Demaille  <akim@epita.fr>
10953         * m4/: Remove, merged into...
10954         * config/: here.
10956 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
10958         * doc/autoconf.texi (Shellology): Mention the problems with bash
10959         2.05's use of ANSI quoting in its `set' builtin.
10961 2001-10-22  Paul Eggert  <eggert@twinsun.com>
10963         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
10964         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
10965         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
10966         POSIX decided to standardize on the int flavor of strerror_r.
10967         Always do char* test, as there's no reason not to.
10968         Assign to a char* var, to catch strerror_r that returns int*.
10970         * doc/autoconf.texi (Particular Functions):
10971         Document the above changes.  Also, document the fact that
10972         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
10974         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
10976 2001-10-20  Akim Demaille  <akim@epita.fr>
10978         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
10979         the executable was missing from the log.
10981 2001-10-20  Akim Demaille  <akim@epita.fr>
10983         * lib/Autom4te/General.pm (&update_file): If destination is
10984         unchanged, remove the source.
10985         (&up_to_date_p): Don't be verbose, be debug.
10986         * bin/autoreconf.in: No longer support --m4dir.
10987         (&autoreconf): Display the full path of the configure.ac we are
10988         studying.
10989         Trace it only once.
10990         Be sure to honor --force with gettextize.
10991         Always run aclocal.
10992         * doc/autoconf.texi: Adjust.
10994 2001-10-20  Akim Demaille  <akim@epita.fr>
10996         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
10997         Remove, dead.
10998         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
10999         `intl' is already present, as it refuses unless --force.
11000         (&parse_args): Use -I, --include instead of the old Autoconf
11001         options.
11002         ($localdir, $autoconf_dir): Remove.
11003         (@include): New.
11004         (&maybe_autoreconf): New, to preserve $_ for File::Find.
11006 2001-10-19  Jens Petersen  <petersen@redhat.com>
11008         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
11009         * doc/autoconf.texi (Particular Programs): Likewise.
11011 2001-10-19  Akim Demaille  <akim@epita.fr>
11013         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
11014         file in @configure_input@.
11015         Don't mention `automatically' in addition to `generated'.
11016         * tests/torture.at (#define header templates): Adjust.
11018 2001-10-19  Akim Demaille  <akim@epita.fr>
11020         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
11021         comment, explain how to install automatic mode selection.
11022         From Russ Allbery.
11024 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
11026         * bin/autoreconf.in (autoreconf): Display the path to the
11027         configure.ac being studied.
11029 2001-10-18  Paul Eggert  <eggert@twinsun.com>
11031         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
11032         long, to work around a bug in the HP C compiler version HP92453-01
11033         B.11.11.23709.GP.
11035         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
11036         (AS_BASENAME_EXPR): New macro.
11037         (AS_BASENAME_SED): Do not assume GNU sed semantics.
11038         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
11039         and fall back on 'sed' only if the other two fail.  This makes
11040         AS_BASENAME act more like AS_DIRNAME.
11041         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
11042         contains white space.
11043         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
11044         Use AS_DIRNAME, since I think it's now DOS-friendly.
11045         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
11046         Allow "dirname //FOO" to return either / or //, as POSIX allows
11047         either behavior.
11049 2001-10-10  Akim Demaille  <akim@epita.fr>
11051         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
11052         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
11053         From Eric Sharkey.
11055 2001-10-10  Akim Demaille  <akim@epita.fr>
11057         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
11058         m4_define, since...
11059         (_AS_ECHO_N): AS_REQUIREs it.
11061 2001-10-10  Akim Demaille  <akim@epita.fr>
11063         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
11064         (AC_INCLUDES_DEFAULT): Move to...
11065         * lib/autoconf/headers.m4: here.
11066         * lib/autoconf/types.m4: Comment changes.
11067         * doc/autoconf.texi: Specify where the default includes are used
11068         in the macro prototypes.
11070 2001-10-09  Akim Demaille  <akim@epita.fr>
11072         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
11073         transition code.
11075 2001-10-08  Akim Demaille  <akim@epita.fr>
11077         * bin/autoreconf.in (&autoreconf): Remove debugging code.
11078         (&parse_args): Pass verbosity/debugging options to subtools when
11079         --debug, not when --verbose.
11080         * lib/autom4te.in (Autoreconf-preselections): New.
11081         (Autoconf): Use it.
11083 2001-10-08  Akim Demaille  <akim@epita.fr>
11085         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
11087 2001-10-08  Akim Demaille  <akim@epita.fr>
11089         * doc/autoconf.texi (autoreconf Invocation): Adjust.
11090         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
11092 2001-10-08  Akim Demaille  <akim@epita.fr>
11094         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
11095         (Syntax of the shell scripts): Don't.
11096         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
11097         bother with $force since...
11098         * lib/Autom4te/General.pm: does.
11100 2001-10-08  Akim Demaille  <akim@epita.fr>
11102         * bin/autoreconf.in: Rewrite in Perl.
11103         * configure.ac: Adjust.
11104         * lib/Autom4te/General.pm (&up_to_date_p): New.
11105         * bin/autom4te.in (&up_to_date_p): Use it.
11106         Rename as...
11107         (&up_to_date): this.
11109 2001-10-08  Akim Demaille  <akim@epita.fr>
11111         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
11112         (m4_list_cmp): Use $0 to reinvoke yourself.
11113         (m4_patsubsts): New.
11114         (m4_strip, m4_version_unletter): Use it.
11115         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
11117 2001-10-08  Akim Demaille  <akim@epita.fr>
11119         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
11120         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
11121         * lib/autoconf/types.m4, lib/autotest/general.m4,
11122         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
11123         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
11124         m4_bregexp, m4_bpatsubst, and m4_bmatch.
11125         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
11127 2001-10-08  Akim Demaille  <akim@epita.fr>
11129         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
11131 2001-10-08  Akim Demaille  <akim@epita.fr>
11133         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
11134         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
11135         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
11136         * tests/tools.at, tests/m4sh.at: Use it.
11137         * tests/m4sh.at: Don't rely on Autoconf macros.
11138         (DIRNAME_TEST): Also exercise the expr variant.
11139         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
11140         preferred M4sugar extension is now `.4s'.
11141         * tests/README: Remove.
11143 2001-10-08  Akim Demaille  <akim@epita.fr>
11145         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
11146         (m4_provide_if): this.
11147         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
11148         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
11149         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
11150         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
11152 2001-10-08  Akim Demaille  <akim@epita.fr>
11154         Use `add-log-current-defun-function' for ChangeLog creation.
11155         Suggested by Tom Tromey.
11157         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
11158         (autotest-mode): Adjust.
11159         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
11160         'comment-region onto `C-c ;'.
11161         Comments are `#', not `dnl'.
11162         (autoconf-current-defun): New.
11163         (autoconf-font-lock-keywords): Recognize `m4_defun'.
11165 2001-10-08  Akim Demaille  <akim@epita.fr>
11167         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
11168         * lib/m4sugar/m4sh.m4: here.
11169         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
11170         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
11171         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
11172         include handle the m4_pattern_*, no longer push the
11173         BODY diversion nor set the /bin/sh line, AS_INIT does it.
11174         * lib/autotest/general.m4 (AT_INIT): Likewise.
11175         * tests/base.at: Adjust the tests to use AS_INIT.
11176         * tests/tools.at (AT_DATA_FORBIDDEN): New.
11177         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
11178         Autoconf.
11180 2001-10-07  Paul Eggert  <eggert@twinsun.com>
11182         * doc/autoconf.texi (config.status Invocation):
11183         CONFIG_SHELL defaults to a shell that supports LINENO if available.
11185         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
11186         shell does not support LINENO, and if CONFIG_SHELL is unset or
11187         empty, and if we can find a shell that does support LINENO,
11188         then set CONFIG_SHELL to that shell and then re-execute
11189         ourselves with CONFIG_SHELL.
11191 2001-10-05  Paul Eggert  <eggert@twinsun.com>
11193         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
11194         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
11195         build of $(TESTSUITE).
11197 2001-10-05  Akim Demaille  <akim@epita.fr>
11199         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
11200         iff we are a bareword.
11201         Reported by Raja R Harinath.
11203 2001-10-05  Akim Demaille  <akim@epita.fr>
11205         * tests/m4sh.at (LINENO): New.
11206         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
11207         PATH_SEPARATOR before using it.
11208         Fix the absolute path case/esac pattern.
11209         Provide $0 as fallback for as_myself.
11210         Reported by Raja R Harinath.
11212 2001-10-05  Akim Demaille  <akim@epita.fr>
11214         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
11215         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
11217 2001-10-05  Akim Demaille  <akim@epita.fr>
11219         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
11220         (AS_SHELL_SANITIZE): here.  Use it.
11221         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
11222         From Paul Eggert.
11224 2001-10-04  Akim Demaille  <akim@epita.fr>
11226         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
11227         combination of Awk and sed to replace $LINENO.
11229 2001-10-02  Paul Eggert  <eggert@twinsun.com>
11231         * doc/autoconf.texi (Limitations of Builtins): You can't use
11232         "source"; it's not portable.  Remove confusing and
11233         somewhat-incorrect example involving "." and "/".
11235         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
11236         compatibility with POSIX shells.
11238 2001-10-02  Akim Demaille  <akim@epita.fr>
11240         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
11241         instead of exec'ing to preserve $0 and $@.
11243 2001-10-01  Akim Demaille  <akim@epita.fr>
11245         * tests/testsuite (AT_INIT) <at_pass_list>: New.
11246         Don't run twice the same test.
11248 2001-10-01  Akim Demaille  <akim@epita.fr>
11250         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
11251         No longer output the list of tests.
11252         <--list>: New option.
11253         <--full-help>: Remove.
11254         Complete the short/long options duality.
11255         Various small adjustments.
11257 2001-10-01  Akim Demaille  <akim@epita.fr>
11259         * doc/autoconf.texi: Use @kbd for user input.
11260         Always use `$' as shell prompt.
11262 2001-09-30  Paul Eggert  <eggert@twinsun.com>
11264         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
11265         Don't use nested parenthesization.  This patch was originally
11266         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
11267         but somehow it didn't get incorporated then.
11268         * doc/autoconf.texi (Limitations of Usual Tools):
11269         Clarify remark about sed and nested parenthesization.
11271         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
11272         Report an error if the size cannot be determined even though
11273         the type exists.
11274         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
11275         Check for `expr' arithmetic overflow, and for compilation failure,
11276         and invoke a new argument $4 if either is discovered.
11277         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
11278         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
11280 2001-09-28  Akim Demaille  <akim@epita.fr>
11282         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
11283         * m4/lispdir.m4: New.
11284         * aclocal.m4, configure.ac: Adjust.
11286 2001-09-28  Akim Demaille  <akim@epita.fr>
11288         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
11289         (AT_TESTED): this.
11290         (AT_INIT): More the wrapped section to where it will be expanded.
11291         Output `AT_tested' only when existing.
11292         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
11294 2001-09-27  Akim Demaille  <akim@epita.fr>
11296         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
11297         generates too many bug reports.
11299         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
11300         status when executing the ACTION-IF-FALSE.
11301         * tests/base.at (AC_TRY_*): Rename as...
11302         (AC_TRY_COMMAND): this.
11303         (AC_RUN_IFELSE): New.
11304         * tests/compile.at (Extensions, C keywords)
11305         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
11306         (Broken/missing compilers, AC_PROG_CPP with warnings)
11307         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
11308         * tests/c.at (Extensions, C keywords)
11309         (Broken/missing compilers, AC_PROG_CPP with warnings)
11310         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
11311         (AC_PROG_CPP requires AC_PROG_CC): here and...
11312         * tests/fortran.at (GNU Fortran 77): there.
11313         * doc/autoconf.texi (autoconf Invocation): Fix the example:
11314         AC_TRY_RUN is about compilation, not shell commands.
11315         (Test Programs): AC_TRY_RUN works as used to be advertised.
11317 2001-09-27  Akim Demaille  <akim@epita.fr>
11319         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
11320         Raja R Harinath:
11321         Be sure to detect when $LINENO always returns the same value.
11322         Look for the original script, basename($0) is certainly not
11323         enough.
11324         Pass the CLI arguments to `$as_me.lineno'.
11326 2001-09-25  Akim Demaille  <akim@epita.fr>
11328         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
11329         Be sure the close and reopen the LOG fd before and after using tee
11330         to extend the log.
11331         <at_tests_pattern>: Adjust to the new format of at_help_all.
11333 2001-09-23  Akim Demaille  <akim@epita.fr>
11335         * bin/autom4te.in (parse_args): There can be several invocations
11336         of --language now.
11338 2001-09-23  Akim Demaille  <akim@epita.fr>
11340         * doc/autoconf.texi (Top): Wrap in @ifnottex.
11342 2001-09-23  Akim Demaille  <akim@epita.fr>
11344         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
11345         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
11346         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
11347         builddir, buildpath, top_builddir, and top_buildpath.
11348         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
11349         the current directory.
11350         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
11351         variables *before* changing the current directory.
11352         Skip nonexistent dirs.
11353         * doc/autoconf.texi (Preset Output Variables): Document these
11354         variables.
11356         * lib/autotest/general.m4: Do not reset AT_victims.
11357         Don't compute at_srcdir nor at_top_srcdir.
11359         * tests/tools.at: Hence use top_srcdir.
11361         * tests/Makefile.am, tests/autoconf, tests/autoheader,
11362         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
11363         Remove.
11364         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
11365         * tests/wrapsh.in, tests/autoupdate.in: New.
11366         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
11367         * configure.ac: Build the position independent wrappers.
11369         * man/Makefile.am: Now that test wrappers are position
11370         independent, use them and drop dark envvar magic.
11372 2001-09-23  Akim Demaille  <akim@epita.fr>
11374         * doc/autoconf.texi (Common Shell Constructs): Rename as...
11375         (Programming in M4sh): this.
11376         Promote to @section.
11378 2001-09-23  Akim Demaille  <akim@epita.fr>
11380         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
11381         Pass $at_debug_args to the rerun test suite.
11382         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
11383         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
11384         From Paul Eggert.
11386 2001-09-23  Akim Demaille  <akim@epita.fr>
11388         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
11390 2001-09-23  Akim Demaille  <akim@epita.fr>
11392         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
11393         over-escaping.
11395 2001-09-23  Akim Demaille  <akim@epita.fr>
11397         * lib/Autom4te/General.pm (&debug): New.
11398         * bin/autom4te.in ($language): Move to...
11399         (parse_args): here.
11400         Handle --language in languages.
11401         * lib/autom4te.in (Automake-selections, Autoheader-selections)
11402         (Autoscan-selections): New.
11403         (Autoconf): Adjust.
11405 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
11407         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
11408         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
11409         to match current versions from CVS Automake.
11411 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
11413         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
11414         for $LINENO.
11416 2001-09-22  Akim Demaille  <akim@epita.fr>
11418         * lib/autoconf/autotest.m4: Create `package.m4'.
11419         * tests/Makefile.am (package.m4): Remove.
11421 2001-09-22  Akim Demaille  <akim@epita.fr>
11423         Rely on `$LINENO' when possible instead of `__oline__'.
11425         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
11426         `$LINENO' support replacement when not supported.
11427         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
11428         them explicitly to be sure they are not output before this section
11429         (via m4_require).  Cosmetic only.
11430         * lib/autoconf/c.m4, lib/autoconf/general.m4,
11431         * lib/autoconf/programs.m4: Replace all the occurrences of
11432         `__oline__' with `$LINENO'.
11433         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
11435 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
11437         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
11438         character (u: -> ue) in a code comment.
11439         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
11440         it works.
11442 2001-09-21  Akim Demaille  <akim@epita.fr>
11444         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
11445         Suggested by Jim Meyering.
11447 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11449         * lib/autoconf/programs.m4: Use extensions listed in
11450         $ac_executable_extensions when looking for programs.
11452 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11454         * lib/autoconf/general.m4: Fix a small Englisho.
11455         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
11456         setting up ac_dir_suffix and ac_top_builddir.
11457         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
11459 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11461         * doc/autoconf.texi (File System Conventions): Clarify the use of
11462         PATH_SEPARATOR.
11463         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
11464         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
11465         be used instead of ':'.
11466         * lib/autotest/general.m4: Replace occurrences of ':' in
11467         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
11469 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11471         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
11472         arguments.  Fixed a typo.
11474 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11476         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
11477         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
11479 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11481         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
11482         * bin/autoupdate.in: Ditto.
11483         * bin/autoheader.in: Reworded a few comments.
11484         * bin/autoconf.in: Reworded help text for a few options.
11485         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
11486         * bin/autoscan.in, bin/autoupdate.in: Ditto.
11488 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
11490         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
11491         already have $file).  Set output files to binary mode (helps avoid
11492         CR issues on DOSish systems).
11494 2001-09-19  Akim Demaille  <akim@epita.fr>
11496         * lib/autotest/general.m4: Englishoes.
11497         From Tim Van Holder and Alexey Mahotkin.
11499 2001-09-18  Paul Eggert  <eggert@twinsun.com>
11501         * doc/autoconf.texi (Common Shell Constructs): New node,
11502         documenting AS_DIRNAME.
11503         (Limitations of Usual Tools): Refer to it when discussing dirname.
11504         Also, update discussion of POSIX standard to reflect latest draft.
11506         * lib/autoconf/c.m4:
11507         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
11509         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
11510         Do not pass a first argument with leading '-'
11511         to expr, by parenthesizing initial integers that might be negative.
11513         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
11514         now merely checks whether it is an error to pass an argument
11515         to getpgrp.
11517         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
11518         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
11519         whether it is a (compile-time) error to pass an argument to
11520         getpgrp.  This simpler test supports the revised documentation,
11521         and is all that AC_FUNC_GETPGRP's users really need.
11523 2001-09-18  Akim Demaille  <akim@epita.fr>
11525         * doc/autoconf.texi (Limitations of Make) <$<>: New.
11527 2001-09-18  Akim Demaille  <akim@epita.fr>
11529         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
11530         `{}'.
11531         * lib/autotest/general.m4 (AT_INIT): Adjust.
11533 2001-09-18  Paul Wagland  <paul@wagland.net>
11535         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
11536         correctly.
11537         Add test for AS_BASENAME.
11538         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
11539         added test. It now correctly handles /1/2/3/, returning '3' not ''.
11540         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
11541         * tests/base.at: Fixed the expected responses. The old ones were
11542         one line out...
11543         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
11544         the documentation claims it should (and how it behaved in 2.13).
11546 2001-09-18  Akim Demaille  <akim@epita.fr>
11548         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
11549         the AC_CONFIG_COMMANDS invocation.
11550         This also solves the name clash problems.
11551         Don't set the package's ID.
11552         * lib/m4sugar/Makefile.am (version.m4): Revamp.
11553         No longer to be shipped.
11554         (version.in): Remove.
11555         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
11556         * lib/autoconf/status.m4: Adjust.
11557         Use `m4_PACKAGE_STRING'.
11558         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
11559         the only optional argument is the name of the test suite.
11560         Expect `package.m4' to define the package signature.
11561         * lib/autom4te.in (Autotest): Add `package.m4?'.
11562         * tests/Makefile.am (package.m4): New.
11563         * tests/suite.at: ifnames is a victim.
11565 2001-09-18  Akim Demaille  <akim@epita.fr>
11567         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
11568         AC_LIBSOURCE, AC_CONFIG_FILES.
11569         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
11570         program version string doesn't match the package's.
11571         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
11572         after `(cached)'.
11574 2001-09-17  Paul Eggert  <eggert@twinsun.com>
11576         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
11577         Allow expression to return any value that can fit into unsigned long
11578         (not int, as before).  Check for output errors.
11580 2001-09-17  Bruno Haible  <haible@ilog.fr>
11582         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
11583         Always include <stdio.h> and <stdlib.h>. Evaluate
11584         the expression in an extra function before these includes. Call
11585         fprintf "%d" only after ensuring the argument is of type 'int'.
11586         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
11588 2001-09-17  Paul Eggert  <eggert@twinsun.com>
11590         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
11591         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
11592         fatal errors, and AC_CHECK_LIB causes it to include libraries even
11593         when they don't exist.
11595         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
11596         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
11597         need it.
11599         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
11600         version with the version used by fileutils 4.1, except use
11601         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
11602         we don't need it.
11604         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
11606 2001-09-13  Akim Demaille  <akim@epita.fr>
11608         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
11609         _first_.
11610         Reported by Gerrit P. Haase.
11612 2001-09-13  Akim Demaille  <akim@epita.fr>
11614         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
11615         m4_defn'ing is valid.
11617 2001-09-13  Akim Demaille  <akim@epita.fr>
11619         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
11620         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
11621         Use it.
11623 2001-09-13  Akim Demaille  <akim@epita.fr>
11625         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
11626         m4_match.
11627         (m4_re_escape): New.
11628         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
11629         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
11630         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
11631         Likewise.
11632         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
11633         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
11634         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
11635         AT_tests_all for consistency.
11636         Set at_victims.
11637         (AT_VICTIMS): Similar to AT_KEYWORDS.
11638         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
11640 2001-09-13  Akim Demaille  <akim@epita.fr>
11642         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
11644 2001-09-13  Akim Demaille  <akim@epita.fr>
11646         * lib/autotest/general.m4 (AT_INIT): Create and remove
11647         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
11648         test suites can cohabit.
11650 2001-09-13  Akim Demaille  <akim@epita.fr>
11652         * tests/mktests.sh: Don't output banners for empty test files.
11654 2001-09-13  Akim Demaille  <akim@epita.fr>
11656         Test suites can be run independently of configure.
11658         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
11659         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
11660         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
11661         ECHO_N etc.
11662         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
11663         and at_c.
11664         * lib/autotest/general.m4: Use ECHO_*.
11666 2001-09-13  Akim Demaille  <akim@epita.fr>
11668         * bin/ifnames.in: Rewrite in Perl.
11669         * configure.ac: Don't look for AWK.
11670         * tests/tools.at (AWK portability): Remove.
11671         (Syntax of the shell scripts): Don't check ifnames.
11672         (AT_CHECK_PERL_SYNTAX): New.
11673         (Syntax of the Perl scripts): Check ifnames.
11674         * tests/ifnames: New.
11676 2001-09-13  Akim Demaille  <akim@epita.fr>
11678         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
11679         test group titles.
11680         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
11681         Remove all the other keywords.
11683 2001-09-10  Akim Demaille  <akim@epita.fr>
11685         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
11686         SETUP: no longer used.
11687         Support -k, --keywords.
11688         <at_help>: Be `no', `short', or `long'.
11689         <at_help_all>: New variable.
11690         (AT_KEYWORDS): New.
11691         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
11692         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
11693         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
11694         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
11695         No longer fill the HELP diversion.
11696         (AT_CLEANUP): Use them.
11697         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
11698         (m4_list_append): Remove.
11700         Spread a few keywords in the Autoconf test suite.
11702 2001-09-10  Akim Demaille  <akim@epita.fr>
11704         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
11705         PATH_SEPARATOR, let M4sh compute it.
11706         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
11707         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
11708         Move to...
11709         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
11710         Simplify when the path is not a literal.
11711         (AS_UNAME): Use it to report PATH.
11712         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
11713         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
11714         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
11715         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
11716         normalize the path, and to look for victims.
11717         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
11718         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
11720 2001-09-07  Akim Demaille  <akim@epita.fr>
11722         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
11723         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
11724         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
11725         related variables into `at_package_*'.
11726         * lib/autotest/general.m4 (AT_VICTIMS): New.
11727         (AT_INIT): Adjust for stand-alone/embedded test suites.
11728         (AS_MESSAGE_LOG_FD): Define and use it.
11729         * tests/suite.at (AT_VICTIMS): Use it.
11730         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
11731         at_version.
11733 2001-09-07  Akim Demaille  <akim@epita.fr>
11735         Move toward possibly stand-alone test suites.
11737         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
11738         in addition, it introduces useless differences in logs.
11739         (AT_INIT): Let atconfig and atlocal be both optional.
11740         Adjust PATH computation.
11741         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
11743 2001-09-07  Akim Demaille  <akim@epita.fr>
11745         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
11746         m4sugar/version.m4.
11748 2001-09-05  Akim Demaille  <akim@epita.fr>
11750         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
11751         to avoid GCC warnings.
11752         From Uwe Seimet.
11754 2001-09-05  Akim Demaille  <akim@epita.fr>
11756         * bin/autom4te.in: --language is -l, not -s.
11758 2001-09-05  Akim Demaille  <akim@epita.fr>
11760         Be ready to handle filenames as stupid as `dnl.at', for if even
11761         the maintainer is dumb enough to do that...
11763         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
11764         excellence in M4 quotation: consider `__file__' is active.
11766         And BTW, when invoking m4, pass the --include in the right order:
11767         the wrong one.
11769         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
11770         4m.
11772 2001-09-05  Akim Demaille  <akim@epita.fr>
11774         * lib/Autom4te/XFile.pm: New lib file.
11775         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
11776         * bin/autoheader.in: Use it.
11778 2001-09-05  Akim Demaille  <akim@epita.fr>
11780         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
11781         defined.
11783 2001-09-05  Akim Demaille  <akim@epita.fr>
11785         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
11786         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
11788         * bin/autoscan.in: Use `getopt' and `find_files' etc.
11789         Add -I, --include support.
11790         * doc/autoconf.texi (autoscan Invocation): Adjust.
11792 2001-09-05  Akim Demaille  <akim@epita.fr>
11794         CVS GNU M4 doesn't like `undefine(undefined)'.
11796         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
11797         New, extracted from main.
11798         Use IO::File wherever possible.
11799         (input.m4): Be constant, use -I instead of hard coding $tmp.
11800         Therefore be a quoted heredoc.
11801         Don't invoke `_au_disable', since ac was not loaded, but just
11802         `unm4.m4'.
11804 2001-08-31  Akim Demaille  <akim@epita.fr>
11806         Version 2.52d.
11808 2001-08-31  Akim Demaille  <akim@epita.fr>
11810         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
11811         previous patch.
11812         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
11814 2001-08-31  Akim Demaille  <akim@epita.fr>
11816         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
11817         serious problems handling heredocs in heredocs.
11818         Reported by Nicolas Joly.
11820 2001-08-31  Akim Demaille  <akim@epita.fr>
11822         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
11823         (Making testsuite Scripts): Update.
11825 2001-08-31  Akim Demaille  <akim@epita.fr>
11827         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
11829 2001-08-31  Akim Demaille  <akim@epita.fr>
11831         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
11832         (testsuite Scripts): There is no such thing as `atconfig.in'.
11833         And actually one diagram is missing: test suite runtime.
11835 2001-08-31  Akim Demaille  <akim@epita.fr>
11837         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
11838         inverse order.
11840 2001-08-31  Akim Demaille  <akim@epita.fr>
11842         * bin/autoupdate.in (@include): `installcheck' revealed the path
11843         to m4sugar was lacking!
11845 2001-08-31  Akim Demaille  <akim@epita.fr>
11847         * man/Makefile.am (.x.1): We really have to pass
11848         autom4te_perllibdir.
11850 2001-08-31  Akim Demaille  <akim@epita.fr>
11852         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
11853         debug scripts, in particular passing explicitly listed tests to
11854         run is stupid.
11856 2001-08-31  Akim Demaille  <akim@epita.fr>
11858         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
11859         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
11860         Use directly autom4te, not autoconf.
11861         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
11863 2001-08-31  Akim Demaille  <akim@epita.fr>
11865         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
11866         * bin/autoheader.in (%symbol): Strip arguments of macros.
11868 2001-08-31  Akim Demaille  <akim@epita.fr>
11870         * doc/autoconf.texi: Catch up -I, --include changes.
11872 2001-08-31  Akim Demaille  <akim@epita.fr>
11874         * bin/autom4te.in (&parse_args): Die on unknown languages.
11875         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
11876         need for autoconf.
11877         Promote --include over --macrodir and other obsolete options.
11879 2001-08-31  Akim Demaille  <akim@epita.fr>
11881         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
11882         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
11883         * bin/autom4te.in ($autoconf): Pass --force.
11884         `print $out' doesn't print `$_' but `$out'.
11885         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
11886         (autoheader): Pass --force since the test suite goes too fast for
11887         the time stamps.
11888         Adjust to the new autoheader messages.
11890 2001-08-31  Akim Demaille  <akim@epita.fr>
11892         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
11893         Check the completeness of the #template.
11894         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
11895         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
11896         invocation.
11898 2001-08-31  Akim Demaille  <akim@epita.fr>
11900         * lib/Autom4te/General.pm (&find_file, &update_file): New.
11901         * bin/autoupdate.in, bin/autoheader.in: Adjust.
11902         Drop AC_MACRODIR dead for real.
11903         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
11904         `autoheader: `config.hin' is created'.
11905         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
11907 2001-08-31  Akim Demaille  <akim@epita.fr>
11909         * bin/autoheader.in: Rewrite in Perl.
11910         * tests/autoheader: Adjust.
11912 2001-08-31  Akim Demaille  <akim@epita.fr>
11914         * bin/autoconf.in (--include, -I): New option.
11915         Map --localdir, --autoconf-dir onto it.
11916         Forward autom4te's options instead of interpreting them.
11917         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
11918         There is no such envvar since the inception of autom4te.cfg.
11919         * bin/autom4te.in (&parse_args): Uniquify `@include'.
11920         * bin/autoupdate.in: Adjust, and perform more control.
11921         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
11922         * tests/autoconf: Dittowise.
11924 2001-08-31  Akim Demaille  <akim@epita.fr>
11926         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
11927         * bin/autom4te.in (&find_file): Support `FILE?' standing for
11928         optionally `FILE'.
11929         Use -e, not -f, since /dev/null for instance is OK.
11930         (&parse_args): Adjust.
11931         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
11933 2001-08-31  Akim Demaille  <akim@epita.fr>
11935         * configure.ac: Also find tested executables in bin.
11936         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
11937         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
11938         installed peer executables, only PATH is allowed to resolve it.
11939         Pass `autoconf_dir' via options, not via invisible envvars.
11940         * lib/Autom4te/General.pm (&find_peer): Remove.
11941         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
11942         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
11943         * man/Makefile.am: Let help2man rely on PATH instead of trying to
11944         find the executables for it.
11945         * tests/Makefile.am: Major cleanup.  Too lazy to document...
11946         * tests/atlocal.in: Remove all the obscure envvar manipulations.
11947         We only need PERL.
11948         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
11949         indeed related to running the test suite, while passing
11950         --autoconf-dir and others is related to running non installed
11951         Autoconf executables.  So don't do that, leave it to...
11952         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
11953         * tests/autoscan: New.
11954         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
11955         refer to library files: rely on --language.
11957 2001-08-29  Akim Demaille  <akim@epita.fr>
11959         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
11960         s/--set/--language/.
11962 2001-08-29  Akim Demaille  <akim@epita.fr>
11964         * doc/autoconf.texi: Strip the @nodes.
11965         Suggested by Paul Eggert.
11966         (Initializing configure): Typo.
11968 2001-08-29  Akim Demaille  <akim@epita.fr>
11970         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
11971         Suggested by Paul Eggert.
11973 2001-08-29  Akim Demaille  <akim@epita.fr>
11975         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
11976         download in a tmp dir.
11978 2001-08-29  Akim Demaille  <akim@epita.fr>
11980         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
11981         case insensitive OSes out there :(
11982         From Tim Van Holder.
11984 2001-08-29  Akim Demaille  <akim@epita.fr>
11986         * lib/autom4te.in: New.
11987         * lib/Makefile.am (edit, autom4te.cfg): New.
11988         * bin/autom4te.in (BEGIN): Simplify.
11989         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
11990         (&load_configuration): New.  Use it.
11991         (&parse_args): Support --mode, --set, and --melt.
11992         * bin/autoconf.in: Simplify and adjust.
11993         * tests/Makefile.am (AUTOMAKE): Use --set.
11994         * tests/atlocal.in: Adjust.
11995         * BUGS: distcheck and check are weak.
11997 2001-08-29  Akim Demaille  <akim@epita.fr>
11999         * lib/autotest/general.m4: Use
12000                 foo=`(command) 2>/dev/null`
12001         not
12002                 foo=`command` 2>/dev/null
12003         (at-devnull): Rename as...
12004         (AT-devnull): this.
12005         (--clean): Remove AT-* files too.
12006         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
12007         Reported by Nicolas Joly.
12009 2001-08-28  Akim Demaille  <akim@epita.fr>
12011         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
12012         quotes inside single quotes.
12013         Reported by Nicolas Joly.
12015 2001-08-28  Kevin Ryde  <user42@zip.com.au>
12017         * doc/autoconf.texi (Function Portability): Mention C right shifts.
12019 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
12021         * lib/autotest/general.m4: Reword some messages.
12022         (AT_INIT): Check for the `times' builtin before using it.
12023         Support test ranges as arguments to the testsuite.
12024         Have -e imply -d as the help text suggested.
12026 2001-08-27  Akim Demaille  <akim@epita.fr>
12028         * Makefile.maint: Formatting changes.
12029         (do-po-update, po-update, cvs-update, update): New targets.
12030         (AMTAR): Remove.
12032 2001-08-27  Akim Demaille  <akim@epita.fr>
12034         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
12035         <at_cmd_line>: New.
12036         Pass it to debug-*.sh scripts.
12037         <AUTOTEST_PATH>: May contain absolute dir names.
12039 2001-08-27  Akim Demaille  <akim@epita.fr>
12041         * lib/autotest/general.m4 (AT_INIT): Log the command line.
12042         Support `VAR=VAL' as arguments.
12043         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
12044         may be set via the command line.
12046 2001-08-27  Akim Demaille  <akim@epita.fr>
12048         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
12049         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
12050         first the build dirs, then the src dirs.
12051         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
12053 2001-08-27  Akim Demaille  <akim@epita.fr>
12055         * lib/autotest/general.m4 (AT_INIT): Output the definition of
12056         at_data_files earlier.
12057         (--clean, -c): New option.
12058         * tests/Makefile.am: Use this option.
12060 2001-08-27  Akim Demaille  <akim@epita.fr>
12062         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
12063         `ac_top_builddir' to mimic Automake's vocabulary, which much more
12064         readable.
12065         Adjust callers.
12066         * doc/autoconf.texi (Configuration Actions): Document the vars
12067         available in commands.
12068         Emphasize the risks of collisions in init-cmds.
12070 2001-08-27  Akim Demaille  <akim@epita.fr>
12072         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
12073         (Initializing configure): this new node.
12075 2001-08-27  Akim Demaille  <akim@epita.fr>
12077         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
12079 2001-08-27  Akim Demaille  <akim@epita.fr>
12081         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
12082         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
12083         New file.
12084         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
12086 2001-08-27  Akim Demaille  <akim@epita.fr>
12088         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
12089         to...
12090         * lib/autoconf/autoheader.m4: this new file.
12091         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
12092         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
12093         Move to...
12094         * lib/autoconf/autoupdate.m4: this new file.
12096 2001-08-27  Akim Demaille  <akim@epita.fr>
12098         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
12099         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
12100         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
12101         -> ac_dir).
12102         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
12103         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
12105 2001-08-27  Akim Demaille  <akim@epita.fr>
12107         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
12108         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
12109         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
12110         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
12111         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
12112         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
12113         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
12114         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
12115         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
12116         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
12117         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
12118         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
12119         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
12120         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
12121         (_AC_OUTPUT_SUBDIRS): Move to...
12122         * lib/autoconf/status.m4: this new file.
12123         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
12124         * tests/Makefile.am, tests/suite.at: Adjust.
12126 2001-08-27  Akim Demaille  <akim@epita.fr>
12128         Automake 1.5.
12130         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
12131         (AMTAR): Help automake define it.
12132         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
12133         needed, 1.5 can have a macro and a target with the same name.
12134         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
12135         * m4/strip.m4: New.
12136         * m4/init.m4, m4/sanity.m4: Update.
12137         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
12138         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
12139         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
12140         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
12142 2001-08-27  Akim Demaille  <akim@epita.fr>
12144         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
12146         * lib/autoconf/version.in: Remove.
12147         * lib/m4sugar/version.in: New.
12148         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
12149         Adjust callers.
12150         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
12151         the name of the directory they're in, instead of the filename,
12152         since version.m4 is now in m4sugar, but m4_acversion must not be
12153         classified as an Autoconf macro.
12154         ($input_m4): Don't qualify the path to m4sugar.
12155         Rather, pass autoconf_dir to m4.
12156         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
12157         * tests/suite.at: Require 2.52c.
12159 2001-08-27  Akim Demaille  <akim@epita.fr>
12161         testsuite.log should include config.log.
12163         * lib/autotest/autotest.m4: New.
12164         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
12165         * tests/suite.at : Adjust.
12166         (AT_INIT): Log config.log.
12167         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
12168         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
12169         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
12170         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
12171         of config.log on traps.
12172         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
12173         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
12174         for config.status'.
12175         Open the log as soon as possible.
12176         Use the same log introduction as configure's.
12178 2001-08-22  Paul Eggert  <eggert@twinsun.com>
12180         * doc/autoconf.texi (Indices): New node.
12181         Move indices out of the top level menu and into this submenu.
12183 2001-08-22  Akim Demaille  <akim@epita.fr>
12185         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
12186         AC_TRY_COMMAND.
12187         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
12189 2001-08-22  Akim Demaille  <akim@epita.fr>
12191         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
12192         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
12193         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
12194         * lib/autoconf/programs.m4: here.
12195         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
12196         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
12197         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
12198         * lib/autoconf/programs.m4: here.
12199         (_AC_DECL_YYTEXT): Rename as...
12200         (_AC_PROG_LEX_YYTEXT_DECL): this.
12201         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
12202         * tests/Makefile.am, tests/suite.am: Adjust.
12204 2001-08-22  Akim Demaille  <akim@epita.fr>
12206         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
12207         Move to...
12208         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
12209         here.
12210         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
12211         * lib/autoconf/functions.m4: here.
12212         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
12213         (AH_CHECK_LIB): Move to...
12214         * lib/autoconf/libs: this new file.
12215         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
12216         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
12217         * lib/autoconf/libs.m4: here.
12218         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
12220 2001-08-22  Akim Demaille  <akim@epita.fr>
12222         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
12223         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
12224         (AC_SITE_LOAD): Better logging of config.site.
12226 2001-08-20  Akim Demaille  <akim@epita.fr>
12228         * configure.ac (AT_CONFIG): Fix the path.
12229         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
12230         can be used.
12232 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
12234         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
12235         program with AC_LANG_PROGRAM before feeding it to
12236         AC_COMPILE_IFELSE.  Cleanup grep usage.
12238 2001-08-20  Akim Demaille  <akim@epita.fr>
12240         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
12241         * NEWS, README, README-alpha, TODO, tests/README: This package is
12242         `Autoconf', not `autoconf' (the executable).
12244 2001-08-20  Akim Demaille  <akim@epita.fr>
12246         Info readers seem to need `Index' in the index node title :(
12248         * doc/autoconf.texi: Reverse the 2001-08-15 change which
12249         simplified index node names.
12251 2001-08-20  Akim Demaille  <akim@epita.fr>
12253         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
12254         arguments are not literals.
12255         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
12256         Specify the output variables, and macros defined.
12258 2001-08-20  Akim Demaille  <akim@epita.fr>
12260         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
12261         (Examining Syntax) <AC_TRY_COMPILE>
12262         (Examining Libraries) <AC_TRY_LINK>
12263         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
12264         their arguments.
12265         Reported by Werner Lemberg.
12267 2001-08-20  Akim Demaille  <akim@epita.fr>
12269         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
12270         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
12271         Load atlocal late enough to dump it in the log.
12272         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
12274 2001-08-20  Akim Demaille  <akim@epita.fr>
12276         * tests/torture.at (Configuring subdirectories): New test.
12277         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
12278         looking for.
12279         * m4/atconfig.m4: Be sure the let $[0] be expandable.
12280         (top_srcdir): Fix its computation.
12282 2001-08-20  Akim Demaille  <akim@epita.fr>
12284         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
12285         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
12286         test suite lives.
12287         Create `atconfig' automagically.
12288         Configure atlocal.in if present.
12289         * tests/atconfig.in: Remove.
12290         * tests/atlocal.in: New.
12291         * tests/Makefile.am: Adjust.
12293 2001-08-20  Akim Demaille  <akim@epita.fr>
12295         Huh!?!?!  There are still some user EOF tags used, which prevents
12296         their use in AC_CONFIG_COMMANDS for instance...
12298         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
12299         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
12300         `_CSEOF', or `_ATEOF', as appropriate.
12301         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
12302         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
12304 2001-08-20  Akim Demaille  <akim@epita.fr>
12306         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
12307         * tests/semantics.at, tests/tools.at, tests/torture.at:
12308         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
12310 2001-08-20  Akim Demaille  <akim@epita.fr>
12312         Autotest invokes M4sh's initialization.
12314         * lib/autotest/general.m4: Adjust the diversion names.
12315         (AT_INIT): Run AS_INIT.
12316         Use the BINSH diversion to invoke /bin/sh.
12317         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
12318         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
12320 2001-08-20  Akim Demaille  <akim@epita.fr>
12322         Let M4sh have its own diversions.
12324         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
12325         (_m4_divert(NOTICE)): Rename as...
12326         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
12327         (_m4_divert(HEADER-COMMENT)): these.
12328         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
12329         (_m4_divert(NOTICE)): New, for Libtool.
12330         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
12331         long ago with `_m4_divert(GROW)'.
12332         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
12334 2001-08-20  Akim Demaille  <akim@epita.fr>
12336         * tests/base.at, tests/compile.at, tests/foreign.at,
12337         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
12338         * tests/semantics.at, tests/suite.at, tests/tools.at,
12339         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
12341 2001-08-20  Akim Demaille  <akim@epita.fr>
12343         * bin/autom4te.in (handle_output): Handle @__@.
12345 2001-08-20  Akim Demaille  <akim@epita.fr>
12347         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
12348         * lib/autotest/general.m4: Adjust the license.
12350 2001-08-17  Paul Eggert  <eggert@twinsun.com>
12352         * doc/autoconf.texi (Function Portability): Mention snprintf,
12353         following up on a suggestion by Kevin Ryde.
12355 2001-08-17  Akim Demaille  <akim@epita.fr>
12357         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
12358         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
12360 2001-08-17  Akim Demaille  <akim@epita.fr>
12362         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
12363         `$0.log' as for projects where testsuite is in src, we'd have
12364         testsuite.log created in src.
12366 2001-08-17  Akim Demaille  <akim@epita.fr>
12368         * bin/autom4te.in (&parse_args): Recognize --normalize.
12370 2001-08-17  Akim Demaille  <akim@epita.fr>
12372         Start implementing the AC_CHECK_HEADER transition scheme.
12374         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
12375         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
12376         (AC_CHECK_HEADER): Use them.
12378 2001-08-17  Akim Demaille  <akim@epita.fr>
12380         * doc/autoconf.texi: Work around Texinfo buglets.
12381         (Transformation Rules): One example is enough, users are expected
12382         to have their brains on. And BTW, use DESTDIR.
12383         (dvar): New macro.  Use it.
12385 2001-08-17  Akim Demaille  <akim@epita.fr>
12387         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
12388         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
12389         looking for ChangeLogs.
12391 2001-08-17  Akim Demaille  <akim@epita.fr>
12393         * bin/autom4te.in: --normalize is a new option.
12394         * bin/autoconf.in: Use it.
12396 2001-08-17  Akim Demaille  <akim@epita.fr>
12398         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
12399         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
12401 2001-08-16  Paul Eggert  <eggert@twinsun.com>
12403         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
12404         start, not at end.
12406 2001-08-15  Akim Demaille  <akim@epita.fr>
12408         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
12409         Use it.
12411 2001-08-15  Akim Demaille  <akim@epita.fr>
12413         * doc/autoconf.texi (pr): New index.
12414         (prindex, findex): Use, merge, and output them.
12415         (Environment Variable Index, Output Variable Index)
12416         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
12417         (Autotest Macro Index): Rename as...
12418         (Environment Variables, Output Variables,Preprocessor Symbols)
12419         (Autoconf Macros, M4 Macros, Autotest Macros): these.
12420         * doc/install.texi: Use @command.
12421         (Environment Variables): Rename as...
12422         (Defining Variables): this.
12424 2001-08-15  Akim Demaille  <akim@epita.fr>
12426         * doc/autoconf.texi (Function Portability): sprintf's return
12427         value.
12428         From Kevin Ryde.
12430 2001-08-15  Akim Demaille  <akim@epita.fr>
12432         * Makefile.maint (CVS): New.
12433         (local-check): Run changelog-check. last.
12434         (alpha): Don't depend upon local-check, since...
12435         (cvs-dist): depends upon it.
12437 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
12439         * tests/Makefile.am: Use a clean-local rule to remove
12440         autom4te.cache (it's a directory, not a file.
12441         * Makefile.am: Ditto (but maintainer-clean-local).
12443 2001-08-15  Akim Demaille  <akim@epita.fr>
12445         * bin/autom4te.in (@m4_warning): New.
12446         (&handle_m4): Use it.
12447         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
12448         warnings are issued at each run.
12449         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
12450         is in the src tree.
12452 2001-08-15  Akim Demaille  <akim@epita.fr>
12454         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
12455         don't waste time running `autoupdate --version' works.
12456         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
12458 2001-08-13  Akim Demaille  <akim@epita.fr>
12460         * doc/autoconf.texi (ma): Rename this index as...
12461         (ac): this.
12463 2001-08-13  Akim Demaille  <akim@epita.fr>
12465         * Makefile.am: Remove dead code and dead comments.
12466         (pdf, html): New targets.
12467         * doc/autoconf.texi (Using Autotest): New chapter.
12468         * doc/Makefile.am (pdf): New targets.
12469         (CLEANFILES): Adjust.
12471 2001-08-13  Akim Demaille  <akim@epita.fr>
12473         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
12474         duration of the test suite.
12476 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
12478         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
12479         endianness for comparison instead of relying on AT_CHECK_ENV.
12481 2001-08-11  Paul Eggert  <eggert@twinsun.com>
12483         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
12484         to the INSTALL file.
12486 2001-08-11  Paul Eggert  <eggert@twinsun.com>
12488         * NEWS: The autoconf manual now is distributed under the terms
12489         of the GNU Free Documentation License.
12491         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
12492         Add an appendix "Copying This Manual" for the FDL.
12494         * doc/fdl.texi: New file, from
12495         <http://www.gnu.org/licenses/fdl.texi>.
12497         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
12499 2001-08-10  Paul Eggert  <eggert@twinsun.com>
12501         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
12502         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
12503         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
12504         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
12505         m4/sanity.m4, tests/README, tests/aclocal.m4,
12506         tests/atspecific.m4, tests/base.at, tests/compile.at,
12507         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
12508         tests/semantics.at, tests/suite.at, tests/tools.at,
12509         tests/torture.at: Add copyright notice.
12511         * tests/mktests.sh: Update year in copyright notice.
12513 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
12515         * tests/semantics.at (AC_C_BIGENDIAN): New test.
12517 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
12519         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
12520         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
12521         * doc/autoconf.texi (C Compiler Characteristics): Update
12522         documentation for AC_C_BIGENDIAN.
12524 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
12526         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
12527         magic values from an object file when cross-compiling.
12528         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
12530 2001-08-10  Akim Demaille  <akim@epita.fr>
12532         * bin/autom4te.in (&handle_output): Don't use `grep' with side
12533         effects.
12534         Suggested by Russ Allbery.
12536 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
12538         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
12539         current $prefix to the sub-configures.
12541 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
12543         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
12544         extension (needed on BeOS).  Reported by Guido van Rossum.
12546 2001-08-09  Akim Demaille  <akim@epita.fr>
12548         * bin/autom4te.in ($icache): Load it only if older than autom4te.
12550 2001-08-07  Akim Demaille  <akim@epita.fr>
12552         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
12553         removed.
12554         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
12555         No need to remove the files before and after the each test, before
12556         each test and at the end of the suite is enough.
12557         Display only the children `times', not the shell's.
12558         If the test failed or was skipped, at-times is not available.
12560 2001-08-07  Akim Demaille  <akim@epita.fr>
12562         Always produce testsuite.log, including when there are no
12563         failures.  This helps getting information on skipped tests, and
12564         duration of the tests.  Err, implement the latter btw.
12566         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
12567         Dump information on the first run of each test.
12568         (AT_CLEANUP): Create `at-times' containing the duration of the
12569         test group.
12571 2001-08-07  Akim Demaille  <akim@epita.fr>
12573         The use of `dumpstat' revealed that `len' was used although it
12574         should not.  m4_text_wrap was using it, but in the Autoconf world
12575         where it is legal.  Hence (i) test M4sh in its own world, not
12576         Autoconf's, and (ii), ahem, fix the bug :)
12578         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
12579         does not like `' instead of [].
12580         (AT_INIT): Forbid `^_?AT_'.
12581         And don't output such tokens.
12582         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
12583         `script.as', and `autom4te.cache'.
12584         Remove `empty' and `macro' which are no longer used.
12585         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
12586         * tests/m4sugar.at: Use it.
12587         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
12589 2001-08-07  Akim Demaille  <akim@epita.fr>
12591         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
12593 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
12595         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
12597 2001-08-04  Akim Demaille  <akim@epita.fr>
12599         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
12600         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
12601         AC_TRY_LINK.
12602         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
12603         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
12604         (AC_F77_MAIN): Likewise.
12606 2001-08-04  Akim Demaille  <akim@epita.fr>
12608         Don't rely on M4sugar outputting the patterns in files, since we
12609         might process the output _without_ running m4, hence without these
12610         files.
12612         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
12613         * bin/autom4te.in (@Request::includes): Remove, unused.
12614         (@Request::source): Rename as...
12615         (@Request::input): this.
12616         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
12617         (&handle_output): Fetch the patterns from the traces.
12618         `$forbidden' and `$allowed' are constant: use m//o.
12619         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
12620         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
12622 2001-08-04  Akim Demaille  <akim@epita.fr>
12624         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
12625         autoconf', i.e., in addition to caching traces, cache the output.
12627         * bin/autom4te.in (Request::cache): Rename as...
12628         (Request::id): this.
12629         ($cache, $icache, $tcache, $ocache): New.
12630         (&handle_m4): Save M4 output in the cache instead of $tmp.
12631         (&handle_output): Adjust.
12632         (&up_to_date_p): Check that the output cache is up to date too.
12633         (top level): Run `&handle_m4' iff force or the cache is invalid.
12634         Run `&handle_output' if the output cache is more recent.
12636 2001-08-04  Akim Demaille  <akim@epita.fr>
12638         * bin/autom4te.in ($force): New.
12639         (&parse_args, &print_usage): -f, --force is a new option.
12640         (&handle_output): CPP directives might have spaces after `#'.
12641         (&parse_args): The first file only can be frozen.
12643 2001-08-04  Akim Demaille  <akim@epita.fr>
12645         Don't let autom4te compute the `include' traces several times:
12646         first check that the trace cache file is up to date, and then
12647         compare its timestamp with that of the output.
12649         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
12650         the preamble.  Don't require 5.005 as Autom4te::General does it,
12651         and better yet (use `use', not `require'!).
12652         * lib/Autom4te/Struct.pm: Rename the last occurrences of
12653         Class::Struct as Autom4te::Struct.
12654         * lib/Autom4te/General.pm (File::stat): Use it.
12655         (&mtime): New, export it.
12656         * bin/autom4te.in: Use it.
12657         Declare `$req' is invalid if it is outdated.
12658         Don't declare it valid before saving it if something went wrong.
12660 2001-08-04  Akim Demaille  <akim@epita.fr>
12662         Autom4te shall not encode Autoconf data, and preselecting traces
12663         must be proposed to the users.
12665         * bin/autom4te.in (@required_trace): Remove.
12666         (@preselect): New.
12667         (&parse_args, &print_usage): -p, --preselect is a new option.
12668         (&up_to_date_p): Adjust.
12669         * bin/autoconf.in: Preselect some Autoconf macros.
12671 2001-08-04  Akim Demaille  <akim@epita.fr>
12673         * tests/tools.at (autoconf --trace: user macros): Check traces on
12674         macros invoked without arguments, and macros invoked with multiple
12675         lines arguments.
12677 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
12679         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
12680         arguments.
12682 2001-08-03  Akim Demaille  <akim@epita.fr>
12684         * bin/autoconf.in ($@): Work around the usual sh bug.
12685         From Nicolas Joly.
12687 2001-08-03  Akim Demaille  <akim@epita.fr>
12689         Clean up the handling of the M4 builtins tracing exception.
12691         * bin/autom4te.in (Request::request): Don't complete M4 builtins
12692         trace requests.
12693         (@m4_builtins): Rename as...
12694         (@m4_builtin): this.
12695         (%m4_builtin_alternate_name): New.
12696         (&parse_args): Complete the trace requests with alternate names.
12697         (&handle_traces): Hence no longer do it here.
12698         (&trace_requests): Remove, unused.
12700 2001-08-03  Akim Demaille  <akim@epita.fr>
12702         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
12703         m4_if, and m4_wrap.
12705 2001-08-03  Akim Demaille  <akim@epita.fr>
12707         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
12708         (m4_divert_pop): Dump the whole diversion stack when a diversion
12709         mismatch happens.
12710         * bin/autom4te.in (&handle_output): Remember of the first
12711         occurrence of a possibly undefined macro, not the last.
12712         Complain about the possibly undefined macros in the same order as
12713         the appear in the output.
12714         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
12715         * tests/tools.at (autoconf: forbidden tokens, basic)
12716         (autoconf: forbidden tokens, exceptions): No longer sort
12717         autoconf's stderr, as it is now deterministic.
12718         Check that `dnl' is caught.
12720 2001-08-01  Akim Demaille  <akim@epita.fr>
12722         * configure.ac: Bump to 2.52c.
12724 2001-08-01  Akim Demaille  <akim@epita.fr>
12726         Version 2.52b.
12728         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
12730 2001-08-01  Akim Demaille  <akim@epita.fr>
12732         Version 2.52a.
12734 2001-08-01  Akim Demaille  <akim@epita.fr>
12736         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
12737         `die'.
12738         (&END): New.
12739         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
12740         `END', as `Autom4te::General::END' will be triggered.
12741         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
12742         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
12743         system to run `mv', `rm', and `cmp'.
12745 2001-08-01  Akim Demaille  <akim@epita.fr>
12747         * lib/Autom4te/General.pm (&unique): New.
12748         * bin/autoscan.in (&output): Use it to issue trace requests once.
12750 2001-08-01  Akim Demaille  <akim@epita.fr>
12752         * lib/Autom4te/General.pm: New.
12753         * bin/autom4te.in (Autom4te::General): Use it.
12754         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
12755         (&find_configure_ac, &find_slave): Remove.
12756         * bin/autoscan.in: Likewise.
12757         * bin/autoupdate.in: Likewise.
12759 2001-08-01  Akim Demaille  <akim@epita.fr>
12761         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
12762         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
12763         * bin: here, new directory.
12764         * lib/Autoconf: Rename as...
12765         * lib/Autom4te: this, to please case insensitive junkie OSes.
12767 2001-08-01  Akim Demaille  <akim@epita.fr>
12769         * autom4te.in ($m4): Handle the --nesting-limit.
12770         * autoconf.in (M4): Remove.
12772 2001-08-01  Akim Demaille  <akim@epita.fr>
12774         * autoconf.in ($AWK): Remove, no longer used.
12775         * test/tools.at: Use AT_CHECK_AUTOCONF.
12776         (AWK portability): Remove, for autoconf no longer uses AWK.
12777         (Syntax of the Perl scripts): New.
12778         * configure.ac: autoconf no longer needs an AWK with a good
12779         regexp engine.
12780         Use a static test on AC_PACKAGE_VERSION.
12781         * autom4te.in (&up_to_date_p): Output depends on the arguments.
12782         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
12783         * tests/atconfig.in (PERL): New.
12785 2001-08-01  Akim Demaille  <akim@epita.fr>
12787         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
12788         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
12789         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
12790         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
12791         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
12792         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
12793         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
12794         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
12795         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
12796         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
12797         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
12798         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
12799         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
12800         * lib/autoconf/c.m4: here, new file.
12802         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
12803         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
12804         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
12805         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
12806         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
12807         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
12808         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
12809         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
12810         (AC_F77_FUNC): Move to...
12811         * lib/autoconf/fortran.m4: here, new file.
12813 2001-08-01  Akim Demaille  <akim@epita.fr>
12815         * acfunctions.m4: Rename as...
12816         * lib/autoconf/functions.m4: this.
12817         * acgeneral.m4: Rename as...
12818         * lib/autoconf/general.m4: this.
12819         * acheaders.m4: Rename as...
12820         * lib/autoconf/headers.m4: this.
12821         * aclang.m4: Rename as...
12822         * lib/autoconf/lang.m4: this.
12823         * acoldnames.m4: Rename as...
12824         * lib/autoconf/oldnames.m4: this.
12825         * acspecific.m4: Rename as...
12826         * lib/autoconf/specific.m4: this.
12827         * actypes.m4: Rename as...
12828         * lib/autoconf/types.m4: this.
12829         * autoconf.m4: Rename as...
12830         * lib/autoconf/autoconf.m4: this.
12832         * m4sugar.m4: Rename as...
12833         * lib/m4sugar/m4sugar.m4: this.
12834         * m4sh.m4: Rename as...
12835         * lib/m4sugar/m4sh.m4: this.
12837         * tests/atgeneral.m4: Rename as...
12838         * lib/autotest/general.m4: this.
12840         * acfunctions: Rename as...
12841         * lib/autoscan/functions: this.
12842         * acheaders: Rename as...
12843         * lib/autoscan/headers: this.
12844         * acidentifiers: Rename as...
12845         * lib/autoscan/identifiers: this.
12846         * aclibraries: Rename as...
12847         * lib/autoscan/libraries: this.
12848         * acmakevars: Rename as...
12849         * lib/autoscan/makevars: this.
12850         * acprograms: Rename as...
12851         * lib/autoscan/programs: this.
12853 2001-08-01  Akim Demaille  <akim@epita.fr>
12855         * doc/autoconf.texi: Moving/deleting open files is not portable.
12856         Portability issues for `.' (source), and more information about sed.
12858 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
12860         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
12861         which has a special meaning and is not a reference to libibmil.a.
12862         Reported by Matteo Frigo.
12864 2001-07-25  Pavel Roskin  <proski@gnu.org>
12866         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
12867         output.
12869 2001-07-25  Akim Demaille  <akim@epita.fr>
12871         * autoconf.in: Try to define the variables before using them.
12872         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
12873         instead of `$perllibdir'.
12874         * tests/atconfig.in ($autom4te_perllibdir): Export it.
12876 2001-07-25  Akim Demaille  <akim@epita.fr>
12878         * autoconf.in (ac_LF_and_DOT): Remove, unused.
12880 2001-07-24  Akim Demaille  <akim@epita.fr>
12882         Let autoconf use autom4te for traces.
12884         * autoconf.in ($task, task trace): Remove, merely pass --trace to
12885         autom4te.
12886         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
12887         (Because I found no way for autom4te to accept `-').
12888         * autom4te.in (&Request::request): Beware of M4 builtins.
12889         (END): Don't try to remove the content of an empty dir.
12890         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
12891         (&handle_output): Set a default value to `$forbidden'.
12892         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
12893         ($autoconf): Pass --debug and --verbose.
12894         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
12895         cache.
12897 2001-07-24  Akim Demaille  <akim@epita.fr>
12899         Let autoconf use autom4te to create configure.
12901         * autoconf.in ($automate): New var.
12902         (task script): Use autom4te.
12903         * autom4te.in (File::Spec): Use it.
12904         (&find_file): New.
12905         (&parse_args): --warning is -W, not -w.
12906         Find the top level files.
12907         (&handle_m4): Pass the warnings flags.
12908         Don't report verbosely m4's failures, unless requested.
12909         (&handle_output): Don't complain for forbidden tokens in comments.
12910         Be sure to report all the forbidden tokens within a single line.
12911         (&trace_format_to_m4): Preserve `$_'.
12912         (&handle_traces): Sort the output macros.
12913         (&up_to_date_p): Find the files before trying to get its time stamp.
12915 2001-07-24  Akim Demaille  <akim@epita.fr>
12917         * Makefile.am: Ship, build and install Autom4te.
12918         (SUBDIRS): Add lib.
12919         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
12920         * configure.in: Require Perl.
12921         * man/autom4te.in: New.
12923 2001-07-19  Paul Eggert  <eggert@twinsun.com>
12925         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
12926         example, rather than (exit 1); exit (which isn't portable).
12928 2001-07-18  Akim Demaille  <akim@epita.fr>
12930         Version 2.52.
12932 2001-07-18  Akim Demaille  <akim@epita.fr>
12934         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
12935         was run, while they are needed also when it is expanded.
12936         Reported by Nicolas Joly.
12938         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
12939         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
12940         AC_F77_DUMMY_MAIN being expanded.
12942 2001-07-18  Akim Demaille  <akim@epita.fr>
12944         * configure.in: Bump to 2.51a.
12946 2001-07-17  Akim Demaille  <akim@epita.fr>
12948         Version 2.51.
12950 2001-07-17  Akim Demaille  <akim@epita.fr>
12952         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
12953         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
12955 2001-07-17  Akim Demaille  <akim@epita.fr>
12957         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
12958         used.  Well, then use the prototypes when you can, and runtime as
12959         a last resort.
12960         Reported by Artur Frysiak
12962         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
12963         (AC_FUNC_GETPGRP): Use it.
12964         First try to compile with 0-ary or 1-ary calls.
12966 2001-07-17  Akim Demaille  <akim@epita.fr>
12968         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
12969         replacement type.
12970         From Paul Eggert.
12972 2001-07-17  Akim Demaille  <akim@epita.fr>
12974         * Makefile.maint: Sync. with cppi 1.10.
12976 2001-07-17  Akim Demaille  <akim@epita.fr>
12978         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
12979         AC_F77_DUMMY_MAIN has been run.
12980         From Pavel Roskin and Steven G. Johnson.
12982 2001-07-17  Akim Demaille  <akim@epita.fr>
12984         * configure.in: Rename as...
12985         * configure.ac: this.
12987 2001-07-17  Akim Demaille  <akim@epita.fr>
12989         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
12990         rules.
12991         From Marc Espie.
12992         * Makefile.maint (release-archive-dir): Rename as...
12993         (release_archive_dir): this, so that it can be specialized in
12994         Makefile.
12996 2001-07-14  Akim Demaille  <akim@epita.fr>
12998         * configure.in: Bump to 2.50d.
13000 2001-07-14  Akim Demaille  <akim@epita.fr>
13002         Version 2.50c.
13003         * Makefile.maint (alpha): Typo.
13005 2001-07-14  Akim Demaille  <akim@epita.fr>
13007         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
13009 2001-07-14  Akim Demaille  <akim@epita.fr>
13011         * config/config.guess, config/config.sub, config/texinfo.tex
13012         * doc/standards.texi, doc/make-stds.texi: Update.
13014 2001-07-14  Akim Demaille  <akim@epita.fr>
13016         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
13018 2001-07-14  Akim Demaille  <akim@epita.fr>
13020         * Makefile.maint (maintainer-check): Rename as...
13021         (maintainer-distcheck): this.
13022         (changelog-check, static-check): New.
13023         Use them.
13025 2001-07-14  Kevin Ryde  <user42@zip.com.au>
13027         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
13028         for CXX is g++, not gcc.
13030 2001-07-14  Akim Demaille  <akim@epita.fr>
13032         * doc/autoconf.texi (Files): New subsection.
13034 2001-07-14  Akim Demaille  <akim@epita.fr>
13036         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
13037         of...
13038         (Generic Compiler Characteristics): this.
13039         (C++ Compiler): New subsection.
13041 2001-07-14  Akim Demaille  <akim@epita.fr>
13043         * autoscan.in: Use IO::File.
13044         Adjust all the routines to use it.
13045         ($log): New file (autoscan.log).
13046         (output): Dump detailed logs into $log, and a shortened version to
13047         stderr.
13048         (&scan_makefile): Refine the regexp catching tokens in the code.
13049         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
13050         and the `configure.ac' checking feature.
13052 2001-07-12  Akim Demaille  <akim@epita.fr>
13054         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
13055         Reported by Michael Elizabeth Chastain.
13057         * autoconf.in: Refuse such AWK.
13058         * configure.in: Likewise.
13059         * Makefile.am (acversion.m4): Do not use move-if-change this file
13060         has dependencies.
13061         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
13063 2001-07-10  Jens Petersen  <petersen@redhat.com>
13065         * autoscan.in (&scan_makefile): Improve programs regexp to parse
13066         things like "g++", "file.c" and "some-conf" as tokens.
13067         (&scan_file): Match C++ files extensions.
13068         If the filename extension is C++ then ask for c++.
13070 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
13072         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
13073         AC_TRY_LINK_FUNC, to check whether defining a dummy
13074         main-like routine is needed for linking with F77 libs.
13076 2001-07-05  Pavel Roskin  <proski@gnu.org>
13078         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
13079         after using break.
13080         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
13081         linking.
13083 2001-07-05  Akim Demaille  <akim@epita.fr>
13085         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
13086         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
13087         Makes' lives.
13088         Reported by Nicolas Joly.
13090 2001-07-04  Akim Demaille  <akim@epita.fr>
13092         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
13093         up.
13094         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
13095         warnings from compilers.
13096         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
13097         for all the compilers, not only GNU.  Hence move from here...
13098         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
13100 2001-07-04  Akim Demaille  <akim@epita.fr>
13102         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
13103         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
13104         AC_COMPILE_IFELSE.
13106 2001-07-04  Akim Demaille  <akim@epita.fr>
13108         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
13109         the ``strings.h'' change claimed below.
13111 2001-07-04  Akim Demaille  <akim@epita.fr>
13113         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
13115 2001-07-04  Akim Demaille  <akim@epita.fr>
13117         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
13118         strings.h if usable with string.h.
13119         Suggested by Paul Eggert.
13121 2001-07-04  Akim Demaille  <akim@epita.fr>
13123         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
13124         From Jens Petersen.
13126 2001-07-03  Akim Demaille  <akim@epita.fr>
13128         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
13129         etc. in the log.
13131 2001-07-03  Akim Demaille  <akim@epita.fr>
13133         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
13134         compiler, not the preprocessor.
13135         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
13136         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
13137         the right thing.
13138         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
13139         earlier if there are.
13141 2001-07-03  Akim Demaille  <akim@epita.fr>
13143         * autoscan.in ($initfile): Remove.
13144         (&find_file): Rename as...
13145         (&scan_file): this.
13146         Immediately scan the current file, instead of gathering them, and
13147         later having them handled by &scan_files.
13148         (&scan_files): Merely invoke Find::File.
13149         Adjust.
13151 2001-07-02  Akim Demaille  <akim@epita.fr>
13153         * autoscan.in: Formatting changes, matching the invocation order.
13154         (File::Find): Use it instead of Perl 4's `find.pl'.
13155         (&wanted): Rename as...
13156         (&find_file): this.
13158 2001-07-01  Pavel Roskin  <proski@gnu.org>
13160         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
13161         break in the argument to AC_TRY_LINK_FUNC.
13162         (AC_F77_MAIN): Remove conftest* after using break in the
13163         argument to AC_TRY_LINK.
13165 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
13167         Add alternate 'main' routine detection for linking C/C++ with Fortran,
13168         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
13170         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
13171         dummy alternate main is required even if the user provides her own
13172         'main'.
13173         (AC_F77_MAIN): New macro to detect whether it is possible to
13174         provide an alternate 'main' function name, using the 'main' from
13175         the Fortran libraries.
13176         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
13177         cross-language link tests can be performed successfully.
13178         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
13179         after $LIBS, for consistency; this should be the general rule since
13180         the user may want to link to Fortran libraries that require $FLIBS.
13181         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
13183 2001-06-29  Pavel Roskin  <proski@gnu.org>
13185         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
13186         at-stdout and at-stderr instead of removing the newline
13187         from the echo output, which is not guaranteed to work.
13189 2001-06-28  Jens Petersen  <petersen@redhat.com>
13191         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
13192         confdefs.h when non-zero.
13194 2001-06-28  Akim Demaille  <akim@epita.fr>
13196         * configure.in: Bump to 2.50c.
13198 2001-06-26  Akim Demaille  <akim@epita.fr>
13200         Version 2.50b.
13202 2001-06-26  Akim Demaille  <akim@epita.fr>
13204         Version 2.50a.
13206 2001-06-25  Pavel Roskin  <proski@gnu.org>
13208         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
13209         argument, AUTOCONF-FLAGS.
13210         * tests/mktests.sh (update_exclude_list): Add
13211         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
13212         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
13213         AC_FUNC_WAIT3 with "-W no-obsolete".
13215 2001-06-25  Akim Demaille  <akim@epita.fr>
13217         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
13219 2001-06-25  Akim Demaille  <akim@epita.fr>
13221         * autoscan.in (%macro): Now maps from word to list of macros.
13222         (&init_tables): Die when a word which is already handled by
13223         explicit macros is mapped to the default macro.
13224         (&print_unique): Remove, inlined in...
13225         (&output_kind): here.
13226         (File::Basename): Use it.
13227         (&output): Sort the CONFIG_FILES.
13228         * acheaders: Normalize.
13229         * acfunctions: Likewise.
13231 2001-06-25  Akim Demaille  <akim@epita.fr>
13233         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
13234         characteristics in the logs.
13235         Suggested by Mo DeJong.
13237 2001-06-24  Akim Demaille  <akim@epita.fr>
13239         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
13240         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
13241         * doc/autoconf.texi (Autoconf 2.13): New section.
13243 2001-06-24  Akim Demaille  <akim@epita.fr>
13245         * autoconf.in (Task traces): Separate the error messages from the
13246         traces to improve robustness.
13248 2001-06-23  Akim Demaille  <akim@epita.fr>
13250         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
13251         three as failures are unlikely, and speed matters.
13253 2001-06-23  Akim Demaille  <akim@epita.fr>
13255         * doc/autoconf.texi (Redefined M4 Macros): New.
13257 2001-06-23  Akim Demaille  <akim@epita.fr>
13259         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
13260         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
13261         5.3.
13263 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
13265         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
13266         config.status targets to after the evaluation of the INIT-CMDS.
13267         Double quote config.status targets (used to be single quoted).
13269 2001-06-23  Akim Demaille  <akim@epita.fr>
13271         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
13272         Check the content of the created file.
13273         Check the ./config.status command line invocation.
13275 2001-06-23  Akim Demaille  <akim@epita.fr>
13277         * tests/foreign.at (Libtool): Reject prehistoric versions.
13279 2001-06-23  Akim Demaille  <akim@epita.fr>
13281         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
13282         preexisting files matching a.*.
13284 2001-06-23  Akim Demaille  <akim@epita.fr>
13286         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
13287         stderr.
13288         * doc/autoconf.texi (AC_ARG_VAR): Update.
13290 2001-06-21  Akim Demaille  <akim@epita.fr>
13292         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
13293         precious variables have changed.
13294         * tests/torture.at (AC_ARG_VAR): Adjust.
13296 2001-06-21  Akim Demaille  <akim@epita.fr>
13298         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
13299         but some sed choke on multiple `;', and other tools (e.g.,
13300         Automake), include the separator themselves.
13302         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
13304 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
13306         * doc/autoconf.texi (Functions Portability): Rename as...
13307         (Function Portability): this.
13308         (Function Portability): Document potential problems with unlink().
13310 2001-06-19  Paul Eggert  <eggert@twinsun.com>
13312         * NEWS, doc/autoconf.texi: Document quadrigraphs.
13314 2001-06-18  Akim Demaille  <akim@epita.fr>
13316         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
13318 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
13320         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
13321         (_AC_FUNC_VFORK): this.
13322         Remove AC_DEFINEs and don't guess cross-compilation values.
13323         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
13324         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
13325         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
13326         vfork doesn't work.
13327         Guess values if cross-compiling, but warn.
13328         * acfunctions: Add AC_FUNC_FORK.
13329         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
13330         and vfork appropriately.
13332 2001-06-18  Akim Demaille  <akim@epita.fr>
13334         * doc/autoconf.texi (Functions Portability): New section.
13336 2001-06-18  Akim Demaille  <akim@epita.fr>
13338         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
13339         in $M4.
13340         Suggested by Andreas Schwab.
13342 2001-06-18  Akim Demaille  <akim@epita.fr>
13344         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
13345         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
13346         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
13347         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
13348         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
13349         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
13350         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
13351         the converse).
13353 2001-06-18  Akim Demaille  <akim@epita.fr>
13355         * doc/autoconf.texi (ms): New index.
13356         (Macro Index): Rename as...
13357         (Autoconf Macro Index): this.
13358         (M4 Macro Index): New appendix.
13359         (Programming in M4): New chapter.
13360         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
13361         (Quoting): Rename as...
13362         (M$ Quotation): this.
13363         Be part of `Programming in M4).
13365 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
13367         * tests/torture.at (AC_ARG_VAR): Set variables and export them
13368         in separate statements for compatibility with Tru64 v5.1.
13370 2001-06-17  Akim Demaille  <akim@epita.fr>
13372         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
13373         current values of the precious variables, not the previously
13374         cached values.
13375         Pass precious variables which are set to config.status.
13376         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
13377         * tests/torture.at (AC_ARG_VAR): New.
13379 2001-06-15  Paul Eggert  <eggert@twinsun.com>
13381         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
13382         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
13383         and explain why and how to replace them.
13384         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
13385         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
13387 2001-06-15  Akim Demaille  <akim@epita.fr>
13389         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
13390         Reported by Bruno Haible.
13392         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
13393          (_AC_ARG_VAR_PRECIOUS): to here.
13395 2001-06-15  Pavel Roskin  <proski@gnu.org>
13397         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
13398         an unused pointer use cast to this type and `if' statement to
13399         avoid warnings from the compiler.
13400         (AC_HEADER_TIME): Likewise.
13401         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
13402         in `if' statement to avoid warnings from the compiler. Declare
13403         ac_aggr static to avoid the need to initialize it.
13405 2001-06-14  Akim Demaille  <akim@epita.fr>
13407         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
13408         Macros'.
13410 2001-06-13  Akim Demaille  <akim@epita.fr>
13412         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
13413         Suggested by Alexander Mai.
13415 2001-06-13  Akim Demaille  <akim@epita.fr>
13417         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
13418         sys/types.h and sys/stat.h, and check for them.
13420 2001-06-13  Akim Demaille  <akim@epita.fr>
13422         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
13423         INCLUDES.
13425 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13427         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
13428         succeeds and only try adding libdnet upon a failure.
13430 2001-06-12  Akim Demaille  <akim@epita.fr>
13432         * autoscan.in (&output_kind): Output the comment only if it exists.
13433         (%kind_comment): Add entry for `programs'.
13434         (&output_programs): Use &output_kind.
13435         (&output_functions, &output_identifiers, &output_headers)
13436         (&output_programs): Inline, and remove.
13438 2001-06-12  Akim Demaille  <akim@epita.fr>
13440         * autoscan.in (%kind_comment): New.
13441         (output_kind): New.
13442         (output_functions, output_identifiers, output_headers): Use it.
13444 2001-06-12  Akim Demaille  <akim@epita.fr>
13446         * autoscan.in (&print_unique): Take `$kind' and `$word' as
13447         arguments, to factor indirections into `%macro' and `%used'.
13448         (%generic_macro): Fix a typo.
13450 2001-06-12  Akim Demaille  <akim@epita.fr>
13452         * aclibraries: New.
13453         * autoscan.in (@kinds): Add `libraries'.
13454         Use `@kinds' instead of hard coded lists.
13455         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
13456         Remove, replaced by...
13457         (%used): this.
13459 2001-06-12  Akim Demaille  <akim@epita.fr>
13461         * autoscan.in (%functions_macros %headers_macros)
13462         (%identifiers_macros %programs_macros %makevars_macros): Remove,
13463         replaced by...
13464         (%macro): New.
13466 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
13468         * aclang.m4 (AC_NO_EXECUTABLES): Override
13469         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
13471 2001-06-11  Akim Demaille  <akim@epita.fr>
13473         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
13474         trailing new line.
13475         Reported by Andreas Schwab.
13477 2001-06-11  Akim Demaille  <akim@epita.fr>
13479         * Makefile.am, Makefile.maint: Typos.
13481 2001-06-09  Akim Demaille  <akim@epita.fr>
13483         * doc/autoconf.texi (Here-Documents): New section, gathering
13484         documentation about here-documents.
13485         Use `href', not `uref', and other changes.
13487 2001-06-09  Akim Demaille  <akim@epita.fr>
13489         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
13490         chapter.
13492 2001-06-09  Akim Demaille  <akim@epita.fr>
13494         * doc/autoconf.texi (Limitations of Builtins): Complete the
13495         description of the here-docs penalties with Alexandre Oliva's
13496         explanations.
13498 2001-06-01  Paul Eggert  <eggert@twinsun.com>
13500         * doc/autoconf.texi: Talk about here documents and speedups.
13501         Do not use "echo" on arbitrary strings.
13502         Spell "here-documents" consistently with the standard.
13504 2001-06-09  Akim Demaille  <akim@epita.fr>
13506         * doc/autoconf.texi (Concept Index): Introduce it.
13507         Regenerate the menus.
13509 2001-06-09  Akim Demaille  <akim@epita.fr>
13511         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
13512         * config/prev-version.txt: New.
13513         * config/move-if-change: New, for GNU libc.
13515 2001-06-06  Pavel Roskin  <proski@gnu.org>
13517         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
13519 2001-06-06  Akim Demaille  <akim@epita.fr>
13521         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
13522         properly when $1 is not a literal.
13523         Fixes PR Autoconf/187, reported by Bram Moolenaar.
13525 2001-06-06  Akim Demaille  <akim@epita.fr>
13527         Invoking AC_COPYRIGHT before AC_INIT fails.
13529         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
13530         * acgeneral.m4 (_m4_divert(VERSION_FSF))
13531         (_m4_divert(VERSION_USER)): New.
13532         (AC_COPYRIGHT): $2 is the diversion to use.
13533         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
13534         (AC_INIT): Remove dead comments as now it's commutative.
13536 2001-06-06  Akim Demaille  <akim@epita.fr>
13538         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
13539         PR autoconf/187.
13541 2001-06-05  Akim Demaille  <akim@epita.fr>
13543         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
13544         can be empty.
13545         `*dir' variables cannot be NONE.
13546         Reported by Mark Kettenis.
13548 2001-06-05  Paul Eggert  <eggert@twinsun.com>
13550         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
13552 2001-06-04  Akim Demaille  <akim@epita.fr>
13554         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
13555         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
13556         (AC_TR_SH): Move as...
13557         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
13558         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
13559         (AS_TR_SH): these.
13560         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
13561         (_AS_TR_SH_PREPARE): New.
13562         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
13563         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
13565 2001-06-02  Akim Demaille  <akim@epita.fr>
13567         * Makefile.am (.m4.m4f): Pass the options first.
13568         Fixes PR autoconf/182.
13570 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
13572         GNU getopt, when POSIXLY_CORRECT does not permute options and
13573         arguments.  So pass the options first.
13574         Fixes PR autoconf/184.
13576         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
13577         (run_m4): Remove files.
13578         (run_m4f): Remove.
13579         Update remainder of script to use them.
13580         (for warning in): Do not use a literal comma as it will not be
13581         split by IFS.
13583 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
13585         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
13586         Fortran compilers to check.
13587         (_AC_PROG_F77_V): Add '-###' as a possible option to print
13588         information on library and object files.
13589         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
13590         to check.
13592 2001-06-02  Akim Demaille  <akim@epita.fr>
13594         * autom4te.in (Request::@request): Declare with `vars', not `my',
13595         as it prevents updates via `do FILENAME'.
13597 2001-06-02  Akim Demaille  <akim@epita.fr>
13599         * configure.in (standards_texi): Remove, dead code.
13601 2001-06-02  Akim Demaille  <akim@epita.fr>
13603         * autom4te.in: New.
13605 2001-06-02  Pavel Roskin  <proski@gnu.org>
13607         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
13608         for signals other than 0 - exit with code 1.
13609         * m4sh.m4 (AS_TMPDIR): Likewise.
13610         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
13611         * autoheader.in: Likewise.
13612         * autoreconf.in: Likewise.
13613         * tests/torture.at (Signal handling): New test for the above.
13615 2001-06-01  Akim Demaille  <akim@epita.fr>
13617         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
13618         message.
13620 2001-05-31  Akim Demaille  <akim@epita.fr>
13622         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
13623         Add copyright and comments.
13624         * acheaders: Add stdint.h.
13625         Suggested by Paul Eggert.
13627 2001-05-31  Akim Demaille  <akim@epita.fr>
13629         * atgeneral.m4 (AT_INIT): Use $SHELL.
13630         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
13632 2001-05-31  Akim Demaille  <akim@epita.fr>
13634         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
13635         stdint.h.
13636         From Paul Eggert and Lars Hecking.
13638 2001-05-31  Akim Demaille  <akim@epita.fr>
13640         * tests/base.at: Adjust line numbers in error messages.
13642 2001-05-31  Akim Demaille  <akim@epita.fr>
13644         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
13645         to emit the bangshe line.
13646         Reported by David Carter.
13648 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
13650         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
13651         Fortran (95) compilers to check.
13653 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
13655         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
13656         Macro Archive URL.
13658 2001-05-23  Pavel Roskin  <proski@gnu.org>
13660         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
13661         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
13662         (AC_PROG_CXXCPP): Likewise.
13664 2001-05-22  Akim Demaille  <akim@epita.fr>
13666         * config: New directory.
13667         * configure.in: AC_CONFIG_AUX_DIR it.
13668         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
13670 2001-05-22  Akim Demaille  <akim@epita.fr>
13672         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
13673         * autoupdate.in: Specify the Emacs mode.
13674         * acversion.m4.in: Rename as...
13675         * acversion.m4: this.
13676         * tests/Makefile.am (CLEANFILES): More garbage.
13678 2001-05-22  Akim Demaille  <akim@epita.fr>
13680         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
13681         Rename as...
13682         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
13683         these.
13685 2001-05-21  Akim Demaille  <akim@epita.fr>
13687         * configure.in: Bump to 2.50a.
13690         -----
13692         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
13693         Software Foundation, Inc.
13695         Copying and distribution of this file, with or without
13696         modification, are permitted provided the copyright notice and this
13697         notice are preserved.