* doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
[autoconf.git] / ChangeLog
blob615c40d92927eec00331aeecc34df6b79f58aef2
1 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
4         longer supported by Sun.
6 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
9         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
10         -Wundef -Werror".  Problem reported by David Fang in
11         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
12         * doc/autoconf.texi (Header Templates, Default Includes):
13         (Particular Functions, Generic Functions, Header Portability):
14         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
15         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
16         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
17         Prefer #ifdef to #if.
18         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
19         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
20         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
21         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
22         Likewise.
23         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
24         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
25         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
26         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
27         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
28         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
29         this.
31 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
34         problems with arg script text that doesn't end in newline, and
35         with '-e a...'.  Problems reported by Ralf Wildenhues.
37 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
39         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
40         check for libXt by a check for libX11.
42 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44         * doc/autoconf.texi (config.status Invocation): Adjust according
45         to last change.
47 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
50         --help' should mention that `--version' outputs configuration
51         settings.  Report by Bruno Haible.
53 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55         Fix test suite failures reported by Pierre in
56         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
57         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
58         the compiler created a file "b.out" when it didn't create anything
59         at all.
60         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
61         Discard stderr too, when invoking the test script.
63 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
65         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
66         in the restoring of the werror flag.
68 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70         * doc/autoconf.texi (Volatile Objects): Be even a little
71         less skeptical about "volatile", after discussion with
72         Bruno Haible on bug-gnulib.
73         (Limitations of Usual Tools): Warn about sed stripping
74         leading white space from text.  From Bruno Haible.
76 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
79         compiler complains about it, even if things works after the
80         complaint.  Problem reported by Peter O'Gorman.
82         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
83         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
84         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
86 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
88         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
89         after -R regardless of host.  Patrick Welche reports that this
90         fixes things on NetBSD 3.99.
92         * NEWS: Recommend M4 1.4.5.
93         * README: Likewise.
94         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
95         * tests/tools.at (autom4te cache): Update wording of diagnostic
96         to match M4 1.4.5.
98 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
100         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
101         under AC_C_VOLATILE.
102         (Volatile Objects): Be a little less skeptical about what
103         "volatile" means.  Derived from thoughts by Ben Pfaff in
104         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
106 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108         * doc/autoconf.texi: Fix some typos.
110 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
112         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
113         more globally, since the 2006-06-30 patch didn't suffice.  Problem
114         reported by Keith Marshall.  Also, don't bother with builddir2,
115         since it shouldn't be needed any more.
117 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
119         * doc/autoconf.texi (Generic compiler characteristics):
120         Document AC_COMPUTE_INT.  Fix wrong statements on Default
121         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
123         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
124         (_AC_COMPUTE_INT): Add obsoletion warnings.
125         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
126         AC_COMPUTE_INT.
128         * NEWS: Document change.
130 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
132         * doc/autoconf.texi (Volatile Objects): New section.
134         * NEWS: Document previous change.
136 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
138         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
139         Require that long long int be at least 64 bits wide.  C99 requires
140         this and enough programs depend on it so we should check for it.
141         Bruno Haible reports in
142         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
143         that long long int is 32 bits wide with some nonstandard compilers.
144         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
146 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
148         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
149         to a nonexistent file, so that we don't have to worry about
150         a local site configuration that doesn't use /usr/local.
151         Problem reported by Keith Marshall in
152         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
154 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
156         * doc/autoconf.texi: Be more consistent about using @acronym with
157         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
158         quite right (it talked about "OSF/Tru64", even though the
159         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
160         and it even mentioned "OSF 4"!) and at this point there's little
161         reason to talk about OSF any more, since it died in 1994.
162         (Specific Compiler Characteristics): Simplify example of
163         negative-size array.
164         (File Descriptors): Reorder to make the text flow better.
165         Remove joke about "appreciate the various levels"; I didn't get it.
166         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
167         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
168         (File Descriptors, Limitations of Usual Tools):
169         Tone down the advice against renaming or removing open files.
170         (Limitations of Usual Tools): Add a new section, on 'rm'.
172 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
174         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
175         -lXt in LIBS, idea from Karsten Hopp; this was due since
176         this change:
178         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
179         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
180         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
181         (which belong to Xt, not X itself).  See Debian bug 327655.
183 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
185         * configure.ac (AC_INIT): Bump to 2.60a.
186         * NEWS: Update.
188 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
190         Version 2.60.
192         * configure.ac, NEWS: Update.
194 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
196         * config/texinfo.tex: Sync from upstream.
198         * bin/autom4te.in (handle_traces): Transform the `@S|@'
199         quadrigraph correctly in traces.
201         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
202         Fix typos.
204         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
205         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
206         not defined.
207         * doc/autoconf.texi (Changed Directory Variables): New node,
208         to document the whole `datarootdir' business a bit better.
209         * NEWS: Update.
210         * tests/torture.at (datarootdir workaround): Extend test.
211         Prompted by report by Alexandre Julliard.
213 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
215         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
216         when using default mode of IBM C 6 for AIX.  Problem and two-line
217         fix reported by Larry Jones.
219 2006-06-22  Alexandre Julliard <julliard@winehq.org>
221         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
222         about literal '${datarootdir}' if a definition is found in the
223         output file.
225 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
227         * NEWS: Use "M4" rather than "m4" when appropriate.
228         Problem reported by Eric Blake.
229         * doc/autoconf.texi: Likewise.
230         Use @acronym around BSD, GCC, and GNU when appropriate.
231         (Why GNU M4): Renamed from "Why GNU m4".
232         (Redefined M4 Macros): Mention that Posix
233         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
234         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
235         to int.
237 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
239         * bin/autom4te.in (handle_output): Do not forbid the empty
240         pattern.
241         * tests/tools.at (autoconf: the empty token): New test.
243 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
245         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
246         calls, so that we do not care whether they are LIFO or FIFO;
247         in the m4_wrap, do not check which diversion is the topmost
248         one, just check that the stack is balanced at the end.
249         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
250         base diversion forever--pop the previous diversion before
251         opening the new one; consequently, remove the m4_wrap call.
252         * lib/autotest/general.m4 (AT_INIT): Likewise.
253         * tests/m4sugar.at: Do not use
254         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
256 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
257         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
259         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
260         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
261         Rework example of m4wrap token-pasting trouble so that it doesn't
262         care whether it's LIFO or FIFO.
263         Fix some "contrary to"s that are awkward in English.
265 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
267         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
268         to `yes' instead of `int$1_t' if the type is found, for more
269         consistent configure output (where $1 is the number of bits).
270         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
271         Suggested by Bruno Haible.
273         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
274         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
275         with system headers.  Report by Bruno Haible.
277 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
279         * config/config.guess, config/config.sub: Sync from upstream.
281         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
282         in order to avoid picking up an older installed frozen m4sh.m4f.
283         Besides an outdated shell startup, this could have been created
284         by an earlier M4 version with incompatible frozen file format.
286 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
288         * README: Recommend m4 1.4.4 instead of 1.4.3..
289         * doc/autoconf.texi: Likewise.
290         (Special Chars in Names): Say that $(.FOO) is portable, as
291         suggested by Stepan Kasal.
292         (Installation Directory Variables, Build Directories):
293         (Automatic Remaking, Subdirectories, Fortran Compiler):
294         (Making testsuite Scripts, Defining Directories):
295         Quote variable usages better.
296         (Making testsuite Scripts): Add clean-local rule to makefile
297         snippet, by Eric Blake.
298         (Installation Directory Variables): Fix table item font.
299         Reword slightly to clarify.  Generalize advice about
300         not using special characters to include all file-related
301         vars, not just VPATH.
302         (Special Chars in Variables): Warn about special characters in
303         $(srcdir) too.
304         (Assignments): Clarify default-value example as suggested by
305         Ralf Wildenhues in
306         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
307         (Special Shell Variables): Note leading ./ or ../, as suggested
308         by Eric Blake.
309         (Limitations of Builtins): Under cd, warn about CDPATH.
310         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
311         Ralf Wildenhues.
313 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
315         * doc/autoconf.texi (Configuration Actions): Remove duplicate
316         `@var', for texi2html.
317         (Systemology): Some more word wrapping, for DVI output.
318         (autom4te Invocation): The short option for `--melt' is `-M',
319         not `-m'.
321 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
323         * doc/autoconf.texi: More formatting and English tweaks,
324         many suggested by Ralf Wildenhues.
325         Reword to avoid "@code{...}'s" and the like, since it's ugly
326         with Emacs info mode.  discontents -> woes.
327         Put a few "will"s back.  time stamp -> timestamp.
328         side-effect -> side effect.
330 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
332         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
333         Warn about $@ not persisting.  Problem reported by Julien Danjou in
334         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
335         (Special Chars in Names): Renamed from Leading _ in Macro Names.
336         Mention other special chars, too.
338 2006-06-14  Eric Blake  <ebb9@byu.net>
340         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
342 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
344         * doc/autoconf.texi: Some systematic minor improvements, as
345         follows.  Use "makefile" when talking about makefiles
346         generally (which might be named "makefile" or "Makefile" or even
347         "foo.mk"), "Makefile" when talking about a specific makefile
348         called "Makefile".  This unclutters the text from weird quotes
349         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
350         values" rather than "@var{foo}s" and similar constructs containing
351         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
352         English-language improvements.  Change the prefix "sub-" to "sub"
353         and "re-" to "re".
354         Put blank lines around examples more consistently.
355         Avoid "rather" and "very" as intensifiers.
356         Avoid "will" as an auxiliary.
357         (Limitations of Make): Split this node into....
358         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
359         (Leading _ in Macro Names, Backslash-Newline-Newline):
360         (Backslash-Newline Comments, Long Lines in Makefiles):
361         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
362         (obj/ and Make, make -k Status, VPATH and Make):
363         (VPATH and Double-colon, $< in Explicit Rules):
364         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
365         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
366         New nodes, resulting from splitup of Limitations of Make.
367         All cross-references changed.  Raise the top node from
368         a section to a chapter, and all subnodes accordingly.
369         Redo the introductory wording to match the new organization.
370         (Installation Directory Variables): Use an example that is
371         closer to what Autoconf actually does.  Mention that VPATH's
372         value should not contain metacharacters or white space.
373         (Fortran Compiler): Fix a VPATH bug in an example.
374         (Leading _ in Macro Names): Mention that this problem is no longer
375         of practical concern.
376         (VPATH and Make): Reword the advice to make it clearer
377         that Autoconf and Automake support VPATH in non-GNU make, but
378         many packages have bugs in this area.
379         ($< in Explicit Rules): Refer to Build Directories rather
380         than using a (non-VPATH-safe) example.
381         (Automatic Rule Rewriting): Mention the sort of disaster that
382         can ensue with Solaris-style rule rewriting with VPATH.
384 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
386         * doc/install.texi (Compilers and Options): Weaken the
387         suggestion to use GNU make for VPATH builds.
389         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
390         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
392         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
393         in regular expression.
395 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
397         * doc/autoconf.texi (Installation Directory Variables):
398         Drop extra @samp from `@table @samp' item.
399         (Limitations of Usual Tools): Comment fix.
400         Do not nest @samp just to point to other table items.
401         (Writing testsuite.at) <AT_CHECK>: The second argument to
402         `@dvar' is already @samp'ed.
403         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
404         do not use @var in the second argument.
406 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
408         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
409         $as_shell.exe too.  Problem reported by Andreas Buening in
410         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
412 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
414         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
415         `unused variable' compiler warning, for `-Wall -Werror'.
416         Reported by Jaap Haitsma in
417         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
419 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
421         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
422         case the compiler dumps core.  Problem reported for
423         OpenServer 5.0.7 by Tim Rice in
424         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
425         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
426         Likewise.
428 2006-06-06  Tim Rice <tim@multitalents.net>.
430         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
431         "ERROR" only shows up in "make check" output if there is an
432         error.
434 2006-06-06  Eric Blake  <ebb9@byu.net>
436         * tests/tools.at (automatically allowed tokens): Fix typo.
438 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
440         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
442         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
443         typically overflows on x86 CPUs, even though the C standard
444         requires otherwise.
446 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
448         * configure.ac (AC_INIT): Bump to 2.59e.
449         * NEWS: Update.
451 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
453         Version 2.59d.
455         * config/texinfo.tex: Sync from upstream.
457         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
458         seen, invoke libtoolize with `--ltdl' argument.
459         * lib/autom4te.in (Autoreconf-preselections): Adjust.
460         * NEWS: Update.
461         Suggested by Eric Blake.
463 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
465         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
466         reported by Ralf Wildenhues.
467         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
469 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
471         * THANKS: Update.
473 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
475         * doc/autoconf.texi: Modernize some of the references to Solaris.
477 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
479         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
480         message issued by AC_REQUIRE.
481         * tests/m4sugar.at: Check m4_require's error message.
482         * tests/base.at: Check AC_REQUIRE's error message.
483         * tests/local.at (AT_CHECK_M4): New macro, almost identical
484         to...
485         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
486         AT_CHECK_M4.
487         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
488         `expout' as the last parameter.
489         * tests/tools.at: Adapt to the above change.
491 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
493         * doc/autoconf.texi (Limitations of Usual Tools): Correct
494         information about race-free implementations of mkdir.
496 2006-06-04  Eric Blake  <ebb9@byu.net>
498         * bin/autoreconf.in (help): Document M4 environment variable.
499         * bin/autoconf.as (Usage): Likewise.
500         * bin/autom4te.in (help): Likewise.
501         * doc/autoconf.texi (autom4te Invocation): Likewise.
503 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
505         * NEWS: GNU make now recommended for VPATH builds.
506         Mention that some macros are now documented to be obsolescent.
507         * doc/autoconf.texi:
508         Prefer "current" to "modern" to describe
509         currently-used (albeit perhaps old-fashioned) hosts.
510         Mention which ancient features no longer need to be worried about.
511         setgid -> set-group-ID
512         setuid -> set-user-ID (these are the Posix terms)
513         Fix some misuses of "only".
514         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
515         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
516         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
517         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
518         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
519         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
520         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
521         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
522         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
523         Mention that these macros are obsolescent.
524         (Installation Directory Variables): shall -> should
525         (File Descriptors): Mention that 0, 1, 2 might get reopened.
526         Mention that it's now safe to use 3 and 4.
527         (Limitations of Usual Tools): cp -r is now specified by Posix.
528         Omit longwinded and obsolescent discussion of cp -f.
529         Modernize discussion of expr, ls.
530         (Limitations of Make): Modernize discussion of VPATH builds.
531         Mention $? as a workaround in some cases.
532         * doc/install.texi (Basic Installation):
533         Mention "./configure; make; make install" first.  Be more
534         specific about why this file is generic.  Remove unnecessary
535         parens.  Remove misleading "only".  Remove obsolete advice
536         about csh.  Don't say "configure" takes awhile; say it
537         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
538         and CC=c99 rather than CC=c89, as these are blessed by current
539         Posix.  Recommend GNU make if doing a VPATH build.
541 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
543         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
544         examples involving shell prompts.
546 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
547         and Paul Eggert  <eggert@cs.ucla.edu>
549         * doc/autoconf.texi (Here-Documents): Add details about the
550         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
551         use "here-documents" instead of "here documents".
553 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
555         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
557 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
559         * doc/autoconf.texi (File System Conventions): Warn about ":"
560         anywhere in directory names.
562 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
564         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
565         about quoting the case statement, just in case.
566         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
567         was fixed in ksh93g; reported by Ralf Wildenhues.
569 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
571         * doc/autoconf.texi (System Services): Do not document
572         overriding EXEEXT via ac_cv_exeext=ext.
573         (Particular Programs) <AC_PROG_MKDIR_P>:
574         Document that ${MKDIR_P} understands --.
575         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
576         comment.
578 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
580         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
581         argument with leading hyphen.  Problem reported by Paul Eggert.
583 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
585         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
586         about quoting ac_try: quote all of it, if any of it seems suspicious.
587         This means we don't have to worry about ${ or sed any more.
588         Also, double-quote the case statement, to work around misuses via
589         underquoting as reported by Ralf Wildenhues in
590         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
591         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
592         undocumented and dangerous macro.
593         Problem reported by Ralf Wildenhues in
594         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
596 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
598         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
599         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
600         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
602 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
604         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
605         since evidently some packages rely on the old, broken behavior.
606         Problem reported by Ralf Wildenhues in
607         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
608         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
609         pre-2006-05-26 definitions, but leave in the comments that
610         these macros are dangerous and should not be used.
611         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
612         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
613         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
614         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
615         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
617 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
619         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
620         the use of 'tr', since this is our only use of 'tr'.
622 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
623         and Paul Eggert  <eggert@cs.ucla.edu>
625         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
626         Don't assume 'grep' works on long lines, since AIX grep doesn't.
628 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
630         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
631         the output file in the `${datarootdir}' test.
633 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
634         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
636         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
637         mention of `datarootdir' in the input file(s), but literal
638         `${datarootdir}' in the output file, and we haven't warned yet,
639         then warn as well: the user may have (erroneously) used
640         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
641         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
642         * tests/torture.at (datarootdir workaround): Extend this test.
643         * NEWS: Update.
645 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
646         and Paul Eggert  <eggert@cs.ucla.edu>
648         * doc/autoconf.texi (autoheader Invocation): The first argument to
649         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
650         alternatives and clear up the language a bit.
652 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
654         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
655         ac_config_guess, ac_config_sub, ac_configure.
656         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
657         Fix typo that prevented an unnecessary space from being removed.
658         Problems reported by Ralf Wildenhues in:
659         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
661 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
663         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
664         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
665         Don't use the term "thread-safe" to talk about mkdir race
666         conditions, since the problem is more a process than a thread
667         issue.  Problem reported by Stepan Kasal in:
668         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
669         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
670         the test for 'install' more closely.  Look at MKDIR_P first.
671         Look in the PATH, and at /opt/sfw/bin.
672         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
673         Don't bother to try mkdir -p, since we already check mkdir --version;
674         just look at the version number.  (There's no easy way to check
675         for race-free implementations.)
676         * tests/tools.at (autoconf: subdirectories): Adjust to above
677         changes, since MKDIR_P now might end in "/mkdir -p".
679         * doc/autoconf.texi (autoheader Invocation): Mention that the
680         first arg of AC_DEFINE_UNQUOTED must be a literal.
681         Problem reported by Ben Pfaff in
682         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
684         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
685         * doc/autoconf.texi (Special Chars in Variables): New section.
686         (Preset Output Variables): Warn about special chars in CPPFLAGS.
687         (Installation Directory Variables): Quote $(datadir) better.
688         (Limitations of Builtins): Describe some of eval's trickiness.
690         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
691         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
692         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
693         in front of every arg, not just trailing args.  Quote apostrophes.
694         (_AC_EVAL_ECHO): New macro.
695         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
696         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
697         removed.
698         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
699         exposed by quoting of eval argument.  Put the command on line line
700         so it logs better.
701         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
702         (_AC_PATH_X, AC_PATH_X): Quote more safely.
703         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
704         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
705         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
706         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
707         Use eval more safely.
708         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
709         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
710         to be replaced.
711         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
712         lines, exposed by quoting of eval argument.
714 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
715         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
717         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
718         initialization of `ac_cv_exeext', do not override it if it was
719         already set, unless it was set to `no', for compatibility with
720         Autoconf-2.13, and comment this.
721         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
722         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
723         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
724         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
725         Document that this test may be overridden by setting
726         `ac_cv_exeext'.
728 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
730         Revert these two patches:
732         2006-04-06  Eric Blake  <ebb9@byu.net>
733         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
734         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
735         2006-04-01.
737         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
738         Clean up _AC_COMPILER_EXEEXT* macros.
739         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
740           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
741           ac_file to the name of the default output file and call
742           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
743           initial `rm' of the candidate files...
744         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
745           the same list in subsequent `rm' calls, and for the temporary
746           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
747           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
748         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
749         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
750           no longer needed) by libtool.  Make it a cache check.
751         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
752           copied here by mistake.
753         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
754           _AC_COMPILER_EXEEXT.
755         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
756           _AC_COMPILER_OBJEXT directly.
757         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
759 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
761         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
762         Fix description of how the buggy `sed' works.
764 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
766         Sync from Automake:
768         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
769         ENOLCK.  Only mention `make -j' when applicable.  Only raise
770         fatal errors when `make -j' is involved.  Improve error message.
772 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
774         * doc/autoconf.texi (Here-Documents): We now know more about
775         the variable expansion in here documents bug.
776         Thanks to Tim Rice and Stepan Kasal.
778         * doc/autoconf.texi (Making testsuite Scripts): Add an example
779         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
781 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
783         * tests/autotest.at (Multiline command from M4 expansion):
784         No failure to be expected if the shell quotes newlines in
785         commands in the `set -x' output.  Report by Tim Rice.
786         * THANKS: Update.
788 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
790         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
791         expansion in the here-documents used by config.status, as that
792         runs afoul of the Korn shell version M-12/28/93d bug described in
793         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
794         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
795         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
797 2006-05-23  Jim Meyering  <jim@meyering.net>
799         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
800         Fix typo introduced with 2006-04-02 change.  It reversed the sense
801         of the test.
803 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
805         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
806         ac_dB slightly, to save bytes in the script.
807         Max out at 50 lines, rather than 96; this is more likely
808         (though not guaranteed) to avoid obscure 'sed' failures.
810 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
812         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
813         `tr -d -' as bad option argument.  Work around this by deleting
814         an unrelated character.
815         Report by Tim Rice <tim@multitalents.net>.
817 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
818             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
819             Stepan Kasal  <kasal@ucw.cz>
821         * doc/autoconf.texi (Particular Programs): Do not promise that
822         we always prefer the GNU version of the program, and that we
823         search according to PATH; both rules can have exceptions.
824         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
825         AC_PROG_SED.  Move descriptions of limitations
826         to the Limitations of Usual Tools section.
827         (Limitations of Usual Tools) <sed>: Mention script length
828         limitations with Solaris /usr/ucb/sed.
829         <grep>: Fix wording for empty alternative.  Mention that -c and
830         -l should not be combined, and that -E and -F should not be
831         combined.
833 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
834         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
836         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
837         limits in Solaris 8 /usr/ucb/sed by testing a long script.
839 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
841         * doc/autoconf.texi (Defining Symbols): Literal parameter of
842         AC_DEFINE is now passed to m4_pattern_allow.
843         * NEWS: Mention that; likewise for AC_SUBST.
844         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
845         the parameter to m4_pattern_allow.
846         * tests/tools.at: Add a check for that.
848 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
850         * lib/autoconf/status.m4: Fix typos.
852 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
854         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
855         only the files that this macro generates.
857 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
859         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
860         the HP-UX sed limitation of 99 commands, labels do not count.
861         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
862         in the comment.
863         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
865 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
867         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
868         Import the following fix from coreutils:
870         2006-01-13  Jim Meyering  <jim@meyering.net>
872         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
873         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
874         not double-quote uses of that variable, to accommodate the rare
875         case in which getmntent is available in none of the libraries
876         checked.  This happens at least on FreeBSD 5.0.
878 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
880         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
881         ac_config_guess, ac_config_sub, and ac_configure, since evidently
882         some other programs unwisely rely on these undocumented vars.
883         But put in warning comments about them.
884         Problem reported by Ralf Wildenhues in
885         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
886         * NEWS: Document that these variables are intended to go away.
888 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
890         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
891         and set the language to C++ (analogous to the equivalent Fortran
892         tests).
894         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
895         * doc/autoconf.texi (C++ Compiler): Document it.
896         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
897         * NEWS: Update.
899 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
901         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
902         that caused config.status to generate 100-command sed scripts; the
903         portable limit is 99.
905 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
907         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
908         variable `ac_d' instead of `d' to avoid infringing namespace.
909         Report by Ralf Menzel.
911 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
913         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
914         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
915         * tests/tools.at (autoconf: subdirectories): New test, taken from
916         the corresponding problem report by Ralf Wildenhues in:
917         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
919         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
920         Quote some uses of shell variables if they might suffer unexpected
921         globbing.  This doesn't fix all instances of quoting problems that
922         I found, just the easy ones that look safe.
923         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
924         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
925         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
926         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
927         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
928         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
929         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
930         Likewise.
931         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
932         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
934 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
936         * bin/autoreconf.in ($help): Reword according to the manual.
937         Suggested by Olly Betts.
939 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
940         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
942         * bin/autoreconf.in: Pass the directory argument to
943         `require_configure_ac'.  Fix comment.
944         * tests/torture.at (Configuring subdirectories): Expose this.
945         Reported by Olly Betts.
947 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
949         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
950         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
951         Automake as follows:
953         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
954         `$configure_in' instead of `configure.in', to preserve
955         directory component.
957 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
959         * config/config.guess, config/config.sub, config/texinfo.tex,
960         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
962 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
964         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
965         test for C99 conformance; (bool) 0.5 is an integer constant
966         expression, but (bool) -0.5 is not.  Problem reported by Fedor
967         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
969 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
971         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
972         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
973         Warn about obsolete install-sh files.  Remove stray sentence
974         fragment and fix cross reference.
975         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
976         install -d; this undoes the 2006-05-10 change.
977         (MKDIR_P): Mark with AN_MAKEVAR.
978         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
979         that we don't require $INSTALL to be thread-safe.  Move comments
980         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
981         of AC_PROG_INSTALL.  Output a message saying that we're checking
982         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
983         MKDIR_P instead of AC_SUBST.
984         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
985         Special magic for MKDIR_P, too.
986         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
987         a dnl.
988         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
990 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
992         Sync from Automake, as follows:
994         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
995         * config/install-sh: Initialize IFS, so field splitting isn't
996         turned off later.
997         * config/mkinstalldirs: Likewise.
998         * config/missing: Remove superfluous quotes.  Replace all uses of
999         `[' by `test', for consistency, and for..
1000         * config/missing (sed_minuso, sed_output): New variables.
1001         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
1002         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
1003         Fixes `missing' to detect `--output' for help2man.  Fixes
1004         PR automake/483.  Report by Dennis J. Linse.
1005         (autom4te): Document in `missing --help'.
1007 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1009         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
1010         * config/install-sh: Don't use 'path' to talk about file names,
1011         as per GNU coding standards.  Close a race condition reported by Ralf
1012         Wildenhues and Stepan Kasal.  There is still a race condition
1013         on hosts that predate Posix 1003.1-1992, but we can't help this.
1014         Don't mishandle weird characters like space on pre-Posix hosts.
1015         Invoke mkdir at most once per dir arg on pre-Posix hosts.
1016         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
1017         AC_PROG_MKDIR_P from AS_MKDIR_P.
1018         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
1019         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
1020         earlier editions are not (including Automake 1.8.3).
1021         Do not suggest mkinstalldirs for thread-safety.
1022         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
1023         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
1024         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
1025         presence of special characters and race conditions.
1026         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
1027         in Autoconf's name space.
1029 2006-05-10  Bruno Haible  <bruno@clisp.org>
1030         and Paul Eggert  <eggert@cs.ucla.edu>
1032         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
1033         from Automake with minor changes.
1034         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
1036 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1038         * config/install-sh: Update to Automake CVS version, as follows:
1039         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
1040         * lib/install-sh: Simplify the expr implementation of dirname.
1041         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1042         * lib/install-sh: Handle --, and diagnose unknown options.
1044 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1046         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
1047         `./autom4te' to create `./testsuite', since the `all' target
1048         will ensure its presence, but `installcheck' should not create
1049         the uninstalled wrappers.
1051         * tests/torture.at (Unusual Automake input files): Skip if we
1052         detect automake < 1.8.
1054 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1056         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
1057         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
1058         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
1059         * NEWS: Update.
1061 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1063         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
1064         munge (multiple) white space and other oddities.
1065         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
1066         single quotes in variable assignment.
1067         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
1068         and similar failures by adding multiple spaces, tabs, and other
1069         special characters.
1070         Report and different test suggested by Francesco Romani
1071         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
1073         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
1074         single quotes, we only need to search for single quotes; this
1075         both simplifies the search pattern, and makes us less
1076         susceptible to `echo' variations for arguments not containing
1077         single quotes.
1078         (_AC_ARG_VAR_VALIDATE): Likewise.
1080 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1082         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
1083         `$*' and IFS concatenation issue with traditional shells and
1084         bash-2.04.  Report by Seanster@Seanster.com.
1086 2006-05-03  Bruno Haible  <bruno@clisp.org>
1088         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
1089         precisely which Mac OS X versions have the od problem.
1091 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1093         * doc/autoconf.texi: Use @option systematically.
1095 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1096         and Bruno Haible  <bruno@clisp.org>
1098         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
1099         about 'od'.
1100         (Integer Overflow): Mention the special case of integer division
1101         overflow.
1103 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1105         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
1106         traditional shells like the Solaris one that do not use the
1107         first IFS character for assembling `$*'.
1108         Prompted by a related report from autoconf_bug@nro.ca.
1110 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1111         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1113         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
1114         Mention more problems with the -e option.
1116 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1118         * NEWS: Typo.
1119         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
1121         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
1122         in URLs to improve DVI formatted output (requires texinfo 4.6).
1123         (System Services, Systemology, Shellology): Likewise.
1124         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
1125         output.
1127         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
1128         continuous text.
1129         (Runtime): Fix macro argument names to match description:
1130         `action-if-found' -> `action-if-true' and similarly.
1131         (Obsolete Macros): Likewise.
1132         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
1133         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
1134         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
1136 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1138         * doc/autoconf.texi (Limitations of Make): Clean up markup.
1140         * ChangeLog: Typo.
1141         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
1142         DVI output.
1144 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1146         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
1147         /bin/sh set unsorted output.
1148         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
1149         * tests/local.at: Likewise.
1151 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1153         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
1154         (Integer Overflow, Null Pointers, Buffer Overruns):
1155         (Floating Point Portability, Exiting Portably): New sections.
1156         (Writing Test Programs): Fix some langauge.  Recommend exiting
1157         with status 1, not merely nonzero.  Clarify exit declaration.
1158         (Run Time): Move C exit status stuff to new Exiting Portably section.
1159         (Systemology): Mention Posix and levenez.  Update v7 reference.
1160         (Portable Shell): Mention the Posix shell.
1162 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
1164         * bin/autoconf.as (me): Replace by as_me.
1166 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1168         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
1169         since as_me isn't set yet.
1171 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1173         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
1174         a few minor bugs in this area.
1176         * doc/autoconf.texi (Programming in M4sh): Comment out the
1177         documentation of AS_BASENAME, for now.
1178         (Shell Substitutions): Do not use AS_DIRNAME in an example.
1179         (Limitations of Builtins) <basename>: Do not refer to
1180         AS_BASENAME.
1181         * bin/autoconf.as (me): Don't use AS_BASENAME.
1182         (dir): Remove the unused variable.
1183         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
1184         AS_DETECT_REQUIRED.  All uses changed.
1185         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
1186         All uses changed.
1187         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
1188         (AS_BASENAME): Use "basename --" to protect against leading "-".
1189         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
1190         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
1191         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
1192         (_AS_DIRNAME_PREPARE): Likewise.
1193         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
1194         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
1195         (AS_DIRNAME): Use "dirname --".
1197 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1199         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
1200         of "run time" and "run-time" changed to "runtime", for consistency.
1201         * lib/autoconf/fortran.m4: Likewise (in comment).
1202         * lib/autoconf/functions.m4: Likewise.
1203         * lib/autoconf/general.m4: Likewise.
1204         * lib/autoconf/headers.m4: Likewise.
1206         * doc/autoconf.texi (Run Time): Document the exit status situation
1207         with more accuracy and detail.
1209 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1211         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
1212         Archive is not officially `GNU' any more.  Update URL.
1213         (Defining Directories): Likewise
1214         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
1216 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1218         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
1219         newline from the `trap' code to finish `config.log'; the NetBSD
1220         /bin/sh resets the exit status after an empty command, as
1221         documented in doc/autoconf.texi.
1222         Reported by Dalibor Topic <robilad@kaffe.org>.
1224 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
1226         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
1227         Suggested by Bruno Haible.
1229 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
1231         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
1232         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
1233         Instead, just list the shells that we know work.
1234         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
1235         changed.  Be more cautious about the _cv_ variable.
1236         * tests/tools.at (Syntax of the shell scripts): Check the
1237         _cv_ variable once, at first, to avoid an internal autoconf error
1238         when sh -n does not work.
1240 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1242         * lib/Autom4te/FileUtils.pm: Sync from Automake.
1244 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
1246         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
1247         use ">&-" since we're only 99.999% sure that this is portable,
1248         and since the MinGW bug is fixed in a different way.
1249         * lib/autotest/general.m4 (AT_INIT): Likewise.
1251 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
1253         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
1254         before opening config.log, to avoid hitting a bug on MinGW.
1256 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
1258         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
1259         AS_MESSAGE_LOG_FD before reopening it onto the log file.
1260         This works around a MinGW bug reported by Eric Paire.
1261         Make sure that all writes to the log file append to it,
1262         rather than possibly losing data.
1263         * lib/autotest/general.m4 (AT_INIT): Likewise.
1265 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
1267         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
1268         description.
1270 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1272         * NEWS: Update.
1274         * configure.ac (AC_INIT): Bump to 2.59d.
1276 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1278         Version 2.59c.
1280         * Makefile.maint (news-date-check): Do not require a leading `*'
1281         before the release date in NEWS.
1283 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
1284         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1286         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
1287         the instantiated file do not contain the string 'datarootdir'
1288         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
1289         @mandir@, replace the reference '${datarootdir}' by the value.
1290         * tests/torture.at (datarootdir workaround): New test.
1291         * NEWS: Advertise this temporary fixup.
1292         Based on a patch by Bruno Haible, reported and analyzed by
1293         Paul Eggert and Noah Misch.
1295 2006-04-12  Eric Blake  <ebb9@byu.net>
1297         * tests/autotest.at (Debugging a failed test): Fix comment.
1299 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
1301         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
1302         all the changes since 2006-04-07.
1304 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1306         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
1307         succeeded, but `ln -s file dir' failed, take care to remove the
1308         leftover target before the next test, to prevent its spurious
1309         failure; also make sure `ln file dir' works before selecting it.
1310         Thanks to Keith Marshall for pointing this out.
1311         * THANKS: Update.
1313         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
1314         assignments in `at_debug_args', so that we put them correctly
1315         in the `run' script.
1316         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
1317         Reported by Eric Blake.
1319 2006-04-11  Eric Blake  <ebb9@byu.net>
1321         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
1322         top-level tests after micro-suite has been run.   Used in...
1323         (Debugging a successful test, Debugging script and environment),
1324         (Debugging a failed test): ...these new tests.  The first of these
1325         is fixed by...
1326         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
1327         macro, split out from...
1328         (AT_INIT): ...here, so that using -d also generates a run script.
1329         Document that -d inhibits top-level logging.
1330         * doc/autoconf.texi (testsuite Invocation): Document that -d only
1331         inhibits top-level logging; debug scripts are created.
1333         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
1334         check.
1335         * tests/autotest.at (Empty test, Empty check): New test to check it.
1337         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
1338         from gcc.
1340 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
1342         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
1343         the files if a problem appears.  Make the empty *.at files
1344         read-only, too.  Proposed by Ralf Wildenhues.
1346 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1348         * config/Makefile.am: Add comment to force updated Makefile.in.
1350         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
1351         space only patch to this file, this patch causes the Makefile.in
1352         files that include freeze.mk to be updated, and thus have a
1353         newer time stamp again, which in turn makes a pristine CVS
1354         checkout have correct time stamps.
1356         * Makefile.maint (cvs-sv): New macro, to be used..
1357         (config.guess-url_prefix, config.sub-url_prefix)
1358         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
1359         point to CVS text checkout of Gnulib files.
1360         (copyright-check): Bump current year.
1361         (announcement): Do not hard-wire `./announce-gen'.
1362         (cvs-update): Propagate failures of `cvs' and `move-if-change'
1363         correctly.
1364         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
1365         `chmod +x'.
1366         (wget_files): Update config.guess, config.sub, texinfo.tex by
1367         `wget-update', now that their URLs work again.
1369 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1371         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
1372         Problem noted by Paul D. Smith.
1374 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1376         * doc/autoconf.texi: Remove unused words from word list.
1377         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
1378         .x-sc_trailing_space: New files.
1380         * doc/standards.texi: Sync from gnulib.
1382         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
1383         `LIBOBJDIR' as experimental.
1385         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
1386         with a target directory; it's internally implemented as `cp'
1387         anyway, but since Autoconf advertises the possibility to use
1388         a target directory when LN_S is `ln -s', we need to find out.
1389         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
1390         analyzed by Keith Marshall <keith.marshall@total.com>.
1392         * THANKS: Update.
1394 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1396         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
1397         confdefs.h as-is.  In general, if it has backslash-newline or the
1398         like, then it doesn't work either to sort or to remove empty
1399         lines.
1401 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
1403         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
1405 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
1407         * lib/autom4te.in (Automake-preselections): Preselect
1408         _AM_SUBST_NOTMAKE.
1410 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1412         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
1413         apostrophe within a single-quoted string, as this is the usual
1414         tradition and is easier to read than '"'"'.  Don't rely on the
1415         shell treating "$/" like '$/'.  Use a more-consistent indenting
1416         style for the trap.
1418 2006-04-09  Eric Blake  <ebb9@byu.net>
1420         * tests/autotest.at (Backquote command substitution),
1421         (Multiline backquote command substitution): Remove mistaken
1422         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
1423         applied...
1424         (Parenthetical command substitution, Multiline parenthetical
1425         command substitution): here.
1427 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1429         Import macros from gnulib (often changing their name).
1431         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
1432         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
1433         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
1434         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
1435         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
1436         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
1437         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
1438         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
1439         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
1440         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
1441         The manual mentions Gnulib more prominently.
1442         * doc/autoconf.texi (Gnulib): New node.
1443         (Pointers): Add Gnulib URL.
1444         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
1445         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
1446         Gnulib section.
1447         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
1448         suggest a #define rather than a typedef for _Bool, and mention
1449         Gnulib rather than trying to substitute stdbool code.
1450         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
1451         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
1452         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
1453         AC_STRUCT_DIRENT_D_TYPE.
1454         (Particular Types): Mention stdint.h and inttypes.h as standard
1455         headers too.
1456         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
1457         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
1458         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
1459         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
1460         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
1461         (C Compiler): Move AC_C_LONG_DOUBLE to ...
1462         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
1463         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
1464         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
1465         (Coding Style).  Don't mention m4_expand_once.
1466         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
1467         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
1468         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
1469         (AC_CHECK_FUNCS): Use it.
1470         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
1471         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
1472         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
1473         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
1474         (AC_HEADER_ASSERT): New macro.
1475         (AC_HEADER_STDBOOL): Don't assume "#error" works.
1476         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
1477         Catch a bug in an HP-UX C compiler.
1478         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
1479         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
1480         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
1481         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
1482         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
1483         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
1484         New macros.
1486         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
1487         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
1489 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
1491         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
1492         of the warning introduced by the 2001-08-28 change.
1494 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
1495             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1497         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
1498         variables shall be overriden by the cache.
1499         * tests/torture.at (AC_ARG_VAR): Test also with a first value
1500         that contains braces.
1502 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
1504         Revert the patch from 2006-04-01 and only improve
1505         _AS_DETECT_BETTER_SHELL:
1507         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
1508         skip nonexistent directories.
1509         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
1510         only shell candidates which exist.
1511         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
1512         * lib/autotest/general.m4 (AT_INIT): No need to give three
1513         parameters to _AS_PATH_WALK.
1515 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
1516             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1518         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
1519         distinguish m4sugar macros.
1520         * tests/tools.at (autoupdating with aclocal and m4_include):
1521         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
1522         test case by Noah Misch <noah@cs.caltech.edu>.
1524 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
1526         Revert my change from 2006-03-17, in other words:
1527         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
1528           and DUALCASE=1.
1529         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
1530         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
1531           it is set.
1533 2006-04-07  Eric Blake  <ebb9@byu.net>
1535         * doc/autoconf.texi (Programming in M4sh): Document that
1536         AS_MKDIR_P exits the script on failure.
1537         * lib/autotest/general.m4: Remove redundant AS_ERROR.
1539 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1541         * config/elisp-comp, config/install-sh, config/mdate-sh,
1542         config/missing, config/mkinstalldirs: Sync from Automake.
1544         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
1545         from Automake.
1547         * doc/make-stds.texi: Sync from gnulib.
1549 2006-04-06  Eric Blake  <ebb9@byu.net>
1551         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
1552         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
1553         2006-04-01.
1555 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
1556             Eric Blake  <ebb9@byu.net>,
1557             Paul Eggert  <eggert@cs.ucla.edu>,
1558             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1560         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
1561         whether `set' quotes correctly: redirect stderr of the tested
1562         `set', and use a subshell, for Ultrix; use `sed' instead of
1563         `grep' for zsh `set' which may write binary output; match only
1564         at the beginning of a line, to avoid false positives.
1565         In order to avoid false positives by unrelated variables with
1566         multiline content, put the dump algorithm in a subshell and
1567         unset all variables containing newlines (except some which are
1568         special to the shell).  Warn about cache variables that are
1569         unset.
1571 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1573         * config/config.guess, config/config.sub, config/texinfo.tex:
1574         Sync from upstream.
1576         * tests/mktests.sh: Reword comments.
1578         * tests/mktests.sh: Only skip internal macros starting with
1579         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
1580         Update exclusion lists for the test suite to this end:
1581         (AC_ARG_VAR): Do test this now.
1582         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
1583         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
1584         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
1585         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
1587         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
1588         shell issue with double-quoted command substitutions of native
1589         commands.
1590         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
1591         Marshall.
1593         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
1594         no file matches the glob, discard the warning, set `nullglob'.
1595         (syntax-check): Likewise.
1596         (sc_cast_of_x_alloc_return_value): Likewise.
1597         (sc_cast_of_alloca_return_value, sc_error_exit_success)
1598         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
1599         (m4-check): Likewise.
1600         (sc_system_h_headers): Do not print rule on execution.
1601         (sc_tight_scope): Do not fail for non-existing `src' directory.
1602         (sc_changelog): Skip the Copyright footer.
1603         * lib/autoconf/lang.m4: Remove trailing space.
1605         * lib/autoconf/status.m4: More replacements to
1606         <tab><space> where this makes sense.
1608 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
1610         * tests/Makefile.am (maintainer-check-posix):
1611           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
1613         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
1614           ac_config_<foo>s again, sometimes normalized, sometimes not.
1615         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
1616         (AC_CONFIG_COMMANDS): Do not do so here.
1617         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
1618           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
1619           2005-07-25 rewrite.  Noticed by Noah Misch.
1621         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
1622           _AC_PRESERVE_HELP_ORDER, ...
1623         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
1625         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
1626           inside m4_expand_once; it is redundant.
1628         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
1629           for --help from Cygnus `configure.'
1631 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1633         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
1634         on a patch proposed by Ralf Wildenhues.
1636 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1638         * lib/autoconf/status.m4: Replace <space>''<tab> with
1639         <tab><space> where this makes sense.
1641 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
1642             Noah Misch  <noah@cs.caltech.edu>
1644         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
1645         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
1646         * doc/autoconf.texi (Help Formatting): New node.
1647         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
1649 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1651         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
1652         lib/autoconf/specific.m4, lib/autoconf/status.m4,
1653         lib/autoconf/types.m4, lib/autotest/general.m4,
1654         tests/mktests.sh, tests/torture.at: White space cleanup:
1655         remove some SPACE before TAB, or add quoting ('' or @&t@).
1657         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
1659         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
1661 2006-04-05  Eric Blake  <ebb9@byu.net>
1663         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
1664         empty test suite works.
1665         * tests/autotest.at (Empty test suite): Remove xfail.
1667 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
1669         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
1670         TAGS to ac_config_<foo>s.
1671         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
1672         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
1673         normalizing it, consistent it with previous releases.
1674         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
1676 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1678         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
1679         Use simplified args that Eric Blake originally suggested.
1681 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1683         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
1684         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
1685         Use 'comm' rather than N instances of grep; this also fixes a bug
1686         whereby substrings were incorrectly matched, causing us to not
1687         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
1688         (exclude_list): Exclude empty macros.
1689         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
1691         Use awk rather than grep -E or egrep, to avoid
1692         portability problems with regular expressions containing newlines.
1693         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
1694         Switch from grep to awk syntax.
1695         (ac_exclude_script): Renamed from ac_exclude_egrep.
1696         (au_exclude_script): Renamed from au_exclude_egrep.
1698 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
1700         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
1701         a subdirectory subject to Cygnus `configure'.
1702         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
1704         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
1705         report request when we have no AC_PACKAGE_BUGREPORT.
1707 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1709         * THANKS: Update.
1711         * tests/mktests.sh: Update copyright year in the header of the
1712         generated files.
1714         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
1715         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
1716         typedef'ed restricted pointer, to catch a compiler bug on
1717         HP-UX 11.x, and fix warnings so it passes with -Werror.
1718         (_AC_PROG_CC_C99): Likewise.
1719         Reported by Albert Chin <china@thewrittenword.com>.
1720         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
1722 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
1724         * bin/autoscan.in (subdirs): New global.
1725         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
1726         (output): Emit AC_CONFIG_SUBDIRS as needed.
1727         * tests/autoscan.at (autoscan): Remove XFAIL.
1729 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
1731         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
1733 2006-04-03  Eric Blake  <ebb9@byu.net>
1735         * THANKS: Add myself.
1737 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1739         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
1740         to log, point to testsuite output tree.
1742 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
1744         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
1745         * doc/autoconf.texi (Function Portability): Mention that C++
1746         has trouble with 'exit'.
1747         (Guidelines): Test programs shouldn't use 'exit'.
1748         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
1749         Remove; all uses removed.
1750         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
1751         Return from 'main' instead of calling 'exit'.
1752         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
1753         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
1754         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
1755         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
1756         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
1757         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
1758         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
1759         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
1760         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
1761         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
1762         * tests/compile.at: Likewise.
1764 2006-04-02  Pavel Roskin  <proski@gnu.org>
1766         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
1768 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1770         Clean up _AC_COMPILER_EXEEXT* macros.
1772         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
1773           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
1774           ac_file to the name of the default output file and call
1775           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
1776           initial `rm' of the candidate files...
1777         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
1778           the same list in subsequent `rm' calls, and for the temporary
1779           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
1780           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
1781         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
1782         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
1783           no longer needed) by libtool.  Make it a cache check.
1784         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
1785           copied here by mistake.
1786         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
1787           _AC_COMPILER_EXEEXT.
1788         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
1789           _AC_COMPILER_OBJEXT directly.
1790         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1792 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1794         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
1795         (AS_DIRNAME): Use it.
1796         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
1798         * tests/*.at: Remove the generated ones.
1800 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1802         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
1804 2006-04-01  Eric Blake  <ebb9@byu.net>
1806         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
1807         directories, unless optional third argument supplied.
1808         (AS_UNAME): Don't optimize PATH walk.
1810         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
1812 2006-04-01  Eric Blake  <ebb9@byu.net>
1813         and Stepan Kasal  <kasal@ucw.cz>
1815         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
1816         and fix some typos.
1818 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
1820         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
1821         Autoconf version number despite a zero- or one-argument AC_INIT.
1823         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
1824         subordinate tools.
1825         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
1826         * doc/autoconf.texi (autoreconf Invocation): Document it.
1828         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
1829         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
1831 2006-04-01  Eric Blake  <ebb9@byu.net>
1833         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
1834         * lib/autotest/general.m4: Be tolerant of existing directory when
1835           rm failed to remove it.
1837 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1839         * bin/autoupdate.in: Redefine m4_location so that warnings print
1840         the correct lines of the input file by subtracting..
1841         (_au__first_line): ..this new definition.
1843         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
1844         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
1845         Remove stray newline in output.
1846         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
1847         AC_DEFUN this for autoconf, including the obsoletion diagnose.
1848         Fixes autoupdating of code where the replacement output contains
1849         m4sugar macros.
1850         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
1851         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
1852          (au_exclude_list): Add AC_LANG_SAVE.
1853         * tests/tools.at: Several new tests for all of this.
1854         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
1855         hairy details.
1856         The AC_LANG_SAVE issue was reported against Libtool by
1857         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
1858         Kristian Kvilekval <kris@cs.ucsb.edu>.
1860 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1862         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
1863           switch all of them on and of when necessary.  Fixes the bug when
1864           m4sugar macros (e.g., m4_define) were expanded after the first
1865           automatic update (e.g., after AC_PREREQ or AC_INIT).
1867 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
1869         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
1870         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
1872         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
1873         correctly.  Problem reported by Eric Blake.
1874         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
1875         Ralf Wildenhues.
1877 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1879         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
1880         Tighten up the basename/dirname wording.
1882 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1884         * Makefile.maint (sc_texi_notab): New check: do not use TABs
1885         in texinfo files outside of verbatim environments.
1886         (syntax-check-rules): Update.
1887         * doc/autoconf.texi (Configuration Headers): Conform to it.
1889 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
1891         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
1892           aclocal cannot be given on the command line.
1894 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1896         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
1897         Give an example for AS_DIRNAME instead of referring to Posix..
1898         (File System Conventions): Put discussion of // versus / here, and
1899         modernize it a bit.
1900         (Limitations of Usual Tools): Add basename.  Remove verbiage
1901         after dirname, since it got moved to the above sections.
1902         All this was inspired by a patch proposed earlier by Eric Blake.
1904 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1906         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
1907         `$0' to protect against spaces.
1908         * lib/autotest/general.m4 (AT_INIT): Likewise.
1909         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
1910         `$0', $as_me.
1912 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1914         * bin/autoscan.in: The value of find_configure_ac should be
1915         checked for existence, so we don't barf over a nonexisting
1916         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
1918 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1920         * bin/autoupdate.in: Fix some typos.
1922 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
1924         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
1926         * lib/autoscan/autoscan.list: Refreshed.
1928 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1930         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
1931         and Erlang related variables.
1933         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
1934         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
1935         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
1936         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
1937         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
1938         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
1939         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
1940         (_AC_PROG_OBJC_G): New macros.
1941         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
1942         * doc/autoconf.texi (Objective C Compiler): New node.
1943         (Preset Output Variables): Document OBJCFLAGS.
1944         (Language Choice): Document `Objective C' language.
1945         (Fortran Compiler): Fix typo.
1946         * NEWS: Updated.
1947         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
1949 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
1951         * doc/autoconf.texi (Default Includes): Fix typo
1952           s/AC_HEADERS_STDC/AC_HEADER_STDC/
1953         (Limitations of Usual Tools): s/unwriteable/unwritable/
1954         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
1955           Fix typos in the comments.
1957 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
1959         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
1960           Factor out the warning to...
1961         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
1962         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
1963         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
1965         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
1966           case `ac_delim' when writing the sed script.
1968         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
1969           moved DUALCASE=1 ...
1970         (AS_SHELL_SANITIZE): ... here.
1971         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
1972           that it is set.
1974         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
1975           AC_SUBST.
1976         (_AC_PATH_PROG): Store the result to VARIABLE.
1977         (AC_PATH_PROG): No need to set VARIABLE again.
1979         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
1980           the first one is usual AT_CHECK_MACRO test, the second one checks
1981           that the same works when cross-compiling.
1982         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
1983         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
1985 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1987         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
1988         the directory `/usr/bin/posix' in the shell search, to prefer
1989         the Posix shell not only in subsequent spawns as with `$BIN_SH'
1990         on Tru64.
1992         * doc/autoconf.texi (contents): To fix texi2html output, hide
1993         `@setcontentsaftertitlepage' for HTML.
1994         (Writing Autoconf Macros): Likewise, insert space after `@c'.
1995         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
1996         `@,{c}'.
1998 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
2000         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
2001           sanitizing...
2002         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
2003         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
2004           why IFS is restored so late; thank you, Ralf, for reminding us.
2006 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
2008         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
2009           variables in the examples.
2011 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2013         * doc/autoconf.texi (several sections): Cleaned up documentation for
2014         macros in erlang.m4.
2016 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2018         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
2019         failure condition for `$(cmd)' style command substitutions.
2020         (Parenthetical command substition, Multiline parenthetical
2021         command substition): Use it.
2023         * doc/autoconf.texi (Special Shell Variables): Missing word.
2024         Reported by Keith Marshall <keith.marshall@total.com>.
2026         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
2027         IFS even in case of empty `$PATH'.
2029 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2031         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
2032         `expr' away if there is nothing to do.
2033         < --keywords >: Simplify and robustify argument handling.
2034         Revert erroneous comment from 2005-08-23.  Extend to allow
2035         keyword negation with `!'.
2036         Update help message.  Remove broken code to prevent running
2037         tests multiple times.
2038         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
2039         Update and fix the documentation accordingly.
2040         * tests/autotest.at (Keywords): Renamed to..
2041         (Keywords and ranges): .. this.  Extended to make sure negated
2042         keywords, keywords taken from AT_SETUP arguments, and numeric
2043         test ranges work, and that matching is case-insensitive.
2045 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2047         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
2048         allow to pass unnamed structs even in C++.
2049         (AC_CHECK_SIZEOF):  Likewise.
2050         Also fix quoting error in `AC_MSG_FAILURE' arguments.
2051         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
2052         struct): New tests for unnamed structs, each both native and
2053         cross-compiling.
2055         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
2056         a structure inside a cast, for C++ conformance.
2057         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
2058         Also fix quoting error in `AC_MSG_FAILURE' arguments.
2060         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
2061         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
2062         trying to execute the command `no'.
2064         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
2065         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
2066         expanded outside.
2068         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
2069         example.  Do not emphasize `$%', it is hardly new and special.
2070         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
2072         * doc/autoconf.texi (Limitations of Usual Tools): Document
2073         OpenBSD and traditional `grep' failure to handle multiple
2074         patterns separated by newlines.
2076 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2078         * doc/autoconf.texi (several sections): Add documentation for macros
2079         in erlang.m4.
2081 2006-03-10  Eric Blake  <ebb9@byu.net>
2083         * doc/autoconf.texi (Obsolete Macros): Fix wording of
2084         AC_TRY_LINK_FUNC.
2086 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2088         * doc/autoconf.texi: Use @acronym more consistently for acronyms
2089         like BSD, GPL, LGPL.  Fix minor English typos.
2090         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
2091         Mention that these macros are becoming obsolete.
2092         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
2093         Use more modern terminology for which standard is what.
2094         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
2095         and to ansi2knr.
2096         (AC_PROG_CXX): Likewise.
2097         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
2098         Remove obsolete discussion about how to port to K&R.
2099         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
2100         the obsolescent AC_HEADER_STDC.
2101         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
2102         can't rely on it.
2104 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2106         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
2107         Remove stdin redirection from /dev/null to allow pipe to work.
2109 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2111         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
2112         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
2113         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
2114         Ralf Wildenhues.
2116 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2118         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
2119         HP-UX sed is 99 commands, not 100.
2120         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
2121         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
2122         newline for portability.
2123         * tests/torture.at (Torturing config.status): Also test 100
2124         AC_SUBST_FILE invocations.  Fix test to actually verify the
2125         AC_CONFIG_FILES output.
2126         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
2127         command, label, and read-file `r' limits.  Unify HP-UX spelling.
2129         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
2130         non-suffix rule.
2131         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
2132         non-GNU make.
2133         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
2134         * tests/mktests.sh: Small shell portability fixes.
2136 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2138         * doc/autoconf.texi (Caching Results): Fix the examples to use a
2139         recommended quoting style and discard unwanted output.
2141 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2143         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
2144         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
2145         cases, and to work around Tru64 expr bug.
2147 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2149         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
2150         expr bug that turns the result of a regex match into a number if
2151         possible.
2153 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2155         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
2156         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
2157         in section `Specific Compiler Characteristics'.
2159 2006-03-04  Eric Blake  <ebb9@byu.net>
2161         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
2162         variable warning.
2164 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2166         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
2167         order of variable initialization, so even the Solaris 2.6 shell
2168         can create a config header correctly.  Fixes lots of test suite
2169         failures.
2171 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2173         * doc/autoconf.texi (Text processing Macros): New node to
2174         document the m4sugar macros m4_re_escape, m4_tolower,
2175         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
2177 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2179         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
2180         XrmInitialize (0) -> XrmInitialize ().
2181         Reported by Toshio Kuratomi.
2183 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2185         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
2186         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
2187         * doc/autoconf.texi (Programming in M4sh): Adjusted.
2188         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
2189         both macros are defun'ed so that required macros are evaluated
2190         outside.
2192         * doc/autoconf.texi (Prerequisite Macros): State more precisely
2193         where a required macro will be expanded.
2194         (Coding Style): Another reason not to use `m4_define'.
2196 2006-02-21  Eric Blake  <ebb9@byu.net>
2198         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
2200 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2202         * doc/autoconf.texi (Looping constructs): New node, to
2203         document m4_for, m4_foreach, m4_foreach_w, and mention
2204         obsolete AC_FOREACH.
2205         (Obsolete Macros): Document AC_FOREACH.
2206         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
2207         (m4_for): Fix to never loop (almost) endlessly, work correctly
2208         with arithmetic expressions in arguments, a step of zero or
2209         non-integer multiple of the interval, and avoid integer
2210         overflow.
2211         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
2212         m4_foreach_w.
2214 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2216         Add basic support for Erlang, both for configuring Erlang/OTP
2217         tools, and Erlang as a conf test language.
2218         * lib/autoconf/erlang.m4: New file.
2219         * lib/autoconf/autoconf.m4: Add erlang.m4.
2220         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
2221         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
2222         * NEWS: Add short description of new macros.
2223         * THANKS: Add Romain Lenglet.
2225 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2227         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
2228         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2230 2006-02-15  Eric Blake  <ebb9@byu.net>
2232         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
2233         warning.
2235 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2237         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
2238         (_AS_CASE): Private helper macro.
2239         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
2240         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
2241         Fix syntax of AS_IF description
2242         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
2243         for the AC_REQUIRE mess.
2244         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
2245         AS_SHELL_SANITIZE.
2247 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
2249         * doc/autoconf.texi: Minor style cleanup.
2250         Be consistent about spaces after commas.
2251         Insert [] where empty args look a bit funny.
2252         Fix some "i.e." and "e.g." usages.
2253         Try to avoid "X/Y" usages.
2254         Don't be pedantic about "ISO C99"; just say C99.
2255         Prefer GNU style for spaces in front of parens.
2256         (Function Portability): Comment about C89 versus C99
2257         signed integer division.
2258         (Particular Headers): Use current gnulib style for dirent
2259         includes.
2261 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
2262         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2264         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
2265         macros without parameters.
2266         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
2267         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
2268         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
2269         `$#' bug.
2270         (autoupdate): Updated to match AU_ALIAS fix.
2272 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2273         and Paul Eggert  <eggert@cs.ucla.edu>
2275         * doc/autoconf.texi (Programming in M4sh): Document
2276         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
2278 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2280         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
2281         (AS_BOURNE_COMPATIBLE): ..this.
2282         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
2284 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2286         * doc/install.texi (Defining Variables): Tighten up the
2287         CONFIG_SHELL wording.
2289 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
2290         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2292         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
2293         of (set -o) rather than testing whether (set -o posix) succeeds,
2294         to work around a bug in the AIX 5.3 shell.  Problem originally
2295         reportd by Howard Chu for libtool.
2297 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
2299         * doc/autoconf.texi (Running the Compiler, Running the Linker):
2300         Changes the macro arguments in summaries to match the
2301         descriptions.
2303 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
2305         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
2306         hint as ``a workaround for a bug.''
2308 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2310         * bin/autoreconf.in: New option `--no-recursive'.
2311         Improve wording for subpackages a bit.
2312         * doc/autoconf.texi (autoreconf Invocation): Updated.
2313         * NEWS: Updated.
2315         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
2316         in environment of `configure', not the command line.
2317         Reported by Howard Chu <hyc@highlandsun.com>.
2319 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2321         * doc/autoconf.texi (Limitations of Builtins): Document the
2322         problem with "trap -".
2324 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
2326         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
2327         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
2328         messages to differentiate Fortran and Fortran 77 tests.
2329         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
2330         AC_LANG_ASSERT, to allow use in mixed-language projects.
2332 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2334         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
2335         FOO" to "defined (FOO)".
2336         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
2337         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
2338         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
2339         * tests/tools.at (ifnames): Likewise.
2341 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2343         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
2344         * lib/Autom4te/General.pm (mktmpdir): Likewise.
2345         (END): Improve error message a bit.
2346         Reported by Bruce Korb <bkorb@gnu.org>.
2348 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2350         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
2351         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
2353 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
2355         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
2356         requires sys/stream.h.  Reported by Oliver Kiddle.
2358 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2359             Stepan Kasal  <kasal@ucw.cz>
2361         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
2362         before the removals of test dirs, use `find' to avoid modification
2363         of symlinked directories.
2365 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2367         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
2368         Don't ignore the macro arguments.
2370 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
2372         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
2373         declaration that works for MSVC.
2375 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2377         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
2378         Add `*.map' and `.inf' for Green Hills compiler.
2379         Reported by Stefan Seefeld <stefan@codesourcery.com>.
2381         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
2382         correctly: pad with spaces after FIRST_PREFIX if necessary,
2383         and compute string lenghts with `m4_qlen' instead of `m4_len'.
2384         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
2385         * tests/m4sh.at (AS_HELP_STRING): Test extended.
2386         * NEWS: Updated.
2387         Reported by numerous people, numerous times.
2389 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2391         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
2392         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
2393         * lib/autoconf/general.m4, lib/autoconf/status.m4:
2394         * lib/autotest/general.m4, tests/local.at:
2395         Update copyright year to 2006.
2397         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
2398         sed substitutions.
2399         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
2400         for file names, again.  Reported by Noah Misch.
2401         (Coding Style): Explain that s|a|b| is preferred for file names.
2402         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
2403         (AC_OUTPUT_MAKE_DEFS): Likewise.
2404         * lib/autotest/general.m4 (AT_INIT): Likewise.
2405         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
2406         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
2408         Fix Posix-conformance bugs re use of { command in sed scripts,
2409         and improve the sed-related documentation a bit.
2410         * doc/autoconf.texi (Installation Directory Variables): Use
2411         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
2412         rather than "sed" when talking about Sed in general.
2413         (Particular Programs): Likewise.
2414         (Coding Style): y is like s with respect to / and ,.
2415         (Limitations of Usual Tools): Document the weird restrictions
2416         that Posix has about { }.  Use better quoting.
2417         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
2418         Rewrite to conform to Posix rules about { } in sed scripts.
2419         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
2420         * tests/foreign.at (Libtool): Likewise.
2421         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
2422         Use our own style advice re 's,a,b,' versus 's|a|b|'.
2424 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2426         * lib/autoconf/status.m4: Fix typo.
2428         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
2429         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
2430         `-def', for the benefit of Portland `pgf90 -Mipa'.
2431         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
2433 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2435         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
2436         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
2437         shell from zsh to bash.
2439 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
2441         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
2442           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
2444 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2446         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
2447         parentheses in $(...).  Problem reported by Eric Blake.
2449 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2451         * doc/autoconf.texi (Limitations of Usual Tools):
2452         Mention which characters can be escaped with \ in portable regular
2453         expressions used in grep, sed, expr.  Mention the leading ^ problem
2454         with expr.  Clean up some confusing wording.  Mention which
2455         grep options are portable.
2457 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
2459         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
2461 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2463         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
2464         patch, noted by Ralf Wildenhues.
2466 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2468         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
2469         posix' unconditionally, for pdksh in `native sh' emulation.
2471 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2473         * doc/autoconf.texi (Shellology): Document eval $? problem
2474         with ash.
2475         (Limitations of Builtins): Likewise.
2477 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2479         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
2480         CONFIG_SHELL in the environment of the configure rerun.
2481         * doc/autoconf.texi (Here-Documents, config.status Invocation):
2482         Suggest passing CONFIG_SHELL absolute, and in the environment
2483         rather than as option.
2485 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2487         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
2488         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
2489         Fix macro quoting.  Fix output for n * 98 substituted variables.
2491 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2493         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
2494         `tmp' to avoid file removal race.
2496 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2498         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
2499         ac_clean_files and LIBOBJS.
2501 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2503         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
2504         Factor functionality to..
2505         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
2506         `AC_SUBST($1)' in the public version.
2507         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
2508         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
2509         ac_pt_* variables.
2511 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
2513         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
2514         filesystems.
2516 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2518         * NEWS: Move AH_HEADER mention to right place.
2520 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
2522         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
2523         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2525 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
2527         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
2528         conftst2.$ac_objext.
2529         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2531 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
2533         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
2534         conftest.o, to see whether the compiler really obeys; rm the object
2535         file before and after the test and register it with ac_clean_files.
2536         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2538 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
2540         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
2541         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
2542         code so that the most common case requires less forks.
2544 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
2546         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
2547         not portable; thanks to Paul Eggert and Alexandre.
2549         * NEWS: Fix an old typo.
2551 2005-10-20  Jim Meyering  <jim@meyering.net>
2553         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
2554         the latter'', in two places.
2556 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2558         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
2559         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
2560         the inner workings of AC_LANG_FUNC_LINK_TRY.
2561         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
2562         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
2563         by the function rather than ignoring it.
2564         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
2565         comparing its address.  Intel's interprocedural optimization was
2566         outsmarting the old heuristic.  Problem reported by
2567         Mikulas Patocka.
2569 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
2571         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
2573 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2575         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
2576         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
2578 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
2580         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
2581         before removing it (chmod -R u+rwx); there are three instances of this.
2583 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2584             Stepan Kasal  <kasal@ucw.cz>
2586         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
2587         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
2588         make its content writable before removing it.  Remove an errorneous
2589         comment from the end, where the logs of the failed tests are copied
2590         to the main log file.
2592 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
2594         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
2595           in case the computer is too quick.  Double quote the configure.ac
2596           snippets.
2598         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
2599           problems if the testsuite were running too fast.
2601 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2603         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
2604         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
2605         (which belong to Xt, not X itself).  See Debian bug 327655.
2606         * NEWS: Mention this.
2608 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
2610         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
2612 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
2614         * config/move-if-change: Don't output "$2 is unchanged";
2615         suggested by Ben Elliston.  Handle weird characters correctly.
2617 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
2619         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
2620           calls, so that the final expansion of this macro is shorter.
2621           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
2622           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
2623           the cleanup there.  Use AS_VAR_* macros, to be more general.
2624         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
2626         * lib/autoconf/general.m4: Use AS_IF where appropriate.
2628         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
2630 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
2632         * doc/autoconf.texi (Configuration Headers): Add an index entry
2633           for AH_HEADER.
2635 2005-08-26  Pavel Roskin  <proski@gnu.org>
2637         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
2638         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
2639         running xmkmf.
2641 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2643         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2644         The previous patch didn't work, so try a better one.
2646 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
2648         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
2649         in the example.  Reported by Bruno Haible.
2650         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
2651         "if $undefined_var;" succeeds with my shell.
2653         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
2654         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
2655         but change the m4_divert_text to m4_divert_once.
2657 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2659         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2660         Work around bug in Solaris /usr/xpg4/bin/awk.
2661         The bug is present in at least Solaris 8 through 10.
2663 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
2665         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
2666         some evil values and relying on the fact that $* concatenates the
2667         parameters by the first character from IFS.
2669 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
2670             Stepan Kasal  <kasal@ucw.cz>
2672         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
2673         first header appears, define AH_HEADER.
2674         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
2675         Update limitations about when to call AC_CONFIG_HEADERS.
2676         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
2677         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
2678         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
2679         ``Configuration Actions''; fix their index entries.
2681         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
2682         options correctly.  Process N-M as M-N if M is smaller than N.
2683         Process ranges correctly so that N-N will run only N.
2684         Sort and uniquify the tests that will be run.  If there is more
2685         than one test, reinsert the banners for the tests.
2686         * tests/autotest.at (Keywords): Unmark XFAIL.
2688 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
2690         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
2691           before passing the macro name to AH_TEMPLATE.
2693         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
2694           now opens log after option processing; in particular, --version
2695           and --help do not touch config.log.
2697         * Makefile.maint: Revert the change from 2005-08-12.
2699 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
2701         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
2702           common code to...
2703         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
2705 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2707         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
2708         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
2709         Language cleanup.
2711         * doc/autoconf.texi (Defining Symbols, Changed Results):
2712         Prepend to LIBS, not append, in examples.
2714 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
2716         When building in place, set srcdir="."; suggested by Tim Van Holder.
2718         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
2719           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
2720         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
2721         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
2722           does not mean "no --srcdir option".
2724 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2726         * tests/autoscan.at (autoscan): New file.
2727         * tests/suite.at: Use it.
2728         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
2729         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
2731         * tests/autotest.at (Keywords): Test keywords combinations.
2733 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
2735         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
2736           add "2>&1"; gzip 1.2.4 prints help on stderr.
2738 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
2740         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
2741         was pushdef'ed twice while popped only once.  Push it only once.
2742         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
2744 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
2746         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
2747         prefixed by mere "===", not "configure: === ".
2749 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2751         * Makefile.maint: Update from Bison.
2753         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
2754         "<tab>" in comment, so that the point is understandable.
2756 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
2758         Rewrite substantial part of lib/autoconf/status.m4.
2759         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
2760         and CONFIG_COMMANDS are not processed in four separate loops.
2761         Instead, there is one main loop.  This alows that the common code
2762         is expanded only once, thus config.status (and configure) is smaller.
2764         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
2765         the AC_LIST_FILES and cousins macros are no longer used.
2767         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
2768         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
2769         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
2770         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
2771         contain the initialization, nor the for loop, nor the associated
2772         commands; all these go to ...
2773         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
2774         _AC_OUTPUT_CONFIG_STATUS.
2775         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
2776         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
2777         (_AC_OUTPUT_FILE): The creation of the sed script ...
2778         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
2779         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
2780         _AC_OUTPUT_MAIN_LOOP.
2781         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
2782         _AC_CONFIG_COMMANDS): Use ...
2783         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
2784         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
2785         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
2786         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
2787         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
2788         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
2789         ... new macros.
2790         (_AC_CONFIG_UNIQUE): Update.
2791         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
2792         Replaced by this ...
2793         (_AC_LIST_TAGS): ... new common macro.
2794         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
2795         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
2796         (_AC_LIST_TAG_COMMANDS): ... new common macro.
2797         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
2798         this didn't belong to the `config commands' section.
2799         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
2800         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
2801         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
2802         to the `config commands' section either.
2803         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
2804         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
2806         ... and many changes to the comments nearby.
2808         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
2809         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
2810         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2811         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
2812         (#define header templates): The comment at the top of the generated
2813         header now includes the name(s) of the source file(s).
2815         Several unrelated small changes:
2817         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
2818         parameter to AC_DIAGNOSE.
2819         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
2820         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
2821         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
2822         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
2823         with AU::AC_OUTPUT.
2824         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
2825         in AC_OUTPUT doesn't double-quote it either.
2826         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
2827         parameters.
2829 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
2831         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
2832         versions of Portland Group compiler produce single- and double-quoted
2833         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
2834         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2836 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2838         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
2839         This is a corrected version of yesterday's patch.
2841 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
2843         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
2844         path, too; insert a "===" to emphasize the line.
2846         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
2847           ac_cv_build_alias to ac_build_alias.
2848         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
2850         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
2851         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
2852         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
2853         (AC_ARG_VAR): ... here.
2854         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
2855           target_alias.
2857         Keep a list of all precious variables and process them with one simple
2858         for loop, instead of expanding all commands, or, OTOH, complicated
2859         processing of output of "set".
2860         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
2861         variable names in new macro...
2862         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
2863         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
2864           a loop to assign all ac_env_* and ac_cv_env_* variables.
2865         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
2866           to INIT_PREPARE.
2867         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
2868           its value to shell variable ac_precious_vars and call
2869           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
2870         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
2871           _AC_ARG_VAR_VALIDATE.
2873         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
2874           and the AC_SUBSTs ...
2875         (AC_INIT): ... here.
2877         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
2878           the ac_subst_files section in config.log.
2880         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
2882 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2884         * NEWS: New macro AC_C_TYPEOF.
2885         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
2886         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
2887         * tests/c.at (C keywords): Test AC_C_TYPEOF.
2889         Fix problems reported by Nicolas Joly.
2890         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
2891         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
2892         They are generated by the Tru64 v5.1B shell.
2894 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
2896         Fix my changes from 2005-07-01; reported by Noah Misch.
2897         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
2898         description, the macro now accepts only a single tag.
2899         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
2901         Fix cases when the varsions of Autoconf and Autotest don't match.
2902         Reported by Noah Misch.
2903         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
2904         at_top_builddir, for compatibility with older autotest.
2905         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
2906         is not set, use at_top_builddir, for compatibility with older
2907         versions of autoconf.
2909 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2911         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
2912         Problem reported by Patrick Welche.
2914 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2916         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
2917         sed substitution command, so that we allow | in program prefixes
2918         and program suffixes.  (& is a problem anyway; we're not fixing
2919         that here.)
2920         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
2921         configure_input, top_builddir, srcdir, etc.
2922         * lib/autotest/general.m4 (AT_INIT): Likewise, for
2923         PATH_SEPARATOR in AUTOTEST_PATH.
2925 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
2927         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
2928         for loop over config.site files using `set', to allow
2929         directory names containing IFS characters.
2931 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2933         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
2934         directories with weird names.  Apparently some people like living
2935         on the edge.  However, improve the test that "pwd" actually does
2936         report a name for the working directory.
2937         * NEWS: Remove the claim that we test for funny chars in dir names.
2939 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
2941         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
2942         replaced ...
2943         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
2944         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
2945         Now accept a single tag, not whitespace separated list.
2946         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
2948 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
2950         * doc/autoconf.texi (Configuration Headers): Change the explanation
2951         about #include <config.h>.
2952         (Generic Functions): Mention the Gnulib project.
2953         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
2955         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
2956         document to output the default config_* lists to config.status.
2957         Don't recognize option --file, if the functionality is not there.
2958         Likewise for --header; moreover, recognize --he and --h as shortcuts
2959         for --help in that case.
2961         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
2962         matches the order of execution.  No code changed.
2964 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2966         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
2967         single-quoted -cmdline argument in Portland Group compiler.
2968         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2970 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
2972         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
2974 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2976         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
2977         descriptors to child processes; reported by Norman Gray.
2979 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2981         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
2983         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
2984         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
2985         (AC_SUBST): Call it.
2986         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
2987         the directory specific variables; but don't call it for configure_input.
2989 2005-06-28  Derek Price  <derek@ximbiot.com>
2991         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
2992         addition.
2994 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2996         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
2997         directory have inherent problems with special characters like spaces,
2998         due to limitations in Make syntax.  Problem reported by Alexandre
2999         Duret-Lutz.
3000         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
3001         Also, fix Tru64 porting problem with shell patterns,
3002         reported by Ralf Wildenhues.
3004 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3006         * doc/autoconf.texi (Subdirectories): Fix markup typos.
3008 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3010         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
3012         Fix some more shell quoting problems.  Prompted by a bug report
3013         from Justace Clutter.
3014         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
3015         variable into diagnostic.  Make the diagnostic an error, not a warning,
3016         because we really don't support spaces and suchlike in dir names.
3017         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
3018         Don't worry about backslashes in srcdir; it can't happen now.
3019         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
3020         Simplify ac_optarg handling.
3021         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
3023 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
3025         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
3026         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
3027         * tests/atlocal.in: Propagate $EGREP and $SED.
3028         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
3029         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
3031         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
3032         that '\|' is not allowed in BREs; recommend using newline separated
3033         list of patterns instead of multiple -e options.
3035         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
3037         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
3039 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3041         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
3043 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
3045         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
3046         b, t, r, w commands require single space, while : cannot have any.
3047         (Special Shell Variables): Fix sed code this in the example.
3048         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
3049         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
3051         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
3052         expand to the empty list.  Don't use two pairs of m4_changequote,
3053         it's not necessary.
3055 2005-06-20  Derek Price  <derek@ximbiot.com>
3057         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
3059 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3061         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
3062         * doc/autoconf.texi:
3063         Don't mention Solaris versions so much, if a
3064         problem is common to all extant versions of Solaris.  Say "SunOS
3065         4" instead of "SunOS" for SunOS 4.
3066         (awk): Mention more of the limitations of traditional Awk.
3067         (cat): Don't talk about cat -v.
3069 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3071         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
3072         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
3073         but the implementation is entirely different and is designed
3074         to be compatible with glibc strverscmp.
3075         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
3077         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
3078         on Mac OS X 10.4 reported by Peter O'Gorman in:
3079         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
3080         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
3081         Use shell builtins rather than 'expr', to work around expr bug.
3083 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
3085         * doc/autoconf.texi: "filesystem" -> "file system".
3086         "behaviour" -> "behavior".
3087         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
3088         * lib/autoconf/general.m4: Omit blank after ":" sed command,
3089         as per POSIX.
3090         * lib/m4sugar/m4sh.m4: Likewise.
3091         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
3092         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
3094         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
3095         (.x.1): Ignore the time stamp in the .TH line when deciding whether
3096         to update the man page.  That way, we don't have to check in new
3097         man pages every month.
3099         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
3100         quotes and backslashes.  Patch from Derek Price.
3102 2005-06-10  Derek Price  <derek@ximbiot.com>
3104         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
3105         AS_TR_SH.
3107 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3109         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
3110         -u, since it outputs chatter if the input files are the same.
3111         Problem reported by Ralf Menzel.
3113 2005-06-08  Derek Price  <derek@ximbiot.com>
3115         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
3116         renaming them since they are about to be redefined anyhow.
3118 2005-06-08  Derek Price  <derek@ximbiot.com>
3120         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
3121         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
3122         Move m4_undefine to alphabetical order.
3124 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3126         * README: Recommend GNU M4 1.4.3 or later.
3127         * doc/autoconf.texi (Introduction): Likewise.
3128         Reword to avoid some formatting glitches.
3129         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
3130         Clarify explanation of HP compiler bug.
3131         Redo example output tp match current CVS snapshot.
3132         Use @example.org in email addresses when the examples
3133         might get inadvertently cut-and-pasted into user code.
3134         Remove example of autom4te usage that doesn't seem to work now.
3135         Use modern AC_INIT (except when the example is meant to be
3136         shown with Autoconf 2.13).
3137         Update ksh info for Solaris 9 and later.
3138         KB -> kB.
3139         Modernize description of Automake versions a bit.
3140         Don't claim a future version of Autoconf is near.
3141         * doc/install.texi: Reword to avoid some formatting glitches.
3143 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3145         * doc/autoconf.texi: Add [] to examples, so that the manual
3146         follows its own advice about quoting better.
3147         Reword to avoid some formatting glitches.
3148         * doc/installt.exi: Reword to avoid some formatting glitches.
3150         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
3151         Tru64 ksh pattern matching bug.  Reported against Libtool by
3152         Albert Chin <libtool@mlists.thewrittenword.com> and
3153         Nicolas Joly <njoly@pasteur.fr>.
3155 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
3157         m4_cdr of one-member list was [[]] (one-member list containing an
3158         empty string) instead of [] (an empty list.  Callers were skewed to
3159         match this misbehaviour.  As a consequence of this:
3160          - m4_foreach([x], [], [foo]) expanded to `foo', while
3161          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
3162         This bug has been fixed:
3164         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
3165           expand to an empty string; print error msg if called without
3166           an argument list.
3167         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
3168           misbehaviour; handle [] and [[]] correctly.
3170 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
3172         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
3173         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
3174           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
3176 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
3178         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
3179           swallow records with more than 99 fields.
3180         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
3181           parse the long line.
3183 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
3185         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
3186           swallow literals longer than 399.  Reported by Ralf Wildenhues.
3187         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
3188           to workaround this limitation.
3190 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3192         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
3193         to gfortran, and make these the first two compiler names
3194         checked (following the general autoconf preference for gcc).
3196 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
3198         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
3199         (DISTCLEANFILES): Remove $(check_SCRIPTS).
3200         (testsuite): Make sure autotest.m4f is up-to-date before using it.
3202 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3204         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
3205         expression of unbounded size when processing the --list
3206         option.  This runs afoul of a limit of 399 bytes per regular
3207         expression on AIX.  Problem reported by Ralf Wildenhues.
3209 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3211         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
3212         * doc/autoconf.texi (Particular Headers): Reword example
3213         for multiline stdbool replacement.
3214         (Setting Output Variables): Reword text a bit.  Don't
3215         give all the details about |#_!!_#|.
3216         Reword description of line replacement.
3218 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
3220         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
3221         now contain newlines, and substituted files must be referenced on
3222         a line alone; the sed scripts to substitute them are now very
3223         different.
3224         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
3225         commands can be put in a sed script portably.
3226         * doc/autoconf.texi (Setting Output Variables): Document above
3227         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
3228         use of multiline substitution.
3229         * tests/torture.at: No longer expect substitution of newline to fail.
3231 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3233         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
3234         From Ralf Menzel (trivial change).
3236 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3238         * tests/local.at: Don't attempt to check for negated character
3239         classes in shell scripts.  The test was too brittle.
3241 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
3243         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
3244         * doc/autoconf.texi (Limitations of Builtins): Document this
3245           limitation.
3247 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
3249         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
3250           common code; used in many places in the tree.
3251         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
3252         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
3254         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
3256         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
3257           messages when ac_unique_file is not found.
3258         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
3259         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
3260           commands, for consistency with AC_MSG_ERROR and such.
3262         * bin/autoconf.as: Make more use of "shift 2" in option processing.
3264         * bin/Makefile.am: Merge the two rules for creating scripts.
3266 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
3268         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
3269         obsolete; it was never documented.
3270         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
3272 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
3274         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
3275         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
3276         (ac_top_builddir): ... this ...
3277         (ac_top_build_prefix): ... to this; the old name is also kept, for
3278           backward compatibility.
3279         (ac_top_builddir_sub): New variable, without the trailing slash,
3280           always nonempty.
3281         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
3282         * doc/autoconf.texi (Configuration Actions): Rename
3283           ac_top_builddir to ac_top_build_prefix.
3284         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
3285           at_top_builddir to at_top_build_prefix.
3286         * lib/autotest/general.m4 (AT_INIT): Likewise.
3288 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
3290         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
3291           of confdefs.h .
3293 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
3295         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
3296           argument to m4_foreach.  I guess it was necessary in the past,
3297           but I think it's a no-op now.
3299 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
3301         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
3302           ``cat <<_ACEOF'' commands to one.
3303         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
3304         * lib/autoconf/status.m4: On various places, use expr instead of
3305           ``echo|sed.''
3306         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
3307         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
3308         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
3309           a range.
3310         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
3311           the wrong patterns between ``case'' and ``esac.''  The previous
3312           code had false positives.
3314 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
3316         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
3317         as on 2005-05-02.
3318         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
3319         Mention LIBOBJDIR.
3321 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3323         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
3324         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
3325         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
3326         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
3327         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
3328         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
3329         config/config.guess, config/config.sub, config/elisp-comp,
3330         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
3331         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
3332         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
3333         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3334         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
3335         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
3336         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
3337         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
3338         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
3339         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
3340         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
3341         lib/autoconf/general.m4, lib/autoconf/headers.m4,
3342         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
3343         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
3344         lib/autoconf/specific.m4, lib/autoconf/status.m4,
3345         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
3346         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
3347         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
3348         lib/autotest/general.m4, lib/emacs/Makefile.am,
3349         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
3350         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
3351         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
3352         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
3353         tests/compile.at, tests/foreign.at, tests/fortran.at,
3354         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
3355         tests/semantics.at, tests/suite.at, tests/tools.at,
3356         tests/torture.at, tests/wrapper.as:
3357         Update FSF postal mail address.
3359 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
3361         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
3362           check.
3363         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
3364           enough arguments, similarly as in m4_bpatsubsts.
3366 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
3368         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
3369           of absolute paths.
3371 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
3373         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
3374           for absolute directory names in one loop.
3375         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
3376           abbreviations of --version and --debug.
3378 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3380         * doc/autoconf.texi (Autoconf Language): Be more precise about
3381         quoting rules.  Problems noted by Stepan Kasal.
3382         Also, throughout this document, be more careful about white space.
3383         "blank", "white space", and "space" all have different meanings
3384         and we should be careful to say what we mean.
3386 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3388         Fix C++ related problems reported by Werner Lemberg.
3389         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
3390         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
3391         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
3392         avoid problems with C++ and throw.
3393         * tests/compile.at: .cpp, not .cc.
3395         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
3397 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3399         * doc/autoconf.texi (Generic Functions): Typos.
3401 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
3403         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
3404         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
3405         set by latest automake.
3407 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3409         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
3410         outputs 0 on GNU/Linux these days.
3412 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3414         * doc/autoconf.texi (Autoconf Language): Add more description
3415         about quoting heuristics.
3416         (Limitations of Builtins): Describe "set -" problems.
3418 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3420         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
3421         not newline.
3423         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
3424         by AC_DEFINE; it was a mistake.
3425         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
3427 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
3429         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
3431 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
3433         * doc/autoconf.texi (External Software): Quadrigraphs are not
3434           processed correctly in AS_HELP_STRING; avoid this in the examples.
3435         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
3436         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
3437           comment and reduce m4_default([foo], []) to [foo].
3438         (m4_strip): Update the explanation.
3440 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
3442         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
3443         Remove core.conftest.* too; it's generated by Tru64 5.1.
3444         Problem reported by Jennis Pruett.
3445         * lib/autoconf/functions.m4
3446         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
3447         Don't bother to remove core files; AC_RUN_IFELSE should do that
3448         for you.
3450 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
3452         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
3454 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
3456         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
3457         Report from Horst Wente.
3459 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
3461         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
3462           the comment.
3464 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
3466         * doc/autoconf.texi (External Software, Package Options): Add
3467           examples showing how to implement --with-* and --enable-* options.
3469 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
3471         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
3472         as well as configure.in.  Problem reported by Gregorio Guidi.
3474 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3476         * doc/autoconf.texi (Particular Functions): Use gnulib's current
3477         pattern for alloca snippet.
3479 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
3481         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
3483 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
3485         * doc/autoconf.texi (Generic Programs): Fix a typo.
3487 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
3489         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
3490         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
3492 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3494         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
3495         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
3496         whole-archive (-zallextract, -zdefaultextract) options in the hope of
3497         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
3498         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
3500 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3502         * NEWS: The configure command now warns you if you attempt to use
3503         a directory whose name contains a special character like space,
3504         newline, or "\".
3505         * doc/autoconf.texi (Installation Directory Variables): Allow
3506         "," in file names.  Do not use \@; it's not a portable regexp.
3507         * bin/Makefile.am (edit): Likewise.
3508         * lib/Makefile.am (edit): Likewise.
3509         * tests/Makefile.am (edit): Likewise.
3510         * tests/semantics.at: Likewise.
3511         * tests/torture.at: Likewise.
3512         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
3513         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
3514         * doc/autoconf.texi (File System Conventions): Warn about
3515         unportable file names.
3516         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
3517         (AC_INIT): Use it.
3518         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
3519         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
3520         ac_pwd, and quote srcdir.
3521         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
3523         * doc/autoconf.texi: Fix some systematic formatting problems.
3524         ".)"  needs a following @: if not at the end of a sentence, and
3525         similarly for "!)".  "etc." should be preceded by a comma.
3526         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
3528 2005-03-22  Bruno Haible  <bruno@clisp.org>
3530         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
3531         argument is often called 'build-aux'.
3533 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
3535         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
3536           macro AC_TRY_LINK is obsolete.
3537         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
3538           `AC_CONFIG_FILES'.
3540 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
3542         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
3543           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
3544           from a Common Lisp's `cl'.
3545         (AC_PROG_CXX): Behave according to the documentation: don't
3546           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
3547           make the variable CCC precious; use `cl.exe', not `cl'.
3549 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3550             Alexandre Duret-Lutz  <adl@gnu.org>
3552         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
3553         /dev/null, as "configure" shouldn't read stdin, and this insulates
3554         us from problems (e.g., when testing for "cl").  Also, do this
3555         redirection before invoking "hostname" or "uname", and keep the
3556         original input stream available via...
3557         (AS_ORIGINAL_STDIN_FD): ... this new macro.
3558         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
3559         bother with "</dev/null" since it's now done at the top of
3560         'configure'.
3561         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
3562         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3563         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
3564         * doc/autoconf.texi (File Descriptor Macros): New section.
3565         (Printing Messages): Mention it.
3566         * tests/base.at (Input/Output): New test.
3568 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3570         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
3571         newline if neither \c nor -n work, as that would output two
3572         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
3574 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
3576         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
3577         This causes that any required macros inside will get before the if.
3578         * doc/autoconf.texi (autom4te.cache): A typo.
3580 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3582         Undo previous change, except keep the change to
3583         lib/autoconf/programs.m4 that replaced grep with shell
3584         pattern-matching.  This is because net-snmp configure reads stdin.
3585         Reported by Noah Misch.
3587 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
3589         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
3590         from /dev/null, as "configure" shouldn't read stdin, and this
3591         insulates us from problems (e.g., when testing for "cl").
3592         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
3593         before invoking "hostname" or "uname".
3594         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
3595         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
3596         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
3597         "</dev/null" since it's now done at the top of 'configure'.
3598         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3599         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
3600         Also, replace grep with shell pattern-matching, to save a process.
3602 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
3604         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
3605         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
3606         avoid thinking that Allegro Common Lisp's "cl" command is a C++
3607         compiler.
3609 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3611         * doc/autoconf.texi (Limitations of Usual Tools): Document that
3612         grep -q isn't portable.  Improve grep -s explanation.
3613         Problem reported by Dan Manthey.
3615 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3617         * doc/autoconf.texi (Special Shell Variables): Clarify
3618         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
3620 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3622         * doc/autoconf.texi: Use @acronym for DJGPP.
3623         Fix some @code's that should have been @env's, and vice versa.
3624         Sort environment variable names.
3625         Mention that shells no longer inherit IFS.
3626         Don't recommend PATH_SEPARATOR=';' so strongly.
3627         Mention that $RANDOM might expand to the empty string.
3628         "symlink" and "soft link" -> "symbolic link".
3629         Improve mktemp description (reported by Bruno Haible).
3631 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
3633         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
3634         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
3635         Likewise.
3636         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
3637         Likewise.
3639 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3641         * NEWS: Mention AT_COPYRIGHT.
3643         * tests/local.at (AT_CMP): Use diff directly on input files rather
3644         than copying them.
3646         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
3647         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
3649 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3650         and Paul Eggert  <eggert@cs.ucla.edu>
3652         * tests/autotest.at (Empty test suite): New test.
3653         * tests/torture.at (Substitute and define special characters)
3654         (Substitute a 2000-byte string, Define to a 2000-byte string)
3655         (Substitute a newline, Define a newline): New tests.
3657 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3659         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
3660         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
3661         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
3662         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
3663         (Standard regular expressions): New test.
3664         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
3665         excess test name quoting.
3666         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
3667         CPPFLAGS to `configure' instead of setting it in `configure'.
3669         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
3670         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
3671         on some platforms.
3673         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
3674         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
3676         * tests/local.at (AT_CMP): New macro.
3677         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
3678         (AC_SAVE_STATE): Move environment grep...
3679         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
3680         (AT_CONFIG_CMP): New macro.
3681         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
3682         * tests/c.at (Extensions): Do not exit early.
3683         * tests/atlocal.in: Inherit $GREP.
3685         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
3686         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
3688         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
3689         (AC_COPYRIGHT): Factor header comment portion out and move into...
3690         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
3691         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
3692         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
3693         --version output.
3694         * tests/local.at: Add Autoconf test suite copyright notice.
3695         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
3697 2005-02-04  Bruno Haible  <bruno@clisp.org>
3698         and Paul Eggert  <eggert@cs.ucla.edu>
3700         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
3702 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3704         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
3705         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
3707         Try not to generated lines of unlimited length, as POSIX places a
3708         2047-byte limit on line length of portable text files.
3709         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
3710         Use newline as a separator, not space.
3711         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
3712         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
3713         space.
3715 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3717         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
3718         as_func_*.  Add test to check whether positional parameters
3719         are restored after function return.
3721 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3723         * doc/autoconf.texi (Special Shell Variables): Mention _,
3724         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
3725         if they contain a lower-case letter.  The DUALCASE problem was
3726         reported by Ralf Wildenhues.
3728         * bin/autoconf.as: Don't exit with status 0 after write failure
3729         with --help or --version.
3730         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
3731         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3733 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3735         * doc/autoconf.texi (Limitations of Usual Tools):
3736         Unicos 9 sed limitations.
3737         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
3738         to get the option-enhanced interface on older Crays.  Try ftn for
3739         Fortran 95 (newer Crays).
3741 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
3743         * man/Makefile.am (.x.1): Go back to the simple solution, but take
3744         care to echo the commands, so the user knows what's going on.
3745         Modified from a suggestion by Stepan Kasal.
3747         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
3748         with a cross reference.  Derived from a suggestion by Bruce Korb.
3750 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3752         * doc/autoconf.texi (config.status Invocation): Warn about
3753         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
3754         * doc/install.texi (Defining Variables): Likewise.
3755         Based on a proposed patch by Ralf Wildenhues.
3757         * man/Makefile.am (.x.1): Make sure the required generated files
3758         are up to date.  Problem and original solution proposed by Stepan Kasal.
3759         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
3760         implicit-man-prerequisites): New rules, used by the above.
3762         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
3763         * config/config.guess, config/config.sub, config/install-sh: Likewise.
3764         * config/missing, config/texinfo.tex: Likewise.
3766 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
3768         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
3769         Update the long comment explaining it.
3771         m4_require no longer writes an ``is required by'' line to the
3772         execution stack.  It contains only one bit of non-redundant
3773         information: that the macro was required, not called.  And even
3774         this bit is useless in most situations: have you ever met a macro
3775         which both calls and requires the same macro?
3777         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
3778         (_m4_defun_pro_outer): ... only via this macro, for the outermost
3779           macro.
3780         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
3781         (m4_expansion_stack_pop): Remove the misplaced comment.
3782         (m4_require): Don't put the ``is required by'' line to the
3783           execution stack; slightly improve the out-of-a-defun error message.
3784         (_m4_divert_grow): New macro, counter for the temporary diversions.
3785         (_m4_require_call): Use it.
3786         * tests/m4sugar.at (m4_require): Expect output without the
3787           ``is required by'' messages.
3789 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3791         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
3792         rather than x for expr.
3794         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
3795         this is safe.
3796         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
3797         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
3798         * lib/autotest/general.m4 (AT_INIT): Likewise.
3799         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
3800         * tests/mktests.sh: Likewise.
3802 2005-01-27  Akim Demaille  <akim@epita.fr>
3804         Have autoheader honor --force.
3806         * doc/make-stds.texi, doc/standards.texi: Update from masters.
3807         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
3808         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
3809         from masters, so that FileUtils.pm's update_file provide --force
3810         support.
3811         * bin/autoheader.in: Pass $force to update_file so that
3812         config.h.in is always recreated when --force.
3814 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
3816         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
3818 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3820         * doc/autoconf.texi (Limitations of Builtins): Clarify that
3821         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
3823 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
3825         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
3826         Warn about newline stripping in `` and $().  Update Solaris
3827         version to 9.
3828         (Limitations of Builtins): Use expr "X...", not expr "x...", as
3829         X insulates us from future changes to Posix.
3830         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
3831         stripping.
3833 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
3835         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
3836           you cannot use AC_DEFINE to define macros containing `[' or `]'.
3838 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
3840         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
3841         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
3842         bug-tar mailing list.
3844 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
3846         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
3848 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3850         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
3851         ulongval to be static, to avoid unwanted GCC warning.  Problem
3852         reported by Michael Jennings via Daniel Reed; see
3853         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
3855 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
3857         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
3858         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
3859         datadir, infodir, and mandir.  Adjust argument parsing code.
3860         (_AC_INIT_HELP): Update help text.
3861         * doc/autoconf.texi (Installation Directory Variables): Document
3862         new variables.
3864 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
3866         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
3867         not seem to work, assume it does set $(MAKE).
3868         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
3870 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
3872         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
3874 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
3876         A cleanup of the diversion support in m4sugar.
3878         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
3879         (_m4_divert_n_stack): New macro; the expansion is
3880           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
3881           otherwise.
3882         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
3883         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
3884           stored in _m4_divert_diversion or _m4_divert_dump.
3885         (m4_divert_pop): When the parameter is given, compare the symbolic
3886           name with the last diversion pushed on the stack.  Previously, the
3887           current diversion was compared with the numeric value of the
3888           diversion given as the parameter.
3889         (m4_require): If the macro hasn't been expanded yet, call ...
3890         (_m4_require_call): this new macro.
3892 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3894         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
3895         Workarounds for documented `case' limitations.
3897 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
3899         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
3900         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
3902 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3904         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
3905         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
3906         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
3908         Patch from Roger Leigh (with some minor changes) as follows:
3909         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
3910         Resurrect AC_PROG_CC_STDC.
3911         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
3912         AC_PROG_CC_C89, AC_PROG_CC_C99.
3913         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
3914         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
3915         AC_PROG_CC_C99): New macros.
3916         (AC_PROG_CC_STDC): Use them.
3917         (_AC_PROG_CC_STDC): Remove.
3918         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
3919         * THANKS: Add Roger Leigh.
3921 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
3923         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
3924         signals that the package uses Automake; a `Makefile.am' is typical but
3925         not essential.  Reported by Magnus Therning.
3926         * tests/torture.at (autoreconf.): New banner.
3927         (autoreconf and non-AC configure): Rename to `Non-Autoconf
3928         AC_CONFIG_SUBDIRS'.
3929         (autoreconf an empty directory): Rename to `Empty directory'.
3930         (Unusual Automake input files): New test.
3932 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
3934         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
3935         (AT_SETUP): Clear AT_capture_files.
3936         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
3937         (AT_KEYWORDS): Fix comment typo.
3938         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
3939         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
3940         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
3942 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
3944         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
3945         If the variable to set is already set, set ac_cv_path_$1
3946         to the preset value so caller can assume ac_cv_path_$1
3947         is available.  (trivial change)
3949 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
3951         * BUGS (Minor Problems): Warn about makefile limitations.
3952         * Makefile.am: Find and update `INSTALL' in $(srcdir).
3953         * man/Makefile.am: Find and update manual pages in $(srcdir).
3955 2004-12-24  Eric Blake  <ebb9@byu.net>
3957         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
3958         shells in subshell, to avoid noise from ash.  (trivial change)
3960 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3962         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
3963         problems with SunOS ksh and backslash escaping, Bourne shells and
3964         closing brackets (both within character classes).  Bug reported
3965         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
3966         <read>: New entry.  Mention non-availability of -r.
3968 2004-12-21  Akim Demaille  <akim@epita.fr>
3970         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
3971         avoid cluttering displayed messages.  Rather, prepend srcdir where
3972         AT_LINE is used for log files.
3974 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
3976         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
3977         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
3978           no longer part of the macro, quote the occurrence of ``$tmp''.
3979         * doc/autoconf.texi (Forbidden Patterns): Typo.
3981 2004-12-21  Akim Demaille  <akim@epita.fr>
3983         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
3984         separated from the test title by forcing a white space.
3986 2004-12-21  Akim Demaille  <akim@epita.fr>
3988         Enable Emacs navigation within testsuite.log files.
3990         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
3991         use the compilation mode.
3992         (AT_LINE): Point to the srcdir.
3994 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
3996         * tests/Makefile.am (installcheck-local): Use $(bindir).
3997         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
3998         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
3999         Makefile.am scheme Autoconf now uses.
4001 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
4003         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
4004         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
4006 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
4008         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
4009         (_AT_CHECK): Use it.
4010         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
4011         (AS_ESCAPE): Fix comment.
4012         * tests/autotest.at: Adjust section banner comments.
4013         (AT_CHECK_AT): Accept STATUS and STDERR.
4014         (AT_CHECK_AT_TEST): Likewise.
4015         (Invalid brace-enclosed parameter expansion)
4016         (Multiline command from M4 expansion)
4017         (Double-M4-quoted command): New tests.
4019 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4021         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
4023 2004-12-17  Akim Demaille  <akim@epita.fr>
4025         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
4026         m4_pattern_allow.
4027         Suggested by Alexandre Duret-Lutz.
4028         * doc/autoconf.texi (Setting Output Variables): Catch up.
4030 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4032         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
4034 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4036         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
4037           remove the comment which said we cannot.
4039 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4041         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
4042         Reini Urban and Paul Eggert for reporting the dependencies.
4044         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
4045         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
4046         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
4048 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4050         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
4051           so that eg. ``autoscan --help'' doesn't truncate it.
4053 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
4055         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
4056         generated conftest files.
4058 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
4060         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
4061         tracing on commands with possibly-escaped newlines.
4062         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
4063         discontinued behavior and its implications.
4064         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
4065         (BSx641-newline in command, BS-BS-newline in command)
4066         (BSx640-newline in command, Newline-CODE-BS-newline in command)
4067         (Single-quote-BS-newline in command)
4068         (Single-quote-newline-BS-newline in command): New tests.
4070 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
4072         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
4073           on platforms where it works.
4074         (_AS_TEST_PREPARE): Test for ``test -x''.
4075         (_AS_BROKEN_TEST_PREPARE): Nuke.
4077 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
4079         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
4080         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
4081           give only 4-letter prefix to AS_TMPDIR, comment fixed.
4082         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
4083           create the temporary directory.
4084         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
4086 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
4088         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
4089         (trivial change)
4091 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
4093         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
4095 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
4097         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
4098         to avoid using a negated character class.  Reported by Nicolas Joly.
4099         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
4101 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
4103         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
4104         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
4105         Don't depend on .x file explicitly, since "make" does that for us.
4106         Suggested by Stepan Kasal.
4108         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
4109         Add *.tmp.
4110         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
4111         ifnames): Factor common code.  And they said it couldn't be done!
4113 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4115         * bin/.cvsignore: Add autoconf.in.
4116         * tests/.cvsignore: Add wrapper.in.
4117         * lib/autotest/general.m4: Escape '$' in case pattern.
4119 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
4121         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
4123         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
4125         * tests/autotest.at: New file.
4126         * tests/suite.at: Include it.
4127         * tests/Makefile.am: Distribute it.
4129         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
4130           shell tracing on a command that could contain multiple lines.
4131         * doc/autoconf.text: Document that fact and its implications.
4132         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
4133         * tests/autotest.at (Multiline backquote command substitution,
4134           Multiline parameter expansion, Literal multiline command,
4135           Multiline parenthetical command substitution): Remove XFAIL.
4137 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4139         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
4140         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
4142 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
4144         * configure.ac (test suite): Cease to generate wrapper scripts.
4145         * configure: Regenerate.
4146         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
4147         (m4f_dependencies): Adjust accordingly.
4148         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
4149         (wrapper.in): Generate it in the build directory.
4150         (MAINTAINERCLEANFILES): Delete wrapper.in.
4151         (CLEANFILES): Add wrapper.in.
4152         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
4153         the output.  Replace each $as_me with a @wrap_program@.
4154         * tests/wrapper.in: Delete it; we always build it.
4156         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
4157         (EXTRA_DIST): Remove autoconf.in.
4158         (CLEANFILES): Add autoconf.in.
4159         (autoconf): Find autoconf.in in the build directory.
4160         * bin/autoconf.in: Delete it; we always build it.
4162 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
4164         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
4165         PATH members so as to not prepend an empty element.  Move a comment.
4166         * Makefile.am (SUBDIRS): Build in `tests' last.
4167         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
4169 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
4171         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
4172         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
4173         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
4174         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
4176 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
4178         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
4179         patch: extra "-l"s.
4181 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
4183         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
4184         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
4185         * doc/autoconf.texi (Particular Functions): Mention new behavior.
4187 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
4189         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
4190           out the common code to ...
4191         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
4192           value of the #define--default to 1, iff the macro was called
4193           with exactly one parameter.
4195 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4197         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
4198         "char c = '\200';" rather than "char c = 0x80;" as the
4199         latter doesn't conform to the strict C standard due to
4200         overflow on signed char hosts.
4202         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
4203         to -qlanglvl=ansi.  We don't want to disable extensions.
4205 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
4207         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
4208         (Using Autotest, testsuite Scripts, Writing testsuite.at):
4209         Reword slightly to avoid some English-language problems noted
4210         by Ralf Wildenhues in:
4211         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
4213 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
4215         * NEWS: Add ^L above each release.
4217 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4219         Fix documentation problems reported by Russ Boylan in
4220         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
4221         along with some nearby cruft.
4222         * doc/autoconf.texi (Libtool): Libtool can be used without
4223         Automake (not without Autoconf).
4224         (Introduction): Mention lists.gnu.org.
4225         * BUGS: Don't mention bugs.gnu.org.
4226         Remove mention of ancient libtool compatibility problem.
4227         * NEWS: Mention that bugs.gnu.org is kaput.
4228         * README: Likewise.  Mention where mailing list archives can be found.
4230 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
4232         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
4233         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
4235 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4237         * doc/autoconf.texi (Pretty Help Strings): Go back to
4238         single-quoting assignments to cache variables.
4240 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
4242         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
4243         with the examples; fix the bug in MY_ARG_WITH example reported
4244         by Alexandre Duret-Lutz.
4245         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
4246         expansion of $1 in the comment emitted to configure.
4248 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4250         * doc/autoconf.texi (Pretty Help Strings): Fix typo
4251         in my editing of the previous patch.  Problem reported
4252         by Alexandre Duret-Lutz.
4254 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
4256         * doc/autoconf.texi (Autoconf Language): Explain that
4257         ``descriptions'' may not be double quotes.
4258         (Quotation Rule Of Thumb): Likewise.
4259         (Pretty Help Strings): Likewise; remove the wrong comment;
4260         simplify the examples and improve their quoting.
4262 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
4264         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
4265         the $1_found variable, don't test whether the file is executable;
4266         Both things are checked ...
4267         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
4268         the former ``test -f''.
4269         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
4271 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
4273         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
4274         use cp -R instead.
4276 2004-11-10  Derek R. Price  <derek@ximbiot.com>
4278         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
4279         limitations.  Reorder paragraphs for clarity.
4281 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4283         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
4284         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
4285         variants", "Unix", and some related minor wording fixups.
4287         (Shellology, Special Shell Variables): Document that the Zsh
4288         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
4289         to Alexandre Duret-Lutz for this info.
4291 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
4293         * doc/autoconf.texi (One-Shot Macros): New node.
4295 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
4297         * doc/autoconf.texi (Function Portability): Fix misdescription
4298         of putenv.  Problem reported by Michael Wardle.
4300 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4302         * doc/autoconf.texi (auindex): New macro.
4303         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
4304         Problem reported by Stepan Kasal.
4306 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4308         Fix problems reported by Andreas Buening in:
4309         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
4310         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
4311         in test makefile.
4312         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
4313         readable; it's not true in OS/2-emx.
4315 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
4317         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
4318         "/usr/include", clear ac_x_includes instead of leaving it as "no"
4319         (trivial change).  Problem and patch reported by Andrew Church in:
4320         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
4322 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4324         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
4325         three args in examples.  Problem reported by Frederik Fouvry in:
4326         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
4327         Also, fix some minor spacing and punctuation bugs.
4329 2004-09-02  Akim Demaille  <akim@epita.fr>
4331         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
4332         "case" to restore ordering.
4333         Reported by Stepan Kasal.
4335 2004-08-26  Akim Demaille  <akim@epita.fr>
4337         * doc/autoconf.texi: Minor typos and stylos.
4339 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4341         * configure.ac (AC_INIT): Bump to 2.59c.
4343 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4345         Version 2.59b.
4347         * README: Add advice about m4 1.4.2.
4349         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
4350         texinfo.tex for now (done by hand now).
4351         * Makefile.maint (wget_files, cvs_files):
4352         Remove ansi2knr.c; nobody uses it.
4353         (ansi2knr.c-url_prefix): Remove.
4354         (cvs-update): Fix test for failure.  I don't know why it ever
4355         worked...
4357         * doc/autoconf.texi: Update URLs, some of which went stale.
4358         Use @uref rather than @href.
4360         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
4361         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
4363         * config/config.guess, config/config.sub, config/elisp-comp,
4364         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
4365         doc/fdl.texi, doc/standards.texi: Sync with master copy.
4367         * NEWS, TODO, configure.ac, bin/autoscan.in,
4368         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
4369         doc/install.texi, lib/Autom4te/Configure_ac.pm,
4370         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
4371         lib/autoconf/programs.m4, lib/autoconf/status.m4,
4372         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
4373         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
4374         tests/tools.at, tests/torture.at:
4375         Use "file name" rather than "filename" or "path",
4376         to be consistent with the terminology of the GNU coding standards.
4378 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4380         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
4381         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
4382         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
4383         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
4385         More fixes to support spaces in the name of the build directory.
4386         This isn't a complete fix but it's an improvement.
4388         * bin/autoconf.as (autom4te_options): New var.
4389         Use it instead of appending to AUTOM4TE, so that we can allow
4390         spaces in the build directory's absolute name.
4391         * bin/autoheader.in ($autoconf): Allow spaces in file names.
4392         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
4393         AT_CHECK_NOESCAPE): Likewise.
4394         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
4395         main program): Likewise.
4397 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4399         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
4400         From Ralf Corsepius in:
4401         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
4403 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4405         * doc/autoconf.texi (Function Portability): Document isinf and
4406         and isnan.  From a suggestion by Kevin Ryde.
4408         * lib/Autom4te/General.pm (END): Return correct exit status even
4409         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
4411 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4413         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
4414         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
4415         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
4417 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
4419         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
4420         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
4421         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
4422         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
4423         * lib/autom4te.in (Automake-preselections): Preselect
4424         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
4426 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
4428         * lib/autom4te.in (Automake-preselections): Preselect
4429         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
4430         trace them.
4432 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4434         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
4435         Tru64.
4436         * doc/autoconf.texi (Shellology): Mention BIN_SH.
4437         Document problem with "`""`" in pdksh POSIX mode.
4439 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4441         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
4442         with pdksh, too.  Problem reported by Patrick Welche via
4443         Gary V. Vaughan.
4444         * doc/autoconf.texi (Shellology): Note that set -o posix is
4445         useful for pkdsh, too.
4447 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4449         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
4450         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
4451         Don't fail if ENV or BASH_ENV is readonly.
4452         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
4453         etc. are read only.  Problem reported by Ludovic Courtes.
4455 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
4457         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
4458         zsh, disable GLOB_SUBST to avoid backslash handling problems.
4459         (trivial change)
4461 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4463         * doc/autoconf.texi (File System Conventions): Warn about
4464         names like "aux".  Problem reported by Eric Blake.
4466         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
4467         by zero instead of array size, so that we can use any arithmetic
4468         constant expression (instead of requiring an integer constant
4469         expression).  This allows us to test expressions like DBL_MAX <
4470         LDBL_MAX, which didn't conform to the C standard using the old
4471         method.
4472         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
4473         now that we can do floating-point tests at compile time.
4475 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4477         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
4478         and LDBL_EPSILON, as the resulting expression isn't an
4479         integer constant expression and violates the C standard.
4480         Problem reported by Nelson H. F. Beebe.  Also, check
4481         for "L" suffix, and check that long double doesn't have
4482         worse range or precision than double, that mixed-mode
4483         arithmetic doesn't generate a diagnostic, that double
4484         constants fit in long double.
4486 2004-06-03  Kevin Ryde  <user42@zip.com.au>
4488         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
4489         malloc(0) and realloc(NULL,size).
4491         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
4492         Bob Proulx.
4494 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4496         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
4497         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
4498         by Jim Meyering.
4500 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4502         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
4503         can be rewritten using if-then-else.  Suggested by Bruno Haible.
4505 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4507         * doc/autoconf.texi (testsuite Scripts): Fix typo.
4508         Problem reported by Stepan Kasal.
4510 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4512         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
4513         change).  Patch reported by Ralf Wildenhues in
4514         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
4516         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
4517         function F exists if the compiler and linker let you compile an
4518         expression like (F != 0).  Recent versions of GCC optimize away
4519         the reference to F in that case, since every function address must
4520         be nonzero, so the link succeeds even if F does not exist.
4521         Problem reported by Manu in
4522         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
4524         * doc/autoconf.texi (Systemology): Standardize on the spelling of
4525         "Unix".  Many uses changed.
4526         (Limitations of Builtins): Explain better why the ! command isn't
4527         portable.
4529 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
4531         * lib/autom4te.in (Automake-preselections): Preselect
4532         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
4534 2004-05-19  Kevin Ryde  <user42@zip.com.au>
4536         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
4537         referencing AC_FUNC_STRERROR_R.
4539         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
4540         note pessimistic assumption when cross compiling.
4542 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4544         * doc/autoconf.texi (Limitations of Make): Note that BSD make
4545         (until 2004) invoked subcommands with sh -e, contra POSIX.
4546         Reported by Kevin Ryde.
4548 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
4550         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
4551         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
4552         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
4553         `test -f "        /usr/bin/grep"', which _always_ failed.
4554         (AC_PROG_SED): Ditto bogus PATH fix.
4555         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
4556         requires that grep correctly supports _multiple_ `-e' options, rather
4557         than stating only that grep should accept `-e'.
4559 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4561         Port to C99, which requires that 'exit' be declared.
4563         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
4564         to ensure that stdlib.h is included.
4565         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
4566         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
4567         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
4568         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
4569         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
4570         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
4571         when using 'exit' in a test; C99 requires that 'exit' be declared.
4573 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4575         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
4576         now prefers 'grep' implementations that accept -e.
4577         (Limitations of Usual Tools): Describe problems of traditional
4578         egrep and fgrep with long input lines, and of traditional grep
4579         with -e.
4580         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
4581         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
4582         All callers changed.  Append /usr/xpg4/bin to the PATH, for
4583         Solaris.
4584         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
4585         the user with complaints about multiple -e options.
4586         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
4587         Define it with AC_PROG_GREP.
4588         * configure.ac (AC_PROG_GREP): Add.
4589         * lib/freeze.mk (GREP): New macro.
4591 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
4593         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
4594         a possible candidate only after all others fail, rather than
4595         consulting it first.  This improves backward compatibility by
4596         better reflecting the way shell selection occurred in previous
4597         versions of Autoconf, and should help to avoid triggering latent
4598         problems in other packages, such as the one in Automake where zsh
4599         is not handled robustly:
4600         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
4601         Although it is not Autoconf's responsibility to work around
4602         problems in Automake, it nevertheless makes sense to avoid
4603         introducing unnecessary incompatibilites.
4605 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
4606             Gary V. Vaughan  <gary@gnu.org>
4608         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
4609         how deeply nested we are when a suitable tool is found, set the
4610         ac_path_TOOL_found flag.
4611         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
4612         nested we are in this macro.  Break out of all 3 nested loops if
4613         ac_path_TOOL_found is set.
4615 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
4617         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
4618         of the _AS_PATH_WALK loop too if GNU flavor is found.
4620 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
4622         * doc/autoconf.texi (Limitations of Make): Update documentation
4623         for `$<'.  New entry `Long lines', based on a report from Simon
4624         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
4625         paragraph about DJGPP, based on a mail from Richard Dawe.
4627 2004-04-20  Paul Eggert  <eggert@twinsun.com>
4629         * tests/c.at (C keywords): Don't assume that GCC supports
4630         "restrict" and "inline", as sufficiently-old GCC versions do not
4631         (also, GCC configured to be in pedantic C89 mode does not).
4632         Problem reported by Sumit Pandya in:
4633         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
4635         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
4636         consider -g to work if it generates warnings when plain compiles
4637         don't.  Problem reported by Braden McDaniel in:
4638         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
4640         * doc/autoconf.texi (Slashes): New section, to document a problem
4641         reported by Jim Meyering in:
4642         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
4644         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
4645         linker output files before linking, to work around IRIX 6 linker bug.
4646         Problem reported by Rainer Orth in:
4647         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
4649 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
4651         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
4652         best tool so far counter rely on the tool path variable name to
4653         avoid checks for one tool being affected by the results of running
4654         the length check on a previous tool.
4656         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
4657         match expression argument, as different greps have different
4658         regular expression flavours.
4659         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
4660         literals.
4661         (AC_PROG_EGREP): Pass 'EGREP$'.
4662         (AC_PROG_GREP): Pass 'GREP$'.
4664 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
4666         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
4667         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
4669 2004-03-29  Paul Eggert  <eggert@twinsun.com>
4671         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
4672         Types, Specific Compiler Characteristics, System Services,
4673         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
4674         etc. consistently instead of 'long', 'short', 'unsigned' etc.
4675         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
4676         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
4677         Likewise.
4678         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
4679         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
4680         AC_TYPE_OFF_T): Likewise.
4681         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
4682         Likewise.
4684         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
4685         pacify libtool 1.5.2.  Fix quoting problems in sed command.
4687 2004-03-28  Paul Eggert  <eggert@twinsun.com>
4689         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
4690         now defines HAVE_DECL_TZNAME if it is declared, when
4691         HAVE_STRUCT_TM_TM_ZONE is not defined.
4692         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
4693         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
4694         for HAVE_TZNAME.
4696 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
4698         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
4699         superfluous backslashing of quotes (") in sed expressions;
4700         thanks to Paul Eggert.
4702 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
4704         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
4705         Fortran compiler is ifort, also added pghpf; thanks to Nelson
4706         H. F. Beebe for the bug report.
4708 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
4710         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
4711         quoted -cmdline argument in Portland Group compiler (bug
4712         reported by Jeffrey J. Barteet).
4714 2004-03-25  Kevin Ryde  <user42@zip.com.au>
4716         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
4717         (Run Time): ... here, where it's now mentioned.
4719 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
4721         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
4722         inherits from language Autoconf-without-aclocal-m4.
4723         (Customizing autom4te): Adjust example; the cache must now be
4724         disabled for language Autoconf-without-aclocal-m4.
4726 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
4727             Nathanael Nerode  <neroden@twcny.rr.com>
4729         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
4730         AC_CHECK_TOOLS): Warn if a cross-tool is found without
4731         a prefix.
4732         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
4733         AC_CHECK_TARGET_TOOLS): New macros.
4734         * doc/autoconf.texi (Generic Programs): Document
4735         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
4736         AC_CHECK_TARGET_TOOLS, and warn for future changes
4737         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
4738         AC_CHECK_TOOLS.
4739         (Specifying Names): Document the reason for these future
4740         behavioral changes.
4741         * tests/mktests.sh: Do not generate tests for the
4742         new macros.
4743         * NEWS: Document these changes.
4745         * doc/autoconf.texi: Avoid macros with unbraced arguments,
4746         they make TeX hang up.
4748 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
4750         * NEWS: New macro AC_CHECK_ALIGNOF.
4751         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
4752         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
4753         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
4754         vowel.
4755         (AC_CHECK_ALIGNOF): New macro.
4756         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
4757         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
4758         those for sizeof.
4760 2004-03-03  Paul Eggert  <eggert@twinsun.com>
4762         * bin/Makefile.am (edit): Don't use $< in a context where
4763         POSIX doesn't require support for it.  Use $@.in instead.
4764         Problem reported by Anthony N. Frasso in
4765         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
4766         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
4768 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
4770         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
4771         from the next generation of Libtool.
4772         * lib/autom4te.in (Autoreconf-preselections): Ditto.
4774 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
4776         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
4777         is not always thread-safe.  Report from Nathanael Nerode.
4779 2004-02-18  Paul Eggert  <eggert@twinsun.com>
4781         Fix a dependencies problem, stemming from a Autoconf 2.59 build
4782         problem on QNX reported by Stephen Rasku in
4783         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
4785         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
4786         $(m4sh_m4f_dependencies); this removes a FIXME.
4787         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
4788         (MAINTAINERCLEANFILES): Split into pieces,
4789         one per related section.  Add $(srcdir)/wrapper.in.
4791 2004-02-09  Paul Eggert  <eggert@twinsun.com>
4793         * doc/autoconf.texi (Setting Output Variables): Emphasize that
4794         AC_SUBST provides no portable way to escape literal newlines.
4796         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
4797         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
4798         Darwin uses -lcrt2.o and there's little point to cataloging all
4799         the system variants.  Partial fix reported by Andreas Waechter in:
4800         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
4801         for bug reported by Nelson H. F. Beebe in:
4802         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
4804 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
4806         * doc/autoconf.texi (AU_DEFUN): Fix English,
4807         suggested by Paul Eggert.
4808         * lib/autoconf/autoupdate.m4: Correct reference to
4809         acobsolete.m4, suggested by Alexandre Duret-Lutz.
4811 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
4813         * bin/autoupdate.in: Define __file__ so that warnings
4814         refer to the correct file.
4815         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
4816         the behavior of the third argument.
4817         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
4818         correctly the behavior of the third argument.  Document
4819         what the three macros that AU_DEFUN defines do.  Fix
4820         warning message when the third argument includes $0
4821         (reported by Alexandre Duret-Lutz).
4823 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
4824             Eric Sunshine  <sunshine@sunshineco.com>
4825             Paul Eggert  <eggert@twinsun.com>
4827         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
4828         (AS_INIT): Output shell initialization there. Removed optional
4829         parameter. Expand _AS_SHELL_FN_SPY.
4830         (AS_INIT_WITH_SHELL_FN): Removed.
4831         (_AS_SHELL_FN_SPY): New macro.
4832         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
4833         macros.
4834         (AS_SHELL_SANITIZE): Remove loop to find better shell
4835         and documentation for the parameter.
4836         (_AS_DETECT_BETTER_SHELL): Move it here.
4837         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
4838         (_AS_RUN): Move it here, support testing with eval.
4839         (AS_REQUIRE_SHELL_FN): Require shell functions when
4840         it is used.
4841         (_AS_LINENO_WORKS): Put around braces, we do not
4842         trigger the bash bug anymore.
4843         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
4844         use AS_INIT_WITH_SHELL_FN.
4845         * bin/autoconf.in, tests/wrapper.in: Regenerated.
4847 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
4849         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
4850         * doc/autoconf.texi: Don't say that the third parameter
4851         is broken.
4852         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
4853         (AU_DEFUN): Honor the third parameter, create autoupdate
4854         macros with AU_DEFINE.
4855         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
4856         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
4857         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
4858         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
4859         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
4860         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
4861         AC_XENIX_DIR): Likewise.
4862         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
4863         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
4864         * lib/autoconf/status.m4: Remove FIXME.
4865         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
4866         that the macro is not present anymore in the updated
4867         configure.ac.
4868         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
4869         of autoupdate.
4871 2004-01-28  Paul Eggert  <eggert@twinsun.com>
4873         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
4874         copyright years.
4875         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
4876         2003 (except 1997) to the list of copyright years.  This undoes
4877         the 2003-05-22 change, which removed the older years from the list.
4878         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
4880 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
4881             Albert Chin-A-Young  <china@thewrittenword.com>
4883         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
4884         grep or ggrep program in PATH that accepts as long lines as
4885         possible.
4886         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
4887         AC_PROG_GREP.
4888         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
4889         egrep and fgrep respectively if $GREP -E/-F don't work.
4890         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
4891         _AC_PROG_GREP, and AC_PROG_SED.
4892         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
4893         longest input length accepted by a command.
4894         (AC_PROG_SED): Use it.
4895         * doc/autoconf.texi (Particular Programs): Document the changes.
4896         * NEWS: Updated.
4898 2004-01-27  Paul Eggert  <eggert@twinsun.com>
4900         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
4901         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
4902         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
4903         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
4905         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
4906         bin/autoconf.in, config/Makefile.in, config/config.guess,
4907         config/config.sub, config/install-sh, config/mdate-sh,
4908         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
4909         lib/Makefile.in, lib/Autom4te/Makefile.in,
4910         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
4911         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
4912         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
4913         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
4914         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
4915         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
4916         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
4917         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
4918         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
4919         tests/actypes.at: Regenerate and/or sync with original
4920         sources.
4922 2004-01-26  Paul Eggert  <eggert@twinsun.com>
4924         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
4925         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
4926         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
4927         not <inttypes.h>.  Problem reported by Tim Mooney in
4928         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
4929         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
4930         Likewise.
4932         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
4933         otherwise "make check" fails because it forbids cmp (I guess
4934         because cmp treats files as binary on DOS-like systems).
4936         * tests/mktests.sh: Update copyright date to 2004, since some tests
4937         have changed in 2004.
4939 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
4941         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
4942         non-truncating sed or gsed program in PATH.
4943         * tests/acprograms.at: Add it.
4944         * doc/autoconf.texi (Particular Programs): Document it.
4945         * NEWS: Updated.
4947 2004-01-15  Paul Eggert  <eggert@twinsun.com>
4949         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
4950         -std1 disables some useful extensions on Tru64.  Problem reported
4951         by N. Lichtmaier in
4952         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
4954 2004-01-14  Paul Eggert  <eggert@twinsun.com>
4956         * doc/autoconf.texi (Programming in M4sh): Document that
4957         AS_MKDIR_P succeeds if the destination is a symbolic link
4958         to an existing directory.
4959         (Limitations of Usual Tools): Note that mkdir -p might not
4960         succeed on symlinks to directories.
4962 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
4964         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
4965         * bin/autoheader.in: Grammar fix in message.
4966         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
4967         Test for dir before calling mkdir -p.  (trivial changes)
4969 2004-01-13  Eric Blake  <ebb9@byu.net>
4971         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
4972         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
4974 2004-01-10  Jim Meyering  <jim@meyering.net>
4976         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
4978 2004-01-09  Paul Eggert  <eggert@twinsun.com>
4980         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
4981         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
4982         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
4983         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
4984         AC_COMPILE_IFELSE, since we now assume our caller invokes
4985         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
4986         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
4987         of AC_RUN_IFELSE; this avoids the warning mentioned above.
4988         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
4990 2004-01-07  Paul Eggert  <eggert@twinsun.com>
4992         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
4993         `"'...'"`, as it's confusing (and I suspect it may not work on
4994         some platforms).  The code was incorrect anyway, as it assumed
4995         that \$ evaluated to itself in that context.  Reported by
4996         Alexandre Duret-Lutz.
4998 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
5000         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
5001         and _LT_AC_TAGCONFIG.
5003 2004-01-06  Paul Eggert  <eggert@twinsun.com>
5005         * doc/autoconf.texi (One Macro Call): Fix an incorrect
5006         example, and add more examples.  Reported by Eric Sunshine.
5008 2004-01-05  Paul Eggert  <eggert@twinsun.com>
5010         * doc/autoconf.texi (Limitations of Usual Tools):
5011         Remove warning against "rm -fr" introduced yesterday; it
5012         was a false alarm.
5014         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
5015         autoscan, autoupdate, ifnames): Don't use chmod -w.
5016         * lib/Makefile.am (autom4te.cfg): Likewise.
5017         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
5018         "chmod -w".
5020 2004-01-04  Paul Eggert  <eggert@twinsun.com>
5021             Paolo Bonzini  <bonzini@gnu.org>
5023         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
5024         by doing lineno substitution only on lines containing "$LINENO".
5026 2004-01-04  Paul Eggert  <eggert@twinsun.com>
5028         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
5029         Use "rm -f" to remove conftest.sed, not plain "rm".
5030         Bug reported by David Relson in
5031         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
5033         * Makefile.am (autom4te-update):
5034         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
5035         * Makefile.maint (my-distcheck, do-po-update): Likewise.
5036         * doc/autoconf.texi (Guidelines): Likewise.
5037         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
5038         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
5039         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
5040         * lib/autotest/general.m4 (AT_INIT): Likewise.
5041         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
5042         * tests/Makefile.am (clean-local): Likewise.
5043         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
5044         srcdir): Likewise.
5045         * doc/autoconf.texi (Limitations of Usual Tools):
5046         Warn against "rm -fr".
5048 2004-01-03  Paul Eggert  <eggert@twinsun.com>
5050         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
5051         -c -o might not work.  From a suggestion by Kevin Ryde.
5052         (C Compiler, Generating Sources, Limitations
5053         of Usual Tools, Limitations of Make, Making testsuite Scripts):
5054         Don't put '-o' after non-options, as POSIX doesn't allow this.
5055         Mention that cc's name might be gcc or c89 or whatever.
5057 2004-01-04  Kevin Ryde  <user42@zip.com.au>
5059         * doc/autoconf.texi: Add various further index entries.
5061 2003-12-29  Paul Eggert  <eggert@twinsun.com>
5063         * bin/autoreconf.in (autoreconf_current_directory):
5064         Fix typo: mkdir without umask arg.
5066 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
5068         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
5069         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
5070         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
5071         explanation clearer.
5073 2003-12-24  Andreas Schwab  <schwab@suse.de>
5075         * doc/autoconf.texi (Default Includes): Fix misspelling of
5076         AC_INCLUDES_DEFAULT.
5078 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
5080         * configure.ac: Test if sh -n works.
5081         * configure: Regenerate.
5082         * tests/atlocal.in: Store the result here.
5083         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
5084         tools.at, looking in atlocal's ac_cv_sh_n_works instead
5085         of explicitly testing.
5086         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
5087         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
5088         * tests/tools.at (Syntax of the shell scripts): Simplify
5089         using AT_CHECK_SHELL_SYNTAX.
5090         (Syntax of the Perl scripts): Remove definition of
5091         AT_CHECK_PERL_SYNTAX.
5093 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
5095         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
5096         stderr to /dev/null.
5097         * bin/autoconf.in: Regenerate.
5098         * bin/wrapper.in: Regenerate.
5100 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
5102         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
5103         Extracted from AS_SHELL_SANITIZE.
5104         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
5105         macros.
5106         (AS_SHELL_SANITIZE): Move reinvocation code from
5107         _AS_LINENO_WORKS, use it to find out if shell
5108         functions work.
5109         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
5110         does not work.
5111         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
5112         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
5113         was called.
5114         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
5115         * bin/autoconf.in: Regenerate.
5116         * tests/wrapper.in: Regenerate.
5117         * tests/tools.at: Test the syntax of tests/autoconf
5118         and tests/testsuite.
5120 2003-11-24  Akim Demaille  <akim@epita.fr>
5122         * config/announce-gen (&print_locations, &print_signatures)
5123         (&sizes): New.
5124         Use them.
5125         No longer rely on Gnus to inline the list of signatures: compute
5126         them on the fly.
5128 2003-11-24  Akim Demaille  <akim@epita.fr>
5130         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
5131         override some files.
5132         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
5133         From Debian Autoconf 2.58.
5135 2003-11-24  Akim Demaille  <akim@epita.fr>
5137         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
5138         uses.
5139         From Debian Autoconf 2.58.
5141 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5143         * TODO: Remove already done things.  Update the part about finding
5144         tools for the target.
5146 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5148         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
5149         Make wording more consistent.
5150         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
5151         Explain the transition better.
5152         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
5153         the transition better.
5155 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5157         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
5158         parameter of AU_DEFUN.
5159         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
5160         (AU_DEFUN): Remove the third parameter, it was not used.
5161         Use AC_DEFUN directly, not AU_DEFINE.
5162         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
5163         the expanded body, consistently with other macros such as AC_USG.
5165 2003-11-17  Paul Eggert  <eggert@twinsun.com>
5167         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
5168         into the initial confdefs.h, to work around a bug in NextStep 3.3
5169         patch 3 reported by Eric Sunshine.
5171 2003-11-15  Kevin Ryde  <user42@zip.com.au>
5173         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
5174         than $target since the latter is not usual, add guidelines on when to
5175         use or not use the system type.
5177 2003-11-12  Derek Price  <derek@ximbiot.com>
5179         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
5180         typo misrepaired by an auto-spellcheck.
5182 2003-11-12  Akim Demaille  <akim@epita.fr>
5184         * bin/autoreconf.in (&parse_args): Don't call automake with
5185         --force-missing unless it actually supports it.
5186         From Debian #219336.
5188 2003-11-12  Akim Demaille  <akim@epita.fr>
5190         * configure.ac: Bump to 2.59a.
5191         Require 2.59.
5193 2003-11-06  Akim Demaille  <akim@epita.fr>
5195         Version 2.59.
5197 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
5199         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
5200         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
5201         and ac_abs_top_srcdir are absolute paths.
5202         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
5204 2003-11-05  Akim Demaille  <akim@epita.fr>
5206         * configure.ac: Bump to 2.58a.
5208 2003-11-05  Kevin Ryde  <user42@zip.com.au>
5210         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
5211         it provokes a warning from makeinfo about looking like a cross
5212         reference in info output.
5214         * doc/autoconf.texi (Function Portability): Add notes on signal
5215         handler return type, as per AC_TYPE_SIGNAL.
5217 2003-11-04  Akim Demaille  <akim@epita.fr>
5219         Version 2.58.
5220         * doc/standards.texi: Update from master.
5222         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
5224 2003-11-04  Akim Demaille  <akim@epita.fr>
5226         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
5227         computing the absolute path to d1 in the source hierarchy: it may
5228         not exist at all.  So don't cd into it.
5229         From Alexandre Duret-Lutz.
5230         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
5232         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
5233         From Paul Eggert, but named after Perl's IO::Spec->catfile.
5234         * doc/autoconf.texi (Programming in M4sh): Document.
5235         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
5237 2003-11-03  Pavel Roskin  <proski@gnu.org>
5239         * doc/autoconf.texi (Generic Structure Checks): Describe
5240         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
5242 2003-10-31  Akim Demaille  <akim@epita.fr>
5244         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
5245         (GNU Fortran): New.
5246         * doc/autoconf.texi (Language Choice): Document.
5247         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
5248         the current language is Fortran.
5250 2003-10-31  Akim Demaille  <akim@epita.fr>
5252         * bin/autom4te.in (&freeze): Use a less likely warning separator
5253         than `\n\n', so that `\n\n\n' is valid in warnings.
5254         Reported by Steve Huston.
5256 2003-10-28  Akim Demaille  <akim@epita.fr>
5258         * Makefile.cfg (local_updates, executable-update): Tweak to be
5259         robust to parallel makes.
5260         Suggested by Alexandre Duret-Lutz.
5262 2003-10-27  Akim Demaille  <akim@epita.fr>
5264         * Makefile.cfg (executable-update): New.
5265         (local_updates): Call it.
5267 2003-10-27  Akim Demaille  <akim@epita.fr>
5269         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
5270         Don't remove core.* as it may remove valid user files.
5271         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
5272         (AC_FUNC_UTIME_NULL): Likewise.
5274 2003-10-23  Akim Demaille  <akim@epita.fr>
5276         Version 2.57g.
5277         * config/config.guess, config/config.sub: Upgrade from masters.
5279 2003-10-23  Akim Demaille  <akim@epita.fr>
5281         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
5282         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
5283         hand...
5285 2003-10-23  Akim Demaille  <akim@epita.fr>
5287         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
5288         Don't forget to remove conftest.err.
5290 2003-10-23  Akim Demaille  <akim@epita.fr>
5292         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
5293         same object file in $LIBOBJS.
5294         Reported by Alexandre Duret-Lutz & Derek Robert Price.
5295         * doc/autoconf.texi (Generic Functions): Adjust.
5297 2003-10-20  Paul Eggert  <eggert@twinsun.com>
5299         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
5300         Use 'eval', so that the resulting configure scripts work even if
5301         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
5303 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
5305         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
5306         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
5307         (_AC_LINK_IFELSE): Check the werror flag.
5308         * doc/autoconf.texi (Generic Compiler Characteristics): Document
5309         AC_LANG_WERROR.
5310         * NEWS: Mention it.
5312 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
5314         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
5315         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
5316         override AC_LINK_IFELSE.
5318 2003-10-15  Paul Eggert  <eggert@twinsun.com>
5320         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
5321         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
5322         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
5323         Mention /usr/dt/bin/dtksh on Solaris.
5324         (Shell Substitutions): Warn about $((...)).
5325         (Parentheses): New section.
5327 2003-10-15  Kevin Ryde  <user42@zip.com.au>
5329         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
5330         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
5332 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5334         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
5335         cross test.
5337 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
5339         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
5340         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
5342 2003-10-10  Andreas Schwab  <schwab@suse.de>
5344         * bin/autoheader.in: Avoid empty first line in --version and
5345         --help output.
5346         * bin/ifnames.in: Likewise.
5348 2003-10-09  Paul Eggert  <eggert@twinsun.com>
5350         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
5351         Issue a more-informative diagnostic.
5352         Problems reported by Eric Sunshine.
5354 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
5356         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
5357         -mGLOB_options_string stuff for Intel ifc, which can cause
5358         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
5359         pattern-matching instead of grep.
5361 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
5363         * doc/autoconf.texi: Document new FC Fortran macros.
5365 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
5367         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
5368         that future autopoint/aclocal/automake/autoreconf will be able
5369         to trace to find where to install local m4 macros.
5370         * doc/autoconf.texi (Input): Document it.
5371         * NEWS: Updated.
5373 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
5375         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
5376         -lcrtbegin.o to list of ignored flags and fix underquoting of
5377         -lcrt[01].o.
5379 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
5381         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
5382         cache variable instead of $G77 to decide whether to include -O2,
5383         since $G77 is specific to Fortran 77.
5385 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5387         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
5388         free" flag.  Re-order flags tested into rough order of popularity.
5390 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5392         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
5393         arguments so that it can be used with syntax identical to
5394         AC_PROG_F77, and so that we can more easily decide to
5395         remove/deprecate the DIALECT optional argument in the future if it
5396         proves troublesome.
5397         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
5398         non-freeform-supporting compilers.  Document freeform flags.
5400 2003-10-03  Akim Demaille  <akim@epita.fr>
5402         * configure.ac: Look for emacs, not macs.
5403         Reported by Eric Sunshine.
5405 2003-10-03  Akim Demaille  <akim@epita.fr>
5407         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
5408         * bin/autoreconf.in (autoreconf_current_directory): Create the
5409         AUX_DIR if needed, for sake of automake --add-missing etc.
5410         Suggested by Alexandre Duret-Lutz.
5412 2003-10-03  Akim Demaille  <akim@epita.fr>
5414         * configure.ac: Quotation and formatting changes.
5415         (EMACS): Don't set it if it is not recent enough to support
5416         autoconf-mode.el.
5417         From Eric Sunshine.
5419 2003-10-02  Akim Demaille  <akim@epita.fr>
5421         * bin/ifnames.in (&scan_file): Skip C++ comments.
5422         From Jeremy Yallop.
5424 2003-10-01  Pavel Roskin  <proski@gnu.org>
5426         * doc/autoconf.texi (Particular Structure Checks):
5427         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
5429 2003-10-01  Akim Demaille  <akim@epita.fr>
5431         Version 2.57f.
5433 2003-09-30  Paul Eggert  <eggert@twinsun.com>
5435         * lib/Autom4te/XFile.pm: Use Errno.
5436         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
5437         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
5439 2003-09-30  Akim Demaille  <akim@epita.fr>
5441         * config/announce-gen (&print_news_deltas): Extracted from...
5442         (&print_changelog_deltas): here.
5443         (&news_file): Rename as...
5444         (@news_file): this.
5446 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
5448         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
5449         have been created when invoking the compiler.
5450         * tests/fortran.at (GNU Fortran 77): Quote $G77.
5452 2003-09-29  Akim Demaille  <akim@epita.fr>
5454         Version 2.57e.
5456         * config/mkinstalldirs: Upgrade.
5458 2003-09-28  Paul Eggert  <eggert@twinsun.com>
5460         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
5461         Problem reported by Lars J. Aas in
5462         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
5463         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
5464         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
5465         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
5467 2003-09-26  Akim Demaille  <akim@epita.fr>
5469         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
5470         directory for AC_CONFIG_COMMANDS' first argument exists.
5471         This makes valid the invocation of _AC_SRCPATH that follows.
5472         Reported by Eric Sunshine.
5473         * doc/autoconf.texi (Configuration Commands): Adjust.
5475 2003-09-26  Akim Demaille  <akim@epita.fr>
5477         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
5478         Reported by Ralf Corsepius.
5480 2003-09-26  Akim Demaille  <akim@epita.fr>
5482         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
5483         arguments.
5484         Actually, use AU_ALIAS.
5485         From Bruno Haible.
5487 2003-09-26  Paul Eggert  <eggert@twinsun.com>
5489         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
5490         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
5491         Problem reported by Eric Sunshine in:
5492         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
5494 2003-09-26  Akim Demaille  <akim@epita.fr>
5496         The test suite are sometimes assigning timings incorrectly.
5497         Reported by Henk Krus.
5498         Diagnosed by Nicolas Joly.
5500         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
5501         AT_help_all.
5502         Instead of making AT_help a sequence of assignments to grow
5503         $at_help_all, just make AT_help_all be the growing contents of
5504         $at_help_all, and make a single assignment in...
5505         (AT_INIT): here.
5506         (at_times_skip): Flip the meaning and rename as...
5507         (at_times_p): this.
5508         (AT_INIT): When summarizing the test that ran, remove
5509         $at_times_file after use, and check it is present before trying to
5510         use it.
5512 2003-09-25  Akim Demaille  <akim@epita.fr>
5514         Version 2.57d.
5516         * bin/Makefile.am (edit): Handle '@configure_input@'.
5517         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
5518         (ifnames): chmod -w.
5519         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
5520         executables, not bin/ executables!  Otherwise all the magic needed
5521         to find non installed files is turned off.  This caused a failure
5522         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
5523         as found in its environment (sent by tests/autoreconf): pointing
5524         to bin/autom4te that could not find its files.
5525         * tests/mktests.sh: Force the replacement of generated files, for
5526         the sake of "mv" program that are interactive when overwriting a
5527         -w file.
5528         * config/install-sh: Upgrade from CVS Automake.
5530 2003-09-23  Paul Eggert  <eggert@twinsun.com>
5532         * doc/autoconf.texi (Limitations of Builtins): Document test -h
5533         versus test -L issues.
5535 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
5536             Paul Eggert  <eggert@twinsun.com>
5538         Trivial change to support GCC's configuration procedure.
5539         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
5540         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
5541         about inconsistency if the preprocessor is set to give errors for
5542         any warning.
5543         * doc/autoconf.texi (C Compiler Characteristics): Document this.
5545 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
5547         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
5548         and XFile.pm from Automake.
5549         * lib/Autom4te/XFile.pm: Update from Automake.
5551 2003-09-12  Akim Demaille  <akim@epita.fr>
5553         Version 2.57c.
5555 2003-09-12  Akim Demaille  <akim@epita.fr>
5557         * config/config.guess, config/config.sub, config/missing,
5558         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
5559         from masters.
5561 2003-09-12  Akim Demaille  <akim@epita.fr>
5563         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
5564         not asm/types.h.
5566 2003-09-11  Akim Demaille  <akim@epita.fr>
5568         * doc/autoconf.texi (Header Portability): linux/random.h.
5569         From Peter Hendrickson.
5571 2003-09-10  Akim Demaille  <akim@epita.fr>
5573         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
5574         willing to edit the output files.
5576 2003-09-10  Akim Demaille  <akim@epita.fr>
5578         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
5579         and AC_FC_FREEFORM.
5580         * tests/mktests.sh: Skip AC_FC_SRCEXT.
5581         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
5583 2003-09-09  Akim Demaille  <akim@epita.fr>
5585         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
5586         Reported by Gary Vaughan.
5587         * bin/autom4te.in (handle_m4): Likewise.
5589 2003-09-09  Akim Demaille  <akim@epita.fr>
5591         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
5592         trailing files.
5594 2003-09-07  Paul Eggert  <eggert@twinsun.com>
5596         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
5597         Improve the accuracy of the wording about obsolescence.
5598         From a suggestion by Ian Lance Taylor in
5599         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
5601 2003-09-05  Paul Eggert  <eggert@twinsun.com>
5603         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
5604         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
5606 2003-09-04  Akim Demaille  <akim@epita.fr>
5608         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
5609         AC_FUNC_WAIT3.
5611 2003-09-04  Akim Demaille  <akim@epita.fr>
5613         * bin/autom4te.in: Use &fatal where more appropriate than &error.
5614         (freeze): When exiting, use $exit_code.
5615         * lib/autoconf/fortran.m4: Comment changes.
5617 2003-09-04  Akim Demaille  <akim@epita.fr>
5619         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
5621 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
5623         Add support for newer Fortran dialects.  The F77 interface is
5624         unchanged, and continues to support Fortran 77.  New FC macros
5625         correspond to all the old F77 macros, with output variables FC,
5626         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
5627         available dialect, but older dialects can be specified.  There are
5628         new macros AC_FC_SRCEXT to set the source extension, and
5629         AC_FC_FREEFORM to accept free-form source files.
5631         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
5632         New macros.
5633         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
5634         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
5635         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
5636         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
5637         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
5638         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
5639         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
5640         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
5641         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
5642         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
5643         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
5644         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
5645         AC_FC_SRCEXT, AC_FC_FREEFORM):
5646         New macros.
5647         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
5648         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
5649         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
5650         Rewrite in terms of the above.
5651         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
5652         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
5653         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
5654         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
5656 2003-09-02  Paul Eggert  <eggert@twinsun.com>
5658         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
5659         Document problems with timestamp resolution that 'make', 'cp -p', and
5660         'touch -r' have.
5662 2003-08-27  Akim Demaille  <akim@epita.fr>
5664         * tests/m4sugar.at (cross_warning): Make sure to enable the
5665         output, so that we can track spurious m4sugar output.
5666         * tests/local.at: Require 2.57.
5667         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
5668         are defaulted by AT_CHECK anyway.
5669         Use AT_CHECK_AUTOM4TE.
5670         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
5671         missing dnl.
5673 2003-08-27  Akim Demaille  <akim@epita.fr>
5675         * bin/autoheader.in: Issue the "Using auxiliary..." message only
5676         when -Wobsolete is set.
5677         Set it on by default.
5678         Suggested by Klee Dienes.
5680 2003-08-27  Akim Demaille  <akim@epita.fr>
5682         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
5683         documentation.
5684         From Guido Draheim.
5686 2003-08-26  Akim Demaille  <akim@epita.fr>
5688         * doc/autoconf.texi (Output): Make clear that one can run code
5689         after AC_OUTPUT.
5691 2003-08-25  Akim Demaille  <akim@epita.fr>
5693         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
5694         CVS Bison.
5696 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
5698         * bin/autoreconf.in (parse_args): Do not pass --no-force to
5699         Automake versions prior to 1.8.
5701 2003-08-25  Akim Demaille  <akim@epita.fr>
5703         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
5704         From Ville Karaila.
5706 2003-08-24  Akim Demaille  <akim@epita.fr>
5708         * configure.ac: Bump to 2.57c.
5710 2003-08-22  Akim Demaille  <akim@epita.fr>
5712         Version 2.57b.
5714         * Makefile.cfg (local-checks-to-skip): New.
5715         * Makefile.maint (local-check): Rename as...
5716         (local-checks-available): this.
5717         (local-check): New.
5719         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
5720         * configure.ac: Require Automake 1.7.6.
5722 2003-08-22  Akim Demaille  <akim@epita.fr>
5724         Output stack traces in warnings.
5726         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
5727         Replace the former...
5728         (m4_warn): Pass the call stack to _m4_warn.
5729         * bin/autom4te.in: Adjust to output the call stack.
5730         * tests/m4sugar.at (m4@&t@_warn): Adjust.
5732 2003-08-22  Akim Demaille  <akim@epita.fr>
5734         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
5735         * bin/autom4te.in: Adjust.
5737 2003-08-21  Akim Demaille  <akim@epita.fr>
5739         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
5740         (&verbose): Remove.
5741         (&getopt): Adjust the note and verb channels, depending upon
5742         --verbose.
5743         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
5744         * bin/autoupdate.in: Adjust.
5745         Use &verb, not &verbose.
5747 2003-08-21  Akim Demaille  <akim@epita.fr>
5749         * bin/autoheader.in (&parse_args): Use &parse_warnings and
5750         &parse_WARNINGS.
5751         ($help): Use Autom4te::ChannelDefs::usage.
5752         * bin/autoscan.in: Use Autom4te::ChannelDefs.
5753         * lib/Autom4te/General.pm: Don't export error: you don't own it.
5755 2003-08-21  Akim Demaille  <akim@epita.fr>
5757         First stab at preserving warnings between calls to autom4te,
5758         including when the cache is used.
5760         There are still several issues: (i) there are too many runs of m4
5761         (one for include, one for warnings, and some more), (ii) warnings
5762         spreading on several lines are not handled gracefully, (iii) the
5763         code meant to have the call stack display for errors does not work
5764         (its handling should move from m4 to autom4te).
5766         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
5767         Use them.
5768         (@preselect): Add m4_warn.
5769         ($exit_status): Remove, use $exit_code.
5770         ($help): Use Autom4te::ChannelDefs::usage.
5771         (&handle_m4): No longer define the m4_warnings.
5772         At each run, extract and report the warnings.
5773         Always cache the result, including if the exit status is on
5774         failure, since if nothing changes, we should result in the same
5775         failure, hence we can use the cache.
5776         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
5777         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
5778         Remove.
5779         (m4_warn): Redefine as a do-nothing: it is its invocation that
5780         matters, as warnings are now reported via traces.
5781         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
5782         the contents of m4_warn: make it _call_ m4_warn, so that tracing
5783         the latter reveals calls to the former.
5785         Adjust the tests.
5787         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
5789 2003-08-21  Akim Demaille  <akim@epita.fr>
5791         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
5792         Use them.
5794 2003-08-21  Akim Demaille  <akim@epita.fr>
5796         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
5797         forward order.
5798         * lib/Autom4te/ChannelDefs.pm: Doc typos.
5799         (&parse_warnings): Accept a list of warning requests.
5800         (&usage): Return a string, not a side effect.
5801         (cross): New warning category.
5803 2003-08-21  Akim Demaille  <akim@epita.fr>
5805         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
5806         (&require_configure_ac): Accept an optional directory argument.
5807         ($configure_ac): Remove.
5808         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
5809         (&catfile): Remove.
5810         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
5811         * bin/autoscan.in: Adjust.
5813 2003-08-20  Akim Demaille  <akim@epita.fr>
5815         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
5816         Reported by Alexandre Duret-Lutz.
5818 2003-08-20  Akim Demaille  <akim@epita.fr>
5820         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
5821         * bin/autom4te: Adjust.
5822         In particular, be Autoconf tools are really silent when properly
5823         working, bind the verbosity of the 'note' channel to $verbose.
5824         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
5825         (&xsystem, &contents): Remove, since they are exported by...
5826         * lib/Autom4te/FileUtils.pm: this.
5827         More perldoc.
5828         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
5829         * lib/Autom4te/FileUtils.pm: here.
5831 2003-08-20  Akim Demaille  <akim@epita.fr>
5833         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
5834         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
5835         from CVS Automake.
5837 2003-08-20  Akim Demaille  <akim@epita.fr>
5839         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
5840         (autom4te-update): New.
5841         * Makefile.cfg (update): Bind autom4te-update.
5843 2003-08-19  Derek Price  <derek@ximbiot.com>
5845         * lib/autotest/general.m4: Comment various HELP_* diversions.
5846         (PARSE_ARGS_BEGIN): New section for option parsing related
5847         initialization.
5848         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
5849         package specific options and associated help.
5851 2003-08-19  Akim Demaille  <akim@epita.fr>
5853         * config/announce-gen, Makefile.cfg: New.
5854         * Makefile.am: Adjust.
5855         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
5857 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
5859         * lib/autom4te.in (Automake-preselections): Preselect
5860         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
5861         and m4_sinclude.
5863 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
5865         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
5866         (Autoconf-without-aclocal-m4): ... this new language.
5867         * doc/autoconf.texi (autom4te Invocation): Mention
5868         Autoconf-without-aclocal-m4.
5870 2003-08-18  Derek Price  <derek@ximbiot.com>
5872         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
5873         RUN-IF-PASS optional arguments.
5875 2003-08-18  Derek Price  <derek@ximbiot.com>
5877         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
5879 2003-08-16  Derek Price  <derek@ximbiot.com>
5881         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
5882         STDOUT & STDERR arguments.
5884 2003-08-14  Derek Price  <derek@ximbiot.com>
5886         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
5887         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
5888         shorter column three.  Add DESCRIPTION to log file content.
5890 2003-08-13  Derek Price  <derek@ximbiot.com>
5892         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
5893         output.
5895 2003-08-12  Derek Price  <derek@ximbiot.com>
5897         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
5898         (AT_CHECK_NOESCAPE): Move core functionality to...
5899         (_AT_CHECK): ...this new macro.
5901 2003-08-07  Derek Price  <derek@ximbiot.com>
5903         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
5904         (AT_CHECK_NOESCAPE): ...to this new macro.
5906 2003-07-31  Paul Eggert  <eggert@twinsun.com>
5908         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
5909         in Bash 2.01.  Problem reported by Brian Gough in
5910         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
5912 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
5914         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
5915         -lcrt1.o, for OS X.  (trivial change)
5917 2003-07-07  Paul Eggert  <eggert@twinsun.com>
5919         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
5920         inside '#ifndef __cplusplus'.  Problem reported by
5921         Bob Friesenhahn.
5923 2003-07-06  Bill Clarke  <llib@computer.org>
5925         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
5926         'long', not 'int', for benefit of Sun's recent C++ compilers
5927         (trivial change).  See:
5928         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
5929         (This really should be 'intptr_t', not 'long', but that would
5930         take more work.)
5932 2003-06-25  Akim Demaille  <akim@epita.fr>
5934         * lib/Makefile.am (autom4te.cfg): Make it read only.
5935         Depend on Makefile since it contains substitutions.
5936         From Paolo Bonzini.
5937         * lib/autom4te.in (args): Add local.at? for Autotest args.
5938         This change was made on autom4te.cfg which is generated.
5939         Reported by Raja R. Harinath.
5941 2003-06-25  Akim Demaille  <akim@epita.fr>
5943         * doc/autoconf.texi (Header Portability): sys/mount.h.
5944         From Gareth McCaughan.
5946 2003-06-23  Akim Demaille  <akim@epita.fr>
5948         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
5949         not all of them.  This fixes 1. the fact that when testing
5950         Autoconf there are many many config.log, 2. the incorrect use of
5951         top_srcdir to find config.log.
5952         Don't mix the detailed output of failed test with the summary of
5953         failures.  Rather, append detailed log afterwards.
5955 2003-06-23  Akim Demaille  <akim@epita.fr>
5957         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
5958         always run: output config.log on $at_group_log.
5960 2003-06-23  Akim Demaille  <akim@epita.fr>
5962         * tests/torture.at (#define header templates): Don't use quotes in
5963         C++ comments as it puzzles Emacs' sh font-lock-mode.
5965 2003-06-23  Akim Demaille  <akim@epita.fr>
5967         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
5968         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
5969         * tests/atspecific.m4: Rename as...
5970         * tests/local.at: This.
5971         * tests/suite.at: Move the globals into...
5972         * tests/local.at: here.
5973         * tests/Makefile.am: Adjust.
5974         * doc/autoconf.texi (testsuite Scripts): Adjust.
5976 2003-06-21  Kevin Ryde  <user42@zip.com.au>
5978         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
5979         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
5980         ensuring we add -std1 for full-ANSI.
5982         * doc/autoconf.texi (hdrindex): New macro.
5983         Add index entries for portability of various standard header files.
5985 2003-06-20  Akim Demaille  <akim@epita.fr>
5987         * configure.ac: Bump to 2.57b.
5989 2003-06-20  Akim Demaille  <akim@epita.fr>
5991         Version 2.57a.
5993 2003-06-20  Akim Demaille  <akim@epita.fr>
5995         * bin/autom4te.in: Don't rely on $HOME being defined.
5996         Reported by Marc Espie as PR/233.
5998 2003-06-20  Akim Demaille  <akim@epita.fr>
6000         * lib/autotest/general.m4: Use at_times_file only if used.
6001         From Nicolas Joly.
6003 2003-06-20  Akim Demaille  <akim@epita.fr>
6005         * config/config.guess, config/config.sub, config/elisp-comp,
6006         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
6007         Update from masters.
6009 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
6011         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
6012         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
6013         (TEST_SCRIPT): New diversion.
6014         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
6015         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
6016         (AT_INIT): Support for expected failures.
6018 2003-06-02  Akim Demaille  <akim@epita.fr>
6020         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
6021         changes.
6022         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
6023         Autoconf nor Automake.
6024         (&contents): New, from Automake.
6025         PODify.
6027 2003-05-28  Paul Eggert  <eggert@twinsun.com>
6029         * NEWS, doc/autoconf.texi (Particular Functions),
6030         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
6031         is the inverse of localtime.
6033 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
6035         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
6036         (handle_exec_errors): New function.  Work around $! being
6037         altered by WEXITSTATUS.
6038         (xqx, xsystem): Use handle_exec_errors.
6040 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
6042         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
6043         Do not call `_exit()', simply modify `$?'.
6044         (xsystem): Reset $! before running system, and check it afterward.
6045         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
6046         63 for version mismatches.
6048 2003-05-23  Akim Demaille  <akim@epita.fr>
6050         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
6051         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
6052         the middle of a line).
6053         * lib/m4sugar/m4sugar.m4: Likewise.
6054         Remove useless spaces in comments.
6056 2003-05-23  Akim Demaille  <akim@epita.fr>
6058         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
6059         exit 63, so that we (or Automake's "missing") can tell the
6060         difference with a plain failure.
6061         * doc/autoconf.texi (Notices): Adjust.
6063 2003-05-23  Akim Demaille  <akim@epita.fr>
6065         * Makefile.am, bin/Makefile.am, config/Makefile.am,
6066         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
6067         White spaces cleanup.
6069 2003-05-22  Jim Meyering  <jim@meyering.net>
6070             Paul Eggert  <eggert@twinsun.com>
6072         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
6073         Remove `#include <stdlib.h>' from the list; we should never
6074         make confdefs.h include <stdlib.h> or <cstdlib>, because the
6075         resulting namespace pollution would cause other tests to fail.
6076         Configure scripts run with some older versions of g++ and HP's
6077         aCC would fail due to such an #include.  Problems reported by
6078         Matthew Mueller in <http://bugs.debian.org/120704> and by
6079         Keith Bostic in
6080         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
6081         In the test, use the test declaration before including <stdlib.h>,
6082         as that's closer to how it'll be used.
6084 2003-05-23  Akim Demaille  <akim@epita.fr>
6086         * doc/autoconf.texi (Header Portability): ucred.h.
6087         From Ian Redfern.
6089 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
6091         Overhaul Autotest's logging: generate separate log files
6092         in testsuite.dir/NNN/testsuite.log, and append them to
6093         testsuite.log instead of re-running the test verbosely.
6095         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
6096         file descriptor, write 0 to at_status_file instead of setting
6097         at_status=0, initialize some new variables (at_status_file,
6098         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
6099         to rerun the tests, instead append the at_group_log to the
6100         at_suite_log when a test fails.
6101         (AT_SETUP): pipe the test case's output into at_tee_pipe,
6102         with the AS_MESSAGE_LOG_FD redirected to stdout.
6103         (AT_CLEANUP): save the output status in $at_status_file
6104         and restore it, redirect the AS_MESSAGE_LOG_FD back to
6105         its original place.
6106         (AT_CHECK): since tests are run with a redirected stdout,
6107         and used to be re-run in verbose mode, turn some $at_verbose
6108         into echo, and don't redirect the output of testing stdout
6109         and stderr.
6111         * lib/autotest/autoconf.texi (testsuite Scripts): Update
6112         the name of the debugging directory and information about
6113         its contents.
6115 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
6117         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
6118         parameter.
6120 2003-05-22  Akim Demaille  <akim@epita.fr>
6122         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
6123         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
6124         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
6125         * lib/autoconf/status.m4: Fix and adjust copyright notices.
6127 2003-05-22  Akim Demaille  <akim@epita.fr>
6129         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
6130         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
6131         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6132         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
6133         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
6134         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
6135         * lib/autoconf/status.m4, lib/autoconf/types.m4,
6136         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
6137         * tests/atspecific.m4, tests/base.at, tests/compile.at,
6138         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
6139         * tests/tools.at, tests/torture.at:
6140         Whitespace clean up.
6141         Suggested by Jim Meyering.
6143 2003-05-22  Akim Demaille  <akim@epita.fr>
6145         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
6146         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
6147         Reported by Jim Meyering.
6149 2003-05-22  Akim Demaille  <akim@epita.fr>
6151         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
6152         Add AC_HELP_STRING  to the obsolete macros section.
6153         Typos.
6154         Use '@.' for sentences that ended in a capital letter.
6155         From Art Haas.
6157 2003-05-22  Akim Demaille  <akim@epita.fr>
6159         * config/config.guess, config/config.sub, config/elisp-comp,
6160         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
6161         * config/texinfo.tex, doc/standards.texi: Update from masters.
6163 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
6165         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
6166         it to eval.
6168 2003-05-21  Akim Demaille  <akim@epita.fr>
6170         * bin/autoupdate.in ($m4): Fix quotation.
6171         Reported by Martin Mokrejs.
6173 2003-05-19  Paul Eggert  <eggert@twinsun.com>
6175         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
6176         Remove non-ASCII characters.
6178 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
6180         * tests/semantics.at (AC_SEARCH_LIBS): New test.
6181         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
6182         AC_CHECK_HEADERS_NEW): New tests.
6184 2003-05-17  Akim Demaille  <akim@epita.fr>
6186         * lib/autoconf/functions.m4: Use the default includes so that
6187         memcmp be declared before being tested.
6188         Reported by Sander Niemeijer.
6189         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
6190         * doc/autoconf.texi (Default Includes): Document
6191         AC_INCLUDES_DEFAULT.
6193 2003-05-17  Akim Demaille  <akim@epita.fr>
6195         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
6196         * doc/autoconf.texi (Obsolete Macros): Adjust.
6197         Reported by Werner LEMBERG and Debian Bug 190886.
6199 2003-05-16  Akim Demaille  <akim@epita.fr>
6201         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
6202         user name space clashes.
6203         Reported by Bruno Haible.
6205 2003-05-16  Akim Demaille  <akim@epita.fr>
6207         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6208         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
6209         them uniform, and more robust to Perl special characters.
6210         Reported by Martin Mokrejs.
6212 2003-05-14  Akim Demaille  <akim@epita.fr>
6214         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
6216 2003-05-14  Akim Demaille  <akim@epita.fr>
6218         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
6219         linux/irda.h.
6221 2003-05-12  Akim Demaille  <akim@epita.fr>
6223         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
6224         message.
6225         From Matthias Andree.
6227 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
6229         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
6230         and truncate.
6232 2003-05-06  Akim Demaille  <akim@epita.fr>
6234         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
6235         longer updates aclocal.m4 if useless, (ii) if a file m4_included
6236         by aclocal.m4 is changed it might require the importing of another
6237         m4 extension file, i.e., aclocal must be run.
6239         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
6240         (&parse_args): Use --force with aclocal if required and supported.
6241         (&autoreconf_current_directory): Use &run_aclocal.
6243 2003-05-06  Akim Demaille  <akim@epita.fr>
6245         Lock autom4te's cache.
6247         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
6248         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
6249         argument instead of a file name, so that the request file remains
6250         open during the whole autom4te run.
6251         ($icache_file): New.
6252         (&freeze): Lock the $icache_file.
6254 2003-04-29  Derek Price  <derek@ximbiot.com>
6256         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
6257         seperator with m4_append_uniq().  It doesn't work.
6258         (AT_CLEANUP): Add `;' to end of at_help_all.
6259         (AT_INIT): Allow --keywords to be specified more than once.  When
6260         grepping $at_help_all for keywords, use the field and keyword
6261         seperators to ensure a complete keyword match.  Alter at_prev handling
6262         to support the new --keywords behavior.
6264 2003-04-27  Karl Berry  <karl@freefriends.org>
6266         * doc/autoconf.texi: Make the dir entries in the autoconf manual
6267         align better with others.  I also made some of the individual
6268         entries on one line, for brevity and to make it easier for me to
6269         sort my dir-example file in the Texinfo distribution :).
6271 2003-04-12  Jim Meyering  <jim@meyering.net>
6273         * NEWS: Mention the new macro.
6274         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
6275         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
6276         * tests/c.at: Test AC_C_RESTRICT.
6277         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
6279 2003-04-08  Akim Demaille  <akim@epita.fr>
6281         * bin/ifnames.in: Skip C++ comments.
6282         From Jeremy Yallop.
6284 2003-04-08  Akim Demaille  <akim@epita.fr>
6286         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
6287         From Ilya Zakharevich.
6289 2003-04-08  Akim Demaille  <akim@epita.fr>
6291         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
6292         net/if.h, stdlib.h.
6294 2003-04-01  Derek Price  <derek@ximbiot.com>
6296         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
6297         from Akim's checkin of 2003-03-29.
6299 2003-04-01  Derek Price  <derek@ximbiot.com>
6301         * tests/torture.at (Configuring subdirectories): Add missing
6302         close-quote for Akim's change from 2003-03-28.
6304 2003-04-01  Akim Demaille  <akim@epita.fr>
6306         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
6307         (AC, AT, MS): these.
6308         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
6309         New.
6310         Use them.
6311         * doc/Makefile.am (CLEANFILES): Adjust.
6312         (TEXI2DVI): Make it --batch.
6314 2003-03-31  Derek Price  <derek@ximbiot.com>
6316         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
6317         which removed the main loop.
6318         Thanks to Akim Demaille.
6320 2003-03-29  Akim Demaille  <akim@epita.fr>
6322         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
6323         that starts a GUI.
6324         From Ilya Zakharevich.
6326 2003-03-29  Akim Demaille  <akim@epita.fr>
6328         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
6329         documentation to read is Autoconf's.
6330         Suggested by Paul Eggert.
6332 2003-03-28  Akim Demaille  <akim@epita.fr>
6334         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
6335         reading the section "Present But Cannot Be Compiled" when the
6336         header causes problems.
6338 2003-03-28  Akim Demaille  <akim@epita.fr>
6340         * tests/torture.at (Configuring subdirectories): Require aclocal
6341         1.4, otherwise the test fails, as it does support configure.ac.
6342         This fixes the "test 40 failed" bug reports.
6344 2003-03-28  Akim Demaille  <akim@epita.fr>
6346         * doc/autoconf.texi (C Compiler): `#line' portability.
6347         From Paul Eggert and Nelson H. F. Beebe.
6349 2003-03-27  Derek Price  <derek@ximbiot.com>
6351         * lib/autotest/general.m4: Eliminate main loop and reorganize test
6352         layout in order to allow scripting around test groups.
6354 2003-03-27  Derek Price  <derek@ximbiot.com>
6356         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
6357         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
6358         use new diversions in preparation for accepting new arguments and
6359         allowing scripting around tests.
6360         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
6362 2003-03-26  Derek Price  <derek@ximbiot.com>
6364         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
6365         obsolete AC_HELP_STRING.
6366         (AC_HELP_STRING): AU_DEFUN to...
6367         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
6368         * tests/m4sh.at (AS_HELP_STRING): New test.
6370         * tests/acgeneral.at: Regenerated.
6372 2003-03-26  Derek Price  <derek@ximbiot.com>
6374         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
6375         sense.  Verbosify the diversion definitions comment.
6377 2003-03-26  Derek Price  <derek@ximbiot.com>
6379         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
6380         AS_PREPARE.
6382 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
6384         * doc/autoconf.texi (Present But Cannot Be Compiled):
6385         Grammar fixes and minor rewording. (trivial change)
6387 2003-03-06  Paul Eggert  <eggert@twinsun.com>
6389         Work around a problem noted by Nelson H. F. Beebe with coreutils
6390         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
6391         2002/05/09) rejects '#line 32768 "configure"' because the line
6392         number overflows.
6393         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
6394         #line directives.
6395         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
6396         * doc/autoconf.texi (Generating Sources): Document this.
6398 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
6400         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
6401         file name for the m4 program, when it has an "exe" file extension.
6402         DJGPP's error messages include the error code in brackets -
6403         remove the error code during normalization.
6405 2003-02-28  Akim Demaille  <akim@epita.fr>
6407         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
6409 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
6411         * doc/autoconf.texi (Limitations of Make): Remove the section
6412         about `$<' in inference rules, it was a bogus interpretation of
6413         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
6414         Tru64 make in the "target lookup" section.
6415         (Automake): Automake 1.5+ no longer requires special tools to be
6416         present on the developer's host.
6418 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
6420         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
6421         to a shell that can handle redirection or quoting correctly.
6422         Override SHELL with the shell detected by configure.
6423         Use of $^O suggested by Tim van Holder.
6424         * bin/autom4te.in (BEGIN): Likewise.
6425         * bin/autoreconf.in (BEGIN): Likewise.
6426         * bin/autoscan.in (BEGIN): Likewise.
6427         * bin/autoupdate.in (BEGIN): Likewise.
6428         * bin/ifnames.in (BEGIN): Likewise.
6430         * bin/ifnames.in: Add final newline to help and version messages.
6432         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
6433         to cope with DOS-style absolute paths, when constructing
6434         ${ac_make}.
6436         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
6437         When constructing paths with IFS=:, quote the path. If we're
6438         constructing a DOS-style absolute path, we don't want to split it
6439         on the colon.
6441         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
6442         in description.
6444 2003-02-25  Pavel Roskin  <proski@gnu.org>
6446         * bin/autoheader.in: Add missing newline when printing
6447         suggestion how change AC_DEFINE call.
6449 2003-02-24  Paul Eggert  <eggert@twinsun.com>
6451         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
6452         2002-09-01 patch by replacing "test -n" with "test -z".
6453         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
6454         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
6456         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
6457         to fix a mismatch between example and discussion.
6459 2003-02-24  Kevin Ryde  <user42@zip.com.au>
6461         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
6462         format starting with "-".
6464 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
6466         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
6467         is not portable inside Makefile.
6469 2003-02-20  Akim Demaille  <akim@epita.fr>
6471         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
6472         compiler says yeah, but preproc says nope, compiler is right.
6473         Conversely, prompt the reader to send a bug report to the
6474         maintainers of the package, not of Autoconf.
6476 2003-02-20  Klee Dienes  <kdienes@apple.com>
6478         * bin/autoreconf.in (autoreconf_current_directory): Properly
6479         handle an empty aclocal.m4.
6481 2003-02-20  Akim Demaille  <akim@epita.fr>
6483         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
6484         $ac_prefix_program.
6485         From Larry Jones.
6487 2002-12-23  Paul Eggert  <eggert@twinsun.com>
6489         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
6490         innocuous variant befor including <limits.h> or <assert.h>.  This
6491         works around a bug reported by Albert Chin: HP-UX 11i
6492         (and earlier versions) have a <limits.h> that declares
6493         gettimeofday and many other functions.
6495 2002-12-03  Paul Eggert  <eggert@twinsun.com>
6497         Version 2.57.
6499         * NEWS, configure.ac: Update version.
6501         * doc/fdl.texi: Upgrade to FDL version 1.2.
6503         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
6504         nontrivially in main's body, so that f's external declaration is
6505         not optimized away in AIX.  This should fix the bug reported by
6506         Martin Frydl in
6507         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
6509         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
6510         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
6511         defined, to support freestanding compilers.  This should fix the
6512         bug reported by Momchil Velkov in
6513         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
6515         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
6516         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
6517         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
6518         by Simon Josefsson in
6519         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
6521         * Makefile.maint (www-gnu): New macro.
6522         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
6523         the location has moved.
6525 2002-12-02  Martin Frydl  <martin@systinet.com>
6527         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
6528         \(.*\) match is too long and there is something more to be checked.
6529         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
6531 2002-11-15  Akim Demaille  <akim@epita.fr>
6533         Version 2.56.
6535         * config/install-sh: chmod +x.
6536         From Paul Eggert.
6537         * config/move-if-change: Indenting changes.
6538         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
6539         * configure.ac (AM_INIT_AUTOMAKE): here.
6540         Require 1.7.1.
6542 2002-11-14  Akim Demaille  <akim@epita.fr>
6544         Version 2.55.
6546         * config/config.guess, config/config.sub, config/install-sh:
6547         Update from masters.
6549 2002-11-14  Akim Demaille  <akim@epita.fr>
6551         * Makefile.maint: Sync with Bison, i.e.:
6552         (po-check): Scan .l and .y files instead of the
6553         .c and the .h files that they generate.  This fixes the bug
6554         reported by Tim Van Holder in:
6555         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
6556         Look for N_ as well as for _.  Try to avoid matching #define for
6557         N_ and _.
6558         From Paul Eggert.
6560 2002-11-14  Akim Demaille  <akim@epita.fr>
6562         * doc/autoconf.texi (C Compiler): Compiling several files at once.
6563         From Paul Eggert and Albert Chin-A-Young.
6565 2002-11-14  Akim Demaille  <akim@epita.fr>
6567         * doc/autoconf.texi (C Compiler): Solitary backslashes.
6568         From Paul Eggert and Albert Chin-A-Young.
6570 2002-11-14  Kevin Ryde  <user42@zip.com.au>
6572         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
6573         than assigning in main, to avoid HP cc +O3 optimizing it away.
6575 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
6577         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
6578         option.  Process --recheck after parsing all options.  Pass -q
6579         option to configure on --recheck.
6580         (AC_OUTPUT): Pass -q from configure to config.status.
6581         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
6582         arguments to record.
6583         * doc/autoconf.texi (config.status Invocation): Document
6584         config.status -q option.
6586 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
6588         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
6589         Makefile.in if Makefile.am exists.
6590         (output): Strip `.am' from Makefiles.  Don't
6591         output AC_CONFIG_FILES if no Makefiles were found.
6593 2002-11-07  Akim Demaille  <akim@epita.fr>
6595         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
6596         (local_updates): New.
6597         * Makefile.maint: Update, from CVS Bison.
6598         (local_updates): New.
6600 2002-11-06  Akim Demaille  <akim@epita.fr>
6602         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
6603         declaration in extern "C" too.
6604         Reported by Roberto Bagnara.
6606 2002-11-06  Akim Demaille  <akim@epita.fr>
6608         * tests/torture.at (Configuring subdirectories): Don't use grep
6609         -w.
6610         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
6611         Reported by Ezra Peisach.
6613 2002-11-05  Akim Demaille  <akim@epita.fr>
6615         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
6616         Remove.
6617         We _have_ to stop using the old compatibility scheme that tried to
6618         avoid useless backslashes because Libtool 1.4.3 contains a
6619         AC_DEFINE([error_t], [int],
6620         [Define to a type to use for \`error_t' if it is not
6621         otherwise available.])
6622         We _have_ to quote the single quote and backslashes with \.  The
6623         old compatibility scheme saw that ` was backslashed, and therefore
6624         did not quote the single quote.  Hence before this patch, Autoconf
6625         was not compatible with Libtool.
6627 2002-11-04  Paul Eggert  <eggert@twinsun.com>
6629         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
6630         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
6631         LC_NAME, LC_PAPER, LC_TELEPHONE.
6632         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
6634 2002-11-04  Akim Demaille  <akim@epita.fr>
6636         Version 2.54c.
6638         * Makefile.maint (update, cvs-update, po-update, do-po-update):
6639         New.
6640         * config/texinfo.tex: Update.
6642 2002-11-03  Akim Demaille  <akim@epita.fr>
6644         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
6645         from...
6646         (&autoreconf): here.
6647         ($help, $make, &parse_args, &autoreconf_current_directory):
6648         Support -m/--make.
6649         * doc/autoconf.texi (autoreconf Invocation): Adjust.
6651 2002-10-31  Bruno Haible  <bruno@clisp.org>
6653         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
6654         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
6655         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
6656         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
6657         to ac_cv_func_realloc_0_nonnull.
6658         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
6660 2002-10-31  Akim Demaille  <akim@epita.fr>
6662         The test suite was no longer checking for trailing envvars and files.
6664         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
6665         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
6667 2002-10-31  Akim Demaille  <akim@epita.fr>
6669         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
6670         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
6671         Make variable, not a shell variable.
6672         Suggested by Bruno Haible.
6674 2002-10-31  Akim Demaille  <akim@epita.fr>
6676         * bin/autom4te.in (load_configuration): Reject #args out of any
6677         language.
6679 2002-10-31  Akim Demaille  <akim@epita.fr>
6681         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
6682         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
6683         (_AC_RUN_IFELSE): Use it.
6684         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
6685         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6686         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
6687         inline it.
6689 2002-10-30  Akim Demaille  <akim@epita.fr>
6691         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
6692         * doc/autoconf.texi (autom4te Invocation): Adjust.
6693         Suggested by Tim van Holder.
6695 2002-10-29  Paul Eggert  <eggert@twinsun.com>
6697         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
6698         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
6699         Problem reported by Bruno Haible.
6701 2002-10-29  Akim Demaille  <akim@epita.fr>
6703         * doc/autoconf.texi (Header Templates): Put also in words what the
6704         pictures says to assist free style readers.
6705         (Customizing autom4te): s/--cache=/--cache /.
6707 2002-10-29  Akim Demaille  <akim@epita.fr>
6709         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
6710         sys/wait.h.
6711         sparc_address_test returns void.
6712         Use it with an argument, as prototyped.
6713         From Bruno Haible.
6715 2002-10-29  Akim Demaille  <akim@epita.fr>
6717         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
6718         configure.in, not configure.ac.
6719         Reported by Bruno Haible.
6721 2002-10-29  Akim Demaille  <akim@epita.fr>
6723         * tests/torture.at (Deep Package): New test.
6724         (Configuring subdirectories): Don't use a testSubDir as Autotest
6725         now does it itself.
6727 2002-10-29  Akim Demaille  <akim@epita.fr>
6729         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
6730         * doc/autoconf.texi (Invoking autom4te): Rename as...
6731         (autom4te Invocation): this, for consistency with the other nodes.
6733 2002-10-29  Akim Demaille  <akim@epita.fr>
6735         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
6736         Reported by Ralf Corsepius.
6738 2002-10-29  Akim Demaille  <akim@epita.fr>
6740         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6741         characters is a back as an `obsolete' warning now.
6742         Reported by Ralf Corsepius.
6744 2002-10-28  Akim Demaille  <akim@epita.fr>
6746         * configure.ac: Bump to 2.54c.
6748 2002-10-28  Akim Demaille  <akim@epita.fr>
6750         Version 2.54b.
6752         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
6754 2002-10-28  Akim Demaille  <akim@epita.fr>
6756         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
6757         m4 executable names, and different GNU M4 version.
6758         Reported by Ezra Peisach and Paul Jarc.
6760 2002-10-27  Akim Demaille  <akim@epita.fr>
6762         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
6763         AC_RUN_IFELSE.
6765 2002-10-27  Akim Demaille  <akim@epita.fr>
6767         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
6768         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
6769         Die when a simple Fortran program cannot be compiled.
6770         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
6771         Issue a warning if no function is given.
6773 2002-10-27  Akim Demaille  <akim@epita.fr>
6775         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
6776         Move the documentation of AC_TRY_RUN to...
6777         (Obsolete Macros): here.
6778         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
6779         (autoconf Invocation): Remove the duplicates with `invoking
6780         autom4te'.
6781         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
6782         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
6784 2002-10-27  Akim Demaille  <akim@epita.fr>
6786         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
6787         and AC_LANG_FUNC_LINK_TRY.
6788         (Examining Libraries): Rename as...
6789         (Running the Linker): this.
6790         Document AC_LINK_IFELSE.
6791         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
6792         (Obsolete Macros): here.
6793         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
6794         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
6795         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
6796         * lib/autoconf/headers.m4 (AC_USG): Likewise.
6798 2002-10-27  Akim Demaille  <akim@epita.fr>
6800         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
6802         More `check config.log' messages.
6804         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
6805         * doc/autoconf.texi (Printing Messages): Document it.
6806         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
6807         appropriate.
6808         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
6809         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
6810         (_AC_COMPILER_OBJEXT): Likewise.
6811         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
6812         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
6813         Likewise.
6814         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
6815         Likewise.
6817         Deprecate macros with unusual interfaces.
6819         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
6820         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
6822         Document the new ones, and proper style.
6824         * doc/autoconf.texi (Generating Sources): New.
6825         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
6826         (Examining Declarations): Rename as...
6827         (Running the Preprocessor): this.
6828         Document AC_PREPROC_IFELSE.
6829         (Examining Syntax): Rename as...
6830         (Running the Compiler): this.
6831         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
6832         (Obsolete Macros): Move the definition of AC_TRY_CPP and
6833         AC_TRY_COMPILE here.
6835 2002-10-27  Akim Demaille  <akim@epita.fr>
6837         Move sections around.
6839         * doc/autoconf.texi (Customizing autom4te): Remove a lost
6840         sentence.
6841         Reported by Burno Haible.
6842         (Language Choice): Now the first section of...
6843         (Writing Tests): this section.
6844         Make the introduction less C-centric.
6845         (Guidelines, Test Functions): Move to...
6846         (Writing Test Programs): this new section.
6847         (Test Programs): Merge into...
6848         (Run Time): this.
6850 2002-10-27  Akim Demaille  <akim@epita.fr>
6852         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
6853         autom4te.in that resulted in the need for two `make' runs.
6855 2002-10-27  Akim Demaille  <akim@epita.fr>
6857         * configure.ac: Bump to 2.54b.
6859 2002-10-25  Akim Demaille  <akim@epita.fr>
6861         Version 2.54a.
6863         * Makefile.maint: Update from the Coreutils.
6864         (AMTAR): Remove, obsolete.
6865         (automake_repo): Update to redhat.com.
6866         (cvs_file): New.
6867         Adjust to the fact that ansi2knr is now hosted by Automake.
6868         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
6869         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
6870         Update from masters.
6871         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
6872         autoscan.pre is not to be installed, and autoscan.list is not to
6873         be shipped.
6874         (CLEANFILES): Add autoscan.list.
6875         (autoscan.list): Disable the cache.
6876         * bin/Makefile.am: Include freeze.mk.
6878 2002-10-25  Akim Demaille  <akim@epita.fr>
6880         * bin/autom4te.in (&load_configuration): Take the file as
6881         argument.
6882         (&parse_args): Handle -C, --cache.
6883         ($help): Adjust.
6884         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
6885         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
6886         * doc/autoconf.texi (Invoking autom4te): Document --cache.
6887         Now a subsection of...
6888         (Using autom4te): This new section.
6889         (Customizing autom4te): New.
6890         (autom4te.cache): Adjust.
6892 2002-10-25  Akim Demaille  <akim@epita.fr>
6894         * doc/autoconf.texi (Generic Headers): More information on how to
6895         use AC_CHECK_HEADERS.
6897 2002-10-25  Akim Demaille  <akim@epita.fr>
6899         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
6900         Space changes.
6902 2002-10-25  Akim Demaille  <akim@epita.fr>
6904         * bin/autoscan.in (output): Output AC_PREREQ.
6905         (%needed_macros): Add AC_PREREQ so that configure.ac without one
6906         be reported.
6908 2002-10-23  Akim Demaille  <akim@epita.fr>
6910         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
6911         document _Bool.
6913 2002-10-23  Akim Demaille  <akim@epita.fr>
6915         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
6916         Reported by Peter Eisentraut.
6918 2002-10-23  Akim Demaille  <akim@epita.fr>
6920         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
6921         type _Bool.
6922         Fix a typo.
6923         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
6924         Eggert's recommandations.
6926 2002-10-22  Akim Demaille  <akim@epita.fr>
6928         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
6929         Bison, by Paul Eggert.
6930         * doc/autoconf.texi (Particular Headers): Document it.
6932 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
6934         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
6935         `$ac_configure_args'.
6937 2002-10-22  Akim Demaille  <akim@epita.fr>
6939         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
6940         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
6941         From Art Haas.
6943 2002-10-22  Akim Demaille  <akim@epita.fr>
6945         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
6947         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
6948         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
6949         (_AC_CHECK_HEADER_NEW): Rename as...
6950         (AC_CHECK_HEADER): this.
6952 2002-10-22  Akim Demaille  <akim@epita.fr>
6954         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
6955         words about HP-UX cmp: it was actually a user-written cmp.
6957 2002-10-22  Akim Demaille  <akim@epita.fr>
6959         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
6960         are a few warnings.
6961         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6962         Quote for Perl '' strings, not "".
6963         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
6964         strings.
6966 2002-10-22  Akim Demaille  <akim@epita.fr>
6968         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6969         characters is a syntax warning now.
6970         (_AS_QUOTE): Accept $2 as list of characters to quote.
6971         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6972         Quote for Perl, not sh.
6973         * bin/autoheader.in: When $debug, report the file which is
6974         `do'ne.
6975         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
6976         `@', to tickle Perl's lists.
6977         Reported by Carlos Velasco.
6979 2002-10-18  Akim Demaille  <akim@epita.fr>
6981         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
6982         missing included files _are_ errors.
6983         Thanks to Alexandre Duret-Lutz.
6984         * tests/tools.at (autom4te cache): Adjust.
6985         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
6986         (AT_CHECK_M4SUGAR): Use it.
6987         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6988         Adjust.
6989         * tests/tools.at (autom4te): Now it does exit 1.
6991 2002-10-17  Akim Demaille  <akim@epita.fr>
6993         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
6994         Fixes the `AC_ARG_VAR' test failures.
6995         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
6996         * lib/freeze.mk (check-forbidden-patterns): New.
6997         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
6998         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
6999         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
7000         /dev/null.
7001         Reported months ago by H. Merijn Brand.
7003 2002-10-17  Akim Demaille  <akim@epita.fr>
7005         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
7007 2002-10-16  Paul Eggert  <eggert@twinsun.com>
7009         * Makefile.maint (wget_files): Remove ansi2knr.c.
7010         (ansi2knr.c-url_prefix): Remove.
7012 2002-10-16  Akim Demaille  <akim@epita.fr>
7014         Because of caching, some files that no longer exist and are no
7015         longer required can still cause errors.
7016         Reported by Alexandre Duret-Lutz.
7018         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
7019         to frozen files in @ARGV, as @ARGV must remain being a list of
7020         files.  Rather, at M4 call sites, use this...
7021         (&files_to_options): New function.
7022         (&freeze): Use &error.
7023         (&up_to_date): If a file that was included according to the cache
7024         is no longer there, then the output is out dated.
7025         (&main): Don't even check whether a file is up to date is anyway
7026         --force is given.
7027         * tests/tools.at (autom4te cache): New.
7029 2002-10-16  Akim Demaille  <akim@epita.fr>
7031         * bin/autoconf.as: Kill dead options.
7032         * bin/autoupdate.in (&parse_args): Kill old options.
7033         * bin/autoreconf.in (&parse_args): Remove dead options.
7034         Factor some code.
7035         (&autoreconf): Report the directories we enter *and leave*, so
7036         that error messages can be easily located, and use GNU Make
7037         format, so that Emacs' compile mode understands us.
7038         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
7039         if some file was changed instead of `print'.
7040         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
7041         (&parse_args): Remove the dead options.
7042         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
7043         autoheader's quiet mode.
7044         (AT_CHECK_AUTOUPDATE): Likewise.
7045         * tests/tools.at (autoupdate): Adjust.
7046         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7048 2002-10-11  Akim Demaille  <akim@epita.fr>
7050         No longer use CPP to check for the existing of headers: use CC to
7051         check for compilability.
7053         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
7054         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
7055         (_AC_CHECK_HEADER_NEW): Rename as...
7056         (AC_CHECK_HEADER): this.
7058         * lib/autotest/general.m4 (AT_INIT): Include the failed test
7059         numbers in the Subject suggestion.
7061 2002-10-11  Akim Demaille  <akim@epita.fr>
7063         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
7064         Suggest using AC_CHECK_DECLS instead.
7066 2002-10-11  Akim Demaille  <akim@epita.fr>
7068         * tests/torture.at (AC_ARG_VAR): Have configure report the value
7069         of `precious'.
7071 2002-10-11  Akim Demaille  <akim@epita.fr>
7073         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
7074         file name to enable parallel executions.
7075         From Sam Varshavchik.
7077 2002-10-08  Akim Demaille  <akim@epita.fr>
7079         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
7080         aclocal invocation, as Gettext macros might not be visible to
7081         aclocal.
7082         Instead of blindly running autopoint, scan configure.ac (not the
7083         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
7084         Reported by Paul D. Smith.
7086 2002-10-08  Paul Eggert  <eggert@twinsun.com>
7088         Work around problems found when POSIXLY_CORRECT=1 is set.
7089         None of this seems to have anything to do with POSIX, really,
7090         but it's how Perl getopt works.
7091         * bin/autom4te.in (parse_args): Configure GetOpt with
7092         "permute", too.
7093         * doc/autoconf.texi (Invoking autom4te):
7094         --warning -> --warnings.
7095         * lib/autom4te.in: --warning -> --warnings.
7097 2002-09-28  Akim Demaille  <akim@epita.fr>
7099         * doc/autoconf.texi (autom4te.cache): New section.
7101 2002-09-28  Akim Demaille  <akim@epita.fr>
7103         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
7104         (Automake-preselections): Update.
7105         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
7107 2002-09-28  Akim Demaille  <akim@epita.fr>
7109         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
7110         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
7111         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
7112         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
7114 2002-09-28  Akim Demaille  <akim@epita.fr>
7116         * tests/torture.at (Configuring subdirectories): Be robust to
7117         users who use config.site to require for a cache: in this case,
7118         the two last configure runs, using two different sets of
7119         arguments, trigger a legitimate error.
7121 2002-09-28  Akim Demaille  <akim@epita.fr>
7123         * tests/m4sh.at (Functions Support, Functions and return Support):
7124         New.
7126 2002-09-28  Akim Demaille  <akim@epita.fr>
7128         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
7129         autoheader are Perl programs.
7130         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
7131         (autom4te): Specify that the sources are in the $srcdir.
7132         * doc/autoconf.texi (Installation Directory Variables): Adjust.
7134 2002-09-28  Akim Demaille  <akim@epita.fr>
7136         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
7137         (tm_zone): Move their rules to...
7138         * lib/autoconf/types.m4: here, using AN_ macros.
7139         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
7140         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
7141         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
7142         * lib/autoconf/programs.m4: here.
7143         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
7144         (ETAGS_FOR_AUTOCONF): New.
7145         Use it.
7147 2002-09-28  Akim Demaille  <akim@epita.fr>
7149         * lib/autoconf/autoscan.m4: New file.
7150         * lib/autoconf/autoconf.m4: Include it.
7151         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
7152         that were listed in the original autoscan.list.
7153         * lib/autoconf/headers.m4: Similarly with headers.
7154         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
7155         (.m4.m4f): Don't pass --prepend-include, since that's done by
7156         tests/autom4te itself.
7157         * lib/autoscan/Makefile.am: Include freeze.mk.
7158         (autoscan.list): New target --this file is no longer a source.
7159         (autoscan.pre): New file.
7161 2002-09-28  Akim Demaille  <akim@epita.fr>
7163         * bin/autoscan.in (@kinds): Make them singular.
7164         Adjust all uses.
7165         (&init_tables): When --debug, report the list of rules to ease
7166         tracking changes in autoscan.list.
7167         * lib/autoscan/autoscan.list (function): Strip comments, sort.
7169 2002-09-28  Akim Demaille  <akim@epita.fr>
7171         * lib/autoscan/functions, lib/autoscan/headers,
7172         * lib/autoscan/identifiers, lib/autoscan/makevars,
7173         * lib/autoscan/programs: Merge into...
7174         * lib/autoscan/autoscan.list: this.
7175         * bin/autoscan.in (&init_tables): Adjust.
7177 2002-09-28  Akim Demaille  <akim@epita.fr>
7179         * lib/autoscan/functions, lib/autoscan/headers,
7180         * lib/autoscan/identifiers, lib/autoscan/makevars,
7181         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
7182         `functions' line is now prefixed with `function:'.
7183         * bin/autoscan.in (&init_tables): Adjust.
7185 2002-09-28  Akim Demaille  <akim@epita.fr>
7187         From now on, autoscan files must always map a macro name to a
7188         word: there is no `default' macro for autoscan.
7190         * bin/autoscan.in (&init_tables): Reject entries with no macro at
7191         all.
7192         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
7193         explicit.
7195 2002-09-28  Akim Demaille  <akim@epita.fr>
7197         * bin/autoscan.in (%c_keywords): Remove.
7198         (&used): Keep only track of the words we might be interested in.
7199         (&output_kind): It is no longer needed to look for non active
7200         checks.
7202 2002-09-27  Akim Demaille  <akim@epita.fr>
7204         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
7205         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
7206         * lib/autoscan/functions: Adjust.
7207         * doc/autoconf.texi (Particular Functions): Adjust.
7209 2002-09-27  Akim Demaille  <akim@epita.fr>
7211         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
7212         from /tmp.
7213         Thanks to Bill Moseley and Paul Eggert.
7214         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
7215         the tmpdir must be created.
7216         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
7217         dir be in the build tree, instead of $TMPDIR.
7219 2002-09-27  Akim Demaille  <akim@epita.fr>
7221         * bin/autoscan.in: Improve the comments.
7222         (&parse_args): Drop obsolete undocumented options.
7223         (&output_kind): Output warnings.
7224         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
7225         (getwd): Trigger a warning.
7227 2002-09-26  Akim Demaille  <akim@epita.fr>
7229         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
7230         Reported by Ralf Corsepius.
7231         * doc/autoconf.texi (autoreconf Invocation): Likewise.
7233 2002-09-26  Akim Demaille  <akim@epita.fr>
7235         Single suffix rules and seperated dependencies are not portable.
7237         * doc/autoconf.texi (Installation Directory Variables): Update.
7238         (Limitations of Make): Some about `Single Suffix Rules and
7239         Separated Dependencies'.
7240         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
7241         (ifnames, autoscan, autom4te): Un-factor into several rules.
7243 2002-09-25  Paul Eggert  <eggert@twinsun.com>
7245         * BUGS (Interoperability bugs): New section.  Mention libtool
7246         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
7248 2002-09-24  Paul Eggert  <eggert@twinsun.com>
7250         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
7251         make handles suffix-rules differently from GNU make.
7253         * bin/Makefile.am (SUFFIXES, .in): Remove.
7254         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
7255         Move the body of the old .in rule here.
7257 2002-09-16  Akim Demaille  <akim@epita.fr>
7259         i960 compilers create `b.out' files by default.
7260         Reported by Ralf Corsepius.
7262         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
7263         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
7265 2002-09-13  Paul Eggert  <eggert@twinsun.com>
7267         * doc/autoconf.texi (Particular Headers): Remove obsolete
7268         reference to `struct timezone' in the description of
7269         AC_HEADER_TIME.
7271 2002-09-13  Akim Demaille  <akim@epita.fr>
7273         Version 2.54.
7275         * config/config.sub, config/config.guess: Update.
7276         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
7277         * Makefile.am: Adjust.
7279 2002-09-13  Akim Demaille  <akim@epita.fr>
7281         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
7282         reading config.log when the compiler is rejected.
7283         Suggested by Guido Draheim.
7285 2002-09-13  Akim Demaille  <akim@epita.fr>
7287         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
7288         (chdir_init) might hang when stat'ing mounted directories.
7289         Reported by Vance Shipley.
7291 2002-09-12  Akim Demaille  <akim@epita.fr>
7293         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
7294         the lists.
7296 2002-09-12  Akim Demaille  <akim@epita.fr>
7298         * doc/autoconf.texi (Defining Symbols): Present two different
7299         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
7300         difference between 1 argument calls, and 2-3 argument calls.
7302 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
7304         * doc/autoconf.texi: Review grammar and punctuation.
7306 2002-09-11  Paul Eggert  <eggert@twinsun.com>
7308         * doc/autoconf.texi: Fix minor formatting, spelling, and
7309         grammatical typos.
7310         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
7311         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
7312         is obsolescent.
7314 2002-09-11  Akim Demaille  <akim@epita.fr>
7316         * doc/autoconf.texi (Questions): Rename as...
7317         (FAQ): this.
7318         (Defining Directories): New.
7320 2002-09-09  Akim Demaille  <akim@epita.fr>
7322         * doc/autoconf.texi (Making testsuite Scripts): Update.
7323         Suggested by Nishio Futoshi.
7325 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
7327         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
7328         plain `@' is wanted.
7330 2002-09-09  Akim Demaille  <akim@epita.fr>
7332         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
7333         `duplicates', since the algorithm was too naive and could keep
7334         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
7335         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
7336         Reported by Ralf Corsepius.
7337         * tests/torture.at (Configuring subdirectories): Exercise these
7338         cases.
7340 2002-09-09  Akim Demaille  <akim@epita.fr>
7342         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
7343         looking for a replacement file.
7344         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
7345         directory is relative.
7346         * doc/autoconf.texi (Generic Functions): Clarify the replacement
7347         directory definition.
7348         Reported by Andreas Schwab and Jim Meyering.
7350 2002-09-06  Akim Demaille  <akim@epita.fr>
7352         * doc/autoconf.texi (Setting Output Variables): Clarify what
7353         precious variables are.
7354         Suggested by Pontus Skoeld.
7356 2002-09-05  Akim Demaille  <akim@epita.fr>
7358         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
7359         (ifnames, autoscan, autom4te): Since we don't only depend on
7360         configure.ac variables (such as VERSION etc.), but also on prefix
7361         and so forth, depend on Makefile, not configure.ac.
7362         Reported by Alexandre Duret-Lutz.
7363         * doc/autoconf.texi (Installation Directory Variables): Adjust.
7365 2002-09-05  Kevin Ryde  <user42@zip.com.au>
7367         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
7368         doesn't seem to be confined to ia64, just say "some versions".
7370 2002-09-04  Akim Demaille  <akim@epita.fr>
7372         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
7373         Automake 1.6c.
7374         * Makefile.am (maintainer-clean-local): Remove.
7375         (MAINTAINERCLEANFILES): Remove COPYING.
7377 2002-09-03  Paul Eggert  <eggert@twinsun.com>
7379         * doc/autoconf.texi (Configuration Commands): Remove obsolete
7380         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
7381         Brinkmann.
7383 2002-09-03  Akim Demaille  <akim@epita.fr>
7385         * configure.ac: Bump to 2.53d.
7386         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
7387         as of today, on Automake's team suggestion.
7389 2002-09-03  Akim Demaille  <akim@epita.fr>
7391         Version 2.53c.
7393 2002-09-02  Akim Demaille  <akim@epita.fr>
7395         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
7396         SITE_MACRO_DIR.
7397         * configure.ac: Disable SITE_MACRO_DIR.
7399 2002-09-02  Jim Meyering  <meyering@lucent.com>
7401         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
7402         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
7403         Also, tweak grammar: s/make sure to/be sure to/.
7405 2002-09-02  Paul Eggert  <eggert@twinsun.com>
7407         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
7408         directory names are generally preferable to physical names.
7410 2002-09-02  Akim Demaille  <akim@epita.fr>
7412         * lib/Autom4te/General.pm (&update_file): s/die/error/.
7413         Reported by Raja R. Harinath.
7414         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
7415         * bin/autoupdate.in: Use error instead of die.
7417 2002-09-01  Paul Eggert  <eggert@twinsun.com>
7419         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
7420         ordinary shell concatenation rather than echo+tr+sed command that
7421         runs afoul of a long-line-related sed bug in Solaris 8.
7423         * bin/autoheader.in (parse_args): --warning -> --warnings.
7425         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
7426         stdout, as traditional "ls" does.
7427         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
7428         _AC_COMPILER_EXEEXT_O): Likewise.
7429         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
7431         * bin/autoconf.as: Add --prepend-include option.  This patch was
7432         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
7433         but bin/autoconf.in is generated automatically from bin/autoconf.as.
7435         * bin/autoconf.in, configure: Regenerate.
7437         * doc/autoconf.texi (Special Shell Variables): Mention
7438         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
7440         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
7441         MAILPATH and set PS1, PS2, PS4 to default values, to work
7442         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
7443         For LC_ALL etc, first try to set to "C" as POSIX requires and as
7444         the Autoconf documentation specifies; fall back to "unset" only if
7445         this fails.  Use a shell for-loop for this rather than an m4 loop,
7446         to shorten the output script.
7448 2002-08-30  Paul Eggert  <eggert@twinsun.com>
7450         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
7451         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
7452         for the CDPATH problem.  Document PWD.
7453         (Limitations of Builtins): Document the problem that "cd $foo" and
7454         "ls $foo" may refer to different directories in shells conforming
7455         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
7456         example, since the old example is now out of date.
7458         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
7459         FOO" and "ls FOO" talk about different directories; this catches
7460         problems when POSIX 1003.1-2001 "cd" fails due to symlink
7461         spaghetti.
7463         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
7464         of rolling our own unset.
7465         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
7466         in practice we needn't worry about CDPATH if unset doesn't work.
7468         * Makefile.in, aclocal.m4, bin/Makefile.in,
7469         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
7470         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
7471         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
7472         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
7473         tests/Makefile.in: Regenerate with Automake 1.6.3.
7475         * config/config.guess, config/config.sub, config/mkinstalldirs:
7476         Update.
7478         * configure: Regenerate with self.
7480 2002-08-30  Kevin Ryde  <user42@zip.com.au>
7482         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
7483         default output.
7485 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7487         * bin/autom4te.in (Request::load): Correctly test for "do" read
7488         failure.
7490 2002-08-29  Akim Demaille  <akim@epita.fr>
7492         * lib/Autom4te/General.pm (&xqx): New.
7493         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
7494         hand, which is not portable.
7495         (&error): New.
7496         * bin/autom4te.in: Use them.
7497         Use &error instead of die.
7498         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
7499         Adjust.
7501 2002-08-17  Paul Eggert  <eggert@twinsun.com>
7503         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
7504         default list of compilers to try, since it was long ago superseded
7505         by the ksh fc builtin.  Suggested by Steven G. Johnson.
7507 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
7509         * doc/autoconf.texi (Invoking autom4te): End the option table,
7510         fixing a bug introduced by the previous patch.
7511         (Limitations of Make): Add a 'target lookup' subentry in the
7512         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
7514 2002-07-29  Mark D. Roth  <roth@feep.net>
7516         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
7517         options and use $AUTOM4TE_PATH.
7518         * doc/autoconf.texi: Remove documentation of autom4te
7519         --include-envvar and --site-macro-subdir options and document
7520         use of $AUTOM4TE_PATH.
7521         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
7522         arguments from each language section.
7524 2002-07-29  Paul Eggert  <eggert@twinsun.com>
7526         * doc/install.texi: Include copyright symbol in copyright notice.
7528         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
7529         Replace with:
7530         (AM_MAKEINFOFLAGS): New macro.
7531         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
7532         * Makefile.am (INSTALL): Use the new macros.
7533         Use -o rather than --output, since "missing" does not grok --output.
7535 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
7537         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
7538         comments do not always work. Never trust the exit status of
7539         `make -k'.
7541 2002-07-24  Kevin Ryde  <user42@zip.com.au>
7543         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
7544         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
7546 2002-07-23  Paul Eggert  <eggert@twinsun.com>
7548         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
7549         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
7550         apparently treats PATH="nonexistent" as if it contained ".".
7551         Bug reported by Stefan `Sec' Zehl.
7553 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
7555         * doc/autoconf.texi (Limitations of Make): Mention the special
7556         handling of the obj/ directory by BSD make.
7558 2002-07-20  Kevin Ryde  <user42@zip.com.au>
7560         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
7561         backslashes.
7563 2002-07-19  Akim Demaille  <akim@epita.fr>
7565         * doc/autoconf.texi (Function Portability): `exit'.
7566         (Programming in M4sh): Ethymology of M4sh.
7568 2002-07-19  Akim Demaille  <akim@epita.fr>
7570         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
7572 2002-07-18  Akim Demaille  <akim@epita.fr>
7574         Version 2.53b.
7576 2002-07-18  Akim Demaille  <akim@epita.fr>
7578         * config/config.guess, config/config.sub: Update.
7580 2002-07-18  Akim Demaille  <akim@epita.fr>
7582         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
7583         Automake's parts.
7585         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
7586         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
7587         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
7589 2002-07-18  Akim Demaille  <akim@epita.fr>,
7590             Alexandre Duret-Lutz  <duret_g@epita.fr>
7592         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
7593         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
7595 2002-07-17  Russ Allbery  <rra@stanford.edu>
7597         * doc/autoconf.texi (Initializing configure): Clarify the
7598         description of the tarname default.
7600 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
7602         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
7603         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
7604         latter was not run.
7606 2002-07-17  Akim Demaille  <akim@epita.fr>
7608         * lib/Autom4te/General.pm (find_file): Browse the directories in
7609         the order they are given.
7611 2002-07-17  Akim Demaille  <akim@epita.fr>
7613         * tests/wrapsh.as, tests/wrappl.as: Merge into...
7614         * tests/wrapper.as: this.
7615         * tests/Makefile.am, configure.ac: Adjust.
7617 2002-07-17  Mark D. Roth  <roth@feep.net>
7619         * configure.ac: Add --enable-site-macro-dir option.
7620         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
7621         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
7622         --site-macro-subdir options.
7623         * bin/autoconf.in: Add --prepend-include option.
7624         * bin/autoheader.in: Add --prepend-include option.
7625         * bin/autoreconf.in: Add --prepend-include option.
7626         * bin/autoscan.in: Add --prepend-include option.
7627         * bin/autoupdate.in: Add --prepend-include option.
7628         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
7629         macro directory, remove note that include path directories are
7630         used in reverse order, and document --prepend-include option.
7631         * lib/autom4te.in: Use --prepend-include instead of --include.
7632         * tests/wrapsh.in: Use --prepend-include instead of --include.
7634 2002-07-17  Akim Demaille  <akim@epita.fr>
7636         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
7637         tarnames.
7638         * doc/autoconf.texi (Initializing configure): Adjust.
7640 2002-07-17  Akim Demaille  <akim@epita.fr>
7642         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
7643         (_AC_FUNC_MALLOC): New.
7644         (AC_FUNC_MALLOC): Use the latter.
7645         Define HAVE_MALLOC to 0 if broken.
7646         * doc/autoconf.texi (Particular Functions): Adjust.
7648 2002-07-16  Akim Demaille  <akim@epita.fr>
7650         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
7651         * doc/autoconf.texi (C Compiler): Adjust.
7653 2002-07-09  Akim Demaille  <akim@epita.fr>
7655         * doc/autoconf.texi: Properly set the ``header'' part.
7657 2002-07-09  Akim Demaille  <akim@epita.fr>
7659         * doc/autoconf.texi (Systemology): Some about Darwin.
7661 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
7663         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
7664         Don't use AC_REQUIRE in AU_DEFUN.
7666 2002-07-09  Art Haas  <ahaas@neosoft.com>
7668         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
7670 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
7672         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7673         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
7674         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
7675         so that Emacs setups GNU style for perl-mode and cperl-mode.
7677 2002-06-27  Paul Eggert  <eggert@twinsun.com>
7679         * config/install-sh: Quote $src.  Prefer || to test's -o option,
7680         as per "Limitations of Builtins".
7681         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
7682         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7684         * tests/mktests.sh: Use grep instead of fgrep, as per
7685         "Limitations of Builtins".
7687 2002-06-15  Paul Eggert  <eggert@twinsun.com>
7689         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
7690         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
7691         so that we consistently test the just-built programs.
7692         * tests/wrappl.as: Likewise.
7694 2002-06-12  Paul Eggert  <eggert@twinsun.com>
7696         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
7697         name, so that symlinks to 'autoconf' work properly.  Bug reported
7698         by Bruno Haible.
7699         * bin/autoheader.in (AUTOM4TE): Likewise.
7700         * bin/autoreconf.in (autoconf, autoheader): Likewise.
7701         * bin/autoscan.in (autom4te): Likewise.
7702         * bin/autoupdate.in (autom4te): Likewise.
7704         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
7705         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
7706         on Solaris 2.5.1.
7708 2002-06-11  Andreas Schwab  <schwab@suse.de>
7710         * doc/autoconf.texi: Add more dir entries.
7712 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
7714         * bin/autom4te.in ($cache): Don't define using `$me', the name
7715         of the cache should not depend on the name under which autom4te
7716         was installed.
7718 2002-06-07  Akim Demaille  <akim@epita.fr>
7720         * tests/tools.at (autoconf: forbidden tokens, basic)
7721         (autoconf: forbidden tokens, exceptions): Adjust to the change of
7722         words in autom4te.in.
7724 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
7726         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
7727         _AC_LANG_PROGRAM_C_F77_HOOKS.
7729 2002-06-07  Akim Demaille  <akim@epita.fr>
7731         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
7732         rename as...
7733         (AC_REPLACE_FNMATCH): this.
7734         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
7735         AC_FUNC_FNMATCH_GNU.
7737 2002-06-07  Akim Demaille  <akim@epita.fr>
7739         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
7740         Rosetta Stone for Unix.
7742 2002-06-07  Akim Demaille  <akim@epita.fr>
7744         * bin/autom4te.in (warn_forbidden): When rejecting a token,
7745         suggest m4_pattern_allow.
7746         Suggested by Adam J. Richter.
7748 2002-06-07  Akim Demaille  <akim@epita.fr>
7750         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
7751         ac_config_libobj_dir.
7752         (AC_CONFIG_LIBOBJ_DIR): New.
7753         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
7754         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
7755         Use ac_config_libobj_dir to find the replacement files.
7756         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
7757         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
7758         (AC_REPLACE_FNMATCH_GNU): these.
7759         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
7760         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
7761         * tests/mktests.sh (ac_exclude_list): Don't check
7762         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
7764 2002-06-06  Paul Eggert  <eggert@twinsun.com>
7766         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
7767         if ln doesn't work.
7768         * NEWS: Likewise.
7769         * doc/autoconf.texi (Configuration Links): Likewise.
7770         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
7772 2002-06-05  Paul Eggert  <eggert@twinsun.com>
7774         * config/config.guess, config/config.sub, config/texinfo.tex:
7775         Update from masters.
7777 2002-05-29  Paul Eggert  <eggert@twinsun.com>
7779         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
7780         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
7781         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
7782         Likewise.
7783         * lib/autoconf/Makefile.am (check-local): Likewise.
7784         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
7785         * lib/autoconf/types.m4 (commentary only): Likewise.
7786         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
7787         * lib/autotest/Makefile.am (check-local): Likewise.
7788         * lib/m4sugar/Makefile.am (check-local): Likewise.
7789         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
7790         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
7792         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
7793         * doc/autoconf.texi (Particular Programs): Document them.
7794         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
7795         * NEWS: Likewise.
7797 2002-05-27  Paul Eggert  <eggert@twinsun.com>
7799         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
7800         * NEWS, doc/autoconf.texi (Particular Types): Document it.
7801         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
7802         instead of AC_MBSTATE_T, which never existed.
7804 2002-05-23  Akim Demaille  <akim@epita.fr>
7806         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
7807         version of Autoconf that is discussed.
7809 2002-05-22  Paul Eggert  <eggert@twinsun.com>
7811         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
7812         from the default list of compilers to try.  Suggested by
7813         Kate Hedstrom.
7814         * NEWS: Document the above.
7815         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
7817 2002-05-17  Paul Eggert  <eggert@twinsun.com>
7819         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
7820         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
7821         This improves on an earlier suggestion by H. Peter Anvin.
7823 2002-05-16  Paul Eggert  <eggert@twinsun.com>
7825         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
7826         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
7827         Both macros now accept an optional source-dir arg.
7828         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
7830         * NEWS: Document this.
7831         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
7833         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
7834         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
7835         not for GNU extensions; this undoes part of the 2000-11-03 change,
7836         reverting to 2.13-compatible behavior.
7837         Add new optional argument DIR.
7838         (AC_FUNC_FNMATCH_GNU): New macro.
7840         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
7842 2002-05-08  Paul Eggert  <eggert@twinsun.com>
7844         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
7845         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
7846         and it causes a 'test' syntax error if it fails.
7847         Bug reported by Stephen Gildea.
7849         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
7850         If prototypes are supported, use them to check this at compile-time,
7851         instead of trying to check it at run-time.  If we must do a run-time
7852         check, assume that setvbuf is standard when cross-compiling, as
7853         nonstandard setvbuf occurs only on ancient and unlikely hosts.
7854         Bug reported by Paul D. Smith.
7856         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
7857         argument specifying location of getloadavg.c.  This removes a
7858         FIXME.  This idea was taken from Jim Meyering's implementation in
7859         textutils.
7860         * doc/autoconf.texi (Particular Functions): Document this.
7861         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
7862         that's what the code does; this fixes a bug reported by
7863         Paul D. Smith.
7865 2002-05-03  Akim Demaille  <akim@epita.fr>
7867         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
7868         autopoint instead of gettextize.
7869         ($uses_alocal): Rename as...
7870         ($uses_aclocal): this.
7871         * doc/autoconf.texi (autoreconf Invocation): Adjust.
7872         Suggested by Bruno Haible.
7874 2002-05-03  Akim Demaille  <akim@epita.fr>
7876         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
7878 2002-04-29  Paul Eggert  <eggert@twinsun.com>
7880         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
7881         files to be 1 second older; just set them to be the same time.
7882         Also, sleep 1 second after the first aclocal, to work around
7883         problems with sub-second time stamps on the input files.
7885 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
7887         * doc/autoconf.texi: Mention "set -e -x" lossage
7888         under node "Limitations of Builtins".
7890 2002-04-29  Akim Demaille  <akim@epita.fr>
7892         * doc/install.texi: Better wording for setting variables when
7893         running configure.
7894         From Christian Cornelssen.
7896 2002-04-29  Akim Demaille  <akim@epita.fr>
7898         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
7899         of lack of $LINENO support, then the test will compare the $LINENO
7900         in testsuite vs. the lineno in the test file.  This is wrong, of
7901         course.
7902         Be sure to protect it.
7903         Reported by Patrick Welche.
7905 2002-04-25  Akim Demaille  <akim@epita.fr>
7907         * doc/autoconf.texi (Obsolete Macros): Typo.
7908         Reported by Vladimir Volovich.
7910 2002-04-25  Akim Demaille  <akim@epita.fr>
7912         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
7913         than some of the input files, hence, on the second run of aclocal,
7914         if some of its input are younger, make them older.
7915         Suggested by Paul Eggert.
7917 2002-04-25  Akim Demaille  <akim@epita.fr>
7919         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
7920         Thanks to Paul Eggert.
7922 2002-04-25  Akim Demaille  <akim@epita.fr>
7924         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
7925         and ac_subst_vars be sh variables containing the list of
7926         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
7927         DEFAULT diversion.
7928         (_AC_INIT_PREPARE): Use them to log them.
7929         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
7930         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
7931         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
7932         _AC_SUBST_FILES and _AC_SUBST_VARS.
7933         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
7935 2002-04-24  Akim Demaille  <akim@epita.fr>
7937         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
7938         autoheader, so that automake does not complain about a missing
7939         config.h.in that was to be created.
7941 2002-04-23  Akim Demaille  <akim@epita.fr>
7943         * bin/autoheader.in (parse_args): --warning takes an argument.
7944         Fixes PR/220.
7946 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
7948         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
7949         and bb.out when cleaning up.
7951 2002-04-22  Akim Demaille  <akim@epita.fr>
7953         Version 2.53a.
7955 2002-04-22  Akim Demaille  <akim@epita.fr>
7957         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
7959 2002-04-22  Akim Demaille  <akim@epita.fr>
7961         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
7962         comma.
7963         Reported by Gregory Giannoni.
7965 2002-04-22  Akim Demaille  <akim@epita.fr>
7967         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
7968         Fixes false failures on Darwin.
7970 2002-04-21  Paul Eggert  <eggert@twinsun.com>
7972         * TODO, bin/autoupdate.in, doc/autoconf.texi,
7973         lib/autoconf/general.m4, lib/autoconf/libs.m4,
7974         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
7975         tests/tools.at: Minor spelling and grammar fixes.
7977 2002-04-20  Paul Eggert  <eggert@twinsun.com>
7979         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
7980         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
7981         * lib/autotest/general.m4 (AT_INIT): Likewise.
7982         * tests/atgeneral.m4 (AT_INIT): Likewise.
7984 2002-04-19  Paul Eggert  <eggert@twinsun.com>
7986         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
7987         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
7988         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
7989         lib/autoconf/functions.m4, lib/autoconf/general.m4,
7990         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
7991         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
7992         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
7993         Minor spelling and grammar fixes.
7995         * doc/autoconf.texi: Follow the outline suggested in the GNU
7996         Sample Texts sections of the Texinfo 4.2 manual.  Most
7997         importantly, this makes sure that the copyright notices appear in
7998         all output formats.  You probably need Texinfo 4.2 to generate
7999         the manual now.
8001         Fix some bugs when using "$@" when there might be zero positional
8002         arguments in cases where this matters.
8004         * bin/autoconf.as: Rewrite so that the problem does not come up.
8005         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
8006         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
8007         * lib/autotest/general.m4 (AT_INIT): Likewise.
8009         * bin/autoheader.in: Use 'case' statement to work around problem.
8010         * bin/auto4mte.in: Likewise.
8011         * bin/autoreconf.in: Likewise.
8012         * bin/autoscan.in: Likewise.
8013         * bin/autoupdate.in: Likewise.
8014         * bin/ifnames.in: Likewise.
8016         * doc/autoconf.texi (Shell Substitutions): Document the problem.
8018         * lib/autotest/general.m4 (AT_INIT):
8019         Use Zsh alias to work around problem.
8020         * tests/atgeneral.m4 (AT_INIT): Likewise.
8022         * tests/c.at: We can't have zero arguments, so remove workaround
8023         that is not portable to Zsh.
8025 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
8027         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
8028         from aclocal.m4 too.
8030 2002-04-12  Akim Demaille  <akim@epita.fr>
8032         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
8034 2002-04-10  Akim Demaille  <akim@epita.fr>
8036         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
8037         workaround for ${1+"$@"}.
8038         * doc/autoconf.texi (Shell Substitutions): Explain it.
8039         From Oliver Kiddle and Peter Stephenson.
8041         Have M4sh perform minimal shell sanitizing.
8043         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
8044         part into...
8045         (_AS_PREPARE): this new macro.
8046         (AS_PREPARE): New.
8047         (AS_INIT): Invoke AS_SHELL_SANITIZE.
8048         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
8050         Adjust Autoconf and Autotest.
8052         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
8053         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
8054         * lib/autotest/general.m4 (AT_INIT): Likewise.
8055         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8056         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
8057         AS_SHELL_SANITIZE.
8059         Use this M4sh to generate Autoconf's shell scripts.
8061         * tests/wrapsh.as: New, precursor of wrapsh.in.
8062         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
8063         on Autotest and M4sh.
8064         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
8065         (wrapsh.in): New target.
8066         * bin/autoconf.as: New, precursor of autoconf.in.
8067         (autoconf.in): New target.
8069 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
8071         * doc/autoconf.texi (Limitations of Make): Mention the issue
8072         with indented comments in rules.
8074 2002-04-09  Andreas Schwab  <schwab@suse.de>
8076         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
8077         ac_top_builddir when setting ac_abs_top_builddir.
8079 2002-04-06  Kevin Ryde  <user42@zip.com.au>
8081         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
8082         (Portable Shell): Cross reference to Systemology.
8084 2002-04-05  Akim Demaille  <akim@epita.fr>
8086         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
8087         directories when descending in a SUBDIRS.
8088         Reported by Ezra Peisach.
8090 2002-04-04  Andreas Schwab  <schwab@suse.de>
8092         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
8093         contains no literal separators.
8095 2002-04-03  Akim Demaille  <akim@epita.fr>
8097         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
8098         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
8099         Use dnl, not the KILL diversion.
8100         Extracted from...
8101         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
8102         (AC_CONFIG_LINKS): here.
8103         Adjust.
8104         Don't use the KILL diversion, as it kills spurious output, which
8105         results in failures being hidden.
8106         Use m4_defn where appropriate.
8107         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
8108         after the second argument.
8109         Use m4_defn.
8110         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
8111         syntax, as it is provided by M4sugar.
8112         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
8114 2002-04-03  Andreas Schwab  <schwab@suse.de>
8116         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
8117         expanded if $# <= 2.
8119         * bin/autoreconf.in (autoreconf): Run automake after rerunning
8120         aclocal.
8122 2002-04-03  Akim Demaille  <akim@epita.fr>
8124         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
8125         (_AC_COMPILER_EXEEXT_REJECT): New.
8126         Also recognize *.bb and *.bbg as compilation byproducts.
8127         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
8128         (_AC_COMPILER_OBJEXT): Use them.
8129         Fixes Debian #138666.
8131 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
8133         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
8135         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
8136         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
8137         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
8138         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
8139         (AC_C_CONST): Same.
8140         (AC_C_INLINE): Same.
8141         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
8142         * doc/autoconf.texi, NEWS: Document.
8143         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
8144         AC_C_CROSS.
8146 2002-04-02  Akim Demaille  <akim@epita.fr>
8148         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
8149         _AS_MKDIR_P_PREPARE.
8151 2002-03-28  Kevin Ryde  <user42@zip.com.au>
8153         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
8154         to avoid versions of HP C which don't allow that.
8156 2002-03-27  Paul Eggert  <eggert@twinsun.com>
8158         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
8159         (AS_SHELL_SANITIZE): Invoke it.
8160         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
8162 2002-03-26  Akim Demaille  <akim@epita.fr>
8164         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
8166 2002-03-26  Akim Demaille  <akim@epita.fr>
8168         * doc/autoconf.texi (Introduction): The GNATS base moved.
8170 2002-03-25  Paul Eggert  <eggert@twinsun.com>
8172         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
8173         as POSIX requires, as it doesn't work with Zsh.
8174         * doc/autoconf.texi (Assignments): Document the problem.
8176 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
8178         * doc/autoconf.texi (Limitations of Make): Mention more issue
8179         about VPATH, overriding of macros in sub-makes, and handling of
8180         SHELL.
8182 2002-03-21  Paul Eggert  <eggert@twinsun.com>
8184         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
8185         problem with here-document buffer boundaries.
8187         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
8188         when reinvoking the shell, to work around problems with installers
8189         who put strange things like "cd" commands in their environments.
8191 2002-03-19  Akim Demaille  <akim@epita.fr>
8193         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
8194         From Aaron Ucko.
8196 2002-03-19  Akim Demaille  <akim@epita.fr>
8198         * bin/autoscan.in (scan_file): Specify the location in `&used'
8199         invocations.
8200         From Nicolas Joly.
8202 2002-03-19  Akim Demaille  <akim@epita.fr>
8204         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
8205         From Nishio Futoshi.
8207 2002-03-19  Akim Demaille  <akim@epita.fr>
8209         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
8211 2002-03-18  Paul Eggert  <eggert@twinsun.com>
8213         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
8214         (Limitations of Usual Tools): Add mkdir section.
8216         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
8217         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
8218         back on AS_DIRNAME to compute prefixes otherwise; this is
8219         roughly what mkinstalldirs does.  That way, we need not have
8220         our own filename disassembler.  The old disassembler did not
8221         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
8223         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
8224         Create at_test_all by a series of assignments,
8225         not by a single assignment of a long string.  The latter causes ksh
8226         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
8227         presumably because of a buffer overrun.
8229 2002-03-14  Paul Eggert  <eggert@twinsun.com>
8231         * lib/autotest/general.m4 (at_times_skip):
8232         Renamed from at_times.  Now a boolean.
8233         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
8234         says 'times: not found'.
8236 2002-03-14  Akim Demaille  <akim@epita.fr>
8238         * bin/autoreconf.in (&study_gettextize): New.
8239         (&autoreconf): Handle newest gettextize.
8240         Rerun aclocal if needed.
8241         Suggested by Andreas Schwab.
8243 2002-03-13  Akim Demaille  <akim@epita.fr>
8245         * doc/autoconf.texi (Special Shell Variables): More about IFS.
8247 2002-03-13  Akim Demaille  <akim@epita.fr>
8249         * doc/autoconf.texi (Header Portability): New.
8250         Add information about stdint.h and inttypes.h from Paul Eggert.
8252 2002-03-13  Akim Demaille  <akim@epita.fr>
8254         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
8255         -p'.
8256         From Bob Proulx.
8258 2002-03-12  Akim Demaille  <akim@epita.fr>
8260         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
8261         m4_require.
8263 2002-03-11  Andreas Schwab  <schwab@suse.de>
8265         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
8266         does not do it if --with-lispdir is given.
8268 2002-03-08  Akim Demaille  <akim@epita.fr>
8270         Version 2.53.
8272 2002-03-08  Akim Demaille  <akim@epita.fr>
8274         * doc/autoconf.texi (Subdirectories): Clarify that the
8275         subdirectory should exist.
8277 2002-03-08  Akim Demaille  <akim@epita.fr>
8279         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
8281 2002-03-08  Akim Demaille  <akim@epita.fr>
8283         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
8284         aliases the actual variables, and modifications of the former
8285         affect the latter.
8287 2002-03-08  Akim Demaille  <akim@epita.fr>
8289         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
8290         because of C-c: have m4 output in tmp files, then mv them.
8292 2002-03-08  Akim Demaille  <akim@epita.fr>
8294         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
8295         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
8296         * bin/ifnames.in: Copyright update.
8298 2002-03-08  Akim Demaille  <akim@epita.fr>
8300         * doc/autoconf.texi (Invoking autom4te): New.
8302 2002-03-05  Akim Demaille  <akim@epita.fr>
8304         * doc/autoconf.texi (Specifying Names): Clarification suggested by
8305         Kevin Ryde.
8307 2002-03-05  Akim Demaille  <akim@epita.fr>
8309         Version 2.52i.
8311 2002-03-04  Akim Demaille  <akim@epita.fr>
8313         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
8314         * lib/autoconf/general.m4 (AC_INIT): More informative error
8315         message for LIBOBJ.
8317 2002-03-04  Akim Demaille  <akim@epita.fr>
8319         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
8320         parallel builds.
8322 2002-03-04  Akim Demaille  <akim@epita.fr>
8324         * doc/autoconf.texi (Transforming Names): Equality between target
8325         and host is irrelevant.
8326         (Specifying Names, Canonicalizing): Remove all references to the
8327         backward compatibility hooks.  Rather, collect them all into...
8328         (Hosts and Cross-Compilation): this new section.
8329         * doc/install.texi (System Type): Ditto.
8330         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
8331         that `--host' implies cross-compilation.
8333 2002-03-04  Akim Demaille  <akim@epita.fr>
8335         * doc/autoconf.texi (Evaluation Macros): New.
8336         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
8337         useless.
8338         (_m4_foreach): Define the variant with immediate evaluation so
8339         that it contains exactly the items, not an expression which
8340         evaluation is the current item.
8341         (m4_re_string, m4_re_word): Don't over quote them.
8343 2002-03-04  Akim Demaille  <akim@epita.fr>
8345         Instead of having stacking `shift's evaluated at the end, let
8346         `foreach' loops immediately evaluate them.
8348         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
8349         $*.  This is the n-th time I change my mind, but hopefully this is
8350         the last...
8351         (m4_lquote): New.
8352         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
8353         efficient.
8354         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
8355         it was only a hack for m4_text_wrap.
8356         (m4_car2): Remove, replaced by...
8357         (m4_cdr): New.
8358         (_m4_foreach): Adjust.
8359         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
8360         m4_bpatsubst for clarification.
8362 2002-03-04  Akim Demaille  <akim@epita.fr>
8364         * doc/autoconf.texi (Changequote is Evil): New.
8366 2002-03-03  Kevin Ryde  <user42@zip.com.au>
8368         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
8369         on old systems like SunOS.
8371 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
8373         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8374         lib/autoconf/functions.m4, lib/autoconf/general.m4,
8375         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
8376         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
8377         of messages.
8379 2002-02-28  Akim Demaille  <akim@epita.fr>
8381         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
8382         message to be sent.
8384 2002-02-28  Kevin Ryde  <user42@zip.com.au>
8386         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
8388 2002-02-25  Akim Demaille  <akim@epita.fr>
8390         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
8391         From Akinori Musha.
8393 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
8395         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
8396         translate \r\n to \n.
8398 2002-02-07  Akim Demaille  <akim@epita.fr>
8400         Version 2.52h.
8402 2002-02-07  Akim Demaille  <akim@epita.fr>
8404         Fix Autoconf PR/209.
8405         Also reported by Frank Denis.
8407         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
8409 2002-02-07  Akim Demaille  <akim@epita.fr>
8411         Fix Autoconf PR/207:
8412         AC_PREFIX_PROGRAM fails with dashed program names
8414         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
8415         variable when looking for the prefix program.
8416         Now it also works for shell variables.
8418 2002-02-07  Akim Demaille  <akim@epita.fr>
8420         * doc/autoconf.texi (Limitations of Builtins): More about
8421         case/esac.
8423 2002-02-06  Akim Demaille  <akim@epita.fr>
8425         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
8426         case/esac, some shells don't support it.
8427         Reported by Zack Weinberg.
8428         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
8430 2002-02-06  Akim Demaille  <akim@epita.fr>
8432         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
8433         sure not to introduce newlines in at_groups.
8434         * lib/autotest/Makefile.am (autotest.m4f): Typo.
8436 2002-02-06  Akim Demaille  <akim@epita.fr>
8438         * tests/torture.at (Configuring subdirectories): Skip if aclocal
8439         is not available.
8441 2002-02-05  Paul Eggert  <eggert@twinsun.com>
8443         * doc/autoconf.texi (Specific Compiler Characteristics):
8444         Describe HP-UX cc bug workaround more accurately.
8445         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
8446         not unsigned long.
8447         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
8448         cross-compilers, too.  This undoes some of the most recent change
8449         to this file.
8451 2002-02-05  Akim Demaille  <akim@epita.fr>
8453         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
8454         to make sure they are up to date when `check' is run.
8456 2002-02-05  Akim Demaille  <akim@epita.fr>
8458         * doc/autoconf.texi (Making testsuite Scripts): Document
8459         package.m4.
8461 2002-02-05  Akim Demaille  <akim@epita.fr>
8463         * lib/freeze.mk: New.
8465 2002-02-05  Akim Demaille  <akim@epita.fr>
8467         Implement `autom4te --freeze'.
8469         * bin/autom4te.in (&freeze): New.
8470         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
8471         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
8473 2002-02-05  Akim Demaille  <akim@epita.fr>
8475         * bin/autom4te.in (&parse_args): Implement `frozen files are
8476         optional are the sum of the previous files on the command line'.
8477         Also, pass `--reload-state=' on them, so...
8478         (handle_m4): don't.
8479         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
8480         (M4sh): Rely on M4sugar.
8481         (Autotest, M4sh, M4sugar): Use frozen files.
8483 2002-01-31  Akim Demaille  <akim@epita.fr>
8485         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
8486         * doc/autoconf.texi (Initializing configure): Adjust.
8488 2002-01-30  Akim Demaille  <akim@epita.fr>
8490         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
8491         alphanumeric to `-' instead of `_'.
8493 2002-01-30  Akim Demaille  <akim@epita.fr>
8495         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
8496         for plain code, the other for cross-compilation code.  The latter
8497         is now run with GCC only.
8498         * doc/autoconf.texi (Compilers and Preprocessors): New.
8500 2002-01-30  Akim Demaille  <akim@epita.fr>
8502         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
8503         values.
8504         * doc/autoconf.texi (Initializing configure): Explain how to
8505         change AC_INIT default values.
8507 2002-01-29  Akim Demaille  <akim@epita.fr>
8509         * tests/torture.at (Configuring subdirectories): Use configure.in,
8510         so that aclocal 1.4 works.
8511         Reported by Alexandre Duret-Lutz and Larry Schmitt.
8513 2002-01-28  Akim Demaille  <akim@epita.fr>
8515         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
8516         needs an argument.
8518 2002-01-28  Akim Demaille  <akim@epita.fr>
8520         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
8521         AUTOTEST_PATH *after* it was set.
8522         Don't put `.' in the PATH: the user should be precise and `./' if
8523         needed.  In addition, given that the test suite does some `cd', if
8524         `.' is in the path, the `tested programs' sections will report
8525         programs found in the test suite's directory, while during the
8526         tests (performed in their own directory), these programs are no
8527         longer visible.  In other words, the results is confusing and
8528         useless.
8529         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
8531 2002-01-24  Akim Demaille  <akim@epita.fr>
8533         Version 2.52g.
8535 2002-01-24  Akim Demaille  <akim@epita.fr>
8537         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
8538         * doc/autoconf.texi: Finally add Akim as an author.
8540 2002-01-24  Akim Demaille  <akim@epita.fr>
8542         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
8543         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
8544         Bourne. Use /bin/sh.
8545         From Andreas Buening.
8547 2002-01-24  Akim Demaille  <akim@epita.fr>
8549         * config/config.guess, config/config.sub, config/texinfo.tex:
8550         Update from masters.
8552 2002-01-24  Akim Demaille  <akim@epita.fr>
8554         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
8555         * config/auxdir.m4, config/cond.m4, config/depend.m4,
8556         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
8557         * config/missing.m4, config/sanity.m4, config/select.m4,
8558         * config/strip.m4: Remove, to ease sync'ing with any version of
8559         Automake.
8561 2002-01-24  Akim Demaille  <akim@epita.fr>
8563         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
8564         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
8565         Reported by Geir Ove Myhr.
8567 2002-01-21  Akim Demaille  <akim@epita.fr>
8569         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
8571 2002-01-21  Akim Demaille  <akim@epita.fr>
8573         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
8574         message on invalid options.
8575         * bin/autom4te.in (parse_args): Don't use
8576         Autoconf::General::getopt with non valid options.
8578 2002-01-17  Jim Meyering  <meyering@lucent.com>
8580         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
8581         $ac_cv_exeext so we don't use an old, invalid, cached value.
8583 2002-01-11  Akim Demaille  <akim@epita.fr>
8585         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
8586         Meyering.
8587         * doc/autoconf.texi (Function Portability): Document the strnlen
8588         limitation.
8589         (Particular Functions): Document AC_FUNC_STRNLEN.
8590         * lib/autoscan/functions: Adjust.
8592 2002-01-06  Akim Demaille  <akim@epita.fr>
8594         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
8595         package.m4, since is really depends upon configure.ac, not
8596         configure.
8597         * doc/autoconf.texi (testsuite Scripts): Adjust.
8598         * tests/Makefile.am (package.m4): New.
8599         EXTRA_DIST it since its a source.
8601 2002-01-06  Akim Demaille  <akim@epita.fr>
8603         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
8604         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
8605         and PACKAGE_BUGREPORT from here...
8606         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
8607         arguments.
8608         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
8609         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
8610         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
8611         * tests/tools.at (autoheader): Adjust.
8612         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
8614 2002-01-06  Akim Demaille  <akim@epita.fr>
8616         * bin/autoscan.in (scan_file): Use `&used'.
8618 2002-01-03  Akim Demaille  <akim@epita.fr>
8620         * doc/autoconf.texi (Output): Improved wording regarding use of
8621         AC_OUTPUT.
8622         From Olly Betts.
8624 2001-12-18  Kevin Ryde  <user42@zip.com.au>
8626         * doc/autoconf.texi (Function Portability): Add notes on sscanf
8627         sometimes needing writable input.
8629 2001-12-17  Jim Meyering  <meyering@lucent.com>
8631         * doc/autoconf.texi (New Macros): Tweak wording.
8633 2001-12-14  Akim Demaille  <akim@epita.fr>
8635         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
8636         trailing files, don't apply `-rf' to files which might not be
8637         created by configure (core, core.*, and *.core), but just `rm -f'.
8638         Suggested by Jonathan Kamens.
8640 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
8642         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
8644 2001-12-14  Akim Demaille  <akim@epita.fr>
8646         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
8648 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
8650         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
8651         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
8652         abs_srcdir, top_srcpath to abs_top_srcdir.
8653         (_AC_OUTPUT_FILES): Adjust.
8654         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
8655         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
8656         * tests/wrappl.in, tests/wrapsh.in: Adjust.
8658 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
8660         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
8661         C/Fortran linking on HP/UX, by extracting the Fortran library
8662         search path from the LPATH line in the $F77 -v output.
8664 2001-12-12  Kevin Ryde  <user42@zip.com.au>
8666         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
8667         forbidden file descriptors table.
8669 2001-11-26  Akim Demaille  <akim@epita.fr>
8671         * bin/autoscan.in (%c_keywords): Build it at top level.
8672         Map to 1 in order to simplify its uses.
8674 2001-11-26  Akim Demaille  <akim@epita.fr>
8676         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
8677         Remove $filepath, useless.
8678         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
8679         variables, they are really part of the tokens.
8680         Split the input line on spaces and then look for tokens.
8681         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
8682         because of `lex$U.$(OBJEXT)'.
8683         (&scan_files): Use "@list" instead of join.
8684         * doc/Makefile.am (CLEANFILES): Add *.fns.
8686 2001-11-26  Akim Demaille  <akim@epita.fr>
8688         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
8689         Remove, replaced by...
8690         * tests/wrappl.in: Be common for all the Perl executables.
8691         In particular autoscan and autoheader want -I.
8692         * configure.ac: Adjust.
8693         * lib/autoscan/headers: errno.h is portable.
8695 2001-11-26  Akim Demaille  <akim@epita.fr>
8697         * bin/autoscan.in (used): New.
8698         Use it.
8700 2001-11-26  Akim Demaille  <akim@epita.fr>
8702         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
8703         directives.
8704         (&scan_sh_file): Remove a duplicate pattern.
8705         (&check_configure_ac): Use long options.
8706         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
8708 2001-11-26  Akim Demaille  <akim@epita.fr>
8710         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
8711         Before, having a line containing the opening of a multi line
8712         comment made the whole line be ignored.
8714 2001-11-26  Akim Demaille  <akim@epita.fr>
8716         * doc/autoconf.texi (Using an Autotest Test Suite): New.
8717         (testsuite Scripts): Be one of its subsection.
8718         (Autotest Logs): New.
8720 2001-11-26  Akim Demaille  <akim@epita.fr>
8722         Test groups are now run two directories deeper.
8724         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
8725         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
8726         at_top_builddir.
8727         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
8728         top_srcdir, builddir and top_builddir.
8729         Use `at_*dir' relatively to the directory containing the
8730         suite, use `*dir' when relatively to the current group dir.
8732 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
8734         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
8735         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
8736         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
8737         spelling errors.
8739 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
8741         * doc/autoconf.texi (Using System Type): Add an example of `case
8742         $host' usage so people quit using `case $target' everywhere.
8744 2001-11-22  Akim Demaille  <akim@epita.fr>
8746         * doc/autoconf.texi (Installation Directory Variables): Englishoes
8747         spotted by Jim Meyering.
8749 2001-11-16  Paul Eggert  <eggert@twinsun.com>
8751         This patch implements a `long double' suggestion by Oliver Kiddle.
8753         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
8754         static, to catch errors if the value isn't known at compile-time
8755         and the compiler supports dynamic arrays.  Change its name from
8756         `_array_' to `test_array' to avoid potential name clashes.
8757         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
8758         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
8759         better than double.  Catch a bug in GCC 2.95.2 x86.
8760         * doc/autoconf.texi (C Compiler): Document the above.
8761         * NEWS: Likewise.
8763 2001-11-13  Akim Demaille  <akim@epita.fr>
8765         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
8766         hand.
8767         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
8769 2001-11-13  Akim Demaille  <akim@epita.fr>
8771         * lib/autotest/general.m4 (AT_INIT): After having run the test
8772         group, go back to the initial directory, not to at_suite_dir.
8774 2001-11-13  Akim Demaille  <akim@epita.fr>
8776         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
8777         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
8778         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
8779         option.
8780         (AT_CHECK_CONFIGURE): Use absolute paths.
8781         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
8782         The problem is still the old one: there is no means in M4 (that I
8783         know about) to create a defining macro, because there is no means
8784         to create `$1' etc., therefore, the defining macro ``swallows''
8785         all the arguments meant to the defined macro.
8787 2001-11-13  Akim Demaille  <akim@epita.fr>
8789         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
8790         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
8791         configure.ac.
8792         * tests/aclocal.m4: Remove, as it is no longer used.
8794 2001-11-13  Akim Demaille  <akim@epita.fr>
8796         * lib/autotest/general.m4: Change `tests?' into `groups?' in
8797         variable names when referring to a single test group, or to
8798         `suite' when referring to the whole test suite.
8799         `at_last_test' is removed: m4 compute at_format itself.
8800         (at_stdout, at_stder1, at_stderr): New variables.
8801         (AT_CHECK): Use them.
8803 2001-11-13  Akim Demaille  <akim@epita.fr>
8805         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
8806         in PATH.
8807         Create `testsuite.dir/003/run' instead of `testsuite.003'.
8808         Do it as soon as a test fails, don't wait till the end of the test
8809         suite.
8810         Don't remove $as_me.[0-9]*, since these files no longer exist.
8812 2001-11-13  Akim Demaille  <akim@epita.fr>
8814         * tests/tools.at: Use absolute paths, since we are no longer run
8815         in place.
8817 2001-11-13  Akim Demaille  <akim@epita.fr>
8819         Now that tests are running in their own private dir, there is no
8820         need to list the files to remove at the end of tests groups.
8822         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
8823         (AT_data_files, at_data_files): Remove.
8824         (AT_CLEANUP, AT_DATA): Simplify.
8825         (AT_INIT): Adjust.
8826         Remove the group dir if !debug && !failed.
8827         * tests/atspecific.m4: Adjust.
8829 2001-11-13  Akim Demaille  <akim@epita.fr>
8831         Start a new layout for Autotest: `testsuite' creates
8832         `testsuite.dir' in which the at-check-line etc. files are to be
8833         found, and `testsuite.dir/003' where the test group 3 is run.
8835         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
8836         at_check_line_file, at_format, at_test_normalized, at_group_dir
8837         are new variables.
8838         Create the directories.
8839         Use absolute paths for at- files.
8840         (AT_CHECK): Adjust.
8842 2001-11-11  Michael Matz  <matz@kde.org>
8844         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
8845         (m4_car2): New.
8846         (m4_car): Properly quote arguments.
8848 2001-11-13  Akim Demaille  <akim@epita.fr>
8850         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
8851         with stricter rules on LIBOBJS.
8853 2001-11-12  Paul Eggert  <eggert@twinsun.com>
8855         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
8856         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
8857         __PROTOTYPES too.
8859 2001-11-12  Akim Demaille  <akim@epita.fr>
8861         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
8863 2001-11-12  Akim Demaille  <akim@epita.fr>
8865         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8866         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
8867         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
8868         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
8869         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
8870         specify to what the macro should be defined (typically to 1).
8872 2001-11-12  Akim Demaille  <akim@epita.fr>
8874         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
8875         From Jim Meyering.
8877 2001-11-12  Akim Demaille  <akim@epita.fr>
8879         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
8880         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
8881         definition used by Automake where LEX is +/- "${missing} lex" and
8882         `missing' itself contains variables.
8884 2001-11-12  Akim Demaille  <akim@epita.fr>
8886         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
8887         Now that M4sh pushes BODY, the comments were output at the end of
8888         the test suites.
8890 2001-11-08  Akim Demaille  <akim@epita.fr>
8892         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
8893         that we can trace macros from aclocal.m4.
8894         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
8895         obsoleted, and redirect to the former anyway.
8896         Reported by Ralf Corsepius.
8898 2001-11-08  Akim Demaille  <akim@epita.fr>
8900         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
8901         processed only if present.
8902         * tests/torture.at (Configuring subdirectories): Use autoreconf
8903         instead of successive calls to autoconf.
8904         Add a nonexistent subdirectory to exercise the patch above.
8905         Reported by Ralf Corsepius.
8907 2001-11-08  Kevin Ryde  <user42@zip.com.au>
8909         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
8910         doesn't accept .S files.
8912 2001-11-07  Akim Demaille  <akim@epita.fr>
8914         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
8915         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
8916         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
8917         * bin/autom4te.in (warn_forbidden): New.
8918         (handle_output): Use it.
8919         Read m4_pattern_forbid with messages.
8921 2001-11-05  Akim Demaille  <akim@epita.fr>
8923         * bin/autom4te.in (--normalize): Remove.
8924         * lib/autom4te.in: Adjust.
8926 2001-11-05  Akim Demaille  <akim@epita.fr>
8928         * tests/Makefile.am (testsuite): Rename this target as...
8929         ($(TESTSUITE)): this.
8930         From Nicolas Joly.
8932 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
8934         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
8935         the --prefix option, also remove it's argument.
8937 2001-11-05  Akim Demaille  <akim@epita.fr>
8939         * doc/autoconf.texi (testsuite Invocation): Update.
8940         (Writing testsuite.at): Update.
8942 2001-11-03  Akim Demaille  <akim@epita.fr>
8944         * doc/autoconf.texi: s/@code/@command/ where appropriate.
8946 2001-11-03  Akim Demaille  <akim@epita.fr>
8948         * lib/Autom4te/General.pm: (&catfile, &canonfile)
8949         (&file_name_is_absolute): New, wrappers around routines from
8950         File::Spec.
8951         Use and export them.
8952         (&find_configure_ac): Optionally take a directory where to look at.
8953         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
8954         the arguments.
8955         Default @ARGV to `.', not find_configure_ac.
8956         (&autoreconf): Argument is a directory.
8957         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
8958         * doc/autoconf.texi (autoreconf Invocation): Update.
8960 2001-11-03  Akim Demaille  <akim@epita.fr>
8962         * lib/Autom4te/General.pm (@export_vars, @export_subs)
8963         (@export_forward_subs): New.
8964         Add basename, dirname, and fileparse.
8965         (@EXPORT): Adjust.
8966         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
8967         Don't look for aclocal flags if we already know aclocal is not
8968         used.
8969         Move aclocal.m4t only if it exists.
8970         Reported by Ezra Peisach.
8972 2001-11-03  Akim Demaille  <akim@epita.fr>
8974         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
8975         passed on command line, defaulting to ./configure.ac if present.
8976         (&maybe_autoreconf, File::Find): Remove, unused.
8977         (&autoreconf): If autoconf is not used, don't try to trace.
8979 2001-11-02  Akim Demaille  <akim@epita.fr>
8981         * configure.ac: Bump to 2.52g.
8983 2001-11-02  Akim Demaille  <akim@epita.fr>
8985         Version 2.52f.
8987 2001-11-02  Akim Demaille  <akim@epita.fr>
8989         * config/config.guess, config/config.sub, doc/standards.texi:
8990         * config/lispdir.m4: Update from masters.
8991         * configure.ac: Bump to 2.52f.
8993 2001-11-02  Akim Demaille  <akim@epita.fr>
8995         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
8996         Don't run aclocal when aclocal.m4 is not from aclocal.
8997         From Ezra Peisach.
8998         Don't run libtoolize and gettextize if --install is not given.
9000 2001-11-01  Paul Eggert  <eggert@twinsun.com>
9002         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
9003         be invoked before _AS_LINENO_PREPARE.
9004         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
9005         than character ranges.
9007         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
9008         invoking AS_BASENAME.  Set the locale variables to 'C' if
9009         possible, as POSIX requires this to get the traditional
9010         behavior.
9011         * doc/autoconf.texi (Special Shell Variables): Describe the above.
9013 2001-10-31  Paul Eggert  <eggert@twinsun.com>
9015         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
9016         with {}, as that triggers a bug in Bash 2.05.
9018         (_AS_LINENO_PREPARE): Use Sed rather than
9019         Awk.  Fix the sed prepass to work even if there are multiple
9020         instances of $LINENO on the same line.  Do not substitute for
9021         other variables like $LINENOT.  Do not check file dates; such a
9022         check is unreliable on sufficiently fast machines, and removing
9023         the check makes the code simpler and more reliable.  Check for
9024         output and chmod failures.
9026         * doc/autoconf.texi (Special Shell Variables): Document
9027         the above.
9029 2001-10-31  Akim Demaille  <akim@epita.fr>
9031         * tests/Makefile.am (atconfig): Remove this target, Automake
9032         handles it now.
9034 2001-10-31  Akim Demaille  <akim@epita.fr>
9036         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
9037         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
9038         provided, while it is optional.
9039         * configure.ac: Adjust.
9041 2001-10-26  Paul Eggert  <eggert@twinsun.com>
9043         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
9044           lib/Autom4te/Struct.pm:
9045         Require Perl 5.005_03 instead of just 5.005, as some tests fail
9046         with 5.005_02.
9048         * doc/autoconf.texi (Special Shell Variables): Document some
9049         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
9051         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
9052         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
9053         eval $LINENO is not portable in practice.
9055 2001-10-24  Akim Demaille  <akim@epita.fr>
9057         * lib/Autom4te/General.pm (backname): New.
9059 2001-10-24  Akim Demaille  <akim@epita.fr>
9061         * m4/: Remove, merged into...
9062         * config/: here.
9064 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
9066         * doc/autoconf.texi (Shellology): Mention the problems with bash
9067         2.05's use of ANSI quoting in its `set' builtin.
9069 2001-10-22  Paul Eggert  <eggert@twinsun.com>
9071         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
9072         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
9073         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
9074         POSIX decided to standardize on the int flavor of strerror_r.
9075         Always do char* test, as there's no reason not to.
9076         Assign to a char* var, to catch strerror_r that returns int*.
9078         * doc/autoconf.texi (Particular Functions):
9079         Document the above changes.  Also, document the fact that
9080         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
9082         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
9084 2001-10-20  Akim Demaille  <akim@epita.fr>
9086         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
9087         the executable was missing from the log.
9089 2001-10-20  Akim Demaille  <akim@epita.fr>
9091         * lib/Autom4te/General.pm (&update_file): If destination is
9092         unchanged, remove the source.
9093         (&up_to_date_p): Don't be verbose, be debug.
9094         * bin/autoreconf.in: No longer support --m4dir.
9095         (&autoreconf): Display the full path of the configure.ac we are
9096         studying.
9097         Trace it only once.
9098         Be sure to honor --force with gettextize.
9099         Always run aclocal.
9100         * doc/autoconf.texi: Adjust.
9102 2001-10-20  Akim Demaille  <akim@epita.fr>
9104         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
9105         Remove, dead.
9106         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
9107         `intl' is already present, as it refuses unless --force.
9108         (&parse_args): Use -I, --include instead of the old Autoconf
9109         options.
9110         ($localdir, $autoconf_dir): Remove.
9111         (@include): New.
9112         (&maybe_autoreconf): New, to preserve $_ for File::Find.
9114 2001-10-19  Jens Petersen  <petersen@redhat.com>
9116         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
9117         * doc/autoconf.texi (Particular Programs): Likewise.
9119 2001-10-19  Akim Demaille  <akim@epita.fr>
9121         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
9122         file in @configure_input@.
9123         Don't mention `automatically' in addition to `generated'.
9124         * tests/torture.at (#define header templates): Adjust.
9126 2001-10-19  Akim Demaille  <akim@epita.fr>
9128         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
9129         comment, explain how to install automatic mode selection.
9130         From Russ Allbery.
9132 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
9134         * bin/autoreconf.in (autoreconf): Display the path to the
9135         configure.ac being studied.
9137 2001-10-18  Paul Eggert  <eggert@twinsun.com>
9139         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
9140         long, to work around a bug in the HP C compiler version HP92453-01
9141         B.11.11.23709.GP.
9143         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
9144         (AS_BASENAME_EXPR): New macro.
9145         (AS_BASENAME_SED): Do not assume GNU sed semantics.
9146         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
9147         and fall back on 'sed' only if the other two fail.  This makes
9148         AS_BASENAME act more like AS_DIRNAME.
9149         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
9150         contains white space.
9151         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
9152         Use AS_DIRNAME, since I think it's now DOS-friendly.
9153         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
9154         Allow "dirname //FOO" to return either / or //, as POSIX allows
9155         either behavior.
9157 2001-10-10  Akim Demaille  <akim@epita.fr>
9159         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
9160         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
9161         From Eric Sharkey.
9163 2001-10-10  Akim Demaille  <akim@epita.fr>
9165         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
9166         m4_define, since...
9167         (_AS_ECHO_N): AS_REQUIREs it.
9169 2001-10-10  Akim Demaille  <akim@epita.fr>
9171         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
9172         (AC_INCLUDES_DEFAULT): Move to...
9173         * lib/autoconf/headers.m4: here.
9174         * lib/autoconf/types.m4: Comment changes.
9175         * doc/autoconf.texi: Specify where the default includes are used
9176         in the macro prototypes.
9178 2001-10-09  Akim Demaille  <akim@epita.fr>
9180         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
9181         transition code.
9183 2001-10-08  Akim Demaille  <akim@epita.fr>
9185         * bin/autoreconf.in (&autoreconf): Remove debugging code.
9186         (&parse_args): Pass verbosity/debugging options to subtools when
9187         --debug, not when --verbose.
9188         * lib/autom4te.in (Autoreconf-preselections): New.
9189         (Autoconf): Use it.
9191 2001-10-08  Akim Demaille  <akim@epita.fr>
9193         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
9195 2001-10-08  Akim Demaille  <akim@epita.fr>
9197         * doc/autoconf.texi (autoreconf Invocation): Adjust.
9198         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
9200 2001-10-08  Akim Demaille  <akim@epita.fr>
9202         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
9203         (Syntax of the shell scripts): Don't.
9204         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
9205         bother with $force since...
9206         * lib/Autom4te/General.pm: does.
9208 2001-10-08  Akim Demaille  <akim@epita.fr>
9210         * bin/autoreconf.in: Rewrite in Perl.
9211         * configure.ac: Adjust.
9212         * lib/Autom4te/General.pm (&up_to_date_p): New.
9213         * bin/autom4te.in (&up_to_date_p): Use it.
9214         Rename as...
9215         (&up_to_date): this.
9217 2001-10-08  Akim Demaille  <akim@epita.fr>
9219         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
9220         (m4_list_cmp): Use $0 to reinvoke yourself.
9221         (m4_patsubsts): New.
9222         (m4_strip, m4_version_unletter): Use it.
9223         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
9225 2001-10-08  Akim Demaille  <akim@epita.fr>
9227         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
9228         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
9229         * lib/autoconf/types.m4, lib/autotest/general.m4,
9230         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
9231         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
9232         m4_bregexp, m4_bpatsubst, and m4_bmatch.
9233         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
9235 2001-10-08  Akim Demaille  <akim@epita.fr>
9237         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
9239 2001-10-08  Akim Demaille  <akim@epita.fr>
9241         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
9242         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
9243         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
9244         * tests/tools.at, tests/m4sh.at: Use it.
9245         * tests/m4sh.at: Don't rely on Autoconf macros.
9246         (DIRNAME_TEST): Also exercise the expr variant.
9247         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
9248         preferred M4sugar extension is now `.4s'.
9249         * tests/README: Remove.
9251 2001-10-08  Akim Demaille  <akim@epita.fr>
9253         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
9254         (m4_provide_if): this.
9255         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
9256         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
9257         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
9258         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
9260 2001-10-08  Akim Demaille  <akim@epita.fr>
9262         Use `add-log-current-defun-function' for ChangeLog creation.
9263         Suggested by Tom Tromey.
9265         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
9266         (autotest-mode): Adjust.
9267         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
9268         'comment-region onto `C-c ;'.
9269         Comments are `#', not `dnl'.
9270         (autoconf-current-defun): New.
9271         (autoconf-font-lock-keywords): Recognize `m4_defun'.
9273 2001-10-08  Akim Demaille  <akim@epita.fr>
9275         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
9276         * lib/m4sugar/m4sh.m4: here.
9277         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
9278         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
9279         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
9280         include handle the m4_pattern_*, no longer push the
9281         BODY diversion nor set the /bin/sh line, AS_INIT does it.
9282         * lib/autotest/general.m4 (AT_INIT): Likewise.
9283         * tests/base.at: Adjust the tests to use AS_INIT.
9284         * tests/tools.at (AT_DATA_FORBIDDEN): New.
9285         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
9286         Autoconf.
9288 2001-10-07  Paul Eggert  <eggert@twinsun.com>
9290         * doc/autoconf.texi (config.status Invocation):
9291         CONFIG_SHELL defaults to a shell that supports LINENO if available.
9293         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
9294         shell does not support LINENO, and if CONFIG_SHELL is unset or
9295         empty, and if we can find a shell that does support LINENO,
9296         then set CONFIG_SHELL to that shell and then re-execute
9297         ourselves with CONFIG_SHELL.
9299 2001-10-05  Paul Eggert  <eggert@twinsun.com>
9301         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
9302         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
9303         build of $(TESTSUITE).
9305 2001-10-05  Akim Demaille  <akim@epita.fr>
9307         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
9308         iff we are a bareword.
9309         Reported by Raja R Harinath.
9311 2001-10-05  Akim Demaille  <akim@epita.fr>
9313         * tests/m4sh.at (LINENO): New.
9314         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
9315         PATH_SEPARATOR before using it.
9316         Fix the absolute path case/esac pattern.
9317         Provide $0 as fallback for as_myself.
9318         Reported by Raja R Harinath.
9320 2001-10-05  Akim Demaille  <akim@epita.fr>
9322         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
9323         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
9325 2001-10-05  Akim Demaille  <akim@epita.fr>
9327         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
9328         (AS_SHELL_SANITIZE): here.  Use it.
9329         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
9330         From Paul Eggert.
9332 2001-10-04  Akim Demaille  <akim@epita.fr>
9334         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
9335         combination of Awk and sed to replace $LINENO.
9337 2001-10-02  Paul Eggert  <eggert@twinsun.com>
9339         * doc/autoconf.texi (Limitations of Builtins): You can't use
9340         "source"; it's not portable.  Remove confusing and
9341         somewhat-incorrect example involving "." and "/".
9343         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
9344         compatibility with POSIX shells.
9346 2001-10-02  Akim Demaille  <akim@epita.fr>
9348         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
9349         instead of exec'ing to preserve $0 and $@.
9351 2001-10-01  Akim Demaille  <akim@epita.fr>
9353         * tests/testsuite (AT_INIT) <at_pass_list>: New.
9354         Don't run twice the same test.
9356 2001-10-01  Akim Demaille  <akim@epita.fr>
9358         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
9359         No longer output the list of tests.
9360         <--list>: New option.
9361         <--full-help>: Remove.
9362         Complete the short/long options duality.
9363         Various small adjustments.
9365 2001-10-01  Akim Demaille  <akim@epita.fr>
9367         * doc/autoconf.texi: Use @kbd for user input.
9368         Always use `$' as shell prompt.
9370 2001-09-30  Paul Eggert  <eggert@twinsun.com>
9372         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
9373         Don't use nested parenthesization.  This patch was originally
9374         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
9375         but somehow it didn't get incorporated then.
9376         * doc/autoconf.texi (Limitations of Usual Tools):
9377         Clarify remark about sed and nested parenthesization.
9379         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
9380         Report an error if the size cannot be determined even though
9381         the type exists.
9382         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
9383         Check for `expr' arithmetic overflow, and for compilation failure,
9384         and invoke a new argument $4 if either is discovered.
9385         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
9386         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
9388 2001-09-28  Akim Demaille  <akim@epita.fr>
9390         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
9391         * m4/lispdir.m4: New.
9392         * aclocal.m4, configure.ac: Adjust.
9394 2001-09-28  Akim Demaille  <akim@epita.fr>
9396         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
9397         (AT_TESTED): this.
9398         (AT_INIT): More the wrapped section to where it will be expanded.
9399         Output `AT_tested' only when existing.
9400         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
9402 2001-09-27  Akim Demaille  <akim@epita.fr>
9404         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
9405         generates too many bug reports.
9407         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
9408         status when executing the ACTION-IF-FALSE.
9409         * tests/base.at (AC_TRY_*): Rename as...
9410         (AC_TRY_COMMAND): this.
9411         (AC_RUN_IFELSE): New.
9412         * tests/compile.at (Extensions, C keywords)
9413         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
9414         (Broken/missing compilers, AC_PROG_CPP with warnings)
9415         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
9416         * tests/c.at (Extensions, C keywords)
9417         (Broken/missing compilers, AC_PROG_CPP with warnings)
9418         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
9419         (AC_PROG_CPP requires AC_PROG_CC): here and...
9420         * tests/fortran.at (GNU Fortran 77): there.
9421         * doc/autoconf.texi (autoconf Invocation): Fix the example:
9422         AC_TRY_RUN is about compilation, not shell commands.
9423         (Test Programs): AC_TRY_RUN works as used to be advertised.
9425 2001-09-27  Akim Demaille  <akim@epita.fr>
9427         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
9428         Raja R Harinath:
9429         Be sure to detect when $LINENO always returns the same value.
9430         Look for the original script, basename($0) is certainly not
9431         enough.
9432         Pass the CLI arguments to `$as_me.lineno'.
9434 2001-09-25  Akim Demaille  <akim@epita.fr>
9436         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
9437         Be sure the close and reopen the LOG fd before and after using tee
9438         to extend the log.
9439         <at_tests_pattern>: Adjust to the new format of at_help_all.
9441 2001-09-23  Akim Demaille  <akim@epita.fr>
9443         * bin/autom4te.in (parse_args): There can be several invocations
9444         of --language now.
9446 2001-09-23  Akim Demaille  <akim@epita.fr>
9448         * doc/autoconf.texi (Top): Wrap in @ifnottex.
9450 2001-09-23  Akim Demaille  <akim@epita.fr>
9452         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
9453         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
9454         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
9455         builddir, buildpath, top_builddir, and top_buildpath.
9456         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
9457         the current directory.
9458         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
9459         variables *before* changing the current directory.
9460         Skip nonexistent dirs.
9461         * doc/autoconf.texi (Preset Output Variables): Document these
9462         variables.
9464         * lib/autotest/general.m4: Do not reset AT_victims.
9465         Don't compute at_srcdir nor at_top_srcdir.
9467         * tests/tools.at: Hence use top_srcdir.
9469         * tests/Makefile.am, tests/autoconf, tests/autoheader,
9470         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
9471         Remove.
9472         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
9473         * tests/wrapsh.in, tests/autoupdate.in: New.
9474         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
9475         * configure.ac: Build the position independent wrappers.
9477         * man/Makefile.am: Now that test wrappers are position
9478         independent, use them and drop dark envvar magic.
9480 2001-09-23  Akim Demaille  <akim@epita.fr>
9482         * doc/autoconf.texi (Common Shell Constructs): Rename as...
9483         (Programming in M4sh): this.
9484         Promote to @section.
9486 2001-09-23  Akim Demaille  <akim@epita.fr>
9488         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
9489         Pass $at_debug_args to the rerun test suite.
9490         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
9491         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
9492         From Paul Eggert.
9494 2001-09-23  Akim Demaille  <akim@epita.fr>
9496         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
9498 2001-09-23  Akim Demaille  <akim@epita.fr>
9500         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
9501         over-escaping.
9503 2001-09-23  Akim Demaille  <akim@epita.fr>
9505         * lib/Autom4te/General.pm (&debug): New.
9506         * bin/autom4te.in ($language): Move to...
9507         (parse_args): here.
9508         Handle --language in languages.
9509         * lib/autom4te.in (Automake-selections, Autoheader-selections)
9510         (Autoscan-selections): New.
9511         (Autoconf): Adjust.
9513 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
9515         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
9516         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
9517         to match current versions from CVS Automake.
9519 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
9521         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
9522         for $LINENO.
9524 2001-09-22  Akim Demaille  <akim@epita.fr>
9526         * lib/autoconf/autotest.m4: Create `package.m4'.
9527         * tests/Makefile.am (package.m4): Remove.
9529 2001-09-22  Akim Demaille  <akim@epita.fr>
9531         Rely on `$LINENO' when possible instead of `__oline__'.
9533         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
9534         `$LINENO' support replacement when not supported.
9535         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
9536         them explicitly to be sure they are not output before this section
9537         (via m4_require).  Cosmetic only.
9538         * lib/autoconf/c.m4, lib/autoconf/general.m4,
9539         * lib/autoconf/programs.m4: Replace all the occurrences of
9540         `__oline__' with `$LINENO'.
9541         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
9543 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
9545         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
9546         character (u: -> ue) in a code comment.
9547         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
9548         it works.
9550 2001-09-21  Akim Demaille  <akim@epita.fr>
9552         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
9553         Suggested by Jim Meyering.
9555 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9557         * lib/autoconf/programs.m4: Use extensions listed in
9558         $ac_executable_extensions when looking for programs.
9560 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9562         * lib/autoconf/general.m4: Fix a small Englisho.
9563         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
9564         setting up ac_dir_suffix and ac_top_builddir.
9565         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
9567 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9569         * doc/autoconf.texi (File System Conventions): Clarify the use of
9570         PATH_SEPARATOR.
9571         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
9572         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
9573         be used instead of ':'.
9574         * lib/autotest/general.m4: Replace occurrences of ':' in
9575         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
9577 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9579         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
9580         arguments.  Fixed a typo.
9582 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9584         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
9585         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
9587 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9589         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
9590         * bin/autoupdate.in: Ditto.
9591         * bin/autoheader.in: Reworded a few comments.
9592         * bin/autoconf.in: Reworded help text for a few options.
9593         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
9594         * bin/autoscan.in, bin/autoupdate.in: Ditto.
9596 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9598         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
9599         already have $file).  Set output files to binary mode (helps avoid
9600         CR issues on DOSish systems).
9602 2001-09-19  Akim Demaille  <akim@epita.fr>
9604         * lib/autotest/general.m4: Englishoes.
9605         From Tim Van Holder and Alexey Mahotkin.
9607 2001-09-18  Paul Eggert  <eggert@twinsun.com>
9609         * doc/autoconf.texi (Common Shell Constructs): New node,
9610         documenting AS_DIRNAME.
9611         (Limitations of Usual Tools): Refer to it when discussing dirname.
9612         Also, update discussion of POSIX standard to reflect latest draft.
9614         * lib/autoconf/c.m4:
9615         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
9617         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
9618         Do not pass a first argument with leading '-'
9619         to expr, by parenthesizing initial integers that might be negative.
9621         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
9622         now merely checks whether it is an error to pass an argument
9623         to getpgrp.
9625         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
9626         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
9627         whether it is a (compile-time) error to pass an argument to
9628         getpgrp.  This simpler test supports the revised documentation,
9629         and is all that AC_FUNC_GETPGRP's users really need.
9631 2001-09-18  Akim Demaille  <akim@epita.fr>
9633         * doc/autoconf.texi (Limitations of Make) <$<>: New.
9635 2001-09-18  Akim Demaille  <akim@epita.fr>
9637         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
9638         `{}'.
9639         * lib/autotest/general.m4 (AT_INIT): Adjust.
9641 2001-09-18  Paul Wagland  <paul@wagland.net>
9643         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
9644         correctly.
9645         Add test for AS_BASENAME.
9646         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
9647         added test. It now correctly handles /1/2/3/, returning '3' not ''.
9648         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
9649         * tests/base.at: Fixed the expected responses. The old ones were
9650         one line out...
9651         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
9652         the documentation claims it should (and how it behaved in 2.13).
9654 2001-09-18  Akim Demaille  <akim@epita.fr>
9656         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
9657         the AC_CONFIG_COMMANDS invocation.
9658         This also solves the name clash problems.
9659         Don't set the package's ID.
9660         * lib/m4sugar/Makefile.am (version.m4): Revamp.
9661         No longer to be shipped.
9662         (version.in): Remove.
9663         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
9664         * lib/autoconf/status.m4: Adjust.
9665         Use `m4_PACKAGE_STRING'.
9666         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
9667         the only optional argument is the name of the test suite.
9668         Expect `package.m4' to define the package signature.
9669         * lib/autom4te.in (Autotest): Add `package.m4?'.
9670         * tests/Makefile.am (package.m4): New.
9671         * tests/suite.at: ifnames is a victim.
9673 2001-09-18  Akim Demaille  <akim@epita.fr>
9675         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
9676         AC_LIBSOURCE, AC_CONFIG_FILES.
9677         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
9678         program version string doesn't match the package's.
9679         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
9680         after `(cached)'.
9682 2001-09-17  Paul Eggert  <eggert@twinsun.com>
9684         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
9685         Allow expression to return any value that can fit into unsigned long
9686         (not int, as before).  Check for output errors.
9688 2001-09-17  Bruno Haible  <haible@ilog.fr>
9690         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
9691         Always include <stdio.h> and <stdlib.h>. Evaluate
9692         the expression in an extra function before these includes. Call
9693         fprintf "%d" only after ensuring the argument is of type 'int'.
9694         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
9696 2001-09-17  Paul Eggert  <eggert@twinsun.com>
9698         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
9699         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
9700         fatal errors, and AC_CHECK_LIB causes it to include libraries even
9701         when they don't exist.
9703         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
9704         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
9705         need it.
9707         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
9708         version with the version used by fileutils 4.1, except use
9709         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
9710         we don't need it.
9712         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
9714 2001-09-13  Akim Demaille  <akim@epita.fr>
9716         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
9717         _first_.
9718         Reported by Gerrit P. Haase.
9720 2001-09-13  Akim Demaille  <akim@epita.fr>
9722         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
9723         m4_defn'ing is valid.
9725 2001-09-13  Akim Demaille  <akim@epita.fr>
9727         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
9728         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
9729         Use it.
9731 2001-09-13  Akim Demaille  <akim@epita.fr>
9733         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
9734         m4_match.
9735         (m4_re_escape): New.
9736         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
9737         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
9738         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
9739         Likewise.
9740         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
9741         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
9742         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
9743         AT_tests_all for consistency.
9744         Set at_victims.
9745         (AT_VICTIMS): Similar to AT_KEYWORDS.
9746         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
9748 2001-09-13  Akim Demaille  <akim@epita.fr>
9750         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
9752 2001-09-13  Akim Demaille  <akim@epita.fr>
9754         * lib/autotest/general.m4 (AT_INIT): Create and remove
9755         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
9756         test suites can cohabit.
9758 2001-09-13  Akim Demaille  <akim@epita.fr>
9760         * tests/mktests.sh: Don't output banners for empty test files.
9762 2001-09-13  Akim Demaille  <akim@epita.fr>
9764         Test suites can be run independently of configure.
9766         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
9767         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
9768         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
9769         ECHO_N etc.
9770         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
9771         and at_c.
9772         * lib/autotest/general.m4: Use ECHO_*.
9774 2001-09-13  Akim Demaille  <akim@epita.fr>
9776         * bin/ifnames.in: Rewrite in Perl.
9777         * configure.ac: Don't look for AWK.
9778         * tests/tools.at (AWK portability): Remove.
9779         (Syntax of the shell scripts): Don't check ifnames.
9780         (AT_CHECK_PERL_SYNTAX): New.
9781         (Syntax of the Perl scripts): Check ifnames.
9782         * tests/ifnames: New.
9784 2001-09-13  Akim Demaille  <akim@epita.fr>
9786         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
9787         test group titles.
9788         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
9789         Remove all the other keywords.
9791 2001-09-10  Akim Demaille  <akim@epita.fr>
9793         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
9794         SETUP: no longer used.
9795         Support -k, --keywords.
9796         <at_help>: Be `no', `short', or `long'.
9797         <at_help_all>: New variable.
9798         (AT_KEYWORDS): New.
9799         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
9800         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
9801         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
9802         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
9803         No longer fill the HELP diversion.
9804         (AT_CLEANUP): Use them.
9805         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
9806         (m4_list_append): Remove.
9808         Spread a few keywords in the Autoconf test suite.
9810 2001-09-10  Akim Demaille  <akim@epita.fr>
9812         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
9813         PATH_SEPARATOR, let M4sh compute it.
9814         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
9815         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
9816         Move to...
9817         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
9818         Simplify when the path is not a literal.
9819         (AS_UNAME): Use it to report PATH.
9820         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
9821         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
9822         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
9823         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
9824         normalize the path, and to look for victims.
9825         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
9826         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
9828 2001-09-07  Akim Demaille  <akim@epita.fr>
9830         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
9831         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
9832         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
9833         related variables into `at_package_*'.
9834         * lib/autotest/general.m4 (AT_VICTIMS): New.
9835         (AT_INIT): Adjust for stand-alone/embedded test suites.
9836         (AS_MESSAGE_LOG_FD): Define and use it.
9837         * tests/suite.at (AT_VICTIMS): Use it.
9838         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
9839         at_version.
9841 2001-09-07  Akim Demaille  <akim@epita.fr>
9843         Move toward possibly stand-alone test suites.
9845         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
9846         in addition, it introduces useless differences in logs.
9847         (AT_INIT): Let atconfig and atlocal be both optional.
9848         Adjust PATH computation.
9849         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
9851 2001-09-07  Akim Demaille  <akim@epita.fr>
9853         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
9854         m4sugar/version.m4.
9856 2001-09-05  Akim Demaille  <akim@epita.fr>
9858         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
9859         to avoid GCC warnings.
9860         From Uwe Seimet.
9862 2001-09-05  Akim Demaille  <akim@epita.fr>
9864         * bin/autom4te.in: --language is -l, not -s.
9866 2001-09-05  Akim Demaille  <akim@epita.fr>
9868         Be ready to handle filenames as stupid as `dnl.at', for if even
9869         the maintainer is dumb enough to do that...
9871         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
9872         excellence in M4 quotation: consider `__file__' is active.
9874         And BTW, when invoking m4, pass the --include in the right order:
9875         the wrong one.
9877         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
9878         4m.
9880 2001-09-05  Akim Demaille  <akim@epita.fr>
9882         * lib/Autom4te/XFile.pm: New lib file.
9883         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
9884         * bin/autoheader.in: Use it.
9886 2001-09-05  Akim Demaille  <akim@epita.fr>
9888         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
9889         defined.
9891 2001-09-05  Akim Demaille  <akim@epita.fr>
9893         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
9894         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
9896         * bin/autoscan.in: Use `getopt' and `find_files' etc.
9897         Add -I, --include support.
9898         * doc/autoconf.texi (autoscan Invocation): Adjust.
9900 2001-09-05  Akim Demaille  <akim@epita.fr>
9902         CVS GNU M4 doesn't like `undefine(undefined)'.
9904         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
9905         New, extracted from main.
9906         Use IO::File wherever possible.
9907         (input.m4): Be constant, use -I instead of hard coding $tmp.
9908         Therefore be a quoted heredoc.
9909         Don't invoke `_au_disable', since ac was not loaded, but just
9910         `unm4.m4'.
9912 2001-08-31  Akim Demaille  <akim@epita.fr>
9914         Version 2.52d.
9916 2001-08-31  Akim Demaille  <akim@epita.fr>
9918         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
9919         previous patch.
9920         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
9922 2001-08-31  Akim Demaille  <akim@epita.fr>
9924         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
9925         serious problems handling heredocs in heredocs.
9926         Reported by Nicolas Joly.
9928 2001-08-31  Akim Demaille  <akim@epita.fr>
9930         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
9931         (Making testsuite Scripts): Update.
9933 2001-08-31  Akim Demaille  <akim@epita.fr>
9935         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
9937 2001-08-31  Akim Demaille  <akim@epita.fr>
9939         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
9940         (testsuite Scripts): There is no such thing as `atconfig.in'.
9941         And actually one diagram is missing: test suite runtime.
9943 2001-08-31  Akim Demaille  <akim@epita.fr>
9945         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
9946         inverse order.
9948 2001-08-31  Akim Demaille  <akim@epita.fr>
9950         * bin/autoupdate.in (@include): `installcheck' revealed the path
9951         to m4sugar was lacking!
9953 2001-08-31  Akim Demaille  <akim@epita.fr>
9955         * man/Makefile.am (.x.1): We really have to pass
9956         autom4te_perllibdir.
9958 2001-08-31  Akim Demaille  <akim@epita.fr>
9960         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
9961         debug scripts, in particular passing explicitly listed tests to
9962         run is stupid.
9964 2001-08-31  Akim Demaille  <akim@epita.fr>
9966         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
9967         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
9968         Use directly autom4te, not autoconf.
9969         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
9971 2001-08-31  Akim Demaille  <akim@epita.fr>
9973         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
9974         * bin/autoheader.in (%symbol): Strip arguments of macros.
9976 2001-08-31  Akim Demaille  <akim@epita.fr>
9978         * doc/autoconf.texi: Catch up -I, --include changes.
9980 2001-08-31  Akim Demaille  <akim@epita.fr>
9982         * bin/autom4te.in (&parse_args): Die on unknown languages.
9983         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
9984         need for autoconf.
9985         Promote --include over --macrodir and other obsolete options.
9987 2001-08-31  Akim Demaille  <akim@epita.fr>
9989         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
9990         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
9991         * bin/autom4te.in ($autoconf): Pass --force.
9992         `print $out' doesn't print `$_' but `$out'.
9993         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
9994         (autoheader): Pass --force since the test suite goes too fast for
9995         the time stamps.
9996         Adjust to the new autoheader messages.
9998 2001-08-31  Akim Demaille  <akim@epita.fr>
10000         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
10001         Check the completeness of the #template.
10002         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
10003         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
10004         invocation.
10006 2001-08-31  Akim Demaille  <akim@epita.fr>
10008         * lib/Autom4te/General.pm (&find_file, &update_file): New.
10009         * bin/autoupdate.in, bin/autoheader.in: Adjust.
10010         Drop AC_MACRODIR dead for real.
10011         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
10012         `autoheader: `config.hin' is created'.
10013         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
10015 2001-08-31  Akim Demaille  <akim@epita.fr>
10017         * bin/autoheader.in: Rewrite in Perl.
10018         * tests/autoheader: Adjust.
10020 2001-08-31  Akim Demaille  <akim@epita.fr>
10022         * bin/autoconf.in (--include, -I): New option.
10023         Map --localdir, --autoconf-dir onto it.
10024         Forward autom4te's options instead of interpreting them.
10025         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
10026         There is no such envvar since the inception of autom4te.cfg.
10027         * bin/autom4te.in (&parse_args): Uniquify `@include'.
10028         * bin/autoupdate.in: Adjust, and perform more control.
10029         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
10030         * tests/autoconf: Dittowise.
10032 2001-08-31  Akim Demaille  <akim@epita.fr>
10034         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
10035         * bin/autom4te.in (&find_file): Support `FILE?' standing for
10036         optionally `FILE'.
10037         Use -e, not -f, since /dev/null for instance is OK.
10038         (&parse_args): Adjust.
10039         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
10041 2001-08-31  Akim Demaille  <akim@epita.fr>
10043         * configure.ac: Also find tested executables in bin.
10044         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
10045         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
10046         installed peer executables, only PATH is allowed to resolve it.
10047         Pass `autoconf_dir' via options, not via invisible envvars.
10048         * lib/Autom4te/General.pm (&find_peer): Remove.
10049         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
10050         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
10051         * man/Makefile.am: Let help2man rely on PATH instead of trying to
10052         find the executables for it.
10053         * tests/Makefile.am: Major cleanup.  Too lazy to document...
10054         * tests/atlocal.in: Remove all the obscure envvar manipulations.
10055         We only need PERL.
10056         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
10057         indeed related to running the test suite, while passing
10058         --autoconf-dir and others is related to running non installed
10059         Autoconf executables.  So don't do that, leave it to...
10060         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
10061         * tests/autoscan: New.
10062         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
10063         refer to library files: rely on --language.
10065 2001-08-29  Akim Demaille  <akim@epita.fr>
10067         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
10068         s/--set/--language/.
10070 2001-08-29  Akim Demaille  <akim@epita.fr>
10072         * doc/autoconf.texi: Strip the @nodes.
10073         Suggested by Paul Eggert.
10074         (Initializing configure): Typo.
10076 2001-08-29  Akim Demaille  <akim@epita.fr>
10078         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
10079         Suggested by Paul Eggert.
10081 2001-08-29  Akim Demaille  <akim@epita.fr>
10083         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
10084         download in a tmp dir.
10086 2001-08-29  Akim Demaille  <akim@epita.fr>
10088         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
10089         case insensitive OSes out there :(
10090         From Tim Van Holder.
10092 2001-08-29  Akim Demaille  <akim@epita.fr>
10094         * lib/autom4te.in: New.
10095         * lib/Makefile.am (edit, autom4te.cfg): New.
10096         * bin/autom4te.in (BEGIN): Simplify.
10097         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
10098         (&load_configuration): New.  Use it.
10099         (&parse_args): Support --mode, --set, and --melt.
10100         * bin/autoconf.in: Simplify and adjust.
10101         * tests/Makefile.am (AUTOMAKE): Use --set.
10102         * tests/atlocal.in: Adjust.
10103         * BUGS: distcheck and check are weak.
10105 2001-08-29  Akim Demaille  <akim@epita.fr>
10107         * lib/autotest/general.m4: Use
10108                 foo=`(command) 2>/dev/null`
10109         not
10110                 foo=`command` 2>/dev/null
10111         (at-devnull): Rename as...
10112         (AT-devnull): this.
10113         (--clean): Remove AT-* files too.
10114         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
10115         Reported by Nicolas Joly.
10117 2001-08-28  Akim Demaille  <akim@epita.fr>
10119         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
10120         quotes inside single quotes.
10121         Reported by Nicolas Joly.
10123 2001-08-28  Kevin Ryde  <user42@zip.com.au>
10125         * doc/autoconf.texi (Function Portability): Mention C right shifts.
10127 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
10129         * lib/autotest/general.m4: Reword some messages.
10130         (AT_INIT): Check for the `times' builtin before using it.
10131         Support test ranges as arguments to the testsuite.
10132         Have -e imply -d as the help text suggested.
10134 2001-08-27  Akim Demaille  <akim@epita.fr>
10136         * Makefile.maint: Formatting changes.
10137         (do-po-update, po-update, cvs-update, update): New targets.
10138         (AMTAR): Remove.
10140 2001-08-27  Akim Demaille  <akim@epita.fr>
10142         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
10143         <at_cmd_line>: New.
10144         Pass it to debug-*.sh scripts.
10145         <AUTOTEST_PATH>: May contain absolute dir names.
10147 2001-08-27  Akim Demaille  <akim@epita.fr>
10149         * lib/autotest/general.m4 (AT_INIT): Log the command line.
10150         Support `VAR=VAL' as arguments.
10151         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
10152         may be set via the command line.
10154 2001-08-27  Akim Demaille  <akim@epita.fr>
10156         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
10157         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
10158         first the build dirs, then the src dirs.
10159         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
10161 2001-08-27  Akim Demaille  <akim@epita.fr>
10163         * lib/autotest/general.m4 (AT_INIT): Output the definition of
10164         at_data_files earlier.
10165         (--clean, -c): New option.
10166         * tests/Makefile.am: Use this option.
10168 2001-08-27  Akim Demaille  <akim@epita.fr>
10170         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
10171         `ac_top_builddir' to mimic Automake's vocabulary, which much more
10172         readable.
10173         Adjust callers.
10174         * doc/autoconf.texi (Configuration Actions): Document the vars
10175         available in commands.
10176         Emphasize the risks of collisions in init-cmds.
10178 2001-08-27  Akim Demaille  <akim@epita.fr>
10180         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
10181         (Initializing configure): this new node.
10183 2001-08-27  Akim Demaille  <akim@epita.fr>
10185         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
10187 2001-08-27  Akim Demaille  <akim@epita.fr>
10189         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
10190         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
10191         New file.
10192         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
10194 2001-08-27  Akim Demaille  <akim@epita.fr>
10196         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
10197         to...
10198         * lib/autoconf/autoheader.m4: this new file.
10199         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
10200         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
10201         Move to...
10202         * lib/autoconf/autoupdate.m4: this new file.
10204 2001-08-27  Akim Demaille  <akim@epita.fr>
10206         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
10207         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
10208         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
10209         -> ac_dir).
10210         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
10211         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
10213 2001-08-27  Akim Demaille  <akim@epita.fr>
10215         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
10216         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
10217         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
10218         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
10219         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
10220         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
10221         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
10222         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
10223         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
10224         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
10225         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
10226         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
10227         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
10228         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
10229         (_AC_OUTPUT_SUBDIRS): Move to...
10230         * lib/autoconf/status.m4: this new file.
10231         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
10232         * tests/Makefile.am, tests/suite.at: Adjust.
10234 2001-08-27  Akim Demaille  <akim@epita.fr>
10236         Automake 1.5.
10238         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
10239         (AMTAR): Help automake define it.
10240         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
10241         needed, 1.5 can have a macro and a target with the same name.
10242         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
10243         * m4/strip.m4: New.
10244         * m4/init.m4, m4/sanity.m4: Update.
10245         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
10246         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
10247         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
10248         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
10250 2001-08-27  Akim Demaille  <akim@epita.fr>
10252         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
10254         * lib/autoconf/version.in: Remove.
10255         * lib/m4sugar/version.in: New.
10256         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
10257         Adjust callers.
10258         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
10259         the name of the directory they're in, instead of the filename,
10260         since version.m4 is now in m4sugar, but m4_acversion must not be
10261         classified as an Autoconf macro.
10262         ($input_m4): Don't qualify the path to m4sugar.
10263         Rather, pass autoconf_dir to m4.
10264         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
10265         * tests/suite.at: Require 2.52c.
10267 2001-08-27  Akim Demaille  <akim@epita.fr>
10269         testsuite.log should include config.log.
10271         * lib/autotest/autotest.m4: New.
10272         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
10273         * tests/suite.at : Adjust.
10274         (AT_INIT): Log config.log.
10275         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
10276         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
10277         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
10278         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
10279         of config.log on traps.
10280         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
10281         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
10282         for config.status'.
10283         Open the log as soon as possible.
10284         Use the same log introduction as configure's.
10286 2001-08-22  Paul Eggert  <eggert@twinsun.com>
10288         * doc/autoconf.texi (Indices): New node.
10289         Move indices out of the top level menu and into this submenu.
10291 2001-08-22  Akim Demaille  <akim@epita.fr>
10293         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
10294         AC_TRY_COMMAND.
10295         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
10297 2001-08-22  Akim Demaille  <akim@epita.fr>
10299         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
10300         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
10301         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
10302         * lib/autoconf/programs.m4: here.
10303         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
10304         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
10305         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
10306         * lib/autoconf/programs.m4: here.
10307         (_AC_DECL_YYTEXT): Rename as...
10308         (_AC_PROG_LEX_YYTEXT_DECL): this.
10309         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
10310         * tests/Makefile.am, tests/suite.am: Adjust.
10312 2001-08-22  Akim Demaille  <akim@epita.fr>
10314         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
10315         Move to...
10316         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
10317         here.
10318         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
10319         * lib/autoconf/functions.m4: here.
10320         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
10321         (AH_CHECK_LIB): Move to...
10322         * lib/autoconf/libs: this new file.
10323         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
10324         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
10325         * lib/autoconf/libs.m4: here.
10326         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
10328 2001-08-22  Akim Demaille  <akim@epita.fr>
10330         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
10331         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
10332         (AC_SITE_LOAD): Better logging of config.site.
10334 2001-08-20  Akim Demaille  <akim@epita.fr>
10336         * configure.ac (AT_CONFIG): Fix the path.
10337         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
10338         can be used.
10340 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
10342         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
10343         program with AC_LANG_PROGRAM before feeding it to
10344         AC_COMPILE_IFELSE.  Cleanup grep usage.
10346 2001-08-20  Akim Demaille  <akim@epita.fr>
10348         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
10349         * NEWS, README, README-alpha, TODO, tests/README: This package is
10350         `Autoconf', not `autoconf' (the executable).
10352 2001-08-20  Akim Demaille  <akim@epita.fr>
10354         Info readers seem to need `Index' in the index node title :(
10356         * doc/autoconf.texi: Reverse the 2001-08-15 change which
10357         simplified index node names.
10359 2001-08-20  Akim Demaille  <akim@epita.fr>
10361         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
10362         arguments are not literals.
10363         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
10364         Specify the output variables, and macros defined.
10366 2001-08-20  Akim Demaille  <akim@epita.fr>
10368         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
10369         (Examining Syntax) <AC_TRY_COMPILE>
10370         (Examining Libraries) <AC_TRY_LINK>
10371         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
10372         their arguments.
10373         Reported by Werner Lemberg.
10375 2001-08-20  Akim Demaille  <akim@epita.fr>
10377         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
10378         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
10379         Load atlocal late enough to dump it in the log.
10380         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
10382 2001-08-20  Akim Demaille  <akim@epita.fr>
10384         * tests/torture.at (Configuring subdirectories): New test.
10385         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
10386         looking for.
10387         * m4/atconfig.m4: Be sure the let $[0] be expandable.
10388         (top_srcdir): Fix its computation.
10390 2001-08-20  Akim Demaille  <akim@epita.fr>
10392         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
10393         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
10394         test suite lives.
10395         Create `atconfig' automagically.
10396         Configure atlocal.in if present.
10397         * tests/atconfig.in: Remove.
10398         * tests/atlocal.in: New.
10399         * tests/Makefile.am: Adjust.
10401 2001-08-20  Akim Demaille  <akim@epita.fr>
10403         Huh!?!?!  There are still some user EOF tags used, which prevents
10404         their use in AC_CONFIG_COMMANDS for instance...
10406         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
10407         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
10408         `_CSEOF', or `_ATEOF', as appropriate.
10409         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
10410         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
10412 2001-08-20  Akim Demaille  <akim@epita.fr>
10414         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
10415         * tests/semantics.at, tests/tools.at, tests/torture.at:
10416         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
10418 2001-08-20  Akim Demaille  <akim@epita.fr>
10420         Autotest invokes M4sh's initialization.
10422         * lib/autotest/general.m4: Adjust the diversion names.
10423         (AT_INIT): Run AS_INIT.
10424         Use the BINSH diversion to invoke /bin/sh.
10425         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
10426         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
10428 2001-08-20  Akim Demaille  <akim@epita.fr>
10430         Let M4sh have its own diversions.
10432         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
10433         (_m4_divert(NOTICE)): Rename as...
10434         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
10435         (_m4_divert(HEADER-COMMENT)): these.
10436         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
10437         (_m4_divert(NOTICE)): New, for Libtool.
10438         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
10439         long ago with `_m4_divert(GROW)'.
10440         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
10442 2001-08-20  Akim Demaille  <akim@epita.fr>
10444         * tests/base.at, tests/compile.at, tests/foreign.at,
10445         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10446         * tests/semantics.at, tests/suite.at, tests/tools.at,
10447         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
10449 2001-08-20  Akim Demaille  <akim@epita.fr>
10451         * bin/autom4te.in (handle_output): Handle @__@.
10453 2001-08-20  Akim Demaille  <akim@epita.fr>
10455         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
10456         * lib/autotest/general.m4: Adjust the license.
10458 2001-08-17  Paul Eggert  <eggert@twinsun.com>
10460         * doc/autoconf.texi (Function Portability): Mention snprintf,
10461         following up on a suggestion by Kevin Ryde.
10463 2001-08-17  Akim Demaille  <akim@epita.fr>
10465         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
10466         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
10468 2001-08-17  Akim Demaille  <akim@epita.fr>
10470         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
10471         `$0.log' as for projects where testsuite is in src, we'd have
10472         testsuite.log created in src.
10474 2001-08-17  Akim Demaille  <akim@epita.fr>
10476         * bin/autom4te.in (&parse_args): Recognize --normalize.
10478 2001-08-17  Akim Demaille  <akim@epita.fr>
10480         Start implementing the AC_CHECK_HEADER transition scheme.
10482         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
10483         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
10484         (AC_CHECK_HEADER): Use them.
10486 2001-08-17  Akim Demaille  <akim@epita.fr>
10488         * doc/autoconf.texi: Work around Texinfo buglets.
10489         (Transformation Rules): One example is enough, users are expected
10490         to have their brains on. And BTW, use DESTDIR.
10491         (dvar): New macro.  Use it.
10493 2001-08-17  Akim Demaille  <akim@epita.fr>
10495         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
10496         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
10497         looking for ChangeLogs.
10499 2001-08-17  Akim Demaille  <akim@epita.fr>
10501         * bin/autom4te.in: --normalize is a new option.
10502         * bin/autoconf.in: Use it.
10504 2001-08-17  Akim Demaille  <akim@epita.fr>
10506         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
10507         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
10509 2001-08-16  Paul Eggert  <eggert@twinsun.com>
10511         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
10512         start, not at end.
10514 2001-08-15  Akim Demaille  <akim@epita.fr>
10516         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
10517         Use it.
10519 2001-08-15  Akim Demaille  <akim@epita.fr>
10521         * doc/autoconf.texi (pr): New index.
10522         (prindex, findex): Use, merge, and output them.
10523         (Environment Variable Index, Output Variable Index)
10524         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
10525         (Autotest Macro Index): Rename as...
10526         (Environment Variables, Output Variables,Preprocessor Symbols)
10527         (Autoconf Macros, M4 Macros, Autotest Macros): these.
10528         * doc/install.texi: Use @command.
10529         (Environment Variables): Rename as...
10530         (Defining Variables): this.
10532 2001-08-15  Akim Demaille  <akim@epita.fr>
10534         * doc/autoconf.texi (Function Portability): sprintf's return
10535         value.
10536         From Kevin Ryde.
10538 2001-08-15  Akim Demaille  <akim@epita.fr>
10540         * Makefile.maint (CVS): New.
10541         (local-check): Run changelog-check. last.
10542         (alpha): Don't depend upon local-check, since...
10543         (cvs-dist): depends upon it.
10545 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
10547         * tests/Makefile.am: Use a clean-local rule to remove
10548         autom4te.cache (it's a directory, not a file.
10549         * Makefile.am: Ditto (but maintainer-clean-local).
10551 2001-08-15  Akim Demaille  <akim@epita.fr>
10553         * bin/autom4te.in (@m4_warning): New.
10554         (&handle_m4): Use it.
10555         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
10556         warnings are issued at each run.
10557         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
10558         is in the src tree.
10560 2001-08-15  Akim Demaille  <akim@epita.fr>
10562         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
10563         don't waste time running `autoupdate --version' works.
10564         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
10566 2001-08-13  Akim Demaille  <akim@epita.fr>
10568         * doc/autoconf.texi (ma): Rename this index as...
10569         (ac): this.
10571 2001-08-13  Akim Demaille  <akim@epita.fr>
10573         * Makefile.am: Remove dead code and dead comments.
10574         (pdf, html): New targets.
10575         * doc/autoconf.texi (Using Autotest): New chapter.
10576         * doc/Makefile.am (pdf): New targets.
10577         (CLEANFILES): Adjust.
10579 2001-08-13  Akim Demaille  <akim@epita.fr>
10581         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
10582         duration of the test suite.
10584 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
10586         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
10587         endianness for comparison instead of relying on AT_CHECK_ENV.
10589 2001-08-11  Paul Eggert  <eggert@twinsun.com>
10591         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
10592         to the INSTALL file.
10594 2001-08-11  Paul Eggert  <eggert@twinsun.com>
10596         * NEWS: The autoconf manual now is distributed under the terms
10597         of the GNU Free Documentation License.
10599         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
10600         Add an appendix "Copying This Manual" for the FDL.
10602         * doc/fdl.texi: New file, from
10603         <http://www.gnu.org/licenses/fdl.texi>.
10605         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
10607 2001-08-10  Paul Eggert  <eggert@twinsun.com>
10609         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
10610         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
10611         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
10612         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
10613         m4/sanity.m4, tests/README, tests/aclocal.m4,
10614         tests/atspecific.m4, tests/base.at, tests/compile.at,
10615         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
10616         tests/semantics.at, tests/suite.at, tests/tools.at,
10617         tests/torture.at: Add copyright notice.
10619         * tests/mktests.sh: Update year in copyright notice.
10621 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
10623         * tests/semantics.at (AC_C_BIGENDIAN): New test.
10625 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
10627         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
10628         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
10629         * doc/autoconf.texi (C Compiler Characteristics): Update
10630         documentation for AC_C_BIGENDIAN.
10632 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
10634         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
10635         magic values from an object file when cross-compiling.
10636         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
10638 2001-08-10  Akim Demaille  <akim@epita.fr>
10640         * bin/autom4te.in (&handle_output): Don't use `grep' with side
10641         effects.
10642         Suggested by Russ Allbery.
10644 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
10646         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
10647         current $prefix to the sub-configures.
10649 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
10651         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
10652         extension (needed on BeOS).  Reported by Guido van Rossum.
10654 2001-08-09  Akim Demaille  <akim@epita.fr>
10656         * bin/autom4te.in ($icache): Load it only if older than autom4te.
10658 2001-08-07  Akim Demaille  <akim@epita.fr>
10660         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
10661         removed.
10662         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
10663         No need to remove the files before and after the each test, before
10664         each test and at the end of the suite is enough.
10665         Display only the children `times', not the shell's.
10666         If the test failed or was skipped, at-times is not available.
10668 2001-08-07  Akim Demaille  <akim@epita.fr>
10670         Always produce testsuite.log, including when there are no
10671         failures.  This helps getting information on skipped tests, and
10672         duration of the tests.  Err, implement the latter btw.
10674         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
10675         Dump information on the first run of each test.
10676         (AT_CLEANUP): Create `at-times' containing the duration of the
10677         test group.
10679 2001-08-07  Akim Demaille  <akim@epita.fr>
10681         The use of `dumpstat' revealed that `len' was used although it
10682         should not.  m4_text_wrap was using it, but in the Autoconf world
10683         where it is legal.  Hence (i) test M4sh in its own world, not
10684         Autoconf's, and (ii), ahem, fix the bug :)
10686         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
10687         does not like `' instead of [].
10688         (AT_INIT): Forbid `^_?AT_'.
10689         And don't output such tokens.
10690         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
10691         `script.as', and `autom4te.cache'.
10692         Remove `empty' and `macro' which are no longer used.
10693         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
10694         * tests/m4sugar.at: Use it.
10695         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
10697 2001-08-07  Akim Demaille  <akim@epita.fr>
10699         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
10701 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
10703         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
10705 2001-08-04  Akim Demaille  <akim@epita.fr>
10707         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
10708         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
10709         AC_TRY_LINK.
10710         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
10711         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
10712         (AC_F77_MAIN): Likewise.
10714 2001-08-04  Akim Demaille  <akim@epita.fr>
10716         Don't rely on M4sugar outputting the patterns in files, since we
10717         might process the output _without_ running m4, hence without these
10718         files.
10720         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
10721         * bin/autom4te.in (@Request::includes): Remove, unused.
10722         (@Request::source): Rename as...
10723         (@Request::input): this.
10724         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
10725         (&handle_output): Fetch the patterns from the traces.
10726         `$forbidden' and `$allowed' are constant: use m//o.
10727         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
10728         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
10730 2001-08-04  Akim Demaille  <akim@epita.fr>
10732         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
10733         autoconf', i.e., in addition to caching traces, cache the output.
10735         * bin/autom4te.in (Request::cache): Rename as...
10736         (Request::id): this.
10737         ($cache, $icache, $tcache, $ocache): New.
10738         (&handle_m4): Save M4 output in the cache instead of $tmp.
10739         (&handle_output): Adjust.
10740         (&up_to_date_p): Check that the output cache is up to date too.
10741         (top level): Run `&handle_m4' iff force or the cache is invalid.
10742         Run `&handle_output' if the output cache is more recent.
10744 2001-08-04  Akim Demaille  <akim@epita.fr>
10746         * bin/autom4te.in ($force): New.
10747         (&parse_args, &print_usage): -f, --force is a new option.
10748         (&handle_output): CPP directives might have spaces after `#'.
10749         (&parse_args): The first file only can be frozen.
10751 2001-08-04  Akim Demaille  <akim@epita.fr>
10753         Don't let autom4te compute the `include' traces several times:
10754         first check that the trace cache file is up to date, and then
10755         compare its timestamp with that of the output.
10757         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
10758         the preamble.  Don't require 5.005 as Autom4te::General does it,
10759         and better yet (use `use', not `require'!).
10760         * lib/Autom4te/Struct.pm: Rename the last occurrences of
10761         Class::Struct as Autom4te::Struct.
10762         * lib/Autom4te/General.pm (File::stat): Use it.
10763         (&mtime): New, export it.
10764         * bin/autom4te.in: Use it.
10765         Declare `$req' is invalid if it is outdated.
10766         Don't declare it valid before saving it if something went wrong.
10768 2001-08-04  Akim Demaille  <akim@epita.fr>
10770         Autom4te shall not encode Autoconf data, and preselecting traces
10771         must be proposed to the users.
10773         * bin/autom4te.in (@required_trace): Remove.
10774         (@preselect): New.
10775         (&parse_args, &print_usage): -p, --preselect is a new option.
10776         (&up_to_date_p): Adjust.
10777         * bin/autoconf.in: Preselect some Autoconf macros.
10779 2001-08-04  Akim Demaille  <akim@epita.fr>
10781         * tests/tools.at (autoconf --trace: user macros): Check traces on
10782         macros invoked without arguments, and macros invoked with multiple
10783         lines arguments.
10785 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
10787         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
10788         arguments.
10790 2001-08-03  Akim Demaille  <akim@epita.fr>
10792         * bin/autoconf.in ($@): Work around the usual sh bug.
10793         From Nicolas Joly.
10795 2001-08-03  Akim Demaille  <akim@epita.fr>
10797         Clean up the handling of the M4 builtins tracing exception.
10799         * bin/autom4te.in (Request::request): Don't complete M4 builtins
10800         trace requests.
10801         (@m4_builtins): Rename as...
10802         (@m4_builtin): this.
10803         (%m4_builtin_alternate_name): New.
10804         (&parse_args): Complete the trace requests with alternate names.
10805         (&handle_traces): Hence no longer do it here.
10806         (&trace_requests): Remove, unused.
10808 2001-08-03  Akim Demaille  <akim@epita.fr>
10810         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
10811         m4_if, and m4_wrap.
10813 2001-08-03  Akim Demaille  <akim@epita.fr>
10815         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
10816         (m4_divert_pop): Dump the whole diversion stack when a diversion
10817         mismatch happens.
10818         * bin/autom4te.in (&handle_output): Remember of the first
10819         occurrence of a possibly undefined macro, not the last.
10820         Complain about the possibly undefined macros in the same order as
10821         the appear in the output.
10822         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
10823         * tests/tools.at (autoconf: forbidden tokens, basic)
10824         (autoconf: forbidden tokens, exceptions): No longer sort
10825         autoconf's stderr, as it is now deterministic.
10826         Check that `dnl' is caught.
10828 2001-08-01  Akim Demaille  <akim@epita.fr>
10830         * configure.ac: Bump to 2.52c.
10832 2001-08-01  Akim Demaille  <akim@epita.fr>
10834         Version 2.52b.
10836         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
10838 2001-08-01  Akim Demaille  <akim@epita.fr>
10840         Version 2.52a.
10842 2001-08-01  Akim Demaille  <akim@epita.fr>
10844         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
10845         `die'.
10846         (&END): New.
10847         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
10848         `END', as `Autom4te::General::END' will be triggered.
10849         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
10850         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
10851         system to run `mv', `rm', and `cmp'.
10853 2001-08-01  Akim Demaille  <akim@epita.fr>
10855         * lib/Autom4te/General.pm (&unique): New.
10856         * bin/autoscan.in (&output): Use it to issue trace requests once.
10858 2001-08-01  Akim Demaille  <akim@epita.fr>
10860         * lib/Autom4te/General.pm: New.
10861         * bin/autom4te.in (Autom4te::General): Use it.
10862         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
10863         (&find_configure_ac, &find_slave): Remove.
10864         * bin/autoscan.in: Likewise.
10865         * bin/autoupdate.in: Likewise.
10867 2001-08-01  Akim Demaille  <akim@epita.fr>
10869         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
10870         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
10871         * bin: here, new directory.
10872         * lib/Autoconf: Rename as...
10873         * lib/Autom4te: this, to please case insensitive junkie OSes.
10875 2001-08-01  Akim Demaille  <akim@epita.fr>
10877         * autom4te.in ($m4): Handle the --nesting-limit.
10878         * autoconf.in (M4): Remove.
10880 2001-08-01  Akim Demaille  <akim@epita.fr>
10882         * autoconf.in ($AWK): Remove, no longer used.
10883         * test/tools.at: Use AT_CHECK_AUTOCONF.
10884         (AWK portability): Remove, for autoconf no longer uses AWK.
10885         (Syntax of the Perl scripts): New.
10886         * configure.ac: autoconf no longer needs an AWK with a good
10887         regexp engine.
10888         Use a static test on AC_PACKAGE_VERSION.
10889         * autom4te.in (&up_to_date_p): Output depends on the arguments.
10890         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
10891         * tests/atconfig.in (PERL): New.
10893 2001-08-01  Akim Demaille  <akim@epita.fr>
10895         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
10896         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
10897         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
10898         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
10899         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
10900         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
10901         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
10902         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
10903         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
10904         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
10905         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
10906         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
10907         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
10908         * lib/autoconf/c.m4: here, new file.
10910         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
10911         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
10912         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
10913         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
10914         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
10915         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
10916         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
10917         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
10918         (AC_F77_FUNC): Move to...
10919         * lib/autoconf/fortran.m4: here, new file.
10921 2001-08-01  Akim Demaille  <akim@epita.fr>
10923         * acfunctions.m4: Rename as...
10924         * lib/autoconf/functions.m4: this.
10925         * acgeneral.m4: Rename as...
10926         * lib/autoconf/general.m4: this.
10927         * acheaders.m4: Rename as...
10928         * lib/autoconf/headers.m4: this.
10929         * aclang.m4: Rename as...
10930         * lib/autoconf/lang.m4: this.
10931         * acoldnames.m4: Rename as...
10932         * lib/autoconf/oldnames.m4: this.
10933         * acspecific.m4: Rename as...
10934         * lib/autoconf/specific.m4: this.
10935         * actypes.m4: Rename as...
10936         * lib/autoconf/types.m4: this.
10937         * autoconf.m4: Rename as...
10938         * lib/autoconf/autoconf.m4: this.
10940         * m4sugar.m4: Rename as...
10941         * lib/m4sugar/m4sugar.m4: this.
10942         * m4sh.m4: Rename as...
10943         * lib/m4sugar/m4sh.m4: this.
10945         * tests/atgeneral.m4: Rename as...
10946         * lib/autotest/general.m4: this.
10948         * acfunctions: Rename as...
10949         * lib/autoscan/functions: this.
10950         * acheaders: Rename as...
10951         * lib/autoscan/headers: this.
10952         * acidentifiers: Rename as...
10953         * lib/autoscan/identifiers: this.
10954         * aclibraries: Rename as...
10955         * lib/autoscan/libraries: this.
10956         * acmakevars: Rename as...
10957         * lib/autoscan/makevars: this.
10958         * acprograms: Rename as...
10959         * lib/autoscan/programs: this.
10961 2001-08-01  Akim Demaille  <akim@epita.fr>
10963         * doc/autoconf.texi: Moving/deleting open files is not portable.
10964         Portability issues for `.' (source), and more information about sed.
10966 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
10968         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
10969         which has a special meaning and is not a reference to libibmil.a.
10970         Reported by Matteo Frigo.
10972 2001-07-25  Pavel Roskin  <proski@gnu.org>
10974         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
10975         output.
10977 2001-07-25  Akim Demaille  <akim@epita.fr>
10979         * autoconf.in: Try to define the variables before using them.
10980         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
10981         instead of `$perllibdir'.
10982         * tests/atconfig.in ($autom4te_perllibdir): Export it.
10984 2001-07-25  Akim Demaille  <akim@epita.fr>
10986         * autoconf.in (ac_LF_and_DOT): Remove, unused.
10988 2001-07-24  Akim Demaille  <akim@epita.fr>
10990         Let autoconf use autom4te for traces.
10992         * autoconf.in ($task, task trace): Remove, merely pass --trace to
10993         autom4te.
10994         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
10995         (Because I found no way for autom4te to accept `-').
10996         * autom4te.in (&Request::request): Beware of M4 builtins.
10997         (END): Don't try to remove the content of an empty dir.
10998         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
10999         (&handle_output): Set a default value to `$forbidden'.
11000         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
11001         ($autoconf): Pass --debug and --verbose.
11002         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
11003         cache.
11005 2001-07-24  Akim Demaille  <akim@epita.fr>
11007         Let autoconf use autom4te to create configure.
11009         * autoconf.in ($automate): New var.
11010         (task script): Use autom4te.
11011         * autom4te.in (File::Spec): Use it.
11012         (&find_file): New.
11013         (&parse_args): --warning is -W, not -w.
11014         Find the top level files.
11015         (&handle_m4): Pass the warnings flags.
11016         Don't report verbosely m4's failures, unless requested.
11017         (&handle_output): Don't complain for forbidden tokens in comments.
11018         Be sure to report all the forbidden tokens within a single line.
11019         (&trace_format_to_m4): Preserve `$_'.
11020         (&handle_traces): Sort the output macros.
11021         (&up_to_date_p): Find the files before trying to get its time stamp.
11023 2001-07-24  Akim Demaille  <akim@epita.fr>
11025         * Makefile.am: Ship, build and install Autom4te.
11026         (SUBDIRS): Add lib.
11027         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
11028         * configure.in: Require Perl.
11029         * man/autom4te.in: New.
11031 2001-07-19  Paul Eggert  <eggert@twinsun.com>
11033         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
11034         example, rather than (exit 1); exit (which isn't portable).
11036 2001-07-18  Akim Demaille  <akim@epita.fr>
11038         Version 2.52.
11040 2001-07-18  Akim Demaille  <akim@epita.fr>
11042         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
11043         was run, while they are needed also when it is expanded.
11044         Reported by Nicolas Joly.
11046         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
11047         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
11048         AC_F77_DUMMY_MAIN being expanded.
11050 2001-07-18  Akim Demaille  <akim@epita.fr>
11052         * configure.in: Bump to 2.51a.
11054 2001-07-17  Akim Demaille  <akim@epita.fr>
11056         Version 2.51.
11058 2001-07-17  Akim Demaille  <akim@epita.fr>
11060         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
11061         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
11063 2001-07-17  Akim Demaille  <akim@epita.fr>
11065         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
11066         used.  Well, then use the prototypes when you can, and runtime as
11067         a last resort.
11068         Reported by Artur Frysiak
11070         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
11071         (AC_FUNC_GETPGRP): Use it.
11072         First try to compile with 0-ary or 1-ary calls.
11074 2001-07-17  Akim Demaille  <akim@epita.fr>
11076         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
11077         replacement type.
11078         From Paul Eggert.
11080 2001-07-17  Akim Demaille  <akim@epita.fr>
11082         * Makefile.maint: Sync. with cppi 1.10.
11084 2001-07-17  Akim Demaille  <akim@epita.fr>
11086         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
11087         AC_F77_DUMMY_MAIN has been run.
11088         From Pavel Roskin and Steven G. Johnson.
11090 2001-07-17  Akim Demaille  <akim@epita.fr>
11092         * configure.in: Rename as...
11093         * configure.ac: this.
11095 2001-07-17  Akim Demaille  <akim@epita.fr>
11097         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
11098         rules.
11099         From Marc Espie.
11100         * Makefile.maint (release-archive-dir): Rename as...
11101         (release_archive_dir): this, so that it can be specialized in
11102         Makefile.
11104 2001-07-14  Akim Demaille  <akim@epita.fr>
11106         * configure.in: Bump to 2.50d.
11108 2001-07-14  Akim Demaille  <akim@epita.fr>
11110         Version 2.50c.
11111         * Makefile.maint (alpha): Typo.
11113 2001-07-14  Akim Demaille  <akim@epita.fr>
11115         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
11117 2001-07-14  Akim Demaille  <akim@epita.fr>
11119         * config/config.guess, config/config.sub, config/texinfo.tex
11120         * doc/standards.texi, doc/make-stds.texi: Update.
11122 2001-07-14  Akim Demaille  <akim@epita.fr>
11124         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
11126 2001-07-14  Akim Demaille  <akim@epita.fr>
11128         * Makefile.maint (maintainer-check): Rename as...
11129         (maintainer-distcheck): this.
11130         (changelog-check, static-check): New.
11131         Use them.
11133 2001-07-14  Kevin Ryde  <user42@zip.com.au>
11135         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
11136         for CXX is g++, not gcc.
11138 2001-07-14  Akim Demaille  <akim@epita.fr>
11140         * doc/autoconf.texi (Files): New subsection.
11142 2001-07-14  Akim Demaille  <akim@epita.fr>
11144         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
11145         of...
11146         (Generic Compiler Characteristics): this.
11147         (C++ Compiler): New subsection.
11149 2001-07-14  Akim Demaille  <akim@epita.fr>
11151         * autoscan.in: Use IO::File.
11152         Adjust all the routines to use it.
11153         ($log): New file (autoscan.log).
11154         (output): Dump detailed logs into $log, and a shortened version to
11155         stderr.
11156         (&scan_makefile): Refine the regexp catching tokens in the code.
11157         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
11158         and the `configure.ac' checking feature.
11160 2001-07-12  Akim Demaille  <akim@epita.fr>
11162         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
11163         Reported by Michael Elizabeth Chastain.
11165         * autoconf.in: Refuse such AWK.
11166         * configure.in: Likewise.
11167         * Makefile.am (acversion.m4): Do not use move-if-change this file
11168         has dependencies.
11169         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
11171 2001-07-10  Jens Petersen  <petersen@redhat.com>
11173         * autoscan.in (&scan_makefile): Improve programs regexp to parse
11174         things like "g++", "file.c" and "some-conf" as tokens.
11175         (&scan_file): Match C++ files extensions.
11176         If the filename extension is C++ then ask for c++.
11178 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
11180         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
11181         AC_TRY_LINK_FUNC, to check whether defining a dummy
11182         main-like routine is needed for linking with F77 libs.
11184 2001-07-05  Pavel Roskin  <proski@gnu.org>
11186         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
11187         after using break.
11188         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
11189         linking.
11191 2001-07-05  Akim Demaille  <akim@epita.fr>
11193         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
11194         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
11195         Makes' lives.
11196         Reported by Nicolas Joly.
11198 2001-07-04  Akim Demaille  <akim@epita.fr>
11200         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
11201         up.
11202         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
11203         warnings from compilers.
11204         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
11205         for all the compilers, not only GNU.  Hence move from here...
11206         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
11208 2001-07-04  Akim Demaille  <akim@epita.fr>
11210         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
11211         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
11212         AC_COMPILE_IFELSE.
11214 2001-07-04  Akim Demaille  <akim@epita.fr>
11216         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
11217         the ``strings.h'' change claimed below.
11219 2001-07-04  Akim Demaille  <akim@epita.fr>
11221         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
11223 2001-07-04  Akim Demaille  <akim@epita.fr>
11225         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
11226         strings.h if usable with string.h.
11227         Suggested by Paul Eggert.
11229 2001-07-04  Akim Demaille  <akim@epita.fr>
11231         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
11232         From Jens Petersen.
11234 2001-07-03  Akim Demaille  <akim@epita.fr>
11236         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
11237         etc. in the log.
11239 2001-07-03  Akim Demaille  <akim@epita.fr>
11241         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
11242         compiler, not the preprocessor.
11243         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
11244         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
11245         the right thing.
11246         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
11247         earlier if there are.
11249 2001-07-03  Akim Demaille  <akim@epita.fr>
11251         * autoscan.in ($initfile): Remove.
11252         (&find_file): Rename as...
11253         (&scan_file): this.
11254         Immediately scan the current file, instead of gathering them, and
11255         later having them handled by &scan_files.
11256         (&scan_files): Merely invoke Find::File.
11257         Adjust.
11259 2001-07-02  Akim Demaille  <akim@epita.fr>
11261         * autoscan.in: Formatting changes, matching the invocation order.
11262         (File::Find): Use it instead of Perl 4's `find.pl'.
11263         (&wanted): Rename as...
11264         (&find_file): this.
11266 2001-07-01  Pavel Roskin  <proski@gnu.org>
11268         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
11269         break in the argument to AC_TRY_LINK_FUNC.
11270         (AC_F77_MAIN): Remove conftest* after using break in the
11271         argument to AC_TRY_LINK.
11273 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
11275         Add alternate 'main' routine detection for linking C/C++ with Fortran,
11276         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
11278         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
11279         dummy alternate main is required even if the user provides her own
11280         'main'.
11281         (AC_F77_MAIN): New macro to detect whether it is possible to
11282         provide an alternate 'main' function name, using the 'main' from
11283         the Fortran libraries.
11284         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
11285         cross-language link tests can be performed successfully.
11286         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
11287         after $LIBS, for consistency; this should be the general rule since
11288         the user may want to link to Fortran libraries that require $FLIBS.
11289         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
11291 2001-06-29  Pavel Roskin  <proski@gnu.org>
11293         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
11294         at-stdout and at-stderr instead of removing the newline
11295         from the echo output, which is not guaranteed to work.
11297 2001-06-28  Jens Petersen  <petersen@redhat.com>
11299         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
11300         confdefs.h when non-zero.
11302 2001-06-28  Akim Demaille  <akim@epita.fr>
11304         * configure.in: Bump to 2.50c.
11306 2001-06-26  Akim Demaille  <akim@epita.fr>
11308         Version 2.50b.
11310 2001-06-26  Akim Demaille  <akim@epita.fr>
11312         Version 2.50a.
11314 2001-06-25  Pavel Roskin  <proski@gnu.org>
11316         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
11317         argument, AUTOCONF-FLAGS.
11318         * tests/mktests.sh (update_exclude_list): Add
11319         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
11320         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
11321         AC_FUNC_WAIT3 with "-W no-obsolete".
11323 2001-06-25  Akim Demaille  <akim@epita.fr>
11325         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
11327 2001-06-25  Akim Demaille  <akim@epita.fr>
11329         * autoscan.in (%macro): Now maps from word to list of macros.
11330         (&init_tables): Die when a word which is already handled by
11331         explicit macros is mapped to the default macro.
11332         (&print_unique): Remove, inlined in...
11333         (&output_kind): here.
11334         (File::Basename): Use it.
11335         (&output): Sort the CONFIG_FILES.
11336         * acheaders: Normalize.
11337         * acfunctions: Likewise.
11339 2001-06-25  Akim Demaille  <akim@epita.fr>
11341         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
11342         characteristics in the logs.
11343         Suggested by Mo DeJong.
11345 2001-06-24  Akim Demaille  <akim@epita.fr>
11347         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
11348         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
11349         * doc/autoconf.texi (Autoconf 2.13): New section.
11351 2001-06-24  Akim Demaille  <akim@epita.fr>
11353         * autoconf.in (Task traces): Separate the error messages from the
11354         traces to improve robustness.
11356 2001-06-23  Akim Demaille  <akim@epita.fr>
11358         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
11359         three as failures are unlikely, and speed matters.
11361 2001-06-23  Akim Demaille  <akim@epita.fr>
11363         * doc/autoconf.texi (Redefined M4 Macros): New.
11365 2001-06-23  Akim Demaille  <akim@epita.fr>
11367         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
11368         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
11369         5.3.
11371 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
11373         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
11374         config.status targets to after the evaluation of the INIT-CMDS.
11375         Double quote config.status targets (used to be single quoted).
11377 2001-06-23  Akim Demaille  <akim@epita.fr>
11379         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
11380         Check the content of the created file.
11381         Check the ./config.status command line invocation.
11383 2001-06-23  Akim Demaille  <akim@epita.fr>
11385         * tests/foreign.at (Libtool): Reject prehistoric versions.
11387 2001-06-23  Akim Demaille  <akim@epita.fr>
11389         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
11390         preexisting files matching a.*.
11392 2001-06-23  Akim Demaille  <akim@epita.fr>
11394         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
11395         stderr.
11396         * doc/autoconf.texi (AC_ARG_VAR): Update.
11398 2001-06-21  Akim Demaille  <akim@epita.fr>
11400         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
11401         precious variables have changed.
11402         * tests/torture.at (AC_ARG_VAR): Adjust.
11404 2001-06-21  Akim Demaille  <akim@epita.fr>
11406         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
11407         but some sed choke on multiple `;', and other tools (e.g.,
11408         Automake), include the separator themselves.
11410         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
11412 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
11414         * doc/autoconf.texi (Functions Portability): Rename as...
11415         (Function Portability): this.
11416         (Function Portability): Document potential problems with unlink().
11418 2001-06-19  Paul Eggert  <eggert@twinsun.com>
11420         * NEWS, doc/autoconf.texi: Document quadrigraphs.
11422 2001-06-18  Akim Demaille  <akim@epita.fr>
11424         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
11426 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
11428         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
11429         (_AC_FUNC_VFORK): this.
11430         Remove AC_DEFINEs and don't guess cross-compilation values.
11431         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
11432         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
11433         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
11434         vfork doesn't work.
11435         Guess values if cross-compiling, but warn.
11436         * acfunctions: Add AC_FUNC_FORK.
11437         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
11438         and vfork appropriately.
11440 2001-06-18  Akim Demaille  <akim@epita.fr>
11442         * doc/autoconf.texi (Functions Portability): New section.
11444 2001-06-18  Akim Demaille  <akim@epita.fr>
11446         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
11447         in $M4.
11448         Suggested by Andreas Schwab.
11450 2001-06-18  Akim Demaille  <akim@epita.fr>
11452         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
11453         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
11454         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
11455         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
11456         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
11457         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
11458         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
11459         the converse).
11461 2001-06-18  Akim Demaille  <akim@epita.fr>
11463         * doc/autoconf.texi (ms): New index.
11464         (Macro Index): Rename as...
11465         (Autoconf Macro Index): this.
11466         (M4 Macro Index): New appendix.
11467         (Programming in M4): New chapter.
11468         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
11469         (Quoting): Rename as...
11470         (M$ Quotation): this.
11471         Be part of `Programming in M4).
11473 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
11475         * tests/torture.at (AC_ARG_VAR): Set variables and export them
11476         in separate statements for compatibility with Tru64 v5.1.
11478 2001-06-17  Akim Demaille  <akim@epita.fr>
11480         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
11481         current values of the precious variables, not the previously
11482         cached values.
11483         Pass precious variables which are set to config.status.
11484         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
11485         * tests/torture.at (AC_ARG_VAR): New.
11487 2001-06-15  Paul Eggert  <eggert@twinsun.com>
11489         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
11490         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
11491         and explain why and how to replace them.
11492         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
11493         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11495 2001-06-15  Akim Demaille  <akim@epita.fr>
11497         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
11498         Reported by Bruno Haible.
11500         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
11501          (_AC_ARG_VAR_PRECIOUS): to here.
11503 2001-06-15  Pavel Roskin  <proski@gnu.org>
11505         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
11506         an unused pointer use cast to this type and `if' statement to
11507         avoid warnings from the compiler.
11508         (AC_HEADER_TIME): Likewise.
11509         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
11510         in `if' statement to avoid warnings from the compiler. Declare
11511         ac_aggr static to avoid the need to initialize it.
11513 2001-06-14  Akim Demaille  <akim@epita.fr>
11515         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
11516         Macros'.
11518 2001-06-13  Akim Demaille  <akim@epita.fr>
11520         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
11521         Suggested by Alexander Mai.
11523 2001-06-13  Akim Demaille  <akim@epita.fr>
11525         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
11526         sys/types.h and sys/stat.h, and check for them.
11528 2001-06-13  Akim Demaille  <akim@epita.fr>
11530         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
11531         INCLUDES.
11533 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11535         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
11536         succeeds and only try adding libdnet upon a failure.
11538 2001-06-12  Akim Demaille  <akim@epita.fr>
11540         * autoscan.in (&output_kind): Output the comment only if it exists.
11541         (%kind_comment): Add entry for `programs'.
11542         (&output_programs): Use &output_kind.
11543         (&output_functions, &output_identifiers, &output_headers)
11544         (&output_programs): Inline, and remove.
11546 2001-06-12  Akim Demaille  <akim@epita.fr>
11548         * autoscan.in (%kind_comment): New.
11549         (output_kind): New.
11550         (output_functions, output_identifiers, output_headers): Use it.
11552 2001-06-12  Akim Demaille  <akim@epita.fr>
11554         * autoscan.in (&print_unique): Take `$kind' and `$word' as
11555         arguments, to factor indirections into `%macro' and `%used'.
11556         (%generic_macro): Fix a typo.
11558 2001-06-12  Akim Demaille  <akim@epita.fr>
11560         * aclibraries: New.
11561         * autoscan.in (@kinds): Add `libraries'.
11562         Use `@kinds' instead of hard coded lists.
11563         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
11564         Remove, replaced by...
11565         (%used): this.
11567 2001-06-12  Akim Demaille  <akim@epita.fr>
11569         * autoscan.in (%functions_macros %headers_macros)
11570         (%identifiers_macros %programs_macros %makevars_macros): Remove,
11571         replaced by...
11572         (%macro): New.
11574 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
11576         * aclang.m4 (AC_NO_EXECUTABLES): Override
11577         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
11579 2001-06-11  Akim Demaille  <akim@epita.fr>
11581         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
11582         trailing new line.
11583         Reported by Andreas Schwab.
11585 2001-06-11  Akim Demaille  <akim@epita.fr>
11587         * Makefile.am, Makefile.maint: Typos.
11589 2001-06-09  Akim Demaille  <akim@epita.fr>
11591         * doc/autoconf.texi (Here-Documents): New section, gathering
11592         documentation about here-documents.
11593         Use `href', not `uref', and other changes.
11595 2001-06-09  Akim Demaille  <akim@epita.fr>
11597         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
11598         chapter.
11600 2001-06-09  Akim Demaille  <akim@epita.fr>
11602         * doc/autoconf.texi (Limitations of Builtins): Complete the
11603         description of the here-docs penalties with Alexandre Oliva's
11604         explanations.
11606 2001-06-01  Paul Eggert  <eggert@twinsun.com>
11608         * doc/autoconf.texi: Talk about here documents and speedups.
11609         Do not use "echo" on arbitrary strings.
11610         Spell "here-documents" consistently with the standard.
11612 2001-06-09  Akim Demaille  <akim@epita.fr>
11614         * doc/autoconf.texi (Concept Index): Introduce it.
11615         Regenerate the menus.
11617 2001-06-09  Akim Demaille  <akim@epita.fr>
11619         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
11620         * config/prev-version.txt: New.
11621         * config/move-if-change: New, for GNU libc.
11623 2001-06-06  Pavel Roskin  <proski@gnu.org>
11625         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
11627 2001-06-06  Akim Demaille  <akim@epita.fr>
11629         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
11630         properly when $1 is not a literal.
11631         Fixes PR Autoconf/187, reported by Bram Moolenaar.
11633 2001-06-06  Akim Demaille  <akim@epita.fr>
11635         Invoking AC_COPYRIGHT before AC_INIT fails.
11637         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
11638         * acgeneral.m4 (_m4_divert(VERSION_FSF))
11639         (_m4_divert(VERSION_USER)): New.
11640         (AC_COPYRIGHT): $2 is the diversion to use.
11641         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
11642         (AC_INIT): Remove dead comments as now it's commutative.
11644 2001-06-06  Akim Demaille  <akim@epita.fr>
11646         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
11647         PR autoconf/187.
11649 2001-06-05  Akim Demaille  <akim@epita.fr>
11651         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
11652         can be empty.
11653         `*dir' variables cannot be NONE.
11654         Reported by Mark Kettenis.
11656 2001-06-05  Paul Eggert  <eggert@twinsun.com>
11658         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
11660 2001-06-04  Akim Demaille  <akim@epita.fr>
11662         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
11663         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
11664         (AC_TR_SH): Move as...
11665         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
11666         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
11667         (AS_TR_SH): these.
11668         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
11669         (_AS_TR_SH_PREPARE): New.
11670         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
11671         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
11673 2001-06-02  Akim Demaille  <akim@epita.fr>
11675         * Makefile.am (.m4.m4f): Pass the options first.
11676         Fixes PR autoconf/182.
11678 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
11680         GNU getopt, when POSIXLY_CORRECT does not permute options and
11681         arguments.  So pass the options first.
11682         Fixes PR autoconf/184.
11684         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
11685         (run_m4): Remove files.
11686         (run_m4f): Remove.
11687         Update remainder of script to use them.
11688         (for warning in): Do not use a literal comma as it will not be
11689         split by IFS.
11691 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
11693         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
11694         Fortran compilers to check.
11695         (_AC_PROG_F77_V): Add '-###' as a possible option to print
11696         information on library and object files.
11697         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
11698         to check.
11700 2001-06-02  Akim Demaille  <akim@epita.fr>
11702         * autom4te.in (Request::@request): Declare with `vars', not `my',
11703         as it prevents updates via `do FILENAME'.
11705 2001-06-02  Akim Demaille  <akim@epita.fr>
11707         * configure.in (standards_texi): Remove, dead code.
11709 2001-06-02  Akim Demaille  <akim@epita.fr>
11711         * autom4te.in: New.
11713 2001-06-02  Pavel Roskin  <proski@gnu.org>
11715         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
11716         for signals other than 0 - exit with code 1.
11717         * m4sh.m4 (AS_TMPDIR): Likewise.
11718         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
11719         * autoheader.in: Likewise.
11720         * autoreconf.in: Likewise.
11721         * tests/torture.at (Signal handling): New test for the above.
11723 2001-06-01  Akim Demaille  <akim@epita.fr>
11725         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
11726         message.
11728 2001-05-31  Akim Demaille  <akim@epita.fr>
11730         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
11731         Add copyright and comments.
11732         * acheaders: Add stdint.h.
11733         Suggested by Paul Eggert.
11735 2001-05-31  Akim Demaille  <akim@epita.fr>
11737         * atgeneral.m4 (AT_INIT): Use $SHELL.
11738         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
11740 2001-05-31  Akim Demaille  <akim@epita.fr>
11742         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
11743         stdint.h.
11744         From Paul Eggert and Lars Hecking.
11746 2001-05-31  Akim Demaille  <akim@epita.fr>
11748         * tests/base.at: Adjust line numbers in error messages.
11750 2001-05-31  Akim Demaille  <akim@epita.fr>
11752         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
11753         to emit the bangshe line.
11754         Reported by David Carter.
11756 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
11758         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
11759         Fortran (95) compilers to check.
11761 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
11763         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
11764         Macro Archive URL.
11766 2001-05-23  Pavel Roskin  <proski@gnu.org>
11768         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
11769         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
11770         (AC_PROG_CXXCPP): Likewise.
11772 2001-05-22  Akim Demaille  <akim@epita.fr>
11774         * config: New directory.
11775         * configure.in: AC_CONFIG_AUX_DIR it.
11776         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
11778 2001-05-22  Akim Demaille  <akim@epita.fr>
11780         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
11781         * autoupdate.in: Specify the Emacs mode.
11782         * acversion.m4.in: Rename as...
11783         * acversion.m4: this.
11784         * tests/Makefile.am (CLEANFILES): More garbage.
11786 2001-05-22  Akim Demaille  <akim@epita.fr>
11788         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
11789         Rename as...
11790         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
11791         these.
11793 2001-05-21  Akim Demaille  <akim@epita.fr>
11795         * configure.in: Bump to 2.50a.
11797 -----
11799 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11801 This file is part of GNU Autoconf.
11803 GNU Autoconf is free software; you can redistribute it and/or modify
11804 it under the terms of the GNU General Public License as published by
11805 the Free Software Foundation; either version 2, or (at your option)
11806 any later version.
11808 GNU Autoconf is distributed in the hope that it will be useful,
11809 but WITHOUT ANY WARRANTY; without even the implied warranty of
11810 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11811 GNU General Public License for more details.
11813 You should have received a copy of the GNU General Public License
11814 along with autoconf; see the file COPYING.  If not, write to
11815 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
11816 Boston, MA 02110-1301, USA.