* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
[autoconf/tsuna.git] / ChangeLog
blob2ce09fed8ff141e818bb81ad4bd44b1fe40b78b4
1 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
4         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
5         Bill Northcott in
6         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
8 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
11         pacify insanely picky compilers.  Problem reported by Eric Blake.
13         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
14         longer supported by Sun.
16 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
19         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
20         -Wundef -Werror".  Problem reported by David Fang in
21         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
22         * doc/autoconf.texi (Header Templates, Default Includes):
23         (Particular Functions, Generic Functions, Header Portability):
24         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
25         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
26         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
27         Prefer #ifdef to #if.
28         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
29         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
30         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
31         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
32         Likewise.
33         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
34         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
35         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
36         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
37         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
38         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
39         this.
41 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
44         problems with arg script text that doesn't end in newline, and
45         with '-e a...'.  Problems reported by Ralf Wildenhues.
47 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
49         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
50         check for libXt by a check for libX11.
52 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54         * doc/autoconf.texi (config.status Invocation): Adjust according
55         to last change.
57 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
60         --help' should mention that `--version' outputs configuration
61         settings.  Report by Bruno Haible.
63 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65         Fix test suite failures reported by Pierre in
66         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
67         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
68         the compiler created a file "b.out" when it didn't create anything
69         at all.
70         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
71         Discard stderr too, when invoking the test script.
73 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
75         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
76         in the restoring of the werror flag.
78 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80         * doc/autoconf.texi (Volatile Objects): Be even a little
81         less skeptical about "volatile", after discussion with
82         Bruno Haible on bug-gnulib.
83         (Limitations of Usual Tools): Warn about sed stripping
84         leading white space from text.  From Bruno Haible.
86 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
88         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
89         compiler complains about it, even if things works after the
90         complaint.  Problem reported by Peter O'Gorman.
92         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
93         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
94         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
96 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
98         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
99         after -R regardless of host.  Patrick Welche reports that this
100         fixes things on NetBSD 3.99.
102         * NEWS: Recommend M4 1.4.5.
103         * README: Likewise.
104         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
105         * tests/tools.at (autom4te cache): Update wording of diagnostic
106         to match M4 1.4.5.
108 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
110         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
111         under AC_C_VOLATILE.
112         (Volatile Objects): Be a little less skeptical about what
113         "volatile" means.  Derived from thoughts by Ben Pfaff in
114         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
116 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118         * doc/autoconf.texi: Fix some typos.
120 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
123         more globally, since the 2006-06-30 patch didn't suffice.  Problem
124         reported by Keith Marshall.  Also, don't bother with builddir2,
125         since it shouldn't be needed any more.
127 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
129         * doc/autoconf.texi (Generic compiler characteristics):
130         Document AC_COMPUTE_INT.  Fix wrong statements on Default
131         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
133         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
134         (_AC_COMPUTE_INT): Add obsoletion warnings.
135         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
136         AC_COMPUTE_INT.
138         * NEWS: Document change.
140 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
142         * doc/autoconf.texi (Volatile Objects): New section.
144         * NEWS: Document previous change.
146 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
148         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
149         Require that long long int be at least 64 bits wide.  C99 requires
150         this and enough programs depend on it so we should check for it.
151         Bruno Haible reports in
152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
153         that long long int is 32 bits wide with some nonstandard compilers.
154         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
156 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
158         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
159         to a nonexistent file, so that we don't have to worry about
160         a local site configuration that doesn't use /usr/local.
161         Problem reported by Keith Marshall in
162         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
164 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
166         * doc/autoconf.texi: Be more consistent about using @acronym with
167         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
168         quite right (it talked about "OSF/Tru64", even though the
169         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
170         and it even mentioned "OSF 4"!) and at this point there's little
171         reason to talk about OSF any more, since it died in 1994.
172         (Specific Compiler Characteristics): Simplify example of
173         negative-size array.
174         (File Descriptors): Reorder to make the text flow better.
175         Remove joke about "appreciate the various levels"; I didn't get it.
176         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
177         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
178         (File Descriptors, Limitations of Usual Tools):
179         Tone down the advice against renaming or removing open files.
180         (Limitations of Usual Tools): Add a new section, on 'rm'.
182 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
184         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
185         -lXt in LIBS, idea from Karsten Hopp; this was due since
186         this change:
188         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
189         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
190         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
191         (which belong to Xt, not X itself).  See Debian bug 327655.
193 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
195         * configure.ac (AC_INIT): Bump to 2.60a.
196         * NEWS: Update.
198 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
200         Version 2.60.
202         * configure.ac, NEWS: Update.
204 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
206         * config/texinfo.tex: Sync from upstream.
208         * bin/autom4te.in (handle_traces): Transform the `@S|@'
209         quadrigraph correctly in traces.
211         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
212         Fix typos.
214         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
215         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
216         not defined.
217         * doc/autoconf.texi (Changed Directory Variables): New node,
218         to document the whole `datarootdir' business a bit better.
219         * NEWS: Update.
220         * tests/torture.at (datarootdir workaround): Extend test.
221         Prompted by report by Alexandre Julliard.
223 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
225         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
226         when using default mode of IBM C 6 for AIX.  Problem and two-line
227         fix reported by Larry Jones.
229 2006-06-22  Alexandre Julliard <julliard@winehq.org>
231         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
232         about literal '${datarootdir}' if a definition is found in the
233         output file.
235 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
237         * NEWS: Use "M4" rather than "m4" when appropriate.
238         Problem reported by Eric Blake.
239         * doc/autoconf.texi: Likewise.
240         Use @acronym around BSD, GCC, and GNU when appropriate.
241         (Why GNU M4): Renamed from "Why GNU m4".
242         (Redefined M4 Macros): Mention that Posix
243         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
244         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
245         to int.
247 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
249         * bin/autom4te.in (handle_output): Do not forbid the empty
250         pattern.
251         * tests/tools.at (autoconf: the empty token): New test.
253 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
255         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
256         calls, so that we do not care whether they are LIFO or FIFO;
257         in the m4_wrap, do not check which diversion is the topmost
258         one, just check that the stack is balanced at the end.
259         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
260         base diversion forever--pop the previous diversion before
261         opening the new one; consequently, remove the m4_wrap call.
262         * lib/autotest/general.m4 (AT_INIT): Likewise.
263         * tests/m4sugar.at: Do not use
264         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
266 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
267         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
269         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
270         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
271         Rework example of m4wrap token-pasting trouble so that it doesn't
272         care whether it's LIFO or FIFO.
273         Fix some "contrary to"s that are awkward in English.
275 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
277         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
278         to `yes' instead of `int$1_t' if the type is found, for more
279         consistent configure output (where $1 is the number of bits).
280         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
281         Suggested by Bruno Haible.
283         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
284         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
285         with system headers.  Report by Bruno Haible.
287 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
289         * config/config.guess, config/config.sub: Sync from upstream.
291         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
292         in order to avoid picking up an older installed frozen m4sh.m4f.
293         Besides an outdated shell startup, this could have been created
294         by an earlier M4 version with incompatible frozen file format.
296 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
298         * README: Recommend m4 1.4.4 instead of 1.4.3..
299         * doc/autoconf.texi: Likewise.
300         (Special Chars in Names): Say that $(.FOO) is portable, as
301         suggested by Stepan Kasal.
302         (Installation Directory Variables, Build Directories):
303         (Automatic Remaking, Subdirectories, Fortran Compiler):
304         (Making testsuite Scripts, Defining Directories):
305         Quote variable usages better.
306         (Making testsuite Scripts): Add clean-local rule to makefile
307         snippet, by Eric Blake.
308         (Installation Directory Variables): Fix table item font.
309         Reword slightly to clarify.  Generalize advice about
310         not using special characters to include all file-related
311         vars, not just VPATH.
312         (Special Chars in Variables): Warn about special characters in
313         $(srcdir) too.
314         (Assignments): Clarify default-value example as suggested by
315         Ralf Wildenhues in
316         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
317         (Special Shell Variables): Note leading ./ or ../, as suggested
318         by Eric Blake.
319         (Limitations of Builtins): Under cd, warn about CDPATH.
320         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
321         Ralf Wildenhues.
323 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
325         * doc/autoconf.texi (Configuration Actions): Remove duplicate
326         `@var', for texi2html.
327         (Systemology): Some more word wrapping, for DVI output.
328         (autom4te Invocation): The short option for `--melt' is `-M',
329         not `-m'.
331 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
333         * doc/autoconf.texi: More formatting and English tweaks,
334         many suggested by Ralf Wildenhues.
335         Reword to avoid "@code{...}'s" and the like, since it's ugly
336         with Emacs info mode.  discontents -> woes.
337         Put a few "will"s back.  time stamp -> timestamp.
338         side-effect -> side effect.
340 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
342         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
343         Warn about $@ not persisting.  Problem reported by Julien Danjou in
344         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
345         (Special Chars in Names): Renamed from Leading _ in Macro Names.
346         Mention other special chars, too.
348 2006-06-14  Eric Blake  <ebb9@byu.net>
350         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
352 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
354         * doc/autoconf.texi: Some systematic minor improvements, as
355         follows.  Use "makefile" when talking about makefiles
356         generally (which might be named "makefile" or "Makefile" or even
357         "foo.mk"), "Makefile" when talking about a specific makefile
358         called "Makefile".  This unclutters the text from weird quotes
359         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
360         values" rather than "@var{foo}s" and similar constructs containing
361         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
362         English-language improvements.  Change the prefix "sub-" to "sub"
363         and "re-" to "re".
364         Put blank lines around examples more consistently.
365         Avoid "rather" and "very" as intensifiers.
366         Avoid "will" as an auxiliary.
367         (Limitations of Make): Split this node into....
368         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
369         (Leading _ in Macro Names, Backslash-Newline-Newline):
370         (Backslash-Newline Comments, Long Lines in Makefiles):
371         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
372         (obj/ and Make, make -k Status, VPATH and Make):
373         (VPATH and Double-colon, $< in Explicit Rules):
374         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
375         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
376         New nodes, resulting from splitup of Limitations of Make.
377         All cross-references changed.  Raise the top node from
378         a section to a chapter, and all subnodes accordingly.
379         Redo the introductory wording to match the new organization.
380         (Installation Directory Variables): Use an example that is
381         closer to what Autoconf actually does.  Mention that VPATH's
382         value should not contain metacharacters or white space.
383         (Fortran Compiler): Fix a VPATH bug in an example.
384         (Leading _ in Macro Names): Mention that this problem is no longer
385         of practical concern.
386         (VPATH and Make): Reword the advice to make it clearer
387         that Autoconf and Automake support VPATH in non-GNU make, but
388         many packages have bugs in this area.
389         ($< in Explicit Rules): Refer to Build Directories rather
390         than using a (non-VPATH-safe) example.
391         (Automatic Rule Rewriting): Mention the sort of disaster that
392         can ensue with Solaris-style rule rewriting with VPATH.
394 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
396         * doc/install.texi (Compilers and Options): Weaken the
397         suggestion to use GNU make for VPATH builds.
399         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
400         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
402         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
403         in regular expression.
405 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
407         * doc/autoconf.texi (Installation Directory Variables):
408         Drop extra @samp from `@table @samp' item.
409         (Limitations of Usual Tools): Comment fix.
410         Do not nest @samp just to point to other table items.
411         (Writing testsuite.at) <AT_CHECK>: The second argument to
412         `@dvar' is already @samp'ed.
413         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
414         do not use @var in the second argument.
416 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
418         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
419         $as_shell.exe too.  Problem reported by Andreas Buening in
420         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
422 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
424         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
425         `unused variable' compiler warning, for `-Wall -Werror'.
426         Reported by Jaap Haitsma in
427         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
429 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
431         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
432         case the compiler dumps core.  Problem reported for
433         OpenServer 5.0.7 by Tim Rice in
434         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
435         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
436         Likewise.
438 2006-06-06  Tim Rice <tim@multitalents.net>.
440         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
441         "ERROR" only shows up in "make check" output if there is an
442         error.
444 2006-06-06  Eric Blake  <ebb9@byu.net>
446         * tests/tools.at (automatically allowed tokens): Fix typo.
448 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
450         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
452         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
453         typically overflows on x86 CPUs, even though the C standard
454         requires otherwise.
456 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
458         * configure.ac (AC_INIT): Bump to 2.59e.
459         * NEWS: Update.
461 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
463         Version 2.59d.
465         * config/texinfo.tex: Sync from upstream.
467         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
468         seen, invoke libtoolize with `--ltdl' argument.
469         * lib/autom4te.in (Autoreconf-preselections): Adjust.
470         * NEWS: Update.
471         Suggested by Eric Blake.
473 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
475         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
476         reported by Ralf Wildenhues.
477         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
479 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
481         * THANKS: Update.
483 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
485         * doc/autoconf.texi: Modernize some of the references to Solaris.
487 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
489         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
490         message issued by AC_REQUIRE.
491         * tests/m4sugar.at: Check m4_require's error message.
492         * tests/base.at: Check AC_REQUIRE's error message.
493         * tests/local.at (AT_CHECK_M4): New macro, almost identical
494         to...
495         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
496         AT_CHECK_M4.
497         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
498         `expout' as the last parameter.
499         * tests/tools.at: Adapt to the above change.
501 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
503         * doc/autoconf.texi (Limitations of Usual Tools): Correct
504         information about race-free implementations of mkdir.
506 2006-06-04  Eric Blake  <ebb9@byu.net>
508         * bin/autoreconf.in (help): Document M4 environment variable.
509         * bin/autoconf.as (Usage): Likewise.
510         * bin/autom4te.in (help): Likewise.
511         * doc/autoconf.texi (autom4te Invocation): Likewise.
513 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
515         * NEWS: GNU make now recommended for VPATH builds.
516         Mention that some macros are now documented to be obsolescent.
517         * doc/autoconf.texi:
518         Prefer "current" to "modern" to describe
519         currently-used (albeit perhaps old-fashioned) hosts.
520         Mention which ancient features no longer need to be worried about.
521         setgid -> set-group-ID
522         setuid -> set-user-ID (these are the Posix terms)
523         Fix some misuses of "only".
524         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
525         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
526         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
527         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
528         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
529         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
530         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
531         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
532         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
533         Mention that these macros are obsolescent.
534         (Installation Directory Variables): shall -> should
535         (File Descriptors): Mention that 0, 1, 2 might get reopened.
536         Mention that it's now safe to use 3 and 4.
537         (Limitations of Usual Tools): cp -r is now specified by Posix.
538         Omit longwinded and obsolescent discussion of cp -f.
539         Modernize discussion of expr, ls.
540         (Limitations of Make): Modernize discussion of VPATH builds.
541         Mention $? as a workaround in some cases.
542         * doc/install.texi (Basic Installation):
543         Mention "./configure; make; make install" first.  Be more
544         specific about why this file is generic.  Remove unnecessary
545         parens.  Remove misleading "only".  Remove obsolete advice
546         about csh.  Don't say "configure" takes awhile; say it
547         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
548         and CC=c99 rather than CC=c89, as these are blessed by current
549         Posix.  Recommend GNU make if doing a VPATH build.
551 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
553         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
554         examples involving shell prompts.
556 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
557         and Paul Eggert  <eggert@cs.ucla.edu>
559         * doc/autoconf.texi (Here-Documents): Add details about the
560         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
561         use "here-documents" instead of "here documents".
563 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
565         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
567 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
569         * doc/autoconf.texi (File System Conventions): Warn about ":"
570         anywhere in directory names.
572 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
574         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
575         about quoting the case statement, just in case.
576         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
577         was fixed in ksh93g; reported by Ralf Wildenhues.
579 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
581         * doc/autoconf.texi (System Services): Do not document
582         overriding EXEEXT via ac_cv_exeext=ext.
583         (Particular Programs) <AC_PROG_MKDIR_P>:
584         Document that ${MKDIR_P} understands --.
585         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
586         comment.
588 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
590         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
591         argument with leading hyphen.  Problem reported by Paul Eggert.
593 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
595         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
596         about quoting ac_try: quote all of it, if any of it seems suspicious.
597         This means we don't have to worry about ${ or sed any more.
598         Also, double-quote the case statement, to work around misuses via
599         underquoting as reported by Ralf Wildenhues in
600         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
601         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
602         undocumented and dangerous macro.
603         Problem reported by Ralf Wildenhues in
604         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
606 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
608         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
609         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
610         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
612 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
614         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
615         since evidently some packages rely on the old, broken behavior.
616         Problem reported by Ralf Wildenhues in
617         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
618         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
619         pre-2006-05-26 definitions, but leave in the comments that
620         these macros are dangerous and should not be used.
621         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
622         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
623         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
624         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
625         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
627 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
629         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
630         the use of 'tr', since this is our only use of 'tr'.
632 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
633         and Paul Eggert  <eggert@cs.ucla.edu>
635         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
636         Don't assume 'grep' works on long lines, since AIX grep doesn't.
638 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
640         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
641         the output file in the `${datarootdir}' test.
643 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
644         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
646         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
647         mention of `datarootdir' in the input file(s), but literal
648         `${datarootdir}' in the output file, and we haven't warned yet,
649         then warn as well: the user may have (erroneously) used
650         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
651         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
652         * tests/torture.at (datarootdir workaround): Extend this test.
653         * NEWS: Update.
655 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
656         and Paul Eggert  <eggert@cs.ucla.edu>
658         * doc/autoconf.texi (autoheader Invocation): The first argument to
659         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
660         alternatives and clear up the language a bit.
662 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
664         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
665         ac_config_guess, ac_config_sub, ac_configure.
666         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
667         Fix typo that prevented an unnecessary space from being removed.
668         Problems reported by Ralf Wildenhues in:
669         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
671 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
673         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
674         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
675         Don't use the term "thread-safe" to talk about mkdir race
676         conditions, since the problem is more a process than a thread
677         issue.  Problem reported by Stepan Kasal in:
678         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
679         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
680         the test for 'install' more closely.  Look at MKDIR_P first.
681         Look in the PATH, and at /opt/sfw/bin.
682         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
683         Don't bother to try mkdir -p, since we already check mkdir --version;
684         just look at the version number.  (There's no easy way to check
685         for race-free implementations.)
686         * tests/tools.at (autoconf: subdirectories): Adjust to above
687         changes, since MKDIR_P now might end in "/mkdir -p".
689         * doc/autoconf.texi (autoheader Invocation): Mention that the
690         first arg of AC_DEFINE_UNQUOTED must be a literal.
691         Problem reported by Ben Pfaff in
692         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
694         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
695         * doc/autoconf.texi (Special Chars in Variables): New section.
696         (Preset Output Variables): Warn about special chars in CPPFLAGS.
697         (Installation Directory Variables): Quote $(datadir) better.
698         (Limitations of Builtins): Describe some of eval's trickiness.
700         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
701         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
702         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
703         in front of every arg, not just trailing args.  Quote apostrophes.
704         (_AC_EVAL_ECHO): New macro.
705         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
706         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
707         removed.
708         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
709         exposed by quoting of eval argument.  Put the command on line line
710         so it logs better.
711         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
712         (_AC_PATH_X, AC_PATH_X): Quote more safely.
713         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
714         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
715         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
716         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
717         Use eval more safely.
718         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
719         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
720         to be replaced.
721         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
722         lines, exposed by quoting of eval argument.
724 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
725         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
727         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
728         initialization of `ac_cv_exeext', do not override it if it was
729         already set, unless it was set to `no', for compatibility with
730         Autoconf-2.13, and comment this.
731         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
732         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
733         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
734         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
735         Document that this test may be overridden by setting
736         `ac_cv_exeext'.
738 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
740         Revert these two patches:
742         2006-04-06  Eric Blake  <ebb9@byu.net>
743         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
744         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
745         2006-04-01.
747         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
748         Clean up _AC_COMPILER_EXEEXT* macros.
749         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
750           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
751           ac_file to the name of the default output file and call
752           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
753           initial `rm' of the candidate files...
754         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
755           the same list in subsequent `rm' calls, and for the temporary
756           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
757           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
758         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
759         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
760           no longer needed) by libtool.  Make it a cache check.
761         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
762           copied here by mistake.
763         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
764           _AC_COMPILER_EXEEXT.
765         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
766           _AC_COMPILER_OBJEXT directly.
767         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
769 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
771         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
772         Fix description of how the buggy `sed' works.
774 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
776         Sync from Automake:
778         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
779         ENOLCK.  Only mention `make -j' when applicable.  Only raise
780         fatal errors when `make -j' is involved.  Improve error message.
782 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
784         * doc/autoconf.texi (Here-Documents): We now know more about
785         the variable expansion in here documents bug.
786         Thanks to Tim Rice and Stepan Kasal.
788         * doc/autoconf.texi (Making testsuite Scripts): Add an example
789         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
791 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
793         * tests/autotest.at (Multiline command from M4 expansion):
794         No failure to be expected if the shell quotes newlines in
795         commands in the `set -x' output.  Report by Tim Rice.
796         * THANKS: Update.
798 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
800         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
801         expansion in the here-documents used by config.status, as that
802         runs afoul of the Korn shell version M-12/28/93d bug described in
803         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
804         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
805         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
807 2006-05-23  Jim Meyering  <jim@meyering.net>
809         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
810         Fix typo introduced with 2006-04-02 change.  It reversed the sense
811         of the test.
813 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
815         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
816         ac_dB slightly, to save bytes in the script.
817         Max out at 50 lines, rather than 96; this is more likely
818         (though not guaranteed) to avoid obscure 'sed' failures.
820 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
822         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
823         `tr -d -' as bad option argument.  Work around this by deleting
824         an unrelated character.
825         Report by Tim Rice <tim@multitalents.net>.
827 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
828             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
829             Stepan Kasal  <kasal@ucw.cz>
831         * doc/autoconf.texi (Particular Programs): Do not promise that
832         we always prefer the GNU version of the program, and that we
833         search according to PATH; both rules can have exceptions.
834         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
835         AC_PROG_SED.  Move descriptions of limitations
836         to the Limitations of Usual Tools section.
837         (Limitations of Usual Tools) <sed>: Mention script length
838         limitations with Solaris /usr/ucb/sed.
839         <grep>: Fix wording for empty alternative.  Mention that -c and
840         -l should not be combined, and that -E and -F should not be
841         combined.
843 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
844         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
846         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
847         limits in Solaris 8 /usr/ucb/sed by testing a long script.
849 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
851         * doc/autoconf.texi (Defining Symbols): Literal parameter of
852         AC_DEFINE is now passed to m4_pattern_allow.
853         * NEWS: Mention that; likewise for AC_SUBST.
854         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
855         the parameter to m4_pattern_allow.
856         * tests/tools.at: Add a check for that.
858 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
860         * lib/autoconf/status.m4: Fix typos.
862 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
864         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
865         only the files that this macro generates.
867 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
869         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
870         the HP-UX sed limitation of 99 commands, labels do not count.
871         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
872         in the comment.
873         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
875 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
877         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
878         Import the following fix from coreutils:
880         2006-01-13  Jim Meyering  <jim@meyering.net>
882         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
883         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
884         not double-quote uses of that variable, to accommodate the rare
885         case in which getmntent is available in none of the libraries
886         checked.  This happens at least on FreeBSD 5.0.
888 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
890         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
891         ac_config_guess, ac_config_sub, and ac_configure, since evidently
892         some other programs unwisely rely on these undocumented vars.
893         But put in warning comments about them.
894         Problem reported by Ralf Wildenhues in
895         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
896         * NEWS: Document that these variables are intended to go away.
898 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
900         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
901         and set the language to C++ (analogous to the equivalent Fortran
902         tests).
904         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
905         * doc/autoconf.texi (C++ Compiler): Document it.
906         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
907         * NEWS: Update.
909 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
911         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
912         that caused config.status to generate 100-command sed scripts; the
913         portable limit is 99.
915 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
917         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
918         variable `ac_d' instead of `d' to avoid infringing namespace.
919         Report by Ralf Menzel.
921 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
923         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
924         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
925         * tests/tools.at (autoconf: subdirectories): New test, taken from
926         the corresponding problem report by Ralf Wildenhues in:
927         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
929         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
930         Quote some uses of shell variables if they might suffer unexpected
931         globbing.  This doesn't fix all instances of quoting problems that
932         I found, just the easy ones that look safe.
933         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
934         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
935         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
936         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
937         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
938         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
939         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
940         Likewise.
941         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
942         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
944 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
946         * bin/autoreconf.in ($help): Reword according to the manual.
947         Suggested by Olly Betts.
949 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
950         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
952         * bin/autoreconf.in: Pass the directory argument to
953         `require_configure_ac'.  Fix comment.
954         * tests/torture.at (Configuring subdirectories): Expose this.
955         Reported by Olly Betts.
957 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
959         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
960         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
961         Automake as follows:
963         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
964         `$configure_in' instead of `configure.in', to preserve
965         directory component.
967 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
969         * config/config.guess, config/config.sub, config/texinfo.tex,
970         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
972 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
974         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
975         test for C99 conformance; (bool) 0.5 is an integer constant
976         expression, but (bool) -0.5 is not.  Problem reported by Fedor
977         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
979 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
981         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
982         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
983         Warn about obsolete install-sh files.  Remove stray sentence
984         fragment and fix cross reference.
985         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
986         install -d; this undoes the 2006-05-10 change.
987         (MKDIR_P): Mark with AN_MAKEVAR.
988         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
989         that we don't require $INSTALL to be thread-safe.  Move comments
990         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
991         of AC_PROG_INSTALL.  Output a message saying that we're checking
992         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
993         MKDIR_P instead of AC_SUBST.
994         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
995         Special magic for MKDIR_P, too.
996         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
997         a dnl.
998         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
1000 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1002         Sync from Automake, as follows:
1004         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1005         * config/install-sh: Initialize IFS, so field splitting isn't
1006         turned off later.
1007         * config/mkinstalldirs: Likewise.
1008         * config/missing: Remove superfluous quotes.  Replace all uses of
1009         `[' by `test', for consistency, and for..
1010         * config/missing (sed_minuso, sed_output): New variables.
1011         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
1012         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
1013         Fixes `missing' to detect `--output' for help2man.  Fixes
1014         PR automake/483.  Report by Dennis J. Linse.
1015         (autom4te): Document in `missing --help'.
1017 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1019         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
1020         * config/install-sh: Don't use 'path' to talk about file names,
1021         as per GNU coding standards.  Close a race condition reported by Ralf
1022         Wildenhues and Stepan Kasal.  There is still a race condition
1023         on hosts that predate Posix 1003.1-1992, but we can't help this.
1024         Don't mishandle weird characters like space on pre-Posix hosts.
1025         Invoke mkdir at most once per dir arg on pre-Posix hosts.
1026         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
1027         AC_PROG_MKDIR_P from AS_MKDIR_P.
1028         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
1029         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
1030         earlier editions are not (including Automake 1.8.3).
1031         Do not suggest mkinstalldirs for thread-safety.
1032         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
1033         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
1034         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
1035         presence of special characters and race conditions.
1036         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
1037         in Autoconf's name space.
1039 2006-05-10  Bruno Haible  <bruno@clisp.org>
1040         and Paul Eggert  <eggert@cs.ucla.edu>
1042         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
1043         from Automake with minor changes.
1044         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
1046 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1048         * config/install-sh: Update to Automake CVS version, as follows:
1049         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
1050         * lib/install-sh: Simplify the expr implementation of dirname.
1051         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1052         * lib/install-sh: Handle --, and diagnose unknown options.
1054 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1056         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
1057         `./autom4te' to create `./testsuite', since the `all' target
1058         will ensure its presence, but `installcheck' should not create
1059         the uninstalled wrappers.
1061         * tests/torture.at (Unusual Automake input files): Skip if we
1062         detect automake < 1.8.
1064 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1066         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
1067         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
1068         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
1069         * NEWS: Update.
1071 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1073         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
1074         munge (multiple) white space and other oddities.
1075         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
1076         single quotes in variable assignment.
1077         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
1078         and similar failures by adding multiple spaces, tabs, and other
1079         special characters.
1080         Report and different test suggested by Francesco Romani
1081         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
1083         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
1084         single quotes, we only need to search for single quotes; this
1085         both simplifies the search pattern, and makes us less
1086         susceptible to `echo' variations for arguments not containing
1087         single quotes.
1088         (_AC_ARG_VAR_VALIDATE): Likewise.
1090 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1092         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
1093         `$*' and IFS concatenation issue with traditional shells and
1094         bash-2.04.  Report by Seanster@Seanster.com.
1096 2006-05-03  Bruno Haible  <bruno@clisp.org>
1098         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
1099         precisely which Mac OS X versions have the od problem.
1101 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1103         * doc/autoconf.texi: Use @option systematically.
1105 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1106         and Bruno Haible  <bruno@clisp.org>
1108         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
1109         about 'od'.
1110         (Integer Overflow): Mention the special case of integer division
1111         overflow.
1113 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1115         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
1116         traditional shells like the Solaris one that do not use the
1117         first IFS character for assembling `$*'.
1118         Prompted by a related report from autoconf_bug@nro.ca.
1120 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1121         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1123         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
1124         Mention more problems with the -e option.
1126 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1128         * NEWS: Typo.
1129         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
1131         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
1132         in URLs to improve DVI formatted output (requires texinfo 4.6).
1133         (System Services, Systemology, Shellology): Likewise.
1134         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
1135         output.
1137         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
1138         continuous text.
1139         (Runtime): Fix macro argument names to match description:
1140         `action-if-found' -> `action-if-true' and similarly.
1141         (Obsolete Macros): Likewise.
1142         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
1143         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
1144         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
1146 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1148         * doc/autoconf.texi (Limitations of Make): Clean up markup.
1150         * ChangeLog: Typo.
1151         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
1152         DVI output.
1154 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1156         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
1157         /bin/sh set unsorted output.
1158         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
1159         * tests/local.at: Likewise.
1161 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1163         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
1164         (Integer Overflow, Null Pointers, Buffer Overruns):
1165         (Floating Point Portability, Exiting Portably): New sections.
1166         (Writing Test Programs): Fix some langauge.  Recommend exiting
1167         with status 1, not merely nonzero.  Clarify exit declaration.
1168         (Run Time): Move C exit status stuff to new Exiting Portably section.
1169         (Systemology): Mention Posix and levenez.  Update v7 reference.
1170         (Portable Shell): Mention the Posix shell.
1172 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
1174         * bin/autoconf.as (me): Replace by as_me.
1176 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1178         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
1179         since as_me isn't set yet.
1181 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1183         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
1184         a few minor bugs in this area.
1186         * doc/autoconf.texi (Programming in M4sh): Comment out the
1187         documentation of AS_BASENAME, for now.
1188         (Shell Substitutions): Do not use AS_DIRNAME in an example.
1189         (Limitations of Builtins) <basename>: Do not refer to
1190         AS_BASENAME.
1191         * bin/autoconf.as (me): Don't use AS_BASENAME.
1192         (dir): Remove the unused variable.
1193         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
1194         AS_DETECT_REQUIRED.  All uses changed.
1195         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
1196         All uses changed.
1197         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
1198         (AS_BASENAME): Use "basename --" to protect against leading "-".
1199         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
1200         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
1201         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
1202         (_AS_DIRNAME_PREPARE): Likewise.
1203         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
1204         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
1205         (AS_DIRNAME): Use "dirname --".
1207 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1209         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
1210         of "run time" and "run-time" changed to "runtime", for consistency.
1211         * lib/autoconf/fortran.m4: Likewise (in comment).
1212         * lib/autoconf/functions.m4: Likewise.
1213         * lib/autoconf/general.m4: Likewise.
1214         * lib/autoconf/headers.m4: Likewise.
1216         * doc/autoconf.texi (Run Time): Document the exit status situation
1217         with more accuracy and detail.
1219 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1221         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
1222         Archive is not officially `GNU' any more.  Update URL.
1223         (Defining Directories): Likewise
1224         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
1226 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1228         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
1229         newline from the `trap' code to finish `config.log'; the NetBSD
1230         /bin/sh resets the exit status after an empty command, as
1231         documented in doc/autoconf.texi.
1232         Reported by Dalibor Topic <robilad@kaffe.org>.
1234 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
1236         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
1237         Suggested by Bruno Haible.
1239 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
1241         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
1242         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
1243         Instead, just list the shells that we know work.
1244         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
1245         changed.  Be more cautious about the _cv_ variable.
1246         * tests/tools.at (Syntax of the shell scripts): Check the
1247         _cv_ variable once, at first, to avoid an internal autoconf error
1248         when sh -n does not work.
1250 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1252         * lib/Autom4te/FileUtils.pm: Sync from Automake.
1254 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
1256         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
1257         use ">&-" since we're only 99.999% sure that this is portable,
1258         and since the MinGW bug is fixed in a different way.
1259         * lib/autotest/general.m4 (AT_INIT): Likewise.
1261 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
1263         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
1264         before opening config.log, to avoid hitting a bug on MinGW.
1266 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
1268         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
1269         AS_MESSAGE_LOG_FD before reopening it onto the log file.
1270         This works around a MinGW bug reported by Eric Paire.
1271         Make sure that all writes to the log file append to it,
1272         rather than possibly losing data.
1273         * lib/autotest/general.m4 (AT_INIT): Likewise.
1275 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
1277         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
1278         description.
1280 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1282         * NEWS: Update.
1284         * configure.ac (AC_INIT): Bump to 2.59d.
1286 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1288         Version 2.59c.
1290         * Makefile.maint (news-date-check): Do not require a leading `*'
1291         before the release date in NEWS.
1293 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
1294         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1296         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
1297         the instantiated file do not contain the string 'datarootdir'
1298         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
1299         @mandir@, replace the reference '${datarootdir}' by the value.
1300         * tests/torture.at (datarootdir workaround): New test.
1301         * NEWS: Advertise this temporary fixup.
1302         Based on a patch by Bruno Haible, reported and analyzed by
1303         Paul Eggert and Noah Misch.
1305 2006-04-12  Eric Blake  <ebb9@byu.net>
1307         * tests/autotest.at (Debugging a failed test): Fix comment.
1309 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
1311         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
1312         all the changes since 2006-04-07.
1314 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1316         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
1317         succeeded, but `ln -s file dir' failed, take care to remove the
1318         leftover target before the next test, to prevent its spurious
1319         failure; also make sure `ln file dir' works before selecting it.
1320         Thanks to Keith Marshall for pointing this out.
1321         * THANKS: Update.
1323         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
1324         assignments in `at_debug_args', so that we put them correctly
1325         in the `run' script.
1326         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
1327         Reported by Eric Blake.
1329 2006-04-11  Eric Blake  <ebb9@byu.net>
1331         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
1332         top-level tests after micro-suite has been run.   Used in...
1333         (Debugging a successful test, Debugging script and environment),
1334         (Debugging a failed test): ...these new tests.  The first of these
1335         is fixed by...
1336         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
1337         macro, split out from...
1338         (AT_INIT): ...here, so that using -d also generates a run script.
1339         Document that -d inhibits top-level logging.
1340         * doc/autoconf.texi (testsuite Invocation): Document that -d only
1341         inhibits top-level logging; debug scripts are created.
1343         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
1344         check.
1345         * tests/autotest.at (Empty test, Empty check): New test to check it.
1347         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
1348         from gcc.
1350 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
1352         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
1353         the files if a problem appears.  Make the empty *.at files
1354         read-only, too.  Proposed by Ralf Wildenhues.
1356 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1358         * config/Makefile.am: Add comment to force updated Makefile.in.
1360         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
1361         space only patch to this file, this patch causes the Makefile.in
1362         files that include freeze.mk to be updated, and thus have a
1363         newer time stamp again, which in turn makes a pristine CVS
1364         checkout have correct time stamps.
1366         * Makefile.maint (cvs-sv): New macro, to be used..
1367         (config.guess-url_prefix, config.sub-url_prefix)
1368         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
1369         point to CVS text checkout of Gnulib files.
1370         (copyright-check): Bump current year.
1371         (announcement): Do not hard-wire `./announce-gen'.
1372         (cvs-update): Propagate failures of `cvs' and `move-if-change'
1373         correctly.
1374         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
1375         `chmod +x'.
1376         (wget_files): Update config.guess, config.sub, texinfo.tex by
1377         `wget-update', now that their URLs work again.
1379 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1381         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
1382         Problem noted by Paul D. Smith.
1384 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1386         * doc/autoconf.texi: Remove unused words from word list.
1387         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
1388         .x-sc_trailing_space: New files.
1390         * doc/standards.texi: Sync from gnulib.
1392         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
1393         `LIBOBJDIR' as experimental.
1395         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
1396         with a target directory; it's internally implemented as `cp'
1397         anyway, but since Autoconf advertises the possibility to use
1398         a target directory when LN_S is `ln -s', we need to find out.
1399         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
1400         analyzed by Keith Marshall <keith.marshall@total.com>.
1402         * THANKS: Update.
1404 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1406         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
1407         confdefs.h as-is.  In general, if it has backslash-newline or the
1408         like, then it doesn't work either to sort or to remove empty
1409         lines.
1411 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
1413         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
1415 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
1417         * lib/autom4te.in (Automake-preselections): Preselect
1418         _AM_SUBST_NOTMAKE.
1420 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1422         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
1423         apostrophe within a single-quoted string, as this is the usual
1424         tradition and is easier to read than '"'"'.  Don't rely on the
1425         shell treating "$/" like '$/'.  Use a more-consistent indenting
1426         style for the trap.
1428 2006-04-09  Eric Blake  <ebb9@byu.net>
1430         * tests/autotest.at (Backquote command substitution),
1431         (Multiline backquote command substitution): Remove mistaken
1432         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
1433         applied...
1434         (Parenthetical command substitution, Multiline parenthetical
1435         command substitution): here.
1437 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1439         Import macros from gnulib (often changing their name).
1441         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
1442         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
1443         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
1444         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
1445         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
1446         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
1447         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
1448         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
1449         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
1450         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
1451         The manual mentions Gnulib more prominently.
1452         * doc/autoconf.texi (Gnulib): New node.
1453         (Pointers): Add Gnulib URL.
1454         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
1455         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
1456         Gnulib section.
1457         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
1458         suggest a #define rather than a typedef for _Bool, and mention
1459         Gnulib rather than trying to substitute stdbool code.
1460         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
1461         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
1462         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
1463         AC_STRUCT_DIRENT_D_TYPE.
1464         (Particular Types): Mention stdint.h and inttypes.h as standard
1465         headers too.
1466         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
1467         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
1468         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
1469         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
1470         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
1471         (C Compiler): Move AC_C_LONG_DOUBLE to ...
1472         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
1473         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
1474         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
1475         (Coding Style).  Don't mention m4_expand_once.
1476         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
1477         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
1478         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
1479         (AC_CHECK_FUNCS): Use it.
1480         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
1481         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
1482         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
1483         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
1484         (AC_HEADER_ASSERT): New macro.
1485         (AC_HEADER_STDBOOL): Don't assume "#error" works.
1486         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
1487         Catch a bug in an HP-UX C compiler.
1488         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
1489         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
1490         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
1491         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
1492         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
1493         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
1494         New macros.
1496         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
1497         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
1499 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
1501         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
1502         of the warning introduced by the 2001-08-28 change.
1504 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
1505             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1507         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
1508         variables shall be overriden by the cache.
1509         * tests/torture.at (AC_ARG_VAR): Test also with a first value
1510         that contains braces.
1512 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
1514         Revert the patch from 2006-04-01 and only improve
1515         _AS_DETECT_BETTER_SHELL:
1517         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
1518         skip nonexistent directories.
1519         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
1520         only shell candidates which exist.
1521         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
1522         * lib/autotest/general.m4 (AT_INIT): No need to give three
1523         parameters to _AS_PATH_WALK.
1525 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
1526             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1528         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
1529         distinguish m4sugar macros.
1530         * tests/tools.at (autoupdating with aclocal and m4_include):
1531         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
1532         test case by Noah Misch <noah@cs.caltech.edu>.
1534 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
1536         Revert my change from 2006-03-17, in other words:
1537         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
1538           and DUALCASE=1.
1539         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
1540         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
1541           it is set.
1543 2006-04-07  Eric Blake  <ebb9@byu.net>
1545         * doc/autoconf.texi (Programming in M4sh): Document that
1546         AS_MKDIR_P exits the script on failure.
1547         * lib/autotest/general.m4: Remove redundant AS_ERROR.
1549 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1551         * config/elisp-comp, config/install-sh, config/mdate-sh,
1552         config/missing, config/mkinstalldirs: Sync from Automake.
1554         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
1555         from Automake.
1557         * doc/make-stds.texi: Sync from gnulib.
1559 2006-04-06  Eric Blake  <ebb9@byu.net>
1561         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
1562         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
1563         2006-04-01.
1565 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
1566             Eric Blake  <ebb9@byu.net>,
1567             Paul Eggert  <eggert@cs.ucla.edu>,
1568             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1570         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
1571         whether `set' quotes correctly: redirect stderr of the tested
1572         `set', and use a subshell, for Ultrix; use `sed' instead of
1573         `grep' for zsh `set' which may write binary output; match only
1574         at the beginning of a line, to avoid false positives.
1575         In order to avoid false positives by unrelated variables with
1576         multiline content, put the dump algorithm in a subshell and
1577         unset all variables containing newlines (except some which are
1578         special to the shell).  Warn about cache variables that are
1579         unset.
1581 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1583         * config/config.guess, config/config.sub, config/texinfo.tex:
1584         Sync from upstream.
1586         * tests/mktests.sh: Reword comments.
1588         * tests/mktests.sh: Only skip internal macros starting with
1589         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
1590         Update exclusion lists for the test suite to this end:
1591         (AC_ARG_VAR): Do test this now.
1592         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
1593         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
1594         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
1595         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
1597         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
1598         shell issue with double-quoted command substitutions of native
1599         commands.
1600         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
1601         Marshall.
1603         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
1604         no file matches the glob, discard the warning, set `nullglob'.
1605         (syntax-check): Likewise.
1606         (sc_cast_of_x_alloc_return_value): Likewise.
1607         (sc_cast_of_alloca_return_value, sc_error_exit_success)
1608         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
1609         (m4-check): Likewise.
1610         (sc_system_h_headers): Do not print rule on execution.
1611         (sc_tight_scope): Do not fail for non-existing `src' directory.
1612         (sc_changelog): Skip the Copyright footer.
1613         * lib/autoconf/lang.m4: Remove trailing space.
1615         * lib/autoconf/status.m4: More replacements to
1616         <tab><space> where this makes sense.
1618 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
1620         * tests/Makefile.am (maintainer-check-posix):
1621           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
1623         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
1624           ac_config_<foo>s again, sometimes normalized, sometimes not.
1625         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
1626         (AC_CONFIG_COMMANDS): Do not do so here.
1627         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
1628           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
1629           2005-07-25 rewrite.  Noticed by Noah Misch.
1631         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
1632           _AC_PRESERVE_HELP_ORDER, ...
1633         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
1635         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
1636           inside m4_expand_once; it is redundant.
1638         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
1639           for --help from Cygnus `configure.'
1641 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1643         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
1644         on a patch proposed by Ralf Wildenhues.
1646 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1648         * lib/autoconf/status.m4: Replace <space>''<tab> with
1649         <tab><space> where this makes sense.
1651 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
1652             Noah Misch  <noah@cs.caltech.edu>
1654         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
1655         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
1656         * doc/autoconf.texi (Help Formatting): New node.
1657         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
1659 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1661         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
1662         lib/autoconf/specific.m4, lib/autoconf/status.m4,
1663         lib/autoconf/types.m4, lib/autotest/general.m4,
1664         tests/mktests.sh, tests/torture.at: White space cleanup:
1665         remove some SPACE before TAB, or add quoting ('' or @&t@).
1667         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
1669         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
1671 2006-04-05  Eric Blake  <ebb9@byu.net>
1673         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
1674         empty test suite works.
1675         * tests/autotest.at (Empty test suite): Remove xfail.
1677 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
1679         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
1680         TAGS to ac_config_<foo>s.
1681         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
1682         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
1683         normalizing it, consistent it with previous releases.
1684         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
1686 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1688         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
1689         Use simplified args that Eric Blake originally suggested.
1691 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1693         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
1694         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
1695         Use 'comm' rather than N instances of grep; this also fixes a bug
1696         whereby substrings were incorrectly matched, causing us to not
1697         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
1698         (exclude_list): Exclude empty macros.
1699         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
1701         Use awk rather than grep -E or egrep, to avoid
1702         portability problems with regular expressions containing newlines.
1703         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
1704         Switch from grep to awk syntax.
1705         (ac_exclude_script): Renamed from ac_exclude_egrep.
1706         (au_exclude_script): Renamed from au_exclude_egrep.
1708 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
1710         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
1711         a subdirectory subject to Cygnus `configure'.
1712         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
1714         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
1715         report request when we have no AC_PACKAGE_BUGREPORT.
1717 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1719         * THANKS: Update.
1721         * tests/mktests.sh: Update copyright year in the header of the
1722         generated files.
1724         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
1725         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
1726         typedef'ed restricted pointer, to catch a compiler bug on
1727         HP-UX 11.x, and fix warnings so it passes with -Werror.
1728         (_AC_PROG_CC_C99): Likewise.
1729         Reported by Albert Chin <china@thewrittenword.com>.
1730         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
1732 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
1734         * bin/autoscan.in (subdirs): New global.
1735         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
1736         (output): Emit AC_CONFIG_SUBDIRS as needed.
1737         * tests/autoscan.at (autoscan): Remove XFAIL.
1739 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
1741         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
1743 2006-04-03  Eric Blake  <ebb9@byu.net>
1745         * THANKS: Add myself.
1747 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1749         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
1750         to log, point to testsuite output tree.
1752 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
1754         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
1755         * doc/autoconf.texi (Function Portability): Mention that C++
1756         has trouble with 'exit'.
1757         (Guidelines): Test programs shouldn't use 'exit'.
1758         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
1759         Remove; all uses removed.
1760         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
1761         Return from 'main' instead of calling 'exit'.
1762         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
1763         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
1764         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
1765         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
1766         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
1767         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
1768         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
1769         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
1770         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
1771         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
1772         * tests/compile.at: Likewise.
1774 2006-04-02  Pavel Roskin  <proski@gnu.org>
1776         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
1778 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1780         Clean up _AC_COMPILER_EXEEXT* macros.
1782         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
1783           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
1784           ac_file to the name of the default output file and call
1785           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
1786           initial `rm' of the candidate files...
1787         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
1788           the same list in subsequent `rm' calls, and for the temporary
1789           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
1790           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
1791         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
1792         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
1793           no longer needed) by libtool.  Make it a cache check.
1794         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
1795           copied here by mistake.
1796         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
1797           _AC_COMPILER_EXEEXT.
1798         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
1799           _AC_COMPILER_OBJEXT directly.
1800         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1802 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1804         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
1805         (AS_DIRNAME): Use it.
1806         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
1808         * tests/*.at: Remove the generated ones.
1810 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1812         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
1814 2006-04-01  Eric Blake  <ebb9@byu.net>
1816         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
1817         directories, unless optional third argument supplied.
1818         (AS_UNAME): Don't optimize PATH walk.
1820         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
1822 2006-04-01  Eric Blake  <ebb9@byu.net>
1823         and Stepan Kasal  <kasal@ucw.cz>
1825         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
1826         and fix some typos.
1828 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
1830         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
1831         Autoconf version number despite a zero- or one-argument AC_INIT.
1833         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
1834         subordinate tools.
1835         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
1836         * doc/autoconf.texi (autoreconf Invocation): Document it.
1838         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
1839         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
1841 2006-04-01  Eric Blake  <ebb9@byu.net>
1843         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
1844         * lib/autotest/general.m4: Be tolerant of existing directory when
1845           rm failed to remove it.
1847 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1849         * bin/autoupdate.in: Redefine m4_location so that warnings print
1850         the correct lines of the input file by subtracting..
1851         (_au__first_line): ..this new definition.
1853         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
1854         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
1855         Remove stray newline in output.
1856         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
1857         AC_DEFUN this for autoconf, including the obsoletion diagnose.
1858         Fixes autoupdating of code where the replacement output contains
1859         m4sugar macros.
1860         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
1861         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
1862          (au_exclude_list): Add AC_LANG_SAVE.
1863         * tests/tools.at: Several new tests for all of this.
1864         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
1865         hairy details.
1866         The AC_LANG_SAVE issue was reported against Libtool by
1867         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
1868         Kristian Kvilekval <kris@cs.ucsb.edu>.
1870 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1872         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
1873           switch all of them on and of when necessary.  Fixes the bug when
1874           m4sugar macros (e.g., m4_define) were expanded after the first
1875           automatic update (e.g., after AC_PREREQ or AC_INIT).
1877 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
1879         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
1880         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
1882         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
1883         correctly.  Problem reported by Eric Blake.
1884         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
1885         Ralf Wildenhues.
1887 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1889         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
1890         Tighten up the basename/dirname wording.
1892 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1894         * Makefile.maint (sc_texi_notab): New check: do not use TABs
1895         in texinfo files outside of verbatim environments.
1896         (syntax-check-rules): Update.
1897         * doc/autoconf.texi (Configuration Headers): Conform to it.
1899 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
1901         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
1902           aclocal cannot be given on the command line.
1904 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1906         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
1907         Give an example for AS_DIRNAME instead of referring to Posix..
1908         (File System Conventions): Put discussion of // versus / here, and
1909         modernize it a bit.
1910         (Limitations of Usual Tools): Add basename.  Remove verbiage
1911         after dirname, since it got moved to the above sections.
1912         All this was inspired by a patch proposed earlier by Eric Blake.
1914 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1916         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
1917         `$0' to protect against spaces.
1918         * lib/autotest/general.m4 (AT_INIT): Likewise.
1919         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
1920         `$0', $as_me.
1922 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1924         * bin/autoscan.in: The value of find_configure_ac should be
1925         checked for existence, so we don't barf over a nonexisting
1926         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
1928 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1930         * bin/autoupdate.in: Fix some typos.
1932 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
1934         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
1936         * lib/autoscan/autoscan.list: Refreshed.
1938 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1940         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
1941         and Erlang related variables.
1943         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
1944         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
1945         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
1946         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
1947         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
1948         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
1949         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
1950         (_AC_PROG_OBJC_G): New macros.
1951         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
1952         * doc/autoconf.texi (Objective C Compiler): New node.
1953         (Preset Output Variables): Document OBJCFLAGS.
1954         (Language Choice): Document `Objective C' language.
1955         (Fortran Compiler): Fix typo.
1956         * NEWS: Updated.
1957         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
1959 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
1961         * doc/autoconf.texi (Default Includes): Fix typo
1962           s/AC_HEADERS_STDC/AC_HEADER_STDC/
1963         (Limitations of Usual Tools): s/unwriteable/unwritable/
1964         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
1965           Fix typos in the comments.
1967 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
1969         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
1970           Factor out the warning to...
1971         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
1972         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
1973         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
1975         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
1976           case `ac_delim' when writing the sed script.
1978         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
1979           moved DUALCASE=1 ...
1980         (AS_SHELL_SANITIZE): ... here.
1981         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
1982           that it is set.
1984         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
1985           AC_SUBST.
1986         (_AC_PATH_PROG): Store the result to VARIABLE.
1987         (AC_PATH_PROG): No need to set VARIABLE again.
1989         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
1990           the first one is usual AT_CHECK_MACRO test, the second one checks
1991           that the same works when cross-compiling.
1992         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
1993         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
1995 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1997         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
1998         the directory `/usr/bin/posix' in the shell search, to prefer
1999         the Posix shell not only in subsequent spawns as with `$BIN_SH'
2000         on Tru64.
2002         * doc/autoconf.texi (contents): To fix texi2html output, hide
2003         `@setcontentsaftertitlepage' for HTML.
2004         (Writing Autoconf Macros): Likewise, insert space after `@c'.
2005         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
2006         `@,{c}'.
2008 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
2010         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
2011           sanitizing...
2012         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
2013         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
2014           why IFS is restored so late; thank you, Ralf, for reminding us.
2016 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
2018         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
2019           variables in the examples.
2021 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2023         * doc/autoconf.texi (several sections): Cleaned up documentation for
2024         macros in erlang.m4.
2026 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2028         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
2029         failure condition for `$(cmd)' style command substitutions.
2030         (Parenthetical command substition, Multiline parenthetical
2031         command substition): Use it.
2033         * doc/autoconf.texi (Special Shell Variables): Missing word.
2034         Reported by Keith Marshall <keith.marshall@total.com>.
2036         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
2037         IFS even in case of empty `$PATH'.
2039 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2041         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
2042         `expr' away if there is nothing to do.
2043         < --keywords >: Simplify and robustify argument handling.
2044         Revert erroneous comment from 2005-08-23.  Extend to allow
2045         keyword negation with `!'.
2046         Update help message.  Remove broken code to prevent running
2047         tests multiple times.
2048         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
2049         Update and fix the documentation accordingly.
2050         * tests/autotest.at (Keywords): Renamed to..
2051         (Keywords and ranges): .. this.  Extended to make sure negated
2052         keywords, keywords taken from AT_SETUP arguments, and numeric
2053         test ranges work, and that matching is case-insensitive.
2055 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2057         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
2058         allow to pass unnamed structs even in C++.
2059         (AC_CHECK_SIZEOF):  Likewise.
2060         Also fix quoting error in `AC_MSG_FAILURE' arguments.
2061         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
2062         struct): New tests for unnamed structs, each both native and
2063         cross-compiling.
2065         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
2066         a structure inside a cast, for C++ conformance.
2067         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
2068         Also fix quoting error in `AC_MSG_FAILURE' arguments.
2070         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
2071         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
2072         trying to execute the command `no'.
2074         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
2075         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
2076         expanded outside.
2078         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
2079         example.  Do not emphasize `$%', it is hardly new and special.
2080         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
2082         * doc/autoconf.texi (Limitations of Usual Tools): Document
2083         OpenBSD and traditional `grep' failure to handle multiple
2084         patterns separated by newlines.
2086 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2088         * doc/autoconf.texi (several sections): Add documentation for macros
2089         in erlang.m4.
2091 2006-03-10  Eric Blake  <ebb9@byu.net>
2093         * doc/autoconf.texi (Obsolete Macros): Fix wording of
2094         AC_TRY_LINK_FUNC.
2096 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2098         * doc/autoconf.texi: Use @acronym more consistently for acronyms
2099         like BSD, GPL, LGPL.  Fix minor English typos.
2100         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
2101         Mention that these macros are becoming obsolete.
2102         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
2103         Use more modern terminology for which standard is what.
2104         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
2105         and to ansi2knr.
2106         (AC_PROG_CXX): Likewise.
2107         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
2108         Remove obsolete discussion about how to port to K&R.
2109         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
2110         the obsolescent AC_HEADER_STDC.
2111         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
2112         can't rely on it.
2114 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2116         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
2117         Remove stdin redirection from /dev/null to allow pipe to work.
2119 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2121         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
2122         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
2123         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
2124         Ralf Wildenhues.
2126 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2128         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
2129         HP-UX sed is 99 commands, not 100.
2130         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
2131         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
2132         newline for portability.
2133         * tests/torture.at (Torturing config.status): Also test 100
2134         AC_SUBST_FILE invocations.  Fix test to actually verify the
2135         AC_CONFIG_FILES output.
2136         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
2137         command, label, and read-file `r' limits.  Unify HP-UX spelling.
2139         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
2140         non-suffix rule.
2141         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
2142         non-GNU make.
2143         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
2144         * tests/mktests.sh: Small shell portability fixes.
2146 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2148         * doc/autoconf.texi (Caching Results): Fix the examples to use a
2149         recommended quoting style and discard unwanted output.
2151 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2153         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
2154         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
2155         cases, and to work around Tru64 expr bug.
2157 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2159         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
2160         expr bug that turns the result of a regex match into a number if
2161         possible.
2163 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2165         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
2166         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
2167         in section `Specific Compiler Characteristics'.
2169 2006-03-04  Eric Blake  <ebb9@byu.net>
2171         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
2172         variable warning.
2174 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2176         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
2177         order of variable initialization, so even the Solaris 2.6 shell
2178         can create a config header correctly.  Fixes lots of test suite
2179         failures.
2181 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2183         * doc/autoconf.texi (Text processing Macros): New node to
2184         document the m4sugar macros m4_re_escape, m4_tolower,
2185         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
2187 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2189         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
2190         XrmInitialize (0) -> XrmInitialize ().
2191         Reported by Toshio Kuratomi.
2193 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2195         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
2196         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
2197         * doc/autoconf.texi (Programming in M4sh): Adjusted.
2198         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
2199         both macros are defun'ed so that required macros are evaluated
2200         outside.
2202         * doc/autoconf.texi (Prerequisite Macros): State more precisely
2203         where a required macro will be expanded.
2204         (Coding Style): Another reason not to use `m4_define'.
2206 2006-02-21  Eric Blake  <ebb9@byu.net>
2208         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
2210 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2212         * doc/autoconf.texi (Looping constructs): New node, to
2213         document m4_for, m4_foreach, m4_foreach_w, and mention
2214         obsolete AC_FOREACH.
2215         (Obsolete Macros): Document AC_FOREACH.
2216         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
2217         (m4_for): Fix to never loop (almost) endlessly, work correctly
2218         with arithmetic expressions in arguments, a step of zero or
2219         non-integer multiple of the interval, and avoid integer
2220         overflow.
2221         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
2222         m4_foreach_w.
2224 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2226         Add basic support for Erlang, both for configuring Erlang/OTP
2227         tools, and Erlang as a conf test language.
2228         * lib/autoconf/erlang.m4: New file.
2229         * lib/autoconf/autoconf.m4: Add erlang.m4.
2230         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
2231         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
2232         * NEWS: Add short description of new macros.
2233         * THANKS: Add Romain Lenglet.
2235 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2237         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
2238         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2240 2006-02-15  Eric Blake  <ebb9@byu.net>
2242         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
2243         warning.
2245 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2247         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
2248         (_AS_CASE): Private helper macro.
2249         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
2250         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
2251         Fix syntax of AS_IF description
2252         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
2253         for the AC_REQUIRE mess.
2254         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
2255         AS_SHELL_SANITIZE.
2257 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
2259         * doc/autoconf.texi: Minor style cleanup.
2260         Be consistent about spaces after commas.
2261         Insert [] where empty args look a bit funny.
2262         Fix some "i.e." and "e.g." usages.
2263         Try to avoid "X/Y" usages.
2264         Don't be pedantic about "ISO C99"; just say C99.
2265         Prefer GNU style for spaces in front of parens.
2266         (Function Portability): Comment about C89 versus C99
2267         signed integer division.
2268         (Particular Headers): Use current gnulib style for dirent
2269         includes.
2271 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
2272         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2274         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
2275         macros without parameters.
2276         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
2277         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
2278         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
2279         `$#' bug.
2280         (autoupdate): Updated to match AU_ALIAS fix.
2282 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2283         and Paul Eggert  <eggert@cs.ucla.edu>
2285         * doc/autoconf.texi (Programming in M4sh): Document
2286         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
2288 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2290         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
2291         (AS_BOURNE_COMPATIBLE): ..this.
2292         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
2294 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2296         * doc/install.texi (Defining Variables): Tighten up the
2297         CONFIG_SHELL wording.
2299 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
2300         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2302         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
2303         of (set -o) rather than testing whether (set -o posix) succeeds,
2304         to work around a bug in the AIX 5.3 shell.  Problem originally
2305         reportd by Howard Chu for libtool.
2307 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
2309         * doc/autoconf.texi (Running the Compiler, Running the Linker):
2310         Changes the macro arguments in summaries to match the
2311         descriptions.
2313 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
2315         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
2316         hint as ``a workaround for a bug.''
2318 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2320         * bin/autoreconf.in: New option `--no-recursive'.
2321         Improve wording for subpackages a bit.
2322         * doc/autoconf.texi (autoreconf Invocation): Updated.
2323         * NEWS: Updated.
2325         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
2326         in environment of `configure', not the command line.
2327         Reported by Howard Chu <hyc@highlandsun.com>.
2329 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2331         * doc/autoconf.texi (Limitations of Builtins): Document the
2332         problem with "trap -".
2334 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
2336         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
2337         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
2338         messages to differentiate Fortran and Fortran 77 tests.
2339         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
2340         AC_LANG_ASSERT, to allow use in mixed-language projects.
2342 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2344         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
2345         FOO" to "defined (FOO)".
2346         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
2347         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
2348         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
2349         * tests/tools.at (ifnames): Likewise.
2351 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2353         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
2354         * lib/Autom4te/General.pm (mktmpdir): Likewise.
2355         (END): Improve error message a bit.
2356         Reported by Bruce Korb <bkorb@gnu.org>.
2358 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2360         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
2361         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
2363 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
2365         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
2366         requires sys/stream.h.  Reported by Oliver Kiddle.
2368 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2369             Stepan Kasal  <kasal@ucw.cz>
2371         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
2372         before the removals of test dirs, use `find' to avoid modification
2373         of symlinked directories.
2375 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2377         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
2378         Don't ignore the macro arguments.
2380 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
2382         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
2383         declaration that works for MSVC.
2385 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2387         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
2388         Add `*.map' and `.inf' for Green Hills compiler.
2389         Reported by Stefan Seefeld <stefan@codesourcery.com>.
2391         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
2392         correctly: pad with spaces after FIRST_PREFIX if necessary,
2393         and compute string lenghts with `m4_qlen' instead of `m4_len'.
2394         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
2395         * tests/m4sh.at (AS_HELP_STRING): Test extended.
2396         * NEWS: Updated.
2397         Reported by numerous people, numerous times.
2399 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2401         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
2402         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
2403         * lib/autoconf/general.m4, lib/autoconf/status.m4:
2404         * lib/autotest/general.m4, tests/local.at:
2405         Update copyright year to 2006.
2407         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
2408         sed substitutions.
2409         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
2410         for file names, again.  Reported by Noah Misch.
2411         (Coding Style): Explain that s|a|b| is preferred for file names.
2412         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
2413         (AC_OUTPUT_MAKE_DEFS): Likewise.
2414         * lib/autotest/general.m4 (AT_INIT): Likewise.
2415         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
2416         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
2418         Fix Posix-conformance bugs re use of { command in sed scripts,
2419         and improve the sed-related documentation a bit.
2420         * doc/autoconf.texi (Installation Directory Variables): Use
2421         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
2422         rather than "sed" when talking about Sed in general.
2423         (Particular Programs): Likewise.
2424         (Coding Style): y is like s with respect to / and ,.
2425         (Limitations of Usual Tools): Document the weird restrictions
2426         that Posix has about { }.  Use better quoting.
2427         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
2428         Rewrite to conform to Posix rules about { } in sed scripts.
2429         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
2430         * tests/foreign.at (Libtool): Likewise.
2431         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
2432         Use our own style advice re 's,a,b,' versus 's|a|b|'.
2434 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2436         * lib/autoconf/status.m4: Fix typo.
2438         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
2439         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
2440         `-def', for the benefit of Portland `pgf90 -Mipa'.
2441         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
2443 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2445         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
2446         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
2447         shell from zsh to bash.
2449 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
2451         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
2452           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
2454 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2456         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
2457         parentheses in $(...).  Problem reported by Eric Blake.
2459 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2461         * doc/autoconf.texi (Limitations of Usual Tools):
2462         Mention which characters can be escaped with \ in portable regular
2463         expressions used in grep, sed, expr.  Mention the leading ^ problem
2464         with expr.  Clean up some confusing wording.  Mention which
2465         grep options are portable.
2467 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
2469         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
2471 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2473         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
2474         patch, noted by Ralf Wildenhues.
2476 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2478         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
2479         posix' unconditionally, for pdksh in `native sh' emulation.
2481 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2483         * doc/autoconf.texi (Shellology): Document eval $? problem
2484         with ash.
2485         (Limitations of Builtins): Likewise.
2487 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2489         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
2490         CONFIG_SHELL in the environment of the configure rerun.
2491         * doc/autoconf.texi (Here-Documents, config.status Invocation):
2492         Suggest passing CONFIG_SHELL absolute, and in the environment
2493         rather than as option.
2495 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2497         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
2498         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
2499         Fix macro quoting.  Fix output for n * 98 substituted variables.
2501 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2503         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
2504         `tmp' to avoid file removal race.
2506 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2508         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
2509         ac_clean_files and LIBOBJS.
2511 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2513         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
2514         Factor functionality to..
2515         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
2516         `AC_SUBST($1)' in the public version.
2517         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
2518         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
2519         ac_pt_* variables.
2521 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
2523         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
2524         filesystems.
2526 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2528         * NEWS: Move AH_HEADER mention to right place.
2530 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
2532         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
2533         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2535 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
2537         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
2538         conftst2.$ac_objext.
2539         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2541 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
2543         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
2544         conftest.o, to see whether the compiler really obeys; rm the object
2545         file before and after the test and register it with ac_clean_files.
2546         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2548 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
2550         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
2551         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
2552         code so that the most common case requires less forks.
2554 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
2556         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
2557         not portable; thanks to Paul Eggert and Alexandre.
2559         * NEWS: Fix an old typo.
2561 2005-10-20  Jim Meyering  <jim@meyering.net>
2563         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
2564         the latter'', in two places.
2566 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2568         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
2569         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
2570         the inner workings of AC_LANG_FUNC_LINK_TRY.
2571         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
2572         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
2573         by the function rather than ignoring it.
2574         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
2575         comparing its address.  Intel's interprocedural optimization was
2576         outsmarting the old heuristic.  Problem reported by
2577         Mikulas Patocka.
2579 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
2581         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
2583 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2585         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
2586         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
2588 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
2590         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
2591         before removing it (chmod -R u+rwx); there are three instances of this.
2593 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2594             Stepan Kasal  <kasal@ucw.cz>
2596         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
2597         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
2598         make its content writable before removing it.  Remove an errorneous
2599         comment from the end, where the logs of the failed tests are copied
2600         to the main log file.
2602 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
2604         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
2605           in case the computer is too quick.  Double quote the configure.ac
2606           snippets.
2608         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
2609           problems if the testsuite were running too fast.
2611 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2613         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
2614         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
2615         (which belong to Xt, not X itself).  See Debian bug 327655.
2616         * NEWS: Mention this.
2618 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
2620         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
2622 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
2624         * config/move-if-change: Don't output "$2 is unchanged";
2625         suggested by Ben Elliston.  Handle weird characters correctly.
2627 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
2629         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
2630           calls, so that the final expansion of this macro is shorter.
2631           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
2632           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
2633           the cleanup there.  Use AS_VAR_* macros, to be more general.
2634         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
2636         * lib/autoconf/general.m4: Use AS_IF where appropriate.
2638         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
2640 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
2642         * doc/autoconf.texi (Configuration Headers): Add an index entry
2643           for AH_HEADER.
2645 2005-08-26  Pavel Roskin  <proski@gnu.org>
2647         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
2648         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
2649         running xmkmf.
2651 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2653         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2654         The previous patch didn't work, so try a better one.
2656 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
2658         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
2659         in the example.  Reported by Bruno Haible.
2660         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
2661         "if $undefined_var;" succeeds with my shell.
2663         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
2664         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
2665         but change the m4_divert_text to m4_divert_once.
2667 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2669         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2670         Work around bug in Solaris /usr/xpg4/bin/awk.
2671         The bug is present in at least Solaris 8 through 10.
2673 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
2675         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
2676         some evil values and relying on the fact that $* concatenates the
2677         parameters by the first character from IFS.
2679 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
2680             Stepan Kasal  <kasal@ucw.cz>
2682         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
2683         first header appears, define AH_HEADER.
2684         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
2685         Update limitations about when to call AC_CONFIG_HEADERS.
2686         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
2687         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
2688         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
2689         ``Configuration Actions''; fix their index entries.
2691         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
2692         options correctly.  Process N-M as M-N if M is smaller than N.
2693         Process ranges correctly so that N-N will run only N.
2694         Sort and uniquify the tests that will be run.  If there is more
2695         than one test, reinsert the banners for the tests.
2696         * tests/autotest.at (Keywords): Unmark XFAIL.
2698 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
2700         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
2701           before passing the macro name to AH_TEMPLATE.
2703         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
2704           now opens log after option processing; in particular, --version
2705           and --help do not touch config.log.
2707         * Makefile.maint: Revert the change from 2005-08-12.
2709 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
2711         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
2712           common code to...
2713         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
2715 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2717         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
2718         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
2719         Language cleanup.
2721         * doc/autoconf.texi (Defining Symbols, Changed Results):
2722         Prepend to LIBS, not append, in examples.
2724 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
2726         When building in place, set srcdir="."; suggested by Tim Van Holder.
2728         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
2729           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
2730         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
2731         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
2732           does not mean "no --srcdir option".
2734 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2736         * tests/autoscan.at (autoscan): New file.
2737         * tests/suite.at: Use it.
2738         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
2739         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
2741         * tests/autotest.at (Keywords): Test keywords combinations.
2743 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
2745         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
2746           add "2>&1"; gzip 1.2.4 prints help on stderr.
2748 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
2750         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
2751         was pushdef'ed twice while popped only once.  Push it only once.
2752         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
2754 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
2756         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
2757         prefixed by mere "===", not "configure: === ".
2759 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2761         * Makefile.maint: Update from Bison.
2763         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
2764         "<tab>" in comment, so that the point is understandable.
2766 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
2768         Rewrite substantial part of lib/autoconf/status.m4.
2769         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
2770         and CONFIG_COMMANDS are not processed in four separate loops.
2771         Instead, there is one main loop.  This alows that the common code
2772         is expanded only once, thus config.status (and configure) is smaller.
2774         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
2775         the AC_LIST_FILES and cousins macros are no longer used.
2777         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
2778         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
2779         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
2780         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
2781         contain the initialization, nor the for loop, nor the associated
2782         commands; all these go to ...
2783         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
2784         _AC_OUTPUT_CONFIG_STATUS.
2785         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
2786         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
2787         (_AC_OUTPUT_FILE): The creation of the sed script ...
2788         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
2789         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
2790         _AC_OUTPUT_MAIN_LOOP.
2791         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
2792         _AC_CONFIG_COMMANDS): Use ...
2793         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
2794         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
2795         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
2796         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
2797         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
2798         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
2799         ... new macros.
2800         (_AC_CONFIG_UNIQUE): Update.
2801         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
2802         Replaced by this ...
2803         (_AC_LIST_TAGS): ... new common macro.
2804         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
2805         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
2806         (_AC_LIST_TAG_COMMANDS): ... new common macro.
2807         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
2808         this didn't belong to the `config commands' section.
2809         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
2810         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
2811         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
2812         to the `config commands' section either.
2813         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
2814         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
2816         ... and many changes to the comments nearby.
2818         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
2819         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
2820         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
2821         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
2822         (#define header templates): The comment at the top of the generated
2823         header now includes the name(s) of the source file(s).
2825         Several unrelated small changes:
2827         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
2828         parameter to AC_DIAGNOSE.
2829         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
2830         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
2831         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
2832         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
2833         with AU::AC_OUTPUT.
2834         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
2835         in AC_OUTPUT doesn't double-quote it either.
2836         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
2837         parameters.
2839 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
2841         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
2842         versions of Portland Group compiler produce single- and double-quoted
2843         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
2844         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2846 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2848         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
2849         This is a corrected version of yesterday's patch.
2851 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
2853         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
2854         path, too; insert a "===" to emphasize the line.
2856         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
2857           ac_cv_build_alias to ac_build_alias.
2858         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
2860         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
2861         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
2862         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
2863         (AC_ARG_VAR): ... here.
2864         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
2865           target_alias.
2867         Keep a list of all precious variables and process them with one simple
2868         for loop, instead of expanding all commands, or, OTOH, complicated
2869         processing of output of "set".
2870         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
2871         variable names in new macro...
2872         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
2873         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
2874           a loop to assign all ac_env_* and ac_cv_env_* variables.
2875         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
2876           to INIT_PREPARE.
2877         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
2878           its value to shell variable ac_precious_vars and call
2879           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
2880         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
2881           _AC_ARG_VAR_VALIDATE.
2883         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
2884           and the AC_SUBSTs ...
2885         (AC_INIT): ... here.
2887         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
2888           the ac_subst_files section in config.log.
2890         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
2892 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2894         * NEWS: New macro AC_C_TYPEOF.
2895         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
2896         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
2897         * tests/c.at (C keywords): Test AC_C_TYPEOF.
2899         Fix problems reported by Nicolas Joly.
2900         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
2901         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
2902         They are generated by the Tru64 v5.1B shell.
2904 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
2906         Fix my changes from 2005-07-01; reported by Noah Misch.
2907         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
2908         description, the macro now accepts only a single tag.
2909         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
2911         Fix cases when the varsions of Autoconf and Autotest don't match.
2912         Reported by Noah Misch.
2913         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
2914         at_top_builddir, for compatibility with older autotest.
2915         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
2916         is not set, use at_top_builddir, for compatibility with older
2917         versions of autoconf.
2919 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2921         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
2922         Problem reported by Patrick Welche.
2924 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2926         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
2927         sed substitution command, so that we allow | in program prefixes
2928         and program suffixes.  (& is a problem anyway; we're not fixing
2929         that here.)
2930         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
2931         configure_input, top_builddir, srcdir, etc.
2932         * lib/autotest/general.m4 (AT_INIT): Likewise, for
2933         PATH_SEPARATOR in AUTOTEST_PATH.
2935 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
2937         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
2938         for loop over config.site files using `set', to allow
2939         directory names containing IFS characters.
2941 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2943         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
2944         directories with weird names.  Apparently some people like living
2945         on the edge.  However, improve the test that "pwd" actually does
2946         report a name for the working directory.
2947         * NEWS: Remove the claim that we test for funny chars in dir names.
2949 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
2951         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
2952         replaced ...
2953         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
2954         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
2955         Now accept a single tag, not whitespace separated list.
2956         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
2958 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
2960         * doc/autoconf.texi (Configuration Headers): Change the explanation
2961         about #include <config.h>.
2962         (Generic Functions): Mention the Gnulib project.
2963         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
2965         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
2966         document to output the default config_* lists to config.status.
2967         Don't recognize option --file, if the functionality is not there.
2968         Likewise for --header; moreover, recognize --he and --h as shortcuts
2969         for --help in that case.
2971         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
2972         matches the order of execution.  No code changed.
2974 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2976         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
2977         single-quoted -cmdline argument in Portland Group compiler.
2978         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
2980 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
2982         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
2984 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2986         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
2987         descriptors to child processes; reported by Norman Gray.
2989 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
2991         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
2993         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
2994         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
2995         (AC_SUBST): Call it.
2996         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
2997         the directory specific variables; but don't call it for configure_input.
2999 2005-06-28  Derek Price  <derek@ximbiot.com>
3001         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
3002         addition.
3004 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3006         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
3007         directory have inherent problems with special characters like spaces,
3008         due to limitations in Make syntax.  Problem reported by Alexandre
3009         Duret-Lutz.
3010         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
3011         Also, fix Tru64 porting problem with shell patterns,
3012         reported by Ralf Wildenhues.
3014 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3016         * doc/autoconf.texi (Subdirectories): Fix markup typos.
3018 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3020         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
3022         Fix some more shell quoting problems.  Prompted by a bug report
3023         from Justace Clutter.
3024         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
3025         variable into diagnostic.  Make the diagnostic an error, not a warning,
3026         because we really don't support spaces and suchlike in dir names.
3027         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
3028         Don't worry about backslashes in srcdir; it can't happen now.
3029         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
3030         Simplify ac_optarg handling.
3031         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
3033 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
3035         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
3036         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
3037         * tests/atlocal.in: Propagate $EGREP and $SED.
3038         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
3039         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
3041         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
3042         that '\|' is not allowed in BREs; recommend using newline separated
3043         list of patterns instead of multiple -e options.
3045         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
3047         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
3049 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3051         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
3053 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
3055         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
3056         b, t, r, w commands require single space, while : cannot have any.
3057         (Special Shell Variables): Fix sed code this in the example.
3058         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
3059         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
3061         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
3062         expand to the empty list.  Don't use two pairs of m4_changequote,
3063         it's not necessary.
3065 2005-06-20  Derek Price  <derek@ximbiot.com>
3067         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
3069 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3071         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
3072         * doc/autoconf.texi:
3073         Don't mention Solaris versions so much, if a
3074         problem is common to all extant versions of Solaris.  Say "SunOS
3075         4" instead of "SunOS" for SunOS 4.
3076         (awk): Mention more of the limitations of traditional Awk.
3077         (cat): Don't talk about cat -v.
3079 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3081         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
3082         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
3083         but the implementation is entirely different and is designed
3084         to be compatible with glibc strverscmp.
3085         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
3087         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
3088         on Mac OS X 10.4 reported by Peter O'Gorman in:
3089         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
3090         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
3091         Use shell builtins rather than 'expr', to work around expr bug.
3093 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
3095         * doc/autoconf.texi: "filesystem" -> "file system".
3096         "behaviour" -> "behavior".
3097         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
3098         * lib/autoconf/general.m4: Omit blank after ":" sed command,
3099         as per POSIX.
3100         * lib/m4sugar/m4sh.m4: Likewise.
3101         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
3102         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
3104         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
3105         (.x.1): Ignore the time stamp in the .TH line when deciding whether
3106         to update the man page.  That way, we don't have to check in new
3107         man pages every month.
3109         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
3110         quotes and backslashes.  Patch from Derek Price.
3112 2005-06-10  Derek Price  <derek@ximbiot.com>
3114         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
3115         AS_TR_SH.
3117 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3119         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
3120         -u, since it outputs chatter if the input files are the same.
3121         Problem reported by Ralf Menzel.
3123 2005-06-08  Derek Price  <derek@ximbiot.com>
3125         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
3126         renaming them since they are about to be redefined anyhow.
3128 2005-06-08  Derek Price  <derek@ximbiot.com>
3130         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
3131         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
3132         Move m4_undefine to alphabetical order.
3134 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3136         * README: Recommend GNU M4 1.4.3 or later.
3137         * doc/autoconf.texi (Introduction): Likewise.
3138         Reword to avoid some formatting glitches.
3139         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
3140         Clarify explanation of HP compiler bug.
3141         Redo example output tp match current CVS snapshot.
3142         Use @example.org in email addresses when the examples
3143         might get inadvertently cut-and-pasted into user code.
3144         Remove example of autom4te usage that doesn't seem to work now.
3145         Use modern AC_INIT (except when the example is meant to be
3146         shown with Autoconf 2.13).
3147         Update ksh info for Solaris 9 and later.
3148         KB -> kB.
3149         Modernize description of Automake versions a bit.
3150         Don't claim a future version of Autoconf is near.
3151         * doc/install.texi: Reword to avoid some formatting glitches.
3153 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3155         * doc/autoconf.texi: Add [] to examples, so that the manual
3156         follows its own advice about quoting better.
3157         Reword to avoid some formatting glitches.
3158         * doc/installt.exi: Reword to avoid some formatting glitches.
3160         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
3161         Tru64 ksh pattern matching bug.  Reported against Libtool by
3162         Albert Chin <libtool@mlists.thewrittenword.com> and
3163         Nicolas Joly <njoly@pasteur.fr>.
3165 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
3167         m4_cdr of one-member list was [[]] (one-member list containing an
3168         empty string) instead of [] (an empty list.  Callers were skewed to
3169         match this misbehaviour.  As a consequence of this:
3170          - m4_foreach([x], [], [foo]) expanded to `foo', while
3171          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
3172         This bug has been fixed:
3174         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
3175           expand to an empty string; print error msg if called without
3176           an argument list.
3177         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
3178           misbehaviour; handle [] and [[]] correctly.
3180 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
3182         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
3183         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
3184           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
3186 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
3188         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
3189           swallow records with more than 99 fields.
3190         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
3191           parse the long line.
3193 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
3195         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
3196           swallow literals longer than 399.  Reported by Ralf Wildenhues.
3197         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
3198           to workaround this limitation.
3200 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3202         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
3203         to gfortran, and make these the first two compiler names
3204         checked (following the general autoconf preference for gcc).
3206 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
3208         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
3209         (DISTCLEANFILES): Remove $(check_SCRIPTS).
3210         (testsuite): Make sure autotest.m4f is up-to-date before using it.
3212 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3214         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
3215         expression of unbounded size when processing the --list
3216         option.  This runs afoul of a limit of 399 bytes per regular
3217         expression on AIX.  Problem reported by Ralf Wildenhues.
3219 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3221         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
3222         * doc/autoconf.texi (Particular Headers): Reword example
3223         for multiline stdbool replacement.
3224         (Setting Output Variables): Reword text a bit.  Don't
3225         give all the details about |#_!!_#|.
3226         Reword description of line replacement.
3228 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
3230         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
3231         now contain newlines, and substituted files must be referenced on
3232         a line alone; the sed scripts to substitute them are now very
3233         different.
3234         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
3235         commands can be put in a sed script portably.
3236         * doc/autoconf.texi (Setting Output Variables): Document above
3237         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
3238         use of multiline substitution.
3239         * tests/torture.at: No longer expect substitution of newline to fail.
3241 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3243         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
3244         From Ralf Menzel (trivial change).
3246 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3248         * tests/local.at: Don't attempt to check for negated character
3249         classes in shell scripts.  The test was too brittle.
3251 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
3253         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
3254         * doc/autoconf.texi (Limitations of Builtins): Document this
3255           limitation.
3257 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
3259         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
3260           common code; used in many places in the tree.
3261         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
3262         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
3264         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
3266         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
3267           messages when ac_unique_file is not found.
3268         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
3269         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
3270           commands, for consistency with AC_MSG_ERROR and such.
3272         * bin/autoconf.as: Make more use of "shift 2" in option processing.
3274         * bin/Makefile.am: Merge the two rules for creating scripts.
3276 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
3278         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
3279         obsolete; it was never documented.
3280         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
3282 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
3284         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
3285         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
3286         (ac_top_builddir): ... this ...
3287         (ac_top_build_prefix): ... to this; the old name is also kept, for
3288           backward compatibility.
3289         (ac_top_builddir_sub): New variable, without the trailing slash,
3290           always nonempty.
3291         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
3292         * doc/autoconf.texi (Configuration Actions): Rename
3293           ac_top_builddir to ac_top_build_prefix.
3294         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
3295           at_top_builddir to at_top_build_prefix.
3296         * lib/autotest/general.m4 (AT_INIT): Likewise.
3298 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
3300         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
3301           of confdefs.h .
3303 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
3305         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
3306           argument to m4_foreach.  I guess it was necessary in the past,
3307           but I think it's a no-op now.
3309 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
3311         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
3312           ``cat <<_ACEOF'' commands to one.
3313         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
3314         * lib/autoconf/status.m4: On various places, use expr instead of
3315           ``echo|sed.''
3316         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
3317         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
3318         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
3319           a range.
3320         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
3321           the wrong patterns between ``case'' and ``esac.''  The previous
3322           code had false positives.
3324 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
3326         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
3327         as on 2005-05-02.
3328         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
3329         Mention LIBOBJDIR.
3331 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3333         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
3334         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
3335         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
3336         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
3337         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
3338         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
3339         config/config.guess, config/config.sub, config/elisp-comp,
3340         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
3341         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
3342         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
3343         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3344         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
3345         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
3346         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
3347         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
3348         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
3349         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
3350         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
3351         lib/autoconf/general.m4, lib/autoconf/headers.m4,
3352         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
3353         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
3354         lib/autoconf/specific.m4, lib/autoconf/status.m4,
3355         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
3356         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
3357         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
3358         lib/autotest/general.m4, lib/emacs/Makefile.am,
3359         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
3360         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
3361         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
3362         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
3363         tests/compile.at, tests/foreign.at, tests/fortran.at,
3364         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
3365         tests/semantics.at, tests/suite.at, tests/tools.at,
3366         tests/torture.at, tests/wrapper.as:
3367         Update FSF postal mail address.
3369 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
3371         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
3372           check.
3373         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
3374           enough arguments, similarly as in m4_bpatsubsts.
3376 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
3378         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
3379           of absolute paths.
3381 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
3383         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
3384           for absolute directory names in one loop.
3385         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
3386           abbreviations of --version and --debug.
3388 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3390         * doc/autoconf.texi (Autoconf Language): Be more precise about
3391         quoting rules.  Problems noted by Stepan Kasal.
3392         Also, throughout this document, be more careful about white space.
3393         "blank", "white space", and "space" all have different meanings
3394         and we should be careful to say what we mean.
3396 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3398         Fix C++ related problems reported by Werner Lemberg.
3399         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
3400         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
3401         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
3402         avoid problems with C++ and throw.
3403         * tests/compile.at: .cpp, not .cc.
3405         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
3407 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3409         * doc/autoconf.texi (Generic Functions): Typos.
3411 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
3413         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
3414         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
3415         set by latest automake.
3417 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3419         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
3420         outputs 0 on GNU/Linux these days.
3422 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3424         * doc/autoconf.texi (Autoconf Language): Add more description
3425         about quoting heuristics.
3426         (Limitations of Builtins): Describe "set -" problems.
3428 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3430         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
3431         not newline.
3433         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
3434         by AC_DEFINE; it was a mistake.
3435         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
3437 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
3439         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
3441 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
3443         * doc/autoconf.texi (External Software): Quadrigraphs are not
3444           processed correctly in AS_HELP_STRING; avoid this in the examples.
3445         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
3446         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
3447           comment and reduce m4_default([foo], []) to [foo].
3448         (m4_strip): Update the explanation.
3450 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
3452         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
3453         Remove core.conftest.* too; it's generated by Tru64 5.1.
3454         Problem reported by Jennis Pruett.
3455         * lib/autoconf/functions.m4
3456         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
3457         Don't bother to remove core files; AC_RUN_IFELSE should do that
3458         for you.
3460 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
3462         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
3464 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
3466         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
3467         Report from Horst Wente.
3469 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
3471         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
3472           the comment.
3474 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
3476         * doc/autoconf.texi (External Software, Package Options): Add
3477           examples showing how to implement --with-* and --enable-* options.
3479 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
3481         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
3482         as well as configure.in.  Problem reported by Gregorio Guidi.
3484 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3486         * doc/autoconf.texi (Particular Functions): Use gnulib's current
3487         pattern for alloca snippet.
3489 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
3491         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
3493 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
3495         * doc/autoconf.texi (Generic Programs): Fix a typo.
3497 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
3499         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
3500         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
3502 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3504         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
3505         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
3506         whole-archive (-zallextract, -zdefaultextract) options in the hope of
3507         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
3508         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
3510 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3512         * NEWS: The configure command now warns you if you attempt to use
3513         a directory whose name contains a special character like space,
3514         newline, or "\".
3515         * doc/autoconf.texi (Installation Directory Variables): Allow
3516         "," in file names.  Do not use \@; it's not a portable regexp.
3517         * bin/Makefile.am (edit): Likewise.
3518         * lib/Makefile.am (edit): Likewise.
3519         * tests/Makefile.am (edit): Likewise.
3520         * tests/semantics.at: Likewise.
3521         * tests/torture.at: Likewise.
3522         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
3523         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
3524         * doc/autoconf.texi (File System Conventions): Warn about
3525         unportable file names.
3526         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
3527         (AC_INIT): Use it.
3528         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
3529         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
3530         ac_pwd, and quote srcdir.
3531         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
3533         * doc/autoconf.texi: Fix some systematic formatting problems.
3534         ".)"  needs a following @: if not at the end of a sentence, and
3535         similarly for "!)".  "etc." should be preceded by a comma.
3536         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
3538 2005-03-22  Bruno Haible  <bruno@clisp.org>
3540         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
3541         argument is often called 'build-aux'.
3543 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
3545         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
3546           macro AC_TRY_LINK is obsolete.
3547         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
3548           `AC_CONFIG_FILES'.
3550 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
3552         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
3553           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
3554           from a Common Lisp's `cl'.
3555         (AC_PROG_CXX): Behave according to the documentation: don't
3556           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
3557           make the variable CCC precious; use `cl.exe', not `cl'.
3559 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3560             Alexandre Duret-Lutz  <adl@gnu.org>
3562         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
3563         /dev/null, as "configure" shouldn't read stdin, and this insulates
3564         us from problems (e.g., when testing for "cl").  Also, do this
3565         redirection before invoking "hostname" or "uname", and keep the
3566         original input stream available via...
3567         (AS_ORIGINAL_STDIN_FD): ... this new macro.
3568         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
3569         bother with "</dev/null" since it's now done at the top of
3570         'configure'.
3571         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
3572         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3573         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
3574         * doc/autoconf.texi (File Descriptor Macros): New section.
3575         (Printing Messages): Mention it.
3576         * tests/base.at (Input/Output): New test.
3578 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3580         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
3581         newline if neither \c nor -n work, as that would output two
3582         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
3584 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
3586         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
3587         This causes that any required macros inside will get before the if.
3588         * doc/autoconf.texi (autom4te.cache): A typo.
3590 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3592         Undo previous change, except keep the change to
3593         lib/autoconf/programs.m4 that replaced grep with shell
3594         pattern-matching.  This is because net-snmp configure reads stdin.
3595         Reported by Noah Misch.
3597 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
3599         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
3600         from /dev/null, as "configure" shouldn't read stdin, and this
3601         insulates us from problems (e.g., when testing for "cl").
3602         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
3603         before invoking "hostname" or "uname".
3604         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
3605         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
3606         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
3607         "</dev/null" since it's now done at the top of 'configure'.
3608         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3609         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
3610         Also, replace grep with shell pattern-matching, to save a process.
3612 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
3614         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
3615         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
3616         avoid thinking that Allegro Common Lisp's "cl" command is a C++
3617         compiler.
3619 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3621         * doc/autoconf.texi (Limitations of Usual Tools): Document that
3622         grep -q isn't portable.  Improve grep -s explanation.
3623         Problem reported by Dan Manthey.
3625 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3627         * doc/autoconf.texi (Special Shell Variables): Clarify
3628         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
3630 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3632         * doc/autoconf.texi: Use @acronym for DJGPP.
3633         Fix some @code's that should have been @env's, and vice versa.
3634         Sort environment variable names.
3635         Mention that shells no longer inherit IFS.
3636         Don't recommend PATH_SEPARATOR=';' so strongly.
3637         Mention that $RANDOM might expand to the empty string.
3638         "symlink" and "soft link" -> "symbolic link".
3639         Improve mktemp description (reported by Bruno Haible).
3641 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
3643         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
3644         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
3645         Likewise.
3646         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
3647         Likewise.
3649 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3651         * NEWS: Mention AT_COPYRIGHT.
3653         * tests/local.at (AT_CMP): Use diff directly on input files rather
3654         than copying them.
3656         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
3657         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
3659 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3660         and Paul Eggert  <eggert@cs.ucla.edu>
3662         * tests/autotest.at (Empty test suite): New test.
3663         * tests/torture.at (Substitute and define special characters)
3664         (Substitute a 2000-byte string, Define to a 2000-byte string)
3665         (Substitute a newline, Define a newline): New tests.
3667 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3669         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
3670         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
3671         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
3672         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
3673         (Standard regular expressions): New test.
3674         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
3675         excess test name quoting.
3676         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
3677         CPPFLAGS to `configure' instead of setting it in `configure'.
3679         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
3680         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
3681         on some platforms.
3683         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
3684         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
3686         * tests/local.at (AT_CMP): New macro.
3687         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
3688         (AC_SAVE_STATE): Move environment grep...
3689         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
3690         (AT_CONFIG_CMP): New macro.
3691         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
3692         * tests/c.at (Extensions): Do not exit early.
3693         * tests/atlocal.in: Inherit $GREP.
3695         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
3696         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
3698         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
3699         (AC_COPYRIGHT): Factor header comment portion out and move into...
3700         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
3701         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
3702         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
3703         --version output.
3704         * tests/local.at: Add Autoconf test suite copyright notice.
3705         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
3707 2005-02-04  Bruno Haible  <bruno@clisp.org>
3708         and Paul Eggert  <eggert@cs.ucla.edu>
3710         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
3712 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
3714         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
3715         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
3717         Try not to generated lines of unlimited length, as POSIX places a
3718         2047-byte limit on line length of portable text files.
3719         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
3720         Use newline as a separator, not space.
3721         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
3722         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
3723         space.
3725 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3727         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
3728         as_func_*.  Add test to check whether positional parameters
3729         are restored after function return.
3731 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3733         * doc/autoconf.texi (Special Shell Variables): Mention _,
3734         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
3735         if they contain a lower-case letter.  The DUALCASE problem was
3736         reported by Ralf Wildenhues.
3738         * bin/autoconf.as: Don't exit with status 0 after write failure
3739         with --help or --version.
3740         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
3741         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
3743 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3745         * doc/autoconf.texi (Limitations of Usual Tools):
3746         Unicos 9 sed limitations.
3747         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
3748         to get the option-enhanced interface on older Crays.  Try ftn for
3749         Fortran 95 (newer Crays).
3751 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
3753         * man/Makefile.am (.x.1): Go back to the simple solution, but take
3754         care to echo the commands, so the user knows what's going on.
3755         Modified from a suggestion by Stepan Kasal.
3757         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
3758         with a cross reference.  Derived from a suggestion by Bruce Korb.
3760 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3762         * doc/autoconf.texi (config.status Invocation): Warn about
3763         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
3764         * doc/install.texi (Defining Variables): Likewise.
3765         Based on a proposed patch by Ralf Wildenhues.
3767         * man/Makefile.am (.x.1): Make sure the required generated files
3768         are up to date.  Problem and original solution proposed by Stepan Kasal.
3769         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
3770         implicit-man-prerequisites): New rules, used by the above.
3772         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
3773         * config/config.guess, config/config.sub, config/install-sh: Likewise.
3774         * config/missing, config/texinfo.tex: Likewise.
3776 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
3778         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
3779         Update the long comment explaining it.
3781         m4_require no longer writes an ``is required by'' line to the
3782         execution stack.  It contains only one bit of non-redundant
3783         information: that the macro was required, not called.  And even
3784         this bit is useless in most situations: have you ever met a macro
3785         which both calls and requires the same macro?
3787         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
3788         (_m4_defun_pro_outer): ... only via this macro, for the outermost
3789           macro.
3790         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
3791         (m4_expansion_stack_pop): Remove the misplaced comment.
3792         (m4_require): Don't put the ``is required by'' line to the
3793           execution stack; slightly improve the out-of-a-defun error message.
3794         (_m4_divert_grow): New macro, counter for the temporary diversions.
3795         (_m4_require_call): Use it.
3796         * tests/m4sugar.at (m4_require): Expect output without the
3797           ``is required by'' messages.
3799 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3801         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
3802         rather than x for expr.
3804         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
3805         this is safe.
3806         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
3807         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
3808         * lib/autotest/general.m4 (AT_INIT): Likewise.
3809         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
3810         * tests/mktests.sh: Likewise.
3812 2005-01-27  Akim Demaille  <akim@epita.fr>
3814         Have autoheader honor --force.
3816         * doc/make-stds.texi, doc/standards.texi: Update from masters.
3817         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
3818         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
3819         from masters, so that FileUtils.pm's update_file provide --force
3820         support.
3821         * bin/autoheader.in: Pass $force to update_file so that
3822         config.h.in is always recreated when --force.
3824 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
3826         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
3828 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3830         * doc/autoconf.texi (Limitations of Builtins): Clarify that
3831         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
3833 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
3835         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
3836         Warn about newline stripping in `` and $().  Update Solaris
3837         version to 9.
3838         (Limitations of Builtins): Use expr "X...", not expr "x...", as
3839         X insulates us from future changes to Posix.
3840         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
3841         stripping.
3843 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
3845         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
3846           you cannot use AC_DEFINE to define macros containing `[' or `]'.
3848 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
3850         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
3851         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
3852         bug-tar mailing list.
3854 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
3856         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
3858 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3860         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
3861         ulongval to be static, to avoid unwanted GCC warning.  Problem
3862         reported by Michael Jennings via Daniel Reed; see
3863         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
3865 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
3867         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
3868         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
3869         datadir, infodir, and mandir.  Adjust argument parsing code.
3870         (_AC_INIT_HELP): Update help text.
3871         * doc/autoconf.texi (Installation Directory Variables): Document
3872         new variables.
3874 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
3876         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
3877         not seem to work, assume it does set $(MAKE).
3878         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
3880 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
3882         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
3884 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
3886         A cleanup of the diversion support in m4sugar.
3888         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
3889         (_m4_divert_n_stack): New macro; the expansion is
3890           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
3891           otherwise.
3892         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
3893         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
3894           stored in _m4_divert_diversion or _m4_divert_dump.
3895         (m4_divert_pop): When the parameter is given, compare the symbolic
3896           name with the last diversion pushed on the stack.  Previously, the
3897           current diversion was compared with the numeric value of the
3898           diversion given as the parameter.
3899         (m4_require): If the macro hasn't been expanded yet, call ...
3900         (_m4_require_call): this new macro.
3902 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3904         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
3905         Workarounds for documented `case' limitations.
3907 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
3909         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
3910         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
3912 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3914         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
3915         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
3916         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
3918         Patch from Roger Leigh (with some minor changes) as follows:
3919         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
3920         Resurrect AC_PROG_CC_STDC.
3921         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
3922         AC_PROG_CC_C89, AC_PROG_CC_C99.
3923         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
3924         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
3925         AC_PROG_CC_C99): New macros.
3926         (AC_PROG_CC_STDC): Use them.
3927         (_AC_PROG_CC_STDC): Remove.
3928         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
3929         * THANKS: Add Roger Leigh.
3931 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
3933         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
3934         signals that the package uses Automake; a `Makefile.am' is typical but
3935         not essential.  Reported by Magnus Therning.
3936         * tests/torture.at (autoreconf.): New banner.
3937         (autoreconf and non-AC configure): Rename to `Non-Autoconf
3938         AC_CONFIG_SUBDIRS'.
3939         (autoreconf an empty directory): Rename to `Empty directory'.
3940         (Unusual Automake input files): New test.
3942 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
3944         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
3945         (AT_SETUP): Clear AT_capture_files.
3946         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
3947         (AT_KEYWORDS): Fix comment typo.
3948         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
3949         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
3950         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
3952 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
3954         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
3955         If the variable to set is already set, set ac_cv_path_$1
3956         to the preset value so caller can assume ac_cv_path_$1
3957         is available.  (trivial change)
3959 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
3961         * BUGS (Minor Problems): Warn about makefile limitations.
3962         * Makefile.am: Find and update `INSTALL' in $(srcdir).
3963         * man/Makefile.am: Find and update manual pages in $(srcdir).
3965 2004-12-24  Eric Blake  <ebb9@byu.net>
3967         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
3968         shells in subshell, to avoid noise from ash.  (trivial change)
3970 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3972         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
3973         problems with SunOS ksh and backslash escaping, Bourne shells and
3974         closing brackets (both within character classes).  Bug reported
3975         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
3976         <read>: New entry.  Mention non-availability of -r.
3978 2004-12-21  Akim Demaille  <akim@epita.fr>
3980         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
3981         avoid cluttering displayed messages.  Rather, prepend srcdir where
3982         AT_LINE is used for log files.
3984 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
3986         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
3987         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
3988           no longer part of the macro, quote the occurrence of ``$tmp''.
3989         * doc/autoconf.texi (Forbidden Patterns): Typo.
3991 2004-12-21  Akim Demaille  <akim@epita.fr>
3993         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
3994         separated from the test title by forcing a white space.
3996 2004-12-21  Akim Demaille  <akim@epita.fr>
3998         Enable Emacs navigation within testsuite.log files.
4000         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
4001         use the compilation mode.
4002         (AT_LINE): Point to the srcdir.
4004 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
4006         * tests/Makefile.am (installcheck-local): Use $(bindir).
4007         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
4008         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
4009         Makefile.am scheme Autoconf now uses.
4011 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
4013         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
4014         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
4016 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
4018         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
4019         (_AT_CHECK): Use it.
4020         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
4021         (AS_ESCAPE): Fix comment.
4022         * tests/autotest.at: Adjust section banner comments.
4023         (AT_CHECK_AT): Accept STATUS and STDERR.
4024         (AT_CHECK_AT_TEST): Likewise.
4025         (Invalid brace-enclosed parameter expansion)
4026         (Multiline command from M4 expansion)
4027         (Double-M4-quoted command): New tests.
4029 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4031         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
4033 2004-12-17  Akim Demaille  <akim@epita.fr>
4035         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
4036         m4_pattern_allow.
4037         Suggested by Alexandre Duret-Lutz.
4038         * doc/autoconf.texi (Setting Output Variables): Catch up.
4040 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4042         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
4044 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4046         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
4047           remove the comment which said we cannot.
4049 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4051         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
4052         Reini Urban and Paul Eggert for reporting the dependencies.
4054         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
4055         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
4056         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
4058 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4060         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
4061           so that eg. ``autoscan --help'' doesn't truncate it.
4063 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
4065         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
4066         generated conftest files.
4068 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
4070         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
4071         tracing on commands with possibly-escaped newlines.
4072         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
4073         discontinued behavior and its implications.
4074         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
4075         (BSx641-newline in command, BS-BS-newline in command)
4076         (BSx640-newline in command, Newline-CODE-BS-newline in command)
4077         (Single-quote-BS-newline in command)
4078         (Single-quote-newline-BS-newline in command): New tests.
4080 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
4082         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
4083           on platforms where it works.
4084         (_AS_TEST_PREPARE): Test for ``test -x''.
4085         (_AS_BROKEN_TEST_PREPARE): Nuke.
4087 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
4089         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
4090         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
4091           give only 4-letter prefix to AS_TMPDIR, comment fixed.
4092         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
4093           create the temporary directory.
4094         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
4096 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
4098         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
4099         (trivial change)
4101 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
4103         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
4105 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
4107         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
4108         to avoid using a negated character class.  Reported by Nicolas Joly.
4109         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
4111 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
4113         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
4114         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
4115         Don't depend on .x file explicitly, since "make" does that for us.
4116         Suggested by Stepan Kasal.
4118         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
4119         Add *.tmp.
4120         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
4121         ifnames): Factor common code.  And they said it couldn't be done!
4123 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4125         * bin/.cvsignore: Add autoconf.in.
4126         * tests/.cvsignore: Add wrapper.in.
4127         * lib/autotest/general.m4: Escape '$' in case pattern.
4129 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
4131         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
4133         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
4135         * tests/autotest.at: New file.
4136         * tests/suite.at: Include it.
4137         * tests/Makefile.am: Distribute it.
4139         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
4140           shell tracing on a command that could contain multiple lines.
4141         * doc/autoconf.text: Document that fact and its implications.
4142         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
4143         * tests/autotest.at (Multiline backquote command substitution,
4144           Multiline parameter expansion, Literal multiline command,
4145           Multiline parenthetical command substitution): Remove XFAIL.
4147 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4149         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
4150         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
4152 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
4154         * configure.ac (test suite): Cease to generate wrapper scripts.
4155         * configure: Regenerate.
4156         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
4157         (m4f_dependencies): Adjust accordingly.
4158         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
4159         (wrapper.in): Generate it in the build directory.
4160         (MAINTAINERCLEANFILES): Delete wrapper.in.
4161         (CLEANFILES): Add wrapper.in.
4162         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
4163         the output.  Replace each $as_me with a @wrap_program@.
4164         * tests/wrapper.in: Delete it; we always build it.
4166         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
4167         (EXTRA_DIST): Remove autoconf.in.
4168         (CLEANFILES): Add autoconf.in.
4169         (autoconf): Find autoconf.in in the build directory.
4170         * bin/autoconf.in: Delete it; we always build it.
4172 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
4174         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
4175         PATH members so as to not prepend an empty element.  Move a comment.
4176         * Makefile.am (SUBDIRS): Build in `tests' last.
4177         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
4179 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
4181         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
4182         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
4183         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
4184         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
4186 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
4188         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
4189         patch: extra "-l"s.
4191 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
4193         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
4194         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
4195         * doc/autoconf.texi (Particular Functions): Mention new behavior.
4197 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
4199         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
4200           out the common code to ...
4201         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
4202           value of the #define--default to 1, iff the macro was called
4203           with exactly one parameter.
4205 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4207         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
4208         "char c = '\200';" rather than "char c = 0x80;" as the
4209         latter doesn't conform to the strict C standard due to
4210         overflow on signed char hosts.
4212         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
4213         to -qlanglvl=ansi.  We don't want to disable extensions.
4215 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
4217         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
4218         (Using Autotest, testsuite Scripts, Writing testsuite.at):
4219         Reword slightly to avoid some English-language problems noted
4220         by Ralf Wildenhues in:
4221         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
4223 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
4225         * NEWS: Add ^L above each release.
4227 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4229         Fix documentation problems reported by Russ Boylan in
4230         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
4231         along with some nearby cruft.
4232         * doc/autoconf.texi (Libtool): Libtool can be used without
4233         Automake (not without Autoconf).
4234         (Introduction): Mention lists.gnu.org.
4235         * BUGS: Don't mention bugs.gnu.org.
4236         Remove mention of ancient libtool compatibility problem.
4237         * NEWS: Mention that bugs.gnu.org is kaput.
4238         * README: Likewise.  Mention where mailing list archives can be found.
4240 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
4242         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
4243         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
4245 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4247         * doc/autoconf.texi (Pretty Help Strings): Go back to
4248         single-quoting assignments to cache variables.
4250 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
4252         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
4253         with the examples; fix the bug in MY_ARG_WITH example reported
4254         by Alexandre Duret-Lutz.
4255         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
4256         expansion of $1 in the comment emitted to configure.
4258 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4260         * doc/autoconf.texi (Pretty Help Strings): Fix typo
4261         in my editing of the previous patch.  Problem reported
4262         by Alexandre Duret-Lutz.
4264 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
4266         * doc/autoconf.texi (Autoconf Language): Explain that
4267         ``descriptions'' may not be double quotes.
4268         (Quotation Rule Of Thumb): Likewise.
4269         (Pretty Help Strings): Likewise; remove the wrong comment;
4270         simplify the examples and improve their quoting.
4272 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
4274         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
4275         the $1_found variable, don't test whether the file is executable;
4276         Both things are checked ...
4277         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
4278         the former ``test -f''.
4279         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
4281 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
4283         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
4284         use cp -R instead.
4286 2004-11-10  Derek R. Price  <derek@ximbiot.com>
4288         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
4289         limitations.  Reorder paragraphs for clarity.
4291 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4293         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
4294         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
4295         variants", "Unix", and some related minor wording fixups.
4297         (Shellology, Special Shell Variables): Document that the Zsh
4298         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
4299         to Alexandre Duret-Lutz for this info.
4301 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
4303         * doc/autoconf.texi (One-Shot Macros): New node.
4305 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
4307         * doc/autoconf.texi (Function Portability): Fix misdescription
4308         of putenv.  Problem reported by Michael Wardle.
4310 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4312         * doc/autoconf.texi (auindex): New macro.
4313         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
4314         Problem reported by Stepan Kasal.
4316 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4318         Fix problems reported by Andreas Buening in:
4319         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
4320         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
4321         in test makefile.
4322         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
4323         readable; it's not true in OS/2-emx.
4325 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
4327         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
4328         "/usr/include", clear ac_x_includes instead of leaving it as "no"
4329         (trivial change).  Problem and patch reported by Andrew Church in:
4330         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
4332 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4334         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
4335         three args in examples.  Problem reported by Frederik Fouvry in:
4336         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
4337         Also, fix some minor spacing and punctuation bugs.
4339 2004-09-02  Akim Demaille  <akim@epita.fr>
4341         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
4342         "case" to restore ordering.
4343         Reported by Stepan Kasal.
4345 2004-08-26  Akim Demaille  <akim@epita.fr>
4347         * doc/autoconf.texi: Minor typos and stylos.
4349 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4351         * configure.ac (AC_INIT): Bump to 2.59c.
4353 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4355         Version 2.59b.
4357         * README: Add advice about m4 1.4.2.
4359         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
4360         texinfo.tex for now (done by hand now).
4361         * Makefile.maint (wget_files, cvs_files):
4362         Remove ansi2knr.c; nobody uses it.
4363         (ansi2knr.c-url_prefix): Remove.
4364         (cvs-update): Fix test for failure.  I don't know why it ever
4365         worked...
4367         * doc/autoconf.texi: Update URLs, some of which went stale.
4368         Use @uref rather than @href.
4370         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
4371         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
4373         * config/config.guess, config/config.sub, config/elisp-comp,
4374         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
4375         doc/fdl.texi, doc/standards.texi: Sync with master copy.
4377         * NEWS, TODO, configure.ac, bin/autoscan.in,
4378         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
4379         doc/install.texi, lib/Autom4te/Configure_ac.pm,
4380         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
4381         lib/autoconf/programs.m4, lib/autoconf/status.m4,
4382         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
4383         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
4384         tests/tools.at, tests/torture.at:
4385         Use "file name" rather than "filename" or "path",
4386         to be consistent with the terminology of the GNU coding standards.
4388 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4390         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
4391         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
4392         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
4393         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
4395         More fixes to support spaces in the name of the build directory.
4396         This isn't a complete fix but it's an improvement.
4398         * bin/autoconf.as (autom4te_options): New var.
4399         Use it instead of appending to AUTOM4TE, so that we can allow
4400         spaces in the build directory's absolute name.
4401         * bin/autoheader.in ($autoconf): Allow spaces in file names.
4402         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
4403         AT_CHECK_NOESCAPE): Likewise.
4404         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
4405         main program): Likewise.
4407 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4409         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
4410         From Ralf Corsepius in:
4411         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
4413 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4415         * doc/autoconf.texi (Function Portability): Document isinf and
4416         and isnan.  From a suggestion by Kevin Ryde.
4418         * lib/Autom4te/General.pm (END): Return correct exit status even
4419         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
4421 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4423         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
4424         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
4425         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
4427 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
4429         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
4430         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
4431         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
4432         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
4433         * lib/autom4te.in (Automake-preselections): Preselect
4434         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
4436 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
4438         * lib/autom4te.in (Automake-preselections): Preselect
4439         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
4440         trace them.
4442 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4444         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
4445         Tru64.
4446         * doc/autoconf.texi (Shellology): Mention BIN_SH.
4447         Document problem with "`""`" in pdksh POSIX mode.
4449 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4451         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
4452         with pdksh, too.  Problem reported by Patrick Welche via
4453         Gary V. Vaughan.
4454         * doc/autoconf.texi (Shellology): Note that set -o posix is
4455         useful for pkdsh, too.
4457 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4459         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
4460         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
4461         Don't fail if ENV or BASH_ENV is readonly.
4462         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
4463         etc. are read only.  Problem reported by Ludovic Courtes.
4465 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
4467         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
4468         zsh, disable GLOB_SUBST to avoid backslash handling problems.
4469         (trivial change)
4471 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4473         * doc/autoconf.texi (File System Conventions): Warn about
4474         names like "aux".  Problem reported by Eric Blake.
4476         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
4477         by zero instead of array size, so that we can use any arithmetic
4478         constant expression (instead of requiring an integer constant
4479         expression).  This allows us to test expressions like DBL_MAX <
4480         LDBL_MAX, which didn't conform to the C standard using the old
4481         method.
4482         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
4483         now that we can do floating-point tests at compile time.
4485 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4487         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
4488         and LDBL_EPSILON, as the resulting expression isn't an
4489         integer constant expression and violates the C standard.
4490         Problem reported by Nelson H. F. Beebe.  Also, check
4491         for "L" suffix, and check that long double doesn't have
4492         worse range or precision than double, that mixed-mode
4493         arithmetic doesn't generate a diagnostic, that double
4494         constants fit in long double.
4496 2004-06-03  Kevin Ryde  <user42@zip.com.au>
4498         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
4499         malloc(0) and realloc(NULL,size).
4501         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
4502         Bob Proulx.
4504 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4506         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
4507         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
4508         by Jim Meyering.
4510 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4512         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
4513         can be rewritten using if-then-else.  Suggested by Bruno Haible.
4515 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4517         * doc/autoconf.texi (testsuite Scripts): Fix typo.
4518         Problem reported by Stepan Kasal.
4520 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4522         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
4523         change).  Patch reported by Ralf Wildenhues in
4524         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
4526         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
4527         function F exists if the compiler and linker let you compile an
4528         expression like (F != 0).  Recent versions of GCC optimize away
4529         the reference to F in that case, since every function address must
4530         be nonzero, so the link succeeds even if F does not exist.
4531         Problem reported by Manu in
4532         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
4534         * doc/autoconf.texi (Systemology): Standardize on the spelling of
4535         "Unix".  Many uses changed.
4536         (Limitations of Builtins): Explain better why the ! command isn't
4537         portable.
4539 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
4541         * lib/autom4te.in (Automake-preselections): Preselect
4542         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
4544 2004-05-19  Kevin Ryde  <user42@zip.com.au>
4546         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
4547         referencing AC_FUNC_STRERROR_R.
4549         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
4550         note pessimistic assumption when cross compiling.
4552 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4554         * doc/autoconf.texi (Limitations of Make): Note that BSD make
4555         (until 2004) invoked subcommands with sh -e, contra POSIX.
4556         Reported by Kevin Ryde.
4558 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
4560         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
4561         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
4562         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
4563         `test -f "        /usr/bin/grep"', which _always_ failed.
4564         (AC_PROG_SED): Ditto bogus PATH fix.
4565         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
4566         requires that grep correctly supports _multiple_ `-e' options, rather
4567         than stating only that grep should accept `-e'.
4569 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4571         Port to C99, which requires that 'exit' be declared.
4573         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
4574         to ensure that stdlib.h is included.
4575         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
4576         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
4577         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
4578         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
4579         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
4580         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
4581         when using 'exit' in a test; C99 requires that 'exit' be declared.
4583 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4585         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
4586         now prefers 'grep' implementations that accept -e.
4587         (Limitations of Usual Tools): Describe problems of traditional
4588         egrep and fgrep with long input lines, and of traditional grep
4589         with -e.
4590         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
4591         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
4592         All callers changed.  Append /usr/xpg4/bin to the PATH, for
4593         Solaris.
4594         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
4595         the user with complaints about multiple -e options.
4596         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
4597         Define it with AC_PROG_GREP.
4598         * configure.ac (AC_PROG_GREP): Add.
4599         * lib/freeze.mk (GREP): New macro.
4601 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
4603         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
4604         a possible candidate only after all others fail, rather than
4605         consulting it first.  This improves backward compatibility by
4606         better reflecting the way shell selection occurred in previous
4607         versions of Autoconf, and should help to avoid triggering latent
4608         problems in other packages, such as the one in Automake where zsh
4609         is not handled robustly:
4610         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
4611         Although it is not Autoconf's responsibility to work around
4612         problems in Automake, it nevertheless makes sense to avoid
4613         introducing unnecessary incompatibilites.
4615 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
4616             Gary V. Vaughan  <gary@gnu.org>
4618         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
4619         how deeply nested we are when a suitable tool is found, set the
4620         ac_path_TOOL_found flag.
4621         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
4622         nested we are in this macro.  Break out of all 3 nested loops if
4623         ac_path_TOOL_found is set.
4625 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
4627         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
4628         of the _AS_PATH_WALK loop too if GNU flavor is found.
4630 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
4632         * doc/autoconf.texi (Limitations of Make): Update documentation
4633         for `$<'.  New entry `Long lines', based on a report from Simon
4634         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
4635         paragraph about DJGPP, based on a mail from Richard Dawe.
4637 2004-04-20  Paul Eggert  <eggert@twinsun.com>
4639         * tests/c.at (C keywords): Don't assume that GCC supports
4640         "restrict" and "inline", as sufficiently-old GCC versions do not
4641         (also, GCC configured to be in pedantic C89 mode does not).
4642         Problem reported by Sumit Pandya in:
4643         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
4645         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
4646         consider -g to work if it generates warnings when plain compiles
4647         don't.  Problem reported by Braden McDaniel in:
4648         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
4650         * doc/autoconf.texi (Slashes): New section, to document a problem
4651         reported by Jim Meyering in:
4652         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
4654         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
4655         linker output files before linking, to work around IRIX 6 linker bug.
4656         Problem reported by Rainer Orth in:
4657         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
4659 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
4661         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
4662         best tool so far counter rely on the tool path variable name to
4663         avoid checks for one tool being affected by the results of running
4664         the length check on a previous tool.
4666         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
4667         match expression argument, as different greps have different
4668         regular expression flavours.
4669         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
4670         literals.
4671         (AC_PROG_EGREP): Pass 'EGREP$'.
4672         (AC_PROG_GREP): Pass 'GREP$'.
4674 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
4676         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
4677         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
4679 2004-03-29  Paul Eggert  <eggert@twinsun.com>
4681         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
4682         Types, Specific Compiler Characteristics, System Services,
4683         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
4684         etc. consistently instead of 'long', 'short', 'unsigned' etc.
4685         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
4686         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
4687         Likewise.
4688         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
4689         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
4690         AC_TYPE_OFF_T): Likewise.
4691         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
4692         Likewise.
4694         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
4695         pacify libtool 1.5.2.  Fix quoting problems in sed command.
4697 2004-03-28  Paul Eggert  <eggert@twinsun.com>
4699         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
4700         now defines HAVE_DECL_TZNAME if it is declared, when
4701         HAVE_STRUCT_TM_TM_ZONE is not defined.
4702         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
4703         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
4704         for HAVE_TZNAME.
4706 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
4708         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
4709         superfluous backslashing of quotes (") in sed expressions;
4710         thanks to Paul Eggert.
4712 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
4714         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
4715         Fortran compiler is ifort, also added pghpf; thanks to Nelson
4716         H. F. Beebe for the bug report.
4718 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
4720         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
4721         quoted -cmdline argument in Portland Group compiler (bug
4722         reported by Jeffrey J. Barteet).
4724 2004-03-25  Kevin Ryde  <user42@zip.com.au>
4726         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
4727         (Run Time): ... here, where it's now mentioned.
4729 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
4731         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
4732         inherits from language Autoconf-without-aclocal-m4.
4733         (Customizing autom4te): Adjust example; the cache must now be
4734         disabled for language Autoconf-without-aclocal-m4.
4736 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
4737             Nathanael Nerode  <neroden@twcny.rr.com>
4739         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
4740         AC_CHECK_TOOLS): Warn if a cross-tool is found without
4741         a prefix.
4742         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
4743         AC_CHECK_TARGET_TOOLS): New macros.
4744         * doc/autoconf.texi (Generic Programs): Document
4745         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
4746         AC_CHECK_TARGET_TOOLS, and warn for future changes
4747         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
4748         AC_CHECK_TOOLS.
4749         (Specifying Names): Document the reason for these future
4750         behavioral changes.
4751         * tests/mktests.sh: Do not generate tests for the
4752         new macros.
4753         * NEWS: Document these changes.
4755         * doc/autoconf.texi: Avoid macros with unbraced arguments,
4756         they make TeX hang up.
4758 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
4760         * NEWS: New macro AC_CHECK_ALIGNOF.
4761         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
4762         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
4763         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
4764         vowel.
4765         (AC_CHECK_ALIGNOF): New macro.
4766         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
4767         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
4768         those for sizeof.
4770 2004-03-03  Paul Eggert  <eggert@twinsun.com>
4772         * bin/Makefile.am (edit): Don't use $< in a context where
4773         POSIX doesn't require support for it.  Use $@.in instead.
4774         Problem reported by Anthony N. Frasso in
4775         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
4776         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
4778 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
4780         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
4781         from the next generation of Libtool.
4782         * lib/autom4te.in (Autoreconf-preselections): Ditto.
4784 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
4786         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
4787         is not always thread-safe.  Report from Nathanael Nerode.
4789 2004-02-18  Paul Eggert  <eggert@twinsun.com>
4791         Fix a dependencies problem, stemming from a Autoconf 2.59 build
4792         problem on QNX reported by Stephen Rasku in
4793         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
4795         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
4796         $(m4sh_m4f_dependencies); this removes a FIXME.
4797         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
4798         (MAINTAINERCLEANFILES): Split into pieces,
4799         one per related section.  Add $(srcdir)/wrapper.in.
4801 2004-02-09  Paul Eggert  <eggert@twinsun.com>
4803         * doc/autoconf.texi (Setting Output Variables): Emphasize that
4804         AC_SUBST provides no portable way to escape literal newlines.
4806         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
4807         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
4808         Darwin uses -lcrt2.o and there's little point to cataloging all
4809         the system variants.  Partial fix reported by Andreas Waechter in:
4810         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
4811         for bug reported by Nelson H. F. Beebe in:
4812         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
4814 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
4816         * doc/autoconf.texi (AU_DEFUN): Fix English,
4817         suggested by Paul Eggert.
4818         * lib/autoconf/autoupdate.m4: Correct reference to
4819         acobsolete.m4, suggested by Alexandre Duret-Lutz.
4821 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
4823         * bin/autoupdate.in: Define __file__ so that warnings
4824         refer to the correct file.
4825         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
4826         the behavior of the third argument.
4827         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
4828         correctly the behavior of the third argument.  Document
4829         what the three macros that AU_DEFUN defines do.  Fix
4830         warning message when the third argument includes $0
4831         (reported by Alexandre Duret-Lutz).
4833 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
4834             Eric Sunshine  <sunshine@sunshineco.com>
4835             Paul Eggert  <eggert@twinsun.com>
4837         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
4838         (AS_INIT): Output shell initialization there. Removed optional
4839         parameter. Expand _AS_SHELL_FN_SPY.
4840         (AS_INIT_WITH_SHELL_FN): Removed.
4841         (_AS_SHELL_FN_SPY): New macro.
4842         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
4843         macros.
4844         (AS_SHELL_SANITIZE): Remove loop to find better shell
4845         and documentation for the parameter.
4846         (_AS_DETECT_BETTER_SHELL): Move it here.
4847         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
4848         (_AS_RUN): Move it here, support testing with eval.
4849         (AS_REQUIRE_SHELL_FN): Require shell functions when
4850         it is used.
4851         (_AS_LINENO_WORKS): Put around braces, we do not
4852         trigger the bash bug anymore.
4853         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
4854         use AS_INIT_WITH_SHELL_FN.
4855         * bin/autoconf.in, tests/wrapper.in: Regenerated.
4857 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
4859         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
4860         * doc/autoconf.texi: Don't say that the third parameter
4861         is broken.
4862         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
4863         (AU_DEFUN): Honor the third parameter, create autoupdate
4864         macros with AU_DEFINE.
4865         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
4866         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
4867         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
4868         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
4869         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
4870         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
4871         AC_XENIX_DIR): Likewise.
4872         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
4873         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
4874         * lib/autoconf/status.m4: Remove FIXME.
4875         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
4876         that the macro is not present anymore in the updated
4877         configure.ac.
4878         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
4879         of autoupdate.
4881 2004-01-28  Paul Eggert  <eggert@twinsun.com>
4883         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
4884         copyright years.
4885         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
4886         2003 (except 1997) to the list of copyright years.  This undoes
4887         the 2003-05-22 change, which removed the older years from the list.
4888         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
4890 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
4891             Albert Chin-A-Young  <china@thewrittenword.com>
4893         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
4894         grep or ggrep program in PATH that accepts as long lines as
4895         possible.
4896         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
4897         AC_PROG_GREP.
4898         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
4899         egrep and fgrep respectively if $GREP -E/-F don't work.
4900         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
4901         _AC_PROG_GREP, and AC_PROG_SED.
4902         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
4903         longest input length accepted by a command.
4904         (AC_PROG_SED): Use it.
4905         * doc/autoconf.texi (Particular Programs): Document the changes.
4906         * NEWS: Updated.
4908 2004-01-27  Paul Eggert  <eggert@twinsun.com>
4910         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
4911         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
4912         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
4913         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
4915         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
4916         bin/autoconf.in, config/Makefile.in, config/config.guess,
4917         config/config.sub, config/install-sh, config/mdate-sh,
4918         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
4919         lib/Makefile.in, lib/Autom4te/Makefile.in,
4920         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
4921         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
4922         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
4923         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
4924         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
4925         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
4926         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
4927         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
4928         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
4929         tests/actypes.at: Regenerate and/or sync with original
4930         sources.
4932 2004-01-26  Paul Eggert  <eggert@twinsun.com>
4934         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
4935         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
4936         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
4937         not <inttypes.h>.  Problem reported by Tim Mooney in
4938         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
4939         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
4940         Likewise.
4942         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
4943         otherwise "make check" fails because it forbids cmp (I guess
4944         because cmp treats files as binary on DOS-like systems).
4946         * tests/mktests.sh: Update copyright date to 2004, since some tests
4947         have changed in 2004.
4949 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
4951         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
4952         non-truncating sed or gsed program in PATH.
4953         * tests/acprograms.at: Add it.
4954         * doc/autoconf.texi (Particular Programs): Document it.
4955         * NEWS: Updated.
4957 2004-01-15  Paul Eggert  <eggert@twinsun.com>
4959         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
4960         -std1 disables some useful extensions on Tru64.  Problem reported
4961         by N. Lichtmaier in
4962         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
4964 2004-01-14  Paul Eggert  <eggert@twinsun.com>
4966         * doc/autoconf.texi (Programming in M4sh): Document that
4967         AS_MKDIR_P succeeds if the destination is a symbolic link
4968         to an existing directory.
4969         (Limitations of Usual Tools): Note that mkdir -p might not
4970         succeed on symlinks to directories.
4972 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
4974         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
4975         * bin/autoheader.in: Grammar fix in message.
4976         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
4977         Test for dir before calling mkdir -p.  (trivial changes)
4979 2004-01-13  Eric Blake  <ebb9@byu.net>
4981         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
4982         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
4984 2004-01-10  Jim Meyering  <jim@meyering.net>
4986         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
4988 2004-01-09  Paul Eggert  <eggert@twinsun.com>
4990         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
4991         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
4992         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
4993         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
4994         AC_COMPILE_IFELSE, since we now assume our caller invokes
4995         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
4996         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
4997         of AC_RUN_IFELSE; this avoids the warning mentioned above.
4998         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
5000 2004-01-07  Paul Eggert  <eggert@twinsun.com>
5002         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
5003         `"'...'"`, as it's confusing (and I suspect it may not work on
5004         some platforms).  The code was incorrect anyway, as it assumed
5005         that \$ evaluated to itself in that context.  Reported by
5006         Alexandre Duret-Lutz.
5008 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
5010         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
5011         and _LT_AC_TAGCONFIG.
5013 2004-01-06  Paul Eggert  <eggert@twinsun.com>
5015         * doc/autoconf.texi (One Macro Call): Fix an incorrect
5016         example, and add more examples.  Reported by Eric Sunshine.
5018 2004-01-05  Paul Eggert  <eggert@twinsun.com>
5020         * doc/autoconf.texi (Limitations of Usual Tools):
5021         Remove warning against "rm -fr" introduced yesterday; it
5022         was a false alarm.
5024         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
5025         autoscan, autoupdate, ifnames): Don't use chmod -w.
5026         * lib/Makefile.am (autom4te.cfg): Likewise.
5027         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
5028         "chmod -w".
5030 2004-01-04  Paul Eggert  <eggert@twinsun.com>
5031             Paolo Bonzini  <bonzini@gnu.org>
5033         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
5034         by doing lineno substitution only on lines containing "$LINENO".
5036 2004-01-04  Paul Eggert  <eggert@twinsun.com>
5038         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
5039         Use "rm -f" to remove conftest.sed, not plain "rm".
5040         Bug reported by David Relson in
5041         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
5043         * Makefile.am (autom4te-update):
5044         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
5045         * Makefile.maint (my-distcheck, do-po-update): Likewise.
5046         * doc/autoconf.texi (Guidelines): Likewise.
5047         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
5048         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
5049         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
5050         * lib/autotest/general.m4 (AT_INIT): Likewise.
5051         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
5052         * tests/Makefile.am (clean-local): Likewise.
5053         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
5054         srcdir): Likewise.
5055         * doc/autoconf.texi (Limitations of Usual Tools):
5056         Warn against "rm -fr".
5058 2004-01-03  Paul Eggert  <eggert@twinsun.com>
5060         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
5061         -c -o might not work.  From a suggestion by Kevin Ryde.
5062         (C Compiler, Generating Sources, Limitations
5063         of Usual Tools, Limitations of Make, Making testsuite Scripts):
5064         Don't put '-o' after non-options, as POSIX doesn't allow this.
5065         Mention that cc's name might be gcc or c89 or whatever.
5067 2004-01-04  Kevin Ryde  <user42@zip.com.au>
5069         * doc/autoconf.texi: Add various further index entries.
5071 2003-12-29  Paul Eggert  <eggert@twinsun.com>
5073         * bin/autoreconf.in (autoreconf_current_directory):
5074         Fix typo: mkdir without umask arg.
5076 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
5078         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
5079         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
5080         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
5081         explanation clearer.
5083 2003-12-24  Andreas Schwab  <schwab@suse.de>
5085         * doc/autoconf.texi (Default Includes): Fix misspelling of
5086         AC_INCLUDES_DEFAULT.
5088 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
5090         * configure.ac: Test if sh -n works.
5091         * configure: Regenerate.
5092         * tests/atlocal.in: Store the result here.
5093         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
5094         tools.at, looking in atlocal's ac_cv_sh_n_works instead
5095         of explicitly testing.
5096         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
5097         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
5098         * tests/tools.at (Syntax of the shell scripts): Simplify
5099         using AT_CHECK_SHELL_SYNTAX.
5100         (Syntax of the Perl scripts): Remove definition of
5101         AT_CHECK_PERL_SYNTAX.
5103 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
5105         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
5106         stderr to /dev/null.
5107         * bin/autoconf.in: Regenerate.
5108         * bin/wrapper.in: Regenerate.
5110 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
5112         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
5113         Extracted from AS_SHELL_SANITIZE.
5114         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
5115         macros.
5116         (AS_SHELL_SANITIZE): Move reinvocation code from
5117         _AS_LINENO_WORKS, use it to find out if shell
5118         functions work.
5119         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
5120         does not work.
5121         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
5122         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
5123         was called.
5124         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
5125         * bin/autoconf.in: Regenerate.
5126         * tests/wrapper.in: Regenerate.
5127         * tests/tools.at: Test the syntax of tests/autoconf
5128         and tests/testsuite.
5130 2003-11-24  Akim Demaille  <akim@epita.fr>
5132         * config/announce-gen (&print_locations, &print_signatures)
5133         (&sizes): New.
5134         Use them.
5135         No longer rely on Gnus to inline the list of signatures: compute
5136         them on the fly.
5138 2003-11-24  Akim Demaille  <akim@epita.fr>
5140         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
5141         override some files.
5142         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
5143         From Debian Autoconf 2.58.
5145 2003-11-24  Akim Demaille  <akim@epita.fr>
5147         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
5148         uses.
5149         From Debian Autoconf 2.58.
5151 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5153         * TODO: Remove already done things.  Update the part about finding
5154         tools for the target.
5156 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5158         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
5159         Make wording more consistent.
5160         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
5161         Explain the transition better.
5162         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
5163         the transition better.
5165 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5167         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
5168         parameter of AU_DEFUN.
5169         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
5170         (AU_DEFUN): Remove the third parameter, it was not used.
5171         Use AC_DEFUN directly, not AU_DEFINE.
5172         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
5173         the expanded body, consistently with other macros such as AC_USG.
5175 2003-11-17  Paul Eggert  <eggert@twinsun.com>
5177         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
5178         into the initial confdefs.h, to work around a bug in NextStep 3.3
5179         patch 3 reported by Eric Sunshine.
5181 2003-11-15  Kevin Ryde  <user42@zip.com.au>
5183         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
5184         than $target since the latter is not usual, add guidelines on when to
5185         use or not use the system type.
5187 2003-11-12  Derek Price  <derek@ximbiot.com>
5189         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
5190         typo misrepaired by an auto-spellcheck.
5192 2003-11-12  Akim Demaille  <akim@epita.fr>
5194         * bin/autoreconf.in (&parse_args): Don't call automake with
5195         --force-missing unless it actually supports it.
5196         From Debian #219336.
5198 2003-11-12  Akim Demaille  <akim@epita.fr>
5200         * configure.ac: Bump to 2.59a.
5201         Require 2.59.
5203 2003-11-06  Akim Demaille  <akim@epita.fr>
5205         Version 2.59.
5207 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
5209         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
5210         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
5211         and ac_abs_top_srcdir are absolute paths.
5212         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
5214 2003-11-05  Akim Demaille  <akim@epita.fr>
5216         * configure.ac: Bump to 2.58a.
5218 2003-11-05  Kevin Ryde  <user42@zip.com.au>
5220         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
5221         it provokes a warning from makeinfo about looking like a cross
5222         reference in info output.
5224         * doc/autoconf.texi (Function Portability): Add notes on signal
5225         handler return type, as per AC_TYPE_SIGNAL.
5227 2003-11-04  Akim Demaille  <akim@epita.fr>
5229         Version 2.58.
5230         * doc/standards.texi: Update from master.
5232         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
5234 2003-11-04  Akim Demaille  <akim@epita.fr>
5236         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
5237         computing the absolute path to d1 in the source hierarchy: it may
5238         not exist at all.  So don't cd into it.
5239         From Alexandre Duret-Lutz.
5240         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
5242         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
5243         From Paul Eggert, but named after Perl's IO::Spec->catfile.
5244         * doc/autoconf.texi (Programming in M4sh): Document.
5245         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
5247 2003-11-03  Pavel Roskin  <proski@gnu.org>
5249         * doc/autoconf.texi (Generic Structure Checks): Describe
5250         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
5252 2003-10-31  Akim Demaille  <akim@epita.fr>
5254         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
5255         (GNU Fortran): New.
5256         * doc/autoconf.texi (Language Choice): Document.
5257         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
5258         the current language is Fortran.
5260 2003-10-31  Akim Demaille  <akim@epita.fr>
5262         * bin/autom4te.in (&freeze): Use a less likely warning separator
5263         than `\n\n', so that `\n\n\n' is valid in warnings.
5264         Reported by Steve Huston.
5266 2003-10-28  Akim Demaille  <akim@epita.fr>
5268         * Makefile.cfg (local_updates, executable-update): Tweak to be
5269         robust to parallel makes.
5270         Suggested by Alexandre Duret-Lutz.
5272 2003-10-27  Akim Demaille  <akim@epita.fr>
5274         * Makefile.cfg (executable-update): New.
5275         (local_updates): Call it.
5277 2003-10-27  Akim Demaille  <akim@epita.fr>
5279         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
5280         Don't remove core.* as it may remove valid user files.
5281         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
5282         (AC_FUNC_UTIME_NULL): Likewise.
5284 2003-10-23  Akim Demaille  <akim@epita.fr>
5286         Version 2.57g.
5287         * config/config.guess, config/config.sub: Upgrade from masters.
5289 2003-10-23  Akim Demaille  <akim@epita.fr>
5291         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
5292         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
5293         hand...
5295 2003-10-23  Akim Demaille  <akim@epita.fr>
5297         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
5298         Don't forget to remove conftest.err.
5300 2003-10-23  Akim Demaille  <akim@epita.fr>
5302         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
5303         same object file in $LIBOBJS.
5304         Reported by Alexandre Duret-Lutz & Derek Robert Price.
5305         * doc/autoconf.texi (Generic Functions): Adjust.
5307 2003-10-20  Paul Eggert  <eggert@twinsun.com>
5309         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
5310         Use 'eval', so that the resulting configure scripts work even if
5311         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
5313 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
5315         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
5316         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
5317         (_AC_LINK_IFELSE): Check the werror flag.
5318         * doc/autoconf.texi (Generic Compiler Characteristics): Document
5319         AC_LANG_WERROR.
5320         * NEWS: Mention it.
5322 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
5324         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
5325         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
5326         override AC_LINK_IFELSE.
5328 2003-10-15  Paul Eggert  <eggert@twinsun.com>
5330         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
5331         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
5332         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
5333         Mention /usr/dt/bin/dtksh on Solaris.
5334         (Shell Substitutions): Warn about $((...)).
5335         (Parentheses): New section.
5337 2003-10-15  Kevin Ryde  <user42@zip.com.au>
5339         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
5340         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
5342 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5344         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
5345         cross test.
5347 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
5349         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
5350         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
5352 2003-10-10  Andreas Schwab  <schwab@suse.de>
5354         * bin/autoheader.in: Avoid empty first line in --version and
5355         --help output.
5356         * bin/ifnames.in: Likewise.
5358 2003-10-09  Paul Eggert  <eggert@twinsun.com>
5360         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
5361         Issue a more-informative diagnostic.
5362         Problems reported by Eric Sunshine.
5364 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
5366         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
5367         -mGLOB_options_string stuff for Intel ifc, which can cause
5368         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
5369         pattern-matching instead of grep.
5371 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
5373         * doc/autoconf.texi: Document new FC Fortran macros.
5375 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
5377         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
5378         that future autopoint/aclocal/automake/autoreconf will be able
5379         to trace to find where to install local m4 macros.
5380         * doc/autoconf.texi (Input): Document it.
5381         * NEWS: Updated.
5383 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
5385         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
5386         -lcrtbegin.o to list of ignored flags and fix underquoting of
5387         -lcrt[01].o.
5389 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
5391         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
5392         cache variable instead of $G77 to decide whether to include -O2,
5393         since $G77 is specific to Fortran 77.
5395 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5397         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
5398         free" flag.  Re-order flags tested into rough order of popularity.
5400 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5402         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
5403         arguments so that it can be used with syntax identical to
5404         AC_PROG_F77, and so that we can more easily decide to
5405         remove/deprecate the DIALECT optional argument in the future if it
5406         proves troublesome.
5407         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
5408         non-freeform-supporting compilers.  Document freeform flags.
5410 2003-10-03  Akim Demaille  <akim@epita.fr>
5412         * configure.ac: Look for emacs, not macs.
5413         Reported by Eric Sunshine.
5415 2003-10-03  Akim Demaille  <akim@epita.fr>
5417         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
5418         * bin/autoreconf.in (autoreconf_current_directory): Create the
5419         AUX_DIR if needed, for sake of automake --add-missing etc.
5420         Suggested by Alexandre Duret-Lutz.
5422 2003-10-03  Akim Demaille  <akim@epita.fr>
5424         * configure.ac: Quotation and formatting changes.
5425         (EMACS): Don't set it if it is not recent enough to support
5426         autoconf-mode.el.
5427         From Eric Sunshine.
5429 2003-10-02  Akim Demaille  <akim@epita.fr>
5431         * bin/ifnames.in (&scan_file): Skip C++ comments.
5432         From Jeremy Yallop.
5434 2003-10-01  Pavel Roskin  <proski@gnu.org>
5436         * doc/autoconf.texi (Particular Structure Checks):
5437         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
5439 2003-10-01  Akim Demaille  <akim@epita.fr>
5441         Version 2.57f.
5443 2003-09-30  Paul Eggert  <eggert@twinsun.com>
5445         * lib/Autom4te/XFile.pm: Use Errno.
5446         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
5447         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
5449 2003-09-30  Akim Demaille  <akim@epita.fr>
5451         * config/announce-gen (&print_news_deltas): Extracted from...
5452         (&print_changelog_deltas): here.
5453         (&news_file): Rename as...
5454         (@news_file): this.
5456 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
5458         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
5459         have been created when invoking the compiler.
5460         * tests/fortran.at (GNU Fortran 77): Quote $G77.
5462 2003-09-29  Akim Demaille  <akim@epita.fr>
5464         Version 2.57e.
5466         * config/mkinstalldirs: Upgrade.
5468 2003-09-28  Paul Eggert  <eggert@twinsun.com>
5470         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
5471         Problem reported by Lars J. Aas in
5472         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
5473         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
5474         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
5475         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
5477 2003-09-26  Akim Demaille  <akim@epita.fr>
5479         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
5480         directory for AC_CONFIG_COMMANDS' first argument exists.
5481         This makes valid the invocation of _AC_SRCPATH that follows.
5482         Reported by Eric Sunshine.
5483         * doc/autoconf.texi (Configuration Commands): Adjust.
5485 2003-09-26  Akim Demaille  <akim@epita.fr>
5487         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
5488         Reported by Ralf Corsepius.
5490 2003-09-26  Akim Demaille  <akim@epita.fr>
5492         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
5493         arguments.
5494         Actually, use AU_ALIAS.
5495         From Bruno Haible.
5497 2003-09-26  Paul Eggert  <eggert@twinsun.com>
5499         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
5500         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
5501         Problem reported by Eric Sunshine in:
5502         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
5504 2003-09-26  Akim Demaille  <akim@epita.fr>
5506         The test suite are sometimes assigning timings incorrectly.
5507         Reported by Henk Krus.
5508         Diagnosed by Nicolas Joly.
5510         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
5511         AT_help_all.
5512         Instead of making AT_help a sequence of assignments to grow
5513         $at_help_all, just make AT_help_all be the growing contents of
5514         $at_help_all, and make a single assignment in...
5515         (AT_INIT): here.
5516         (at_times_skip): Flip the meaning and rename as...
5517         (at_times_p): this.
5518         (AT_INIT): When summarizing the test that ran, remove
5519         $at_times_file after use, and check it is present before trying to
5520         use it.
5522 2003-09-25  Akim Demaille  <akim@epita.fr>
5524         Version 2.57d.
5526         * bin/Makefile.am (edit): Handle '@configure_input@'.
5527         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
5528         (ifnames): chmod -w.
5529         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
5530         executables, not bin/ executables!  Otherwise all the magic needed
5531         to find non installed files is turned off.  This caused a failure
5532         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
5533         as found in its environment (sent by tests/autoreconf): pointing
5534         to bin/autom4te that could not find its files.
5535         * tests/mktests.sh: Force the replacement of generated files, for
5536         the sake of "mv" program that are interactive when overwriting a
5537         -w file.
5538         * config/install-sh: Upgrade from CVS Automake.
5540 2003-09-23  Paul Eggert  <eggert@twinsun.com>
5542         * doc/autoconf.texi (Limitations of Builtins): Document test -h
5543         versus test -L issues.
5545 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
5546             Paul Eggert  <eggert@twinsun.com>
5548         Trivial change to support GCC's configuration procedure.
5549         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
5550         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
5551         about inconsistency if the preprocessor is set to give errors for
5552         any warning.
5553         * doc/autoconf.texi (C Compiler Characteristics): Document this.
5555 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
5557         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
5558         and XFile.pm from Automake.
5559         * lib/Autom4te/XFile.pm: Update from Automake.
5561 2003-09-12  Akim Demaille  <akim@epita.fr>
5563         Version 2.57c.
5565 2003-09-12  Akim Demaille  <akim@epita.fr>
5567         * config/config.guess, config/config.sub, config/missing,
5568         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
5569         from masters.
5571 2003-09-12  Akim Demaille  <akim@epita.fr>
5573         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
5574         not asm/types.h.
5576 2003-09-11  Akim Demaille  <akim@epita.fr>
5578         * doc/autoconf.texi (Header Portability): linux/random.h.
5579         From Peter Hendrickson.
5581 2003-09-10  Akim Demaille  <akim@epita.fr>
5583         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
5584         willing to edit the output files.
5586 2003-09-10  Akim Demaille  <akim@epita.fr>
5588         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
5589         and AC_FC_FREEFORM.
5590         * tests/mktests.sh: Skip AC_FC_SRCEXT.
5591         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
5593 2003-09-09  Akim Demaille  <akim@epita.fr>
5595         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
5596         Reported by Gary Vaughan.
5597         * bin/autom4te.in (handle_m4): Likewise.
5599 2003-09-09  Akim Demaille  <akim@epita.fr>
5601         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
5602         trailing files.
5604 2003-09-07  Paul Eggert  <eggert@twinsun.com>
5606         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
5607         Improve the accuracy of the wording about obsolescence.
5608         From a suggestion by Ian Lance Taylor in
5609         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
5611 2003-09-05  Paul Eggert  <eggert@twinsun.com>
5613         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
5614         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
5616 2003-09-04  Akim Demaille  <akim@epita.fr>
5618         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
5619         AC_FUNC_WAIT3.
5621 2003-09-04  Akim Demaille  <akim@epita.fr>
5623         * bin/autom4te.in: Use &fatal where more appropriate than &error.
5624         (freeze): When exiting, use $exit_code.
5625         * lib/autoconf/fortran.m4: Comment changes.
5627 2003-09-04  Akim Demaille  <akim@epita.fr>
5629         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
5631 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
5633         Add support for newer Fortran dialects.  The F77 interface is
5634         unchanged, and continues to support Fortran 77.  New FC macros
5635         correspond to all the old F77 macros, with output variables FC,
5636         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
5637         available dialect, but older dialects can be specified.  There are
5638         new macros AC_FC_SRCEXT to set the source extension, and
5639         AC_FC_FREEFORM to accept free-form source files.
5641         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
5642         New macros.
5643         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
5644         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
5645         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
5646         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
5647         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
5648         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
5649         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
5650         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
5651         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
5652         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
5653         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
5654         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
5655         AC_FC_SRCEXT, AC_FC_FREEFORM):
5656         New macros.
5657         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
5658         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
5659         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
5660         Rewrite in terms of the above.
5661         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
5662         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
5663         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
5664         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
5666 2003-09-02  Paul Eggert  <eggert@twinsun.com>
5668         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
5669         Document problems with timestamp resolution that 'make', 'cp -p', and
5670         'touch -r' have.
5672 2003-08-27  Akim Demaille  <akim@epita.fr>
5674         * tests/m4sugar.at (cross_warning): Make sure to enable the
5675         output, so that we can track spurious m4sugar output.
5676         * tests/local.at: Require 2.57.
5677         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
5678         are defaulted by AT_CHECK anyway.
5679         Use AT_CHECK_AUTOM4TE.
5680         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
5681         missing dnl.
5683 2003-08-27  Akim Demaille  <akim@epita.fr>
5685         * bin/autoheader.in: Issue the "Using auxiliary..." message only
5686         when -Wobsolete is set.
5687         Set it on by default.
5688         Suggested by Klee Dienes.
5690 2003-08-27  Akim Demaille  <akim@epita.fr>
5692         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
5693         documentation.
5694         From Guido Draheim.
5696 2003-08-26  Akim Demaille  <akim@epita.fr>
5698         * doc/autoconf.texi (Output): Make clear that one can run code
5699         after AC_OUTPUT.
5701 2003-08-25  Akim Demaille  <akim@epita.fr>
5703         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
5704         CVS Bison.
5706 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
5708         * bin/autoreconf.in (parse_args): Do not pass --no-force to
5709         Automake versions prior to 1.8.
5711 2003-08-25  Akim Demaille  <akim@epita.fr>
5713         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
5714         From Ville Karaila.
5716 2003-08-24  Akim Demaille  <akim@epita.fr>
5718         * configure.ac: Bump to 2.57c.
5720 2003-08-22  Akim Demaille  <akim@epita.fr>
5722         Version 2.57b.
5724         * Makefile.cfg (local-checks-to-skip): New.
5725         * Makefile.maint (local-check): Rename as...
5726         (local-checks-available): this.
5727         (local-check): New.
5729         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
5730         * configure.ac: Require Automake 1.7.6.
5732 2003-08-22  Akim Demaille  <akim@epita.fr>
5734         Output stack traces in warnings.
5736         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
5737         Replace the former...
5738         (m4_warn): Pass the call stack to _m4_warn.
5739         * bin/autom4te.in: Adjust to output the call stack.
5740         * tests/m4sugar.at (m4@&t@_warn): Adjust.
5742 2003-08-22  Akim Demaille  <akim@epita.fr>
5744         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
5745         * bin/autom4te.in: Adjust.
5747 2003-08-21  Akim Demaille  <akim@epita.fr>
5749         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
5750         (&verbose): Remove.
5751         (&getopt): Adjust the note and verb channels, depending upon
5752         --verbose.
5753         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
5754         * bin/autoupdate.in: Adjust.
5755         Use &verb, not &verbose.
5757 2003-08-21  Akim Demaille  <akim@epita.fr>
5759         * bin/autoheader.in (&parse_args): Use &parse_warnings and
5760         &parse_WARNINGS.
5761         ($help): Use Autom4te::ChannelDefs::usage.
5762         * bin/autoscan.in: Use Autom4te::ChannelDefs.
5763         * lib/Autom4te/General.pm: Don't export error: you don't own it.
5765 2003-08-21  Akim Demaille  <akim@epita.fr>
5767         First stab at preserving warnings between calls to autom4te,
5768         including when the cache is used.
5770         There are still several issues: (i) there are too many runs of m4
5771         (one for include, one for warnings, and some more), (ii) warnings
5772         spreading on several lines are not handled gracefully, (iii) the
5773         code meant to have the call stack display for errors does not work
5774         (its handling should move from m4 to autom4te).
5776         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
5777         Use them.
5778         (@preselect): Add m4_warn.
5779         ($exit_status): Remove, use $exit_code.
5780         ($help): Use Autom4te::ChannelDefs::usage.
5781         (&handle_m4): No longer define the m4_warnings.
5782         At each run, extract and report the warnings.
5783         Always cache the result, including if the exit status is on
5784         failure, since if nothing changes, we should result in the same
5785         failure, hence we can use the cache.
5786         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
5787         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
5788         Remove.
5789         (m4_warn): Redefine as a do-nothing: it is its invocation that
5790         matters, as warnings are now reported via traces.
5791         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
5792         the contents of m4_warn: make it _call_ m4_warn, so that tracing
5793         the latter reveals calls to the former.
5795         Adjust the tests.
5797         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
5799 2003-08-21  Akim Demaille  <akim@epita.fr>
5801         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
5802         Use them.
5804 2003-08-21  Akim Demaille  <akim@epita.fr>
5806         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
5807         forward order.
5808         * lib/Autom4te/ChannelDefs.pm: Doc typos.
5809         (&parse_warnings): Accept a list of warning requests.
5810         (&usage): Return a string, not a side effect.
5811         (cross): New warning category.
5813 2003-08-21  Akim Demaille  <akim@epita.fr>
5815         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
5816         (&require_configure_ac): Accept an optional directory argument.
5817         ($configure_ac): Remove.
5818         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
5819         (&catfile): Remove.
5820         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
5821         * bin/autoscan.in: Adjust.
5823 2003-08-20  Akim Demaille  <akim@epita.fr>
5825         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
5826         Reported by Alexandre Duret-Lutz.
5828 2003-08-20  Akim Demaille  <akim@epita.fr>
5830         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
5831         * bin/autom4te: Adjust.
5832         In particular, be Autoconf tools are really silent when properly
5833         working, bind the verbosity of the 'note' channel to $verbose.
5834         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
5835         (&xsystem, &contents): Remove, since they are exported by...
5836         * lib/Autom4te/FileUtils.pm: this.
5837         More perldoc.
5838         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
5839         * lib/Autom4te/FileUtils.pm: here.
5841 2003-08-20  Akim Demaille  <akim@epita.fr>
5843         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
5844         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
5845         from CVS Automake.
5847 2003-08-20  Akim Demaille  <akim@epita.fr>
5849         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
5850         (autom4te-update): New.
5851         * Makefile.cfg (update): Bind autom4te-update.
5853 2003-08-19  Derek Price  <derek@ximbiot.com>
5855         * lib/autotest/general.m4: Comment various HELP_* diversions.
5856         (PARSE_ARGS_BEGIN): New section for option parsing related
5857         initialization.
5858         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
5859         package specific options and associated help.
5861 2003-08-19  Akim Demaille  <akim@epita.fr>
5863         * config/announce-gen, Makefile.cfg: New.
5864         * Makefile.am: Adjust.
5865         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
5867 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
5869         * lib/autom4te.in (Automake-preselections): Preselect
5870         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
5871         and m4_sinclude.
5873 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
5875         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
5876         (Autoconf-without-aclocal-m4): ... this new language.
5877         * doc/autoconf.texi (autom4te Invocation): Mention
5878         Autoconf-without-aclocal-m4.
5880 2003-08-18  Derek Price  <derek@ximbiot.com>
5882         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
5883         RUN-IF-PASS optional arguments.
5885 2003-08-18  Derek Price  <derek@ximbiot.com>
5887         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
5889 2003-08-16  Derek Price  <derek@ximbiot.com>
5891         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
5892         STDOUT & STDERR arguments.
5894 2003-08-14  Derek Price  <derek@ximbiot.com>
5896         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
5897         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
5898         shorter column three.  Add DESCRIPTION to log file content.
5900 2003-08-13  Derek Price  <derek@ximbiot.com>
5902         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
5903         output.
5905 2003-08-12  Derek Price  <derek@ximbiot.com>
5907         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
5908         (AT_CHECK_NOESCAPE): Move core functionality to...
5909         (_AT_CHECK): ...this new macro.
5911 2003-08-07  Derek Price  <derek@ximbiot.com>
5913         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
5914         (AT_CHECK_NOESCAPE): ...to this new macro.
5916 2003-07-31  Paul Eggert  <eggert@twinsun.com>
5918         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
5919         in Bash 2.01.  Problem reported by Brian Gough in
5920         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
5922 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
5924         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
5925         -lcrt1.o, for OS X.  (trivial change)
5927 2003-07-07  Paul Eggert  <eggert@twinsun.com>
5929         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
5930         inside '#ifndef __cplusplus'.  Problem reported by
5931         Bob Friesenhahn.
5933 2003-07-06  Bill Clarke  <llib@computer.org>
5935         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
5936         'long', not 'int', for benefit of Sun's recent C++ compilers
5937         (trivial change).  See:
5938         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
5939         (This really should be 'intptr_t', not 'long', but that would
5940         take more work.)
5942 2003-06-25  Akim Demaille  <akim@epita.fr>
5944         * lib/Makefile.am (autom4te.cfg): Make it read only.
5945         Depend on Makefile since it contains substitutions.
5946         From Paolo Bonzini.
5947         * lib/autom4te.in (args): Add local.at? for Autotest args.
5948         This change was made on autom4te.cfg which is generated.
5949         Reported by Raja R. Harinath.
5951 2003-06-25  Akim Demaille  <akim@epita.fr>
5953         * doc/autoconf.texi (Header Portability): sys/mount.h.
5954         From Gareth McCaughan.
5956 2003-06-23  Akim Demaille  <akim@epita.fr>
5958         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
5959         not all of them.  This fixes 1. the fact that when testing
5960         Autoconf there are many many config.log, 2. the incorrect use of
5961         top_srcdir to find config.log.
5962         Don't mix the detailed output of failed test with the summary of
5963         failures.  Rather, append detailed log afterwards.
5965 2003-06-23  Akim Demaille  <akim@epita.fr>
5967         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
5968         always run: output config.log on $at_group_log.
5970 2003-06-23  Akim Demaille  <akim@epita.fr>
5972         * tests/torture.at (#define header templates): Don't use quotes in
5973         C++ comments as it puzzles Emacs' sh font-lock-mode.
5975 2003-06-23  Akim Demaille  <akim@epita.fr>
5977         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
5978         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
5979         * tests/atspecific.m4: Rename as...
5980         * tests/local.at: This.
5981         * tests/suite.at: Move the globals into...
5982         * tests/local.at: here.
5983         * tests/Makefile.am: Adjust.
5984         * doc/autoconf.texi (testsuite Scripts): Adjust.
5986 2003-06-21  Kevin Ryde  <user42@zip.com.au>
5988         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
5989         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
5990         ensuring we add -std1 for full-ANSI.
5992         * doc/autoconf.texi (hdrindex): New macro.
5993         Add index entries for portability of various standard header files.
5995 2003-06-20  Akim Demaille  <akim@epita.fr>
5997         * configure.ac: Bump to 2.57b.
5999 2003-06-20  Akim Demaille  <akim@epita.fr>
6001         Version 2.57a.
6003 2003-06-20  Akim Demaille  <akim@epita.fr>
6005         * bin/autom4te.in: Don't rely on $HOME being defined.
6006         Reported by Marc Espie as PR/233.
6008 2003-06-20  Akim Demaille  <akim@epita.fr>
6010         * lib/autotest/general.m4: Use at_times_file only if used.
6011         From Nicolas Joly.
6013 2003-06-20  Akim Demaille  <akim@epita.fr>
6015         * config/config.guess, config/config.sub, config/elisp-comp,
6016         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
6017         Update from masters.
6019 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
6021         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
6022         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
6023         (TEST_SCRIPT): New diversion.
6024         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
6025         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
6026         (AT_INIT): Support for expected failures.
6028 2003-06-02  Akim Demaille  <akim@epita.fr>
6030         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
6031         changes.
6032         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
6033         Autoconf nor Automake.
6034         (&contents): New, from Automake.
6035         PODify.
6037 2003-05-28  Paul Eggert  <eggert@twinsun.com>
6039         * NEWS, doc/autoconf.texi (Particular Functions),
6040         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
6041         is the inverse of localtime.
6043 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
6045         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
6046         (handle_exec_errors): New function.  Work around $! being
6047         altered by WEXITSTATUS.
6048         (xqx, xsystem): Use handle_exec_errors.
6050 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
6052         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
6053         Do not call `_exit()', simply modify `$?'.
6054         (xsystem): Reset $! before running system, and check it afterward.
6055         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
6056         63 for version mismatches.
6058 2003-05-23  Akim Demaille  <akim@epita.fr>
6060         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
6061         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
6062         the middle of a line).
6063         * lib/m4sugar/m4sugar.m4: Likewise.
6064         Remove useless spaces in comments.
6066 2003-05-23  Akim Demaille  <akim@epita.fr>
6068         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
6069         exit 63, so that we (or Automake's "missing") can tell the
6070         difference with a plain failure.
6071         * doc/autoconf.texi (Notices): Adjust.
6073 2003-05-23  Akim Demaille  <akim@epita.fr>
6075         * Makefile.am, bin/Makefile.am, config/Makefile.am,
6076         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
6077         White spaces cleanup.
6079 2003-05-22  Jim Meyering  <jim@meyering.net>
6080             Paul Eggert  <eggert@twinsun.com>
6082         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
6083         Remove `#include <stdlib.h>' from the list; we should never
6084         make confdefs.h include <stdlib.h> or <cstdlib>, because the
6085         resulting namespace pollution would cause other tests to fail.
6086         Configure scripts run with some older versions of g++ and HP's
6087         aCC would fail due to such an #include.  Problems reported by
6088         Matthew Mueller in <http://bugs.debian.org/120704> and by
6089         Keith Bostic in
6090         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
6091         In the test, use the test declaration before including <stdlib.h>,
6092         as that's closer to how it'll be used.
6094 2003-05-23  Akim Demaille  <akim@epita.fr>
6096         * doc/autoconf.texi (Header Portability): ucred.h.
6097         From Ian Redfern.
6099 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
6101         Overhaul Autotest's logging: generate separate log files
6102         in testsuite.dir/NNN/testsuite.log, and append them to
6103         testsuite.log instead of re-running the test verbosely.
6105         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
6106         file descriptor, write 0 to at_status_file instead of setting
6107         at_status=0, initialize some new variables (at_status_file,
6108         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
6109         to rerun the tests, instead append the at_group_log to the
6110         at_suite_log when a test fails.
6111         (AT_SETUP): pipe the test case's output into at_tee_pipe,
6112         with the AS_MESSAGE_LOG_FD redirected to stdout.
6113         (AT_CLEANUP): save the output status in $at_status_file
6114         and restore it, redirect the AS_MESSAGE_LOG_FD back to
6115         its original place.
6116         (AT_CHECK): since tests are run with a redirected stdout,
6117         and used to be re-run in verbose mode, turn some $at_verbose
6118         into echo, and don't redirect the output of testing stdout
6119         and stderr.
6121         * lib/autotest/autoconf.texi (testsuite Scripts): Update
6122         the name of the debugging directory and information about
6123         its contents.
6125 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
6127         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
6128         parameter.
6130 2003-05-22  Akim Demaille  <akim@epita.fr>
6132         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
6133         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
6134         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
6135         * lib/autoconf/status.m4: Fix and adjust copyright notices.
6137 2003-05-22  Akim Demaille  <akim@epita.fr>
6139         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
6140         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
6141         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6142         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
6143         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
6144         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
6145         * lib/autoconf/status.m4, lib/autoconf/types.m4,
6146         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
6147         * tests/atspecific.m4, tests/base.at, tests/compile.at,
6148         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
6149         * tests/tools.at, tests/torture.at:
6150         Whitespace clean up.
6151         Suggested by Jim Meyering.
6153 2003-05-22  Akim Demaille  <akim@epita.fr>
6155         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
6156         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
6157         Reported by Jim Meyering.
6159 2003-05-22  Akim Demaille  <akim@epita.fr>
6161         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
6162         Add AC_HELP_STRING  to the obsolete macros section.
6163         Typos.
6164         Use '@.' for sentences that ended in a capital letter.
6165         From Art Haas.
6167 2003-05-22  Akim Demaille  <akim@epita.fr>
6169         * config/config.guess, config/config.sub, config/elisp-comp,
6170         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
6171         * config/texinfo.tex, doc/standards.texi: Update from masters.
6173 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
6175         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
6176         it to eval.
6178 2003-05-21  Akim Demaille  <akim@epita.fr>
6180         * bin/autoupdate.in ($m4): Fix quotation.
6181         Reported by Martin Mokrejs.
6183 2003-05-19  Paul Eggert  <eggert@twinsun.com>
6185         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
6186         Remove non-ASCII characters.
6188 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
6190         * tests/semantics.at (AC_SEARCH_LIBS): New test.
6191         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
6192         AC_CHECK_HEADERS_NEW): New tests.
6194 2003-05-17  Akim Demaille  <akim@epita.fr>
6196         * lib/autoconf/functions.m4: Use the default includes so that
6197         memcmp be declared before being tested.
6198         Reported by Sander Niemeijer.
6199         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
6200         * doc/autoconf.texi (Default Includes): Document
6201         AC_INCLUDES_DEFAULT.
6203 2003-05-17  Akim Demaille  <akim@epita.fr>
6205         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
6206         * doc/autoconf.texi (Obsolete Macros): Adjust.
6207         Reported by Werner LEMBERG and Debian Bug 190886.
6209 2003-05-16  Akim Demaille  <akim@epita.fr>
6211         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
6212         user name space clashes.
6213         Reported by Bruno Haible.
6215 2003-05-16  Akim Demaille  <akim@epita.fr>
6217         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6218         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
6219         them uniform, and more robust to Perl special characters.
6220         Reported by Martin Mokrejs.
6222 2003-05-14  Akim Demaille  <akim@epita.fr>
6224         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
6226 2003-05-14  Akim Demaille  <akim@epita.fr>
6228         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
6229         linux/irda.h.
6231 2003-05-12  Akim Demaille  <akim@epita.fr>
6233         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
6234         message.
6235         From Matthias Andree.
6237 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
6239         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
6240         and truncate.
6242 2003-05-06  Akim Demaille  <akim@epita.fr>
6244         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
6245         longer updates aclocal.m4 if useless, (ii) if a file m4_included
6246         by aclocal.m4 is changed it might require the importing of another
6247         m4 extension file, i.e., aclocal must be run.
6249         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
6250         (&parse_args): Use --force with aclocal if required and supported.
6251         (&autoreconf_current_directory): Use &run_aclocal.
6253 2003-05-06  Akim Demaille  <akim@epita.fr>
6255         Lock autom4te's cache.
6257         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
6258         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
6259         argument instead of a file name, so that the request file remains
6260         open during the whole autom4te run.
6261         ($icache_file): New.
6262         (&freeze): Lock the $icache_file.
6264 2003-04-29  Derek Price  <derek@ximbiot.com>
6266         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
6267         seperator with m4_append_uniq().  It doesn't work.
6268         (AT_CLEANUP): Add `;' to end of at_help_all.
6269         (AT_INIT): Allow --keywords to be specified more than once.  When
6270         grepping $at_help_all for keywords, use the field and keyword
6271         seperators to ensure a complete keyword match.  Alter at_prev handling
6272         to support the new --keywords behavior.
6274 2003-04-27  Karl Berry  <karl@freefriends.org>
6276         * doc/autoconf.texi: Make the dir entries in the autoconf manual
6277         align better with others.  I also made some of the individual
6278         entries on one line, for brevity and to make it easier for me to
6279         sort my dir-example file in the Texinfo distribution :).
6281 2003-04-12  Jim Meyering  <jim@meyering.net>
6283         * NEWS: Mention the new macro.
6284         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
6285         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
6286         * tests/c.at: Test AC_C_RESTRICT.
6287         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
6289 2003-04-08  Akim Demaille  <akim@epita.fr>
6291         * bin/ifnames.in: Skip C++ comments.
6292         From Jeremy Yallop.
6294 2003-04-08  Akim Demaille  <akim@epita.fr>
6296         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
6297         From Ilya Zakharevich.
6299 2003-04-08  Akim Demaille  <akim@epita.fr>
6301         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
6302         net/if.h, stdlib.h.
6304 2003-04-01  Derek Price  <derek@ximbiot.com>
6306         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
6307         from Akim's checkin of 2003-03-29.
6309 2003-04-01  Derek Price  <derek@ximbiot.com>
6311         * tests/torture.at (Configuring subdirectories): Add missing
6312         close-quote for Akim's change from 2003-03-28.
6314 2003-04-01  Akim Demaille  <akim@epita.fr>
6316         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
6317         (AC, AT, MS): these.
6318         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
6319         New.
6320         Use them.
6321         * doc/Makefile.am (CLEANFILES): Adjust.
6322         (TEXI2DVI): Make it --batch.
6324 2003-03-31  Derek Price  <derek@ximbiot.com>
6326         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
6327         which removed the main loop.
6328         Thanks to Akim Demaille.
6330 2003-03-29  Akim Demaille  <akim@epita.fr>
6332         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
6333         that starts a GUI.
6334         From Ilya Zakharevich.
6336 2003-03-29  Akim Demaille  <akim@epita.fr>
6338         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
6339         documentation to read is Autoconf's.
6340         Suggested by Paul Eggert.
6342 2003-03-28  Akim Demaille  <akim@epita.fr>
6344         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
6345         reading the section "Present But Cannot Be Compiled" when the
6346         header causes problems.
6348 2003-03-28  Akim Demaille  <akim@epita.fr>
6350         * tests/torture.at (Configuring subdirectories): Require aclocal
6351         1.4, otherwise the test fails, as it does support configure.ac.
6352         This fixes the "test 40 failed" bug reports.
6354 2003-03-28  Akim Demaille  <akim@epita.fr>
6356         * doc/autoconf.texi (C Compiler): `#line' portability.
6357         From Paul Eggert and Nelson H. F. Beebe.
6359 2003-03-27  Derek Price  <derek@ximbiot.com>
6361         * lib/autotest/general.m4: Eliminate main loop and reorganize test
6362         layout in order to allow scripting around test groups.
6364 2003-03-27  Derek Price  <derek@ximbiot.com>
6366         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
6367         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
6368         use new diversions in preparation for accepting new arguments and
6369         allowing scripting around tests.
6370         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
6372 2003-03-26  Derek Price  <derek@ximbiot.com>
6374         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
6375         obsolete AC_HELP_STRING.
6376         (AC_HELP_STRING): AU_DEFUN to...
6377         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
6378         * tests/m4sh.at (AS_HELP_STRING): New test.
6380         * tests/acgeneral.at: Regenerated.
6382 2003-03-26  Derek Price  <derek@ximbiot.com>
6384         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
6385         sense.  Verbosify the diversion definitions comment.
6387 2003-03-26  Derek Price  <derek@ximbiot.com>
6389         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
6390         AS_PREPARE.
6392 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
6394         * doc/autoconf.texi (Present But Cannot Be Compiled):
6395         Grammar fixes and minor rewording. (trivial change)
6397 2003-03-06  Paul Eggert  <eggert@twinsun.com>
6399         Work around a problem noted by Nelson H. F. Beebe with coreutils
6400         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
6401         2002/05/09) rejects '#line 32768 "configure"' because the line
6402         number overflows.
6403         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
6404         #line directives.
6405         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
6406         * doc/autoconf.texi (Generating Sources): Document this.
6408 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
6410         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
6411         file name for the m4 program, when it has an "exe" file extension.
6412         DJGPP's error messages include the error code in brackets -
6413         remove the error code during normalization.
6415 2003-02-28  Akim Demaille  <akim@epita.fr>
6417         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
6419 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
6421         * doc/autoconf.texi (Limitations of Make): Remove the section
6422         about `$<' in inference rules, it was a bogus interpretation of
6423         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
6424         Tru64 make in the "target lookup" section.
6425         (Automake): Automake 1.5+ no longer requires special tools to be
6426         present on the developer's host.
6428 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
6430         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
6431         to a shell that can handle redirection or quoting correctly.
6432         Override SHELL with the shell detected by configure.
6433         Use of $^O suggested by Tim van Holder.
6434         * bin/autom4te.in (BEGIN): Likewise.
6435         * bin/autoreconf.in (BEGIN): Likewise.
6436         * bin/autoscan.in (BEGIN): Likewise.
6437         * bin/autoupdate.in (BEGIN): Likewise.
6438         * bin/ifnames.in (BEGIN): Likewise.
6440         * bin/ifnames.in: Add final newline to help and version messages.
6442         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
6443         to cope with DOS-style absolute paths, when constructing
6444         ${ac_make}.
6446         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
6447         When constructing paths with IFS=:, quote the path. If we're
6448         constructing a DOS-style absolute path, we don't want to split it
6449         on the colon.
6451         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
6452         in description.
6454 2003-02-25  Pavel Roskin  <proski@gnu.org>
6456         * bin/autoheader.in: Add missing newline when printing
6457         suggestion how change AC_DEFINE call.
6459 2003-02-24  Paul Eggert  <eggert@twinsun.com>
6461         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
6462         2002-09-01 patch by replacing "test -n" with "test -z".
6463         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
6464         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
6466         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
6467         to fix a mismatch between example and discussion.
6469 2003-02-24  Kevin Ryde  <user42@zip.com.au>
6471         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
6472         format starting with "-".
6474 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
6476         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
6477         is not portable inside Makefile.
6479 2003-02-20  Akim Demaille  <akim@epita.fr>
6481         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
6482         compiler says yeah, but preproc says nope, compiler is right.
6483         Conversely, prompt the reader to send a bug report to the
6484         maintainers of the package, not of Autoconf.
6486 2003-02-20  Klee Dienes  <kdienes@apple.com>
6488         * bin/autoreconf.in (autoreconf_current_directory): Properly
6489         handle an empty aclocal.m4.
6491 2003-02-20  Akim Demaille  <akim@epita.fr>
6493         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
6494         $ac_prefix_program.
6495         From Larry Jones.
6497 2002-12-23  Paul Eggert  <eggert@twinsun.com>
6499         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
6500         innocuous variant befor including <limits.h> or <assert.h>.  This
6501         works around a bug reported by Albert Chin: HP-UX 11i
6502         (and earlier versions) have a <limits.h> that declares
6503         gettimeofday and many other functions.
6505 2002-12-03  Paul Eggert  <eggert@twinsun.com>
6507         Version 2.57.
6509         * NEWS, configure.ac: Update version.
6511         * doc/fdl.texi: Upgrade to FDL version 1.2.
6513         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
6514         nontrivially in main's body, so that f's external declaration is
6515         not optimized away in AIX.  This should fix the bug reported by
6516         Martin Frydl in
6517         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
6519         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
6520         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
6521         defined, to support freestanding compilers.  This should fix the
6522         bug reported by Momchil Velkov in
6523         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
6525         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
6526         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
6527         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
6528         by Simon Josefsson in
6529         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
6531         * Makefile.maint (www-gnu): New macro.
6532         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
6533         the location has moved.
6535 2002-12-02  Martin Frydl  <martin@systinet.com>
6537         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
6538         \(.*\) match is too long and there is something more to be checked.
6539         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
6541 2002-11-15  Akim Demaille  <akim@epita.fr>
6543         Version 2.56.
6545         * config/install-sh: chmod +x.
6546         From Paul Eggert.
6547         * config/move-if-change: Indenting changes.
6548         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
6549         * configure.ac (AM_INIT_AUTOMAKE): here.
6550         Require 1.7.1.
6552 2002-11-14  Akim Demaille  <akim@epita.fr>
6554         Version 2.55.
6556         * config/config.guess, config/config.sub, config/install-sh:
6557         Update from masters.
6559 2002-11-14  Akim Demaille  <akim@epita.fr>
6561         * Makefile.maint: Sync with Bison, i.e.:
6562         (po-check): Scan .l and .y files instead of the
6563         .c and the .h files that they generate.  This fixes the bug
6564         reported by Tim Van Holder in:
6565         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
6566         Look for N_ as well as for _.  Try to avoid matching #define for
6567         N_ and _.
6568         From Paul Eggert.
6570 2002-11-14  Akim Demaille  <akim@epita.fr>
6572         * doc/autoconf.texi (C Compiler): Compiling several files at once.
6573         From Paul Eggert and Albert Chin-A-Young.
6575 2002-11-14  Akim Demaille  <akim@epita.fr>
6577         * doc/autoconf.texi (C Compiler): Solitary backslashes.
6578         From Paul Eggert and Albert Chin-A-Young.
6580 2002-11-14  Kevin Ryde  <user42@zip.com.au>
6582         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
6583         than assigning in main, to avoid HP cc +O3 optimizing it away.
6585 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
6587         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
6588         option.  Process --recheck after parsing all options.  Pass -q
6589         option to configure on --recheck.
6590         (AC_OUTPUT): Pass -q from configure to config.status.
6591         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
6592         arguments to record.
6593         * doc/autoconf.texi (config.status Invocation): Document
6594         config.status -q option.
6596 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
6598         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
6599         Makefile.in if Makefile.am exists.
6600         (output): Strip `.am' from Makefiles.  Don't
6601         output AC_CONFIG_FILES if no Makefiles were found.
6603 2002-11-07  Akim Demaille  <akim@epita.fr>
6605         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
6606         (local_updates): New.
6607         * Makefile.maint: Update, from CVS Bison.
6608         (local_updates): New.
6610 2002-11-06  Akim Demaille  <akim@epita.fr>
6612         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
6613         declaration in extern "C" too.
6614         Reported by Roberto Bagnara.
6616 2002-11-06  Akim Demaille  <akim@epita.fr>
6618         * tests/torture.at (Configuring subdirectories): Don't use grep
6619         -w.
6620         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
6621         Reported by Ezra Peisach.
6623 2002-11-05  Akim Demaille  <akim@epita.fr>
6625         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
6626         Remove.
6627         We _have_ to stop using the old compatibility scheme that tried to
6628         avoid useless backslashes because Libtool 1.4.3 contains a
6629         AC_DEFINE([error_t], [int],
6630         [Define to a type to use for \`error_t' if it is not
6631         otherwise available.])
6632         We _have_ to quote the single quote and backslashes with \.  The
6633         old compatibility scheme saw that ` was backslashed, and therefore
6634         did not quote the single quote.  Hence before this patch, Autoconf
6635         was not compatible with Libtool.
6637 2002-11-04  Paul Eggert  <eggert@twinsun.com>
6639         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
6640         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
6641         LC_NAME, LC_PAPER, LC_TELEPHONE.
6642         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
6644 2002-11-04  Akim Demaille  <akim@epita.fr>
6646         Version 2.54c.
6648         * Makefile.maint (update, cvs-update, po-update, do-po-update):
6649         New.
6650         * config/texinfo.tex: Update.
6652 2002-11-03  Akim Demaille  <akim@epita.fr>
6654         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
6655         from...
6656         (&autoreconf): here.
6657         ($help, $make, &parse_args, &autoreconf_current_directory):
6658         Support -m/--make.
6659         * doc/autoconf.texi (autoreconf Invocation): Adjust.
6661 2002-10-31  Bruno Haible  <bruno@clisp.org>
6663         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
6664         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
6665         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
6666         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
6667         to ac_cv_func_realloc_0_nonnull.
6668         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
6670 2002-10-31  Akim Demaille  <akim@epita.fr>
6672         The test suite was no longer checking for trailing envvars and files.
6674         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
6675         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
6677 2002-10-31  Akim Demaille  <akim@epita.fr>
6679         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
6680         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
6681         Make variable, not a shell variable.
6682         Suggested by Bruno Haible.
6684 2002-10-31  Akim Demaille  <akim@epita.fr>
6686         * bin/autom4te.in (load_configuration): Reject #args out of any
6687         language.
6689 2002-10-31  Akim Demaille  <akim@epita.fr>
6691         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
6692         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
6693         (_AC_RUN_IFELSE): Use it.
6694         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
6695         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
6696         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
6697         inline it.
6699 2002-10-30  Akim Demaille  <akim@epita.fr>
6701         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
6702         * doc/autoconf.texi (autom4te Invocation): Adjust.
6703         Suggested by Tim van Holder.
6705 2002-10-29  Paul Eggert  <eggert@twinsun.com>
6707         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
6708         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
6709         Problem reported by Bruno Haible.
6711 2002-10-29  Akim Demaille  <akim@epita.fr>
6713         * doc/autoconf.texi (Header Templates): Put also in words what the
6714         pictures says to assist free style readers.
6715         (Customizing autom4te): s/--cache=/--cache /.
6717 2002-10-29  Akim Demaille  <akim@epita.fr>
6719         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
6720         sys/wait.h.
6721         sparc_address_test returns void.
6722         Use it with an argument, as prototyped.
6723         From Bruno Haible.
6725 2002-10-29  Akim Demaille  <akim@epita.fr>
6727         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
6728         configure.in, not configure.ac.
6729         Reported by Bruno Haible.
6731 2002-10-29  Akim Demaille  <akim@epita.fr>
6733         * tests/torture.at (Deep Package): New test.
6734         (Configuring subdirectories): Don't use a testSubDir as Autotest
6735         now does it itself.
6737 2002-10-29  Akim Demaille  <akim@epita.fr>
6739         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
6740         * doc/autoconf.texi (Invoking autom4te): Rename as...
6741         (autom4te Invocation): this, for consistency with the other nodes.
6743 2002-10-29  Akim Demaille  <akim@epita.fr>
6745         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
6746         Reported by Ralf Corsepius.
6748 2002-10-29  Akim Demaille  <akim@epita.fr>
6750         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6751         characters is a back as an `obsolete' warning now.
6752         Reported by Ralf Corsepius.
6754 2002-10-28  Akim Demaille  <akim@epita.fr>
6756         * configure.ac: Bump to 2.54c.
6758 2002-10-28  Akim Demaille  <akim@epita.fr>
6760         Version 2.54b.
6762         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
6764 2002-10-28  Akim Demaille  <akim@epita.fr>
6766         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
6767         m4 executable names, and different GNU M4 version.
6768         Reported by Ezra Peisach and Paul Jarc.
6770 2002-10-27  Akim Demaille  <akim@epita.fr>
6772         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
6773         AC_RUN_IFELSE.
6775 2002-10-27  Akim Demaille  <akim@epita.fr>
6777         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
6778         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
6779         Die when a simple Fortran program cannot be compiled.
6780         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
6781         Issue a warning if no function is given.
6783 2002-10-27  Akim Demaille  <akim@epita.fr>
6785         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
6786         Move the documentation of AC_TRY_RUN to...
6787         (Obsolete Macros): here.
6788         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
6789         (autoconf Invocation): Remove the duplicates with `invoking
6790         autom4te'.
6791         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
6792         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
6794 2002-10-27  Akim Demaille  <akim@epita.fr>
6796         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
6797         and AC_LANG_FUNC_LINK_TRY.
6798         (Examining Libraries): Rename as...
6799         (Running the Linker): this.
6800         Document AC_LINK_IFELSE.
6801         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
6802         (Obsolete Macros): here.
6803         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
6804         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
6805         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
6806         * lib/autoconf/headers.m4 (AC_USG): Likewise.
6808 2002-10-27  Akim Demaille  <akim@epita.fr>
6810         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
6812         More `check config.log' messages.
6814         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
6815         * doc/autoconf.texi (Printing Messages): Document it.
6816         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
6817         appropriate.
6818         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
6819         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
6820         (_AC_COMPILER_OBJEXT): Likewise.
6821         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
6822         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
6823         Likewise.
6824         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
6825         Likewise.
6827         Deprecate macros with unusual interfaces.
6829         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
6830         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
6832         Document the new ones, and proper style.
6834         * doc/autoconf.texi (Generating Sources): New.
6835         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
6836         (Examining Declarations): Rename as...
6837         (Running the Preprocessor): this.
6838         Document AC_PREPROC_IFELSE.
6839         (Examining Syntax): Rename as...
6840         (Running the Compiler): this.
6841         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
6842         (Obsolete Macros): Move the definition of AC_TRY_CPP and
6843         AC_TRY_COMPILE here.
6845 2002-10-27  Akim Demaille  <akim@epita.fr>
6847         Move sections around.
6849         * doc/autoconf.texi (Customizing autom4te): Remove a lost
6850         sentence.
6851         Reported by Burno Haible.
6852         (Language Choice): Now the first section of...
6853         (Writing Tests): this section.
6854         Make the introduction less C-centric.
6855         (Guidelines, Test Functions): Move to...
6856         (Writing Test Programs): this new section.
6857         (Test Programs): Merge into...
6858         (Run Time): this.
6860 2002-10-27  Akim Demaille  <akim@epita.fr>
6862         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
6863         autom4te.in that resulted in the need for two `make' runs.
6865 2002-10-27  Akim Demaille  <akim@epita.fr>
6867         * configure.ac: Bump to 2.54b.
6869 2002-10-25  Akim Demaille  <akim@epita.fr>
6871         Version 2.54a.
6873         * Makefile.maint: Update from the Coreutils.
6874         (AMTAR): Remove, obsolete.
6875         (automake_repo): Update to redhat.com.
6876         (cvs_file): New.
6877         Adjust to the fact that ansi2knr is now hosted by Automake.
6878         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
6879         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
6880         Update from masters.
6881         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
6882         autoscan.pre is not to be installed, and autoscan.list is not to
6883         be shipped.
6884         (CLEANFILES): Add autoscan.list.
6885         (autoscan.list): Disable the cache.
6886         * bin/Makefile.am: Include freeze.mk.
6888 2002-10-25  Akim Demaille  <akim@epita.fr>
6890         * bin/autom4te.in (&load_configuration): Take the file as
6891         argument.
6892         (&parse_args): Handle -C, --cache.
6893         ($help): Adjust.
6894         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
6895         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
6896         * doc/autoconf.texi (Invoking autom4te): Document --cache.
6897         Now a subsection of...
6898         (Using autom4te): This new section.
6899         (Customizing autom4te): New.
6900         (autom4te.cache): Adjust.
6902 2002-10-25  Akim Demaille  <akim@epita.fr>
6904         * doc/autoconf.texi (Generic Headers): More information on how to
6905         use AC_CHECK_HEADERS.
6907 2002-10-25  Akim Demaille  <akim@epita.fr>
6909         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
6910         Space changes.
6912 2002-10-25  Akim Demaille  <akim@epita.fr>
6914         * bin/autoscan.in (output): Output AC_PREREQ.
6915         (%needed_macros): Add AC_PREREQ so that configure.ac without one
6916         be reported.
6918 2002-10-23  Akim Demaille  <akim@epita.fr>
6920         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
6921         document _Bool.
6923 2002-10-23  Akim Demaille  <akim@epita.fr>
6925         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
6926         Reported by Peter Eisentraut.
6928 2002-10-23  Akim Demaille  <akim@epita.fr>
6930         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
6931         type _Bool.
6932         Fix a typo.
6933         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
6934         Eggert's recommandations.
6936 2002-10-22  Akim Demaille  <akim@epita.fr>
6938         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
6939         Bison, by Paul Eggert.
6940         * doc/autoconf.texi (Particular Headers): Document it.
6942 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
6944         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
6945         `$ac_configure_args'.
6947 2002-10-22  Akim Demaille  <akim@epita.fr>
6949         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
6950         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
6951         From Art Haas.
6953 2002-10-22  Akim Demaille  <akim@epita.fr>
6955         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
6957         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
6958         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
6959         (_AC_CHECK_HEADER_NEW): Rename as...
6960         (AC_CHECK_HEADER): this.
6962 2002-10-22  Akim Demaille  <akim@epita.fr>
6964         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
6965         words about HP-UX cmp: it was actually a user-written cmp.
6967 2002-10-22  Akim Demaille  <akim@epita.fr>
6969         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
6970         are a few warnings.
6971         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6972         Quote for Perl '' strings, not "".
6973         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
6974         strings.
6976 2002-10-22  Akim Demaille  <akim@epita.fr>
6978         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
6979         characters is a syntax warning now.
6980         (_AS_QUOTE): Accept $2 as list of characters to quote.
6981         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
6982         Quote for Perl, not sh.
6983         * bin/autoheader.in: When $debug, report the file which is
6984         `do'ne.
6985         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
6986         `@', to tickle Perl's lists.
6987         Reported by Carlos Velasco.
6989 2002-10-18  Akim Demaille  <akim@epita.fr>
6991         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
6992         missing included files _are_ errors.
6993         Thanks to Alexandre Duret-Lutz.
6994         * tests/tools.at (autom4te cache): Adjust.
6995         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
6996         (AT_CHECK_M4SUGAR): Use it.
6997         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6998         Adjust.
6999         * tests/tools.at (autom4te): Now it does exit 1.
7001 2002-10-17  Akim Demaille  <akim@epita.fr>
7003         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
7004         Fixes the `AC_ARG_VAR' test failures.
7005         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
7006         * lib/freeze.mk (check-forbidden-patterns): New.
7007         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
7008         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
7009         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
7010         /dev/null.
7011         Reported months ago by H. Merijn Brand.
7013 2002-10-17  Akim Demaille  <akim@epita.fr>
7015         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
7017 2002-10-16  Paul Eggert  <eggert@twinsun.com>
7019         * Makefile.maint (wget_files): Remove ansi2knr.c.
7020         (ansi2knr.c-url_prefix): Remove.
7022 2002-10-16  Akim Demaille  <akim@epita.fr>
7024         Because of caching, some files that no longer exist and are no
7025         longer required can still cause errors.
7026         Reported by Alexandre Duret-Lutz.
7028         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
7029         to frozen files in @ARGV, as @ARGV must remain being a list of
7030         files.  Rather, at M4 call sites, use this...
7031         (&files_to_options): New function.
7032         (&freeze): Use &error.
7033         (&up_to_date): If a file that was included according to the cache
7034         is no longer there, then the output is out dated.
7035         (&main): Don't even check whether a file is up to date is anyway
7036         --force is given.
7037         * tests/tools.at (autom4te cache): New.
7039 2002-10-16  Akim Demaille  <akim@epita.fr>
7041         * bin/autoconf.as: Kill dead options.
7042         * bin/autoupdate.in (&parse_args): Kill old options.
7043         * bin/autoreconf.in (&parse_args): Remove dead options.
7044         Factor some code.
7045         (&autoreconf): Report the directories we enter *and leave*, so
7046         that error messages can be easily located, and use GNU Make
7047         format, so that Emacs' compile mode understands us.
7048         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
7049         if some file was changed instead of `print'.
7050         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
7051         (&parse_args): Remove the dead options.
7052         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
7053         autoheader's quiet mode.
7054         (AT_CHECK_AUTOUPDATE): Likewise.
7055         * tests/tools.at (autoupdate): Adjust.
7056         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7058 2002-10-11  Akim Demaille  <akim@epita.fr>
7060         No longer use CPP to check for the existing of headers: use CC to
7061         check for compilability.
7063         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
7064         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
7065         (_AC_CHECK_HEADER_NEW): Rename as...
7066         (AC_CHECK_HEADER): this.
7068         * lib/autotest/general.m4 (AT_INIT): Include the failed test
7069         numbers in the Subject suggestion.
7071 2002-10-11  Akim Demaille  <akim@epita.fr>
7073         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
7074         Suggest using AC_CHECK_DECLS instead.
7076 2002-10-11  Akim Demaille  <akim@epita.fr>
7078         * tests/torture.at (AC_ARG_VAR): Have configure report the value
7079         of `precious'.
7081 2002-10-11  Akim Demaille  <akim@epita.fr>
7083         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
7084         file name to enable parallel executions.
7085         From Sam Varshavchik.
7087 2002-10-08  Akim Demaille  <akim@epita.fr>
7089         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
7090         aclocal invocation, as Gettext macros might not be visible to
7091         aclocal.
7092         Instead of blindly running autopoint, scan configure.ac (not the
7093         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
7094         Reported by Paul D. Smith.
7096 2002-10-08  Paul Eggert  <eggert@twinsun.com>
7098         Work around problems found when POSIXLY_CORRECT=1 is set.
7099         None of this seems to have anything to do with POSIX, really,
7100         but it's how Perl getopt works.
7101         * bin/autom4te.in (parse_args): Configure GetOpt with
7102         "permute", too.
7103         * doc/autoconf.texi (Invoking autom4te):
7104         --warning -> --warnings.
7105         * lib/autom4te.in: --warning -> --warnings.
7107 2002-09-28  Akim Demaille  <akim@epita.fr>
7109         * doc/autoconf.texi (autom4te.cache): New section.
7111 2002-09-28  Akim Demaille  <akim@epita.fr>
7113         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
7114         (Automake-preselections): Update.
7115         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
7117 2002-09-28  Akim Demaille  <akim@epita.fr>
7119         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
7120         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
7121         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
7122         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
7124 2002-09-28  Akim Demaille  <akim@epita.fr>
7126         * tests/torture.at (Configuring subdirectories): Be robust to
7127         users who use config.site to require for a cache: in this case,
7128         the two last configure runs, using two different sets of
7129         arguments, trigger a legitimate error.
7131 2002-09-28  Akim Demaille  <akim@epita.fr>
7133         * tests/m4sh.at (Functions Support, Functions and return Support):
7134         New.
7136 2002-09-28  Akim Demaille  <akim@epita.fr>
7138         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
7139         autoheader are Perl programs.
7140         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
7141         (autom4te): Specify that the sources are in the $srcdir.
7142         * doc/autoconf.texi (Installation Directory Variables): Adjust.
7144 2002-09-28  Akim Demaille  <akim@epita.fr>
7146         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
7147         (tm_zone): Move their rules to...
7148         * lib/autoconf/types.m4: here, using AN_ macros.
7149         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
7150         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
7151         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
7152         * lib/autoconf/programs.m4: here.
7153         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
7154         (ETAGS_FOR_AUTOCONF): New.
7155         Use it.
7157 2002-09-28  Akim Demaille  <akim@epita.fr>
7159         * lib/autoconf/autoscan.m4: New file.
7160         * lib/autoconf/autoconf.m4: Include it.
7161         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
7162         that were listed in the original autoscan.list.
7163         * lib/autoconf/headers.m4: Similarly with headers.
7164         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
7165         (.m4.m4f): Don't pass --prepend-include, since that's done by
7166         tests/autom4te itself.
7167         * lib/autoscan/Makefile.am: Include freeze.mk.
7168         (autoscan.list): New target --this file is no longer a source.
7169         (autoscan.pre): New file.
7171 2002-09-28  Akim Demaille  <akim@epita.fr>
7173         * bin/autoscan.in (@kinds): Make them singular.
7174         Adjust all uses.
7175         (&init_tables): When --debug, report the list of rules to ease
7176         tracking changes in autoscan.list.
7177         * lib/autoscan/autoscan.list (function): Strip comments, sort.
7179 2002-09-28  Akim Demaille  <akim@epita.fr>
7181         * lib/autoscan/functions, lib/autoscan/headers,
7182         * lib/autoscan/identifiers, lib/autoscan/makevars,
7183         * lib/autoscan/programs: Merge into...
7184         * lib/autoscan/autoscan.list: this.
7185         * bin/autoscan.in (&init_tables): Adjust.
7187 2002-09-28  Akim Demaille  <akim@epita.fr>
7189         * lib/autoscan/functions, lib/autoscan/headers,
7190         * lib/autoscan/identifiers, lib/autoscan/makevars,
7191         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
7192         `functions' line is now prefixed with `function:'.
7193         * bin/autoscan.in (&init_tables): Adjust.
7195 2002-09-28  Akim Demaille  <akim@epita.fr>
7197         From now on, autoscan files must always map a macro name to a
7198         word: there is no `default' macro for autoscan.
7200         * bin/autoscan.in (&init_tables): Reject entries with no macro at
7201         all.
7202         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
7203         explicit.
7205 2002-09-28  Akim Demaille  <akim@epita.fr>
7207         * bin/autoscan.in (%c_keywords): Remove.
7208         (&used): Keep only track of the words we might be interested in.
7209         (&output_kind): It is no longer needed to look for non active
7210         checks.
7212 2002-09-27  Akim Demaille  <akim@epita.fr>
7214         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
7215         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
7216         * lib/autoscan/functions: Adjust.
7217         * doc/autoconf.texi (Particular Functions): Adjust.
7219 2002-09-27  Akim Demaille  <akim@epita.fr>
7221         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
7222         from /tmp.
7223         Thanks to Bill Moseley and Paul Eggert.
7224         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
7225         the tmpdir must be created.
7226         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
7227         dir be in the build tree, instead of $TMPDIR.
7229 2002-09-27  Akim Demaille  <akim@epita.fr>
7231         * bin/autoscan.in: Improve the comments.
7232         (&parse_args): Drop obsolete undocumented options.
7233         (&output_kind): Output warnings.
7234         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
7235         (getwd): Trigger a warning.
7237 2002-09-26  Akim Demaille  <akim@epita.fr>
7239         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
7240         Reported by Ralf Corsepius.
7241         * doc/autoconf.texi (autoreconf Invocation): Likewise.
7243 2002-09-26  Akim Demaille  <akim@epita.fr>
7245         Single suffix rules and seperated dependencies are not portable.
7247         * doc/autoconf.texi (Installation Directory Variables): Update.
7248         (Limitations of Make): Some about `Single Suffix Rules and
7249         Separated Dependencies'.
7250         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
7251         (ifnames, autoscan, autom4te): Un-factor into several rules.
7253 2002-09-25  Paul Eggert  <eggert@twinsun.com>
7255         * BUGS (Interoperability bugs): New section.  Mention libtool
7256         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
7258 2002-09-24  Paul Eggert  <eggert@twinsun.com>
7260         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
7261         make handles suffix-rules differently from GNU make.
7263         * bin/Makefile.am (SUFFIXES, .in): Remove.
7264         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
7265         Move the body of the old .in rule here.
7267 2002-09-16  Akim Demaille  <akim@epita.fr>
7269         i960 compilers create `b.out' files by default.
7270         Reported by Ralf Corsepius.
7272         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
7273         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
7275 2002-09-13  Paul Eggert  <eggert@twinsun.com>
7277         * doc/autoconf.texi (Particular Headers): Remove obsolete
7278         reference to `struct timezone' in the description of
7279         AC_HEADER_TIME.
7281 2002-09-13  Akim Demaille  <akim@epita.fr>
7283         Version 2.54.
7285         * config/config.sub, config/config.guess: Update.
7286         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
7287         * Makefile.am: Adjust.
7289 2002-09-13  Akim Demaille  <akim@epita.fr>
7291         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
7292         reading config.log when the compiler is rejected.
7293         Suggested by Guido Draheim.
7295 2002-09-13  Akim Demaille  <akim@epita.fr>
7297         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
7298         (chdir_init) might hang when stat'ing mounted directories.
7299         Reported by Vance Shipley.
7301 2002-09-12  Akim Demaille  <akim@epita.fr>
7303         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
7304         the lists.
7306 2002-09-12  Akim Demaille  <akim@epita.fr>
7308         * doc/autoconf.texi (Defining Symbols): Present two different
7309         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
7310         difference between 1 argument calls, and 2-3 argument calls.
7312 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
7314         * doc/autoconf.texi: Review grammar and punctuation.
7316 2002-09-11  Paul Eggert  <eggert@twinsun.com>
7318         * doc/autoconf.texi: Fix minor formatting, spelling, and
7319         grammatical typos.
7320         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
7321         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
7322         is obsolescent.
7324 2002-09-11  Akim Demaille  <akim@epita.fr>
7326         * doc/autoconf.texi (Questions): Rename as...
7327         (FAQ): this.
7328         (Defining Directories): New.
7330 2002-09-09  Akim Demaille  <akim@epita.fr>
7332         * doc/autoconf.texi (Making testsuite Scripts): Update.
7333         Suggested by Nishio Futoshi.
7335 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
7337         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
7338         plain `@' is wanted.
7340 2002-09-09  Akim Demaille  <akim@epita.fr>
7342         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
7343         `duplicates', since the algorithm was too naive and could keep
7344         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
7345         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
7346         Reported by Ralf Corsepius.
7347         * tests/torture.at (Configuring subdirectories): Exercise these
7348         cases.
7350 2002-09-09  Akim Demaille  <akim@epita.fr>
7352         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
7353         looking for a replacement file.
7354         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
7355         directory is relative.
7356         * doc/autoconf.texi (Generic Functions): Clarify the replacement
7357         directory definition.
7358         Reported by Andreas Schwab and Jim Meyering.
7360 2002-09-06  Akim Demaille  <akim@epita.fr>
7362         * doc/autoconf.texi (Setting Output Variables): Clarify what
7363         precious variables are.
7364         Suggested by Pontus Skoeld.
7366 2002-09-05  Akim Demaille  <akim@epita.fr>
7368         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
7369         (ifnames, autoscan, autom4te): Since we don't only depend on
7370         configure.ac variables (such as VERSION etc.), but also on prefix
7371         and so forth, depend on Makefile, not configure.ac.
7372         Reported by Alexandre Duret-Lutz.
7373         * doc/autoconf.texi (Installation Directory Variables): Adjust.
7375 2002-09-05  Kevin Ryde  <user42@zip.com.au>
7377         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
7378         doesn't seem to be confined to ia64, just say "some versions".
7380 2002-09-04  Akim Demaille  <akim@epita.fr>
7382         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
7383         Automake 1.6c.
7384         * Makefile.am (maintainer-clean-local): Remove.
7385         (MAINTAINERCLEANFILES): Remove COPYING.
7387 2002-09-03  Paul Eggert  <eggert@twinsun.com>
7389         * doc/autoconf.texi (Configuration Commands): Remove obsolete
7390         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
7391         Brinkmann.
7393 2002-09-03  Akim Demaille  <akim@epita.fr>
7395         * configure.ac: Bump to 2.53d.
7396         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
7397         as of today, on Automake's team suggestion.
7399 2002-09-03  Akim Demaille  <akim@epita.fr>
7401         Version 2.53c.
7403 2002-09-02  Akim Demaille  <akim@epita.fr>
7405         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
7406         SITE_MACRO_DIR.
7407         * configure.ac: Disable SITE_MACRO_DIR.
7409 2002-09-02  Jim Meyering  <meyering@lucent.com>
7411         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
7412         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
7413         Also, tweak grammar: s/make sure to/be sure to/.
7415 2002-09-02  Paul Eggert  <eggert@twinsun.com>
7417         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
7418         directory names are generally preferable to physical names.
7420 2002-09-02  Akim Demaille  <akim@epita.fr>
7422         * lib/Autom4te/General.pm (&update_file): s/die/error/.
7423         Reported by Raja R. Harinath.
7424         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
7425         * bin/autoupdate.in: Use error instead of die.
7427 2002-09-01  Paul Eggert  <eggert@twinsun.com>
7429         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
7430         ordinary shell concatenation rather than echo+tr+sed command that
7431         runs afoul of a long-line-related sed bug in Solaris 8.
7433         * bin/autoheader.in (parse_args): --warning -> --warnings.
7435         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
7436         stdout, as traditional "ls" does.
7437         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
7438         _AC_COMPILER_EXEEXT_O): Likewise.
7439         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
7441         * bin/autoconf.as: Add --prepend-include option.  This patch was
7442         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
7443         but bin/autoconf.in is generated automatically from bin/autoconf.as.
7445         * bin/autoconf.in, configure: Regenerate.
7447         * doc/autoconf.texi (Special Shell Variables): Mention
7448         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
7450         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
7451         MAILPATH and set PS1, PS2, PS4 to default values, to work
7452         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
7453         For LC_ALL etc, first try to set to "C" as POSIX requires and as
7454         the Autoconf documentation specifies; fall back to "unset" only if
7455         this fails.  Use a shell for-loop for this rather than an m4 loop,
7456         to shorten the output script.
7458 2002-08-30  Paul Eggert  <eggert@twinsun.com>
7460         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
7461         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
7462         for the CDPATH problem.  Document PWD.
7463         (Limitations of Builtins): Document the problem that "cd $foo" and
7464         "ls $foo" may refer to different directories in shells conforming
7465         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
7466         example, since the old example is now out of date.
7468         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
7469         FOO" and "ls FOO" talk about different directories; this catches
7470         problems when POSIX 1003.1-2001 "cd" fails due to symlink
7471         spaghetti.
7473         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
7474         of rolling our own unset.
7475         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
7476         in practice we needn't worry about CDPATH if unset doesn't work.
7478         * Makefile.in, aclocal.m4, bin/Makefile.in,
7479         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
7480         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
7481         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
7482         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
7483         tests/Makefile.in: Regenerate with Automake 1.6.3.
7485         * config/config.guess, config/config.sub, config/mkinstalldirs:
7486         Update.
7488         * configure: Regenerate with self.
7490 2002-08-30  Kevin Ryde  <user42@zip.com.au>
7492         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
7493         default output.
7495 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7497         * bin/autom4te.in (Request::load): Correctly test for "do" read
7498         failure.
7500 2002-08-29  Akim Demaille  <akim@epita.fr>
7502         * lib/Autom4te/General.pm (&xqx): New.
7503         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
7504         hand, which is not portable.
7505         (&error): New.
7506         * bin/autom4te.in: Use them.
7507         Use &error instead of die.
7508         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
7509         Adjust.
7511 2002-08-17  Paul Eggert  <eggert@twinsun.com>
7513         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
7514         default list of compilers to try, since it was long ago superseded
7515         by the ksh fc builtin.  Suggested by Steven G. Johnson.
7517 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
7519         * doc/autoconf.texi (Invoking autom4te): End the option table,
7520         fixing a bug introduced by the previous patch.
7521         (Limitations of Make): Add a 'target lookup' subentry in the
7522         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
7524 2002-07-29  Mark D. Roth  <roth@feep.net>
7526         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
7527         options and use $AUTOM4TE_PATH.
7528         * doc/autoconf.texi: Remove documentation of autom4te
7529         --include-envvar and --site-macro-subdir options and document
7530         use of $AUTOM4TE_PATH.
7531         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
7532         arguments from each language section.
7534 2002-07-29  Paul Eggert  <eggert@twinsun.com>
7536         * doc/install.texi: Include copyright symbol in copyright notice.
7538         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
7539         Replace with:
7540         (AM_MAKEINFOFLAGS): New macro.
7541         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
7542         * Makefile.am (INSTALL): Use the new macros.
7543         Use -o rather than --output, since "missing" does not grok --output.
7545 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
7547         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
7548         comments do not always work. Never trust the exit status of
7549         `make -k'.
7551 2002-07-24  Kevin Ryde  <user42@zip.com.au>
7553         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
7554         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
7556 2002-07-23  Paul Eggert  <eggert@twinsun.com>
7558         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
7559         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
7560         apparently treats PATH="nonexistent" as if it contained ".".
7561         Bug reported by Stefan `Sec' Zehl.
7563 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
7565         * doc/autoconf.texi (Limitations of Make): Mention the special
7566         handling of the obj/ directory by BSD make.
7568 2002-07-20  Kevin Ryde  <user42@zip.com.au>
7570         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
7571         backslashes.
7573 2002-07-19  Akim Demaille  <akim@epita.fr>
7575         * doc/autoconf.texi (Function Portability): `exit'.
7576         (Programming in M4sh): Ethymology of M4sh.
7578 2002-07-19  Akim Demaille  <akim@epita.fr>
7580         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
7582 2002-07-18  Akim Demaille  <akim@epita.fr>
7584         Version 2.53b.
7586 2002-07-18  Akim Demaille  <akim@epita.fr>
7588         * config/config.guess, config/config.sub: Update.
7590 2002-07-18  Akim Demaille  <akim@epita.fr>
7592         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
7593         Automake's parts.
7595         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
7596         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
7597         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
7599 2002-07-18  Akim Demaille  <akim@epita.fr>,
7600             Alexandre Duret-Lutz  <duret_g@epita.fr>
7602         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
7603         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
7605 2002-07-17  Russ Allbery  <rra@stanford.edu>
7607         * doc/autoconf.texi (Initializing configure): Clarify the
7608         description of the tarname default.
7610 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
7612         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
7613         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
7614         latter was not run.
7616 2002-07-17  Akim Demaille  <akim@epita.fr>
7618         * lib/Autom4te/General.pm (find_file): Browse the directories in
7619         the order they are given.
7621 2002-07-17  Akim Demaille  <akim@epita.fr>
7623         * tests/wrapsh.as, tests/wrappl.as: Merge into...
7624         * tests/wrapper.as: this.
7625         * tests/Makefile.am, configure.ac: Adjust.
7627 2002-07-17  Mark D. Roth  <roth@feep.net>
7629         * configure.ac: Add --enable-site-macro-dir option.
7630         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
7631         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
7632         --site-macro-subdir options.
7633         * bin/autoconf.in: Add --prepend-include option.
7634         * bin/autoheader.in: Add --prepend-include option.
7635         * bin/autoreconf.in: Add --prepend-include option.
7636         * bin/autoscan.in: Add --prepend-include option.
7637         * bin/autoupdate.in: Add --prepend-include option.
7638         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
7639         macro directory, remove note that include path directories are
7640         used in reverse order, and document --prepend-include option.
7641         * lib/autom4te.in: Use --prepend-include instead of --include.
7642         * tests/wrapsh.in: Use --prepend-include instead of --include.
7644 2002-07-17  Akim Demaille  <akim@epita.fr>
7646         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
7647         tarnames.
7648         * doc/autoconf.texi (Initializing configure): Adjust.
7650 2002-07-17  Akim Demaille  <akim@epita.fr>
7652         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
7653         (_AC_FUNC_MALLOC): New.
7654         (AC_FUNC_MALLOC): Use the latter.
7655         Define HAVE_MALLOC to 0 if broken.
7656         * doc/autoconf.texi (Particular Functions): Adjust.
7658 2002-07-16  Akim Demaille  <akim@epita.fr>
7660         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
7661         * doc/autoconf.texi (C Compiler): Adjust.
7663 2002-07-09  Akim Demaille  <akim@epita.fr>
7665         * doc/autoconf.texi: Properly set the ``header'' part.
7667 2002-07-09  Akim Demaille  <akim@epita.fr>
7669         * doc/autoconf.texi (Systemology): Some about Darwin.
7671 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
7673         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
7674         Don't use AC_REQUIRE in AU_DEFUN.
7676 2002-07-09  Art Haas  <ahaas@neosoft.com>
7678         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
7680 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
7682         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7683         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
7684         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
7685         so that Emacs setups GNU style for perl-mode and cperl-mode.
7687 2002-06-27  Paul Eggert  <eggert@twinsun.com>
7689         * config/install-sh: Quote $src.  Prefer || to test's -o option,
7690         as per "Limitations of Builtins".
7691         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
7692         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7694         * tests/mktests.sh: Use grep instead of fgrep, as per
7695         "Limitations of Builtins".
7697 2002-06-15  Paul Eggert  <eggert@twinsun.com>
7699         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
7700         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
7701         so that we consistently test the just-built programs.
7702         * tests/wrappl.as: Likewise.
7704 2002-06-12  Paul Eggert  <eggert@twinsun.com>
7706         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
7707         name, so that symlinks to 'autoconf' work properly.  Bug reported
7708         by Bruno Haible.
7709         * bin/autoheader.in (AUTOM4TE): Likewise.
7710         * bin/autoreconf.in (autoconf, autoheader): Likewise.
7711         * bin/autoscan.in (autom4te): Likewise.
7712         * bin/autoupdate.in (autom4te): Likewise.
7714         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
7715         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
7716         on Solaris 2.5.1.
7718 2002-06-11  Andreas Schwab  <schwab@suse.de>
7720         * doc/autoconf.texi: Add more dir entries.
7722 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
7724         * bin/autom4te.in ($cache): Don't define using `$me', the name
7725         of the cache should not depend on the name under which autom4te
7726         was installed.
7728 2002-06-07  Akim Demaille  <akim@epita.fr>
7730         * tests/tools.at (autoconf: forbidden tokens, basic)
7731         (autoconf: forbidden tokens, exceptions): Adjust to the change of
7732         words in autom4te.in.
7734 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
7736         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
7737         _AC_LANG_PROGRAM_C_F77_HOOKS.
7739 2002-06-07  Akim Demaille  <akim@epita.fr>
7741         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
7742         rename as...
7743         (AC_REPLACE_FNMATCH): this.
7744         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
7745         AC_FUNC_FNMATCH_GNU.
7747 2002-06-07  Akim Demaille  <akim@epita.fr>
7749         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
7750         Rosetta Stone for Unix.
7752 2002-06-07  Akim Demaille  <akim@epita.fr>
7754         * bin/autom4te.in (warn_forbidden): When rejecting a token,
7755         suggest m4_pattern_allow.
7756         Suggested by Adam J. Richter.
7758 2002-06-07  Akim Demaille  <akim@epita.fr>
7760         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
7761         ac_config_libobj_dir.
7762         (AC_CONFIG_LIBOBJ_DIR): New.
7763         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
7764         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
7765         Use ac_config_libobj_dir to find the replacement files.
7766         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
7767         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
7768         (AC_REPLACE_FNMATCH_GNU): these.
7769         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
7770         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
7771         * tests/mktests.sh (ac_exclude_list): Don't check
7772         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
7774 2002-06-06  Paul Eggert  <eggert@twinsun.com>
7776         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
7777         if ln doesn't work.
7778         * NEWS: Likewise.
7779         * doc/autoconf.texi (Configuration Links): Likewise.
7780         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
7782 2002-06-05  Paul Eggert  <eggert@twinsun.com>
7784         * config/config.guess, config/config.sub, config/texinfo.tex:
7785         Update from masters.
7787 2002-05-29  Paul Eggert  <eggert@twinsun.com>
7789         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
7790         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
7791         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
7792         Likewise.
7793         * lib/autoconf/Makefile.am (check-local): Likewise.
7794         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
7795         * lib/autoconf/types.m4 (commentary only): Likewise.
7796         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
7797         * lib/autotest/Makefile.am (check-local): Likewise.
7798         * lib/m4sugar/Makefile.am (check-local): Likewise.
7799         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
7800         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
7802         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
7803         * doc/autoconf.texi (Particular Programs): Document them.
7804         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
7805         * NEWS: Likewise.
7807 2002-05-27  Paul Eggert  <eggert@twinsun.com>
7809         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
7810         * NEWS, doc/autoconf.texi (Particular Types): Document it.
7811         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
7812         instead of AC_MBSTATE_T, which never existed.
7814 2002-05-23  Akim Demaille  <akim@epita.fr>
7816         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
7817         version of Autoconf that is discussed.
7819 2002-05-22  Paul Eggert  <eggert@twinsun.com>
7821         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
7822         from the default list of compilers to try.  Suggested by
7823         Kate Hedstrom.
7824         * NEWS: Document the above.
7825         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
7827 2002-05-17  Paul Eggert  <eggert@twinsun.com>
7829         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
7830         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
7831         This improves on an earlier suggestion by H. Peter Anvin.
7833 2002-05-16  Paul Eggert  <eggert@twinsun.com>
7835         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
7836         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
7837         Both macros now accept an optional source-dir arg.
7838         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
7840         * NEWS: Document this.
7841         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
7843         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
7844         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
7845         not for GNU extensions; this undoes part of the 2000-11-03 change,
7846         reverting to 2.13-compatible behavior.
7847         Add new optional argument DIR.
7848         (AC_FUNC_FNMATCH_GNU): New macro.
7850         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
7852 2002-05-08  Paul Eggert  <eggert@twinsun.com>
7854         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
7855         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
7856         and it causes a 'test' syntax error if it fails.
7857         Bug reported by Stephen Gildea.
7859         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
7860         If prototypes are supported, use them to check this at compile-time,
7861         instead of trying to check it at run-time.  If we must do a run-time
7862         check, assume that setvbuf is standard when cross-compiling, as
7863         nonstandard setvbuf occurs only on ancient and unlikely hosts.
7864         Bug reported by Paul D. Smith.
7866         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
7867         argument specifying location of getloadavg.c.  This removes a
7868         FIXME.  This idea was taken from Jim Meyering's implementation in
7869         textutils.
7870         * doc/autoconf.texi (Particular Functions): Document this.
7871         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
7872         that's what the code does; this fixes a bug reported by
7873         Paul D. Smith.
7875 2002-05-03  Akim Demaille  <akim@epita.fr>
7877         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
7878         autopoint instead of gettextize.
7879         ($uses_alocal): Rename as...
7880         ($uses_aclocal): this.
7881         * doc/autoconf.texi (autoreconf Invocation): Adjust.
7882         Suggested by Bruno Haible.
7884 2002-05-03  Akim Demaille  <akim@epita.fr>
7886         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
7888 2002-04-29  Paul Eggert  <eggert@twinsun.com>
7890         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
7891         files to be 1 second older; just set them to be the same time.
7892         Also, sleep 1 second after the first aclocal, to work around
7893         problems with sub-second time stamps on the input files.
7895 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
7897         * doc/autoconf.texi: Mention "set -e -x" lossage
7898         under node "Limitations of Builtins".
7900 2002-04-29  Akim Demaille  <akim@epita.fr>
7902         * doc/install.texi: Better wording for setting variables when
7903         running configure.
7904         From Christian Cornelssen.
7906 2002-04-29  Akim Demaille  <akim@epita.fr>
7908         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
7909         of lack of $LINENO support, then the test will compare the $LINENO
7910         in testsuite vs. the lineno in the test file.  This is wrong, of
7911         course.
7912         Be sure to protect it.
7913         Reported by Patrick Welche.
7915 2002-04-25  Akim Demaille  <akim@epita.fr>
7917         * doc/autoconf.texi (Obsolete Macros): Typo.
7918         Reported by Vladimir Volovich.
7920 2002-04-25  Akim Demaille  <akim@epita.fr>
7922         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
7923         than some of the input files, hence, on the second run of aclocal,
7924         if some of its input are younger, make them older.
7925         Suggested by Paul Eggert.
7927 2002-04-25  Akim Demaille  <akim@epita.fr>
7929         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
7930         Thanks to Paul Eggert.
7932 2002-04-25  Akim Demaille  <akim@epita.fr>
7934         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
7935         and ac_subst_vars be sh variables containing the list of
7936         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
7937         DEFAULT diversion.
7938         (_AC_INIT_PREPARE): Use them to log them.
7939         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
7940         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
7941         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
7942         _AC_SUBST_FILES and _AC_SUBST_VARS.
7943         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
7945 2002-04-24  Akim Demaille  <akim@epita.fr>
7947         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
7948         autoheader, so that automake does not complain about a missing
7949         config.h.in that was to be created.
7951 2002-04-23  Akim Demaille  <akim@epita.fr>
7953         * bin/autoheader.in (parse_args): --warning takes an argument.
7954         Fixes PR/220.
7956 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
7958         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
7959         and bb.out when cleaning up.
7961 2002-04-22  Akim Demaille  <akim@epita.fr>
7963         Version 2.53a.
7965 2002-04-22  Akim Demaille  <akim@epita.fr>
7967         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
7969 2002-04-22  Akim Demaille  <akim@epita.fr>
7971         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
7972         comma.
7973         Reported by Gregory Giannoni.
7975 2002-04-22  Akim Demaille  <akim@epita.fr>
7977         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
7978         Fixes false failures on Darwin.
7980 2002-04-21  Paul Eggert  <eggert@twinsun.com>
7982         * TODO, bin/autoupdate.in, doc/autoconf.texi,
7983         lib/autoconf/general.m4, lib/autoconf/libs.m4,
7984         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
7985         tests/tools.at: Minor spelling and grammar fixes.
7987 2002-04-20  Paul Eggert  <eggert@twinsun.com>
7989         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
7990         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
7991         * lib/autotest/general.m4 (AT_INIT): Likewise.
7992         * tests/atgeneral.m4 (AT_INIT): Likewise.
7994 2002-04-19  Paul Eggert  <eggert@twinsun.com>
7996         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
7997         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
7998         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
7999         lib/autoconf/functions.m4, lib/autoconf/general.m4,
8000         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
8001         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
8002         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
8003         Minor spelling and grammar fixes.
8005         * doc/autoconf.texi: Follow the outline suggested in the GNU
8006         Sample Texts sections of the Texinfo 4.2 manual.  Most
8007         importantly, this makes sure that the copyright notices appear in
8008         all output formats.  You probably need Texinfo 4.2 to generate
8009         the manual now.
8011         Fix some bugs when using "$@" when there might be zero positional
8012         arguments in cases where this matters.
8014         * bin/autoconf.as: Rewrite so that the problem does not come up.
8015         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
8016         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
8017         * lib/autotest/general.m4 (AT_INIT): Likewise.
8019         * bin/autoheader.in: Use 'case' statement to work around problem.
8020         * bin/auto4mte.in: Likewise.
8021         * bin/autoreconf.in: Likewise.
8022         * bin/autoscan.in: Likewise.
8023         * bin/autoupdate.in: Likewise.
8024         * bin/ifnames.in: Likewise.
8026         * doc/autoconf.texi (Shell Substitutions): Document the problem.
8028         * lib/autotest/general.m4 (AT_INIT):
8029         Use Zsh alias to work around problem.
8030         * tests/atgeneral.m4 (AT_INIT): Likewise.
8032         * tests/c.at: We can't have zero arguments, so remove workaround
8033         that is not portable to Zsh.
8035 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
8037         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
8038         from aclocal.m4 too.
8040 2002-04-12  Akim Demaille  <akim@epita.fr>
8042         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
8044 2002-04-10  Akim Demaille  <akim@epita.fr>
8046         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
8047         workaround for ${1+"$@"}.
8048         * doc/autoconf.texi (Shell Substitutions): Explain it.
8049         From Oliver Kiddle and Peter Stephenson.
8051         Have M4sh perform minimal shell sanitizing.
8053         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
8054         part into...
8055         (_AS_PREPARE): this new macro.
8056         (AS_PREPARE): New.
8057         (AS_INIT): Invoke AS_SHELL_SANITIZE.
8058         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
8060         Adjust Autoconf and Autotest.
8062         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
8063         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
8064         * lib/autotest/general.m4 (AT_INIT): Likewise.
8065         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8066         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
8067         AS_SHELL_SANITIZE.
8069         Use this M4sh to generate Autoconf's shell scripts.
8071         * tests/wrapsh.as: New, precursor of wrapsh.in.
8072         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
8073         on Autotest and M4sh.
8074         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
8075         (wrapsh.in): New target.
8076         * bin/autoconf.as: New, precursor of autoconf.in.
8077         (autoconf.in): New target.
8079 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
8081         * doc/autoconf.texi (Limitations of Make): Mention the issue
8082         with indented comments in rules.
8084 2002-04-09  Andreas Schwab  <schwab@suse.de>
8086         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
8087         ac_top_builddir when setting ac_abs_top_builddir.
8089 2002-04-06  Kevin Ryde  <user42@zip.com.au>
8091         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
8092         (Portable Shell): Cross reference to Systemology.
8094 2002-04-05  Akim Demaille  <akim@epita.fr>
8096         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
8097         directories when descending in a SUBDIRS.
8098         Reported by Ezra Peisach.
8100 2002-04-04  Andreas Schwab  <schwab@suse.de>
8102         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
8103         contains no literal separators.
8105 2002-04-03  Akim Demaille  <akim@epita.fr>
8107         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
8108         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
8109         Use dnl, not the KILL diversion.
8110         Extracted from...
8111         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
8112         (AC_CONFIG_LINKS): here.
8113         Adjust.
8114         Don't use the KILL diversion, as it kills spurious output, which
8115         results in failures being hidden.
8116         Use m4_defn where appropriate.
8117         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
8118         after the second argument.
8119         Use m4_defn.
8120         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
8121         syntax, as it is provided by M4sugar.
8122         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
8124 2002-04-03  Andreas Schwab  <schwab@suse.de>
8126         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
8127         expanded if $# <= 2.
8129         * bin/autoreconf.in (autoreconf): Run automake after rerunning
8130         aclocal.
8132 2002-04-03  Akim Demaille  <akim@epita.fr>
8134         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
8135         (_AC_COMPILER_EXEEXT_REJECT): New.
8136         Also recognize *.bb and *.bbg as compilation byproducts.
8137         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
8138         (_AC_COMPILER_OBJEXT): Use them.
8139         Fixes Debian #138666.
8141 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
8143         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
8145         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
8146         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
8147         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
8148         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
8149         (AC_C_CONST): Same.
8150         (AC_C_INLINE): Same.
8151         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
8152         * doc/autoconf.texi, NEWS: Document.
8153         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
8154         AC_C_CROSS.
8156 2002-04-02  Akim Demaille  <akim@epita.fr>
8158         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
8159         _AS_MKDIR_P_PREPARE.
8161 2002-03-28  Kevin Ryde  <user42@zip.com.au>
8163         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
8164         to avoid versions of HP C which don't allow that.
8166 2002-03-27  Paul Eggert  <eggert@twinsun.com>
8168         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
8169         (AS_SHELL_SANITIZE): Invoke it.
8170         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
8172 2002-03-26  Akim Demaille  <akim@epita.fr>
8174         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
8176 2002-03-26  Akim Demaille  <akim@epita.fr>
8178         * doc/autoconf.texi (Introduction): The GNATS base moved.
8180 2002-03-25  Paul Eggert  <eggert@twinsun.com>
8182         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
8183         as POSIX requires, as it doesn't work with Zsh.
8184         * doc/autoconf.texi (Assignments): Document the problem.
8186 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
8188         * doc/autoconf.texi (Limitations of Make): Mention more issue
8189         about VPATH, overriding of macros in sub-makes, and handling of
8190         SHELL.
8192 2002-03-21  Paul Eggert  <eggert@twinsun.com>
8194         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
8195         problem with here-document buffer boundaries.
8197         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
8198         when reinvoking the shell, to work around problems with installers
8199         who put strange things like "cd" commands in their environments.
8201 2002-03-19  Akim Demaille  <akim@epita.fr>
8203         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
8204         From Aaron Ucko.
8206 2002-03-19  Akim Demaille  <akim@epita.fr>
8208         * bin/autoscan.in (scan_file): Specify the location in `&used'
8209         invocations.
8210         From Nicolas Joly.
8212 2002-03-19  Akim Demaille  <akim@epita.fr>
8214         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
8215         From Nishio Futoshi.
8217 2002-03-19  Akim Demaille  <akim@epita.fr>
8219         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
8221 2002-03-18  Paul Eggert  <eggert@twinsun.com>
8223         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
8224         (Limitations of Usual Tools): Add mkdir section.
8226         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
8227         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
8228         back on AS_DIRNAME to compute prefixes otherwise; this is
8229         roughly what mkinstalldirs does.  That way, we need not have
8230         our own filename disassembler.  The old disassembler did not
8231         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
8233         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
8234         Create at_test_all by a series of assignments,
8235         not by a single assignment of a long string.  The latter causes ksh
8236         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
8237         presumably because of a buffer overrun.
8239 2002-03-14  Paul Eggert  <eggert@twinsun.com>
8241         * lib/autotest/general.m4 (at_times_skip):
8242         Renamed from at_times.  Now a boolean.
8243         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
8244         says 'times: not found'.
8246 2002-03-14  Akim Demaille  <akim@epita.fr>
8248         * bin/autoreconf.in (&study_gettextize): New.
8249         (&autoreconf): Handle newest gettextize.
8250         Rerun aclocal if needed.
8251         Suggested by Andreas Schwab.
8253 2002-03-13  Akim Demaille  <akim@epita.fr>
8255         * doc/autoconf.texi (Special Shell Variables): More about IFS.
8257 2002-03-13  Akim Demaille  <akim@epita.fr>
8259         * doc/autoconf.texi (Header Portability): New.
8260         Add information about stdint.h and inttypes.h from Paul Eggert.
8262 2002-03-13  Akim Demaille  <akim@epita.fr>
8264         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
8265         -p'.
8266         From Bob Proulx.
8268 2002-03-12  Akim Demaille  <akim@epita.fr>
8270         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
8271         m4_require.
8273 2002-03-11  Andreas Schwab  <schwab@suse.de>
8275         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
8276         does not do it if --with-lispdir is given.
8278 2002-03-08  Akim Demaille  <akim@epita.fr>
8280         Version 2.53.
8282 2002-03-08  Akim Demaille  <akim@epita.fr>
8284         * doc/autoconf.texi (Subdirectories): Clarify that the
8285         subdirectory should exist.
8287 2002-03-08  Akim Demaille  <akim@epita.fr>
8289         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
8291 2002-03-08  Akim Demaille  <akim@epita.fr>
8293         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
8294         aliases the actual variables, and modifications of the former
8295         affect the latter.
8297 2002-03-08  Akim Demaille  <akim@epita.fr>
8299         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
8300         because of C-c: have m4 output in tmp files, then mv them.
8302 2002-03-08  Akim Demaille  <akim@epita.fr>
8304         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
8305         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
8306         * bin/ifnames.in: Copyright update.
8308 2002-03-08  Akim Demaille  <akim@epita.fr>
8310         * doc/autoconf.texi (Invoking autom4te): New.
8312 2002-03-05  Akim Demaille  <akim@epita.fr>
8314         * doc/autoconf.texi (Specifying Names): Clarification suggested by
8315         Kevin Ryde.
8317 2002-03-05  Akim Demaille  <akim@epita.fr>
8319         Version 2.52i.
8321 2002-03-04  Akim Demaille  <akim@epita.fr>
8323         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
8324         * lib/autoconf/general.m4 (AC_INIT): More informative error
8325         message for LIBOBJ.
8327 2002-03-04  Akim Demaille  <akim@epita.fr>
8329         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
8330         parallel builds.
8332 2002-03-04  Akim Demaille  <akim@epita.fr>
8334         * doc/autoconf.texi (Transforming Names): Equality between target
8335         and host is irrelevant.
8336         (Specifying Names, Canonicalizing): Remove all references to the
8337         backward compatibility hooks.  Rather, collect them all into...
8338         (Hosts and Cross-Compilation): this new section.
8339         * doc/install.texi (System Type): Ditto.
8340         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
8341         that `--host' implies cross-compilation.
8343 2002-03-04  Akim Demaille  <akim@epita.fr>
8345         * doc/autoconf.texi (Evaluation Macros): New.
8346         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
8347         useless.
8348         (_m4_foreach): Define the variant with immediate evaluation so
8349         that it contains exactly the items, not an expression which
8350         evaluation is the current item.
8351         (m4_re_string, m4_re_word): Don't over quote them.
8353 2002-03-04  Akim Demaille  <akim@epita.fr>
8355         Instead of having stacking `shift's evaluated at the end, let
8356         `foreach' loops immediately evaluate them.
8358         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
8359         $*.  This is the n-th time I change my mind, but hopefully this is
8360         the last...
8361         (m4_lquote): New.
8362         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
8363         efficient.
8364         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
8365         it was only a hack for m4_text_wrap.
8366         (m4_car2): Remove, replaced by...
8367         (m4_cdr): New.
8368         (_m4_foreach): Adjust.
8369         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
8370         m4_bpatsubst for clarification.
8372 2002-03-04  Akim Demaille  <akim@epita.fr>
8374         * doc/autoconf.texi (Changequote is Evil): New.
8376 2002-03-03  Kevin Ryde  <user42@zip.com.au>
8378         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
8379         on old systems like SunOS.
8381 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
8383         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8384         lib/autoconf/functions.m4, lib/autoconf/general.m4,
8385         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
8386         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
8387         of messages.
8389 2002-02-28  Akim Demaille  <akim@epita.fr>
8391         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
8392         message to be sent.
8394 2002-02-28  Kevin Ryde  <user42@zip.com.au>
8396         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
8398 2002-02-25  Akim Demaille  <akim@epita.fr>
8400         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
8401         From Akinori Musha.
8403 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
8405         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
8406         translate \r\n to \n.
8408 2002-02-07  Akim Demaille  <akim@epita.fr>
8410         Version 2.52h.
8412 2002-02-07  Akim Demaille  <akim@epita.fr>
8414         Fix Autoconf PR/209.
8415         Also reported by Frank Denis.
8417         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
8419 2002-02-07  Akim Demaille  <akim@epita.fr>
8421         Fix Autoconf PR/207:
8422         AC_PREFIX_PROGRAM fails with dashed program names
8424         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
8425         variable when looking for the prefix program.
8426         Now it also works for shell variables.
8428 2002-02-07  Akim Demaille  <akim@epita.fr>
8430         * doc/autoconf.texi (Limitations of Builtins): More about
8431         case/esac.
8433 2002-02-06  Akim Demaille  <akim@epita.fr>
8435         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
8436         case/esac, some shells don't support it.
8437         Reported by Zack Weinberg.
8438         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
8440 2002-02-06  Akim Demaille  <akim@epita.fr>
8442         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
8443         sure not to introduce newlines in at_groups.
8444         * lib/autotest/Makefile.am (autotest.m4f): Typo.
8446 2002-02-06  Akim Demaille  <akim@epita.fr>
8448         * tests/torture.at (Configuring subdirectories): Skip if aclocal
8449         is not available.
8451 2002-02-05  Paul Eggert  <eggert@twinsun.com>
8453         * doc/autoconf.texi (Specific Compiler Characteristics):
8454         Describe HP-UX cc bug workaround more accurately.
8455         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
8456         not unsigned long.
8457         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
8458         cross-compilers, too.  This undoes some of the most recent change
8459         to this file.
8461 2002-02-05  Akim Demaille  <akim@epita.fr>
8463         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
8464         to make sure they are up to date when `check' is run.
8466 2002-02-05  Akim Demaille  <akim@epita.fr>
8468         * doc/autoconf.texi (Making testsuite Scripts): Document
8469         package.m4.
8471 2002-02-05  Akim Demaille  <akim@epita.fr>
8473         * lib/freeze.mk: New.
8475 2002-02-05  Akim Demaille  <akim@epita.fr>
8477         Implement `autom4te --freeze'.
8479         * bin/autom4te.in (&freeze): New.
8480         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
8481         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
8483 2002-02-05  Akim Demaille  <akim@epita.fr>
8485         * bin/autom4te.in (&parse_args): Implement `frozen files are
8486         optional are the sum of the previous files on the command line'.
8487         Also, pass `--reload-state=' on them, so...
8488         (handle_m4): don't.
8489         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
8490         (M4sh): Rely on M4sugar.
8491         (Autotest, M4sh, M4sugar): Use frozen files.
8493 2002-01-31  Akim Demaille  <akim@epita.fr>
8495         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
8496         * doc/autoconf.texi (Initializing configure): Adjust.
8498 2002-01-30  Akim Demaille  <akim@epita.fr>
8500         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
8501         alphanumeric to `-' instead of `_'.
8503 2002-01-30  Akim Demaille  <akim@epita.fr>
8505         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
8506         for plain code, the other for cross-compilation code.  The latter
8507         is now run with GCC only.
8508         * doc/autoconf.texi (Compilers and Preprocessors): New.
8510 2002-01-30  Akim Demaille  <akim@epita.fr>
8512         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
8513         values.
8514         * doc/autoconf.texi (Initializing configure): Explain how to
8515         change AC_INIT default values.
8517 2002-01-29  Akim Demaille  <akim@epita.fr>
8519         * tests/torture.at (Configuring subdirectories): Use configure.in,
8520         so that aclocal 1.4 works.
8521         Reported by Alexandre Duret-Lutz and Larry Schmitt.
8523 2002-01-28  Akim Demaille  <akim@epita.fr>
8525         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
8526         needs an argument.
8528 2002-01-28  Akim Demaille  <akim@epita.fr>
8530         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
8531         AUTOTEST_PATH *after* it was set.
8532         Don't put `.' in the PATH: the user should be precise and `./' if
8533         needed.  In addition, given that the test suite does some `cd', if
8534         `.' is in the path, the `tested programs' sections will report
8535         programs found in the test suite's directory, while during the
8536         tests (performed in their own directory), these programs are no
8537         longer visible.  In other words, the results is confusing and
8538         useless.
8539         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
8541 2002-01-24  Akim Demaille  <akim@epita.fr>
8543         Version 2.52g.
8545 2002-01-24  Akim Demaille  <akim@epita.fr>
8547         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
8548         * doc/autoconf.texi: Finally add Akim as an author.
8550 2002-01-24  Akim Demaille  <akim@epita.fr>
8552         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
8553         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
8554         Bourne. Use /bin/sh.
8555         From Andreas Buening.
8557 2002-01-24  Akim Demaille  <akim@epita.fr>
8559         * config/config.guess, config/config.sub, config/texinfo.tex:
8560         Update from masters.
8562 2002-01-24  Akim Demaille  <akim@epita.fr>
8564         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
8565         * config/auxdir.m4, config/cond.m4, config/depend.m4,
8566         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
8567         * config/missing.m4, config/sanity.m4, config/select.m4,
8568         * config/strip.m4: Remove, to ease sync'ing with any version of
8569         Automake.
8571 2002-01-24  Akim Demaille  <akim@epita.fr>
8573         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
8574         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
8575         Reported by Geir Ove Myhr.
8577 2002-01-21  Akim Demaille  <akim@epita.fr>
8579         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
8581 2002-01-21  Akim Demaille  <akim@epita.fr>
8583         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
8584         message on invalid options.
8585         * bin/autom4te.in (parse_args): Don't use
8586         Autoconf::General::getopt with non valid options.
8588 2002-01-17  Jim Meyering  <meyering@lucent.com>
8590         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
8591         $ac_cv_exeext so we don't use an old, invalid, cached value.
8593 2002-01-11  Akim Demaille  <akim@epita.fr>
8595         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
8596         Meyering.
8597         * doc/autoconf.texi (Function Portability): Document the strnlen
8598         limitation.
8599         (Particular Functions): Document AC_FUNC_STRNLEN.
8600         * lib/autoscan/functions: Adjust.
8602 2002-01-06  Akim Demaille  <akim@epita.fr>
8604         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
8605         package.m4, since is really depends upon configure.ac, not
8606         configure.
8607         * doc/autoconf.texi (testsuite Scripts): Adjust.
8608         * tests/Makefile.am (package.m4): New.
8609         EXTRA_DIST it since its a source.
8611 2002-01-06  Akim Demaille  <akim@epita.fr>
8613         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
8614         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
8615         and PACKAGE_BUGREPORT from here...
8616         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
8617         arguments.
8618         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
8619         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
8620         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
8621         * tests/tools.at (autoheader): Adjust.
8622         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
8624 2002-01-06  Akim Demaille  <akim@epita.fr>
8626         * bin/autoscan.in (scan_file): Use `&used'.
8628 2002-01-03  Akim Demaille  <akim@epita.fr>
8630         * doc/autoconf.texi (Output): Improved wording regarding use of
8631         AC_OUTPUT.
8632         From Olly Betts.
8634 2001-12-18  Kevin Ryde  <user42@zip.com.au>
8636         * doc/autoconf.texi (Function Portability): Add notes on sscanf
8637         sometimes needing writable input.
8639 2001-12-17  Jim Meyering  <meyering@lucent.com>
8641         * doc/autoconf.texi (New Macros): Tweak wording.
8643 2001-12-14  Akim Demaille  <akim@epita.fr>
8645         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
8646         trailing files, don't apply `-rf' to files which might not be
8647         created by configure (core, core.*, and *.core), but just `rm -f'.
8648         Suggested by Jonathan Kamens.
8650 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
8652         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
8654 2001-12-14  Akim Demaille  <akim@epita.fr>
8656         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
8658 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
8660         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
8661         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
8662         abs_srcdir, top_srcpath to abs_top_srcdir.
8663         (_AC_OUTPUT_FILES): Adjust.
8664         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
8665         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
8666         * tests/wrappl.in, tests/wrapsh.in: Adjust.
8668 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
8670         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
8671         C/Fortran linking on HP/UX, by extracting the Fortran library
8672         search path from the LPATH line in the $F77 -v output.
8674 2001-12-12  Kevin Ryde  <user42@zip.com.au>
8676         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
8677         forbidden file descriptors table.
8679 2001-11-26  Akim Demaille  <akim@epita.fr>
8681         * bin/autoscan.in (%c_keywords): Build it at top level.
8682         Map to 1 in order to simplify its uses.
8684 2001-11-26  Akim Demaille  <akim@epita.fr>
8686         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
8687         Remove $filepath, useless.
8688         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
8689         variables, they are really part of the tokens.
8690         Split the input line on spaces and then look for tokens.
8691         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
8692         because of `lex$U.$(OBJEXT)'.
8693         (&scan_files): Use "@list" instead of join.
8694         * doc/Makefile.am (CLEANFILES): Add *.fns.
8696 2001-11-26  Akim Demaille  <akim@epita.fr>
8698         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
8699         Remove, replaced by...
8700         * tests/wrappl.in: Be common for all the Perl executables.
8701         In particular autoscan and autoheader want -I.
8702         * configure.ac: Adjust.
8703         * lib/autoscan/headers: errno.h is portable.
8705 2001-11-26  Akim Demaille  <akim@epita.fr>
8707         * bin/autoscan.in (used): New.
8708         Use it.
8710 2001-11-26  Akim Demaille  <akim@epita.fr>
8712         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
8713         directives.
8714         (&scan_sh_file): Remove a duplicate pattern.
8715         (&check_configure_ac): Use long options.
8716         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
8718 2001-11-26  Akim Demaille  <akim@epita.fr>
8720         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
8721         Before, having a line containing the opening of a multi line
8722         comment made the whole line be ignored.
8724 2001-11-26  Akim Demaille  <akim@epita.fr>
8726         * doc/autoconf.texi (Using an Autotest Test Suite): New.
8727         (testsuite Scripts): Be one of its subsection.
8728         (Autotest Logs): New.
8730 2001-11-26  Akim Demaille  <akim@epita.fr>
8732         Test groups are now run two directories deeper.
8734         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
8735         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
8736         at_top_builddir.
8737         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
8738         top_srcdir, builddir and top_builddir.
8739         Use `at_*dir' relatively to the directory containing the
8740         suite, use `*dir' when relatively to the current group dir.
8742 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
8744         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
8745         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
8746         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
8747         spelling errors.
8749 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
8751         * doc/autoconf.texi (Using System Type): Add an example of `case
8752         $host' usage so people quit using `case $target' everywhere.
8754 2001-11-22  Akim Demaille  <akim@epita.fr>
8756         * doc/autoconf.texi (Installation Directory Variables): Englishoes
8757         spotted by Jim Meyering.
8759 2001-11-16  Paul Eggert  <eggert@twinsun.com>
8761         This patch implements a `long double' suggestion by Oliver Kiddle.
8763         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
8764         static, to catch errors if the value isn't known at compile-time
8765         and the compiler supports dynamic arrays.  Change its name from
8766         `_array_' to `test_array' to avoid potential name clashes.
8767         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
8768         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
8769         better than double.  Catch a bug in GCC 2.95.2 x86.
8770         * doc/autoconf.texi (C Compiler): Document the above.
8771         * NEWS: Likewise.
8773 2001-11-13  Akim Demaille  <akim@epita.fr>
8775         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
8776         hand.
8777         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
8779 2001-11-13  Akim Demaille  <akim@epita.fr>
8781         * lib/autotest/general.m4 (AT_INIT): After having run the test
8782         group, go back to the initial directory, not to at_suite_dir.
8784 2001-11-13  Akim Demaille  <akim@epita.fr>
8786         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
8787         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
8788         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
8789         option.
8790         (AT_CHECK_CONFIGURE): Use absolute paths.
8791         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
8792         The problem is still the old one: there is no means in M4 (that I
8793         know about) to create a defining macro, because there is no means
8794         to create `$1' etc., therefore, the defining macro ``swallows''
8795         all the arguments meant to the defined macro.
8797 2001-11-13  Akim Demaille  <akim@epita.fr>
8799         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
8800         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
8801         configure.ac.
8802         * tests/aclocal.m4: Remove, as it is no longer used.
8804 2001-11-13  Akim Demaille  <akim@epita.fr>
8806         * lib/autotest/general.m4: Change `tests?' into `groups?' in
8807         variable names when referring to a single test group, or to
8808         `suite' when referring to the whole test suite.
8809         `at_last_test' is removed: m4 compute at_format itself.
8810         (at_stdout, at_stder1, at_stderr): New variables.
8811         (AT_CHECK): Use them.
8813 2001-11-13  Akim Demaille  <akim@epita.fr>
8815         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
8816         in PATH.
8817         Create `testsuite.dir/003/run' instead of `testsuite.003'.
8818         Do it as soon as a test fails, don't wait till the end of the test
8819         suite.
8820         Don't remove $as_me.[0-9]*, since these files no longer exist.
8822 2001-11-13  Akim Demaille  <akim@epita.fr>
8824         * tests/tools.at: Use absolute paths, since we are no longer run
8825         in place.
8827 2001-11-13  Akim Demaille  <akim@epita.fr>
8829         Now that tests are running in their own private dir, there is no
8830         need to list the files to remove at the end of tests groups.
8832         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
8833         (AT_data_files, at_data_files): Remove.
8834         (AT_CLEANUP, AT_DATA): Simplify.
8835         (AT_INIT): Adjust.
8836         Remove the group dir if !debug && !failed.
8837         * tests/atspecific.m4: Adjust.
8839 2001-11-13  Akim Demaille  <akim@epita.fr>
8841         Start a new layout for Autotest: `testsuite' creates
8842         `testsuite.dir' in which the at-check-line etc. files are to be
8843         found, and `testsuite.dir/003' where the test group 3 is run.
8845         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
8846         at_check_line_file, at_format, at_test_normalized, at_group_dir
8847         are new variables.
8848         Create the directories.
8849         Use absolute paths for at- files.
8850         (AT_CHECK): Adjust.
8852 2001-11-11  Michael Matz  <matz@kde.org>
8854         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
8855         (m4_car2): New.
8856         (m4_car): Properly quote arguments.
8858 2001-11-13  Akim Demaille  <akim@epita.fr>
8860         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
8861         with stricter rules on LIBOBJS.
8863 2001-11-12  Paul Eggert  <eggert@twinsun.com>
8865         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
8866         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
8867         __PROTOTYPES too.
8869 2001-11-12  Akim Demaille  <akim@epita.fr>
8871         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
8873 2001-11-12  Akim Demaille  <akim@epita.fr>
8875         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8876         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
8877         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
8878         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
8879         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
8880         specify to what the macro should be defined (typically to 1).
8882 2001-11-12  Akim Demaille  <akim@epita.fr>
8884         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
8885         From Jim Meyering.
8887 2001-11-12  Akim Demaille  <akim@epita.fr>
8889         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
8890         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
8891         definition used by Automake where LEX is +/- "${missing} lex" and
8892         `missing' itself contains variables.
8894 2001-11-12  Akim Demaille  <akim@epita.fr>
8896         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
8897         Now that M4sh pushes BODY, the comments were output at the end of
8898         the test suites.
8900 2001-11-08  Akim Demaille  <akim@epita.fr>
8902         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
8903         that we can trace macros from aclocal.m4.
8904         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
8905         obsoleted, and redirect to the former anyway.
8906         Reported by Ralf Corsepius.
8908 2001-11-08  Akim Demaille  <akim@epita.fr>
8910         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
8911         processed only if present.
8912         * tests/torture.at (Configuring subdirectories): Use autoreconf
8913         instead of successive calls to autoconf.
8914         Add a nonexistent subdirectory to exercise the patch above.
8915         Reported by Ralf Corsepius.
8917 2001-11-08  Kevin Ryde  <user42@zip.com.au>
8919         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
8920         doesn't accept .S files.
8922 2001-11-07  Akim Demaille  <akim@epita.fr>
8924         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
8925         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
8926         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
8927         * bin/autom4te.in (warn_forbidden): New.
8928         (handle_output): Use it.
8929         Read m4_pattern_forbid with messages.
8931 2001-11-05  Akim Demaille  <akim@epita.fr>
8933         * bin/autom4te.in (--normalize): Remove.
8934         * lib/autom4te.in: Adjust.
8936 2001-11-05  Akim Demaille  <akim@epita.fr>
8938         * tests/Makefile.am (testsuite): Rename this target as...
8939         ($(TESTSUITE)): this.
8940         From Nicolas Joly.
8942 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
8944         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
8945         the --prefix option, also remove it's argument.
8947 2001-11-05  Akim Demaille  <akim@epita.fr>
8949         * doc/autoconf.texi (testsuite Invocation): Update.
8950         (Writing testsuite.at): Update.
8952 2001-11-03  Akim Demaille  <akim@epita.fr>
8954         * doc/autoconf.texi: s/@code/@command/ where appropriate.
8956 2001-11-03  Akim Demaille  <akim@epita.fr>
8958         * lib/Autom4te/General.pm: (&catfile, &canonfile)
8959         (&file_name_is_absolute): New, wrappers around routines from
8960         File::Spec.
8961         Use and export them.
8962         (&find_configure_ac): Optionally take a directory where to look at.
8963         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
8964         the arguments.
8965         Default @ARGV to `.', not find_configure_ac.
8966         (&autoreconf): Argument is a directory.
8967         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
8968         * doc/autoconf.texi (autoreconf Invocation): Update.
8970 2001-11-03  Akim Demaille  <akim@epita.fr>
8972         * lib/Autom4te/General.pm (@export_vars, @export_subs)
8973         (@export_forward_subs): New.
8974         Add basename, dirname, and fileparse.
8975         (@EXPORT): Adjust.
8976         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
8977         Don't look for aclocal flags if we already know aclocal is not
8978         used.
8979         Move aclocal.m4t only if it exists.
8980         Reported by Ezra Peisach.
8982 2001-11-03  Akim Demaille  <akim@epita.fr>
8984         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
8985         passed on command line, defaulting to ./configure.ac if present.
8986         (&maybe_autoreconf, File::Find): Remove, unused.
8987         (&autoreconf): If autoconf is not used, don't try to trace.
8989 2001-11-02  Akim Demaille  <akim@epita.fr>
8991         * configure.ac: Bump to 2.52g.
8993 2001-11-02  Akim Demaille  <akim@epita.fr>
8995         Version 2.52f.
8997 2001-11-02  Akim Demaille  <akim@epita.fr>
8999         * config/config.guess, config/config.sub, doc/standards.texi:
9000         * config/lispdir.m4: Update from masters.
9001         * configure.ac: Bump to 2.52f.
9003 2001-11-02  Akim Demaille  <akim@epita.fr>
9005         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
9006         Don't run aclocal when aclocal.m4 is not from aclocal.
9007         From Ezra Peisach.
9008         Don't run libtoolize and gettextize if --install is not given.
9010 2001-11-01  Paul Eggert  <eggert@twinsun.com>
9012         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
9013         be invoked before _AS_LINENO_PREPARE.
9014         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
9015         than character ranges.
9017         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
9018         invoking AS_BASENAME.  Set the locale variables to 'C' if
9019         possible, as POSIX requires this to get the traditional
9020         behavior.
9021         * doc/autoconf.texi (Special Shell Variables): Describe the above.
9023 2001-10-31  Paul Eggert  <eggert@twinsun.com>
9025         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
9026         with {}, as that triggers a bug in Bash 2.05.
9028         (_AS_LINENO_PREPARE): Use Sed rather than
9029         Awk.  Fix the sed prepass to work even if there are multiple
9030         instances of $LINENO on the same line.  Do not substitute for
9031         other variables like $LINENOT.  Do not check file dates; such a
9032         check is unreliable on sufficiently fast machines, and removing
9033         the check makes the code simpler and more reliable.  Check for
9034         output and chmod failures.
9036         * doc/autoconf.texi (Special Shell Variables): Document
9037         the above.
9039 2001-10-31  Akim Demaille  <akim@epita.fr>
9041         * tests/Makefile.am (atconfig): Remove this target, Automake
9042         handles it now.
9044 2001-10-31  Akim Demaille  <akim@epita.fr>
9046         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
9047         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
9048         provided, while it is optional.
9049         * configure.ac: Adjust.
9051 2001-10-26  Paul Eggert  <eggert@twinsun.com>
9053         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
9054           lib/Autom4te/Struct.pm:
9055         Require Perl 5.005_03 instead of just 5.005, as some tests fail
9056         with 5.005_02.
9058         * doc/autoconf.texi (Special Shell Variables): Document some
9059         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
9061         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
9062         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
9063         eval $LINENO is not portable in practice.
9065 2001-10-24  Akim Demaille  <akim@epita.fr>
9067         * lib/Autom4te/General.pm (backname): New.
9069 2001-10-24  Akim Demaille  <akim@epita.fr>
9071         * m4/: Remove, merged into...
9072         * config/: here.
9074 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
9076         * doc/autoconf.texi (Shellology): Mention the problems with bash
9077         2.05's use of ANSI quoting in its `set' builtin.
9079 2001-10-22  Paul Eggert  <eggert@twinsun.com>
9081         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
9082         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
9083         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
9084         POSIX decided to standardize on the int flavor of strerror_r.
9085         Always do char* test, as there's no reason not to.
9086         Assign to a char* var, to catch strerror_r that returns int*.
9088         * doc/autoconf.texi (Particular Functions):
9089         Document the above changes.  Also, document the fact that
9090         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
9092         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
9094 2001-10-20  Akim Demaille  <akim@epita.fr>
9096         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
9097         the executable was missing from the log.
9099 2001-10-20  Akim Demaille  <akim@epita.fr>
9101         * lib/Autom4te/General.pm (&update_file): If destination is
9102         unchanged, remove the source.
9103         (&up_to_date_p): Don't be verbose, be debug.
9104         * bin/autoreconf.in: No longer support --m4dir.
9105         (&autoreconf): Display the full path of the configure.ac we are
9106         studying.
9107         Trace it only once.
9108         Be sure to honor --force with gettextize.
9109         Always run aclocal.
9110         * doc/autoconf.texi: Adjust.
9112 2001-10-20  Akim Demaille  <akim@epita.fr>
9114         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
9115         Remove, dead.
9116         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
9117         `intl' is already present, as it refuses unless --force.
9118         (&parse_args): Use -I, --include instead of the old Autoconf
9119         options.
9120         ($localdir, $autoconf_dir): Remove.
9121         (@include): New.
9122         (&maybe_autoreconf): New, to preserve $_ for File::Find.
9124 2001-10-19  Jens Petersen  <petersen@redhat.com>
9126         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
9127         * doc/autoconf.texi (Particular Programs): Likewise.
9129 2001-10-19  Akim Demaille  <akim@epita.fr>
9131         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
9132         file in @configure_input@.
9133         Don't mention `automatically' in addition to `generated'.
9134         * tests/torture.at (#define header templates): Adjust.
9136 2001-10-19  Akim Demaille  <akim@epita.fr>
9138         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
9139         comment, explain how to install automatic mode selection.
9140         From Russ Allbery.
9142 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
9144         * bin/autoreconf.in (autoreconf): Display the path to the
9145         configure.ac being studied.
9147 2001-10-18  Paul Eggert  <eggert@twinsun.com>
9149         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
9150         long, to work around a bug in the HP C compiler version HP92453-01
9151         B.11.11.23709.GP.
9153         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
9154         (AS_BASENAME_EXPR): New macro.
9155         (AS_BASENAME_SED): Do not assume GNU sed semantics.
9156         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
9157         and fall back on 'sed' only if the other two fail.  This makes
9158         AS_BASENAME act more like AS_DIRNAME.
9159         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
9160         contains white space.
9161         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
9162         Use AS_DIRNAME, since I think it's now DOS-friendly.
9163         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
9164         Allow "dirname //FOO" to return either / or //, as POSIX allows
9165         either behavior.
9167 2001-10-10  Akim Demaille  <akim@epita.fr>
9169         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
9170         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
9171         From Eric Sharkey.
9173 2001-10-10  Akim Demaille  <akim@epita.fr>
9175         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
9176         m4_define, since...
9177         (_AS_ECHO_N): AS_REQUIREs it.
9179 2001-10-10  Akim Demaille  <akim@epita.fr>
9181         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
9182         (AC_INCLUDES_DEFAULT): Move to...
9183         * lib/autoconf/headers.m4: here.
9184         * lib/autoconf/types.m4: Comment changes.
9185         * doc/autoconf.texi: Specify where the default includes are used
9186         in the macro prototypes.
9188 2001-10-09  Akim Demaille  <akim@epita.fr>
9190         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
9191         transition code.
9193 2001-10-08  Akim Demaille  <akim@epita.fr>
9195         * bin/autoreconf.in (&autoreconf): Remove debugging code.
9196         (&parse_args): Pass verbosity/debugging options to subtools when
9197         --debug, not when --verbose.
9198         * lib/autom4te.in (Autoreconf-preselections): New.
9199         (Autoconf): Use it.
9201 2001-10-08  Akim Demaille  <akim@epita.fr>
9203         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
9205 2001-10-08  Akim Demaille  <akim@epita.fr>
9207         * doc/autoconf.texi (autoreconf Invocation): Adjust.
9208         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
9210 2001-10-08  Akim Demaille  <akim@epita.fr>
9212         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
9213         (Syntax of the shell scripts): Don't.
9214         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
9215         bother with $force since...
9216         * lib/Autom4te/General.pm: does.
9218 2001-10-08  Akim Demaille  <akim@epita.fr>
9220         * bin/autoreconf.in: Rewrite in Perl.
9221         * configure.ac: Adjust.
9222         * lib/Autom4te/General.pm (&up_to_date_p): New.
9223         * bin/autom4te.in (&up_to_date_p): Use it.
9224         Rename as...
9225         (&up_to_date): this.
9227 2001-10-08  Akim Demaille  <akim@epita.fr>
9229         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
9230         (m4_list_cmp): Use $0 to reinvoke yourself.
9231         (m4_patsubsts): New.
9232         (m4_strip, m4_version_unletter): Use it.
9233         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
9235 2001-10-08  Akim Demaille  <akim@epita.fr>
9237         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
9238         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
9239         * lib/autoconf/types.m4, lib/autotest/general.m4,
9240         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
9241         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
9242         m4_bregexp, m4_bpatsubst, and m4_bmatch.
9243         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
9245 2001-10-08  Akim Demaille  <akim@epita.fr>
9247         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
9249 2001-10-08  Akim Demaille  <akim@epita.fr>
9251         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
9252         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
9253         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
9254         * tests/tools.at, tests/m4sh.at: Use it.
9255         * tests/m4sh.at: Don't rely on Autoconf macros.
9256         (DIRNAME_TEST): Also exercise the expr variant.
9257         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
9258         preferred M4sugar extension is now `.4s'.
9259         * tests/README: Remove.
9261 2001-10-08  Akim Demaille  <akim@epita.fr>
9263         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
9264         (m4_provide_if): this.
9265         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
9266         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
9267         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
9268         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
9270 2001-10-08  Akim Demaille  <akim@epita.fr>
9272         Use `add-log-current-defun-function' for ChangeLog creation.
9273         Suggested by Tom Tromey.
9275         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
9276         (autotest-mode): Adjust.
9277         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
9278         'comment-region onto `C-c ;'.
9279         Comments are `#', not `dnl'.
9280         (autoconf-current-defun): New.
9281         (autoconf-font-lock-keywords): Recognize `m4_defun'.
9283 2001-10-08  Akim Demaille  <akim@epita.fr>
9285         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
9286         * lib/m4sugar/m4sh.m4: here.
9287         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
9288         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
9289         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
9290         include handle the m4_pattern_*, no longer push the
9291         BODY diversion nor set the /bin/sh line, AS_INIT does it.
9292         * lib/autotest/general.m4 (AT_INIT): Likewise.
9293         * tests/base.at: Adjust the tests to use AS_INIT.
9294         * tests/tools.at (AT_DATA_FORBIDDEN): New.
9295         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
9296         Autoconf.
9298 2001-10-07  Paul Eggert  <eggert@twinsun.com>
9300         * doc/autoconf.texi (config.status Invocation):
9301         CONFIG_SHELL defaults to a shell that supports LINENO if available.
9303         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
9304         shell does not support LINENO, and if CONFIG_SHELL is unset or
9305         empty, and if we can find a shell that does support LINENO,
9306         then set CONFIG_SHELL to that shell and then re-execute
9307         ourselves with CONFIG_SHELL.
9309 2001-10-05  Paul Eggert  <eggert@twinsun.com>
9311         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
9312         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
9313         build of $(TESTSUITE).
9315 2001-10-05  Akim Demaille  <akim@epita.fr>
9317         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
9318         iff we are a bareword.
9319         Reported by Raja R Harinath.
9321 2001-10-05  Akim Demaille  <akim@epita.fr>
9323         * tests/m4sh.at (LINENO): New.
9324         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
9325         PATH_SEPARATOR before using it.
9326         Fix the absolute path case/esac pattern.
9327         Provide $0 as fallback for as_myself.
9328         Reported by Raja R Harinath.
9330 2001-10-05  Akim Demaille  <akim@epita.fr>
9332         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
9333         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
9335 2001-10-05  Akim Demaille  <akim@epita.fr>
9337         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
9338         (AS_SHELL_SANITIZE): here.  Use it.
9339         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
9340         From Paul Eggert.
9342 2001-10-04  Akim Demaille  <akim@epita.fr>
9344         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
9345         combination of Awk and sed to replace $LINENO.
9347 2001-10-02  Paul Eggert  <eggert@twinsun.com>
9349         * doc/autoconf.texi (Limitations of Builtins): You can't use
9350         "source"; it's not portable.  Remove confusing and
9351         somewhat-incorrect example involving "." and "/".
9353         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
9354         compatibility with POSIX shells.
9356 2001-10-02  Akim Demaille  <akim@epita.fr>
9358         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
9359         instead of exec'ing to preserve $0 and $@.
9361 2001-10-01  Akim Demaille  <akim@epita.fr>
9363         * tests/testsuite (AT_INIT) <at_pass_list>: New.
9364         Don't run twice the same test.
9366 2001-10-01  Akim Demaille  <akim@epita.fr>
9368         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
9369         No longer output the list of tests.
9370         <--list>: New option.
9371         <--full-help>: Remove.
9372         Complete the short/long options duality.
9373         Various small adjustments.
9375 2001-10-01  Akim Demaille  <akim@epita.fr>
9377         * doc/autoconf.texi: Use @kbd for user input.
9378         Always use `$' as shell prompt.
9380 2001-09-30  Paul Eggert  <eggert@twinsun.com>
9382         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
9383         Don't use nested parenthesization.  This patch was originally
9384         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
9385         but somehow it didn't get incorporated then.
9386         * doc/autoconf.texi (Limitations of Usual Tools):
9387         Clarify remark about sed and nested parenthesization.
9389         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
9390         Report an error if the size cannot be determined even though
9391         the type exists.
9392         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
9393         Check for `expr' arithmetic overflow, and for compilation failure,
9394         and invoke a new argument $4 if either is discovered.
9395         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
9396         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
9398 2001-09-28  Akim Demaille  <akim@epita.fr>
9400         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
9401         * m4/lispdir.m4: New.
9402         * aclocal.m4, configure.ac: Adjust.
9404 2001-09-28  Akim Demaille  <akim@epita.fr>
9406         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
9407         (AT_TESTED): this.
9408         (AT_INIT): More the wrapped section to where it will be expanded.
9409         Output `AT_tested' only when existing.
9410         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
9412 2001-09-27  Akim Demaille  <akim@epita.fr>
9414         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
9415         generates too many bug reports.
9417         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
9418         status when executing the ACTION-IF-FALSE.
9419         * tests/base.at (AC_TRY_*): Rename as...
9420         (AC_TRY_COMMAND): this.
9421         (AC_RUN_IFELSE): New.
9422         * tests/compile.at (Extensions, C keywords)
9423         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
9424         (Broken/missing compilers, AC_PROG_CPP with warnings)
9425         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
9426         * tests/c.at (Extensions, C keywords)
9427         (Broken/missing compilers, AC_PROG_CPP with warnings)
9428         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
9429         (AC_PROG_CPP requires AC_PROG_CC): here and...
9430         * tests/fortran.at (GNU Fortran 77): there.
9431         * doc/autoconf.texi (autoconf Invocation): Fix the example:
9432         AC_TRY_RUN is about compilation, not shell commands.
9433         (Test Programs): AC_TRY_RUN works as used to be advertised.
9435 2001-09-27  Akim Demaille  <akim@epita.fr>
9437         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
9438         Raja R Harinath:
9439         Be sure to detect when $LINENO always returns the same value.
9440         Look for the original script, basename($0) is certainly not
9441         enough.
9442         Pass the CLI arguments to `$as_me.lineno'.
9444 2001-09-25  Akim Demaille  <akim@epita.fr>
9446         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
9447         Be sure the close and reopen the LOG fd before and after using tee
9448         to extend the log.
9449         <at_tests_pattern>: Adjust to the new format of at_help_all.
9451 2001-09-23  Akim Demaille  <akim@epita.fr>
9453         * bin/autom4te.in (parse_args): There can be several invocations
9454         of --language now.
9456 2001-09-23  Akim Demaille  <akim@epita.fr>
9458         * doc/autoconf.texi (Top): Wrap in @ifnottex.
9460 2001-09-23  Akim Demaille  <akim@epita.fr>
9462         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
9463         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
9464         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
9465         builddir, buildpath, top_builddir, and top_buildpath.
9466         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
9467         the current directory.
9468         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
9469         variables *before* changing the current directory.
9470         Skip nonexistent dirs.
9471         * doc/autoconf.texi (Preset Output Variables): Document these
9472         variables.
9474         * lib/autotest/general.m4: Do not reset AT_victims.
9475         Don't compute at_srcdir nor at_top_srcdir.
9477         * tests/tools.at: Hence use top_srcdir.
9479         * tests/Makefile.am, tests/autoconf, tests/autoheader,
9480         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
9481         Remove.
9482         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
9483         * tests/wrapsh.in, tests/autoupdate.in: New.
9484         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
9485         * configure.ac: Build the position independent wrappers.
9487         * man/Makefile.am: Now that test wrappers are position
9488         independent, use them and drop dark envvar magic.
9490 2001-09-23  Akim Demaille  <akim@epita.fr>
9492         * doc/autoconf.texi (Common Shell Constructs): Rename as...
9493         (Programming in M4sh): this.
9494         Promote to @section.
9496 2001-09-23  Akim Demaille  <akim@epita.fr>
9498         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
9499         Pass $at_debug_args to the rerun test suite.
9500         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
9501         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
9502         From Paul Eggert.
9504 2001-09-23  Akim Demaille  <akim@epita.fr>
9506         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
9508 2001-09-23  Akim Demaille  <akim@epita.fr>
9510         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
9511         over-escaping.
9513 2001-09-23  Akim Demaille  <akim@epita.fr>
9515         * lib/Autom4te/General.pm (&debug): New.
9516         * bin/autom4te.in ($language): Move to...
9517         (parse_args): here.
9518         Handle --language in languages.
9519         * lib/autom4te.in (Automake-selections, Autoheader-selections)
9520         (Autoscan-selections): New.
9521         (Autoconf): Adjust.
9523 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
9525         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
9526         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
9527         to match current versions from CVS Automake.
9529 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
9531         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
9532         for $LINENO.
9534 2001-09-22  Akim Demaille  <akim@epita.fr>
9536         * lib/autoconf/autotest.m4: Create `package.m4'.
9537         * tests/Makefile.am (package.m4): Remove.
9539 2001-09-22  Akim Demaille  <akim@epita.fr>
9541         Rely on `$LINENO' when possible instead of `__oline__'.
9543         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
9544         `$LINENO' support replacement when not supported.
9545         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
9546         them explicitly to be sure they are not output before this section
9547         (via m4_require).  Cosmetic only.
9548         * lib/autoconf/c.m4, lib/autoconf/general.m4,
9549         * lib/autoconf/programs.m4: Replace all the occurrences of
9550         `__oline__' with `$LINENO'.
9551         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
9553 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
9555         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
9556         character (u: -> ue) in a code comment.
9557         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
9558         it works.
9560 2001-09-21  Akim Demaille  <akim@epita.fr>
9562         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
9563         Suggested by Jim Meyering.
9565 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9567         * lib/autoconf/programs.m4: Use extensions listed in
9568         $ac_executable_extensions when looking for programs.
9570 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9572         * lib/autoconf/general.m4: Fix a small Englisho.
9573         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
9574         setting up ac_dir_suffix and ac_top_builddir.
9575         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
9577 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9579         * doc/autoconf.texi (File System Conventions): Clarify the use of
9580         PATH_SEPARATOR.
9581         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
9582         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
9583         be used instead of ':'.
9584         * lib/autotest/general.m4: Replace occurrences of ':' in
9585         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
9587 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9589         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
9590         arguments.  Fixed a typo.
9592 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9594         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
9595         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
9597 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9599         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
9600         * bin/autoupdate.in: Ditto.
9601         * bin/autoheader.in: Reworded a few comments.
9602         * bin/autoconf.in: Reworded help text for a few options.
9603         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
9604         * bin/autoscan.in, bin/autoupdate.in: Ditto.
9606 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9608         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
9609         already have $file).  Set output files to binary mode (helps avoid
9610         CR issues on DOSish systems).
9612 2001-09-19  Akim Demaille  <akim@epita.fr>
9614         * lib/autotest/general.m4: Englishoes.
9615         From Tim Van Holder and Alexey Mahotkin.
9617 2001-09-18  Paul Eggert  <eggert@twinsun.com>
9619         * doc/autoconf.texi (Common Shell Constructs): New node,
9620         documenting AS_DIRNAME.
9621         (Limitations of Usual Tools): Refer to it when discussing dirname.
9622         Also, update discussion of POSIX standard to reflect latest draft.
9624         * lib/autoconf/c.m4:
9625         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
9627         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
9628         Do not pass a first argument with leading '-'
9629         to expr, by parenthesizing initial integers that might be negative.
9631         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
9632         now merely checks whether it is an error to pass an argument
9633         to getpgrp.
9635         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
9636         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
9637         whether it is a (compile-time) error to pass an argument to
9638         getpgrp.  This simpler test supports the revised documentation,
9639         and is all that AC_FUNC_GETPGRP's users really need.
9641 2001-09-18  Akim Demaille  <akim@epita.fr>
9643         * doc/autoconf.texi (Limitations of Make) <$<>: New.
9645 2001-09-18  Akim Demaille  <akim@epita.fr>
9647         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
9648         `{}'.
9649         * lib/autotest/general.m4 (AT_INIT): Adjust.
9651 2001-09-18  Paul Wagland  <paul@wagland.net>
9653         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
9654         correctly.
9655         Add test for AS_BASENAME.
9656         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
9657         added test. It now correctly handles /1/2/3/, returning '3' not ''.
9658         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
9659         * tests/base.at: Fixed the expected responses. The old ones were
9660         one line out...
9661         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
9662         the documentation claims it should (and how it behaved in 2.13).
9664 2001-09-18  Akim Demaille  <akim@epita.fr>
9666         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
9667         the AC_CONFIG_COMMANDS invocation.
9668         This also solves the name clash problems.
9669         Don't set the package's ID.
9670         * lib/m4sugar/Makefile.am (version.m4): Revamp.
9671         No longer to be shipped.
9672         (version.in): Remove.
9673         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
9674         * lib/autoconf/status.m4: Adjust.
9675         Use `m4_PACKAGE_STRING'.
9676         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
9677         the only optional argument is the name of the test suite.
9678         Expect `package.m4' to define the package signature.
9679         * lib/autom4te.in (Autotest): Add `package.m4?'.
9680         * tests/Makefile.am (package.m4): New.
9681         * tests/suite.at: ifnames is a victim.
9683 2001-09-18  Akim Demaille  <akim@epita.fr>
9685         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
9686         AC_LIBSOURCE, AC_CONFIG_FILES.
9687         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
9688         program version string doesn't match the package's.
9689         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
9690         after `(cached)'.
9692 2001-09-17  Paul Eggert  <eggert@twinsun.com>
9694         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
9695         Allow expression to return any value that can fit into unsigned long
9696         (not int, as before).  Check for output errors.
9698 2001-09-17  Bruno Haible  <haible@ilog.fr>
9700         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
9701         Always include <stdio.h> and <stdlib.h>. Evaluate
9702         the expression in an extra function before these includes. Call
9703         fprintf "%d" only after ensuring the argument is of type 'int'.
9704         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
9706 2001-09-17  Paul Eggert  <eggert@twinsun.com>
9708         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
9709         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
9710         fatal errors, and AC_CHECK_LIB causes it to include libraries even
9711         when they don't exist.
9713         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
9714         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
9715         need it.
9717         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
9718         version with the version used by fileutils 4.1, except use
9719         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
9720         we don't need it.
9722         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
9724 2001-09-13  Akim Demaille  <akim@epita.fr>
9726         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
9727         _first_.
9728         Reported by Gerrit P. Haase.
9730 2001-09-13  Akim Demaille  <akim@epita.fr>
9732         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
9733         m4_defn'ing is valid.
9735 2001-09-13  Akim Demaille  <akim@epita.fr>
9737         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
9738         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
9739         Use it.
9741 2001-09-13  Akim Demaille  <akim@epita.fr>
9743         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
9744         m4_match.
9745         (m4_re_escape): New.
9746         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
9747         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
9748         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
9749         Likewise.
9750         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
9751         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
9752         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
9753         AT_tests_all for consistency.
9754         Set at_victims.
9755         (AT_VICTIMS): Similar to AT_KEYWORDS.
9756         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
9758 2001-09-13  Akim Demaille  <akim@epita.fr>
9760         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
9762 2001-09-13  Akim Demaille  <akim@epita.fr>
9764         * lib/autotest/general.m4 (AT_INIT): Create and remove
9765         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
9766         test suites can cohabit.
9768 2001-09-13  Akim Demaille  <akim@epita.fr>
9770         * tests/mktests.sh: Don't output banners for empty test files.
9772 2001-09-13  Akim Demaille  <akim@epita.fr>
9774         Test suites can be run independently of configure.
9776         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
9777         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
9778         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
9779         ECHO_N etc.
9780         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
9781         and at_c.
9782         * lib/autotest/general.m4: Use ECHO_*.
9784 2001-09-13  Akim Demaille  <akim@epita.fr>
9786         * bin/ifnames.in: Rewrite in Perl.
9787         * configure.ac: Don't look for AWK.
9788         * tests/tools.at (AWK portability): Remove.
9789         (Syntax of the shell scripts): Don't check ifnames.
9790         (AT_CHECK_PERL_SYNTAX): New.
9791         (Syntax of the Perl scripts): Check ifnames.
9792         * tests/ifnames: New.
9794 2001-09-13  Akim Demaille  <akim@epita.fr>
9796         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
9797         test group titles.
9798         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
9799         Remove all the other keywords.
9801 2001-09-10  Akim Demaille  <akim@epita.fr>
9803         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
9804         SETUP: no longer used.
9805         Support -k, --keywords.
9806         <at_help>: Be `no', `short', or `long'.
9807         <at_help_all>: New variable.
9808         (AT_KEYWORDS): New.
9809         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
9810         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
9811         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
9812         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
9813         No longer fill the HELP diversion.
9814         (AT_CLEANUP): Use them.
9815         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
9816         (m4_list_append): Remove.
9818         Spread a few keywords in the Autoconf test suite.
9820 2001-09-10  Akim Demaille  <akim@epita.fr>
9822         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
9823         PATH_SEPARATOR, let M4sh compute it.
9824         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
9825         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
9826         Move to...
9827         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
9828         Simplify when the path is not a literal.
9829         (AS_UNAME): Use it to report PATH.
9830         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
9831         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
9832         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
9833         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
9834         normalize the path, and to look for victims.
9835         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
9836         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
9838 2001-09-07  Akim Demaille  <akim@epita.fr>
9840         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
9841         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
9842         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
9843         related variables into `at_package_*'.
9844         * lib/autotest/general.m4 (AT_VICTIMS): New.
9845         (AT_INIT): Adjust for stand-alone/embedded test suites.
9846         (AS_MESSAGE_LOG_FD): Define and use it.
9847         * tests/suite.at (AT_VICTIMS): Use it.
9848         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
9849         at_version.
9851 2001-09-07  Akim Demaille  <akim@epita.fr>
9853         Move toward possibly stand-alone test suites.
9855         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
9856         in addition, it introduces useless differences in logs.
9857         (AT_INIT): Let atconfig and atlocal be both optional.
9858         Adjust PATH computation.
9859         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
9861 2001-09-07  Akim Demaille  <akim@epita.fr>
9863         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
9864         m4sugar/version.m4.
9866 2001-09-05  Akim Demaille  <akim@epita.fr>
9868         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
9869         to avoid GCC warnings.
9870         From Uwe Seimet.
9872 2001-09-05  Akim Demaille  <akim@epita.fr>
9874         * bin/autom4te.in: --language is -l, not -s.
9876 2001-09-05  Akim Demaille  <akim@epita.fr>
9878         Be ready to handle filenames as stupid as `dnl.at', for if even
9879         the maintainer is dumb enough to do that...
9881         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
9882         excellence in M4 quotation: consider `__file__' is active.
9884         And BTW, when invoking m4, pass the --include in the right order:
9885         the wrong one.
9887         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
9888         4m.
9890 2001-09-05  Akim Demaille  <akim@epita.fr>
9892         * lib/Autom4te/XFile.pm: New lib file.
9893         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
9894         * bin/autoheader.in: Use it.
9896 2001-09-05  Akim Demaille  <akim@epita.fr>
9898         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
9899         defined.
9901 2001-09-05  Akim Demaille  <akim@epita.fr>
9903         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
9904         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
9906         * bin/autoscan.in: Use `getopt' and `find_files' etc.
9907         Add -I, --include support.
9908         * doc/autoconf.texi (autoscan Invocation): Adjust.
9910 2001-09-05  Akim Demaille  <akim@epita.fr>
9912         CVS GNU M4 doesn't like `undefine(undefined)'.
9914         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
9915         New, extracted from main.
9916         Use IO::File wherever possible.
9917         (input.m4): Be constant, use -I instead of hard coding $tmp.
9918         Therefore be a quoted heredoc.
9919         Don't invoke `_au_disable', since ac was not loaded, but just
9920         `unm4.m4'.
9922 2001-08-31  Akim Demaille  <akim@epita.fr>
9924         Version 2.52d.
9926 2001-08-31  Akim Demaille  <akim@epita.fr>
9928         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
9929         previous patch.
9930         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
9932 2001-08-31  Akim Demaille  <akim@epita.fr>
9934         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
9935         serious problems handling heredocs in heredocs.
9936         Reported by Nicolas Joly.
9938 2001-08-31  Akim Demaille  <akim@epita.fr>
9940         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
9941         (Making testsuite Scripts): Update.
9943 2001-08-31  Akim Demaille  <akim@epita.fr>
9945         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
9947 2001-08-31  Akim Demaille  <akim@epita.fr>
9949         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
9950         (testsuite Scripts): There is no such thing as `atconfig.in'.
9951         And actually one diagram is missing: test suite runtime.
9953 2001-08-31  Akim Demaille  <akim@epita.fr>
9955         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
9956         inverse order.
9958 2001-08-31  Akim Demaille  <akim@epita.fr>
9960         * bin/autoupdate.in (@include): `installcheck' revealed the path
9961         to m4sugar was lacking!
9963 2001-08-31  Akim Demaille  <akim@epita.fr>
9965         * man/Makefile.am (.x.1): We really have to pass
9966         autom4te_perllibdir.
9968 2001-08-31  Akim Demaille  <akim@epita.fr>
9970         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
9971         debug scripts, in particular passing explicitly listed tests to
9972         run is stupid.
9974 2001-08-31  Akim Demaille  <akim@epita.fr>
9976         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
9977         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
9978         Use directly autom4te, not autoconf.
9979         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
9981 2001-08-31  Akim Demaille  <akim@epita.fr>
9983         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
9984         * bin/autoheader.in (%symbol): Strip arguments of macros.
9986 2001-08-31  Akim Demaille  <akim@epita.fr>
9988         * doc/autoconf.texi: Catch up -I, --include changes.
9990 2001-08-31  Akim Demaille  <akim@epita.fr>
9992         * bin/autom4te.in (&parse_args): Die on unknown languages.
9993         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
9994         need for autoconf.
9995         Promote --include over --macrodir and other obsolete options.
9997 2001-08-31  Akim Demaille  <akim@epita.fr>
9999         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
10000         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
10001         * bin/autom4te.in ($autoconf): Pass --force.
10002         `print $out' doesn't print `$_' but `$out'.
10003         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
10004         (autoheader): Pass --force since the test suite goes too fast for
10005         the time stamps.
10006         Adjust to the new autoheader messages.
10008 2001-08-31  Akim Demaille  <akim@epita.fr>
10010         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
10011         Check the completeness of the #template.
10012         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
10013         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
10014         invocation.
10016 2001-08-31  Akim Demaille  <akim@epita.fr>
10018         * lib/Autom4te/General.pm (&find_file, &update_file): New.
10019         * bin/autoupdate.in, bin/autoheader.in: Adjust.
10020         Drop AC_MACRODIR dead for real.
10021         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
10022         `autoheader: `config.hin' is created'.
10023         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
10025 2001-08-31  Akim Demaille  <akim@epita.fr>
10027         * bin/autoheader.in: Rewrite in Perl.
10028         * tests/autoheader: Adjust.
10030 2001-08-31  Akim Demaille  <akim@epita.fr>
10032         * bin/autoconf.in (--include, -I): New option.
10033         Map --localdir, --autoconf-dir onto it.
10034         Forward autom4te's options instead of interpreting them.
10035         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
10036         There is no such envvar since the inception of autom4te.cfg.
10037         * bin/autom4te.in (&parse_args): Uniquify `@include'.
10038         * bin/autoupdate.in: Adjust, and perform more control.
10039         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
10040         * tests/autoconf: Dittowise.
10042 2001-08-31  Akim Demaille  <akim@epita.fr>
10044         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
10045         * bin/autom4te.in (&find_file): Support `FILE?' standing for
10046         optionally `FILE'.
10047         Use -e, not -f, since /dev/null for instance is OK.
10048         (&parse_args): Adjust.
10049         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
10051 2001-08-31  Akim Demaille  <akim@epita.fr>
10053         * configure.ac: Also find tested executables in bin.
10054         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
10055         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
10056         installed peer executables, only PATH is allowed to resolve it.
10057         Pass `autoconf_dir' via options, not via invisible envvars.
10058         * lib/Autom4te/General.pm (&find_peer): Remove.
10059         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
10060         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
10061         * man/Makefile.am: Let help2man rely on PATH instead of trying to
10062         find the executables for it.
10063         * tests/Makefile.am: Major cleanup.  Too lazy to document...
10064         * tests/atlocal.in: Remove all the obscure envvar manipulations.
10065         We only need PERL.
10066         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
10067         indeed related to running the test suite, while passing
10068         --autoconf-dir and others is related to running non installed
10069         Autoconf executables.  So don't do that, leave it to...
10070         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
10071         * tests/autoscan: New.
10072         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
10073         refer to library files: rely on --language.
10075 2001-08-29  Akim Demaille  <akim@epita.fr>
10077         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
10078         s/--set/--language/.
10080 2001-08-29  Akim Demaille  <akim@epita.fr>
10082         * doc/autoconf.texi: Strip the @nodes.
10083         Suggested by Paul Eggert.
10084         (Initializing configure): Typo.
10086 2001-08-29  Akim Demaille  <akim@epita.fr>
10088         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
10089         Suggested by Paul Eggert.
10091 2001-08-29  Akim Demaille  <akim@epita.fr>
10093         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
10094         download in a tmp dir.
10096 2001-08-29  Akim Demaille  <akim@epita.fr>
10098         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
10099         case insensitive OSes out there :(
10100         From Tim Van Holder.
10102 2001-08-29  Akim Demaille  <akim@epita.fr>
10104         * lib/autom4te.in: New.
10105         * lib/Makefile.am (edit, autom4te.cfg): New.
10106         * bin/autom4te.in (BEGIN): Simplify.
10107         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
10108         (&load_configuration): New.  Use it.
10109         (&parse_args): Support --mode, --set, and --melt.
10110         * bin/autoconf.in: Simplify and adjust.
10111         * tests/Makefile.am (AUTOMAKE): Use --set.
10112         * tests/atlocal.in: Adjust.
10113         * BUGS: distcheck and check are weak.
10115 2001-08-29  Akim Demaille  <akim@epita.fr>
10117         * lib/autotest/general.m4: Use
10118                 foo=`(command) 2>/dev/null`
10119         not
10120                 foo=`command` 2>/dev/null
10121         (at-devnull): Rename as...
10122         (AT-devnull): this.
10123         (--clean): Remove AT-* files too.
10124         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
10125         Reported by Nicolas Joly.
10127 2001-08-28  Akim Demaille  <akim@epita.fr>
10129         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
10130         quotes inside single quotes.
10131         Reported by Nicolas Joly.
10133 2001-08-28  Kevin Ryde  <user42@zip.com.au>
10135         * doc/autoconf.texi (Function Portability): Mention C right shifts.
10137 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
10139         * lib/autotest/general.m4: Reword some messages.
10140         (AT_INIT): Check for the `times' builtin before using it.
10141         Support test ranges as arguments to the testsuite.
10142         Have -e imply -d as the help text suggested.
10144 2001-08-27  Akim Demaille  <akim@epita.fr>
10146         * Makefile.maint: Formatting changes.
10147         (do-po-update, po-update, cvs-update, update): New targets.
10148         (AMTAR): Remove.
10150 2001-08-27  Akim Demaille  <akim@epita.fr>
10152         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
10153         <at_cmd_line>: New.
10154         Pass it to debug-*.sh scripts.
10155         <AUTOTEST_PATH>: May contain absolute dir names.
10157 2001-08-27  Akim Demaille  <akim@epita.fr>
10159         * lib/autotest/general.m4 (AT_INIT): Log the command line.
10160         Support `VAR=VAL' as arguments.
10161         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
10162         may be set via the command line.
10164 2001-08-27  Akim Demaille  <akim@epita.fr>
10166         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
10167         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
10168         first the build dirs, then the src dirs.
10169         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
10171 2001-08-27  Akim Demaille  <akim@epita.fr>
10173         * lib/autotest/general.m4 (AT_INIT): Output the definition of
10174         at_data_files earlier.
10175         (--clean, -c): New option.
10176         * tests/Makefile.am: Use this option.
10178 2001-08-27  Akim Demaille  <akim@epita.fr>
10180         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
10181         `ac_top_builddir' to mimic Automake's vocabulary, which much more
10182         readable.
10183         Adjust callers.
10184         * doc/autoconf.texi (Configuration Actions): Document the vars
10185         available in commands.
10186         Emphasize the risks of collisions in init-cmds.
10188 2001-08-27  Akim Demaille  <akim@epita.fr>
10190         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
10191         (Initializing configure): this new node.
10193 2001-08-27  Akim Demaille  <akim@epita.fr>
10195         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
10197 2001-08-27  Akim Demaille  <akim@epita.fr>
10199         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
10200         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
10201         New file.
10202         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
10204 2001-08-27  Akim Demaille  <akim@epita.fr>
10206         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
10207         to...
10208         * lib/autoconf/autoheader.m4: this new file.
10209         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
10210         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
10211         Move to...
10212         * lib/autoconf/autoupdate.m4: this new file.
10214 2001-08-27  Akim Demaille  <akim@epita.fr>
10216         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
10217         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
10218         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
10219         -> ac_dir).
10220         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
10221         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
10223 2001-08-27  Akim Demaille  <akim@epita.fr>
10225         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
10226         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
10227         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
10228         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
10229         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
10230         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
10231         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
10232         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
10233         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
10234         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
10235         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
10236         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
10237         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
10238         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
10239         (_AC_OUTPUT_SUBDIRS): Move to...
10240         * lib/autoconf/status.m4: this new file.
10241         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
10242         * tests/Makefile.am, tests/suite.at: Adjust.
10244 2001-08-27  Akim Demaille  <akim@epita.fr>
10246         Automake 1.5.
10248         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
10249         (AMTAR): Help automake define it.
10250         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
10251         needed, 1.5 can have a macro and a target with the same name.
10252         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
10253         * m4/strip.m4: New.
10254         * m4/init.m4, m4/sanity.m4: Update.
10255         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
10256         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
10257         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
10258         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
10260 2001-08-27  Akim Demaille  <akim@epita.fr>
10262         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
10264         * lib/autoconf/version.in: Remove.
10265         * lib/m4sugar/version.in: New.
10266         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
10267         Adjust callers.
10268         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
10269         the name of the directory they're in, instead of the filename,
10270         since version.m4 is now in m4sugar, but m4_acversion must not be
10271         classified as an Autoconf macro.
10272         ($input_m4): Don't qualify the path to m4sugar.
10273         Rather, pass autoconf_dir to m4.
10274         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
10275         * tests/suite.at: Require 2.52c.
10277 2001-08-27  Akim Demaille  <akim@epita.fr>
10279         testsuite.log should include config.log.
10281         * lib/autotest/autotest.m4: New.
10282         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
10283         * tests/suite.at : Adjust.
10284         (AT_INIT): Log config.log.
10285         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
10286         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
10287         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
10288         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
10289         of config.log on traps.
10290         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
10291         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
10292         for config.status'.
10293         Open the log as soon as possible.
10294         Use the same log introduction as configure's.
10296 2001-08-22  Paul Eggert  <eggert@twinsun.com>
10298         * doc/autoconf.texi (Indices): New node.
10299         Move indices out of the top level menu and into this submenu.
10301 2001-08-22  Akim Demaille  <akim@epita.fr>
10303         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
10304         AC_TRY_COMMAND.
10305         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
10307 2001-08-22  Akim Demaille  <akim@epita.fr>
10309         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
10310         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
10311         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
10312         * lib/autoconf/programs.m4: here.
10313         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
10314         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
10315         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
10316         * lib/autoconf/programs.m4: here.
10317         (_AC_DECL_YYTEXT): Rename as...
10318         (_AC_PROG_LEX_YYTEXT_DECL): this.
10319         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
10320         * tests/Makefile.am, tests/suite.am: Adjust.
10322 2001-08-22  Akim Demaille  <akim@epita.fr>
10324         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
10325         Move to...
10326         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
10327         here.
10328         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
10329         * lib/autoconf/functions.m4: here.
10330         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
10331         (AH_CHECK_LIB): Move to...
10332         * lib/autoconf/libs: this new file.
10333         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
10334         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
10335         * lib/autoconf/libs.m4: here.
10336         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
10338 2001-08-22  Akim Demaille  <akim@epita.fr>
10340         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
10341         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
10342         (AC_SITE_LOAD): Better logging of config.site.
10344 2001-08-20  Akim Demaille  <akim@epita.fr>
10346         * configure.ac (AT_CONFIG): Fix the path.
10347         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
10348         can be used.
10350 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
10352         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
10353         program with AC_LANG_PROGRAM before feeding it to
10354         AC_COMPILE_IFELSE.  Cleanup grep usage.
10356 2001-08-20  Akim Demaille  <akim@epita.fr>
10358         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
10359         * NEWS, README, README-alpha, TODO, tests/README: This package is
10360         `Autoconf', not `autoconf' (the executable).
10362 2001-08-20  Akim Demaille  <akim@epita.fr>
10364         Info readers seem to need `Index' in the index node title :(
10366         * doc/autoconf.texi: Reverse the 2001-08-15 change which
10367         simplified index node names.
10369 2001-08-20  Akim Demaille  <akim@epita.fr>
10371         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
10372         arguments are not literals.
10373         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
10374         Specify the output variables, and macros defined.
10376 2001-08-20  Akim Demaille  <akim@epita.fr>
10378         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
10379         (Examining Syntax) <AC_TRY_COMPILE>
10380         (Examining Libraries) <AC_TRY_LINK>
10381         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
10382         their arguments.
10383         Reported by Werner Lemberg.
10385 2001-08-20  Akim Demaille  <akim@epita.fr>
10387         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
10388         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
10389         Load atlocal late enough to dump it in the log.
10390         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
10392 2001-08-20  Akim Demaille  <akim@epita.fr>
10394         * tests/torture.at (Configuring subdirectories): New test.
10395         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
10396         looking for.
10397         * m4/atconfig.m4: Be sure the let $[0] be expandable.
10398         (top_srcdir): Fix its computation.
10400 2001-08-20  Akim Demaille  <akim@epita.fr>
10402         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
10403         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
10404         test suite lives.
10405         Create `atconfig' automagically.
10406         Configure atlocal.in if present.
10407         * tests/atconfig.in: Remove.
10408         * tests/atlocal.in: New.
10409         * tests/Makefile.am: Adjust.
10411 2001-08-20  Akim Demaille  <akim@epita.fr>
10413         Huh!?!?!  There are still some user EOF tags used, which prevents
10414         their use in AC_CONFIG_COMMANDS for instance...
10416         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
10417         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
10418         `_CSEOF', or `_ATEOF', as appropriate.
10419         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
10420         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
10422 2001-08-20  Akim Demaille  <akim@epita.fr>
10424         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
10425         * tests/semantics.at, tests/tools.at, tests/torture.at:
10426         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
10428 2001-08-20  Akim Demaille  <akim@epita.fr>
10430         Autotest invokes M4sh's initialization.
10432         * lib/autotest/general.m4: Adjust the diversion names.
10433         (AT_INIT): Run AS_INIT.
10434         Use the BINSH diversion to invoke /bin/sh.
10435         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
10436         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
10438 2001-08-20  Akim Demaille  <akim@epita.fr>
10440         Let M4sh have its own diversions.
10442         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
10443         (_m4_divert(NOTICE)): Rename as...
10444         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
10445         (_m4_divert(HEADER-COMMENT)): these.
10446         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
10447         (_m4_divert(NOTICE)): New, for Libtool.
10448         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
10449         long ago with `_m4_divert(GROW)'.
10450         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
10452 2001-08-20  Akim Demaille  <akim@epita.fr>
10454         * tests/base.at, tests/compile.at, tests/foreign.at,
10455         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10456         * tests/semantics.at, tests/suite.at, tests/tools.at,
10457         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
10459 2001-08-20  Akim Demaille  <akim@epita.fr>
10461         * bin/autom4te.in (handle_output): Handle @__@.
10463 2001-08-20  Akim Demaille  <akim@epita.fr>
10465         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
10466         * lib/autotest/general.m4: Adjust the license.
10468 2001-08-17  Paul Eggert  <eggert@twinsun.com>
10470         * doc/autoconf.texi (Function Portability): Mention snprintf,
10471         following up on a suggestion by Kevin Ryde.
10473 2001-08-17  Akim Demaille  <akim@epita.fr>
10475         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
10476         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
10478 2001-08-17  Akim Demaille  <akim@epita.fr>
10480         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
10481         `$0.log' as for projects where testsuite is in src, we'd have
10482         testsuite.log created in src.
10484 2001-08-17  Akim Demaille  <akim@epita.fr>
10486         * bin/autom4te.in (&parse_args): Recognize --normalize.
10488 2001-08-17  Akim Demaille  <akim@epita.fr>
10490         Start implementing the AC_CHECK_HEADER transition scheme.
10492         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
10493         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
10494         (AC_CHECK_HEADER): Use them.
10496 2001-08-17  Akim Demaille  <akim@epita.fr>
10498         * doc/autoconf.texi: Work around Texinfo buglets.
10499         (Transformation Rules): One example is enough, users are expected
10500         to have their brains on. And BTW, use DESTDIR.
10501         (dvar): New macro.  Use it.
10503 2001-08-17  Akim Demaille  <akim@epita.fr>
10505         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
10506         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
10507         looking for ChangeLogs.
10509 2001-08-17  Akim Demaille  <akim@epita.fr>
10511         * bin/autom4te.in: --normalize is a new option.
10512         * bin/autoconf.in: Use it.
10514 2001-08-17  Akim Demaille  <akim@epita.fr>
10516         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
10517         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
10519 2001-08-16  Paul Eggert  <eggert@twinsun.com>
10521         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
10522         start, not at end.
10524 2001-08-15  Akim Demaille  <akim@epita.fr>
10526         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
10527         Use it.
10529 2001-08-15  Akim Demaille  <akim@epita.fr>
10531         * doc/autoconf.texi (pr): New index.
10532         (prindex, findex): Use, merge, and output them.
10533         (Environment Variable Index, Output Variable Index)
10534         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
10535         (Autotest Macro Index): Rename as...
10536         (Environment Variables, Output Variables,Preprocessor Symbols)
10537         (Autoconf Macros, M4 Macros, Autotest Macros): these.
10538         * doc/install.texi: Use @command.
10539         (Environment Variables): Rename as...
10540         (Defining Variables): this.
10542 2001-08-15  Akim Demaille  <akim@epita.fr>
10544         * doc/autoconf.texi (Function Portability): sprintf's return
10545         value.
10546         From Kevin Ryde.
10548 2001-08-15  Akim Demaille  <akim@epita.fr>
10550         * Makefile.maint (CVS): New.
10551         (local-check): Run changelog-check. last.
10552         (alpha): Don't depend upon local-check, since...
10553         (cvs-dist): depends upon it.
10555 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
10557         * tests/Makefile.am: Use a clean-local rule to remove
10558         autom4te.cache (it's a directory, not a file.
10559         * Makefile.am: Ditto (but maintainer-clean-local).
10561 2001-08-15  Akim Demaille  <akim@epita.fr>
10563         * bin/autom4te.in (@m4_warning): New.
10564         (&handle_m4): Use it.
10565         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
10566         warnings are issued at each run.
10567         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
10568         is in the src tree.
10570 2001-08-15  Akim Demaille  <akim@epita.fr>
10572         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
10573         don't waste time running `autoupdate --version' works.
10574         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
10576 2001-08-13  Akim Demaille  <akim@epita.fr>
10578         * doc/autoconf.texi (ma): Rename this index as...
10579         (ac): this.
10581 2001-08-13  Akim Demaille  <akim@epita.fr>
10583         * Makefile.am: Remove dead code and dead comments.
10584         (pdf, html): New targets.
10585         * doc/autoconf.texi (Using Autotest): New chapter.
10586         * doc/Makefile.am (pdf): New targets.
10587         (CLEANFILES): Adjust.
10589 2001-08-13  Akim Demaille  <akim@epita.fr>
10591         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
10592         duration of the test suite.
10594 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
10596         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
10597         endianness for comparison instead of relying on AT_CHECK_ENV.
10599 2001-08-11  Paul Eggert  <eggert@twinsun.com>
10601         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
10602         to the INSTALL file.
10604 2001-08-11  Paul Eggert  <eggert@twinsun.com>
10606         * NEWS: The autoconf manual now is distributed under the terms
10607         of the GNU Free Documentation License.
10609         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
10610         Add an appendix "Copying This Manual" for the FDL.
10612         * doc/fdl.texi: New file, from
10613         <http://www.gnu.org/licenses/fdl.texi>.
10615         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
10617 2001-08-10  Paul Eggert  <eggert@twinsun.com>
10619         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
10620         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
10621         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
10622         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
10623         m4/sanity.m4, tests/README, tests/aclocal.m4,
10624         tests/atspecific.m4, tests/base.at, tests/compile.at,
10625         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
10626         tests/semantics.at, tests/suite.at, tests/tools.at,
10627         tests/torture.at: Add copyright notice.
10629         * tests/mktests.sh: Update year in copyright notice.
10631 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
10633         * tests/semantics.at (AC_C_BIGENDIAN): New test.
10635 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
10637         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
10638         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
10639         * doc/autoconf.texi (C Compiler Characteristics): Update
10640         documentation for AC_C_BIGENDIAN.
10642 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
10644         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
10645         magic values from an object file when cross-compiling.
10646         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
10648 2001-08-10  Akim Demaille  <akim@epita.fr>
10650         * bin/autom4te.in (&handle_output): Don't use `grep' with side
10651         effects.
10652         Suggested by Russ Allbery.
10654 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
10656         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
10657         current $prefix to the sub-configures.
10659 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
10661         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
10662         extension (needed on BeOS).  Reported by Guido van Rossum.
10664 2001-08-09  Akim Demaille  <akim@epita.fr>
10666         * bin/autom4te.in ($icache): Load it only if older than autom4te.
10668 2001-08-07  Akim Demaille  <akim@epita.fr>
10670         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
10671         removed.
10672         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
10673         No need to remove the files before and after the each test, before
10674         each test and at the end of the suite is enough.
10675         Display only the children `times', not the shell's.
10676         If the test failed or was skipped, at-times is not available.
10678 2001-08-07  Akim Demaille  <akim@epita.fr>
10680         Always produce testsuite.log, including when there are no
10681         failures.  This helps getting information on skipped tests, and
10682         duration of the tests.  Err, implement the latter btw.
10684         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
10685         Dump information on the first run of each test.
10686         (AT_CLEANUP): Create `at-times' containing the duration of the
10687         test group.
10689 2001-08-07  Akim Demaille  <akim@epita.fr>
10691         The use of `dumpstat' revealed that `len' was used although it
10692         should not.  m4_text_wrap was using it, but in the Autoconf world
10693         where it is legal.  Hence (i) test M4sh in its own world, not
10694         Autoconf's, and (ii), ahem, fix the bug :)
10696         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
10697         does not like `' instead of [].
10698         (AT_INIT): Forbid `^_?AT_'.
10699         And don't output such tokens.
10700         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
10701         `script.as', and `autom4te.cache'.
10702         Remove `empty' and `macro' which are no longer used.
10703         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
10704         * tests/m4sugar.at: Use it.
10705         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
10707 2001-08-07  Akim Demaille  <akim@epita.fr>
10709         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
10711 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
10713         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
10715 2001-08-04  Akim Demaille  <akim@epita.fr>
10717         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
10718         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
10719         AC_TRY_LINK.
10720         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
10721         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
10722         (AC_F77_MAIN): Likewise.
10724 2001-08-04  Akim Demaille  <akim@epita.fr>
10726         Don't rely on M4sugar outputting the patterns in files, since we
10727         might process the output _without_ running m4, hence without these
10728         files.
10730         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
10731         * bin/autom4te.in (@Request::includes): Remove, unused.
10732         (@Request::source): Rename as...
10733         (@Request::input): this.
10734         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
10735         (&handle_output): Fetch the patterns from the traces.
10736         `$forbidden' and `$allowed' are constant: use m//o.
10737         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
10738         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
10740 2001-08-04  Akim Demaille  <akim@epita.fr>
10742         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
10743         autoconf', i.e., in addition to caching traces, cache the output.
10745         * bin/autom4te.in (Request::cache): Rename as...
10746         (Request::id): this.
10747         ($cache, $icache, $tcache, $ocache): New.
10748         (&handle_m4): Save M4 output in the cache instead of $tmp.
10749         (&handle_output): Adjust.
10750         (&up_to_date_p): Check that the output cache is up to date too.
10751         (top level): Run `&handle_m4' iff force or the cache is invalid.
10752         Run `&handle_output' if the output cache is more recent.
10754 2001-08-04  Akim Demaille  <akim@epita.fr>
10756         * bin/autom4te.in ($force): New.
10757         (&parse_args, &print_usage): -f, --force is a new option.
10758         (&handle_output): CPP directives might have spaces after `#'.
10759         (&parse_args): The first file only can be frozen.
10761 2001-08-04  Akim Demaille  <akim@epita.fr>
10763         Don't let autom4te compute the `include' traces several times:
10764         first check that the trace cache file is up to date, and then
10765         compare its timestamp with that of the output.
10767         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
10768         the preamble.  Don't require 5.005 as Autom4te::General does it,
10769         and better yet (use `use', not `require'!).
10770         * lib/Autom4te/Struct.pm: Rename the last occurrences of
10771         Class::Struct as Autom4te::Struct.
10772         * lib/Autom4te/General.pm (File::stat): Use it.
10773         (&mtime): New, export it.
10774         * bin/autom4te.in: Use it.
10775         Declare `$req' is invalid if it is outdated.
10776         Don't declare it valid before saving it if something went wrong.
10778 2001-08-04  Akim Demaille  <akim@epita.fr>
10780         Autom4te shall not encode Autoconf data, and preselecting traces
10781         must be proposed to the users.
10783         * bin/autom4te.in (@required_trace): Remove.
10784         (@preselect): New.
10785         (&parse_args, &print_usage): -p, --preselect is a new option.
10786         (&up_to_date_p): Adjust.
10787         * bin/autoconf.in: Preselect some Autoconf macros.
10789 2001-08-04  Akim Demaille  <akim@epita.fr>
10791         * tests/tools.at (autoconf --trace: user macros): Check traces on
10792         macros invoked without arguments, and macros invoked with multiple
10793         lines arguments.
10795 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
10797         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
10798         arguments.
10800 2001-08-03  Akim Demaille  <akim@epita.fr>
10802         * bin/autoconf.in ($@): Work around the usual sh bug.
10803         From Nicolas Joly.
10805 2001-08-03  Akim Demaille  <akim@epita.fr>
10807         Clean up the handling of the M4 builtins tracing exception.
10809         * bin/autom4te.in (Request::request): Don't complete M4 builtins
10810         trace requests.
10811         (@m4_builtins): Rename as...
10812         (@m4_builtin): this.
10813         (%m4_builtin_alternate_name): New.
10814         (&parse_args): Complete the trace requests with alternate names.
10815         (&handle_traces): Hence no longer do it here.
10816         (&trace_requests): Remove, unused.
10818 2001-08-03  Akim Demaille  <akim@epita.fr>
10820         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
10821         m4_if, and m4_wrap.
10823 2001-08-03  Akim Demaille  <akim@epita.fr>
10825         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
10826         (m4_divert_pop): Dump the whole diversion stack when a diversion
10827         mismatch happens.
10828         * bin/autom4te.in (&handle_output): Remember of the first
10829         occurrence of a possibly undefined macro, not the last.
10830         Complain about the possibly undefined macros in the same order as
10831         the appear in the output.
10832         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
10833         * tests/tools.at (autoconf: forbidden tokens, basic)
10834         (autoconf: forbidden tokens, exceptions): No longer sort
10835         autoconf's stderr, as it is now deterministic.
10836         Check that `dnl' is caught.
10838 2001-08-01  Akim Demaille  <akim@epita.fr>
10840         * configure.ac: Bump to 2.52c.
10842 2001-08-01  Akim Demaille  <akim@epita.fr>
10844         Version 2.52b.
10846         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
10848 2001-08-01  Akim Demaille  <akim@epita.fr>
10850         Version 2.52a.
10852 2001-08-01  Akim Demaille  <akim@epita.fr>
10854         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
10855         `die'.
10856         (&END): New.
10857         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
10858         `END', as `Autom4te::General::END' will be triggered.
10859         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
10860         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
10861         system to run `mv', `rm', and `cmp'.
10863 2001-08-01  Akim Demaille  <akim@epita.fr>
10865         * lib/Autom4te/General.pm (&unique): New.
10866         * bin/autoscan.in (&output): Use it to issue trace requests once.
10868 2001-08-01  Akim Demaille  <akim@epita.fr>
10870         * lib/Autom4te/General.pm: New.
10871         * bin/autom4te.in (Autom4te::General): Use it.
10872         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
10873         (&find_configure_ac, &find_slave): Remove.
10874         * bin/autoscan.in: Likewise.
10875         * bin/autoupdate.in: Likewise.
10877 2001-08-01  Akim Demaille  <akim@epita.fr>
10879         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
10880         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
10881         * bin: here, new directory.
10882         * lib/Autoconf: Rename as...
10883         * lib/Autom4te: this, to please case insensitive junkie OSes.
10885 2001-08-01  Akim Demaille  <akim@epita.fr>
10887         * autom4te.in ($m4): Handle the --nesting-limit.
10888         * autoconf.in (M4): Remove.
10890 2001-08-01  Akim Demaille  <akim@epita.fr>
10892         * autoconf.in ($AWK): Remove, no longer used.
10893         * test/tools.at: Use AT_CHECK_AUTOCONF.
10894         (AWK portability): Remove, for autoconf no longer uses AWK.
10895         (Syntax of the Perl scripts): New.
10896         * configure.ac: autoconf no longer needs an AWK with a good
10897         regexp engine.
10898         Use a static test on AC_PACKAGE_VERSION.
10899         * autom4te.in (&up_to_date_p): Output depends on the arguments.
10900         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
10901         * tests/atconfig.in (PERL): New.
10903 2001-08-01  Akim Demaille  <akim@epita.fr>
10905         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
10906         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
10907         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
10908         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
10909         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
10910         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
10911         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
10912         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
10913         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
10914         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
10915         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
10916         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
10917         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
10918         * lib/autoconf/c.m4: here, new file.
10920         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
10921         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
10922         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
10923         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
10924         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
10925         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
10926         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
10927         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
10928         (AC_F77_FUNC): Move to...
10929         * lib/autoconf/fortran.m4: here, new file.
10931 2001-08-01  Akim Demaille  <akim@epita.fr>
10933         * acfunctions.m4: Rename as...
10934         * lib/autoconf/functions.m4: this.
10935         * acgeneral.m4: Rename as...
10936         * lib/autoconf/general.m4: this.
10937         * acheaders.m4: Rename as...
10938         * lib/autoconf/headers.m4: this.
10939         * aclang.m4: Rename as...
10940         * lib/autoconf/lang.m4: this.
10941         * acoldnames.m4: Rename as...
10942         * lib/autoconf/oldnames.m4: this.
10943         * acspecific.m4: Rename as...
10944         * lib/autoconf/specific.m4: this.
10945         * actypes.m4: Rename as...
10946         * lib/autoconf/types.m4: this.
10947         * autoconf.m4: Rename as...
10948         * lib/autoconf/autoconf.m4: this.
10950         * m4sugar.m4: Rename as...
10951         * lib/m4sugar/m4sugar.m4: this.
10952         * m4sh.m4: Rename as...
10953         * lib/m4sugar/m4sh.m4: this.
10955         * tests/atgeneral.m4: Rename as...
10956         * lib/autotest/general.m4: this.
10958         * acfunctions: Rename as...
10959         * lib/autoscan/functions: this.
10960         * acheaders: Rename as...
10961         * lib/autoscan/headers: this.
10962         * acidentifiers: Rename as...
10963         * lib/autoscan/identifiers: this.
10964         * aclibraries: Rename as...
10965         * lib/autoscan/libraries: this.
10966         * acmakevars: Rename as...
10967         * lib/autoscan/makevars: this.
10968         * acprograms: Rename as...
10969         * lib/autoscan/programs: this.
10971 2001-08-01  Akim Demaille  <akim@epita.fr>
10973         * doc/autoconf.texi: Moving/deleting open files is not portable.
10974         Portability issues for `.' (source), and more information about sed.
10976 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
10978         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
10979         which has a special meaning and is not a reference to libibmil.a.
10980         Reported by Matteo Frigo.
10982 2001-07-25  Pavel Roskin  <proski@gnu.org>
10984         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
10985         output.
10987 2001-07-25  Akim Demaille  <akim@epita.fr>
10989         * autoconf.in: Try to define the variables before using them.
10990         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
10991         instead of `$perllibdir'.
10992         * tests/atconfig.in ($autom4te_perllibdir): Export it.
10994 2001-07-25  Akim Demaille  <akim@epita.fr>
10996         * autoconf.in (ac_LF_and_DOT): Remove, unused.
10998 2001-07-24  Akim Demaille  <akim@epita.fr>
11000         Let autoconf use autom4te for traces.
11002         * autoconf.in ($task, task trace): Remove, merely pass --trace to
11003         autom4te.
11004         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
11005         (Because I found no way for autom4te to accept `-').
11006         * autom4te.in (&Request::request): Beware of M4 builtins.
11007         (END): Don't try to remove the content of an empty dir.
11008         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
11009         (&handle_output): Set a default value to `$forbidden'.
11010         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
11011         ($autoconf): Pass --debug and --verbose.
11012         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
11013         cache.
11015 2001-07-24  Akim Demaille  <akim@epita.fr>
11017         Let autoconf use autom4te to create configure.
11019         * autoconf.in ($automate): New var.
11020         (task script): Use autom4te.
11021         * autom4te.in (File::Spec): Use it.
11022         (&find_file): New.
11023         (&parse_args): --warning is -W, not -w.
11024         Find the top level files.
11025         (&handle_m4): Pass the warnings flags.
11026         Don't report verbosely m4's failures, unless requested.
11027         (&handle_output): Don't complain for forbidden tokens in comments.
11028         Be sure to report all the forbidden tokens within a single line.
11029         (&trace_format_to_m4): Preserve `$_'.
11030         (&handle_traces): Sort the output macros.
11031         (&up_to_date_p): Find the files before trying to get its time stamp.
11033 2001-07-24  Akim Demaille  <akim@epita.fr>
11035         * Makefile.am: Ship, build and install Autom4te.
11036         (SUBDIRS): Add lib.
11037         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
11038         * configure.in: Require Perl.
11039         * man/autom4te.in: New.
11041 2001-07-19  Paul Eggert  <eggert@twinsun.com>
11043         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
11044         example, rather than (exit 1); exit (which isn't portable).
11046 2001-07-18  Akim Demaille  <akim@epita.fr>
11048         Version 2.52.
11050 2001-07-18  Akim Demaille  <akim@epita.fr>
11052         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
11053         was run, while they are needed also when it is expanded.
11054         Reported by Nicolas Joly.
11056         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
11057         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
11058         AC_F77_DUMMY_MAIN being expanded.
11060 2001-07-18  Akim Demaille  <akim@epita.fr>
11062         * configure.in: Bump to 2.51a.
11064 2001-07-17  Akim Demaille  <akim@epita.fr>
11066         Version 2.51.
11068 2001-07-17  Akim Demaille  <akim@epita.fr>
11070         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
11071         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
11073 2001-07-17  Akim Demaille  <akim@epita.fr>
11075         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
11076         used.  Well, then use the prototypes when you can, and runtime as
11077         a last resort.
11078         Reported by Artur Frysiak
11080         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
11081         (AC_FUNC_GETPGRP): Use it.
11082         First try to compile with 0-ary or 1-ary calls.
11084 2001-07-17  Akim Demaille  <akim@epita.fr>
11086         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
11087         replacement type.
11088         From Paul Eggert.
11090 2001-07-17  Akim Demaille  <akim@epita.fr>
11092         * Makefile.maint: Sync. with cppi 1.10.
11094 2001-07-17  Akim Demaille  <akim@epita.fr>
11096         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
11097         AC_F77_DUMMY_MAIN has been run.
11098         From Pavel Roskin and Steven G. Johnson.
11100 2001-07-17  Akim Demaille  <akim@epita.fr>
11102         * configure.in: Rename as...
11103         * configure.ac: this.
11105 2001-07-17  Akim Demaille  <akim@epita.fr>
11107         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
11108         rules.
11109         From Marc Espie.
11110         * Makefile.maint (release-archive-dir): Rename as...
11111         (release_archive_dir): this, so that it can be specialized in
11112         Makefile.
11114 2001-07-14  Akim Demaille  <akim@epita.fr>
11116         * configure.in: Bump to 2.50d.
11118 2001-07-14  Akim Demaille  <akim@epita.fr>
11120         Version 2.50c.
11121         * Makefile.maint (alpha): Typo.
11123 2001-07-14  Akim Demaille  <akim@epita.fr>
11125         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
11127 2001-07-14  Akim Demaille  <akim@epita.fr>
11129         * config/config.guess, config/config.sub, config/texinfo.tex
11130         * doc/standards.texi, doc/make-stds.texi: Update.
11132 2001-07-14  Akim Demaille  <akim@epita.fr>
11134         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
11136 2001-07-14  Akim Demaille  <akim@epita.fr>
11138         * Makefile.maint (maintainer-check): Rename as...
11139         (maintainer-distcheck): this.
11140         (changelog-check, static-check): New.
11141         Use them.
11143 2001-07-14  Kevin Ryde  <user42@zip.com.au>
11145         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
11146         for CXX is g++, not gcc.
11148 2001-07-14  Akim Demaille  <akim@epita.fr>
11150         * doc/autoconf.texi (Files): New subsection.
11152 2001-07-14  Akim Demaille  <akim@epita.fr>
11154         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
11155         of...
11156         (Generic Compiler Characteristics): this.
11157         (C++ Compiler): New subsection.
11159 2001-07-14  Akim Demaille  <akim@epita.fr>
11161         * autoscan.in: Use IO::File.
11162         Adjust all the routines to use it.
11163         ($log): New file (autoscan.log).
11164         (output): Dump detailed logs into $log, and a shortened version to
11165         stderr.
11166         (&scan_makefile): Refine the regexp catching tokens in the code.
11167         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
11168         and the `configure.ac' checking feature.
11170 2001-07-12  Akim Demaille  <akim@epita.fr>
11172         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
11173         Reported by Michael Elizabeth Chastain.
11175         * autoconf.in: Refuse such AWK.
11176         * configure.in: Likewise.
11177         * Makefile.am (acversion.m4): Do not use move-if-change this file
11178         has dependencies.
11179         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
11181 2001-07-10  Jens Petersen  <petersen@redhat.com>
11183         * autoscan.in (&scan_makefile): Improve programs regexp to parse
11184         things like "g++", "file.c" and "some-conf" as tokens.
11185         (&scan_file): Match C++ files extensions.
11186         If the filename extension is C++ then ask for c++.
11188 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
11190         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
11191         AC_TRY_LINK_FUNC, to check whether defining a dummy
11192         main-like routine is needed for linking with F77 libs.
11194 2001-07-05  Pavel Roskin  <proski@gnu.org>
11196         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
11197         after using break.
11198         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
11199         linking.
11201 2001-07-05  Akim Demaille  <akim@epita.fr>
11203         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
11204         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
11205         Makes' lives.
11206         Reported by Nicolas Joly.
11208 2001-07-04  Akim Demaille  <akim@epita.fr>
11210         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
11211         up.
11212         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
11213         warnings from compilers.
11214         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
11215         for all the compilers, not only GNU.  Hence move from here...
11216         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
11218 2001-07-04  Akim Demaille  <akim@epita.fr>
11220         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
11221         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
11222         AC_COMPILE_IFELSE.
11224 2001-07-04  Akim Demaille  <akim@epita.fr>
11226         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
11227         the ``strings.h'' change claimed below.
11229 2001-07-04  Akim Demaille  <akim@epita.fr>
11231         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
11233 2001-07-04  Akim Demaille  <akim@epita.fr>
11235         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
11236         strings.h if usable with string.h.
11237         Suggested by Paul Eggert.
11239 2001-07-04  Akim Demaille  <akim@epita.fr>
11241         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
11242         From Jens Petersen.
11244 2001-07-03  Akim Demaille  <akim@epita.fr>
11246         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
11247         etc. in the log.
11249 2001-07-03  Akim Demaille  <akim@epita.fr>
11251         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
11252         compiler, not the preprocessor.
11253         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
11254         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
11255         the right thing.
11256         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
11257         earlier if there are.
11259 2001-07-03  Akim Demaille  <akim@epita.fr>
11261         * autoscan.in ($initfile): Remove.
11262         (&find_file): Rename as...
11263         (&scan_file): this.
11264         Immediately scan the current file, instead of gathering them, and
11265         later having them handled by &scan_files.
11266         (&scan_files): Merely invoke Find::File.
11267         Adjust.
11269 2001-07-02  Akim Demaille  <akim@epita.fr>
11271         * autoscan.in: Formatting changes, matching the invocation order.
11272         (File::Find): Use it instead of Perl 4's `find.pl'.
11273         (&wanted): Rename as...
11274         (&find_file): this.
11276 2001-07-01  Pavel Roskin  <proski@gnu.org>
11278         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
11279         break in the argument to AC_TRY_LINK_FUNC.
11280         (AC_F77_MAIN): Remove conftest* after using break in the
11281         argument to AC_TRY_LINK.
11283 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
11285         Add alternate 'main' routine detection for linking C/C++ with Fortran,
11286         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
11288         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
11289         dummy alternate main is required even if the user provides her own
11290         'main'.
11291         (AC_F77_MAIN): New macro to detect whether it is possible to
11292         provide an alternate 'main' function name, using the 'main' from
11293         the Fortran libraries.
11294         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
11295         cross-language link tests can be performed successfully.
11296         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
11297         after $LIBS, for consistency; this should be the general rule since
11298         the user may want to link to Fortran libraries that require $FLIBS.
11299         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
11301 2001-06-29  Pavel Roskin  <proski@gnu.org>
11303         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
11304         at-stdout and at-stderr instead of removing the newline
11305         from the echo output, which is not guaranteed to work.
11307 2001-06-28  Jens Petersen  <petersen@redhat.com>
11309         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
11310         confdefs.h when non-zero.
11312 2001-06-28  Akim Demaille  <akim@epita.fr>
11314         * configure.in: Bump to 2.50c.
11316 2001-06-26  Akim Demaille  <akim@epita.fr>
11318         Version 2.50b.
11320 2001-06-26  Akim Demaille  <akim@epita.fr>
11322         Version 2.50a.
11324 2001-06-25  Pavel Roskin  <proski@gnu.org>
11326         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
11327         argument, AUTOCONF-FLAGS.
11328         * tests/mktests.sh (update_exclude_list): Add
11329         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
11330         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
11331         AC_FUNC_WAIT3 with "-W no-obsolete".
11333 2001-06-25  Akim Demaille  <akim@epita.fr>
11335         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
11337 2001-06-25  Akim Demaille  <akim@epita.fr>
11339         * autoscan.in (%macro): Now maps from word to list of macros.
11340         (&init_tables): Die when a word which is already handled by
11341         explicit macros is mapped to the default macro.
11342         (&print_unique): Remove, inlined in...
11343         (&output_kind): here.
11344         (File::Basename): Use it.
11345         (&output): Sort the CONFIG_FILES.
11346         * acheaders: Normalize.
11347         * acfunctions: Likewise.
11349 2001-06-25  Akim Demaille  <akim@epita.fr>
11351         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
11352         characteristics in the logs.
11353         Suggested by Mo DeJong.
11355 2001-06-24  Akim Demaille  <akim@epita.fr>
11357         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
11358         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
11359         * doc/autoconf.texi (Autoconf 2.13): New section.
11361 2001-06-24  Akim Demaille  <akim@epita.fr>
11363         * autoconf.in (Task traces): Separate the error messages from the
11364         traces to improve robustness.
11366 2001-06-23  Akim Demaille  <akim@epita.fr>
11368         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
11369         three as failures are unlikely, and speed matters.
11371 2001-06-23  Akim Demaille  <akim@epita.fr>
11373         * doc/autoconf.texi (Redefined M4 Macros): New.
11375 2001-06-23  Akim Demaille  <akim@epita.fr>
11377         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
11378         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
11379         5.3.
11381 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
11383         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
11384         config.status targets to after the evaluation of the INIT-CMDS.
11385         Double quote config.status targets (used to be single quoted).
11387 2001-06-23  Akim Demaille  <akim@epita.fr>
11389         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
11390         Check the content of the created file.
11391         Check the ./config.status command line invocation.
11393 2001-06-23  Akim Demaille  <akim@epita.fr>
11395         * tests/foreign.at (Libtool): Reject prehistoric versions.
11397 2001-06-23  Akim Demaille  <akim@epita.fr>
11399         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
11400         preexisting files matching a.*.
11402 2001-06-23  Akim Demaille  <akim@epita.fr>
11404         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
11405         stderr.
11406         * doc/autoconf.texi (AC_ARG_VAR): Update.
11408 2001-06-21  Akim Demaille  <akim@epita.fr>
11410         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
11411         precious variables have changed.
11412         * tests/torture.at (AC_ARG_VAR): Adjust.
11414 2001-06-21  Akim Demaille  <akim@epita.fr>
11416         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
11417         but some sed choke on multiple `;', and other tools (e.g.,
11418         Automake), include the separator themselves.
11420         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
11422 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
11424         * doc/autoconf.texi (Functions Portability): Rename as...
11425         (Function Portability): this.
11426         (Function Portability): Document potential problems with unlink().
11428 2001-06-19  Paul Eggert  <eggert@twinsun.com>
11430         * NEWS, doc/autoconf.texi: Document quadrigraphs.
11432 2001-06-18  Akim Demaille  <akim@epita.fr>
11434         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
11436 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
11438         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
11439         (_AC_FUNC_VFORK): this.
11440         Remove AC_DEFINEs and don't guess cross-compilation values.
11441         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
11442         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
11443         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
11444         vfork doesn't work.
11445         Guess values if cross-compiling, but warn.
11446         * acfunctions: Add AC_FUNC_FORK.
11447         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
11448         and vfork appropriately.
11450 2001-06-18  Akim Demaille  <akim@epita.fr>
11452         * doc/autoconf.texi (Functions Portability): New section.
11454 2001-06-18  Akim Demaille  <akim@epita.fr>
11456         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
11457         in $M4.
11458         Suggested by Andreas Schwab.
11460 2001-06-18  Akim Demaille  <akim@epita.fr>
11462         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
11463         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
11464         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
11465         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
11466         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
11467         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
11468         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
11469         the converse).
11471 2001-06-18  Akim Demaille  <akim@epita.fr>
11473         * doc/autoconf.texi (ms): New index.
11474         (Macro Index): Rename as...
11475         (Autoconf Macro Index): this.
11476         (M4 Macro Index): New appendix.
11477         (Programming in M4): New chapter.
11478         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
11479         (Quoting): Rename as...
11480         (M$ Quotation): this.
11481         Be part of `Programming in M4).
11483 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
11485         * tests/torture.at (AC_ARG_VAR): Set variables and export them
11486         in separate statements for compatibility with Tru64 v5.1.
11488 2001-06-17  Akim Demaille  <akim@epita.fr>
11490         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
11491         current values of the precious variables, not the previously
11492         cached values.
11493         Pass precious variables which are set to config.status.
11494         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
11495         * tests/torture.at (AC_ARG_VAR): New.
11497 2001-06-15  Paul Eggert  <eggert@twinsun.com>
11499         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
11500         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
11501         and explain why and how to replace them.
11502         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
11503         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11505 2001-06-15  Akim Demaille  <akim@epita.fr>
11507         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
11508         Reported by Bruno Haible.
11510         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
11511          (_AC_ARG_VAR_PRECIOUS): to here.
11513 2001-06-15  Pavel Roskin  <proski@gnu.org>
11515         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
11516         an unused pointer use cast to this type and `if' statement to
11517         avoid warnings from the compiler.
11518         (AC_HEADER_TIME): Likewise.
11519         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
11520         in `if' statement to avoid warnings from the compiler. Declare
11521         ac_aggr static to avoid the need to initialize it.
11523 2001-06-14  Akim Demaille  <akim@epita.fr>
11525         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
11526         Macros'.
11528 2001-06-13  Akim Demaille  <akim@epita.fr>
11530         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
11531         Suggested by Alexander Mai.
11533 2001-06-13  Akim Demaille  <akim@epita.fr>
11535         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
11536         sys/types.h and sys/stat.h, and check for them.
11538 2001-06-13  Akim Demaille  <akim@epita.fr>
11540         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
11541         INCLUDES.
11543 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11545         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
11546         succeeds and only try adding libdnet upon a failure.
11548 2001-06-12  Akim Demaille  <akim@epita.fr>
11550         * autoscan.in (&output_kind): Output the comment only if it exists.
11551         (%kind_comment): Add entry for `programs'.
11552         (&output_programs): Use &output_kind.
11553         (&output_functions, &output_identifiers, &output_headers)
11554         (&output_programs): Inline, and remove.
11556 2001-06-12  Akim Demaille  <akim@epita.fr>
11558         * autoscan.in (%kind_comment): New.
11559         (output_kind): New.
11560         (output_functions, output_identifiers, output_headers): Use it.
11562 2001-06-12  Akim Demaille  <akim@epita.fr>
11564         * autoscan.in (&print_unique): Take `$kind' and `$word' as
11565         arguments, to factor indirections into `%macro' and `%used'.
11566         (%generic_macro): Fix a typo.
11568 2001-06-12  Akim Demaille  <akim@epita.fr>
11570         * aclibraries: New.
11571         * autoscan.in (@kinds): Add `libraries'.
11572         Use `@kinds' instead of hard coded lists.
11573         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
11574         Remove, replaced by...
11575         (%used): this.
11577 2001-06-12  Akim Demaille  <akim@epita.fr>
11579         * autoscan.in (%functions_macros %headers_macros)
11580         (%identifiers_macros %programs_macros %makevars_macros): Remove,
11581         replaced by...
11582         (%macro): New.
11584 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
11586         * aclang.m4 (AC_NO_EXECUTABLES): Override
11587         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
11589 2001-06-11  Akim Demaille  <akim@epita.fr>
11591         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
11592         trailing new line.
11593         Reported by Andreas Schwab.
11595 2001-06-11  Akim Demaille  <akim@epita.fr>
11597         * Makefile.am, Makefile.maint: Typos.
11599 2001-06-09  Akim Demaille  <akim@epita.fr>
11601         * doc/autoconf.texi (Here-Documents): New section, gathering
11602         documentation about here-documents.
11603         Use `href', not `uref', and other changes.
11605 2001-06-09  Akim Demaille  <akim@epita.fr>
11607         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
11608         chapter.
11610 2001-06-09  Akim Demaille  <akim@epita.fr>
11612         * doc/autoconf.texi (Limitations of Builtins): Complete the
11613         description of the here-docs penalties with Alexandre Oliva's
11614         explanations.
11616 2001-06-01  Paul Eggert  <eggert@twinsun.com>
11618         * doc/autoconf.texi: Talk about here documents and speedups.
11619         Do not use "echo" on arbitrary strings.
11620         Spell "here-documents" consistently with the standard.
11622 2001-06-09  Akim Demaille  <akim@epita.fr>
11624         * doc/autoconf.texi (Concept Index): Introduce it.
11625         Regenerate the menus.
11627 2001-06-09  Akim Demaille  <akim@epita.fr>
11629         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
11630         * config/prev-version.txt: New.
11631         * config/move-if-change: New, for GNU libc.
11633 2001-06-06  Pavel Roskin  <proski@gnu.org>
11635         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
11637 2001-06-06  Akim Demaille  <akim@epita.fr>
11639         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
11640         properly when $1 is not a literal.
11641         Fixes PR Autoconf/187, reported by Bram Moolenaar.
11643 2001-06-06  Akim Demaille  <akim@epita.fr>
11645         Invoking AC_COPYRIGHT before AC_INIT fails.
11647         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
11648         * acgeneral.m4 (_m4_divert(VERSION_FSF))
11649         (_m4_divert(VERSION_USER)): New.
11650         (AC_COPYRIGHT): $2 is the diversion to use.
11651         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
11652         (AC_INIT): Remove dead comments as now it's commutative.
11654 2001-06-06  Akim Demaille  <akim@epita.fr>
11656         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
11657         PR autoconf/187.
11659 2001-06-05  Akim Demaille  <akim@epita.fr>
11661         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
11662         can be empty.
11663         `*dir' variables cannot be NONE.
11664         Reported by Mark Kettenis.
11666 2001-06-05  Paul Eggert  <eggert@twinsun.com>
11668         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
11670 2001-06-04  Akim Demaille  <akim@epita.fr>
11672         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
11673         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
11674         (AC_TR_SH): Move as...
11675         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
11676         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
11677         (AS_TR_SH): these.
11678         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
11679         (_AS_TR_SH_PREPARE): New.
11680         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
11681         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
11683 2001-06-02  Akim Demaille  <akim@epita.fr>
11685         * Makefile.am (.m4.m4f): Pass the options first.
11686         Fixes PR autoconf/182.
11688 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
11690         GNU getopt, when POSIXLY_CORRECT does not permute options and
11691         arguments.  So pass the options first.
11692         Fixes PR autoconf/184.
11694         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
11695         (run_m4): Remove files.
11696         (run_m4f): Remove.
11697         Update remainder of script to use them.
11698         (for warning in): Do not use a literal comma as it will not be
11699         split by IFS.
11701 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
11703         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
11704         Fortran compilers to check.
11705         (_AC_PROG_F77_V): Add '-###' as a possible option to print
11706         information on library and object files.
11707         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
11708         to check.
11710 2001-06-02  Akim Demaille  <akim@epita.fr>
11712         * autom4te.in (Request::@request): Declare with `vars', not `my',
11713         as it prevents updates via `do FILENAME'.
11715 2001-06-02  Akim Demaille  <akim@epita.fr>
11717         * configure.in (standards_texi): Remove, dead code.
11719 2001-06-02  Akim Demaille  <akim@epita.fr>
11721         * autom4te.in: New.
11723 2001-06-02  Pavel Roskin  <proski@gnu.org>
11725         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
11726         for signals other than 0 - exit with code 1.
11727         * m4sh.m4 (AS_TMPDIR): Likewise.
11728         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
11729         * autoheader.in: Likewise.
11730         * autoreconf.in: Likewise.
11731         * tests/torture.at (Signal handling): New test for the above.
11733 2001-06-01  Akim Demaille  <akim@epita.fr>
11735         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
11736         message.
11738 2001-05-31  Akim Demaille  <akim@epita.fr>
11740         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
11741         Add copyright and comments.
11742         * acheaders: Add stdint.h.
11743         Suggested by Paul Eggert.
11745 2001-05-31  Akim Demaille  <akim@epita.fr>
11747         * atgeneral.m4 (AT_INIT): Use $SHELL.
11748         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
11750 2001-05-31  Akim Demaille  <akim@epita.fr>
11752         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
11753         stdint.h.
11754         From Paul Eggert and Lars Hecking.
11756 2001-05-31  Akim Demaille  <akim@epita.fr>
11758         * tests/base.at: Adjust line numbers in error messages.
11760 2001-05-31  Akim Demaille  <akim@epita.fr>
11762         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
11763         to emit the bangshe line.
11764         Reported by David Carter.
11766 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
11768         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
11769         Fortran (95) compilers to check.
11771 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
11773         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
11774         Macro Archive URL.
11776 2001-05-23  Pavel Roskin  <proski@gnu.org>
11778         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
11779         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
11780         (AC_PROG_CXXCPP): Likewise.
11782 2001-05-22  Akim Demaille  <akim@epita.fr>
11784         * config: New directory.
11785         * configure.in: AC_CONFIG_AUX_DIR it.
11786         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
11788 2001-05-22  Akim Demaille  <akim@epita.fr>
11790         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
11791         * autoupdate.in: Specify the Emacs mode.
11792         * acversion.m4.in: Rename as...
11793         * acversion.m4: this.
11794         * tests/Makefile.am (CLEANFILES): More garbage.
11796 2001-05-22  Akim Demaille  <akim@epita.fr>
11798         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
11799         Rename as...
11800         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
11801         these.
11803 2001-05-21  Akim Demaille  <akim@epita.fr>
11805         * configure.in: Bump to 2.50a.
11807 -----
11809 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11811 This file is part of GNU Autoconf.
11813 GNU Autoconf is free software; you can redistribute it and/or modify
11814 it under the terms of the GNU General Public License as published by
11815 the Free Software Foundation; either version 2, or (at your option)
11816 any later version.
11818 GNU Autoconf is distributed in the hope that it will be useful,
11819 but WITHOUT ANY WARRANTY; without even the implied warranty of
11820 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11821 GNU General Public License for more details.
11823 You should have received a copy of the GNU General Public License
11824 along with autoconf; see the file COPYING.  If not, write to
11825 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
11826 Boston, MA 02110-1301, USA.