* NEWS: Recommend M4 1.4.7 instead of 1.4.6.
[autoconf/tsuna.git] / ChangeLog
blobe2aa6630ebeafc46d445c6d0a2b7a9ecb3d61384
1 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3         * NEWS: Recommend M4 1.4.7 instead of 1.4.6.
4         * README: Likewise.
5         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
7 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
8         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10         * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): Avoid `gcc -Wall'
11         warnings (uninitialized value).
12         (AC_FUNC_UTIME_NULL): Likewise, test for and include <utime.h> if
13         present.
14         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Likewise, add
15         parentheses.
16         (AC_STRUCT_TM): Likewise, avoid unused variables.
18 2006-09-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20         * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
21         (_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
22         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
23         * lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
24         Report by Olly Betts.
26 2006-09-19  Eric Blake  <ebb9@byu.net>
28         * m4/m4.m4: Change copyright.
29         * configure: Regenerate.
30         * Makefile.in: Likewise.
31         * bin/Makefile.in: Likewise.
32         * doc/Makefile.in: Likewise.
33         * lib/Makefile.in: Likewise.
34         * lib/Autom4te/Makefile.in: Likewise.
35         * lib/autoconf/Makefile.in: Likewise.
36         * lib/autoscan/Makefile.in: Likewise.
37         * lib/autotest/Makefile.in: Likewise.
38         * lib/emacs/Makefile.in: Likewise.
39         * lib/m4sugar/Makefile.in: Likewise.
40         * man/Makefile.in: Likewise.
41         * tests/Makefile.in: Likewise.
43         * m4/m4.m4 (AC_PROG_GNU_M4): Check for m4 --debugfile support.
44         * bin/Makefile.am (edit): Substitute M4_DEBUGFILE.
45         * bin/autom4te.in (handle_m4): Favor --debugfile over misnamed
46         --error-output, to avoid warnings with M4 2.0.
48 2006-09-19  Stepan Kasal  <kasal@ucw.cz>
50         * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
51           consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
52         * lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
54 2006-09-15  Stepan Kasal  <kasal@ucw.cz>
56         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
57         expansion of AC_CHECK_FUNCS.
59 2006-09-14  Stepan Kasal  <kasal@ucw.cz>
61         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
62         mistaken comment: the path has to be relative; do not use
63         the path at runtime.
65 2006-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
68         argument to `--prefix' for sub-configure scripts.
69         Pass `--silent' to sub-configure scripts.
70         * tests/torture.at (Configuring subdirectories): Add tests
71         for both changes.
72         * doc/autoconf.texi (Setting Output Variables): Fix example to
73         not show `--silent' being passed to a `configure' re-run.
75 2006-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77         * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
78         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
79         for the existence of the directory at configure-time.  That's
80         too late, anyway.  Problem reported by Stefan Seefeld.
82         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Avoid bug in UnixWare
83         7.1.4 /usr/bin/posix/sh described by Tim Rice in
84         <http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
86 2006-09-11  Stepan Kasal  <kasal@ucw.cz>
88         * tests/local.at (AT_CHECK_M4): Fix this so that the testsuite
89         works with GNU M4 1.4.3 again; make the normalized form
90         match the current m4 message; fix the description.
91         * test/tools.at (autom4te cache): Adapt to the change.
93 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95         * lib/autoconf/functions.m4 (AC_FUNC_MKTIME):  Add year_2050_test
96         to catch glibc bug 2821
97         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
99         Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
100         AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
101         AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
102         assume C89.
104 2006-09-08  Stepan Kasal  <kasal@ucw.cz>
106         * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
107         preselections ...
108         (Autoconf): ... here.
109         (Autoscan-preselections): Delete.
111 2006-09-07  Stepan Kasal  <kasal@ucw.cz>
113         * lib/autom4te.in (Automake-preselections): Preselect
114         AM_ENABLE_MULTILIB.
116 2006-09-05  Paul Eggert  <eggert@cs.ucla.edu>
118         * doc/autoconf.texi (Preset Output Variables): srcdir and
119         top_srcdir are not necessarily relative.  Problem reported
120         by Dries Kimpe.
122 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
124         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
125         f90/f95 because the latter drivers of AIX Fortran 9.1 do not
126         accept files with extension `.f'.  For consistency, also prefer
127         xlf over f77.
128         * doc/autoconf.texi (Fortran Compiler): Remove mention of bug
129         from last patch.
131 2006-09-05  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
133         * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
134         of ERLANG_LIB_VER_* variables.
135         * doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
136         variables.
138 2006-09-03  Paul Eggert  <eggert@cs.ucla.edu>
139         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
141         * doc/autoconf.texi (Limitations of Builtins): Document 'unset'
142         bugs of Bash 2.01 and 2.05a.
143         (Fortran Compiler): Document that AC_PROG_CC should be called
144         before AC_PROG_FC, due to a bug in Autoconf.
146 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
148         * NEWS: New macro AC_CACHE_CHECK_INT.  It replaces the
149         old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
150         except the first two arguments are reversed.
151         * doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
152         (Generic Compiler Characteristics): AC_COMPUTE_INT no longer
153         caches nor outputs a diagnostic.  Suggested by Bruno Haible.
154         * lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
155         equivalent to the old AC_COMPUTE_INT.
156         (AC_COMPUTE_INT): No longer caches or reports.  New signature.
157         All uses changed to AC_CACHE_CHECK_INT.
158         * tests/base.at (AC_CACHE_CHECK_INT): New test.
159         * tests/mktests.sh (ac_exclude_list): Add AC_CACHE_CHECK_INT.
161 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
163         * NEWS: AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_FUNC_GETLOADVG,
164         and AC_REPLACE_FNMATCH are now obsolescent in Autoconf.  New
165         programs should use their Gnulib counterparts.
166         * doc/autoconf.texi (Particular Functions): Likewise.
167         (Macro Names, testsuite Invocation): Replace uses of these
168         obsolete macros with uses of non-obsolete macros.
170 2006-08-29  Eric Blake  <ebb9@byu.net>
172         * configure.ac (AC_INIT): Bump to 2.60b.
173         * NEWS: Update.
175 2006-08-28  Eric Blake  <ebb9@byu.net>
177         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
178         mistakenly swapped on 2006-08-15.
180 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
182         * NEWS: Version 2.60a.
184 2006-08-25  Stepan Kasal  <kasal@ucw.cz>
186         * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
187         file created by the PGI compiler.
189 2006-08-25  Noah Misch  <noah@cs.caltech.edu>
191         * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
192         simplify the code.
194 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
196         Fix Lex library problem reported to us by Julio Garvia.
197         * doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
198         for the default, which the user can override.
199         * lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
200         deal with LEXLIB.
201         (_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
202         didn't work if some values were cached but not others.  Test for
203         broken lex libraries like native ia64-hp-hpux11.22; see
204         <http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
205         work around the problem by preferring an empty LEXLIB to -lfl or
206         -ll.  Let the user set LEXLIB='' to indicate no library needed.
208         * NEWS: Recommend M4 1.4.6 instead of 1.4.5.
209         * README: Likewise.
210         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
212 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
214         Rework to use more-modern build style.
215         Many files are renamed; all uses of their names were changed.
216         * .x-sc_trailing_blank: Renamed from .x-sc_trailing_space.
217         * .x-sc_useless_cpp_parens: New file.
218         * build-aux/config.guess: Renamed from config/config.guess.  Update.
219         * build-aux/config.sub: Renamed from config/config.sub.  Update.
220         * build-aux/elisp-comp: Renamed from config/elisp-comp.
221         * build-aux/install-sh: Renamed from config/install-sh.  Update.
222         * build-aux/mdate-sh: Renamed from config/mdate-sh.
223         * build-aux/missing: Renamed from config/missing.
224         * build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
225         * build-aux/vc-list-files: Renamed from config/vc-list-files.
226         * config/Makefile.am: Removed.
227         * config/mkinstalldirs: Removed.
228         * config/move-if-change: Removed.
229         * m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
230         * Makefile.am (SUBDIRS): Remove config.
231         (ACLOCAL_AMFLAGS): Include from m4, not config.
232         (EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
233         (WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
234         (autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
235         Fail if there's an error.
236         * Makefile.cfg (move_if_change): Remove.
237         (wget_files): Remove.
238         (cvs_executable_files): New macro.
239         (cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
240         (executable-update): Use $(cvs_executable_files).
241         (local-checks-to-skip): Remove.
242         * Makefile.maint: Merge from coreutils, plus add our own changes
243         (gzip_rsyncable): New macro.
244         (GZIP_ENV): Use it.
245         (CVS_LIST): Use build-aux/vc-list-files.
246         (VERSION_REGEXP): New macro.
247         (local-checks-available): Add patch-check, $(syntax-check-rules),
248         check-AUTHORS.
249         (syntax-check-rules): Compute dynamically.
250         (sc_cast_of_x_alloc_return_value): Work even if no source files.
251         (sc_cast_of_alloca_return_value): Likewise.
252         (sc_prohibit_atoi_atof): Simplify regexp.
253         (sc_no_if_have_config_h, sc_require_config_h):
254         (sc_prohibit_assert_without_use,
255         (sc_obsolete_symbols): Check for O_NDELAY.
256         (sc_texi_notab): Remove.
257         (sc-changelog): Don't make an exception for '----' lines.
258         (.re-list): Remove, so we don't have a junk file behind.
259         (sc_system_h_headers): Remove the need for .re-list.
260         (sc_the_the):  New rule.
261         (sc_tight_scope): Simplify.
262         (sc_trailing_blank): Renamed from sc_trailing_space.
263         (longopt_re): New macro.
264         (sc_two_space_separator_in_usage): New rule.
265         (sc_unmarked_diagnostics): Look at all files under CVS.
266         (sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
267         (news-date-check, changelog-check): Version is OK.
268         (po-check): Look for lib files even if not in CVS.
269         (copyright-check): Use $() not ``.
270         (maintainer-distcheck): Do not depend on changelog-check.
271         (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
272         Also check for -Wpointer-arith.
273         (WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
274         (xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
275         Remove.
276         (announcement): Add --gpg-key-id arg.
277         (cvs-sv): Remove.
278         (move_if_change): Just use mv.
279         (local_updates: Remove wget-update, po-update.
280         (po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
281         (config.guess-url_prefix, config.sub-url_prefix): Remove.
282         (ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
283         (standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
284         ($(get-targets)): Remove.
285         (cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
286         (gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
287         (cvs-update): Get from gnulib.
288         (emut_upload_commands): gnupload is in build-aux now.
289         (alpha beta major): Add changelog-check.  Check version.
290         * configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
291         (AC_CONFIG_FILES): Remove.
292         * bin/autoconf.as: Add spaces to avoid distcheck warning.
293         * config/announce-gen: Sync from coreutils.
294         * doc/make-stds.texi: Sync from gnulib.
295         * doc/standards.texi: Likewise.
296         * man/Makefile.am: Adjust for config -> build-aux renaming.
297         * tests/Makefile.am: Prefer $(FOO) to @FOO@.
298         * tests/local.at: Adjust from config -> build-aux renaming.
299         * tests/tools.at: Likewise.
300         * tests/torture.at: Likewise.
302         * NEWS: The C99 check now tests for vararg macros and 64-bit
303         preprocessor ints.
304         * doc/autoconf.texi (C Compiler): Document // comments, va_copy.
305         * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
306         64-bit preprocessor ints.  Check for static initialization of
307         long long.  Remove unnecessary casts.
309 2006-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
311         * doc/autoconf.texi (Particular Programs): Mention that
312         @INSTALL@ and @MKDIR_P@ may vary for different output files.
313         Reported by Alexandre Duret-Lutz.
315 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
317         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
318         -lgcc?* and -lSystem, for Darwin/MacOS X.  Problem reported by
319         Bill Northcott in
320         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00083.html>.
322 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
324         * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
325         pacify insanely picky compilers.  Problem reported by Eric Blake.
327         * doc/autoconf.texi (Posix Variants): INTERACTIVE Unix is no
328         longer supported by Sun.
330 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
332         * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
333         rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
334         -Wundef -Werror".  Problem reported by David Fang in
335         <http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
336         * doc/autoconf.texi (Header Templates, Default Includes):
337         (Particular Functions, Generic Functions, Header Portability):
338         (Particular Headers, Generic Headers, Generic Declarations, Guidelines):
339         (Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
340         (Present But Cannot Be Compiled, Preprocessor Symbol Index):
341         Prefer #ifdef to #if.
342         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
343         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
344         (AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
345         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
346         Likewise.
347         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
348         (AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
349         * lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
350         (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
351         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
352         S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
353         this.
355 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
357         * doc/autoconf.texi (Limitations of Usual Tools): Document sed
358         problems with arg script text that doesn't end in newline, and
359         with '-e a...'.  Problems reported by Ralf Wildenhues.
361 2006-08-12  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
363         * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
364         check for libXt by a check for libX11.
366 2006-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
368         * doc/autoconf.texi (config.status Invocation): Adjust according
369         to last change.
371 2006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
373         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
374         --help' should mention that `--version' outputs configuration
375         settings.  Report by Bruno Haible.
377 2006-08-06  Paul Eggert  <eggert@cs.ucla.edu>
379         Fix test suite failures reported by Pierre in
380         <http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
381         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
382         the compiler created a file "b.out" when it didn't create anything
383         at all.
384         * lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
385         Discard stderr too, when invoking the test script.
387 2006-08-05  Alexandre Julliard  <julliard@winehq.org>  (tiny change)
389         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
390         in the restoring of the werror flag.
392 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
394         * doc/autoconf.texi (Volatile Objects): Be even a little
395         less skeptical about "volatile", after discussion with
396         Bruno Haible on bug-gnulib.
397         (Limitations of Usual Tools): Warn about sed stripping
398         leading white space from text.  From Bruno Haible.
400 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
402         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
403         compiler complains about it, even if things works after the
404         complaint.  Problem reported by Peter O'Gorman.
406         * doc/autoconf.texi (Preset Output Variables): Document CFLAGS,
407         CPPFLAGS, and LDFLAGS better.  Problem reported by Bruno Haible.
408         Similarly for CXXFLAGS, OBJCFLAGS, ERLCFLAGS.
410 2006-07-17  Paul Eggert  <eggert@cs.ucla.edu>
412         * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space
413         after -R regardless of host.  Patrick Welche reports that this
414         fixes things on NetBSD 3.99.
416         * NEWS: Recommend M4 1.4.5.
417         * README: Likewise.
418         * doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
419         * tests/tools.at (autom4te cache): Update wording of diagnostic
420         to match M4 1.4.5.
422 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
424         * doc/autoconf.texi (C Compiler): Add a ref to Volatile Objects
425         under AC_C_VOLATILE.
426         (Volatile Objects): Be a little less skeptical about what
427         "volatile" means.  Derived from thoughts by Ben Pfaff in
428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00092.html>.
430 2006-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
432         * doc/autoconf.texi: Fix some typos.
434 2006-07-07  Paul Eggert  <eggert@cs.ucla.edu>
436         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
437         more globally, since the 2006-06-30 patch didn't suffice.  Problem
438         reported by Keith Marshall.  Also, don't bother with builddir2,
439         since it shouldn't be needed any more.
441 2006-07-07  Paolo Bonzini  <bonzini@gnu.org>
443         * doc/autoconf.texi (Generic compiler characteristics):
444         Document AC_COMPUTE_INT.  Fix wrong statements on Default
445         Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.
447         * lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
448         (_AC_COMPUTE_INT): Add obsoletion warnings.
449         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
450         AC_COMPUTE_INT.
452         * NEWS: Document change.
454 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
456         * doc/autoconf.texi (Volatile Objects): New section.
458         * NEWS: Document previous change.
460 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
462         * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
463         Require that long long int be at least 64 bits wide.  C99 requires
464         this and enough programs depend on it so we should check for it.
465         Bruno Haible reports in
466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00286.html>
467         that long long int is 32 bits wide with some nonstandard compilers.
468         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
470 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
472         * tests/torture.at (Configuring subdirectories): Set CONFIG_SITE
473         to a nonexistent file, so that we don't have to worry about
474         a local site configuration that doesn't use /usr/local.
475         Problem reported by Keith Marshall in
476         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00133.html>.
478 2006-06-28  Paul Eggert  <eggert@cs.ucla.edu>
480         * doc/autoconf.texi: Be more consistent about using @acronym with
481         "HP" and "HP-UX".  Remove mention of OSF; the old version wasn't
482         quite right (it talked about "OSF/Tru64", even though the
483         operating systems were called OSF/1, Digital UNIX, and Tru64 UNIX,
484         and it even mentioned "OSF 4"!) and at this point there's little
485         reason to talk about OSF any more, since it died in 1994.
486         (Specific Compiler Characteristics): Simplify example of
487         negative-size array.
488         (File Descriptors): Reorder to make the text flow better.
489         Remove joke about "appreciate the various levels"; I didn't get it.
490         Add remark about HP-UX sh -x bug with stderr noted by Bob Proulx in
491         <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00225.html>.
492         (File Descriptors, Limitations of Usual Tools):
493         Tone down the advice against renaming or removing open files.
494         (Limitations of Usual Tools): Add a new section, on 'rm'.
496 2006-06-26  Stepan Kasal  <kasal@ucw.cz>
498         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
499         -lXt in LIBS, idea from Karsten Hopp; this was due since
500         this change:
502         2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
503         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
504         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
505         (which belong to Xt, not X itself).  See Debian bug 327655.
507 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
509         * configure.ac (AC_INIT): Bump to 2.60a.
510         * NEWS: Update.
512 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
514         Version 2.60.
516         * configure.ac, NEWS: Update.
518 2006-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
520         * config/texinfo.tex: Sync from upstream.
522         * bin/autom4te.in (handle_traces): Transform the `@S|@'
523         quadrigraph correctly in traces.
525         * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
526         Fix typos.
528         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
529         datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
530         not defined.
531         * doc/autoconf.texi (Changed Directory Variables): New node,
532         to document the whole `datarootdir' business a bit better.
533         * NEWS: Update.
534         * tests/torture.at (datarootdir workaround): Extend test.
535         Prompted by report by Alexandre Julliard.
537 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
539         * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
540         when using default mode of IBM C 6 for AIX.  Problem and two-line
541         fix reported by Larry Jones.
543 2006-06-22  Alexandre Julliard <julliard@winehq.org>
545         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
546         about literal '${datarootdir}' if a definition is found in the
547         output file.
549 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
551         * NEWS: Use "M4" rather than "m4" when appropriate.
552         Problem reported by Eric Blake.
553         * doc/autoconf.texi: Likewise.
554         Use @acronym around BSD, GCC, and GNU when appropriate.
555         (Why GNU M4): Renamed from "Why GNU m4".
556         (Redefined M4 Macros): Mention that Posix
557         m4wrap takes only 1 argument, but GNU M4 1.4.x takes more.
558         (Buffer Overruns): Mention size_t and ptrdiff_t as alternatives
559         to int.
561 2006-06-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
563         * bin/autom4te.in (handle_output): Do not forbid the empty
564         pattern.
565         * tests/tools.at (autoconf: the empty token): New test.
567 2006-06-20  Stepan Kasal  <kasal@ucw.cz>
569         * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
570         calls, so that we do not care whether they are LIFO or FIFO;
571         in the m4_wrap, do not check which diversion is the topmost
572         one, just check that the stack is balanced at the end.
573         * lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
574         base diversion forever--pop the previous diversion before
575         opening the new one; consequently, remove the m4_wrap call.
576         * lib/autotest/general.m4 (AT_INIT): Likewise.
577         * tests/m4sugar.at: Do not use
578         m4_wrap([m4_diversion_pop([..])]), for educational purposes.
580 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
581         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583         * NEWS: Document that m4wrap/m4_wrap might not be LIFO.
584         * doc/autoconf.texi (Redefined M4 Macros): Likewise.
585         Rework example of m4wrap token-pasting trouble so that it doesn't
586         care whether it's LIFO or FIFO.
587         Fix some "contrary to"s that are awkward in English.
589 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
591         * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
592         to `yes' instead of `int$1_t' if the type is found, for more
593         consistent configure output (where $1 is the number of bits).
594         (_AC_TYPE_UINT): Likewise for `uint$1_t'.
595         Suggested by Bruno Haible.
597         * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
598         needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
599         with system headers.  Report by Bruno Haible.
601 2006-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
603         * config/config.guess, config/config.sub: Sync from upstream.
605         * bin/Makefile.am (autoconf.in): Use `--melt' for autom4te,
606         in order to avoid picking up an older installed frozen m4sh.m4f.
607         Besides an outdated shell startup, this could have been created
608         by an earlier M4 version with incompatible frozen file format.
610 2006-06-16  Paul Eggert  <eggert@cs.ucla.edu>
612         * README: Recommend m4 1.4.4 instead of 1.4.3..
613         * doc/autoconf.texi: Likewise.
614         (Special Chars in Names): Say that $(.FOO) is portable, as
615         suggested by Stepan Kasal.
616         (Installation Directory Variables, Build Directories):
617         (Automatic Remaking, Subdirectories, Fortran Compiler):
618         (Making testsuite Scripts, Defining Directories):
619         Quote variable usages better.
620         (Making testsuite Scripts): Add clean-local rule to makefile
621         snippet, by Eric Blake.
622         (Installation Directory Variables): Fix table item font.
623         Reword slightly to clarify.  Generalize advice about
624         not using special characters to include all file-related
625         vars, not just VPATH.
626         (Special Chars in Variables): Warn about special characters in
627         $(srcdir) too.
628         (Assignments): Clarify default-value example as suggested by
629         Ralf Wildenhues in
630         <http://lists.gnu.org/archive/html/autoconf-patches/2006-06/msg00072.html>.
631         (Special Shell Variables): Note leading ./ or ../, as suggested
632         by Eric Blake.
633         (Limitations of Builtins): Under cd, warn about CDPATH.
634         (The Make Macro MAKEFLAGS): Untabify.  Problem reported by
635         Ralf Wildenhues.
637 2006-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
639         * doc/autoconf.texi (Configuration Actions): Remove duplicate
640         `@var', for texi2html.
641         (Systemology): Some more word wrapping, for DVI output.
642         (autom4te Invocation): The short option for `--melt' is `-M',
643         not `-m'.
645 2006-06-15  Paul Eggert  <eggert@cs.ucla.edu>
647         * doc/autoconf.texi: More formatting and English tweaks,
648         many suggested by Ralf Wildenhues.
649         Reword to avoid "@code{...}'s" and the like, since it's ugly
650         with Emacs info mode.  discontents -> woes.
651         Put a few "will"s back.  time stamp -> timestamp.
652         side-effect -> side effect.
654 2006-06-14  Paul Eggert  <eggert@cs.ucla.edu>
656         * doc/autoconf.texi (Initializing configure, Shell Substitutions):
657         Warn about $@ not persisting.  Problem reported by Julien Danjou in
658         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372179>.
659         (Special Chars in Names): Renamed from Leading _ in Macro Names.
660         Mention other special chars, too.
662 2006-06-14  Eric Blake  <ebb9@byu.net>
664         * doc/autoconf.texi (The Make Macro MAKEFLAGS): New node.
666 2006-06-13  Paul Eggert  <eggert@cs.ucla.edu>
668         * doc/autoconf.texi: Some systematic minor improvements, as
669         follows.  Use "makefile" when talking about makefiles
670         generally (which might be named "makefile" or "Makefile" or even
671         "foo.mk"), "Makefile" when talking about a specific makefile
672         called "Makefile".  This unclutters the text from weird quotes
673         (e.g., "`Makefile's" in info mode).  Similarly, use "@var{foo}
674         values" rather than "@var{foo}s" and similar constructs containing
675         "}s".  Use "Make rules" rather than "Makefile rules".  Minor
676         English-language improvements.  Change the prefix "sub-" to "sub"
677         and "re-" to "re".
678         Put blank lines around examples more consistently.
679         Avoid "rather" and "very" as intensifiers.
680         Avoid "will" as an auxiliary.
681         (Limitations of Make): Split this node into....
682         (Portable Make, $< in Ordinary Make Rules, Failure in Make Rules):
683         (Leading _ in Macro Names, Backslash-Newline-Newline):
684         (Backslash-Newline Comments, Long Lines in Makefiles):
685         (Macros and Submakes, The Make Macro SHELL, Comments in Make Rules):
686         (obj/ and Make, make -k Status, VPATH and Make):
687         (VPATH and Double-colon, $< in Explicit Rules):
688         (Automatic Rule Rewriting, OSF/Tru64 Directory Magic):
689         (Make Target Lookup, Single Suffix Rules, Timestamps and Make):
690         New nodes, resulting from splitup of Limitations of Make.
691         All cross-references changed.  Raise the top node from
692         a section to a chapter, and all subnodes accordingly.
693         Redo the introductory wording to match the new organization.
694         (Installation Directory Variables): Use an example that is
695         closer to what Autoconf actually does.  Mention that VPATH's
696         value should not contain metacharacters or white space.
697         (Fortran Compiler): Fix a VPATH bug in an example.
698         (Leading _ in Macro Names): Mention that this problem is no longer
699         of practical concern.
700         (VPATH and Make): Reword the advice to make it clearer
701         that Autoconf and Automake support VPATH in non-GNU make, but
702         many packages have bugs in this area.
703         ($< in Explicit Rules): Refer to Build Directories rather
704         than using a (non-VPATH-safe) example.
705         (Automatic Rule Rewriting): Mention the sort of disaster that
706         can ensue with Solaris-style rule rewriting with VPATH.
708 2006-06-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
710         * doc/install.texi (Compilers and Options): Weaken the
711         suggestion to use GNU make for VPATH builds.
713         * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
714         AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
716         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
717         in regular expression.
719 2006-06-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
721         * doc/autoconf.texi (Installation Directory Variables):
722         Drop extra @samp from `@table @samp' item.
723         (Limitations of Usual Tools): Comment fix.
724         Do not nest @samp just to point to other table items.
725         (Writing testsuite.at) <AT_CHECK>: The second argument to
726         `@dvar' is already @samp'ed.
727         (Making testsuite Scripts) <AC_CONFIG_TESTDIR>: Likewise,
728         do not use @var in the second argument.
730 2006-06-07  Paul Eggert  <eggert@cs.ucla.edu>
732         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
733         $as_shell.exe too.  Problem reported by Andreas Buening in
734         <http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
736 2006-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
738         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
739         `unused variable' compiler warning, for `-Wall -Werror'.
740         Reported by Jaap Haitsma in
741         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00012.html>.
743 2006-06-06  Paul Eggert  <eggert@cs.ucla.edu>
745         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
746         case the compiler dumps core.  Problem reported for
747         OpenServer 5.0.7 by Tim Rice in
748         <http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
749         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
750         Likewise.
752 2006-06-06  Tim Rice <tim@multitalents.net>.
754         * lib/freeze.mk: Quiet check-forbidden-patterns so the string
755         "ERROR" only shows up in "make check" output if there is an
756         error.
758 2006-06-06  Eric Blake  <ebb9@byu.net>
760         * tests/tools.at (automatically allowed tokens): Fix typo.
762 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
764         * NEWS: Don't blame non-GNU VPATH compatibility issues on Automake.
766         * doc/autoconf.texi (Integer Overflow): Mention that INT_MIN % -1
767         typically overflows on x86 CPUs, even though the C standard
768         requires otherwise.
770 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
772         * configure.ac (AC_INIT): Bump to 2.59e.
773         * NEWS: Update.
775 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
777         Version 2.59d.
779         * config/texinfo.tex: Sync from upstream.
781         * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
782         seen, invoke libtoolize with `--ltdl' argument.
783         * lib/autom4te.in (Autoreconf-preselections): Adjust.
784         * NEWS: Update.
785         Suggested by Eric Blake.
787 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
789         * NEWS: Whoops!  AC_FUNC_STRNLEN isn't obsolescent.  Problem
790         reported by Ralf Wildenhues.
791         * doc/autoconf.texi (AC_FUNC_STRNLEN): Likewise.
793 2006-06-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
795         * THANKS: Update.
797 2006-06-05  Paul Eggert  <eggert@cs.ucla.edu>
799         * doc/autoconf.texi: Modernize some of the references to Solaris.
801 2006-06-05  Stepan Kasal  <kasal@ucw.cz>
803         * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
804         message issued by AC_REQUIRE.
805         * tests/m4sugar.at: Check m4_require's error message.
806         * tests/base.at: Check AC_REQUIRE's error message.
807         * tests/local.at (AT_CHECK_M4): New macro, almost identical
808         to...
809         (AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
810         AT_CHECK_M4.
811         (AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
812         `expout' as the last parameter.
813         * tests/tools.at: Adapt to the above change.
815 2006-06-04  Stepan Kasal  <kasal@ucw.cz>
817         * doc/autoconf.texi (Limitations of Usual Tools): Correct
818         information about race-free implementations of mkdir.
820 2006-06-04  Eric Blake  <ebb9@byu.net>
822         * bin/autoreconf.in (help): Document M4 environment variable.
823         * bin/autoconf.as (Usage): Likewise.
824         * bin/autom4te.in (help): Likewise.
825         * doc/autoconf.texi (autom4te Invocation): Likewise.
827 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
829         * NEWS: GNU make now recommended for VPATH builds.
830         Mention that some macros are now documented to be obsolescent.
831         * doc/autoconf.texi:
832         Prefer "current" to "modern" to describe
833         currently-used (albeit perhaps old-fashioned) hosts.
834         Mention which ancient features no longer need to be worried about.
835         setgid -> set-group-ID
836         setuid -> set-user-ID (these are the Posix terms)
837         Fix some misuses of "only".
838         (AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
839         (AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
840         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
841         (AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
842         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
843         (AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
844         (AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
845         (AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
846         (AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
847         Mention that these macros are obsolescent.
848         (Installation Directory Variables): shall -> should
849         (File Descriptors): Mention that 0, 1, 2 might get reopened.
850         Mention that it's now safe to use 3 and 4.
851         (Limitations of Usual Tools): cp -r is now specified by Posix.
852         Omit longwinded and obsolescent discussion of cp -f.
853         Modernize discussion of expr, ls.
854         (Limitations of Make): Modernize discussion of VPATH builds.
855         Mention $? as a workaround in some cases.
856         * doc/install.texi (Basic Installation):
857         Mention "./configure; make; make install" first.  Be more
858         specific about why this file is generic.  Remove unnecessary
859         parens.  Remove misleading "only".  Remove obsolete advice
860         about csh.  Don't say "configure" takes awhile; say it
861         might take a while.  Suggest CFLAGS=-g rather than CFLAGS=-O2,
862         and CC=c99 rather than CC=c89, as these are blessed by current
863         Posix.  Recommend GNU make if doing a VPATH build.
865 2006-06-03  Paul Eggert  <eggert@cs.ucla.edu>
867         * doc/autoconf.texi: Use a consistent style "$ @kbd{...}" for
868         examples involving shell prompts.
870 2006-06-02  Stepan Kasal  <kasal@ucw.cz>
871         and Paul Eggert  <eggert@cs.ucla.edu>
873         * doc/autoconf.texi (Here-Documents): Add details about the
874         pre-ksh93g bug.  Reword slightly to make it clearer.  Consistently
875         use "here-documents" instead of "here documents".
877 2006-06-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
879         * config/texinfo.tex, doc/standards.texi: Sync from upstream.
881 2006-06-01  Paul Eggert  <eggert@cs.ucla.edu>
883         * doc/autoconf.texi (File System Conventions): Warn about ":"
884         anywhere in directory names.
886 2006-05-31  Paul Eggert  <eggert@cs.ucla.edu>
888         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be even more conservative
889         about quoting the case statement, just in case.
890         * doc/autoconf.texi (Here-Documents): Mention that the ksh bug
891         was fixed in ksh93g; reported by Ralf Wildenhues.
893 2006-05-31  Stepan Kasal  <kasal@ucw.cz>
895         * doc/autoconf.texi (System Services): Do not document
896         overriding EXEEXT via ac_cv_exeext=ext.
897         (Particular Programs) <AC_PROG_MKDIR_P>:
898         Document that ${MKDIR_P} understands --.
899         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Improve the
900         comment.
902 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
904         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Guard against test
905         argument with leading hyphen.  Problem reported by Paul Eggert.
907 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
909         * lib/autoconf/general.m4 (_AC_DO_ECHO): Be more conservative
910         about quoting ac_try: quote all of it, if any of it seems suspicious.
911         This means we don't have to worry about ${ or sed any more.
912         Also, double-quote the case statement, to work around misuses via
913         underquoting as reported by Ralf Wildenhues in
914         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00169.html>.
915         (_AC_EVAL_STDERR): Revert, since evidently some packages rely on this
916         undocumented and dangerous macro.
917         Problem reported by Ralf Wildenhues in
918         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00168.html>.
920 2006-05-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
922         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): Check whether
923         `dirname -- /' returns `/', for SunOS dirname scripts that escaped.
924         Report by Sam Sirlin <sam@kalessin.jpl.nasa.gov>.
926 2006-05-30  Paul Eggert  <eggert@cs.ucla.edu>
928         * lib/autoconf/general.m4: Revert AC_TRY_EVAL and AC_TRY_COMMAND,
929         since evidently some packages rely on the old, broken behavior.
930         Problem reported by Ralf Wildenhues in
931         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00160.html>.
932         (AC_TRY_EVAL, AC_TRY_COMMAND, _AC_EVAL): Go back to the
933         pre-2006-05-26 definitions, but leave in the comments that
934         these macros are dangerous and should not be used.
935         (_AC_DO_ECHO): Renamed from _AC_EVAL_ECHO.  All callers changed.
936         (_AC_DO): Renamed from _AC_EVAL.  All callers changed.
937         (_AC_DO_STDERR): Renamed from _AC_EVAL_STDERR.  All callers changed.
938         (_AC_DO_VAR): Renamed from AC_TRY_EVAL.
939         (_AC_DO_TOKENS): Renamed from AC_TRY_COMMAND.
941 2006-05-29  Paul Eggert  <eggert@cs.ucla.edu>
943         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): Rewrite to avoid
944         the use of 'tr', since this is our only use of 'tr'.
946 2006-05-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
947         and Paul Eggert  <eggert@cs.ucla.edu>
949         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
950         Don't assume 'grep' works on long lines, since AIX grep doesn't.
952 2005-05-28  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
954         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Do not use `grep' on
955         the output file in the `${datarootdir}' test.
957 2005-05-28  Stepan Kasal  <kasal@ucw.cz>
958         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
960         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If we have not seen
961         mention of `datarootdir' in the input file(s), but literal
962         `${datarootdir}' in the output file, and we haven't warned yet,
963         then warn as well: the user may have (erroneously) used
964         `AC_SUBST([mydatadir], [$datadir/my])' instead of the correct
965         `AC_SUBST([mydatadir], ['${datadir}/my'])'.
966         * tests/torture.at (datarootdir workaround): Extend this test.
967         * NEWS: Update.
969 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
970         and Paul Eggert  <eggert@cs.ucla.edu>
972         * doc/autoconf.texi (autoheader Invocation): The first argument to
973         `AC_DEFINE_UNQUOTED' need not be a literal.  Mention the
974         alternatives and clear up the language a bit.
976 2006-05-27  Paul Eggert  <eggert@cs.ucla.edu>
978         * NEWS: Reword notice for AC_TRY_COMMAND, AC_TRY_EVAL,
979         ac_config_guess, ac_config_sub, ac_configure.
980         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
981         Fix typo that prevented an unnecessary space from being removed.
982         Problems reported by Ralf Wildenhues in:
983         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00143.html
985 2006-05-26  Paul Eggert  <eggert@cs.ucla.edu>
987         * doc/autoconf.texi (Particular Programs, Limitations of Usual Tools):
988         Use better wording to talk about AC_PROG_MKDIR_P's thread-safety.
989         Don't use the term "thread-safe" to talk about mkdir race
990         conditions, since the problem is more a process than a thread
991         issue.  Problem reported by Stepan Kasal in:
992         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00088.html
993         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Use code that mimics
994         the test for 'install' more closely.  Look at MKDIR_P first.
995         Look in the PATH, and at /opt/sfw/bin.
996         Look for a 'gmkdir' program as well (Solaris 10 /opt/sfw/bin/gmkdir).
997         Don't bother to try mkdir -p, since we already check mkdir --version;
998         just look at the version number.  (There's no easy way to check
999         for race-free implementations.)
1000         * tests/tools.at (autoconf: subdirectories): Adjust to above
1001         changes, since MKDIR_P now might end in "/mkdir -p".
1003         * doc/autoconf.texi (autoheader Invocation): Mention that the
1004         first arg of AC_DEFINE_UNQUOTED must be a literal.
1005         Problem reported by Ben Pfaff in
1006         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00090.html>.
1008         * NEWS: Mention that AC_TRY_COMMAND and AC_TRY_EVAL may be removed.
1009         * doc/autoconf.texi (Special Chars in Variables): New section.
1010         (Preset Output Variables): Warn about special chars in CPPFLAGS.
1011         (Installation Directory Variables): Quote $(datadir) better.
1012         (Limitations of Builtins): Describe some of eval's trickiness.
1014         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Simplify quoting.
1015         * lib/autoconf/fortram.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
1016         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put leading space
1017         in front of every arg, not just trailing args.  Quote apostrophes.
1018         (_AC_EVAL_ECHO): New macro.
1019         (_AC_EVAL, AC_EVAL_STDERR): Use it.  Quote arg of eval.
1020         (AC_TRY_EVAL, AC_TRY_COMMAND): Mention that these macros might get
1021         removed.
1022         (_AC_LINK_IFELSE): Use proper rule for shell continuation lines,
1023         exposed by quoting of eval argument.  Put the command on line line
1024         so it logs better.
1025         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use eval more safely.
1026         (_AC_PATH_X, AC_PATH_X): Quote more safely.
1027         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use eval more safely.
1028         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Don't use eval.
1029         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Minor style change.
1030         Handle special chars in prefix, ac_srcdir, ac_aux_dir.
1031         Use eval more safely.
1032         (_AC_OUTPUT_CONFIG_STATUS): Adjust to above changes.
1033         * lib/m4sugar/m4sh.m4 (AS_VAR_GET): Note that this API needs
1034         to be replaced.
1035         * tests/base.at (AC_TRY_COMMAND): Use proper rule for shell continuation
1036         lines, exposed by quoting of eval argument.
1038 2006-05-26  Stepan Kasal  <kasal@ucw.cz>
1039         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1041         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Drop the
1042         initialization of `ac_cv_exeext', do not override it if it was
1043         already set, unless it was set to `no', for compatibility with
1044         Autoconf-2.13, and comment this.
1045         Do not export `ac_cv_exeext', Libtool hasn't needed this for years.
1046         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise, do not export it.
1047         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_CROSS): Typos.
1048         * doc/autoconf.texi (Compilers and Preprocessors) <EXEEXT>:
1049         Document that this test may be overridden by setting
1050         `ac_cv_exeext'.
1052 2006-05-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1054         Revert these two patches:
1056         2006-04-06  Eric Blake  <ebb9@byu.net>
1057         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
1058         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
1059         2006-04-01.
1061         2006-04-01  Stepan Kasal  <kasal@ucw.cz>
1062         Clean up _AC_COMPILER_EXEEXT* macros.
1063         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
1064           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
1065           ac_file to the name of the default output file and call
1066           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
1067           initial `rm' of the candidate files...
1068         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
1069           the same list in subsequent `rm' calls, and for the temporary
1070           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
1071           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
1072         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
1073         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
1074           no longer needed) by libtool.  Make it a cache check.
1075         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
1076           copied here by mistake.
1077         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
1078           _AC_COMPILER_EXEEXT.
1079         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
1080           _AC_COMPILER_OBJEXT directly.
1081         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1083 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1085         * doc/autoconf.texi (Limitations of Usual Tools) < sed (`t')>:
1086         Fix description of how the buggy `sed' works.
1088 2006-05-25  Noah Misch  <noah@cs.caltech.edu>
1090         Sync from Automake:
1092         * lib/Autom4te/XFile.pm (lock): Allow EOPNOTSUPP, besides
1093         ENOLCK.  Only mention `make -j' when applicable.  Only raise
1094         fatal errors when `make -j' is involved.  Improve error message.
1096 2006-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1098         * doc/autoconf.texi (Here-Documents): We now know more about
1099         the variable expansion in here documents bug.
1100         Thanks to Tim Rice and Stepan Kasal.
1102         * doc/autoconf.texi (Making testsuite Scripts): Add an example
1103         how to use TESTSUITEFLAGS.  Suggested by Eric Blake.
1105 2006-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1107         * tests/autotest.at (Multiline command from M4 expansion):
1108         No failure to be expected if the shell quotes newlines in
1109         commands in the `set -x' output.  Report by Tim Rice.
1110         * THANKS: Update.
1112 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1114         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Don't use shell
1115         expansion in the here-documents used by config.status, as that
1116         runs afoul of the Korn shell version M-12/28/93d bug described in
1117         the Autoconf manual, and this in turn causes a Coreutils 5.95 build to
1118         fail as described by Tim Rice and diagnosed by Ralf Wildenhues in
1119         <http://lists.gnu.org/archive/html/bug-autoconf/2006-05/msg00082.html>.
1121 2006-05-23  Jim Meyering  <jim@meyering.net>
1123         * lib/autoconf/functions.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1124         Fix typo introduced with 2006-04-02 change.  It reversed the sense
1125         of the test.
1127 2006-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1129         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Simplify ac_dA and
1130         ac_dB slightly, to save bytes in the script.
1131         Max out at 50 lines, rather than 96; this is more likely
1132         (though not guaranteed) to avoid obscure 'sed' failures.
1134 2006-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1136         * lib/autotest/general.m4 (AT_INIT): UnixWare `tr' may interpret
1137         `tr -d -' as bad option argument.  Work around this by deleting
1138         an unrelated character.
1139         Report by Tim Rice <tim@multitalents.net>.
1141 2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>,
1142             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
1143             Stepan Kasal  <kasal@ucw.cz>
1145         * doc/autoconf.texi (Particular Programs): Do not promise that
1146         we always prefer the GNU version of the program, and that we
1147         search according to PATH; both rules can have exceptions.
1148         Update description of AC_PROG_GREP, AC_PROG_EGREP, AC_PROG_FGREP,
1149         AC_PROG_SED.  Move descriptions of limitations
1150         to the Limitations of Usual Tools section.
1151         (Limitations of Usual Tools) <sed>: Mention script length
1152         limitations with Solaris /usr/ucb/sed.
1153         <grep>: Fix wording for empty alternative.  Mention that -c and
1154         -l should not be combined, and that -E and -F should not be
1155         combined.
1157 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1158         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1160         * lib/autoconf/programs.m4 (AC_PROG_SED): Catch script length
1161         limits in Solaris 8 /usr/ucb/sed by testing a long script.
1163 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
1165         * doc/autoconf.texi (Defining Symbols): Literal parameter of
1166         AC_DEFINE is now passed to m4_pattern_allow.
1167         * NEWS: Mention that; likewise for AC_SUBST.
1168         * lib/autoconf/general.m4 (AC_DEFINE_TRACE_LITERAL): Pass
1169         the parameter to m4_pattern_allow.
1170         * tests/tools.at: Add a check for that.
1172 2006-05-22  Stepan Kasal  <kasal@ucw.cz>
1174         * lib/autoconf/status.m4: Fix typos.
1176 2006-05-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1178         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
1179         only the files that this macro generates.
1181 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1183         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: For
1184         the HP-UX sed limitation of 99 commands, labels do not count.
1185         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): Mention that
1186         in the comment.
1187         (_AC_OUTPUT_HEADER): Revert the change from 2006-05-19.
1189 2006-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1191         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT):
1192         Import the following fix from coreutils:
1194         2006-01-13  Jim Meyering  <jim@meyering.net>
1196         Invoke AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
1197         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need
1198         not double-quote uses of that variable, to accommodate the rare
1199         case in which getmntent is available in none of the libraries
1200         checked.  This happens at least on FreeBSD 5.0.
1202 2006-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1204         * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Bring back
1205         ac_config_guess, ac_config_sub, and ac_configure, since evidently
1206         some other programs unwisely rely on these undocumented vars.
1207         But put in warning comments about them.
1208         Problem reported by Ralf Wildenhues in
1209         <http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00068.html>.
1210         * NEWS: Document that these variables are intended to go away.
1212 2006-05-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1214         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): Require AC_PROG_CXX,
1215         and set the language to C++ (analogous to the equivalent Fortran
1216         tests).
1218         * lib/autoconf/c.m4 (AC_PROG_CXX_C_O): New macro.
1219         * doc/autoconf.texi (C++ Compiler): Document it.
1220         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Adjust comment.
1221         * NEWS: Update.
1223 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1225         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Fix off-by-one bug
1226         that caused config.status to generate 100-command sed scripts; the
1227         portable limit is 99.
1229 2006-05-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1231         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Name temporary
1232         variable `ac_d' instead of `d' to avoid infringing namespace.
1233         Report by Ralf Menzel.
1235 2006-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1237         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Don't prepend
1238         $ac_top_build_prefix to $MKDIR_P if it's just 'mkdir -p'.
1239         * tests/tools.at (autoconf: subdirectories): New test, taken from
1240         the corresponding problem report by Ralf Wildenhues in:
1241         http://lists.gnu.org/archive/html/autoconf-patches/2006-05/msg00053.html
1243         * lib/autoconf/functions.m4 (AC_REPLACE_FNMATCH, AC_FUNC_FNMATCH_GNU):
1244         Quote some uses of shell variables if they might suffer unexpected
1245         globbing.  This doesn't fix all instances of quoting problems that
1246         I found, just the easy ones that look safe.
1247         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR, _AC_INIT_HELP):
1248         (AC_CONFIG_AUX_DIR, AC_CONFIG_AUX_DIR_DEFAULT, AC_CONFIG_AUX_DIRS):
1249         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
1250         (AC_CACHE_LOAD, AC_CACHE_SAVE): Likewise.
1251         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT): Likewise.
1252         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
1253         * lib/autoconf/status.m4 (_AC_OUTPUT_LINK, _AC_OUTPUT_SUBDIRS):
1254         Likewise.
1255         * lib/autotest/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
1256         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Likewise.
1258 2006-05-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1260         * bin/autoreconf.in ($help): Reword according to the manual.
1261         Suggested by Olly Betts.
1263 2006-05-17  Olly Betts  <olly@survex.com>  (tiny change)
1264         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1266         * bin/autoreconf.in: Pass the directory argument to
1267         `require_configure_ac'.  Fix comment.
1268         * tests/torture.at (Configuring subdirectories): Expose this.
1269         Reported by Olly Betts.
1271 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1273         * lib/Automake/Configure_ac.pm, lib/Automake/Channels.pm,
1274         lib/Automake/FileUtils.pm, lib/Automake/Struct.pm: Sync from
1275         Automake as follows:
1277         * lib/Autom4te/Configure_ac.pm (find_configure_ac): Use
1278         `$configure_in' instead of `configure.in', to preserve
1279         directory component.
1281 2006-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1283         * config/config.guess, config/config.sub, config/texinfo.tex,
1284         doc/make-stds.texi, doc/standards.texi: Sync from upstream.
1286 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1288         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Fix overly-picky
1289         test for C99 conformance; (bool) 0.5 is an integer constant
1290         expression, but (bool) -0.5 is not.  Problem reported by Fedor
1291         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
1293 2006-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1295         * doc/autoconf.texi (Particular Programs): AC_PROG_MKDIR_P now
1296         sets MKDIR_P, not mkdir_p, to avoid collisions with Automake.
1297         Warn about obsolete install-sh files.  Remove stray sentence
1298         fragment and fix cross reference.
1299         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Don't insist on
1300         install -d; this undoes the 2006-05-10 change.
1301         (MKDIR_P): Mark with AN_MAKEVAR.
1302         (AC_PROG_MKDIR_P): Fall back on $ac_install_sh, not $INSTALL, so
1303         that we don't require $INSTALL to be thread-safe.  Move comments
1304         out of generated code.  Require AC_CONFIG_AUX_DIR_DEFAULT instead
1305         of AC_PROG_INSTALL.  Output a message saying that we're checking
1306         mkdir -p.  Set MKDIR_P rather than mkdir_p.  Do special magic for
1307         MKDIR_P instead of AC_SUBST.
1308         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_CONFIG_STATUS):
1309         Special magic for MKDIR_P, too.
1310         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Remove comment that defeated
1311         a dnl.
1312         * tests/local.at (AT_CHECK_ENV): mkdir_p -> MKDIR_P.
1314 2006-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1316         Sync from Automake, as follows:
1318         2006-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1319         * config/install-sh: Initialize IFS, so field splitting isn't
1320         turned off later.
1321         * config/mkinstalldirs: Likewise.
1322         * config/missing: Remove superfluous quotes.  Replace all uses of
1323         `[' by `test', for consistency, and for..
1324         * config/missing (sed_minuso, sed_output): New variables.
1325         (autom4te, help2man, makeinfo): Use them.  Unifies detection of
1326         `-o FILE', `--output FILE', `--output=FILE', stricter regex.
1327         Fixes `missing' to detect `--output' for help2man.  Fixes
1328         PR automake/483.  Report by Dennis J. Linse.
1329         (autom4te): Document in `missing --help'.
1331 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1333         * NEWS: New macro AC_PROG_MKDIR_P.  AS_MKDIR_P is now more robust.
1334         * config/install-sh: Don't use 'path' to talk about file names,
1335         as per GNU coding standards.  Close a race condition reported by Ralf
1336         Wildenhues and Stepan Kasal.  There is still a race condition
1337         on hosts that predate Posix 1003.1-1992, but we can't help this.
1338         Don't mishandle weird characters like space on pre-Posix hosts.
1339         Invoke mkdir at most once per dir arg on pre-Posix hosts.
1340         * doc/autoconf.texi (Programming in M4sh): Cross-reference to
1341         AC_PROG_MKDIR_P from AS_MKDIR_P.
1342         (Limitations of Usual Tools): Cross-reference to AC_PROG_MKDIR_P
1343         from mkdir.  Mention that Autoconf 2.60 install-sh is safe but
1344         earlier editions are not (including Automake 1.8.3).
1345         Do not suggest mkinstalldirs for thread-safety.
1346         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Insist on an 'install'
1347         that understands -d, so that AC_PROG_MKDIR_P can fall back on $INSTALL.
1348         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Make it more robust in the
1349         presence of special characters and race conditions.
1350         * tests/local.at (AT_CHECK_ENV): Add mkdir_p to the list of variables
1351         in Autoconf's name space.
1353 2006-05-10  Bruno Haible  <bruno@clisp.org>
1354         and Paul Eggert  <eggert@cs.ucla.edu>
1356         * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): New macro, taken
1357         from Automake with minor changes.
1358         * doc/autoconf.texi (Particular Programs): Document AC_PROG_MKDIR_P.
1360 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1362         * config/install-sh: Update to Automake CVS version, as follows:
1363         2006-04-25  Stepan Kasal  <kasal@ucw.cz>
1364         * lib/install-sh: Simplify the expr implementation of dirname.
1365         2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1366         * lib/install-sh: Handle --, and diagnose unknown options.
1368 2006-05-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1370         * tests/Makefile.am (AUTOTEST): Use `$(MY_AUTOM4TE)' instead of
1371         `./autom4te' to create `./testsuite', since the `all' target
1372         will ensure its presence, but `installcheck' should not create
1373         the uninstalled wrappers.
1375         * tests/torture.at (Unusual Automake input files): Skip if we
1376         detect automake < 1.8.
1378 2006-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1380         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
1381         is set to `no', then that overrides and sets ac_cv_prog_cc_c89
1382         and ac_cv_prog_cc_c99 to `no', for backward compatibility.
1383         * NEWS: Update.
1385 2006-05-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1387         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to
1388         munge (multiple) white space and other oddities.
1389         * tests/torture.at (AT_CHECK_AC_ARG_VAR): Make sure to M4-escape
1390         single quotes in variable assignment.
1391         (AC_ARG_VAR, configure invocation): Adjust tests to expose this
1392         and similar failures by adding multiple spaces, tabs, and other
1393         special characters.
1394         Report and different test suggested by Francesco Romani
1395         <fromani@gmail.com> and Andrew Church <achurch@achurch.org>.
1397         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): When we escape
1398         single quotes, we only need to search for single quotes; this
1399         both simplifies the search pattern, and makes us less
1400         susceptible to `echo' variations for arguments not containing
1401         single quotes.
1402         (_AC_ARG_VAR_VALIDATE): Likewise.
1404 2006-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1406         * doc/autoconf.texi (Special Shell Variables) <IFS>: Document
1407         `$*' and IFS concatenation issue with traditional shells and
1408         bash-2.04.  Report by Seanster@Seanster.com.
1410 2006-05-03  Bruno Haible  <bruno@clisp.org>
1412         * doc/autoconf.texi (Limitations of Usual Tools): Identify more
1413         precisely which Mac OS X versions have the od problem.
1415 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1417         * doc/autoconf.texi: Use @option systematically.
1419 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1420         and Bruno Haible  <bruno@clisp.org>
1422         * doc/autoconf.texi (Limitations of Usual Tools): Add a paragraph
1423         about 'od'.
1424         (Integer Overflow): Mention the special case of integer division
1425         overflow.
1427 2006-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1429         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for
1430         traditional shells like the Solaris one that do not use the
1431         first IFS character for assembling `$*'.
1432         Prompted by a related report from autoconf_bug@nro.ca.
1434 2006-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1435         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437         * doc/autoconf.texi (Limitations of Builtins, Limitations of Make):
1438         Mention more problems with the -e option.
1440 2006-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1442         * NEWS: Typo.
1443         * doc/autoconf.texi (Systemology): Mention the Heirloom Project.
1445         * doc/autoconf.texi (Introduction, Pointers): Use `@/' liberally
1446         in URLs to improve DVI formatted output (requires texinfo 4.6).
1447         (System Services, Systemology, Shellology): Likewise.
1448         (Limitations of Usual Tools): Rewrite Mac OS X example for nicer
1449         output.
1451         * doc/autoconf.texi (Fortran Compiler): Do not use `@ovar' in
1452         continuous text.
1453         (Runtime): Fix macro argument names to match description:
1454         `action-if-found' -> `action-if-true' and similarly.
1455         (Obsolete Macros): Likewise.
1456         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE): Likewise.
1457         (AC_COMPILE_IFELSE, AC_TRY_COMPILE, _AC_LINK_IFELSE)
1458         (AC_LINK_IFELSE, AC_TRY_LINK, AC_COMPILE_CHECK): Likewise.
1460 2006-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1462         * doc/autoconf.texi (Limitations of Make): Clean up markup.
1464         * ChangeLog: Typo.
1465         * doc/autoconf.texi (Portable Shell): Allow wrapped URLs, for
1466         DVI output.
1468 2006-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1470         * doc/autoconf.texi (Limitations of Builtins): Document FreeBSD
1471         /bin/sh set unsorted output.
1472         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Adjust.
1473         * tests/local.at: Likewise.
1475 2006-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1477         * doc/autoconf.texi (Portable C and C++, Varieties of Unportability):
1478         (Integer Overflow, Null Pointers, Buffer Overruns):
1479         (Floating Point Portability, Exiting Portably): New sections.
1480         (Writing Test Programs): Fix some langauge.  Recommend exiting
1481         with status 1, not merely nonzero.  Clarify exit declaration.
1482         (Run Time): Move C exit status stuff to new Exiting Portably section.
1483         (Systemology): Mention Posix and levenez.  Update v7 reference.
1484         (Portable Shell): Mention the Posix shell.
1486 2006-04-25  Stepan Kasal  <kasal@ucw.cz>
1488         * bin/autoconf.as (me): Replace by as_me.
1490 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1492         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Don't use AS_ERROR,
1493         since as_me isn't set yet.
1495 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1497         Prepare for deprecation of AS_BASENAME and AS_DIRNAME, and fix
1498         a few minor bugs in this area.
1500         * doc/autoconf.texi (Programming in M4sh): Comment out the
1501         documentation of AS_BASENAME, for now.
1502         (Shell Substitutions): Do not use AS_DIRNAME in an example.
1503         (Limitations of Builtins) <basename>: Do not refer to
1504         AS_BASENAME.
1505         * bin/autoconf.as (me): Don't use AS_BASENAME.
1506         (dir): Remove the unused variable.
1507         * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Renamed from
1508         AS_DETECT_REQUIRED.  All uses changed.
1509         (_AS_DETECT_SUGGESTED): Renamed from AS_DETECT_SUGGESTED.
1510         All uses changed.
1511         (_AS_DETECT_BETTER_SHELL): Put ;; at the end of a case.
1512         (AS_BASENAME): Use "basename --" to protect against leading "-".
1513         (_AS_BASENAME_EXPR): Renamed from AS_BASENAME_EXPR.  All uses changed.
1514         (_AS_BASENAME_SED): Renamed from AS_BASENAME_SED.  All uses changed.
1515         (_AS_BASENAME_PREPARE): Reject implementations that cannot handle "--".
1516         (_AS_DIRNAME_PREPARE): Likewise.
1517         (_AS_DIRNAME_EXPR): Renamed from AS_DIRNAME_EXPR.  All uses changed.
1518         (_AS_DIRNAME_SED): Renamed from AS_DIRNAME_SED.  All uses changed.
1519         (AS_DIRNAME): Use "dirname --".
1521 2006-04-23  Paul Eggert  <eggert@cs.ucla.edu>
1523         * doc/autoconf.texi (Runtime): Renamed from "Run Time".  All uses
1524         of "run time" and "run-time" changed to "runtime", for consistency.
1525         * lib/autoconf/fortran.m4: Likewise (in comment).
1526         * lib/autoconf/functions.m4: Likewise.
1527         * lib/autoconf/general.m4: Likewise.
1528         * lib/autoconf/headers.m4: Likewise.
1530         * doc/autoconf.texi (Run Time): Document the exit status situation
1531         with more accuracy and detail.
1533 2006-04-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1535         * doc/autoconf.texi (Introduction): The GNU Autoconf Macro
1536         Archive is not officially `GNU' any more.  Update URL.
1537         (Defining Directories): Likewise
1538         * lib/autoconf/c.m4 (AC_C_RESTRICT): Update URL.
1540 2006-04-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1542         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Remove the leading
1543         newline from the `trap' code to finish `config.log'; the NetBSD
1544         /bin/sh resets the exit status after an empty command, as
1545         documented in doc/autoconf.texi.
1546         Reported by Dalibor Topic <robilad@kaffe.org>.
1548 2006-04-19  Paul Eggert  <eggert@cs.ucla.edu>
1550         * doc/autoconf.texi (C Compiler): Clarify AC_C_TYPEOF.
1551         Suggested by Bruno Haible.
1553 2006-04-18  Paul Eggert  <eggert@cs.ucla.edu>
1555         * configure.ac (ac_cv_sh_n_works): Don't try to test for it, since
1556         some shells (e.g., Solaris 8 /bin/sh) implement it verrrry slowly.
1557         Instead, just list the shells that we know work.
1558         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Remove 2nd arg.  All uses
1559         changed.  Be more cautious about the _cv_ variable.
1560         * tests/tools.at (Syntax of the shell scripts): Check the
1561         _cv_ variable once, at first, to avoid an internal autoconf error
1562         when sh -n does not work.
1564 2006-04-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1566         * lib/Autom4te/FileUtils.pm: Sync from Automake.
1568 2006-04-16  Paul Eggert  <eggert@cs.ucla.edu>
1570         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Don't
1571         use ">&-" since we're only 99.999% sure that this is portable,
1572         and since the MinGW bug is fixed in a different way.
1573         * lib/autotest/general.m4 (AT_INIT): Likewise.
1575 2006-04-16  Stepan Kasal  <kasal@ucw.cz>
1577         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle --recheck
1578         before opening config.log, to avoid hitting a bug on MinGW.
1580 2006-04-14  Paul Eggert  <eggert@cs.ucla.edu>
1582         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Close
1583         AS_MESSAGE_LOG_FD before reopening it onto the log file.
1584         This works around a MinGW bug reported by Eric Paire.
1585         Make sure that all writes to the log file append to it,
1586         rather than possibly losing data.
1587         * lib/autotest/general.m4 (AT_INIT): Likewise.
1589 2006-04-14  Stepan Kasal  <kasal@ucw.cz>
1591         * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
1592         description.
1594 2006-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1596         * NEWS: Update.
1598         * configure.ac (AC_INIT): Bump to 2.59d.
1600 2006-04-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1602         Version 2.59c.
1604         * Makefile.maint (news-date-check): Do not require a leading `*'
1605         before the release date in NEWS.
1607 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
1608         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1610         * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): If the templates for
1611         the instantiated file do not contain the string 'datarootdir'
1612         but contain @datadir@, @docdir@, @infodir@, @localedir@, or
1613         @mandir@, replace the reference '${datarootdir}' by the value.
1614         * tests/torture.at (datarootdir workaround): New test.
1615         * NEWS: Advertise this temporary fixup.
1616         Based on a patch by Bruno Haible, reported and analyzed by
1617         Paul Eggert and Noah Misch.
1619 2006-04-12  Eric Blake  <ebb9@byu.net>
1621         * tests/autotest.at (Debugging a failed test): Fix comment.
1623 2006-04-12  Stepan Kasal  <kasal@ucw.cz>
1625         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Simplify the summary of
1626         all the changes since 2006-04-07.
1628 2006-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1630         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
1631         succeeded, but `ln -s file dir' failed, take care to remove the
1632         leftover target before the next test, to prevent its spurious
1633         failure; also make sure `ln file dir' works before selecting it.
1634         Thanks to Keith Marshall for pointing this out.
1635         * THANKS: Update.
1637         * lib/autotest/general.m4 (AT_INIT): Store quoted variable
1638         assignments in `at_debug_args', so that we put them correctly
1639         in the `run' script.
1640         * tests/autotest.at (Debugging a failed test): Unmark XFAIL.
1641         Reported by Eric Blake.
1643 2006-04-11  Eric Blake  <ebb9@byu.net>
1645         * tests/autotest.at (AT_CHECK_AT): Add new argument, to allow
1646         top-level tests after micro-suite has been run.   Used in...
1647         (Debugging a successful test, Debugging script and environment),
1648         (Debugging a failed test): ...these new tests.  The first of these
1649         is fixed by...
1650         * lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): New
1651         macro, split out from...
1652         (AT_INIT): ...here, so that using -d also generates a run script.
1653         Document that -d inhibits top-level logging.
1654         * doc/autoconf.texi (testsuite Invocation): Document that -d only
1655         inhibits top-level logging; debug scripts are created.
1657         * lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
1658         check.
1659         * tests/autotest.at (Empty test, Empty check): New test to check it.
1661         * lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
1662         from gcc.
1664 2006-04-10  Stepan Kasal  <kasal@ucw.cz>
1666         * tests/mktests.sh: Use "trap '' 0", not "trap 0".  Do not touch
1667         the files if a problem appears.  Make the empty *.at files
1668         read-only, too.  Proposed by Ralf Wildenhues.
1670 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1672         * config/Makefile.am: Add comment to force updated Makefile.in.
1674         * lib/freeze.mk: Fix typo in comment.  Unlike the last, white
1675         space only patch to this file, this patch causes the Makefile.in
1676         files that include freeze.mk to be updated, and thus have a
1677         newer time stamp again, which in turn makes a pristine CVS
1678         checkout have correct time stamps.
1680         * Makefile.maint (cvs-sv): New macro, to be used..
1681         (config.guess-url_prefix, config.sub-url_prefix)
1682         (texinfo.tex-url_prefix, standards.texi-url_prefix): ..here;
1683         point to CVS text checkout of Gnulib files.
1684         (copyright-check): Bump current year.
1685         (announcement): Do not hard-wire `./announce-gen'.
1686         (cvs-update): Propagate failures of `cvs' and `move-if-change'
1687         correctly.
1688         * Makefile.cfg (executable-update): Use `chmod a+x' instead of
1689         `chmod +x'.
1690         (wget_files): Update config.guess, config.sub, texinfo.tex by
1691         `wget-update', now that their URLs work again.
1693 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1695         * doc/autoconf.texi (Particular Types): Don't use AC_CHECK_TYPE.
1696         Problem noted by Paul D. Smith.
1698 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1700         * doc/autoconf.texi: Remove unused words from word list.
1701         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
1702         .x-sc_trailing_space: New files.
1704         * doc/standards.texi: Sync from gnulib.
1706         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
1707         `LIBOBJDIR' as experimental.
1709         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
1710         with a target directory; it's internally implemented as `cp'
1711         anyway, but since Autoconf advertises the possibility to use
1712         a target directory when LN_S is `ln -s', we need to find out.
1713         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
1714         analyzed by Keith Marshall <keith.marshall@total.com>.
1716         * THANKS: Update.
1718 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1720         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
1721         confdefs.h as-is.  In general, if it has backslash-newline or the
1722         like, then it doesn't work either to sort or to remove empty
1723         lines.
1725 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
1727         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
1729 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
1731         * lib/autom4te.in (Automake-preselections): Preselect
1732         _AM_SUBST_NOTMAKE.
1734 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1736         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
1737         apostrophe within a single-quoted string, as this is the usual
1738         tradition and is easier to read than '"'"'.  Don't rely on the
1739         shell treating "$/" like '$/'.  Use a more-consistent indenting
1740         style for the trap.
1742 2006-04-09  Eric Blake  <ebb9@byu.net>
1744         * tests/autotest.at (Backquote command substitution),
1745         (Multiline backquote command substitution): Remove mistaken
1746         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
1747         applied...
1748         (Parenthetical command substitution, Multiline parenthetical
1749         command substitution): here.
1751 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1753         Import macros from gnulib (often changing their name).
1755         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
1756         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
1757         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
1758         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
1759         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
1760         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
1761         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
1762         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
1763         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
1764         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
1765         The manual mentions Gnulib more prominently.
1766         * doc/autoconf.texi (Gnulib): New node.
1767         (Pointers): Add Gnulib URL.
1768         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
1769         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
1770         Gnulib section.
1771         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
1772         suggest a #define rather than a typedef for _Bool, and mention
1773         Gnulib rather than trying to substitute stdbool code.
1774         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
1775         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
1776         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
1777         AC_STRUCT_DIRENT_D_TYPE.
1778         (Particular Types): Mention stdint.h and inttypes.h as standard
1779         headers too.
1780         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
1781         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
1782         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
1783         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
1784         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
1785         (C Compiler): Move AC_C_LONG_DOUBLE to ...
1786         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
1787         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
1788         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
1789         (Coding Style).  Don't mention m4_expand_once.
1790         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
1791         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
1792         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
1793         (AC_CHECK_FUNCS): Use it.
1794         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
1795         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
1796         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
1797         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
1798         (AC_HEADER_ASSERT): New macro.
1799         (AC_HEADER_STDBOOL): Don't assume "#error" works.
1800         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
1801         Catch a bug in an HP-UX C compiler.
1802         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
1803         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
1804         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
1805         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
1806         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
1807         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
1808         New macros.
1810         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
1811         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
1813 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
1815         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
1816         of the warning introduced by the 2001-08-28 change.
1818 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
1819             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1821         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
1822         variables shall be overriden by the cache.
1823         * tests/torture.at (AC_ARG_VAR): Test also with a first value
1824         that contains braces.
1826 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
1828         Revert the patch from 2006-04-01 and only improve
1829         _AS_DETECT_BETTER_SHELL:
1831         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
1832         skip nonexistent directories.
1833         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
1834         only shell candidates which exist.
1835         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
1836         * lib/autotest/general.m4 (AT_INIT): No need to give three
1837         parameters to _AS_PATH_WALK.
1839 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
1840             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1842         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
1843         distinguish m4sugar macros.
1844         * tests/tools.at (autoupdating with aclocal and m4_include):
1845         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
1846         test case by Noah Misch <noah@cs.caltech.edu>.
1848 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
1850         Revert my change from 2006-03-17, in other words:
1851         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
1852           and DUALCASE=1.
1853         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
1854         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
1855           it is set.
1857 2006-04-07  Eric Blake  <ebb9@byu.net>
1859         * doc/autoconf.texi (Programming in M4sh): Document that
1860         AS_MKDIR_P exits the script on failure.
1861         * lib/autotest/general.m4: Remove redundant AS_ERROR.
1863 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1865         * config/elisp-comp, config/install-sh, config/mdate-sh,
1866         config/missing, config/mkinstalldirs: Sync from Automake.
1868         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
1869         from Automake.
1871         * doc/make-stds.texi: Sync from gnulib.
1873 2006-04-06  Eric Blake  <ebb9@byu.net>
1875         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
1876         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
1877         2006-04-01.
1879 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
1880             Eric Blake  <ebb9@byu.net>,
1881             Paul Eggert  <eggert@cs.ucla.edu>,
1882             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1884         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
1885         whether `set' quotes correctly: redirect stderr of the tested
1886         `set', and use a subshell, for Ultrix; use `sed' instead of
1887         `grep' for zsh `set' which may write binary output; match only
1888         at the beginning of a line, to avoid false positives.
1889         In order to avoid false positives by unrelated variables with
1890         multiline content, put the dump algorithm in a subshell and
1891         unset all variables containing newlines (except some which are
1892         special to the shell).  Warn about cache variables that are
1893         unset.
1895 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1897         * config/config.guess, config/config.sub, config/texinfo.tex:
1898         Sync from upstream.
1900         * tests/mktests.sh: Reword comments.
1902         * tests/mktests.sh: Only skip internal macros starting with
1903         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
1904         Update exclusion lists for the test suite to this end:
1905         (AC_ARG_VAR): Do test this now.
1906         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
1907         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
1908         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
1909         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
1911         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
1912         shell issue with double-quoted command substitutions of native
1913         commands.
1914         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
1915         Marshall.
1917         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
1918         no file matches the glob, discard the warning, set `nullglob'.
1919         (syntax-check): Likewise.
1920         (sc_cast_of_x_alloc_return_value): Likewise.
1921         (sc_cast_of_alloca_return_value, sc_error_exit_success)
1922         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
1923         (m4-check): Likewise.
1924         (sc_system_h_headers): Do not print rule on execution.
1925         (sc_tight_scope): Do not fail for non-existing `src' directory.
1926         (sc_changelog): Skip the Copyright footer.
1927         * lib/autoconf/lang.m4: Remove trailing space.
1929         * lib/autoconf/status.m4: More replacements to
1930         <tab><space> where this makes sense.
1932 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
1934         * tests/Makefile.am (maintainer-check-posix):
1935           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
1937         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
1938           ac_config_<foo>s again, sometimes normalized, sometimes not.
1939         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
1940         (AC_CONFIG_COMMANDS): Do not do so here.
1941         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
1942           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
1943           2005-07-25 rewrite.  Noticed by Noah Misch.
1945         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
1946           _AC_PRESERVE_HELP_ORDER, ...
1947         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
1949         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
1950           inside m4_expand_once; it is redundant.
1952         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
1953           for --help from Cygnus `configure.'
1955 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1957         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
1958         on a patch proposed by Ralf Wildenhues.
1960 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1962         * lib/autoconf/status.m4: Replace <space>''<tab> with
1963         <tab><space> where this makes sense.
1965 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
1966             Noah Misch  <noah@cs.caltech.edu>
1968         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
1969         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
1970         * doc/autoconf.texi (Help Formatting): New node.
1971         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
1973 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1975         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
1976         lib/autoconf/specific.m4, lib/autoconf/status.m4,
1977         lib/autoconf/types.m4, lib/autotest/general.m4,
1978         tests/mktests.sh, tests/torture.at: White space cleanup:
1979         remove some SPACE before TAB, or add quoting ('' or @&t@).
1981         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
1983         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
1985 2006-04-05  Eric Blake  <ebb9@byu.net>
1987         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
1988         empty test suite works.
1989         * tests/autotest.at (Empty test suite): Remove xfail.
1991 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
1993         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
1994         TAGS to ac_config_<foo>s.
1995         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
1996         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
1997         normalizing it, consistent it with previous releases.
1998         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
2000 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2002         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
2003         Use simplified args that Eric Blake originally suggested.
2005 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2007         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
2008         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
2009         Use 'comm' rather than N instances of grep; this also fixes a bug
2010         whereby substrings were incorrectly matched, causing us to not
2011         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
2012         (exclude_list): Exclude empty macros.
2013         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
2015         Use awk rather than grep -E or egrep, to avoid
2016         portability problems with regular expressions containing newlines.
2017         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
2018         Switch from grep to awk syntax.
2019         (ac_exclude_script): Renamed from ac_exclude_egrep.
2020         (au_exclude_script): Renamed from au_exclude_egrep.
2022 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
2024         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
2025         a subdirectory subject to Cygnus `configure'.
2026         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
2028         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
2029         report request when we have no AC_PACKAGE_BUGREPORT.
2031 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2033         * THANKS: Update.
2035         * tests/mktests.sh: Update copyright year in the header of the
2036         generated files.
2038         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
2039         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
2040         typedef'ed restricted pointer, to catch a compiler bug on
2041         HP-UX 11.x, and fix warnings so it passes with -Werror.
2042         (_AC_PROG_CC_C99): Likewise.
2043         Reported by Albert Chin <china@thewrittenword.com>.
2044         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
2046 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
2048         * bin/autoscan.in (subdirs): New global.
2049         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
2050         (output): Emit AC_CONFIG_SUBDIRS as needed.
2051         * tests/autoscan.at (autoscan): Remove XFAIL.
2053 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
2055         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
2057 2006-04-03  Eric Blake  <ebb9@byu.net>
2059         * THANKS: Add myself.
2061 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2063         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
2064         to log, point to testsuite output tree.
2066 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
2068         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
2069         * doc/autoconf.texi (Function Portability): Mention that C++
2070         has trouble with 'exit'.
2071         (Guidelines): Test programs shouldn't use 'exit'.
2072         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
2073         Remove; all uses removed.
2074         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
2075         Return from 'main' instead of calling 'exit'.
2076         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
2077         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
2078         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
2079         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
2080         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
2081         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
2082         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
2083         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
2084         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
2085         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
2086         * tests/compile.at: Likewise.
2088 2006-04-02  Pavel Roskin  <proski@gnu.org>
2090         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
2092 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
2094         Clean up _AC_COMPILER_EXEEXT* macros.
2096         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
2097           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
2098           ac_file to the name of the default output file and call
2099           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
2100           initial `rm' of the candidate files...
2101         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
2102           the same list in subsequent `rm' calls, and for the temporary
2103           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
2104           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
2105         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
2106         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
2107           no longer needed) by libtool.  Make it a cache check.
2108         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
2109           copied here by mistake.
2110         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
2111           _AC_COMPILER_EXEEXT.
2112         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
2113           _AC_COMPILER_OBJEXT directly.
2114         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2116 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
2118         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
2119         (AS_DIRNAME): Use it.
2120         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
2122         * tests/*.at: Remove the generated ones.
2124 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
2126         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
2128 2006-04-01  Eric Blake  <ebb9@byu.net>
2130         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
2131         directories, unless optional third argument supplied.
2132         (AS_UNAME): Don't optimize PATH walk.
2134         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
2136 2006-04-01  Eric Blake  <ebb9@byu.net>
2137         and Stepan Kasal  <kasal@ucw.cz>
2139         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
2140         and fix some typos.
2142 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
2144         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
2145         Autoconf version number despite a zero- or one-argument AC_INIT.
2147         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
2148         subordinate tools.
2149         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
2150         * doc/autoconf.texi (autoreconf Invocation): Document it.
2152         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
2153         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
2155 2006-04-01  Eric Blake  <ebb9@byu.net>
2157         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
2158         * lib/autotest/general.m4: Be tolerant of existing directory when
2159           rm failed to remove it.
2161 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2163         * bin/autoupdate.in: Redefine m4_location so that warnings print
2164         the correct lines of the input file by subtracting..
2165         (_au__first_line): ..this new definition.
2167         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
2168         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
2169         Remove stray newline in output.
2170         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
2171         AC_DEFUN this for autoconf, including the obsoletion diagnose.
2172         Fixes autoupdating of code where the replacement output contains
2173         m4sugar macros.
2174         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
2175         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
2176          (au_exclude_list): Add AC_LANG_SAVE.
2177         * tests/tools.at: Several new tests for all of this.
2178         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
2179         hairy details.
2180         The AC_LANG_SAVE issue was reported against Libtool by
2181         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
2182         Kristian Kvilekval <kris@cs.ucsb.edu>.
2184 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
2186         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
2187           switch all of them on and of when necessary.  Fixes the bug when
2188           m4sugar macros (e.g., m4_define) were expanded after the first
2189           automatic update (e.g., after AC_PREREQ or AC_INIT).
2191 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
2193         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
2194         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
2196         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
2197         correctly.  Problem reported by Eric Blake.
2198         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
2199         Ralf Wildenhues.
2201 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2203         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
2204         Tighten up the basename/dirname wording.
2206 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2208         * Makefile.maint (sc_texi_notab): New check: do not use TABs
2209         in texinfo files outside of verbatim environments.
2210         (syntax-check-rules): Update.
2211         * doc/autoconf.texi (Configuration Headers): Conform to it.
2213 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
2215         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
2216           aclocal cannot be given on the command line.
2218 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2220         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
2221         Give an example for AS_DIRNAME instead of referring to Posix..
2222         (File System Conventions): Put discussion of // versus / here, and
2223         modernize it a bit.
2224         (Limitations of Usual Tools): Add basename.  Remove verbiage
2225         after dirname, since it got moved to the above sections.
2226         All this was inspired by a patch proposed earlier by Eric Blake.
2228 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2230         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
2231         `$0' to protect against spaces.
2232         * lib/autotest/general.m4 (AT_INIT): Likewise.
2233         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
2234         `$0', $as_me.
2236 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2238         * bin/autoscan.in: The value of find_configure_ac should be
2239         checked for existence, so we don't barf over a nonexisting
2240         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
2242 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2244         * bin/autoupdate.in: Fix some typos.
2246 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
2248         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
2250         * lib/autoscan/autoscan.list: Refreshed.
2252 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2254         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
2255         and Erlang related variables.
2257         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
2258         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
2259         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
2260         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
2261         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
2262         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
2263         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
2264         (_AC_PROG_OBJC_G): New macros.
2265         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
2266         * doc/autoconf.texi (Objective C Compiler): New node.
2267         (Preset Output Variables): Document OBJCFLAGS.
2268         (Language Choice): Document `Objective C' language.
2269         (Fortran Compiler): Fix typo.
2270         * NEWS: Updated.
2271         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
2273 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
2275         * doc/autoconf.texi (Default Includes): Fix typo
2276           s/AC_HEADERS_STDC/AC_HEADER_STDC/
2277         (Limitations of Usual Tools): s/unwriteable/unwritable/
2278         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
2279           Fix typos in the comments.
2281 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
2283         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
2284           Factor out the warning to...
2285         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
2286         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
2287         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
2289         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
2290           case `ac_delim' when writing the sed script.
2292         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
2293           moved DUALCASE=1 ...
2294         (AS_SHELL_SANITIZE): ... here.
2295         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
2296           that it is set.
2298         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
2299           AC_SUBST.
2300         (_AC_PATH_PROG): Store the result to VARIABLE.
2301         (AC_PATH_PROG): No need to set VARIABLE again.
2303         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
2304           the first one is usual AT_CHECK_MACRO test, the second one checks
2305           that the same works when cross-compiling.
2306         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
2307         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
2309 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2311         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
2312         the directory `/usr/bin/posix' in the shell search, to prefer
2313         the Posix shell not only in subsequent spawns as with `$BIN_SH'
2314         on Tru64.
2316         * doc/autoconf.texi (contents): To fix texi2html output, hide
2317         `@setcontentsaftertitlepage' for HTML.
2318         (Writing Autoconf Macros): Likewise, insert space after `@c'.
2319         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
2320         `@,{c}'.
2322 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
2324         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
2325           sanitizing...
2326         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
2327         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
2328           why IFS is restored so late; thank you, Ralf, for reminding us.
2330 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
2332         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
2333           variables in the examples.
2335 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2337         * doc/autoconf.texi (several sections): Cleaned up documentation for
2338         macros in erlang.m4.
2340 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2342         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
2343         failure condition for `$(cmd)' style command substitutions.
2344         (Parenthetical command substition, Multiline parenthetical
2345         command substition): Use it.
2347         * doc/autoconf.texi (Special Shell Variables): Missing word.
2348         Reported by Keith Marshall <keith.marshall@total.com>.
2350         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
2351         IFS even in case of empty `$PATH'.
2353 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2355         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
2356         `expr' away if there is nothing to do.
2357         < --keywords >: Simplify and robustify argument handling.
2358         Revert erroneous comment from 2005-08-23.  Extend to allow
2359         keyword negation with `!'.
2360         Update help message.  Remove broken code to prevent running
2361         tests multiple times.
2362         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
2363         Update and fix the documentation accordingly.
2364         * tests/autotest.at (Keywords): Renamed to..
2365         (Keywords and ranges): .. this.  Extended to make sure negated
2366         keywords, keywords taken from AT_SETUP arguments, and numeric
2367         test ranges work, and that matching is case-insensitive.
2369 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2371         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
2372         allow to pass unnamed structs even in C++.
2373         (AC_CHECK_SIZEOF):  Likewise.
2374         Also fix quoting error in `AC_MSG_FAILURE' arguments.
2375         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
2376         struct): New tests for unnamed structs, each both native and
2377         cross-compiling.
2379         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
2380         a structure inside a cast, for C++ conformance.
2381         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
2382         Also fix quoting error in `AC_MSG_FAILURE' arguments.
2384         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
2385         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
2386         trying to execute the command `no'.
2388         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
2389         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
2390         expanded outside.
2392         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
2393         example.  Do not emphasize `$%', it is hardly new and special.
2394         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
2396         * doc/autoconf.texi (Limitations of Usual Tools): Document
2397         OpenBSD and traditional `grep' failure to handle multiple
2398         patterns separated by newlines.
2400 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2402         * doc/autoconf.texi (several sections): Add documentation for macros
2403         in erlang.m4.
2405 2006-03-10  Eric Blake  <ebb9@byu.net>
2407         * doc/autoconf.texi (Obsolete Macros): Fix wording of
2408         AC_TRY_LINK_FUNC.
2410 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2412         * doc/autoconf.texi: Use @acronym more consistently for acronyms
2413         like BSD, GPL, LGPL.  Fix minor English typos.
2414         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
2415         Mention that these macros are becoming obsolete.
2416         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
2417         Use more modern terminology for which standard is what.
2418         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
2419         and to ansi2knr.
2420         (AC_PROG_CXX): Likewise.
2421         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
2422         Remove obsolete discussion about how to port to K&R.
2423         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
2424         the obsolescent AC_HEADER_STDC.
2425         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
2426         can't rely on it.
2428 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2430         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
2431         Remove stdin redirection from /dev/null to allow pipe to work.
2433 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2435         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
2436         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
2437         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
2438         Ralf Wildenhues.
2440 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2442         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
2443         HP-UX sed is 99 commands, not 100.
2444         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
2445         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
2446         newline for portability.
2447         * tests/torture.at (Torturing config.status): Also test 100
2448         AC_SUBST_FILE invocations.  Fix test to actually verify the
2449         AC_CONFIG_FILES output.
2450         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
2451         command, label, and read-file `r' limits.  Unify HP-UX spelling.
2453         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
2454         non-suffix rule.
2455         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
2456         non-GNU make.
2457         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
2458         * tests/mktests.sh: Small shell portability fixes.
2460 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2462         * doc/autoconf.texi (Caching Results): Fix the examples to use a
2463         recommended quoting style and discard unwanted output.
2465 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2467         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
2468         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
2469         cases, and to work around Tru64 expr bug.
2471 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2473         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
2474         expr bug that turns the result of a regex match into a number if
2475         possible.
2477 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2479         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
2480         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
2481         in section `Specific Compiler Characteristics'.
2483 2006-03-04  Eric Blake  <ebb9@byu.net>
2485         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
2486         variable warning.
2488 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2490         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
2491         order of variable initialization, so even the Solaris 2.6 shell
2492         can create a config header correctly.  Fixes lots of test suite
2493         failures.
2495 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2497         * doc/autoconf.texi (Text processing Macros): New node to
2498         document the m4sugar macros m4_re_escape, m4_tolower,
2499         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
2501 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2503         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
2504         XrmInitialize (0) -> XrmInitialize ().
2505         Reported by Toshio Kuratomi.
2507 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2509         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
2510         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
2511         * doc/autoconf.texi (Programming in M4sh): Adjusted.
2512         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
2513         both macros are defun'ed so that required macros are evaluated
2514         outside.
2516         * doc/autoconf.texi (Prerequisite Macros): State more precisely
2517         where a required macro will be expanded.
2518         (Coding Style): Another reason not to use `m4_define'.
2520 2006-02-21  Eric Blake  <ebb9@byu.net>
2522         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
2524 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2526         * doc/autoconf.texi (Looping constructs): New node, to
2527         document m4_for, m4_foreach, m4_foreach_w, and mention
2528         obsolete AC_FOREACH.
2529         (Obsolete Macros): Document AC_FOREACH.
2530         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
2531         (m4_for): Fix to never loop (almost) endlessly, work correctly
2532         with arithmetic expressions in arguments, a step of zero or
2533         non-integer multiple of the interval, and avoid integer
2534         overflow.
2535         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
2536         m4_foreach_w.
2538 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
2540         Add basic support for Erlang, both for configuring Erlang/OTP
2541         tools, and Erlang as a conf test language.
2542         * lib/autoconf/erlang.m4: New file.
2543         * lib/autoconf/autoconf.m4: Add erlang.m4.
2544         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
2545         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
2546         * NEWS: Add short description of new macros.
2547         * THANKS: Add Romain Lenglet.
2549 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2551         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
2552         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2554 2006-02-15  Eric Blake  <ebb9@byu.net>
2556         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
2557         warning.
2559 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2561         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
2562         (_AS_CASE): Private helper macro.
2563         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
2564         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
2565         Fix syntax of AS_IF description
2566         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
2567         for the AC_REQUIRE mess.
2568         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
2569         AS_SHELL_SANITIZE.
2571 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
2573         * doc/autoconf.texi: Minor style cleanup.
2574         Be consistent about spaces after commas.
2575         Insert [] where empty args look a bit funny.
2576         Fix some "i.e." and "e.g." usages.
2577         Try to avoid "X/Y" usages.
2578         Don't be pedantic about "ISO C99"; just say C99.
2579         Prefer GNU style for spaces in front of parens.
2580         (Function Portability): Comment about C89 versus C99
2581         signed integer division.
2582         (Particular Headers): Use current gnulib style for dirent
2583         includes.
2585 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
2586         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2588         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
2589         macros without parameters.
2590         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
2591         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
2592         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
2593         `$#' bug.
2594         (autoupdate): Updated to match AU_ALIAS fix.
2596 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2597         and Paul Eggert  <eggert@cs.ucla.edu>
2599         * doc/autoconf.texi (Programming in M4sh): Document
2600         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
2602 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2604         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
2605         (AS_BOURNE_COMPATIBLE): ..this.
2606         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
2608 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2610         * doc/install.texi (Defining Variables): Tighten up the
2611         CONFIG_SHELL wording.
2613 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
2614         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2616         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
2617         of (set -o) rather than testing whether (set -o posix) succeeds,
2618         to work around a bug in the AIX 5.3 shell.  Problem originally
2619         reportd by Howard Chu for libtool.
2621 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
2623         * doc/autoconf.texi (Running the Compiler, Running the Linker):
2624         Changes the macro arguments in summaries to match the
2625         descriptions.
2627 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
2629         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
2630         hint as ``a workaround for a bug.''
2632 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2634         * bin/autoreconf.in: New option `--no-recursive'.
2635         Improve wording for subpackages a bit.
2636         * doc/autoconf.texi (autoreconf Invocation): Updated.
2637         * NEWS: Updated.
2639         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
2640         in environment of `configure', not the command line.
2641         Reported by Howard Chu <hyc@highlandsun.com>.
2643 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2645         * doc/autoconf.texi (Limitations of Builtins): Document the
2646         problem with "trap -".
2648 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
2650         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
2651         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
2652         messages to differentiate Fortran and Fortran 77 tests.
2653         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
2654         AC_LANG_ASSERT, to allow use in mixed-language projects.
2656 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2658         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
2659         FOO" to "defined (FOO)".
2660         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
2661         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
2662         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
2663         * tests/tools.at (ifnames): Likewise.
2665 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2667         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
2668         * lib/Autom4te/General.pm (mktmpdir): Likewise.
2669         (END): Improve error message a bit.
2670         Reported by Bruce Korb <bkorb@gnu.org>.
2672 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2674         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
2675         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
2677 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
2679         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
2680         requires sys/stream.h.  Reported by Oliver Kiddle.
2682 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2683             Stepan Kasal  <kasal@ucw.cz>
2685         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
2686         before the removals of test dirs, use `find' to avoid modification
2687         of symlinked directories.
2689 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2691         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
2692         Don't ignore the macro arguments.
2694 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
2696         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
2697         declaration that works for MSVC.
2699 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2701         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
2702         Add `*.map' and `.inf' for Green Hills compiler.
2703         Reported by Stefan Seefeld <stefan@codesourcery.com>.
2705         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
2706         correctly: pad with spaces after FIRST_PREFIX if necessary,
2707         and compute string lenghts with `m4_qlen' instead of `m4_len'.
2708         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
2709         * tests/m4sh.at (AS_HELP_STRING): Test extended.
2710         * NEWS: Updated.
2711         Reported by numerous people, numerous times.
2713 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2715         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
2716         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
2717         * lib/autoconf/general.m4, lib/autoconf/status.m4:
2718         * lib/autotest/general.m4, tests/local.at:
2719         Update copyright year to 2006.
2721         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
2722         sed substitutions.
2723         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
2724         for file names, again.  Reported by Noah Misch.
2725         (Coding Style): Explain that s|a|b| is preferred for file names.
2726         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
2727         (AC_OUTPUT_MAKE_DEFS): Likewise.
2728         * lib/autotest/general.m4 (AT_INIT): Likewise.
2729         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
2730         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
2732         Fix Posix-conformance bugs re use of { command in sed scripts,
2733         and improve the sed-related documentation a bit.
2734         * doc/autoconf.texi (Installation Directory Variables): Use
2735         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
2736         rather than "sed" when talking about Sed in general.
2737         (Particular Programs): Likewise.
2738         (Coding Style): y is like s with respect to / and ,.
2739         (Limitations of Usual Tools): Document the weird restrictions
2740         that Posix has about { }.  Use better quoting.
2741         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
2742         Rewrite to conform to Posix rules about { } in sed scripts.
2743         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
2744         * tests/foreign.at (Libtool): Likewise.
2745         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
2746         Use our own style advice re 's,a,b,' versus 's|a|b|'.
2748 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2750         * lib/autoconf/status.m4: Fix typo.
2752         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
2753         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
2754         `-def', for the benefit of Portland `pgf90 -Mipa'.
2755         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
2757 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2759         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
2760         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
2761         shell from zsh to bash.
2763 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
2765         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
2766           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
2768 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2770         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
2771         parentheses in $(...).  Problem reported by Eric Blake.
2773 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2775         * doc/autoconf.texi (Limitations of Usual Tools):
2776         Mention which characters can be escaped with \ in portable regular
2777         expressions used in grep, sed, expr.  Mention the leading ^ problem
2778         with expr.  Clean up some confusing wording.  Mention which
2779         grep options are portable.
2781 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
2783         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
2785 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2787         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
2788         patch, noted by Ralf Wildenhues.
2790 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2792         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
2793         posix' unconditionally, for pdksh in `native sh' emulation.
2795 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2797         * doc/autoconf.texi (Shellology): Document eval $? problem
2798         with ash.
2799         (Limitations of Builtins): Likewise.
2801 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2803         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
2804         CONFIG_SHELL in the environment of the configure rerun.
2805         * doc/autoconf.texi (Here-Documents, config.status Invocation):
2806         Suggest passing CONFIG_SHELL absolute, and in the environment
2807         rather than as option.
2809 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2811         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
2812         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
2813         Fix macro quoting.  Fix output for n * 98 substituted variables.
2815 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2817         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
2818         `tmp' to avoid file removal race.
2820 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2822         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
2823         ac_clean_files and LIBOBJS.
2825 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2827         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
2828         Factor functionality to..
2829         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
2830         `AC_SUBST($1)' in the public version.
2831         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
2832         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
2833         ac_pt_* variables.
2835 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
2837         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
2838         filesystems.
2840 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842         * NEWS: Move AH_HEADER mention to right place.
2844 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
2846         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
2847         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2849 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
2851         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
2852         conftst2.$ac_objext.
2853         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2855 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
2857         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
2858         conftest.o, to see whether the compiler really obeys; rm the object
2859         file before and after the test and register it with ac_clean_files.
2860         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
2862 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
2864         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
2865         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
2866         code so that the most common case requires less forks.
2868 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
2870         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
2871         not portable; thanks to Paul Eggert and Alexandre.
2873         * NEWS: Fix an old typo.
2875 2005-10-20  Jim Meyering  <jim@meyering.net>
2877         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
2878         the latter'', in two places.
2880 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2882         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
2883         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
2884         the inner workings of AC_LANG_FUNC_LINK_TRY.
2885         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
2886         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
2887         by the function rather than ignoring it.
2888         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
2889         comparing its address.  Intel's interprocedural optimization was
2890         outsmarting the old heuristic.  Problem reported by
2891         Mikulas Patocka.
2893 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
2895         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
2897 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2899         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
2900         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
2902 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
2904         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
2905         before removing it (chmod -R u+rwx); there are three instances of this.
2907 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2908             Stepan Kasal  <kasal@ucw.cz>
2910         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
2911         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
2912         make its content writable before removing it.  Remove an errorneous
2913         comment from the end, where the logs of the failed tests are copied
2914         to the main log file.
2916 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
2918         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
2919           in case the computer is too quick.  Double quote the configure.ac
2920           snippets.
2922         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
2923           problems if the testsuite were running too fast.
2925 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2927         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
2928         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
2929         (which belong to Xt, not X itself).  See Debian bug 327655.
2930         * NEWS: Mention this.
2932 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
2934         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
2936 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
2938         * config/move-if-change: Don't output "$2 is unchanged";
2939         suggested by Ben Elliston.  Handle weird characters correctly.
2941 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
2943         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
2944           calls, so that the final expansion of this macro is shorter.
2945           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
2946           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
2947           the cleanup there.  Use AS_VAR_* macros, to be more general.
2948         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
2950         * lib/autoconf/general.m4: Use AS_IF where appropriate.
2952         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
2954 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
2956         * doc/autoconf.texi (Configuration Headers): Add an index entry
2957           for AH_HEADER.
2959 2005-08-26  Pavel Roskin  <proski@gnu.org>
2961         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
2962         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
2963         running xmkmf.
2965 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2967         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2968         The previous patch didn't work, so try a better one.
2970 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
2972         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
2973         in the example.  Reported by Bruno Haible.
2974         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
2975         "if $undefined_var;" succeeds with my shell.
2977         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
2978         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
2979         but change the m4_divert_text to m4_divert_once.
2981 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2983         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
2984         Work around bug in Solaris /usr/xpg4/bin/awk.
2985         The bug is present in at least Solaris 8 through 10.
2987 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
2989         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
2990         some evil values and relying on the fact that $* concatenates the
2991         parameters by the first character from IFS.
2993 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
2994             Stepan Kasal  <kasal@ucw.cz>
2996         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
2997         first header appears, define AH_HEADER.
2998         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
2999         Update limitations about when to call AC_CONFIG_HEADERS.
3000         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
3001         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
3002         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
3003         ``Configuration Actions''; fix their index entries.
3005         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
3006         options correctly.  Process N-M as M-N if M is smaller than N.
3007         Process ranges correctly so that N-N will run only N.
3008         Sort and uniquify the tests that will be run.  If there is more
3009         than one test, reinsert the banners for the tests.
3010         * tests/autotest.at (Keywords): Unmark XFAIL.
3012 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
3014         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
3015           before passing the macro name to AH_TEMPLATE.
3017         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
3018           now opens log after option processing; in particular, --version
3019           and --help do not touch config.log.
3021         * Makefile.maint: Revert the change from 2005-08-12.
3023 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
3025         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
3026           common code to...
3027         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
3029 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3031         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
3032         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
3033         Language cleanup.
3035         * doc/autoconf.texi (Defining Symbols, Changed Results):
3036         Prepend to LIBS, not append, in examples.
3038 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
3040         When building in place, set srcdir="."; suggested by Tim Van Holder.
3042         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
3043           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
3044         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
3045         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
3046           does not mean "no --srcdir option".
3048 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3050         * tests/autoscan.at (autoscan): New file.
3051         * tests/suite.at: Use it.
3052         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
3053         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
3055         * tests/autotest.at (Keywords): Test keywords combinations.
3057 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
3059         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
3060           add "2>&1"; gzip 1.2.4 prints help on stderr.
3062 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
3064         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
3065         was pushdef'ed twice while popped only once.  Push it only once.
3066         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
3068 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
3070         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
3071         prefixed by mere "===", not "configure: === ".
3073 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3075         * Makefile.maint: Update from Bison.
3077         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
3078         "<tab>" in comment, so that the point is understandable.
3080 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
3082         Rewrite substantial part of lib/autoconf/status.m4.
3083         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
3084         and CONFIG_COMMANDS are not processed in four separate loops.
3085         Instead, there is one main loop.  This alows that the common code
3086         is expanded only once, thus config.status (and configure) is smaller.
3088         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
3089         the AC_LIST_FILES and cousins macros are no longer used.
3091         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
3092         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
3093         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
3094         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
3095         contain the initialization, nor the for loop, nor the associated
3096         commands; all these go to ...
3097         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
3098         _AC_OUTPUT_CONFIG_STATUS.
3099         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
3100         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
3101         (_AC_OUTPUT_FILE): The creation of the sed script ...
3102         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
3103         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
3104         _AC_OUTPUT_MAIN_LOOP.
3105         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
3106         _AC_CONFIG_COMMANDS): Use ...
3107         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
3108         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
3109         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
3110         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
3111         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
3112         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
3113         ... new macros.
3114         (_AC_CONFIG_UNIQUE): Update.
3115         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
3116         Replaced by this ...
3117         (_AC_LIST_TAGS): ... new common macro.
3118         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
3119         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
3120         (_AC_LIST_TAG_COMMANDS): ... new common macro.
3121         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
3122         this didn't belong to the `config commands' section.
3123         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
3124         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
3125         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
3126         to the `config commands' section either.
3127         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
3128         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
3130         ... and many changes to the comments nearby.
3132         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
3133         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
3134         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
3135         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
3136         (#define header templates): The comment at the top of the generated
3137         header now includes the name(s) of the source file(s).
3139         Several unrelated small changes:
3141         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
3142         parameter to AC_DIAGNOSE.
3143         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
3144         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
3145         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
3146         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
3147         with AU::AC_OUTPUT.
3148         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
3149         in AC_OUTPUT doesn't double-quote it either.
3150         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
3151         parameters.
3153 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
3155         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
3156         versions of Portland Group compiler produce single- and double-quoted
3157         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
3158         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
3160 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
3162         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
3163         This is a corrected version of yesterday's patch.
3165 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
3167         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
3168         path, too; insert a "===" to emphasize the line.
3170         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
3171           ac_cv_build_alias to ac_build_alias.
3172         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
3174         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
3175         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
3176         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
3177         (AC_ARG_VAR): ... here.
3178         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
3179           target_alias.
3181         Keep a list of all precious variables and process them with one simple
3182         for loop, instead of expanding all commands, or, OTOH, complicated
3183         processing of output of "set".
3184         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
3185         variable names in new macro...
3186         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
3187         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
3188           a loop to assign all ac_env_* and ac_cv_env_* variables.
3189         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
3190           to INIT_PREPARE.
3191         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
3192           its value to shell variable ac_precious_vars and call
3193           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
3194         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
3195           _AC_ARG_VAR_VALIDATE.
3197         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
3198           and the AC_SUBSTs ...
3199         (AC_INIT): ... here.
3201         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
3202           the ac_subst_files section in config.log.
3204         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
3206 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3208         * NEWS: New macro AC_C_TYPEOF.
3209         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
3210         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
3211         * tests/c.at (C keywords): Test AC_C_TYPEOF.
3213         Fix problems reported by Nicolas Joly.
3214         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
3215         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
3216         They are generated by the Tru64 v5.1B shell.
3218 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
3220         Fix my changes from 2005-07-01; reported by Noah Misch.
3221         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
3222         description, the macro now accepts only a single tag.
3223         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
3225         Fix cases when the varsions of Autoconf and Autotest don't match.
3226         Reported by Noah Misch.
3227         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
3228         at_top_builddir, for compatibility with older autotest.
3229         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
3230         is not set, use at_top_builddir, for compatibility with older
3231         versions of autoconf.
3233 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3235         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
3236         Problem reported by Patrick Welche.
3238 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3240         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
3241         sed substitution command, so that we allow | in program prefixes
3242         and program suffixes.  (& is a problem anyway; we're not fixing
3243         that here.)
3244         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
3245         configure_input, top_builddir, srcdir, etc.
3246         * lib/autotest/general.m4 (AT_INIT): Likewise, for
3247         PATH_SEPARATOR in AUTOTEST_PATH.
3249 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
3251         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
3252         for loop over config.site files using `set', to allow
3253         directory names containing IFS characters.
3255 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
3257         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
3258         directories with weird names.  Apparently some people like living
3259         on the edge.  However, improve the test that "pwd" actually does
3260         report a name for the working directory.
3261         * NEWS: Remove the claim that we test for funny chars in dir names.
3263 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
3265         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
3266         replaced ...
3267         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
3268         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
3269         Now accept a single tag, not whitespace separated list.
3270         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
3272 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
3274         * doc/autoconf.texi (Configuration Headers): Change the explanation
3275         about #include <config.h>.
3276         (Generic Functions): Mention the Gnulib project.
3277         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
3279         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
3280         document to output the default config_* lists to config.status.
3281         Don't recognize option --file, if the functionality is not there.
3282         Likewise for --header; moreover, recognize --he and --h as shortcuts
3283         for --help in that case.
3285         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
3286         matches the order of execution.  No code changed.
3288 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3290         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
3291         single-quoted -cmdline argument in Portland Group compiler.
3292         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
3294 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
3296         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
3298 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
3300         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
3301         descriptors to child processes; reported by Norman Gray.
3303 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
3305         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
3307         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
3308         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
3309         (AC_SUBST): Call it.
3310         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
3311         the directory specific variables; but don't call it for configure_input.
3313 2005-06-28  Derek Price  <derek@ximbiot.com>
3315         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
3316         addition.
3318 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3320         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
3321         directory have inherent problems with special characters like spaces,
3322         due to limitations in Make syntax.  Problem reported by Alexandre
3323         Duret-Lutz.
3324         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
3325         Also, fix Tru64 porting problem with shell patterns,
3326         reported by Ralf Wildenhues.
3328 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3330         * doc/autoconf.texi (Subdirectories): Fix markup typos.
3332 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3334         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
3336         Fix some more shell quoting problems.  Prompted by a bug report
3337         from Justace Clutter.
3338         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
3339         variable into diagnostic.  Make the diagnostic an error, not a warning,
3340         because we really don't support spaces and suchlike in dir names.
3341         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
3342         Don't worry about backslashes in srcdir; it can't happen now.
3343         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
3344         Simplify ac_optarg handling.
3345         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
3347 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
3349         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
3350         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
3351         * tests/atlocal.in: Propagate $EGREP and $SED.
3352         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
3353         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
3355         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
3356         that '\|' is not allowed in BREs; recommend using newline separated
3357         list of patterns instead of multiple -e options.
3359         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
3361         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
3363 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3365         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
3367 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
3369         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
3370         b, t, r, w commands require single space, while : cannot have any.
3371         (Special Shell Variables): Fix sed code this in the example.
3372         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
3373         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
3375         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
3376         expand to the empty list.  Don't use two pairs of m4_changequote,
3377         it's not necessary.
3379 2005-06-20  Derek Price  <derek@ximbiot.com>
3381         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
3383 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3385         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
3386         * doc/autoconf.texi:
3387         Don't mention Solaris versions so much, if a
3388         problem is common to all extant versions of Solaris.  Say "SunOS
3389         4" instead of "SunOS" for SunOS 4.
3390         (awk): Mention more of the limitations of traditional Awk.
3391         (cat): Don't talk about cat -v.
3393 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3395         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
3396         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
3397         but the implementation is entirely different and is designed
3398         to be compatible with glibc strverscmp.
3399         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
3401         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
3402         on Mac OS X 10.4 reported by Peter O'Gorman in:
3403         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
3404         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
3405         Use shell builtins rather than 'expr', to work around expr bug.
3407 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
3409         * doc/autoconf.texi: "filesystem" -> "file system".
3410         "behaviour" -> "behavior".
3411         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
3412         * lib/autoconf/general.m4: Omit blank after ":" sed command,
3413         as per POSIX.
3414         * lib/m4sugar/m4sh.m4: Likewise.
3415         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
3416         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
3418         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
3419         (.x.1): Ignore the time stamp in the .TH line when deciding whether
3420         to update the man page.  That way, we don't have to check in new
3421         man pages every month.
3423         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
3424         quotes and backslashes.  Patch from Derek Price.
3426 2005-06-10  Derek Price  <derek@ximbiot.com>
3428         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
3429         AS_TR_SH.
3431 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3433         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
3434         -u, since it outputs chatter if the input files are the same.
3435         Problem reported by Ralf Menzel.
3437 2005-06-08  Derek Price  <derek@ximbiot.com>
3439         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
3440         renaming them since they are about to be redefined anyhow.
3442 2005-06-08  Derek Price  <derek@ximbiot.com>
3444         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
3445         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
3446         Move m4_undefine to alphabetical order.
3448 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3450         * README: Recommend GNU M4 1.4.3 or later.
3451         * doc/autoconf.texi (Introduction): Likewise.
3452         Reword to avoid some formatting glitches.
3453         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
3454         Clarify explanation of HP compiler bug.
3455         Redo example output tp match current CVS snapshot.
3456         Use @example.org in email addresses when the examples
3457         might get inadvertently cut-and-pasted into user code.
3458         Remove example of autom4te usage that doesn't seem to work now.
3459         Use modern AC_INIT (except when the example is meant to be
3460         shown with Autoconf 2.13).
3461         Update ksh info for Solaris 9 and later.
3462         KB -> kB.
3463         Modernize description of Automake versions a bit.
3464         Don't claim a future version of Autoconf is near.
3465         * doc/install.texi: Reword to avoid some formatting glitches.
3467 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3469         * doc/autoconf.texi: Add [] to examples, so that the manual
3470         follows its own advice about quoting better.
3471         Reword to avoid some formatting glitches.
3472         * doc/installt.exi: Reword to avoid some formatting glitches.
3474         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
3475         Tru64 ksh pattern matching bug.  Reported against Libtool by
3476         Albert Chin <libtool@mlists.thewrittenword.com> and
3477         Nicolas Joly <njoly@pasteur.fr>.
3479 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
3481         m4_cdr of one-member list was [[]] (one-member list containing an
3482         empty string) instead of [] (an empty list.  Callers were skewed to
3483         match this misbehaviour.  As a consequence of this:
3484          - m4_foreach([x], [], [foo]) expanded to `foo', while
3485          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
3486         This bug has been fixed:
3488         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
3489           expand to an empty string; print error msg if called without
3490           an argument list.
3491         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
3492           misbehaviour; handle [] and [[]] correctly.
3494 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
3496         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
3497         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
3498           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
3500 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
3502         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
3503           swallow records with more than 99 fields.
3504         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
3505           parse the long line.
3507 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
3509         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
3510           swallow literals longer than 399.  Reported by Ralf Wildenhues.
3511         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
3512           to workaround this limitation.
3514 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3516         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
3517         to gfortran, and make these the first two compiler names
3518         checked (following the general autoconf preference for gcc).
3520 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
3522         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
3523         (DISTCLEANFILES): Remove $(check_SCRIPTS).
3524         (testsuite): Make sure autotest.m4f is up-to-date before using it.
3526 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3528         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
3529         expression of unbounded size when processing the --list
3530         option.  This runs afoul of a limit of 399 bytes per regular
3531         expression on AIX.  Problem reported by Ralf Wildenhues.
3533 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3535         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
3536         * doc/autoconf.texi (Particular Headers): Reword example
3537         for multiline stdbool replacement.
3538         (Setting Output Variables): Reword text a bit.  Don't
3539         give all the details about |#_!!_#|.
3540         Reword description of line replacement.
3542 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
3544         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
3545         now contain newlines, and substituted files must be referenced on
3546         a line alone; the sed scripts to substitute them are now very
3547         different.
3548         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
3549         commands can be put in a sed script portably.
3550         * doc/autoconf.texi (Setting Output Variables): Document above
3551         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
3552         use of multiline substitution.
3553         * tests/torture.at: No longer expect substitution of newline to fail.
3555 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3557         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
3558         From Ralf Menzel (trivial change).
3560 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3562         * tests/local.at: Don't attempt to check for negated character
3563         classes in shell scripts.  The test was too brittle.
3565 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
3567         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
3568         * doc/autoconf.texi (Limitations of Builtins): Document this
3569           limitation.
3571 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
3573         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
3574           common code; used in many places in the tree.
3575         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
3576         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
3578         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
3580         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
3581           messages when ac_unique_file is not found.
3582         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
3583         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
3584           commands, for consistency with AC_MSG_ERROR and such.
3586         * bin/autoconf.as: Make more use of "shift 2" in option processing.
3588         * bin/Makefile.am: Merge the two rules for creating scripts.
3590 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
3592         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
3593         obsolete; it was never documented.
3594         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
3596 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
3598         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
3599         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
3600         (ac_top_builddir): ... this ...
3601         (ac_top_build_prefix): ... to this; the old name is also kept, for
3602           backward compatibility.
3603         (ac_top_builddir_sub): New variable, without the trailing slash,
3604           always nonempty.
3605         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
3606         * doc/autoconf.texi (Configuration Actions): Rename
3607           ac_top_builddir to ac_top_build_prefix.
3608         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
3609           at_top_builddir to at_top_build_prefix.
3610         * lib/autotest/general.m4 (AT_INIT): Likewise.
3612 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
3614         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
3615           of confdefs.h .
3617 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
3619         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
3620           argument to m4_foreach.  I guess it was necessary in the past,
3621           but I think it's a no-op now.
3623 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
3625         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
3626           ``cat <<_ACEOF'' commands to one.
3627         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
3628         * lib/autoconf/status.m4: On various places, use expr instead of
3629           ``echo|sed.''
3630         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
3631         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
3632         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
3633           a range.
3634         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
3635           the wrong patterns between ``case'' and ``esac.''  The previous
3636           code had false positives.
3638 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
3640         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
3641         as on 2005-05-02.
3642         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
3643         Mention LIBOBJDIR.
3645 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3647         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
3648         ChangeLog.2, GNUmakefile, Makefile.am, Makefile.cfg,
3649         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
3650         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
3651         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
3652         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
3653         config/config.guess, config/config.sub, config/elisp-comp,
3654         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
3655         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
3656         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
3657         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
3658         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
3659         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
3660         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
3661         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
3662         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
3663         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
3664         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
3665         lib/autoconf/general.m4, lib/autoconf/headers.m4,
3666         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
3667         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
3668         lib/autoconf/specific.m4, lib/autoconf/status.m4,
3669         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
3670         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
3671         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
3672         lib/autotest/general.m4, lib/emacs/Makefile.am,
3673         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
3674         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
3675         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
3676         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
3677         tests/compile.at, tests/foreign.at, tests/fortran.at,
3678         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
3679         tests/semantics.at, tests/suite.at, tests/tools.at,
3680         tests/torture.at, tests/wrapper.as:
3681         Update FSF postal mail address.
3683 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
3685         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
3686           check.
3687         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
3688           enough arguments, similarly as in m4_bpatsubsts.
3690 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
3692         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
3693           of absolute paths.
3695 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
3697         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
3698           for absolute directory names in one loop.
3699         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
3700           abbreviations of --version and --debug.
3702 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3704         * doc/autoconf.texi (Autoconf Language): Be more precise about
3705         quoting rules.  Problems noted by Stepan Kasal.
3706         Also, throughout this document, be more careful about white space.
3707         "blank", "white space", and "space" all have different meanings
3708         and we should be careful to say what we mean.
3710 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3712         Fix C++ related problems reported by Werner Lemberg.
3713         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
3714         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
3715         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
3716         avoid problems with C++ and throw.
3717         * tests/compile.at: .cpp, not .cc.
3719         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
3721 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3723         * doc/autoconf.texi (Generic Functions): Typos.
3725 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
3727         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
3728         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
3729         set by latest automake.
3731 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3733         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
3734         outputs 0 on GNU/Linux these days.
3736 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3738         * doc/autoconf.texi (Autoconf Language): Add more description
3739         about quoting heuristics.
3740         (Limitations of Builtins): Describe "set -" problems.
3742 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3744         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
3745         not newline.
3747         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
3748         by AC_DEFINE; it was a mistake.
3749         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
3751 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
3753         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
3755 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
3757         * doc/autoconf.texi (External Software): Quadrigraphs are not
3758           processed correctly in AS_HELP_STRING; avoid this in the examples.
3759         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
3760         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
3761           comment and reduce m4_default([foo], []) to [foo].
3762         (m4_strip): Update the explanation.
3764 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
3766         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
3767         Remove core.conftest.* too; it's generated by Tru64 5.1.
3768         Problem reported by Jennis Pruett.
3769         * lib/autoconf/functions.m4
3770         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
3771         Don't bother to remove core files; AC_RUN_IFELSE should do that
3772         for you.
3774 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
3776         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
3778 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
3780         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
3781         Report from Horst Wente.
3783 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
3785         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
3786           the comment.
3788 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
3790         * doc/autoconf.texi (External Software, Package Options): Add
3791           examples showing how to implement --with-* and --enable-* options.
3793 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
3795         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
3796         as well as configure.in.  Problem reported by Gregorio Guidi.
3798 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
3800         * doc/autoconf.texi (Particular Functions): Use gnulib's current
3801         pattern for alloca snippet.
3803 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
3805         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
3807 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
3809         * doc/autoconf.texi (Generic Programs): Fix a typo.
3811 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
3813         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
3814         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
3816 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3818         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
3819         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
3820         whole-archive (-zallextract, -zdefaultextract) options in the hope of
3821         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
3822         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
3824 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3826         * NEWS: The configure command now warns you if you attempt to use
3827         a directory whose name contains a special character like space,
3828         newline, or "\".
3829         * doc/autoconf.texi (Installation Directory Variables): Allow
3830         "," in file names.  Do not use \@; it's not a portable regexp.
3831         * bin/Makefile.am (edit): Likewise.
3832         * lib/Makefile.am (edit): Likewise.
3833         * tests/Makefile.am (edit): Likewise.
3834         * tests/semantics.at: Likewise.
3835         * tests/torture.at: Likewise.
3836         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
3837         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
3838         * doc/autoconf.texi (File System Conventions): Warn about
3839         unportable file names.
3840         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
3841         (AC_INIT): Use it.
3842         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
3843         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
3844         ac_pwd, and quote srcdir.
3845         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
3847         * doc/autoconf.texi: Fix some systematic formatting problems.
3848         ".)"  needs a following @: if not at the end of a sentence, and
3849         similarly for "!)".  "etc." should be preceded by a comma.
3850         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
3852 2005-03-22  Bruno Haible  <bruno@clisp.org>
3854         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
3855         argument is often called 'build-aux'.
3857 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
3859         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
3860           macro AC_TRY_LINK is obsolete.
3861         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
3862           `AC_CONFIG_FILES'.
3864 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
3866         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
3867           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
3868           from a Common Lisp's `cl'.
3869         (AC_PROG_CXX): Behave according to the documentation: don't
3870           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
3871           make the variable CCC precious; use `cl.exe', not `cl'.
3873 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3874             Alexandre Duret-Lutz  <adl@gnu.org>
3876         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
3877         /dev/null, as "configure" shouldn't read stdin, and this insulates
3878         us from problems (e.g., when testing for "cl").  Also, do this
3879         redirection before invoking "hostname" or "uname", and keep the
3880         original input stream available via...
3881         (AS_ORIGINAL_STDIN_FD): ... this new macro.
3882         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
3883         bother with "</dev/null" since it's now done at the top of
3884         'configure'.
3885         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
3886         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3887         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
3888         * doc/autoconf.texi (File Descriptor Macros): New section.
3889         (Printing Messages): Mention it.
3890         * tests/base.at (Input/Output): New test.
3892 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3894         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
3895         newline if neither \c nor -n work, as that would output two
3896         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
3898 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
3900         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
3901         This causes that any required macros inside will get before the if.
3902         * doc/autoconf.texi (autom4te.cache): A typo.
3904 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3906         Undo previous change, except keep the change to
3907         lib/autoconf/programs.m4 that replaced grep with shell
3908         pattern-matching.  This is because net-snmp configure reads stdin.
3909         Reported by Noah Misch.
3911 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
3913         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
3914         from /dev/null, as "configure" shouldn't read stdin, and this
3915         insulates us from problems (e.g., when testing for "cl").
3916         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
3917         before invoking "hostname" or "uname".
3918         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
3919         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
3920         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
3921         "</dev/null" since it's now done at the top of 'configure'.
3922         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
3923         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
3924         Also, replace grep with shell pattern-matching, to save a process.
3926 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
3928         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
3929         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
3930         avoid thinking that Allegro Common Lisp's "cl" command is a C++
3931         compiler.
3933 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3935         * doc/autoconf.texi (Limitations of Usual Tools): Document that
3936         grep -q isn't portable.  Improve grep -s explanation.
3937         Problem reported by Dan Manthey.
3939 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3941         * doc/autoconf.texi (Special Shell Variables): Clarify
3942         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
3944 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3946         * doc/autoconf.texi: Use @acronym for DJGPP.
3947         Fix some @code's that should have been @env's, and vice versa.
3948         Sort environment variable names.
3949         Mention that shells no longer inherit IFS.
3950         Don't recommend PATH_SEPARATOR=';' so strongly.
3951         Mention that $RANDOM might expand to the empty string.
3952         "symlink" and "soft link" -> "symbolic link".
3953         Improve mktemp description (reported by Bruno Haible).
3955 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
3957         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
3958         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
3959         Likewise.
3960         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
3961         Likewise.
3963 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3965         * NEWS: Mention AT_COPYRIGHT.
3967         * tests/local.at (AT_CMP): Use diff directly on input files rather
3968         than copying them.
3970         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
3971         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
3973 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3974         and Paul Eggert  <eggert@cs.ucla.edu>
3976         * tests/autotest.at (Empty test suite): New test.
3977         * tests/torture.at (Substitute and define special characters)
3978         (Substitute a 2000-byte string, Define to a 2000-byte string)
3979         (Substitute a newline, Define a newline): New tests.
3981 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
3983         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
3984         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
3985         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
3986         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
3987         (Standard regular expressions): New test.
3988         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
3989         excess test name quoting.
3990         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
3991         CPPFLAGS to `configure' instead of setting it in `configure'.
3993         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
3994         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
3995         on some platforms.
3997         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
3998         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
4000         * tests/local.at (AT_CMP): New macro.
4001         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
4002         (AC_SAVE_STATE): Move environment grep...
4003         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
4004         (AT_CONFIG_CMP): New macro.
4005         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
4006         * tests/c.at (Extensions): Do not exit early.
4007         * tests/atlocal.in: Inherit $GREP.
4009         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
4010         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
4012         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
4013         (AC_COPYRIGHT): Factor header comment portion out and move into...
4014         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
4015         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
4016         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
4017         --version output.
4018         * tests/local.at: Add Autoconf test suite copyright notice.
4019         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
4021 2005-02-04  Bruno Haible  <bruno@clisp.org>
4022         and Paul Eggert  <eggert@cs.ucla.edu>
4024         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
4026 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4028         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
4029         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
4031         Try not to generated lines of unlimited length, as POSIX places a
4032         2047-byte limit on line length of portable text files.
4033         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
4034         Use newline as a separator, not space.
4035         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
4036         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
4037         space.
4039 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4041         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
4042         as_func_*.  Add test to check whether positional parameters
4043         are restored after function return.
4045 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4047         * doc/autoconf.texi (Special Shell Variables): Mention _,
4048         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
4049         if they contain a lower-case letter.  The DUALCASE problem was
4050         reported by Ralf Wildenhues.
4052         * bin/autoconf.as: Don't exit with status 0 after write failure
4053         with --help or --version.
4054         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
4055         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
4057 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4059         * doc/autoconf.texi (Limitations of Usual Tools):
4060         Unicos 9 sed limitations.
4061         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
4062         to get the option-enhanced interface on older Crays.  Try ftn for
4063         Fortran 95 (newer Crays).
4065 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
4067         * man/Makefile.am (.x.1): Go back to the simple solution, but take
4068         care to echo the commands, so the user knows what's going on.
4069         Modified from a suggestion by Stepan Kasal.
4071         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
4072         with a cross reference.  Derived from a suggestion by Bruce Korb.
4074 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
4076         * doc/autoconf.texi (config.status Invocation): Warn about
4077         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
4078         * doc/install.texi (Defining Variables): Likewise.
4079         Based on a proposed patch by Ralf Wildenhues.
4081         * man/Makefile.am (.x.1): Make sure the required generated files
4082         are up to date.  Problem and original solution proposed by Stepan Kasal.
4083         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
4084         implicit-man-prerequisites): New rules, used by the above.
4086         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
4087         * config/config.guess, config/config.sub, config/install-sh: Likewise.
4088         * config/missing, config/texinfo.tex: Likewise.
4090 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
4092         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
4093         Update the long comment explaining it.
4095         m4_require no longer writes an ``is required by'' line to the
4096         execution stack.  It contains only one bit of non-redundant
4097         information: that the macro was required, not called.  And even
4098         this bit is useless in most situations: have you ever met a macro
4099         which both calls and requires the same macro?
4101         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
4102         (_m4_defun_pro_outer): ... only via this macro, for the outermost
4103           macro.
4104         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
4105         (m4_expansion_stack_pop): Remove the misplaced comment.
4106         (m4_require): Don't put the ``is required by'' line to the
4107           execution stack; slightly improve the out-of-a-defun error message.
4108         (_m4_divert_grow): New macro, counter for the temporary diversions.
4109         (_m4_require_call): Use it.
4110         * tests/m4sugar.at (m4_require): Expect output without the
4111           ``is required by'' messages.
4113 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4115         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
4116         rather than x for expr.
4118         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
4119         this is safe.
4120         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
4121         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
4122         * lib/autotest/general.m4 (AT_INIT): Likewise.
4123         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
4124         * tests/mktests.sh: Likewise.
4126 2005-01-27  Akim Demaille  <akim@epita.fr>
4128         Have autoheader honor --force.
4130         * doc/make-stds.texi, doc/standards.texi: Update from masters.
4131         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
4132         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
4133         from masters, so that FileUtils.pm's update_file provide --force
4134         support.
4135         * bin/autoheader.in: Pass $force to update_file so that
4136         config.h.in is always recreated when --force.
4138 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
4140         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
4142 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4144         * doc/autoconf.texi (Limitations of Builtins): Clarify that
4145         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
4147 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
4149         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
4150         Warn about newline stripping in `` and $().  Update Solaris
4151         version to 9.
4152         (Limitations of Builtins): Use expr "X...", not expr "x...", as
4153         X insulates us from future changes to Posix.
4154         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
4155         stripping.
4157 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
4159         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
4160           you cannot use AC_DEFINE to define macros containing `[' or `]'.
4162 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
4164         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
4165         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
4166         bug-tar mailing list.
4168 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
4170         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
4172 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4174         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
4175         ulongval to be static, to avoid unwanted GCC warning.  Problem
4176         reported by Michael Jennings via Daniel Reed; see
4177         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
4179 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
4181         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
4182         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
4183         datadir, infodir, and mandir.  Adjust argument parsing code.
4184         (_AC_INIT_HELP): Update help text.
4185         * doc/autoconf.texi (Installation Directory Variables): Document
4186         new variables.
4188 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
4190         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
4191         not seem to work, assume it does set $(MAKE).
4192         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
4194 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
4196         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
4198 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
4200         A cleanup of the diversion support in m4sugar.
4202         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
4203         (_m4_divert_n_stack): New macro; the expansion is
4204           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
4205           otherwise.
4206         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
4207         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
4208           stored in _m4_divert_diversion or _m4_divert_dump.
4209         (m4_divert_pop): When the parameter is given, compare the symbolic
4210           name with the last diversion pushed on the stack.  Previously, the
4211           current diversion was compared with the numeric value of the
4212           diversion given as the parameter.
4213         (m4_require): If the macro hasn't been expanded yet, call ...
4214         (_m4_require_call): this new macro.
4216 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4218         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
4219         Workarounds for documented `case' limitations.
4221 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4223         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
4224         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
4226 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4228         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
4229         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
4230         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
4232         Patch from Roger Leigh (with some minor changes) as follows:
4233         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
4234         Resurrect AC_PROG_CC_STDC.
4235         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
4236         AC_PROG_CC_C89, AC_PROG_CC_C99.
4237         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
4238         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
4239         AC_PROG_CC_C99): New macros.
4240         (AC_PROG_CC_STDC): Use them.
4241         (_AC_PROG_CC_STDC): Remove.
4242         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
4243         * THANKS: Add Roger Leigh.
4245 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
4247         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
4248         signals that the package uses Automake; a `Makefile.am' is typical but
4249         not essential.  Reported by Magnus Therning.
4250         * tests/torture.at (autoreconf.): New banner.
4251         (autoreconf and non-AC configure): Rename to `Non-Autoconf
4252         AC_CONFIG_SUBDIRS'.
4253         (autoreconf an empty directory): Rename to `Empty directory'.
4254         (Unusual Automake input files): New test.
4256 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
4258         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
4259         (AT_SETUP): Clear AT_capture_files.
4260         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
4261         (AT_KEYWORDS): Fix comment typo.
4262         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
4263         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
4264         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
4266 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
4268         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
4269         If the variable to set is already set, set ac_cv_path_$1
4270         to the preset value so caller can assume ac_cv_path_$1
4271         is available.  (trivial change)
4273 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
4275         * BUGS (Minor Problems): Warn about makefile limitations.
4276         * Makefile.am: Find and update `INSTALL' in $(srcdir).
4277         * man/Makefile.am: Find and update manual pages in $(srcdir).
4279 2004-12-24  Eric Blake  <ebb9@byu.net>
4281         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
4282         shells in subshell, to avoid noise from ash.  (trivial change)
4284 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4286         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
4287         problems with SunOS ksh and backslash escaping, Bourne shells and
4288         closing brackets (both within character classes).  Bug reported
4289         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
4290         <read>: New entry.  Mention non-availability of -r.
4292 2004-12-21  Akim Demaille  <akim@epita.fr>
4294         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
4295         avoid cluttering displayed messages.  Rather, prepend srcdir where
4296         AT_LINE is used for log files.
4298 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
4300         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
4301         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
4302           no longer part of the macro, quote the occurrence of ``$tmp''.
4303         * doc/autoconf.texi (Forbidden Patterns): Typo.
4305 2004-12-21  Akim Demaille  <akim@epita.fr>
4307         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
4308         separated from the test title by forcing a white space.
4310 2004-12-21  Akim Demaille  <akim@epita.fr>
4312         Enable Emacs navigation within testsuite.log files.
4314         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
4315         use the compilation mode.
4316         (AT_LINE): Point to the srcdir.
4318 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
4320         * tests/Makefile.am (installcheck-local): Use $(bindir).
4321         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
4322         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
4323         Makefile.am scheme Autoconf now uses.
4325 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
4327         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
4328         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
4330 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
4332         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
4333         (_AT_CHECK): Use it.
4334         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
4335         (AS_ESCAPE): Fix comment.
4336         * tests/autotest.at: Adjust section banner comments.
4337         (AT_CHECK_AT): Accept STATUS and STDERR.
4338         (AT_CHECK_AT_TEST): Likewise.
4339         (Invalid brace-enclosed parameter expansion)
4340         (Multiline command from M4 expansion)
4341         (Double-M4-quoted command): New tests.
4343 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4345         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
4347 2004-12-17  Akim Demaille  <akim@epita.fr>
4349         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
4350         m4_pattern_allow.
4351         Suggested by Alexandre Duret-Lutz.
4352         * doc/autoconf.texi (Setting Output Variables): Catch up.
4354 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4356         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
4358 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4360         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
4361           remove the comment which said we cannot.
4363 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4365         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
4366         Reini Urban and Paul Eggert for reporting the dependencies.
4368         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
4369         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
4370         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
4372 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
4374         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
4375           so that eg. ``autoscan --help'' doesn't truncate it.
4377 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
4379         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
4380         generated conftest files.
4382 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
4384         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
4385         tracing on commands with possibly-escaped newlines.
4386         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
4387         discontinued behavior and its implications.
4388         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
4389         (BSx641-newline in command, BS-BS-newline in command)
4390         (BSx640-newline in command, Newline-CODE-BS-newline in command)
4391         (Single-quote-BS-newline in command)
4392         (Single-quote-newline-BS-newline in command): New tests.
4394 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
4396         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
4397           on platforms where it works.
4398         (_AS_TEST_PREPARE): Test for ``test -x''.
4399         (_AS_BROKEN_TEST_PREPARE): Nuke.
4401 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
4403         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
4404         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
4405           give only 4-letter prefix to AS_TMPDIR, comment fixed.
4406         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
4407           create the temporary directory.
4408         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
4410 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
4412         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
4413         (trivial change)
4415 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
4417         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
4419 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
4421         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
4422         to avoid using a negated character class.  Reported by Nicolas Joly.
4423         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
4425 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
4427         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
4428         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
4429         Don't depend on .x file explicitly, since "make" does that for us.
4430         Suggested by Stepan Kasal.
4432         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
4433         Add *.tmp.
4434         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
4435         ifnames): Factor common code.  And they said it couldn't be done!
4437 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4439         * bin/.cvsignore: Add autoconf.in.
4440         * tests/.cvsignore: Add wrapper.in.
4441         * lib/autotest/general.m4: Escape '$' in case pattern.
4443 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
4445         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
4447         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
4449         * tests/autotest.at: New file.
4450         * tests/suite.at: Include it.
4451         * tests/Makefile.am: Distribute it.
4453         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
4454           shell tracing on a command that could contain multiple lines.
4455         * doc/autoconf.text: Document that fact and its implications.
4456         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
4457         * tests/autotest.at (Multiline backquote command substitution,
4458           Multiline parameter expansion, Literal multiline command,
4459           Multiline parenthetical command substitution): Remove XFAIL.
4461 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4463         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
4464         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
4466 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
4468         * configure.ac (test suite): Cease to generate wrapper scripts.
4469         * configure: Regenerate.
4470         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
4471         (m4f_dependencies): Adjust accordingly.
4472         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
4473         (wrapper.in): Generate it in the build directory.
4474         (MAINTAINERCLEANFILES): Delete wrapper.in.
4475         (CLEANFILES): Add wrapper.in.
4476         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
4477         the output.  Replace each $as_me with a @wrap_program@.
4478         * tests/wrapper.in: Delete it; we always build it.
4480         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
4481         (EXTRA_DIST): Remove autoconf.in.
4482         (CLEANFILES): Add autoconf.in.
4483         (autoconf): Find autoconf.in in the build directory.
4484         * bin/autoconf.in: Delete it; we always build it.
4486 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
4488         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
4489         PATH members so as to not prepend an empty element.  Move a comment.
4490         * Makefile.am (SUBDIRS): Build in `tests' last.
4491         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
4493 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
4495         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
4496         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
4497         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
4498         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
4500 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
4502         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
4503         patch: extra "-l"s.
4505 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
4507         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
4508         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
4509         * doc/autoconf.texi (Particular Functions): Mention new behavior.
4511 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
4513         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
4514           out the common code to ...
4515         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
4516           value of the #define--default to 1, iff the macro was called
4517           with exactly one parameter.
4519 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4521         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
4522         "char c = '\200';" rather than "char c = 0x80;" as the
4523         latter doesn't conform to the strict C standard due to
4524         overflow on signed char hosts.
4526         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
4527         to -qlanglvl=ansi.  We don't want to disable extensions.
4529 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
4531         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
4532         (Using Autotest, testsuite Scripts, Writing testsuite.at):
4533         Reword slightly to avoid some English-language problems noted
4534         by Ralf Wildenhues in:
4535         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
4537 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
4539         * NEWS: Add ^L above each release.
4541 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4543         Fix documentation problems reported by Russ Boylan in
4544         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
4545         along with some nearby cruft.
4546         * doc/autoconf.texi (Libtool): Libtool can be used without
4547         Automake (not without Autoconf).
4548         (Introduction): Mention lists.gnu.org.
4549         * BUGS: Don't mention bugs.gnu.org.
4550         Remove mention of ancient libtool compatibility problem.
4551         * NEWS: Mention that bugs.gnu.org is kaput.
4552         * README: Likewise.  Mention where mailing list archives can be found.
4554 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
4556         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
4558 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4560         * doc/autoconf.texi (Pretty Help Strings): Go back to
4561         single-quoting assignments to cache variables.
4563 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
4565         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
4566         with the examples; fix the bug in MY_ARG_WITH example reported
4567         by Alexandre Duret-Lutz.
4568         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
4569         expansion of $1 in the comment emitted to configure.
4571 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4573         * doc/autoconf.texi (Pretty Help Strings): Fix typo
4574         in my editing of the previous patch.  Problem reported
4575         by Alexandre Duret-Lutz.
4577 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
4579         * doc/autoconf.texi (Autoconf Language): Explain that
4580         ``descriptions'' may not be double quotes.
4581         (Quotation Rule Of Thumb): Likewise.
4582         (Pretty Help Strings): Likewise; remove the wrong comment;
4583         simplify the examples and improve their quoting.
4585 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
4587         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
4588         the $1_found variable, don't test whether the file is executable;
4589         Both things are checked ...
4590         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
4591         the former ``test -f''.
4592         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
4594 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
4596         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
4597         use cp -R instead.
4599 2004-11-10  Derek R. Price  <derek@ximbiot.com>
4601         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
4602         limitations.  Reorder paragraphs for clarity.
4604 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4606         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
4607         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
4608         variants", "Unix", and some related minor wording fixups.
4610         (Shellology, Special Shell Variables): Document that the Zsh
4611         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
4612         to Alexandre Duret-Lutz for this info.
4614 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
4616         * doc/autoconf.texi (One-Shot Macros): New node.
4618 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
4620         * doc/autoconf.texi (Function Portability): Fix misdescription
4621         of putenv.  Problem reported by Michael Wardle.
4623 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4625         * doc/autoconf.texi (auindex): New macro.
4626         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
4627         Problem reported by Stepan Kasal.
4629 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4631         Fix problems reported by Andreas Buening in:
4632         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
4633         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
4634         in test makefile.
4635         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
4636         readable; it's not true in OS/2-emx.
4638 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
4640         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
4641         "/usr/include", clear ac_x_includes instead of leaving it as "no"
4642         (trivial change).  Problem and patch reported by Andrew Church in:
4643         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
4645 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4647         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
4648         three args in examples.  Problem reported by Frederik Fouvry in:
4649         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
4650         Also, fix some minor spacing and punctuation bugs.
4652 2004-09-02  Akim Demaille  <akim@epita.fr>
4654         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
4655         "case" to restore ordering.
4656         Reported by Stepan Kasal.
4658 2004-08-26  Akim Demaille  <akim@epita.fr>
4660         * doc/autoconf.texi: Minor typos and stylos.
4662 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4664         * configure.ac (AC_INIT): Bump to 2.59c.
4666 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4668         Version 2.59b.
4670         * README: Add advice about m4 1.4.2.
4672         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
4673         texinfo.tex for now (done by hand now).
4674         * Makefile.maint (wget_files, cvs_files):
4675         Remove ansi2knr.c; nobody uses it.
4676         (ansi2knr.c-url_prefix): Remove.
4677         (cvs-update): Fix test for failure.  I don't know why it ever
4678         worked...
4680         * doc/autoconf.texi: Update URLs, some of which went stale.
4681         Use @uref rather than @href.
4683         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
4684         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
4686         * config/config.guess, config/config.sub, config/elisp-comp,
4687         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
4688         doc/fdl.texi, doc/standards.texi: Sync with master copy.
4690         * NEWS, TODO, configure.ac, bin/autoscan.in,
4691         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
4692         doc/install.texi, lib/Autom4te/Configure_ac.pm,
4693         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
4694         lib/autoconf/programs.m4, lib/autoconf/status.m4,
4695         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
4696         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
4697         tests/tools.at, tests/torture.at:
4698         Use "file name" rather than "filename" or "path",
4699         to be consistent with the terminology of the GNU coding standards.
4701 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4703         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
4704         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
4705         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
4706         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
4708         More fixes to support spaces in the name of the build directory.
4709         This isn't a complete fix but it's an improvement.
4711         * bin/autoconf.as (autom4te_options): New var.
4712         Use it instead of appending to AUTOM4TE, so that we can allow
4713         spaces in the build directory's absolute name.
4714         * bin/autoheader.in ($autoconf): Allow spaces in file names.
4715         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
4716         AT_CHECK_NOESCAPE): Likewise.
4717         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
4718         main program): Likewise.
4720 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4722         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
4723         From Ralf Corsepius in:
4724         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
4726 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4728         * doc/autoconf.texi (Function Portability): Document isinf and
4729         and isnan.  From a suggestion by Kevin Ryde.
4731         * lib/Autom4te/General.pm (END): Return correct exit status even
4732         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
4734 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4736         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
4737         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
4738         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
4740 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
4742         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
4743         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
4744         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
4745         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
4746         * lib/autom4te.in (Automake-preselections): Preselect
4747         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
4749 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
4751         * lib/autom4te.in (Automake-preselections): Preselect
4752         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
4753         trace them.
4755 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4757         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
4758         Tru64.
4759         * doc/autoconf.texi (Shellology): Mention BIN_SH.
4760         Document problem with "`""`" in pdksh POSIX mode.
4762 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4764         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
4765         with pdksh, too.  Problem reported by Patrick Welche via
4766         Gary V. Vaughan.
4767         * doc/autoconf.texi (Shellology): Note that set -o posix is
4768         useful for pkdsh, too.
4770 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4772         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
4773         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
4774         Don't fail if ENV or BASH_ENV is readonly.
4775         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
4776         etc. are read only.  Problem reported by Ludovic Courtes.
4778 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
4780         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
4781         zsh, disable GLOB_SUBST to avoid backslash handling problems.
4782         (trivial change)
4784 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4786         * doc/autoconf.texi (File System Conventions): Warn about
4787         names like "aux".  Problem reported by Eric Blake.
4789         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
4790         by zero instead of array size, so that we can use any arithmetic
4791         constant expression (instead of requiring an integer constant
4792         expression).  This allows us to test expressions like DBL_MAX <
4793         LDBL_MAX, which didn't conform to the C standard using the old
4794         method.
4795         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
4796         now that we can do floating-point tests at compile time.
4798 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4800         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
4801         and LDBL_EPSILON, as the resulting expression isn't an
4802         integer constant expression and violates the C standard.
4803         Problem reported by Nelson H. F. Beebe.  Also, check
4804         for "L" suffix, and check that long double doesn't have
4805         worse range or precision than double, that mixed-mode
4806         arithmetic doesn't generate a diagnostic, that double
4807         constants fit in long double.
4809 2004-06-03  Kevin Ryde  <user42@zip.com.au>
4811         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
4812         malloc(0) and realloc(NULL,size).
4814         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
4815         Bob Proulx.
4817 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4819         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
4820         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
4821         by Jim Meyering.
4823 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4825         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
4826         can be rewritten using if-then-else.  Suggested by Bruno Haible.
4828 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4830         * doc/autoconf.texi (testsuite Scripts): Fix typo.
4831         Problem reported by Stepan Kasal.
4833 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4835         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
4836         change).  Patch reported by Ralf Wildenhues in
4837         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
4839         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
4840         function F exists if the compiler and linker let you compile an
4841         expression like (F != 0).  Recent versions of GCC optimize away
4842         the reference to F in that case, since every function address must
4843         be nonzero, so the link succeeds even if F does not exist.
4844         Problem reported by Manu in
4845         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
4847         * doc/autoconf.texi (Systemology): Standardize on the spelling of
4848         "Unix".  Many uses changed.
4849         (Limitations of Builtins): Explain better why the ! command isn't
4850         portable.
4852 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
4854         * lib/autom4te.in (Automake-preselections): Preselect
4855         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
4857 2004-05-19  Kevin Ryde  <user42@zip.com.au>
4859         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
4860         referencing AC_FUNC_STRERROR_R.
4862         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
4863         note pessimistic assumption when cross compiling.
4865 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4867         * doc/autoconf.texi (Limitations of Make): Note that BSD make
4868         (until 2004) invoked subcommands with sh -e, contra POSIX.
4869         Reported by Kevin Ryde.
4871 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
4873         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
4874         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
4875         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
4876         `test -f "        /usr/bin/grep"', which _always_ failed.
4877         (AC_PROG_SED): Ditto bogus PATH fix.
4878         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
4879         requires that grep correctly supports _multiple_ `-e' options, rather
4880         than stating only that grep should accept `-e'.
4882 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4884         Port to C99, which requires that 'exit' be declared.
4886         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
4887         to ensure that stdlib.h is included.
4888         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
4889         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
4890         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
4891         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
4892         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
4893         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
4894         when using 'exit' in a test; C99 requires that 'exit' be declared.
4896 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4898         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
4899         now prefers 'grep' implementations that accept -e.
4900         (Limitations of Usual Tools): Describe problems of traditional
4901         egrep and fgrep with long input lines, and of traditional grep
4902         with -e.
4903         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
4904         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
4905         All callers changed.  Append /usr/xpg4/bin to the PATH, for
4906         Solaris.
4907         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
4908         the user with complaints about multiple -e options.
4909         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
4910         Define it with AC_PROG_GREP.
4911         * configure.ac (AC_PROG_GREP): Add.
4912         * lib/freeze.mk (GREP): New macro.
4914 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
4916         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
4917         a possible candidate only after all others fail, rather than
4918         consulting it first.  This improves backward compatibility by
4919         better reflecting the way shell selection occurred in previous
4920         versions of Autoconf, and should help to avoid triggering latent
4921         problems in other packages, such as the one in Automake where zsh
4922         is not handled robustly:
4923         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
4924         Although it is not Autoconf's responsibility to work around
4925         problems in Automake, it nevertheless makes sense to avoid
4926         introducing unnecessary incompatibilites.
4928 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
4929             Gary V. Vaughan  <gary@gnu.org>
4931         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
4932         how deeply nested we are when a suitable tool is found, set the
4933         ac_path_TOOL_found flag.
4934         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
4935         nested we are in this macro.  Break out of all 3 nested loops if
4936         ac_path_TOOL_found is set.
4938 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
4940         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
4941         of the _AS_PATH_WALK loop too if GNU flavor is found.
4943 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
4945         * doc/autoconf.texi (Limitations of Make): Update documentation
4946         for `$<'.  New entry `Long lines', based on a report from Simon
4947         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
4948         paragraph about DJGPP, based on a mail from Richard Dawe.
4950 2004-04-20  Paul Eggert  <eggert@twinsun.com>
4952         * tests/c.at (C keywords): Don't assume that GCC supports
4953         "restrict" and "inline", as sufficiently-old GCC versions do not
4954         (also, GCC configured to be in pedantic C89 mode does not).
4955         Problem reported by Sumit Pandya in:
4956         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
4958         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
4959         consider -g to work if it generates warnings when plain compiles
4960         don't.  Problem reported by Braden McDaniel in:
4961         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
4963         * doc/autoconf.texi (Slashes): New section, to document a problem
4964         reported by Jim Meyering in:
4965         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
4967         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
4968         linker output files before linking, to work around IRIX 6 linker bug.
4969         Problem reported by Rainer Orth in:
4970         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
4972 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
4974         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
4975         best tool so far counter rely on the tool path variable name to
4976         avoid checks for one tool being affected by the results of running
4977         the length check on a previous tool.
4979         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
4980         match expression argument, as different greps have different
4981         regular expression flavours.
4982         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
4983         literals.
4984         (AC_PROG_EGREP): Pass 'EGREP$'.
4985         (AC_PROG_GREP): Pass 'GREP$'.
4987 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
4989         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
4990         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
4992 2004-03-29  Paul Eggert  <eggert@twinsun.com>
4994         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
4995         Types, Specific Compiler Characteristics, System Services,
4996         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
4997         etc. consistently instead of 'long', 'short', 'unsigned' etc.
4998         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
4999         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
5000         Likewise.
5001         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
5002         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
5003         AC_TYPE_OFF_T): Likewise.
5004         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
5005         Likewise.
5007         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
5008         pacify libtool 1.5.2.  Fix quoting problems in sed command.
5010 2004-03-28  Paul Eggert  <eggert@twinsun.com>
5012         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
5013         now defines HAVE_DECL_TZNAME if it is declared, when
5014         HAVE_STRUCT_TM_TM_ZONE is not defined.
5015         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
5016         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
5017         for HAVE_TZNAME.
5019 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
5021         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
5022         superfluous backslashing of quotes (") in sed expressions;
5023         thanks to Paul Eggert.
5025 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
5027         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
5028         Fortran compiler is ifort, also added pghpf; thanks to Nelson
5029         H. F. Beebe for the bug report.
5031 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
5033         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
5034         quoted -cmdline argument in Portland Group compiler (bug
5035         reported by Jeffrey J. Barteet).
5037 2004-03-25  Kevin Ryde  <user42@zip.com.au>
5039         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
5040         (Run Time): ... here, where it's now mentioned.
5042 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
5044         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
5045         inherits from language Autoconf-without-aclocal-m4.
5046         (Customizing autom4te): Adjust example; the cache must now be
5047         disabled for language Autoconf-without-aclocal-m4.
5049 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
5050             Nathanael Nerode  <neroden@twcny.rr.com>
5052         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
5053         AC_CHECK_TOOLS): Warn if a cross-tool is found without
5054         a prefix.
5055         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
5056         AC_CHECK_TARGET_TOOLS): New macros.
5057         * doc/autoconf.texi (Generic Programs): Document
5058         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
5059         AC_CHECK_TARGET_TOOLS, and warn for future changes
5060         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
5061         AC_CHECK_TOOLS.
5062         (Specifying Names): Document the reason for these future
5063         behavioral changes.
5064         * tests/mktests.sh: Do not generate tests for the
5065         new macros.
5066         * NEWS: Document these changes.
5068         * doc/autoconf.texi: Avoid macros with unbraced arguments,
5069         they make TeX hang up.
5071 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
5073         * NEWS: New macro AC_CHECK_ALIGNOF.
5074         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
5075         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
5076         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
5077         vowel.
5078         (AC_CHECK_ALIGNOF): New macro.
5079         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
5080         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
5081         those for sizeof.
5083 2004-03-03  Paul Eggert  <eggert@twinsun.com>
5085         * bin/Makefile.am (edit): Don't use $< in a context where
5086         POSIX doesn't require support for it.  Use $@.in instead.
5087         Problem reported by Anthony N. Frasso in
5088         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
5089         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
5091 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
5093         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
5094         from the next generation of Libtool.
5095         * lib/autom4te.in (Autoreconf-preselections): Ditto.
5097 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
5099         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
5100         is not always thread-safe.  Report from Nathanael Nerode.
5102 2004-02-18  Paul Eggert  <eggert@twinsun.com>
5104         Fix a dependencies problem, stemming from a Autoconf 2.59 build
5105         problem on QNX reported by Stephen Rasku in
5106         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
5108         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
5109         $(m4sh_m4f_dependencies); this removes a FIXME.
5110         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
5111         (MAINTAINERCLEANFILES): Split into pieces,
5112         one per related section.  Add $(srcdir)/wrapper.in.
5114 2004-02-09  Paul Eggert  <eggert@twinsun.com>
5116         * doc/autoconf.texi (Setting Output Variables): Emphasize that
5117         AC_SUBST provides no portable way to escape literal newlines.
5119         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
5120         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
5121         Darwin uses -lcrt2.o and there's little point to cataloging all
5122         the system variants.  Partial fix reported by Andreas Waechter in:
5123         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
5124         for bug reported by Nelson H. F. Beebe in:
5125         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
5127 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
5129         * doc/autoconf.texi (AU_DEFUN): Fix English,
5130         suggested by Paul Eggert.
5131         * lib/autoconf/autoupdate.m4: Correct reference to
5132         acobsolete.m4, suggested by Alexandre Duret-Lutz.
5134 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
5136         * bin/autoupdate.in: Define __file__ so that warnings
5137         refer to the correct file.
5138         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
5139         the behavior of the third argument.
5140         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
5141         correctly the behavior of the third argument.  Document
5142         what the three macros that AU_DEFUN defines do.  Fix
5143         warning message when the third argument includes $0
5144         (reported by Alexandre Duret-Lutz).
5146 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
5147             Eric Sunshine  <sunshine@sunshineco.com>
5148             Paul Eggert  <eggert@twinsun.com>
5150         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
5151         (AS_INIT): Output shell initialization there. Removed optional
5152         parameter. Expand _AS_SHELL_FN_SPY.
5153         (AS_INIT_WITH_SHELL_FN): Removed.
5154         (_AS_SHELL_FN_SPY): New macro.
5155         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
5156         macros.
5157         (AS_SHELL_SANITIZE): Remove loop to find better shell
5158         and documentation for the parameter.
5159         (_AS_DETECT_BETTER_SHELL): Move it here.
5160         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
5161         (_AS_RUN): Move it here, support testing with eval.
5162         (AS_REQUIRE_SHELL_FN): Require shell functions when
5163         it is used.
5164         (_AS_LINENO_WORKS): Put around braces, we do not
5165         trigger the bash bug anymore.
5166         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
5167         use AS_INIT_WITH_SHELL_FN.
5168         * bin/autoconf.in, tests/wrapper.in: Regenerated.
5170 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
5172         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
5173         * doc/autoconf.texi: Don't say that the third parameter
5174         is broken.
5175         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
5176         (AU_DEFUN): Honor the third parameter, create autoupdate
5177         macros with AU_DEFINE.
5178         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
5179         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
5180         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
5181         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
5182         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
5183         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
5184         AC_XENIX_DIR): Likewise.
5185         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
5186         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
5187         * lib/autoconf/status.m4: Remove FIXME.
5188         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
5189         that the macro is not present anymore in the updated
5190         configure.ac.
5191         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
5192         of autoupdate.
5194 2004-01-28  Paul Eggert  <eggert@twinsun.com>
5196         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
5197         copyright years.
5198         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
5199         2003 (except 1997) to the list of copyright years.  This undoes
5200         the 2003-05-22 change, which removed the older years from the list.
5201         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
5203 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
5204             Albert Chin-A-Young  <china@thewrittenword.com>
5206         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
5207         grep or ggrep program in PATH that accepts as long lines as
5208         possible.
5209         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
5210         AC_PROG_GREP.
5211         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
5212         egrep and fgrep respectively if $GREP -E/-F don't work.
5213         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
5214         _AC_PROG_GREP, and AC_PROG_SED.
5215         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
5216         longest input length accepted by a command.
5217         (AC_PROG_SED): Use it.
5218         * doc/autoconf.texi (Particular Programs): Document the changes.
5219         * NEWS: Updated.
5221 2004-01-27  Paul Eggert  <eggert@twinsun.com>
5223         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
5224         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
5225         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
5226         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
5228         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
5229         bin/autoconf.in, config/Makefile.in, config/config.guess,
5230         config/config.sub, config/install-sh, config/mdate-sh,
5231         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
5232         lib/Makefile.in, lib/Autom4te/Makefile.in,
5233         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
5234         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
5235         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
5236         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
5237         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
5238         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
5239         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
5240         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
5241         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
5242         tests/actypes.at: Regenerate and/or sync with original
5243         sources.
5245 2004-01-26  Paul Eggert  <eggert@twinsun.com>
5247         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
5248         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
5249         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
5250         not <inttypes.h>.  Problem reported by Tim Mooney in
5251         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
5252         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
5253         Likewise.
5255         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
5256         otherwise "make check" fails because it forbids cmp (I guess
5257         because cmp treats files as binary on DOS-like systems).
5259         * tests/mktests.sh: Update copyright date to 2004, since some tests
5260         have changed in 2004.
5262 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
5264         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
5265         non-truncating sed or gsed program in PATH.
5266         * tests/acprograms.at: Add it.
5267         * doc/autoconf.texi (Particular Programs): Document it.
5268         * NEWS: Updated.
5270 2004-01-15  Paul Eggert  <eggert@twinsun.com>
5272         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
5273         -std1 disables some useful extensions on Tru64.  Problem reported
5274         by N. Lichtmaier in
5275         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
5277 2004-01-14  Paul Eggert  <eggert@twinsun.com>
5279         * doc/autoconf.texi (Programming in M4sh): Document that
5280         AS_MKDIR_P succeeds if the destination is a symbolic link
5281         to an existing directory.
5282         (Limitations of Usual Tools): Note that mkdir -p might not
5283         succeed on symlinks to directories.
5285 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
5287         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
5288         * bin/autoheader.in: Grammar fix in message.
5289         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
5290         Test for dir before calling mkdir -p.  (trivial changes)
5292 2004-01-13  Eric Blake  <ebb9@byu.net>
5294         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
5295         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
5297 2004-01-10  Jim Meyering  <jim@meyering.net>
5299         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
5301 2004-01-09  Paul Eggert  <eggert@twinsun.com>
5303         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
5304         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
5305         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
5306         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
5307         AC_COMPILE_IFELSE, since we now assume our caller invokes
5308         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
5309         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
5310         of AC_RUN_IFELSE; this avoids the warning mentioned above.
5311         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
5313 2004-01-07  Paul Eggert  <eggert@twinsun.com>
5315         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
5316         `"'...'"`, as it's confusing (and I suspect it may not work on
5317         some platforms).  The code was incorrect anyway, as it assumed
5318         that \$ evaluated to itself in that context.  Reported by
5319         Alexandre Duret-Lutz.
5321 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
5323         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
5324         and _LT_AC_TAGCONFIG.
5326 2004-01-06  Paul Eggert  <eggert@twinsun.com>
5328         * doc/autoconf.texi (One Macro Call): Fix an incorrect
5329         example, and add more examples.  Reported by Eric Sunshine.
5331 2004-01-05  Paul Eggert  <eggert@twinsun.com>
5333         * doc/autoconf.texi (Limitations of Usual Tools):
5334         Remove warning against "rm -fr" introduced yesterday; it
5335         was a false alarm.
5337         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
5338         autoscan, autoupdate, ifnames): Don't use chmod -w.
5339         * lib/Makefile.am (autom4te.cfg): Likewise.
5340         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
5341         "chmod -w".
5343 2004-01-04  Paul Eggert  <eggert@twinsun.com>
5344             Paolo Bonzini  <bonzini@gnu.org>
5346         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
5347         by doing lineno substitution only on lines containing "$LINENO".
5349 2004-01-04  Paul Eggert  <eggert@twinsun.com>
5351         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
5352         Use "rm -f" to remove conftest.sed, not plain "rm".
5353         Bug reported by David Relson in
5354         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
5356         * Makefile.am (autom4te-update):
5357         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
5358         * Makefile.maint (my-distcheck, do-po-update): Likewise.
5359         * doc/autoconf.texi (Guidelines): Likewise.
5360         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
5361         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
5362         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
5363         * lib/autotest/general.m4 (AT_INIT): Likewise.
5364         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
5365         * tests/Makefile.am (clean-local): Likewise.
5366         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
5367         srcdir): Likewise.
5368         * doc/autoconf.texi (Limitations of Usual Tools):
5369         Warn against "rm -fr".
5371 2004-01-03  Paul Eggert  <eggert@twinsun.com>
5373         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
5374         -c -o might not work.  From a suggestion by Kevin Ryde.
5375         (C Compiler, Generating Sources, Limitations
5376         of Usual Tools, Limitations of Make, Making testsuite Scripts):
5377         Don't put '-o' after non-options, as POSIX doesn't allow this.
5378         Mention that cc's name might be gcc or c89 or whatever.
5380 2004-01-04  Kevin Ryde  <user42@zip.com.au>
5382         * doc/autoconf.texi: Add various further index entries.
5384 2003-12-29  Paul Eggert  <eggert@twinsun.com>
5386         * bin/autoreconf.in (autoreconf_current_directory):
5387         Fix typo: mkdir without umask arg.
5389 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
5391         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
5392         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
5393         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
5394         explanation clearer.
5396 2003-12-24  Andreas Schwab  <schwab@suse.de>
5398         * doc/autoconf.texi (Default Includes): Fix misspelling of
5399         AC_INCLUDES_DEFAULT.
5401 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
5403         * configure.ac: Test if sh -n works.
5404         * configure: Regenerate.
5405         * tests/atlocal.in: Store the result here.
5406         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
5407         tools.at, looking in atlocal's ac_cv_sh_n_works instead
5408         of explicitly testing.
5409         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
5410         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
5411         * tests/tools.at (Syntax of the shell scripts): Simplify
5412         using AT_CHECK_SHELL_SYNTAX.
5413         (Syntax of the Perl scripts): Remove definition of
5414         AT_CHECK_PERL_SYNTAX.
5416 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
5418         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
5419         stderr to /dev/null.
5420         * bin/autoconf.in: Regenerate.
5421         * bin/wrapper.in: Regenerate.
5423 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
5425         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
5426         Extracted from AS_SHELL_SANITIZE.
5427         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
5428         macros.
5429         (AS_SHELL_SANITIZE): Move reinvocation code from
5430         _AS_LINENO_WORKS, use it to find out if shell
5431         functions work.
5432         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
5433         does not work.
5434         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
5435         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
5436         was called.
5437         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
5438         * bin/autoconf.in: Regenerate.
5439         * tests/wrapper.in: Regenerate.
5440         * tests/tools.at: Test the syntax of tests/autoconf
5441         and tests/testsuite.
5443 2003-11-24  Akim Demaille  <akim@epita.fr>
5445         * config/announce-gen (&print_locations, &print_signatures)
5446         (&sizes): New.
5447         Use them.
5448         No longer rely on Gnus to inline the list of signatures: compute
5449         them on the fly.
5451 2003-11-24  Akim Demaille  <akim@epita.fr>
5453         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
5454         override some files.
5455         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
5456         From Debian Autoconf 2.58.
5458 2003-11-24  Akim Demaille  <akim@epita.fr>
5460         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
5461         uses.
5462         From Debian Autoconf 2.58.
5464 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5466         * TODO: Remove already done things.  Update the part about finding
5467         tools for the target.
5469 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5471         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
5472         Make wording more consistent.
5473         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
5474         Explain the transition better.
5475         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
5476         the transition better.
5478 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
5480         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
5481         parameter of AU_DEFUN.
5482         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
5483         (AU_DEFUN): Remove the third parameter, it was not used.
5484         Use AC_DEFUN directly, not AU_DEFINE.
5485         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
5486         the expanded body, consistently with other macros such as AC_USG.
5488 2003-11-17  Paul Eggert  <eggert@twinsun.com>
5490         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
5491         into the initial confdefs.h, to work around a bug in NextStep 3.3
5492         patch 3 reported by Eric Sunshine.
5494 2003-11-15  Kevin Ryde  <user42@zip.com.au>
5496         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
5497         than $target since the latter is not usual, add guidelines on when to
5498         use or not use the system type.
5500 2003-11-12  Derek Price  <derek@ximbiot.com>
5502         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
5503         typo misrepaired by an auto-spellcheck.
5505 2003-11-12  Akim Demaille  <akim@epita.fr>
5507         * bin/autoreconf.in (&parse_args): Don't call automake with
5508         --force-missing unless it actually supports it.
5509         From Debian #219336.
5511 2003-11-12  Akim Demaille  <akim@epita.fr>
5513         * configure.ac: Bump to 2.59a.
5514         Require 2.59.
5516 2003-11-06  Akim Demaille  <akim@epita.fr>
5518         Version 2.59.
5520 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
5522         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
5523         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
5524         and ac_abs_top_srcdir are absolute paths.
5525         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
5527 2003-11-05  Akim Demaille  <akim@epita.fr>
5529         * configure.ac: Bump to 2.58a.
5531 2003-11-05  Kevin Ryde  <user42@zip.com.au>
5533         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
5534         it provokes a warning from makeinfo about looking like a cross
5535         reference in info output.
5537         * doc/autoconf.texi (Function Portability): Add notes on signal
5538         handler return type, as per AC_TYPE_SIGNAL.
5540 2003-11-04  Akim Demaille  <akim@epita.fr>
5542         Version 2.58.
5543         * doc/standards.texi: Update from master.
5545         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
5547 2003-11-04  Akim Demaille  <akim@epita.fr>
5549         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
5550         computing the absolute path to d1 in the source hierarchy: it may
5551         not exist at all.  So don't cd into it.
5552         From Alexandre Duret-Lutz.
5553         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
5555         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
5556         From Paul Eggert, but named after Perl's IO::Spec->catfile.
5557         * doc/autoconf.texi (Programming in M4sh): Document.
5558         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
5560 2003-11-03  Pavel Roskin  <proski@gnu.org>
5562         * doc/autoconf.texi (Generic Structure Checks): Describe
5563         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
5565 2003-10-31  Akim Demaille  <akim@epita.fr>
5567         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
5568         (GNU Fortran): New.
5569         * doc/autoconf.texi (Language Choice): Document.
5570         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
5571         the current language is Fortran.
5573 2003-10-31  Akim Demaille  <akim@epita.fr>
5575         * bin/autom4te.in (&freeze): Use a less likely warning separator
5576         than `\n\n', so that `\n\n\n' is valid in warnings.
5577         Reported by Steve Huston.
5579 2003-10-28  Akim Demaille  <akim@epita.fr>
5581         * Makefile.cfg (local_updates, executable-update): Tweak to be
5582         robust to parallel makes.
5583         Suggested by Alexandre Duret-Lutz.
5585 2003-10-27  Akim Demaille  <akim@epita.fr>
5587         * Makefile.cfg (executable-update): New.
5588         (local_updates): Call it.
5590 2003-10-27  Akim Demaille  <akim@epita.fr>
5592         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
5593         Don't remove core.* as it may remove valid user files.
5594         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
5595         (AC_FUNC_UTIME_NULL): Likewise.
5597 2003-10-23  Akim Demaille  <akim@epita.fr>
5599         Version 2.57g.
5600         * config/config.guess, config/config.sub: Upgrade from masters.
5602 2003-10-23  Akim Demaille  <akim@epita.fr>
5604         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
5605         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
5606         hand...
5608 2003-10-23  Akim Demaille  <akim@epita.fr>
5610         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
5611         Don't forget to remove conftest.err.
5613 2003-10-23  Akim Demaille  <akim@epita.fr>
5615         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
5616         same object file in $LIBOBJS.
5617         Reported by Alexandre Duret-Lutz & Derek Robert Price.
5618         * doc/autoconf.texi (Generic Functions): Adjust.
5620 2003-10-20  Paul Eggert  <eggert@twinsun.com>
5622         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
5623         Use 'eval', so that the resulting configure scripts work even if
5624         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
5626 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
5628         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
5629         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
5630         (_AC_LINK_IFELSE): Check the werror flag.
5631         * doc/autoconf.texi (Generic Compiler Characteristics): Document
5632         AC_LANG_WERROR.
5633         * NEWS: Mention it.
5635 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
5637         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
5638         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
5639         override AC_LINK_IFELSE.
5641 2003-10-15  Paul Eggert  <eggert@twinsun.com>
5643         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
5644         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
5645         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
5646         Mention /usr/dt/bin/dtksh on Solaris.
5647         (Shell Substitutions): Warn about $((...)).
5648         (Parentheses): New section.
5650 2003-10-15  Kevin Ryde  <user42@zip.com.au>
5652         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
5653         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
5655 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5657         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
5658         cross test.
5660 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
5662         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
5663         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
5665 2003-10-10  Andreas Schwab  <schwab@suse.de>
5667         * bin/autoheader.in: Avoid empty first line in --version and
5668         --help output.
5669         * bin/ifnames.in: Likewise.
5671 2003-10-09  Paul Eggert  <eggert@twinsun.com>
5673         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
5674         Issue a more-informative diagnostic.
5675         Problems reported by Eric Sunshine.
5677 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
5679         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
5680         -mGLOB_options_string stuff for Intel ifc, which can cause
5681         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
5682         pattern-matching instead of grep.
5684 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
5686         * doc/autoconf.texi: Document new FC Fortran macros.
5688 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
5690         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
5691         that future autopoint/aclocal/automake/autoreconf will be able
5692         to trace to find where to install local m4 macros.
5693         * doc/autoconf.texi (Input): Document it.
5694         * NEWS: Updated.
5696 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
5698         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
5699         -lcrtbegin.o to list of ignored flags and fix underquoting of
5700         -lcrt[01].o.
5702 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
5704         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
5705         cache variable instead of $G77 to decide whether to include -O2,
5706         since $G77 is specific to Fortran 77.
5708 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5710         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
5711         free" flag.  Re-order flags tested into rough order of popularity.
5713 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
5715         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
5716         arguments so that it can be used with syntax identical to
5717         AC_PROG_F77, and so that we can more easily decide to
5718         remove/deprecate the DIALECT optional argument in the future if it
5719         proves troublesome.
5720         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
5721         non-freeform-supporting compilers.  Document freeform flags.
5723 2003-10-03  Akim Demaille  <akim@epita.fr>
5725         * configure.ac: Look for emacs, not macs.
5726         Reported by Eric Sunshine.
5728 2003-10-03  Akim Demaille  <akim@epita.fr>
5730         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
5731         * bin/autoreconf.in (autoreconf_current_directory): Create the
5732         AUX_DIR if needed, for sake of automake --add-missing etc.
5733         Suggested by Alexandre Duret-Lutz.
5735 2003-10-03  Akim Demaille  <akim@epita.fr>
5737         * configure.ac: Quotation and formatting changes.
5738         (EMACS): Don't set it if it is not recent enough to support
5739         autoconf-mode.el.
5740         From Eric Sunshine.
5742 2003-10-02  Akim Demaille  <akim@epita.fr>
5744         * bin/ifnames.in (&scan_file): Skip C++ comments.
5745         From Jeremy Yallop.
5747 2003-10-01  Pavel Roskin  <proski@gnu.org>
5749         * doc/autoconf.texi (Particular Structure Checks):
5750         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
5752 2003-10-01  Akim Demaille  <akim@epita.fr>
5754         Version 2.57f.
5756 2003-09-30  Paul Eggert  <eggert@twinsun.com>
5758         * lib/Autom4te/XFile.pm: Use Errno.
5759         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
5760         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
5762 2003-09-30  Akim Demaille  <akim@epita.fr>
5764         * config/announce-gen (&print_news_deltas): Extracted from...
5765         (&print_changelog_deltas): here.
5766         (&news_file): Rename as...
5767         (@news_file): this.
5769 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
5771         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
5772         have been created when invoking the compiler.
5773         * tests/fortran.at (GNU Fortran 77): Quote $G77.
5775 2003-09-29  Akim Demaille  <akim@epita.fr>
5777         Version 2.57e.
5779         * config/mkinstalldirs: Upgrade.
5781 2003-09-28  Paul Eggert  <eggert@twinsun.com>
5783         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
5784         Problem reported by Lars J. Aas in
5785         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
5786         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
5787         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
5788         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
5790 2003-09-26  Akim Demaille  <akim@epita.fr>
5792         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
5793         directory for AC_CONFIG_COMMANDS' first argument exists.
5794         This makes valid the invocation of _AC_SRCPATH that follows.
5795         Reported by Eric Sunshine.
5796         * doc/autoconf.texi (Configuration Commands): Adjust.
5798 2003-09-26  Akim Demaille  <akim@epita.fr>
5800         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
5801         Reported by Ralf Corsepius.
5803 2003-09-26  Akim Demaille  <akim@epita.fr>
5805         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
5806         arguments.
5807         Actually, use AU_ALIAS.
5808         From Bruno Haible.
5810 2003-09-26  Paul Eggert  <eggert@twinsun.com>
5812         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
5813         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
5814         Problem reported by Eric Sunshine in:
5815         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
5817 2003-09-26  Akim Demaille  <akim@epita.fr>
5819         The test suite are sometimes assigning timings incorrectly.
5820         Reported by Henk Krus.
5821         Diagnosed by Nicolas Joly.
5823         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
5824         AT_help_all.
5825         Instead of making AT_help a sequence of assignments to grow
5826         $at_help_all, just make AT_help_all be the growing contents of
5827         $at_help_all, and make a single assignment in...
5828         (AT_INIT): here.
5829         (at_times_skip): Flip the meaning and rename as...
5830         (at_times_p): this.
5831         (AT_INIT): When summarizing the test that ran, remove
5832         $at_times_file after use, and check it is present before trying to
5833         use it.
5835 2003-09-25  Akim Demaille  <akim@epita.fr>
5837         Version 2.57d.
5839         * bin/Makefile.am (edit): Handle '@configure_input@'.
5840         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
5841         (ifnames): chmod -w.
5842         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
5843         executables, not bin/ executables!  Otherwise all the magic needed
5844         to find non installed files is turned off.  This caused a failure
5845         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
5846         as found in its environment (sent by tests/autoreconf): pointing
5847         to bin/autom4te that could not find its files.
5848         * tests/mktests.sh: Force the replacement of generated files, for
5849         the sake of "mv" program that are interactive when overwriting a
5850         -w file.
5851         * config/install-sh: Upgrade from CVS Automake.
5853 2003-09-23  Paul Eggert  <eggert@twinsun.com>
5855         * doc/autoconf.texi (Limitations of Builtins): Document test -h
5856         versus test -L issues.
5858 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
5859             Paul Eggert  <eggert@twinsun.com>
5861         Trivial change to support GCC's configuration procedure.
5862         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
5863         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
5864         about inconsistency if the preprocessor is set to give errors for
5865         any warning.
5866         * doc/autoconf.texi (C Compiler Characteristics): Document this.
5868 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
5870         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
5871         and XFile.pm from Automake.
5872         * lib/Autom4te/XFile.pm: Update from Automake.
5874 2003-09-12  Akim Demaille  <akim@epita.fr>
5876         Version 2.57c.
5878 2003-09-12  Akim Demaille  <akim@epita.fr>
5880         * config/config.guess, config/config.sub, config/missing,
5881         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
5882         from masters.
5884 2003-09-12  Akim Demaille  <akim@epita.fr>
5886         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
5887         not asm/types.h.
5889 2003-09-11  Akim Demaille  <akim@epita.fr>
5891         * doc/autoconf.texi (Header Portability): linux/random.h.
5892         From Peter Hendrickson.
5894 2003-09-10  Akim Demaille  <akim@epita.fr>
5896         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
5897         willing to edit the output files.
5899 2003-09-10  Akim Demaille  <akim@epita.fr>
5901         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
5902         and AC_FC_FREEFORM.
5903         * tests/mktests.sh: Skip AC_FC_SRCEXT.
5904         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
5906 2003-09-09  Akim Demaille  <akim@epita.fr>
5908         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
5909         Reported by Gary Vaughan.
5910         * bin/autom4te.in (handle_m4): Likewise.
5912 2003-09-09  Akim Demaille  <akim@epita.fr>
5914         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
5915         trailing files.
5917 2003-09-07  Paul Eggert  <eggert@twinsun.com>
5919         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
5920         Improve the accuracy of the wording about obsolescence.
5921         From a suggestion by Ian Lance Taylor in
5922         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
5924 2003-09-05  Paul Eggert  <eggert@twinsun.com>
5926         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
5927         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
5929 2003-09-04  Akim Demaille  <akim@epita.fr>
5931         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
5932         AC_FUNC_WAIT3.
5934 2003-09-04  Akim Demaille  <akim@epita.fr>
5936         * bin/autom4te.in: Use &fatal where more appropriate than &error.
5937         (freeze): When exiting, use $exit_code.
5938         * lib/autoconf/fortran.m4: Comment changes.
5940 2003-09-04  Akim Demaille  <akim@epita.fr>
5942         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
5944 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
5946         Add support for newer Fortran dialects.  The F77 interface is
5947         unchanged, and continues to support Fortran 77.  New FC macros
5948         correspond to all the old F77 macros, with output variables FC,
5949         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
5950         available dialect, but older dialects can be specified.  There are
5951         new macros AC_FC_SRCEXT to set the source extension, and
5952         AC_FC_FREEFORM to accept free-form source files.
5954         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
5955         New macros.
5956         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
5957         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
5958         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
5959         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
5960         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
5961         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
5962         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
5963         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
5964         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
5965         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
5966         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
5967         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
5968         AC_FC_SRCEXT, AC_FC_FREEFORM):
5969         New macros.
5970         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
5971         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
5972         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
5973         Rewrite in terms of the above.
5974         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
5975         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
5976         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
5977         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
5979 2003-09-02  Paul Eggert  <eggert@twinsun.com>
5981         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
5982         Document problems with timestamp resolution that 'make', 'cp -p', and
5983         'touch -r' have.
5985 2003-08-27  Akim Demaille  <akim@epita.fr>
5987         * tests/m4sugar.at (cross_warning): Make sure to enable the
5988         output, so that we can track spurious m4sugar output.
5989         * tests/local.at: Require 2.57.
5990         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
5991         are defaulted by AT_CHECK anyway.
5992         Use AT_CHECK_AUTOM4TE.
5993         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
5994         missing dnl.
5996 2003-08-27  Akim Demaille  <akim@epita.fr>
5998         * bin/autoheader.in: Issue the "Using auxiliary..." message only
5999         when -Wobsolete is set.
6000         Set it on by default.
6001         Suggested by Klee Dienes.
6003 2003-08-27  Akim Demaille  <akim@epita.fr>
6005         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
6006         documentation.
6007         From Guido Draheim.
6009 2003-08-26  Akim Demaille  <akim@epita.fr>
6011         * doc/autoconf.texi (Output): Make clear that one can run code
6012         after AC_OUTPUT.
6014 2003-08-25  Akim Demaille  <akim@epita.fr>
6016         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
6017         CVS Bison.
6019 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
6021         * bin/autoreconf.in (parse_args): Do not pass --no-force to
6022         Automake versions prior to 1.8.
6024 2003-08-25  Akim Demaille  <akim@epita.fr>
6026         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
6027         From Ville Karaila.
6029 2003-08-24  Akim Demaille  <akim@epita.fr>
6031         * configure.ac: Bump to 2.57c.
6033 2003-08-22  Akim Demaille  <akim@epita.fr>
6035         Version 2.57b.
6037         * Makefile.cfg (local-checks-to-skip): New.
6038         * Makefile.maint (local-check): Rename as...
6039         (local-checks-available): this.
6040         (local-check): New.
6042         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
6043         * configure.ac: Require Automake 1.7.6.
6045 2003-08-22  Akim Demaille  <akim@epita.fr>
6047         Output stack traces in warnings.
6049         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
6050         Replace the former...
6051         (m4_warn): Pass the call stack to _m4_warn.
6052         * bin/autom4te.in: Adjust to output the call stack.
6053         * tests/m4sugar.at (m4@&t@_warn): Adjust.
6055 2003-08-22  Akim Demaille  <akim@epita.fr>
6057         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
6058         * bin/autom4te.in: Adjust.
6060 2003-08-21  Akim Demaille  <akim@epita.fr>
6062         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
6063         (&verbose): Remove.
6064         (&getopt): Adjust the note and verb channels, depending upon
6065         --verbose.
6066         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
6067         * bin/autoupdate.in: Adjust.
6068         Use &verb, not &verbose.
6070 2003-08-21  Akim Demaille  <akim@epita.fr>
6072         * bin/autoheader.in (&parse_args): Use &parse_warnings and
6073         &parse_WARNINGS.
6074         ($help): Use Autom4te::ChannelDefs::usage.
6075         * bin/autoscan.in: Use Autom4te::ChannelDefs.
6076         * lib/Autom4te/General.pm: Don't export error: you don't own it.
6078 2003-08-21  Akim Demaille  <akim@epita.fr>
6080         First stab at preserving warnings between calls to autom4te,
6081         including when the cache is used.
6083         There are still several issues: (i) there are too many runs of m4
6084         (one for include, one for warnings, and some more), (ii) warnings
6085         spreading on several lines are not handled gracefully, (iii) the
6086         code meant to have the call stack display for errors does not work
6087         (its handling should move from m4 to autom4te).
6089         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
6090         Use them.
6091         (@preselect): Add m4_warn.
6092         ($exit_status): Remove, use $exit_code.
6093         ($help): Use Autom4te::ChannelDefs::usage.
6094         (&handle_m4): No longer define the m4_warnings.
6095         At each run, extract and report the warnings.
6096         Always cache the result, including if the exit status is on
6097         failure, since if nothing changes, we should result in the same
6098         failure, hence we can use the cache.
6099         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
6100         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
6101         Remove.
6102         (m4_warn): Redefine as a do-nothing: it is its invocation that
6103         matters, as warnings are now reported via traces.
6104         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
6105         the contents of m4_warn: make it _call_ m4_warn, so that tracing
6106         the latter reveals calls to the former.
6108         Adjust the tests.
6110         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
6112 2003-08-21  Akim Demaille  <akim@epita.fr>
6114         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
6115         Use them.
6117 2003-08-21  Akim Demaille  <akim@epita.fr>
6119         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
6120         forward order.
6121         * lib/Autom4te/ChannelDefs.pm: Doc typos.
6122         (&parse_warnings): Accept a list of warning requests.
6123         (&usage): Return a string, not a side effect.
6124         (cross): New warning category.
6126 2003-08-21  Akim Demaille  <akim@epita.fr>
6128         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
6129         (&require_configure_ac): Accept an optional directory argument.
6130         ($configure_ac): Remove.
6131         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
6132         (&catfile): Remove.
6133         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
6134         * bin/autoscan.in: Adjust.
6136 2003-08-20  Akim Demaille  <akim@epita.fr>
6138         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
6139         Reported by Alexandre Duret-Lutz.
6141 2003-08-20  Akim Demaille  <akim@epita.fr>
6143         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
6144         * bin/autom4te: Adjust.
6145         In particular, be Autoconf tools are really silent when properly
6146         working, bind the verbosity of the 'note' channel to $verbose.
6147         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
6148         (&xsystem, &contents): Remove, since they are exported by...
6149         * lib/Autom4te/FileUtils.pm: this.
6150         More perldoc.
6151         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
6152         * lib/Autom4te/FileUtils.pm: here.
6154 2003-08-20  Akim Demaille  <akim@epita.fr>
6156         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
6157         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
6158         from CVS Automake.
6160 2003-08-20  Akim Demaille  <akim@epita.fr>
6162         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
6163         (autom4te-update): New.
6164         * Makefile.cfg (update): Bind autom4te-update.
6166 2003-08-19  Derek Price  <derek@ximbiot.com>
6168         * lib/autotest/general.m4: Comment various HELP_* diversions.
6169         (PARSE_ARGS_BEGIN): New section for option parsing related
6170         initialization.
6171         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
6172         package specific options and associated help.
6174 2003-08-19  Akim Demaille  <akim@epita.fr>
6176         * config/announce-gen, Makefile.cfg: New.
6177         * Makefile.am: Adjust.
6178         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
6180 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
6182         * lib/autom4te.in (Automake-preselections): Preselect
6183         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
6184         and m4_sinclude.
6186 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
6188         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
6189         (Autoconf-without-aclocal-m4): ... this new language.
6190         * doc/autoconf.texi (autom4te Invocation): Mention
6191         Autoconf-without-aclocal-m4.
6193 2003-08-18  Derek Price  <derek@ximbiot.com>
6195         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
6196         RUN-IF-PASS optional arguments.
6198 2003-08-18  Derek Price  <derek@ximbiot.com>
6200         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
6202 2003-08-16  Derek Price  <derek@ximbiot.com>
6204         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
6205         STDOUT & STDERR arguments.
6207 2003-08-14  Derek Price  <derek@ximbiot.com>
6209         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
6210         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
6211         shorter column three.  Add DESCRIPTION to log file content.
6213 2003-08-13  Derek Price  <derek@ximbiot.com>
6215         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
6216         output.
6218 2003-08-12  Derek Price  <derek@ximbiot.com>
6220         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
6221         (AT_CHECK_NOESCAPE): Move core functionality to...
6222         (_AT_CHECK): ...this new macro.
6224 2003-08-07  Derek Price  <derek@ximbiot.com>
6226         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
6227         (AT_CHECK_NOESCAPE): ...to this new macro.
6229 2003-07-31  Paul Eggert  <eggert@twinsun.com>
6231         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
6232         in Bash 2.01.  Problem reported by Brian Gough in
6233         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
6235 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
6237         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
6238         -lcrt1.o, for OS X.  (trivial change)
6240 2003-07-07  Paul Eggert  <eggert@twinsun.com>
6242         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
6243         inside '#ifndef __cplusplus'.  Problem reported by
6244         Bob Friesenhahn.
6246 2003-07-06  Bill Clarke  <llib@computer.org>
6248         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
6249         'long', not 'int', for benefit of Sun's recent C++ compilers
6250         (trivial change).  See:
6251         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
6252         (This really should be 'intptr_t', not 'long', but that would
6253         take more work.)
6255 2003-06-25  Akim Demaille  <akim@epita.fr>
6257         * lib/Makefile.am (autom4te.cfg): Make it read only.
6258         Depend on Makefile since it contains substitutions.
6259         From Paolo Bonzini.
6260         * lib/autom4te.in (args): Add local.at? for Autotest args.
6261         This change was made on autom4te.cfg which is generated.
6262         Reported by Raja R. Harinath.
6264 2003-06-25  Akim Demaille  <akim@epita.fr>
6266         * doc/autoconf.texi (Header Portability): sys/mount.h.
6267         From Gareth McCaughan.
6269 2003-06-23  Akim Demaille  <akim@epita.fr>
6271         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
6272         not all of them.  This fixes 1. the fact that when testing
6273         Autoconf there are many many config.log, 2. the incorrect use of
6274         top_srcdir to find config.log.
6275         Don't mix the detailed output of failed test with the summary of
6276         failures.  Rather, append detailed log afterwards.
6278 2003-06-23  Akim Demaille  <akim@epita.fr>
6280         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
6281         always run: output config.log on $at_group_log.
6283 2003-06-23  Akim Demaille  <akim@epita.fr>
6285         * tests/torture.at (#define header templates): Don't use quotes in
6286         C++ comments as it puzzles Emacs' sh font-lock-mode.
6288 2003-06-23  Akim Demaille  <akim@epita.fr>
6290         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
6291         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
6292         * tests/atspecific.m4: Rename as...
6293         * tests/local.at: This.
6294         * tests/suite.at: Move the globals into...
6295         * tests/local.at: here.
6296         * tests/Makefile.am: Adjust.
6297         * doc/autoconf.texi (testsuite Scripts): Adjust.
6299 2003-06-21  Kevin Ryde  <user42@zip.com.au>
6301         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
6302         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
6303         ensuring we add -std1 for full-ANSI.
6305         * doc/autoconf.texi (hdrindex): New macro.
6306         Add index entries for portability of various standard header files.
6308 2003-06-20  Akim Demaille  <akim@epita.fr>
6310         * configure.ac: Bump to 2.57b.
6312 2003-06-20  Akim Demaille  <akim@epita.fr>
6314         Version 2.57a.
6316 2003-06-20  Akim Demaille  <akim@epita.fr>
6318         * bin/autom4te.in: Don't rely on $HOME being defined.
6319         Reported by Marc Espie as PR/233.
6321 2003-06-20  Akim Demaille  <akim@epita.fr>
6323         * lib/autotest/general.m4: Use at_times_file only if used.
6324         From Nicolas Joly.
6326 2003-06-20  Akim Demaille  <akim@epita.fr>
6328         * config/config.guess, config/config.sub, config/elisp-comp,
6329         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
6330         Update from masters.
6332 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
6334         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
6335         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
6336         (TEST_SCRIPT): New diversion.
6337         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
6338         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
6339         (AT_INIT): Support for expected failures.
6341 2003-06-02  Akim Demaille  <akim@epita.fr>
6343         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
6344         changes.
6345         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
6346         Autoconf nor Automake.
6347         (&contents): New, from Automake.
6348         PODify.
6350 2003-05-28  Paul Eggert  <eggert@twinsun.com>
6352         * NEWS, doc/autoconf.texi (Particular Functions),
6353         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
6354         is the inverse of localtime.
6356 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
6358         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
6359         (handle_exec_errors): New function.  Work around $! being
6360         altered by WEXITSTATUS.
6361         (xqx, xsystem): Use handle_exec_errors.
6363 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
6365         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
6366         Do not call `_exit()', simply modify `$?'.
6367         (xsystem): Reset $! before running system, and check it afterward.
6368         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
6369         63 for version mismatches.
6371 2003-05-23  Akim Demaille  <akim@epita.fr>
6373         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
6374         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
6375         the middle of a line).
6376         * lib/m4sugar/m4sugar.m4: Likewise.
6377         Remove useless spaces in comments.
6379 2003-05-23  Akim Demaille  <akim@epita.fr>
6381         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
6382         exit 63, so that we (or Automake's "missing") can tell the
6383         difference with a plain failure.
6384         * doc/autoconf.texi (Notices): Adjust.
6386 2003-05-23  Akim Demaille  <akim@epita.fr>
6388         * Makefile.am, bin/Makefile.am, config/Makefile.am,
6389         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
6390         White spaces cleanup.
6392 2003-05-22  Jim Meyering  <jim@meyering.net>
6393             Paul Eggert  <eggert@twinsun.com>
6395         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
6396         Remove `#include <stdlib.h>' from the list; we should never
6397         make confdefs.h include <stdlib.h> or <cstdlib>, because the
6398         resulting namespace pollution would cause other tests to fail.
6399         Configure scripts run with some older versions of g++ and HP's
6400         aCC would fail due to such an #include.  Problems reported by
6401         Matthew Mueller in <http://bugs.debian.org/120704> and by
6402         Keith Bostic in
6403         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
6404         In the test, use the test declaration before including <stdlib.h>,
6405         as that's closer to how it'll be used.
6407 2003-05-23  Akim Demaille  <akim@epita.fr>
6409         * doc/autoconf.texi (Header Portability): ucred.h.
6410         From Ian Redfern.
6412 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
6414         Overhaul Autotest's logging: generate separate log files
6415         in testsuite.dir/NNN/testsuite.log, and append them to
6416         testsuite.log instead of re-running the test verbosely.
6418         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
6419         file descriptor, write 0 to at_status_file instead of setting
6420         at_status=0, initialize some new variables (at_status_file,
6421         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
6422         to rerun the tests, instead append the at_group_log to the
6423         at_suite_log when a test fails.
6424         (AT_SETUP): pipe the test case's output into at_tee_pipe,
6425         with the AS_MESSAGE_LOG_FD redirected to stdout.
6426         (AT_CLEANUP): save the output status in $at_status_file
6427         and restore it, redirect the AS_MESSAGE_LOG_FD back to
6428         its original place.
6429         (AT_CHECK): since tests are run with a redirected stdout,
6430         and used to be re-run in verbose mode, turn some $at_verbose
6431         into echo, and don't redirect the output of testing stdout
6432         and stderr.
6434         * lib/autotest/autoconf.texi (testsuite Scripts): Update
6435         the name of the debugging directory and information about
6436         its contents.
6438 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
6440         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
6441         parameter.
6443 2003-05-22  Akim Demaille  <akim@epita.fr>
6445         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
6446         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
6447         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
6448         * lib/autoconf/status.m4: Fix and adjust copyright notices.
6450 2003-05-22  Akim Demaille  <akim@epita.fr>
6452         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
6453         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
6454         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6455         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
6456         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
6457         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
6458         * lib/autoconf/status.m4, lib/autoconf/types.m4,
6459         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
6460         * tests/atspecific.m4, tests/base.at, tests/compile.at,
6461         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
6462         * tests/tools.at, tests/torture.at:
6463         Whitespace clean up.
6464         Suggested by Jim Meyering.
6466 2003-05-22  Akim Demaille  <akim@epita.fr>
6468         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
6469         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
6470         Reported by Jim Meyering.
6472 2003-05-22  Akim Demaille  <akim@epita.fr>
6474         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
6475         Add AC_HELP_STRING  to the obsolete macros section.
6476         Typos.
6477         Use '@.' for sentences that ended in a capital letter.
6478         From Art Haas.
6480 2003-05-22  Akim Demaille  <akim@epita.fr>
6482         * config/config.guess, config/config.sub, config/elisp-comp,
6483         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
6484         * config/texinfo.tex, doc/standards.texi: Update from masters.
6486 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
6488         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
6489         it to eval.
6491 2003-05-21  Akim Demaille  <akim@epita.fr>
6493         * bin/autoupdate.in ($m4): Fix quotation.
6494         Reported by Martin Mokrejs.
6496 2003-05-19  Paul Eggert  <eggert@twinsun.com>
6498         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
6499         Remove non-ASCII characters.
6501 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
6503         * tests/semantics.at (AC_SEARCH_LIBS): New test.
6504         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
6505         AC_CHECK_HEADERS_NEW): New tests.
6507 2003-05-17  Akim Demaille  <akim@epita.fr>
6509         * lib/autoconf/functions.m4: Use the default includes so that
6510         memcmp be declared before being tested.
6511         Reported by Sander Niemeijer.
6512         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
6513         * doc/autoconf.texi (Default Includes): Document
6514         AC_INCLUDES_DEFAULT.
6516 2003-05-17  Akim Demaille  <akim@epita.fr>
6518         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
6519         * doc/autoconf.texi (Obsolete Macros): Adjust.
6520         Reported by Werner LEMBERG and Debian Bug 190886.
6522 2003-05-16  Akim Demaille  <akim@epita.fr>
6524         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
6525         user name space clashes.
6526         Reported by Bruno Haible.
6528 2003-05-16  Akim Demaille  <akim@epita.fr>
6530         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6531         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
6532         them uniform, and more robust to Perl special characters.
6533         Reported by Martin Mokrejs.
6535 2003-05-14  Akim Demaille  <akim@epita.fr>
6537         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
6539 2003-05-14  Akim Demaille  <akim@epita.fr>
6541         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
6542         linux/irda.h.
6544 2003-05-12  Akim Demaille  <akim@epita.fr>
6546         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
6547         message.
6548         From Matthias Andree.
6550 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
6552         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
6553         and truncate.
6555 2003-05-06  Akim Demaille  <akim@epita.fr>
6557         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
6558         longer updates aclocal.m4 if useless, (ii) if a file m4_included
6559         by aclocal.m4 is changed it might require the importing of another
6560         m4 extension file, i.e., aclocal must be run.
6562         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
6563         (&parse_args): Use --force with aclocal if required and supported.
6564         (&autoreconf_current_directory): Use &run_aclocal.
6566 2003-05-06  Akim Demaille  <akim@epita.fr>
6568         Lock autom4te's cache.
6570         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
6571         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
6572         argument instead of a file name, so that the request file remains
6573         open during the whole autom4te run.
6574         ($icache_file): New.
6575         (&freeze): Lock the $icache_file.
6577 2003-04-29  Derek Price  <derek@ximbiot.com>
6579         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
6580         seperator with m4_append_uniq().  It doesn't work.
6581         (AT_CLEANUP): Add `;' to end of at_help_all.
6582         (AT_INIT): Allow --keywords to be specified more than once.  When
6583         grepping $at_help_all for keywords, use the field and keyword
6584         seperators to ensure a complete keyword match.  Alter at_prev handling
6585         to support the new --keywords behavior.
6587 2003-04-27  Karl Berry  <karl@freefriends.org>
6589         * doc/autoconf.texi: Make the dir entries in the autoconf manual
6590         align better with others.  I also made some of the individual
6591         entries on one line, for brevity and to make it easier for me to
6592         sort my dir-example file in the Texinfo distribution :).
6594 2003-04-12  Jim Meyering  <jim@meyering.net>
6596         * NEWS: Mention the new macro.
6597         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
6598         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
6599         * tests/c.at: Test AC_C_RESTRICT.
6600         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
6602 2003-04-08  Akim Demaille  <akim@epita.fr>
6604         * bin/ifnames.in: Skip C++ comments.
6605         From Jeremy Yallop.
6607 2003-04-08  Akim Demaille  <akim@epita.fr>
6609         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
6610         From Ilya Zakharevich.
6612 2003-04-08  Akim Demaille  <akim@epita.fr>
6614         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
6615         net/if.h, stdlib.h.
6617 2003-04-01  Derek Price  <derek@ximbiot.com>
6619         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
6620         from Akim's checkin of 2003-03-29.
6622 2003-04-01  Derek Price  <derek@ximbiot.com>
6624         * tests/torture.at (Configuring subdirectories): Add missing
6625         close-quote for Akim's change from 2003-03-28.
6627 2003-04-01  Akim Demaille  <akim@epita.fr>
6629         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
6630         (AC, AT, MS): these.
6631         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
6632         New.
6633         Use them.
6634         * doc/Makefile.am (CLEANFILES): Adjust.
6635         (TEXI2DVI): Make it --batch.
6637 2003-03-31  Derek Price  <derek@ximbiot.com>
6639         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
6640         which removed the main loop.
6641         Thanks to Akim Demaille.
6643 2003-03-29  Akim Demaille  <akim@epita.fr>
6645         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
6646         that starts a GUI.
6647         From Ilya Zakharevich.
6649 2003-03-29  Akim Demaille  <akim@epita.fr>
6651         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
6652         documentation to read is Autoconf's.
6653         Suggested by Paul Eggert.
6655 2003-03-28  Akim Demaille  <akim@epita.fr>
6657         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
6658         reading the section "Present But Cannot Be Compiled" when the
6659         header causes problems.
6661 2003-03-28  Akim Demaille  <akim@epita.fr>
6663         * tests/torture.at (Configuring subdirectories): Require aclocal
6664         1.4, otherwise the test fails, as it does support configure.ac.
6665         This fixes the "test 40 failed" bug reports.
6667 2003-03-28  Akim Demaille  <akim@epita.fr>
6669         * doc/autoconf.texi (C Compiler): `#line' portability.
6670         From Paul Eggert and Nelson H. F. Beebe.
6672 2003-03-27  Derek Price  <derek@ximbiot.com>
6674         * lib/autotest/general.m4: Eliminate main loop and reorganize test
6675         layout in order to allow scripting around test groups.
6677 2003-03-27  Derek Price  <derek@ximbiot.com>
6679         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
6680         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
6681         use new diversions in preparation for accepting new arguments and
6682         allowing scripting around tests.
6683         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
6685 2003-03-26  Derek Price  <derek@ximbiot.com>
6687         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
6688         obsolete AC_HELP_STRING.
6689         (AC_HELP_STRING): AU_DEFUN to...
6690         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
6691         * tests/m4sh.at (AS_HELP_STRING): New test.
6693         * tests/acgeneral.at: Regenerated.
6695 2003-03-26  Derek Price  <derek@ximbiot.com>
6697         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
6698         sense.  Verbosify the diversion definitions comment.
6700 2003-03-26  Derek Price  <derek@ximbiot.com>
6702         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
6703         AS_PREPARE.
6705 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
6707         * doc/autoconf.texi (Present But Cannot Be Compiled):
6708         Grammar fixes and minor rewording. (trivial change)
6710 2003-03-06  Paul Eggert  <eggert@twinsun.com>
6712         Work around a problem noted by Nelson H. F. Beebe with coreutils
6713         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
6714         2002/05/09) rejects '#line 32768 "configure"' because the line
6715         number overflows.
6716         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
6717         #line directives.
6718         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
6719         * doc/autoconf.texi (Generating Sources): Document this.
6721 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
6723         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
6724         file name for the m4 program, when it has an "exe" file extension.
6725         DJGPP's error messages include the error code in brackets -
6726         remove the error code during normalization.
6728 2003-02-28  Akim Demaille  <akim@epita.fr>
6730         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
6732 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
6734         * doc/autoconf.texi (Limitations of Make): Remove the section
6735         about `$<' in inference rules, it was a bogus interpretation of
6736         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
6737         Tru64 make in the "target lookup" section.
6738         (Automake): Automake 1.5+ no longer requires special tools to be
6739         present on the developer's host.
6741 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
6743         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
6744         to a shell that can handle redirection or quoting correctly.
6745         Override SHELL with the shell detected by configure.
6746         Use of $^O suggested by Tim van Holder.
6747         * bin/autom4te.in (BEGIN): Likewise.
6748         * bin/autoreconf.in (BEGIN): Likewise.
6749         * bin/autoscan.in (BEGIN): Likewise.
6750         * bin/autoupdate.in (BEGIN): Likewise.
6751         * bin/ifnames.in (BEGIN): Likewise.
6753         * bin/ifnames.in: Add final newline to help and version messages.
6755         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
6756         to cope with DOS-style absolute paths, when constructing
6757         ${ac_make}.
6759         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
6760         When constructing paths with IFS=:, quote the path. If we're
6761         constructing a DOS-style absolute path, we don't want to split it
6762         on the colon.
6764         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
6765         in description.
6767 2003-02-25  Pavel Roskin  <proski@gnu.org>
6769         * bin/autoheader.in: Add missing newline when printing
6770         suggestion how change AC_DEFINE call.
6772 2003-02-24  Paul Eggert  <eggert@twinsun.com>
6774         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
6775         2002-09-01 patch by replacing "test -n" with "test -z".
6776         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
6777         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
6779         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
6780         to fix a mismatch between example and discussion.
6782 2003-02-24  Kevin Ryde  <user42@zip.com.au>
6784         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
6785         format starting with "-".
6787 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
6789         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
6790         is not portable inside Makefile.
6792 2003-02-20  Akim Demaille  <akim@epita.fr>
6794         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
6795         compiler says yeah, but preproc says nope, compiler is right.
6796         Conversely, prompt the reader to send a bug report to the
6797         maintainers of the package, not of Autoconf.
6799 2003-02-20  Klee Dienes  <kdienes@apple.com>
6801         * bin/autoreconf.in (autoreconf_current_directory): Properly
6802         handle an empty aclocal.m4.
6804 2003-02-20  Akim Demaille  <akim@epita.fr>
6806         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
6807         $ac_prefix_program.
6808         From Larry Jones.
6810 2002-12-23  Paul Eggert  <eggert@twinsun.com>
6812         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
6813         innocuous variant befor including <limits.h> or <assert.h>.  This
6814         works around a bug reported by Albert Chin: HP-UX 11i
6815         (and earlier versions) have a <limits.h> that declares
6816         gettimeofday and many other functions.
6818 2002-12-03  Paul Eggert  <eggert@twinsun.com>
6820         Version 2.57.
6822         * NEWS, configure.ac: Update version.
6824         * doc/fdl.texi: Upgrade to FDL version 1.2.
6826         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
6827         nontrivially in main's body, so that f's external declaration is
6828         not optimized away in AIX.  This should fix the bug reported by
6829         Martin Frydl in
6830         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
6832         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
6833         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
6834         defined, to support freestanding compilers.  This should fix the
6835         bug reported by Momchil Velkov in
6836         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
6838         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
6839         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
6840         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
6841         by Simon Josefsson in
6842         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
6844         * Makefile.maint (www-gnu): New macro.
6845         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
6846         the location has moved.
6848 2002-12-02  Martin Frydl  <martin@systinet.com>
6850         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
6851         \(.*\) match is too long and there is something more to be checked.
6852         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
6854 2002-11-15  Akim Demaille  <akim@epita.fr>
6856         Version 2.56.
6858         * config/install-sh: chmod +x.
6859         From Paul Eggert.
6860         * config/move-if-change: Indenting changes.
6861         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
6862         * configure.ac (AM_INIT_AUTOMAKE): here.
6863         Require 1.7.1.
6865 2002-11-14  Akim Demaille  <akim@epita.fr>
6867         Version 2.55.
6869         * config/config.guess, config/config.sub, config/install-sh:
6870         Update from masters.
6872 2002-11-14  Akim Demaille  <akim@epita.fr>
6874         * Makefile.maint: Sync with Bison, i.e.:
6875         (po-check): Scan .l and .y files instead of the
6876         .c and the .h files that they generate.  This fixes the bug
6877         reported by Tim Van Holder in:
6878         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
6879         Look for N_ as well as for _.  Try to avoid matching #define for
6880         N_ and _.
6881         From Paul Eggert.
6883 2002-11-14  Akim Demaille  <akim@epita.fr>
6885         * doc/autoconf.texi (C Compiler): Compiling several files at once.
6886         From Paul Eggert and Albert Chin-A-Young.
6888 2002-11-14  Akim Demaille  <akim@epita.fr>
6890         * doc/autoconf.texi (C Compiler): Solitary backslashes.
6891         From Paul Eggert and Albert Chin-A-Young.
6893 2002-11-14  Kevin Ryde  <user42@zip.com.au>
6895         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
6896         than assigning in main, to avoid HP cc +O3 optimizing it away.
6898 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
6900         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
6901         option.  Process --recheck after parsing all options.  Pass -q
6902         option to configure on --recheck.
6903         (AC_OUTPUT): Pass -q from configure to config.status.
6904         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
6905         arguments to record.
6906         * doc/autoconf.texi (config.status Invocation): Document
6907         config.status -q option.
6909 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
6911         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
6912         Makefile.in if Makefile.am exists.
6913         (output): Strip `.am' from Makefiles.  Don't
6914         output AC_CONFIG_FILES if no Makefiles were found.
6916 2002-11-07  Akim Demaille  <akim@epita.fr>
6918         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
6919         (local_updates): New.
6920         * Makefile.maint: Update, from CVS Bison.
6921         (local_updates): New.
6923 2002-11-06  Akim Demaille  <akim@epita.fr>
6925         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
6926         declaration in extern "C" too.
6927         Reported by Roberto Bagnara.
6929 2002-11-06  Akim Demaille  <akim@epita.fr>
6931         * tests/torture.at (Configuring subdirectories): Don't use grep
6932         -w.
6933         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
6934         Reported by Ezra Peisach.
6936 2002-11-05  Akim Demaille  <akim@epita.fr>
6938         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
6939         Remove.
6940         We _have_ to stop using the old compatibility scheme that tried to
6941         avoid useless backslashes because Libtool 1.4.3 contains a
6942         AC_DEFINE([error_t], [int],
6943         [Define to a type to use for \`error_t' if it is not
6944         otherwise available.])
6945         We _have_ to quote the single quote and backslashes with \.  The
6946         old compatibility scheme saw that ` was backslashed, and therefore
6947         did not quote the single quote.  Hence before this patch, Autoconf
6948         was not compatible with Libtool.
6950 2002-11-04  Paul Eggert  <eggert@twinsun.com>
6952         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
6953         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
6954         LC_NAME, LC_PAPER, LC_TELEPHONE.
6955         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
6957 2002-11-04  Akim Demaille  <akim@epita.fr>
6959         Version 2.54c.
6961         * Makefile.maint (update, cvs-update, po-update, do-po-update):
6962         New.
6963         * config/texinfo.tex: Update.
6965 2002-11-03  Akim Demaille  <akim@epita.fr>
6967         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
6968         from...
6969         (&autoreconf): here.
6970         ($help, $make, &parse_args, &autoreconf_current_directory):
6971         Support -m/--make.
6972         * doc/autoconf.texi (autoreconf Invocation): Adjust.
6974 2002-10-31  Bruno Haible  <bruno@clisp.org>
6976         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
6977         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
6978         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
6979         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
6980         to ac_cv_func_realloc_0_nonnull.
6981         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
6983 2002-10-31  Akim Demaille  <akim@epita.fr>
6985         The test suite was no longer checking for trailing envvars and files.
6987         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
6988         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
6990 2002-10-31  Akim Demaille  <akim@epita.fr>
6992         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
6993         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
6994         Make variable, not a shell variable.
6995         Suggested by Bruno Haible.
6997 2002-10-31  Akim Demaille  <akim@epita.fr>
6999         * bin/autom4te.in (load_configuration): Reject #args out of any
7000         language.
7002 2002-10-31  Akim Demaille  <akim@epita.fr>
7004         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
7005         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
7006         (_AC_RUN_IFELSE): Use it.
7007         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
7008         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
7009         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
7010         inline it.
7012 2002-10-30  Akim Demaille  <akim@epita.fr>
7014         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
7015         * doc/autoconf.texi (autom4te Invocation): Adjust.
7016         Suggested by Tim van Holder.
7018 2002-10-29  Paul Eggert  <eggert@twinsun.com>
7020         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
7021         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
7022         Problem reported by Bruno Haible.
7024 2002-10-29  Akim Demaille  <akim@epita.fr>
7026         * doc/autoconf.texi (Header Templates): Put also in words what the
7027         pictures says to assist free style readers.
7028         (Customizing autom4te): s/--cache=/--cache /.
7030 2002-10-29  Akim Demaille  <akim@epita.fr>
7032         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
7033         sys/wait.h.
7034         sparc_address_test returns void.
7035         Use it with an argument, as prototyped.
7036         From Bruno Haible.
7038 2002-10-29  Akim Demaille  <akim@epita.fr>
7040         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
7041         configure.in, not configure.ac.
7042         Reported by Bruno Haible.
7044 2002-10-29  Akim Demaille  <akim@epita.fr>
7046         * tests/torture.at (Deep Package): New test.
7047         (Configuring subdirectories): Don't use a testSubDir as Autotest
7048         now does it itself.
7050 2002-10-29  Akim Demaille  <akim@epita.fr>
7052         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
7053         * doc/autoconf.texi (Invoking autom4te): Rename as...
7054         (autom4te Invocation): this, for consistency with the other nodes.
7056 2002-10-29  Akim Demaille  <akim@epita.fr>
7058         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
7059         Reported by Ralf Corsepius.
7061 2002-10-29  Akim Demaille  <akim@epita.fr>
7063         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
7064         characters is a back as an `obsolete' warning now.
7065         Reported by Ralf Corsepius.
7067 2002-10-28  Akim Demaille  <akim@epita.fr>
7069         * configure.ac: Bump to 2.54c.
7071 2002-10-28  Akim Demaille  <akim@epita.fr>
7073         Version 2.54b.
7075         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
7077 2002-10-28  Akim Demaille  <akim@epita.fr>
7079         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
7080         m4 executable names, and different GNU M4 version.
7081         Reported by Ezra Peisach and Paul Jarc.
7083 2002-10-27  Akim Demaille  <akim@epita.fr>
7085         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
7086         AC_RUN_IFELSE.
7088 2002-10-27  Akim Demaille  <akim@epita.fr>
7090         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
7091         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
7092         Die when a simple Fortran program cannot be compiled.
7093         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
7094         Issue a warning if no function is given.
7096 2002-10-27  Akim Demaille  <akim@epita.fr>
7098         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
7099         Move the documentation of AC_TRY_RUN to...
7100         (Obsolete Macros): here.
7101         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
7102         (autoconf Invocation): Remove the duplicates with `invoking
7103         autom4te'.
7104         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
7105         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
7107 2002-10-27  Akim Demaille  <akim@epita.fr>
7109         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
7110         and AC_LANG_FUNC_LINK_TRY.
7111         (Examining Libraries): Rename as...
7112         (Running the Linker): this.
7113         Document AC_LINK_IFELSE.
7114         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
7115         (Obsolete Macros): here.
7116         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
7117         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
7118         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
7119         * lib/autoconf/headers.m4 (AC_USG): Likewise.
7121 2002-10-27  Akim Demaille  <akim@epita.fr>
7123         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
7125         More `check config.log' messages.
7127         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
7128         * doc/autoconf.texi (Printing Messages): Document it.
7129         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
7130         appropriate.
7131         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
7132         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
7133         (_AC_COMPILER_OBJEXT): Likewise.
7134         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
7135         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
7136         Likewise.
7137         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
7138         Likewise.
7140         Deprecate macros with unusual interfaces.
7142         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
7143         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
7145         Document the new ones, and proper style.
7147         * doc/autoconf.texi (Generating Sources): New.
7148         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
7149         (Examining Declarations): Rename as...
7150         (Running the Preprocessor): this.
7151         Document AC_PREPROC_IFELSE.
7152         (Examining Syntax): Rename as...
7153         (Running the Compiler): this.
7154         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
7155         (Obsolete Macros): Move the definition of AC_TRY_CPP and
7156         AC_TRY_COMPILE here.
7158 2002-10-27  Akim Demaille  <akim@epita.fr>
7160         Move sections around.
7162         * doc/autoconf.texi (Customizing autom4te): Remove a lost
7163         sentence.
7164         Reported by Burno Haible.
7165         (Language Choice): Now the first section of...
7166         (Writing Tests): this section.
7167         Make the introduction less C-centric.
7168         (Guidelines, Test Functions): Move to...
7169         (Writing Test Programs): this new section.
7170         (Test Programs): Merge into...
7171         (Run Time): this.
7173 2002-10-27  Akim Demaille  <akim@epita.fr>
7175         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
7176         autom4te.in that resulted in the need for two `make' runs.
7178 2002-10-27  Akim Demaille  <akim@epita.fr>
7180         * configure.ac: Bump to 2.54b.
7182 2002-10-25  Akim Demaille  <akim@epita.fr>
7184         Version 2.54a.
7186         * Makefile.maint: Update from the Coreutils.
7187         (AMTAR): Remove, obsolete.
7188         (automake_repo): Update to redhat.com.
7189         (cvs_file): New.
7190         Adjust to the fact that ansi2knr is now hosted by Automake.
7191         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
7192         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
7193         Update from masters.
7194         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
7195         autoscan.pre is not to be installed, and autoscan.list is not to
7196         be shipped.
7197         (CLEANFILES): Add autoscan.list.
7198         (autoscan.list): Disable the cache.
7199         * bin/Makefile.am: Include freeze.mk.
7201 2002-10-25  Akim Demaille  <akim@epita.fr>
7203         * bin/autom4te.in (&load_configuration): Take the file as
7204         argument.
7205         (&parse_args): Handle -C, --cache.
7206         ($help): Adjust.
7207         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
7208         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
7209         * doc/autoconf.texi (Invoking autom4te): Document --cache.
7210         Now a subsection of...
7211         (Using autom4te): This new section.
7212         (Customizing autom4te): New.
7213         (autom4te.cache): Adjust.
7215 2002-10-25  Akim Demaille  <akim@epita.fr>
7217         * doc/autoconf.texi (Generic Headers): More information on how to
7218         use AC_CHECK_HEADERS.
7220 2002-10-25  Akim Demaille  <akim@epita.fr>
7222         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
7223         Space changes.
7225 2002-10-25  Akim Demaille  <akim@epita.fr>
7227         * bin/autoscan.in (output): Output AC_PREREQ.
7228         (%needed_macros): Add AC_PREREQ so that configure.ac without one
7229         be reported.
7231 2002-10-23  Akim Demaille  <akim@epita.fr>
7233         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
7234         document _Bool.
7236 2002-10-23  Akim Demaille  <akim@epita.fr>
7238         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
7239         Reported by Peter Eisentraut.
7241 2002-10-23  Akim Demaille  <akim@epita.fr>
7243         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
7244         type _Bool.
7245         Fix a typo.
7246         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
7247         Eggert's recommandations.
7249 2002-10-22  Akim Demaille  <akim@epita.fr>
7251         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
7252         Bison, by Paul Eggert.
7253         * doc/autoconf.texi (Particular Headers): Document it.
7255 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
7257         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
7258         `$ac_configure_args'.
7260 2002-10-22  Akim Demaille  <akim@epita.fr>
7262         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
7263         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
7264         From Art Haas.
7266 2002-10-22  Akim Demaille  <akim@epita.fr>
7268         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
7270         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
7271         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
7272         (_AC_CHECK_HEADER_NEW): Rename as...
7273         (AC_CHECK_HEADER): this.
7275 2002-10-22  Akim Demaille  <akim@epita.fr>
7277         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
7278         words about HP-UX cmp: it was actually a user-written cmp.
7280 2002-10-22  Akim Demaille  <akim@epita.fr>
7282         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
7283         are a few warnings.
7284         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
7285         Quote for Perl '' strings, not "".
7286         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
7287         strings.
7289 2002-10-22  Akim Demaille  <akim@epita.fr>
7291         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
7292         characters is a syntax warning now.
7293         (_AS_QUOTE): Accept $2 as list of characters to quote.
7294         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
7295         Quote for Perl, not sh.
7296         * bin/autoheader.in: When $debug, report the file which is
7297         `do'ne.
7298         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
7299         `@', to tickle Perl's lists.
7300         Reported by Carlos Velasco.
7302 2002-10-18  Akim Demaille  <akim@epita.fr>
7304         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
7305         missing included files _are_ errors.
7306         Thanks to Alexandre Duret-Lutz.
7307         * tests/tools.at (autom4te cache): Adjust.
7308         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
7309         (AT_CHECK_M4SUGAR): Use it.
7310         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
7311         Adjust.
7312         * tests/tools.at (autom4te): Now it does exit 1.
7314 2002-10-17  Akim Demaille  <akim@epita.fr>
7316         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
7317         Fixes the `AC_ARG_VAR' test failures.
7318         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
7319         * lib/freeze.mk (check-forbidden-patterns): New.
7320         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
7321         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
7322         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
7323         /dev/null.
7324         Reported months ago by H. Merijn Brand.
7326 2002-10-17  Akim Demaille  <akim@epita.fr>
7328         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
7330 2002-10-16  Paul Eggert  <eggert@twinsun.com>
7332         * Makefile.maint (wget_files): Remove ansi2knr.c.
7333         (ansi2knr.c-url_prefix): Remove.
7335 2002-10-16  Akim Demaille  <akim@epita.fr>
7337         Because of caching, some files that no longer exist and are no
7338         longer required can still cause errors.
7339         Reported by Alexandre Duret-Lutz.
7341         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
7342         to frozen files in @ARGV, as @ARGV must remain being a list of
7343         files.  Rather, at M4 call sites, use this...
7344         (&files_to_options): New function.
7345         (&freeze): Use &error.
7346         (&up_to_date): If a file that was included according to the cache
7347         is no longer there, then the output is out dated.
7348         (&main): Don't even check whether a file is up to date is anyway
7349         --force is given.
7350         * tests/tools.at (autom4te cache): New.
7352 2002-10-16  Akim Demaille  <akim@epita.fr>
7354         * bin/autoconf.as: Kill dead options.
7355         * bin/autoupdate.in (&parse_args): Kill old options.
7356         * bin/autoreconf.in (&parse_args): Remove dead options.
7357         Factor some code.
7358         (&autoreconf): Report the directories we enter *and leave*, so
7359         that error messages can be easily located, and use GNU Make
7360         format, so that Emacs' compile mode understands us.
7361         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
7362         if some file was changed instead of `print'.
7363         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
7364         (&parse_args): Remove the dead options.
7365         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
7366         autoheader's quiet mode.
7367         (AT_CHECK_AUTOUPDATE): Likewise.
7368         * tests/tools.at (autoupdate): Adjust.
7369         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
7371 2002-10-11  Akim Demaille  <akim@epita.fr>
7373         No longer use CPP to check for the existing of headers: use CC to
7374         check for compilability.
7376         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
7377         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
7378         (_AC_CHECK_HEADER_NEW): Rename as...
7379         (AC_CHECK_HEADER): this.
7381         * lib/autotest/general.m4 (AT_INIT): Include the failed test
7382         numbers in the Subject suggestion.
7384 2002-10-11  Akim Demaille  <akim@epita.fr>
7386         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
7387         Suggest using AC_CHECK_DECLS instead.
7389 2002-10-11  Akim Demaille  <akim@epita.fr>
7391         * tests/torture.at (AC_ARG_VAR): Have configure report the value
7392         of `precious'.
7394 2002-10-11  Akim Demaille  <akim@epita.fr>
7396         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
7397         file name to enable parallel executions.
7398         From Sam Varshavchik.
7400 2002-10-08  Akim Demaille  <akim@epita.fr>
7402         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
7403         aclocal invocation, as Gettext macros might not be visible to
7404         aclocal.
7405         Instead of blindly running autopoint, scan configure.ac (not the
7406         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
7407         Reported by Paul D. Smith.
7409 2002-10-08  Paul Eggert  <eggert@twinsun.com>
7411         Work around problems found when POSIXLY_CORRECT=1 is set.
7412         None of this seems to have anything to do with POSIX, really,
7413         but it's how Perl getopt works.
7414         * bin/autom4te.in (parse_args): Configure GetOpt with
7415         "permute", too.
7416         * doc/autoconf.texi (Invoking autom4te):
7417         --warning -> --warnings.
7418         * lib/autom4te.in: --warning -> --warnings.
7420 2002-09-28  Akim Demaille  <akim@epita.fr>
7422         * doc/autoconf.texi (autom4te.cache): New section.
7424 2002-09-28  Akim Demaille  <akim@epita.fr>
7426         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
7427         (Automake-preselections): Update.
7428         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
7430 2002-09-28  Akim Demaille  <akim@epita.fr>
7432         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
7433         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
7434         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
7435         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
7437 2002-09-28  Akim Demaille  <akim@epita.fr>
7439         * tests/torture.at (Configuring subdirectories): Be robust to
7440         users who use config.site to require for a cache: in this case,
7441         the two last configure runs, using two different sets of
7442         arguments, trigger a legitimate error.
7444 2002-09-28  Akim Demaille  <akim@epita.fr>
7446         * tests/m4sh.at (Functions Support, Functions and return Support):
7447         New.
7449 2002-09-28  Akim Demaille  <akim@epita.fr>
7451         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
7452         autoheader are Perl programs.
7453         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
7454         (autom4te): Specify that the sources are in the $srcdir.
7455         * doc/autoconf.texi (Installation Directory Variables): Adjust.
7457 2002-09-28  Akim Demaille  <akim@epita.fr>
7459         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
7460         (tm_zone): Move their rules to...
7461         * lib/autoconf/types.m4: here, using AN_ macros.
7462         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
7463         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
7464         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
7465         * lib/autoconf/programs.m4: here.
7466         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
7467         (ETAGS_FOR_AUTOCONF): New.
7468         Use it.
7470 2002-09-28  Akim Demaille  <akim@epita.fr>
7472         * lib/autoconf/autoscan.m4: New file.
7473         * lib/autoconf/autoconf.m4: Include it.
7474         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
7475         that were listed in the original autoscan.list.
7476         * lib/autoconf/headers.m4: Similarly with headers.
7477         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
7478         (.m4.m4f): Don't pass --prepend-include, since that's done by
7479         tests/autom4te itself.
7480         * lib/autoscan/Makefile.am: Include freeze.mk.
7481         (autoscan.list): New target --this file is no longer a source.
7482         (autoscan.pre): New file.
7484 2002-09-28  Akim Demaille  <akim@epita.fr>
7486         * bin/autoscan.in (@kinds): Make them singular.
7487         Adjust all uses.
7488         (&init_tables): When --debug, report the list of rules to ease
7489         tracking changes in autoscan.list.
7490         * lib/autoscan/autoscan.list (function): Strip comments, sort.
7492 2002-09-28  Akim Demaille  <akim@epita.fr>
7494         * lib/autoscan/functions, lib/autoscan/headers,
7495         * lib/autoscan/identifiers, lib/autoscan/makevars,
7496         * lib/autoscan/programs: Merge into...
7497         * lib/autoscan/autoscan.list: this.
7498         * bin/autoscan.in (&init_tables): Adjust.
7500 2002-09-28  Akim Demaille  <akim@epita.fr>
7502         * lib/autoscan/functions, lib/autoscan/headers,
7503         * lib/autoscan/identifiers, lib/autoscan/makevars,
7504         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
7505         `functions' line is now prefixed with `function:'.
7506         * bin/autoscan.in (&init_tables): Adjust.
7508 2002-09-28  Akim Demaille  <akim@epita.fr>
7510         From now on, autoscan files must always map a macro name to a
7511         word: there is no `default' macro for autoscan.
7513         * bin/autoscan.in (&init_tables): Reject entries with no macro at
7514         all.
7515         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
7516         explicit.
7518 2002-09-28  Akim Demaille  <akim@epita.fr>
7520         * bin/autoscan.in (%c_keywords): Remove.
7521         (&used): Keep only track of the words we might be interested in.
7522         (&output_kind): It is no longer needed to look for non active
7523         checks.
7525 2002-09-27  Akim Demaille  <akim@epita.fr>
7527         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
7528         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
7529         * lib/autoscan/functions: Adjust.
7530         * doc/autoconf.texi (Particular Functions): Adjust.
7532 2002-09-27  Akim Demaille  <akim@epita.fr>
7534         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
7535         from /tmp.
7536         Thanks to Bill Moseley and Paul Eggert.
7537         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
7538         the tmpdir must be created.
7539         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
7540         dir be in the build tree, instead of $TMPDIR.
7542 2002-09-27  Akim Demaille  <akim@epita.fr>
7544         * bin/autoscan.in: Improve the comments.
7545         (&parse_args): Drop obsolete undocumented options.
7546         (&output_kind): Output warnings.
7547         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
7548         (getwd): Trigger a warning.
7550 2002-09-26  Akim Demaille  <akim@epita.fr>
7552         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
7553         Reported by Ralf Corsepius.
7554         * doc/autoconf.texi (autoreconf Invocation): Likewise.
7556 2002-09-26  Akim Demaille  <akim@epita.fr>
7558         Single suffix rules and seperated dependencies are not portable.
7560         * doc/autoconf.texi (Installation Directory Variables): Update.
7561         (Limitations of Make): Some about `Single Suffix Rules and
7562         Separated Dependencies'.
7563         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
7564         (ifnames, autoscan, autom4te): Un-factor into several rules.
7566 2002-09-25  Paul Eggert  <eggert@twinsun.com>
7568         * BUGS (Interoperability bugs): New section.  Mention libtool
7569         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
7571 2002-09-24  Paul Eggert  <eggert@twinsun.com>
7573         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
7574         make handles suffix-rules differently from GNU make.
7576         * bin/Makefile.am (SUFFIXES, .in): Remove.
7577         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
7578         Move the body of the old .in rule here.
7580 2002-09-16  Akim Demaille  <akim@epita.fr>
7582         i960 compilers create `b.out' files by default.
7583         Reported by Ralf Corsepius.
7585         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
7586         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
7588 2002-09-13  Paul Eggert  <eggert@twinsun.com>
7590         * doc/autoconf.texi (Particular Headers): Remove obsolete
7591         reference to `struct timezone' in the description of
7592         AC_HEADER_TIME.
7594 2002-09-13  Akim Demaille  <akim@epita.fr>
7596         Version 2.54.
7598         * config/config.sub, config/config.guess: Update.
7599         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
7600         * Makefile.am: Adjust.
7602 2002-09-13  Akim Demaille  <akim@epita.fr>
7604         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
7605         reading config.log when the compiler is rejected.
7606         Suggested by Guido Draheim.
7608 2002-09-13  Akim Demaille  <akim@epita.fr>
7610         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
7611         (chdir_init) might hang when stat'ing mounted directories.
7612         Reported by Vance Shipley.
7614 2002-09-12  Akim Demaille  <akim@epita.fr>
7616         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
7617         the lists.
7619 2002-09-12  Akim Demaille  <akim@epita.fr>
7621         * doc/autoconf.texi (Defining Symbols): Present two different
7622         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
7623         difference between 1 argument calls, and 2-3 argument calls.
7625 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
7627         * doc/autoconf.texi: Review grammar and punctuation.
7629 2002-09-11  Paul Eggert  <eggert@twinsun.com>
7631         * doc/autoconf.texi: Fix minor formatting, spelling, and
7632         grammatical typos.
7633         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
7634         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
7635         is obsolescent.
7637 2002-09-11  Akim Demaille  <akim@epita.fr>
7639         * doc/autoconf.texi (Questions): Rename as...
7640         (FAQ): this.
7641         (Defining Directories): New.
7643 2002-09-09  Akim Demaille  <akim@epita.fr>
7645         * doc/autoconf.texi (Making testsuite Scripts): Update.
7646         Suggested by Nishio Futoshi.
7648 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
7650         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
7651         plain `@' is wanted.
7653 2002-09-09  Akim Demaille  <akim@epita.fr>
7655         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
7656         `duplicates', since the algorithm was too naive and could keep
7657         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
7658         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
7659         Reported by Ralf Corsepius.
7660         * tests/torture.at (Configuring subdirectories): Exercise these
7661         cases.
7663 2002-09-09  Akim Demaille  <akim@epita.fr>
7665         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
7666         looking for a replacement file.
7667         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
7668         directory is relative.
7669         * doc/autoconf.texi (Generic Functions): Clarify the replacement
7670         directory definition.
7671         Reported by Andreas Schwab and Jim Meyering.
7673 2002-09-06  Akim Demaille  <akim@epita.fr>
7675         * doc/autoconf.texi (Setting Output Variables): Clarify what
7676         precious variables are.
7677         Suggested by Pontus Skoeld.
7679 2002-09-05  Akim Demaille  <akim@epita.fr>
7681         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
7682         (ifnames, autoscan, autom4te): Since we don't only depend on
7683         configure.ac variables (such as VERSION etc.), but also on prefix
7684         and so forth, depend on Makefile, not configure.ac.
7685         Reported by Alexandre Duret-Lutz.
7686         * doc/autoconf.texi (Installation Directory Variables): Adjust.
7688 2002-09-05  Kevin Ryde  <user42@zip.com.au>
7690         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
7691         doesn't seem to be confined to ia64, just say "some versions".
7693 2002-09-04  Akim Demaille  <akim@epita.fr>
7695         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
7696         Automake 1.6c.
7697         * Makefile.am (maintainer-clean-local): Remove.
7698         (MAINTAINERCLEANFILES): Remove COPYING.
7700 2002-09-03  Paul Eggert  <eggert@twinsun.com>
7702         * doc/autoconf.texi (Configuration Commands): Remove obsolete
7703         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
7704         Brinkmann.
7706 2002-09-03  Akim Demaille  <akim@epita.fr>
7708         * configure.ac: Bump to 2.53d.
7709         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
7710         as of today, on Automake's team suggestion.
7712 2002-09-03  Akim Demaille  <akim@epita.fr>
7714         Version 2.53c.
7716 2002-09-02  Akim Demaille  <akim@epita.fr>
7718         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
7719         SITE_MACRO_DIR.
7720         * configure.ac: Disable SITE_MACRO_DIR.
7722 2002-09-02  Jim Meyering  <meyering@lucent.com>
7724         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
7725         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
7726         Also, tweak grammar: s/make sure to/be sure to/.
7728 2002-09-02  Paul Eggert  <eggert@twinsun.com>
7730         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
7731         directory names are generally preferable to physical names.
7733 2002-09-02  Akim Demaille  <akim@epita.fr>
7735         * lib/Autom4te/General.pm (&update_file): s/die/error/.
7736         Reported by Raja R. Harinath.
7737         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
7738         * bin/autoupdate.in: Use error instead of die.
7740 2002-09-01  Paul Eggert  <eggert@twinsun.com>
7742         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
7743         ordinary shell concatenation rather than echo+tr+sed command that
7744         runs afoul of a long-line-related sed bug in Solaris 8.
7746         * bin/autoheader.in (parse_args): --warning -> --warnings.
7748         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
7749         stdout, as traditional "ls" does.
7750         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
7751         _AC_COMPILER_EXEEXT_O): Likewise.
7752         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
7754         * bin/autoconf.as: Add --prepend-include option.  This patch was
7755         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
7756         but bin/autoconf.in is generated automatically from bin/autoconf.as.
7758         * bin/autoconf.in, configure: Regenerate.
7760         * doc/autoconf.texi (Special Shell Variables): Mention
7761         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
7763         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
7764         MAILPATH and set PS1, PS2, PS4 to default values, to work
7765         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
7766         For LC_ALL etc, first try to set to "C" as POSIX requires and as
7767         the Autoconf documentation specifies; fall back to "unset" only if
7768         this fails.  Use a shell for-loop for this rather than an m4 loop,
7769         to shorten the output script.
7771 2002-08-30  Paul Eggert  <eggert@twinsun.com>
7773         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
7774         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
7775         for the CDPATH problem.  Document PWD.
7776         (Limitations of Builtins): Document the problem that "cd $foo" and
7777         "ls $foo" may refer to different directories in shells conforming
7778         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
7779         example, since the old example is now out of date.
7781         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
7782         FOO" and "ls FOO" talk about different directories; this catches
7783         problems when POSIX 1003.1-2001 "cd" fails due to symlink
7784         spaghetti.
7786         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
7787         of rolling our own unset.
7788         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
7789         in practice we needn't worry about CDPATH if unset doesn't work.
7791         * Makefile.in, aclocal.m4, bin/Makefile.in,
7792         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
7793         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
7794         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
7795         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
7796         tests/Makefile.in: Regenerate with Automake 1.6.3.
7798         * config/config.guess, config/config.sub, config/mkinstalldirs:
7799         Update.
7801         * configure: Regenerate with self.
7803 2002-08-30  Kevin Ryde  <user42@zip.com.au>
7805         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
7806         default output.
7808 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7810         * bin/autom4te.in (Request::load): Correctly test for "do" read
7811         failure.
7813 2002-08-29  Akim Demaille  <akim@epita.fr>
7815         * lib/Autom4te/General.pm (&xqx): New.
7816         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
7817         hand, which is not portable.
7818         (&error): New.
7819         * bin/autom4te.in: Use them.
7820         Use &error instead of die.
7821         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
7822         Adjust.
7824 2002-08-17  Paul Eggert  <eggert@twinsun.com>
7826         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
7827         default list of compilers to try, since it was long ago superseded
7828         by the ksh fc builtin.  Suggested by Steven G. Johnson.
7830 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
7832         * doc/autoconf.texi (Invoking autom4te): End the option table,
7833         fixing a bug introduced by the previous patch.
7834         (Limitations of Make): Add a 'target lookup' subentry in the
7835         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
7837 2002-07-29  Mark D. Roth  <roth@feep.net>
7839         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
7840         options and use $AUTOM4TE_PATH.
7841         * doc/autoconf.texi: Remove documentation of autom4te
7842         --include-envvar and --site-macro-subdir options and document
7843         use of $AUTOM4TE_PATH.
7844         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
7845         arguments from each language section.
7847 2002-07-29  Paul Eggert  <eggert@twinsun.com>
7849         * doc/install.texi: Include copyright symbol in copyright notice.
7851         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
7852         Replace with:
7853         (AM_MAKEINFOFLAGS): New macro.
7854         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
7855         * Makefile.am (INSTALL): Use the new macros.
7856         Use -o rather than --output, since "missing" does not grok --output.
7858 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
7860         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
7861         comments do not always work. Never trust the exit status of
7862         `make -k'.
7864 2002-07-24  Kevin Ryde  <user42@zip.com.au>
7866         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
7867         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
7869 2002-07-23  Paul Eggert  <eggert@twinsun.com>
7871         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
7872         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
7873         apparently treats PATH="nonexistent" as if it contained ".".
7874         Bug reported by Stefan `Sec' Zehl.
7876 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
7878         * doc/autoconf.texi (Limitations of Make): Mention the special
7879         handling of the obj/ directory by BSD make.
7881 2002-07-20  Kevin Ryde  <user42@zip.com.au>
7883         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
7884         backslashes.
7886 2002-07-19  Akim Demaille  <akim@epita.fr>
7888         * doc/autoconf.texi (Function Portability): `exit'.
7889         (Programming in M4sh): Ethymology of M4sh.
7891 2002-07-19  Akim Demaille  <akim@epita.fr>
7893         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
7895 2002-07-18  Akim Demaille  <akim@epita.fr>
7897         Version 2.53b.
7899 2002-07-18  Akim Demaille  <akim@epita.fr>
7901         * config/config.guess, config/config.sub: Update.
7903 2002-07-18  Akim Demaille  <akim@epita.fr>
7905         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
7906         Automake's parts.
7908         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
7909         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
7910         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
7912 2002-07-18  Akim Demaille  <akim@epita.fr>,
7913             Alexandre Duret-Lutz  <duret_g@epita.fr>
7915         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
7916         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
7918 2002-07-17  Russ Allbery  <rra@stanford.edu>
7920         * doc/autoconf.texi (Initializing configure): Clarify the
7921         description of the tarname default.
7923 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
7925         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
7926         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
7927         latter was not run.
7929 2002-07-17  Akim Demaille  <akim@epita.fr>
7931         * lib/Autom4te/General.pm (find_file): Browse the directories in
7932         the order they are given.
7934 2002-07-17  Akim Demaille  <akim@epita.fr>
7936         * tests/wrapsh.as, tests/wrappl.as: Merge into...
7937         * tests/wrapper.as: this.
7938         * tests/Makefile.am, configure.ac: Adjust.
7940 2002-07-17  Mark D. Roth  <roth@feep.net>
7942         * configure.ac: Add --enable-site-macro-dir option.
7943         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
7944         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
7945         --site-macro-subdir options.
7946         * bin/autoconf.in: Add --prepend-include option.
7947         * bin/autoheader.in: Add --prepend-include option.
7948         * bin/autoreconf.in: Add --prepend-include option.
7949         * bin/autoscan.in: Add --prepend-include option.
7950         * bin/autoupdate.in: Add --prepend-include option.
7951         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
7952         macro directory, remove note that include path directories are
7953         used in reverse order, and document --prepend-include option.
7954         * lib/autom4te.in: Use --prepend-include instead of --include.
7955         * tests/wrapsh.in: Use --prepend-include instead of --include.
7957 2002-07-17  Akim Demaille  <akim@epita.fr>
7959         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
7960         tarnames.
7961         * doc/autoconf.texi (Initializing configure): Adjust.
7963 2002-07-17  Akim Demaille  <akim@epita.fr>
7965         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
7966         (_AC_FUNC_MALLOC): New.
7967         (AC_FUNC_MALLOC): Use the latter.
7968         Define HAVE_MALLOC to 0 if broken.
7969         * doc/autoconf.texi (Particular Functions): Adjust.
7971 2002-07-16  Akim Demaille  <akim@epita.fr>
7973         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
7974         * doc/autoconf.texi (C Compiler): Adjust.
7976 2002-07-09  Akim Demaille  <akim@epita.fr>
7978         * doc/autoconf.texi: Properly set the ``header'' part.
7980 2002-07-09  Akim Demaille  <akim@epita.fr>
7982         * doc/autoconf.texi (Systemology): Some about Darwin.
7984 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
7986         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
7987         Don't use AC_REQUIRE in AU_DEFUN.
7989 2002-07-09  Art Haas  <ahaas@neosoft.com>
7991         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
7993 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
7995         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7996         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
7997         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
7998         so that Emacs setups GNU style for perl-mode and cperl-mode.
8000 2002-06-27  Paul Eggert  <eggert@twinsun.com>
8002         * config/install-sh: Quote $src.  Prefer || to test's -o option,
8003         as per "Limitations of Builtins".
8004         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
8005         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
8007         * tests/mktests.sh: Use grep instead of fgrep, as per
8008         "Limitations of Builtins".
8010 2002-06-15  Paul Eggert  <eggert@twinsun.com>
8012         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
8013         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
8014         so that we consistently test the just-built programs.
8015         * tests/wrappl.as: Likewise.
8017 2002-06-12  Paul Eggert  <eggert@twinsun.com>
8019         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
8020         name, so that symlinks to 'autoconf' work properly.  Bug reported
8021         by Bruno Haible.
8022         * bin/autoheader.in (AUTOM4TE): Likewise.
8023         * bin/autoreconf.in (autoconf, autoheader): Likewise.
8024         * bin/autoscan.in (autom4te): Likewise.
8025         * bin/autoupdate.in (autom4te): Likewise.
8027         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
8028         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
8029         on Solaris 2.5.1.
8031 2002-06-11  Andreas Schwab  <schwab@suse.de>
8033         * doc/autoconf.texi: Add more dir entries.
8035 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
8037         * bin/autom4te.in ($cache): Don't define using `$me', the name
8038         of the cache should not depend on the name under which autom4te
8039         was installed.
8041 2002-06-07  Akim Demaille  <akim@epita.fr>
8043         * tests/tools.at (autoconf: forbidden tokens, basic)
8044         (autoconf: forbidden tokens, exceptions): Adjust to the change of
8045         words in autom4te.in.
8047 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
8049         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
8050         _AC_LANG_PROGRAM_C_F77_HOOKS.
8052 2002-06-07  Akim Demaille  <akim@epita.fr>
8054         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
8055         rename as...
8056         (AC_REPLACE_FNMATCH): this.
8057         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
8058         AC_FUNC_FNMATCH_GNU.
8060 2002-06-07  Akim Demaille  <akim@epita.fr>
8062         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
8063         Rosetta Stone for Unix.
8065 2002-06-07  Akim Demaille  <akim@epita.fr>
8067         * bin/autom4te.in (warn_forbidden): When rejecting a token,
8068         suggest m4_pattern_allow.
8069         Suggested by Adam J. Richter.
8071 2002-06-07  Akim Demaille  <akim@epita.fr>
8073         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
8074         ac_config_libobj_dir.
8075         (AC_CONFIG_LIBOBJ_DIR): New.
8076         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
8077         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
8078         Use ac_config_libobj_dir to find the replacement files.
8079         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
8080         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
8081         (AC_REPLACE_FNMATCH_GNU): these.
8082         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
8083         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
8084         * tests/mktests.sh (ac_exclude_list): Don't check
8085         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
8087 2002-06-06  Paul Eggert  <eggert@twinsun.com>
8089         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
8090         if ln doesn't work.
8091         * NEWS: Likewise.
8092         * doc/autoconf.texi (Configuration Links): Likewise.
8093         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
8095 2002-06-05  Paul Eggert  <eggert@twinsun.com>
8097         * config/config.guess, config/config.sub, config/texinfo.tex:
8098         Update from masters.
8100 2002-05-29  Paul Eggert  <eggert@twinsun.com>
8102         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
8103         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
8104         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
8105         Likewise.
8106         * lib/autoconf/Makefile.am (check-local): Likewise.
8107         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
8108         * lib/autoconf/types.m4 (commentary only): Likewise.
8109         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
8110         * lib/autotest/Makefile.am (check-local): Likewise.
8111         * lib/m4sugar/Makefile.am (check-local): Likewise.
8112         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
8113         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
8115         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
8116         * doc/autoconf.texi (Particular Programs): Document them.
8117         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
8118         * NEWS: Likewise.
8120 2002-05-27  Paul Eggert  <eggert@twinsun.com>
8122         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
8123         * NEWS, doc/autoconf.texi (Particular Types): Document it.
8124         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
8125         instead of AC_MBSTATE_T, which never existed.
8127 2002-05-23  Akim Demaille  <akim@epita.fr>
8129         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
8130         version of Autoconf that is discussed.
8132 2002-05-22  Paul Eggert  <eggert@twinsun.com>
8134         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
8135         from the default list of compilers to try.  Suggested by
8136         Kate Hedstrom.
8137         * NEWS: Document the above.
8138         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
8140 2002-05-17  Paul Eggert  <eggert@twinsun.com>
8142         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
8143         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
8144         This improves on an earlier suggestion by H. Peter Anvin.
8146 2002-05-16  Paul Eggert  <eggert@twinsun.com>
8148         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
8149         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
8150         Both macros now accept an optional source-dir arg.
8151         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
8153         * NEWS: Document this.
8154         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
8156         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
8157         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
8158         not for GNU extensions; this undoes part of the 2000-11-03 change,
8159         reverting to 2.13-compatible behavior.
8160         Add new optional argument DIR.
8161         (AC_FUNC_FNMATCH_GNU): New macro.
8163         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
8165 2002-05-08  Paul Eggert  <eggert@twinsun.com>
8167         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
8168         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
8169         and it causes a 'test' syntax error if it fails.
8170         Bug reported by Stephen Gildea.
8172         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
8173         If prototypes are supported, use them to check this at compile-time,
8174         instead of trying to check it at run-time.  If we must do a run-time
8175         check, assume that setvbuf is standard when cross-compiling, as
8176         nonstandard setvbuf occurs only on ancient and unlikely hosts.
8177         Bug reported by Paul D. Smith.
8179         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
8180         argument specifying location of getloadavg.c.  This removes a
8181         FIXME.  This idea was taken from Jim Meyering's implementation in
8182         textutils.
8183         * doc/autoconf.texi (Particular Functions): Document this.
8184         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
8185         that's what the code does; this fixes a bug reported by
8186         Paul D. Smith.
8188 2002-05-03  Akim Demaille  <akim@epita.fr>
8190         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
8191         autopoint instead of gettextize.
8192         ($uses_alocal): Rename as...
8193         ($uses_aclocal): this.
8194         * doc/autoconf.texi (autoreconf Invocation): Adjust.
8195         Suggested by Bruno Haible.
8197 2002-05-03  Akim Demaille  <akim@epita.fr>
8199         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
8201 2002-04-29  Paul Eggert  <eggert@twinsun.com>
8203         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
8204         files to be 1 second older; just set them to be the same time.
8205         Also, sleep 1 second after the first aclocal, to work around
8206         problems with sub-second time stamps on the input files.
8208 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
8210         * doc/autoconf.texi: Mention "set -e -x" lossage
8211         under node "Limitations of Builtins".
8213 2002-04-29  Akim Demaille  <akim@epita.fr>
8215         * doc/install.texi: Better wording for setting variables when
8216         running configure.
8217         From Christian Cornelssen.
8219 2002-04-29  Akim Demaille  <akim@epita.fr>
8221         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
8222         of lack of $LINENO support, then the test will compare the $LINENO
8223         in testsuite vs. the lineno in the test file.  This is wrong, of
8224         course.
8225         Be sure to protect it.
8226         Reported by Patrick Welche.
8228 2002-04-25  Akim Demaille  <akim@epita.fr>
8230         * doc/autoconf.texi (Obsolete Macros): Typo.
8231         Reported by Vladimir Volovich.
8233 2002-04-25  Akim Demaille  <akim@epita.fr>
8235         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
8236         than some of the input files, hence, on the second run of aclocal,
8237         if some of its input are younger, make them older.
8238         Suggested by Paul Eggert.
8240 2002-04-25  Akim Demaille  <akim@epita.fr>
8242         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
8243         Thanks to Paul Eggert.
8245 2002-04-25  Akim Demaille  <akim@epita.fr>
8247         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
8248         and ac_subst_vars be sh variables containing the list of
8249         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
8250         DEFAULT diversion.
8251         (_AC_INIT_PREPARE): Use them to log them.
8252         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
8253         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
8254         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
8255         _AC_SUBST_FILES and _AC_SUBST_VARS.
8256         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
8258 2002-04-24  Akim Demaille  <akim@epita.fr>
8260         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
8261         autoheader, so that automake does not complain about a missing
8262         config.h.in that was to be created.
8264 2002-04-23  Akim Demaille  <akim@epita.fr>
8266         * bin/autoheader.in (parse_args): --warning takes an argument.
8267         Fixes PR/220.
8269 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
8271         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
8272         and bb.out when cleaning up.
8274 2002-04-22  Akim Demaille  <akim@epita.fr>
8276         Version 2.53a.
8278 2002-04-22  Akim Demaille  <akim@epita.fr>
8280         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
8282 2002-04-22  Akim Demaille  <akim@epita.fr>
8284         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
8285         comma.
8286         Reported by Gregory Giannoni.
8288 2002-04-22  Akim Demaille  <akim@epita.fr>
8290         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
8291         Fixes false failures on Darwin.
8293 2002-04-21  Paul Eggert  <eggert@twinsun.com>
8295         * TODO, bin/autoupdate.in, doc/autoconf.texi,
8296         lib/autoconf/general.m4, lib/autoconf/libs.m4,
8297         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
8298         tests/tools.at: Minor spelling and grammar fixes.
8300 2002-04-20  Paul Eggert  <eggert@twinsun.com>
8302         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
8303         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
8304         * lib/autotest/general.m4 (AT_INIT): Likewise.
8305         * tests/atgeneral.m4 (AT_INIT): Likewise.
8307 2002-04-19  Paul Eggert  <eggert@twinsun.com>
8309         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
8310         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
8311         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
8312         lib/autoconf/functions.m4, lib/autoconf/general.m4,
8313         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
8314         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
8315         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
8316         Minor spelling and grammar fixes.
8318         * doc/autoconf.texi: Follow the outline suggested in the GNU
8319         Sample Texts sections of the Texinfo 4.2 manual.  Most
8320         importantly, this makes sure that the copyright notices appear in
8321         all output formats.  You probably need Texinfo 4.2 to generate
8322         the manual now.
8324         Fix some bugs when using "$@" when there might be zero positional
8325         arguments in cases where this matters.
8327         * bin/autoconf.as: Rewrite so that the problem does not come up.
8328         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
8329         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
8330         * lib/autotest/general.m4 (AT_INIT): Likewise.
8332         * bin/autoheader.in: Use 'case' statement to work around problem.
8333         * bin/auto4mte.in: Likewise.
8334         * bin/autoreconf.in: Likewise.
8335         * bin/autoscan.in: Likewise.
8336         * bin/autoupdate.in: Likewise.
8337         * bin/ifnames.in: Likewise.
8339         * doc/autoconf.texi (Shell Substitutions): Document the problem.
8341         * lib/autotest/general.m4 (AT_INIT):
8342         Use Zsh alias to work around problem.
8343         * tests/atgeneral.m4 (AT_INIT): Likewise.
8345         * tests/c.at: We can't have zero arguments, so remove workaround
8346         that is not portable to Zsh.
8348 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
8350         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
8351         from aclocal.m4 too.
8353 2002-04-12  Akim Demaille  <akim@epita.fr>
8355         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
8357 2002-04-10  Akim Demaille  <akim@epita.fr>
8359         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
8360         workaround for ${1+"$@"}.
8361         * doc/autoconf.texi (Shell Substitutions): Explain it.
8362         From Oliver Kiddle and Peter Stephenson.
8364         Have M4sh perform minimal shell sanitizing.
8366         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
8367         part into...
8368         (_AS_PREPARE): this new macro.
8369         (AS_PREPARE): New.
8370         (AS_INIT): Invoke AS_SHELL_SANITIZE.
8371         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
8373         Adjust Autoconf and Autotest.
8375         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
8376         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
8377         * lib/autotest/general.m4 (AT_INIT): Likewise.
8378         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
8379         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
8380         AS_SHELL_SANITIZE.
8382         Use this M4sh to generate Autoconf's shell scripts.
8384         * tests/wrapsh.as: New, precursor of wrapsh.in.
8385         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
8386         on Autotest and M4sh.
8387         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
8388         (wrapsh.in): New target.
8389         * bin/autoconf.as: New, precursor of autoconf.in.
8390         (autoconf.in): New target.
8392 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
8394         * doc/autoconf.texi (Limitations of Make): Mention the issue
8395         with indented comments in rules.
8397 2002-04-09  Andreas Schwab  <schwab@suse.de>
8399         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
8400         ac_top_builddir when setting ac_abs_top_builddir.
8402 2002-04-06  Kevin Ryde  <user42@zip.com.au>
8404         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
8405         (Portable Shell): Cross reference to Systemology.
8407 2002-04-05  Akim Demaille  <akim@epita.fr>
8409         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
8410         directories when descending in a SUBDIRS.
8411         Reported by Ezra Peisach.
8413 2002-04-04  Andreas Schwab  <schwab@suse.de>
8415         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
8416         contains no literal separators.
8418 2002-04-03  Akim Demaille  <akim@epita.fr>
8420         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
8421         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
8422         Use dnl, not the KILL diversion.
8423         Extracted from...
8424         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
8425         (AC_CONFIG_LINKS): here.
8426         Adjust.
8427         Don't use the KILL diversion, as it kills spurious output, which
8428         results in failures being hidden.
8429         Use m4_defn where appropriate.
8430         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
8431         after the second argument.
8432         Use m4_defn.
8433         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
8434         syntax, as it is provided by M4sugar.
8435         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
8437 2002-04-03  Andreas Schwab  <schwab@suse.de>
8439         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
8440         expanded if $# <= 2.
8442         * bin/autoreconf.in (autoreconf): Run automake after rerunning
8443         aclocal.
8445 2002-04-03  Akim Demaille  <akim@epita.fr>
8447         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
8448         (_AC_COMPILER_EXEEXT_REJECT): New.
8449         Also recognize *.bb and *.bbg as compilation byproducts.
8450         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
8451         (_AC_COMPILER_OBJEXT): Use them.
8452         Fixes Debian #138666.
8454 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
8456         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
8458         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
8459         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
8460         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
8461         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
8462         (AC_C_CONST): Same.
8463         (AC_C_INLINE): Same.
8464         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
8465         * doc/autoconf.texi, NEWS: Document.
8466         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
8467         AC_C_CROSS.
8469 2002-04-02  Akim Demaille  <akim@epita.fr>
8471         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
8472         _AS_MKDIR_P_PREPARE.
8474 2002-03-28  Kevin Ryde  <user42@zip.com.au>
8476         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
8477         to avoid versions of HP C which don't allow that.
8479 2002-03-27  Paul Eggert  <eggert@twinsun.com>
8481         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
8482         (AS_SHELL_SANITIZE): Invoke it.
8483         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
8485 2002-03-26  Akim Demaille  <akim@epita.fr>
8487         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
8489 2002-03-26  Akim Demaille  <akim@epita.fr>
8491         * doc/autoconf.texi (Introduction): The GNATS base moved.
8493 2002-03-25  Paul Eggert  <eggert@twinsun.com>
8495         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
8496         as POSIX requires, as it doesn't work with Zsh.
8497         * doc/autoconf.texi (Assignments): Document the problem.
8499 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
8501         * doc/autoconf.texi (Limitations of Make): Mention more issue
8502         about VPATH, overriding of macros in sub-makes, and handling of
8503         SHELL.
8505 2002-03-21  Paul Eggert  <eggert@twinsun.com>
8507         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
8508         problem with here-document buffer boundaries.
8510         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
8511         when reinvoking the shell, to work around problems with installers
8512         who put strange things like "cd" commands in their environments.
8514 2002-03-19  Akim Demaille  <akim@epita.fr>
8516         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
8517         From Aaron Ucko.
8519 2002-03-19  Akim Demaille  <akim@epita.fr>
8521         * bin/autoscan.in (scan_file): Specify the location in `&used'
8522         invocations.
8523         From Nicolas Joly.
8525 2002-03-19  Akim Demaille  <akim@epita.fr>
8527         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
8528         From Nishio Futoshi.
8530 2002-03-19  Akim Demaille  <akim@epita.fr>
8532         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
8534 2002-03-18  Paul Eggert  <eggert@twinsun.com>
8536         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
8537         (Limitations of Usual Tools): Add mkdir section.
8539         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
8540         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
8541         back on AS_DIRNAME to compute prefixes otherwise; this is
8542         roughly what mkinstalldirs does.  That way, we need not have
8543         our own filename disassembler.  The old disassembler did not
8544         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
8546         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
8547         Create at_test_all by a series of assignments,
8548         not by a single assignment of a long string.  The latter causes ksh
8549         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
8550         presumably because of a buffer overrun.
8552 2002-03-14  Paul Eggert  <eggert@twinsun.com>
8554         * lib/autotest/general.m4 (at_times_skip):
8555         Renamed from at_times.  Now a boolean.
8556         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
8557         says 'times: not found'.
8559 2002-03-14  Akim Demaille  <akim@epita.fr>
8561         * bin/autoreconf.in (&study_gettextize): New.
8562         (&autoreconf): Handle newest gettextize.
8563         Rerun aclocal if needed.
8564         Suggested by Andreas Schwab.
8566 2002-03-13  Akim Demaille  <akim@epita.fr>
8568         * doc/autoconf.texi (Special Shell Variables): More about IFS.
8570 2002-03-13  Akim Demaille  <akim@epita.fr>
8572         * doc/autoconf.texi (Header Portability): New.
8573         Add information about stdint.h and inttypes.h from Paul Eggert.
8575 2002-03-13  Akim Demaille  <akim@epita.fr>
8577         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
8578         -p'.
8579         From Bob Proulx.
8581 2002-03-12  Akim Demaille  <akim@epita.fr>
8583         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
8584         m4_require.
8586 2002-03-11  Andreas Schwab  <schwab@suse.de>
8588         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
8589         does not do it if --with-lispdir is given.
8591 2002-03-08  Akim Demaille  <akim@epita.fr>
8593         Version 2.53.
8595 2002-03-08  Akim Demaille  <akim@epita.fr>
8597         * doc/autoconf.texi (Subdirectories): Clarify that the
8598         subdirectory should exist.
8600 2002-03-08  Akim Demaille  <akim@epita.fr>
8602         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
8604 2002-03-08  Akim Demaille  <akim@epita.fr>
8606         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
8607         aliases the actual variables, and modifications of the former
8608         affect the latter.
8610 2002-03-08  Akim Demaille  <akim@epita.fr>
8612         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
8613         because of C-c: have m4 output in tmp files, then mv them.
8615 2002-03-08  Akim Demaille  <akim@epita.fr>
8617         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
8618         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
8619         * bin/ifnames.in: Copyright update.
8621 2002-03-08  Akim Demaille  <akim@epita.fr>
8623         * doc/autoconf.texi (Invoking autom4te): New.
8625 2002-03-05  Akim Demaille  <akim@epita.fr>
8627         * doc/autoconf.texi (Specifying Names): Clarification suggested by
8628         Kevin Ryde.
8630 2002-03-05  Akim Demaille  <akim@epita.fr>
8632         Version 2.52i.
8634 2002-03-04  Akim Demaille  <akim@epita.fr>
8636         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
8637         * lib/autoconf/general.m4 (AC_INIT): More informative error
8638         message for LIBOBJ.
8640 2002-03-04  Akim Demaille  <akim@epita.fr>
8642         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
8643         parallel builds.
8645 2002-03-04  Akim Demaille  <akim@epita.fr>
8647         * doc/autoconf.texi (Transforming Names): Equality between target
8648         and host is irrelevant.
8649         (Specifying Names, Canonicalizing): Remove all references to the
8650         backward compatibility hooks.  Rather, collect them all into...
8651         (Hosts and Cross-Compilation): this new section.
8652         * doc/install.texi (System Type): Ditto.
8653         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
8654         that `--host' implies cross-compilation.
8656 2002-03-04  Akim Demaille  <akim@epita.fr>
8658         * doc/autoconf.texi (Evaluation Macros): New.
8659         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
8660         useless.
8661         (_m4_foreach): Define the variant with immediate evaluation so
8662         that it contains exactly the items, not an expression which
8663         evaluation is the current item.
8664         (m4_re_string, m4_re_word): Don't over quote them.
8666 2002-03-04  Akim Demaille  <akim@epita.fr>
8668         Instead of having stacking `shift's evaluated at the end, let
8669         `foreach' loops immediately evaluate them.
8671         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
8672         $*.  This is the n-th time I change my mind, but hopefully this is
8673         the last...
8674         (m4_lquote): New.
8675         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
8676         efficient.
8677         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
8678         it was only a hack for m4_text_wrap.
8679         (m4_car2): Remove, replaced by...
8680         (m4_cdr): New.
8681         (_m4_foreach): Adjust.
8682         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
8683         m4_bpatsubst for clarification.
8685 2002-03-04  Akim Demaille  <akim@epita.fr>
8687         * doc/autoconf.texi (Changequote is Evil): New.
8689 2002-03-03  Kevin Ryde  <user42@zip.com.au>
8691         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
8692         on old systems like SunOS.
8694 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
8696         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
8697         lib/autoconf/functions.m4, lib/autoconf/general.m4,
8698         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
8699         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
8700         of messages.
8702 2002-02-28  Akim Demaille  <akim@epita.fr>
8704         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
8705         message to be sent.
8707 2002-02-28  Kevin Ryde  <user42@zip.com.au>
8709         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
8711 2002-02-25  Akim Demaille  <akim@epita.fr>
8713         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
8714         From Akinori Musha.
8716 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
8718         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
8719         translate \r\n to \n.
8721 2002-02-07  Akim Demaille  <akim@epita.fr>
8723         Version 2.52h.
8725 2002-02-07  Akim Demaille  <akim@epita.fr>
8727         Fix Autoconf PR/209.
8728         Also reported by Frank Denis.
8730         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
8732 2002-02-07  Akim Demaille  <akim@epita.fr>
8734         Fix Autoconf PR/207:
8735         AC_PREFIX_PROGRAM fails with dashed program names
8737         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
8738         variable when looking for the prefix program.
8739         Now it also works for shell variables.
8741 2002-02-07  Akim Demaille  <akim@epita.fr>
8743         * doc/autoconf.texi (Limitations of Builtins): More about
8744         case/esac.
8746 2002-02-06  Akim Demaille  <akim@epita.fr>
8748         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
8749         case/esac, some shells don't support it.
8750         Reported by Zack Weinberg.
8751         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
8753 2002-02-06  Akim Demaille  <akim@epita.fr>
8755         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
8756         sure not to introduce newlines in at_groups.
8757         * lib/autotest/Makefile.am (autotest.m4f): Typo.
8759 2002-02-06  Akim Demaille  <akim@epita.fr>
8761         * tests/torture.at (Configuring subdirectories): Skip if aclocal
8762         is not available.
8764 2002-02-05  Paul Eggert  <eggert@twinsun.com>
8766         * doc/autoconf.texi (Specific Compiler Characteristics):
8767         Describe HP-UX cc bug workaround more accurately.
8768         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
8769         not unsigned long.
8770         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
8771         cross-compilers, too.  This undoes some of the most recent change
8772         to this file.
8774 2002-02-05  Akim Demaille  <akim@epita.fr>
8776         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
8777         to make sure they are up to date when `check' is run.
8779 2002-02-05  Akim Demaille  <akim@epita.fr>
8781         * doc/autoconf.texi (Making testsuite Scripts): Document
8782         package.m4.
8784 2002-02-05  Akim Demaille  <akim@epita.fr>
8786         * lib/freeze.mk: New.
8788 2002-02-05  Akim Demaille  <akim@epita.fr>
8790         Implement `autom4te --freeze'.
8792         * bin/autom4te.in (&freeze): New.
8793         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
8794         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
8796 2002-02-05  Akim Demaille  <akim@epita.fr>
8798         * bin/autom4te.in (&parse_args): Implement `frozen files are
8799         optional are the sum of the previous files on the command line'.
8800         Also, pass `--reload-state=' on them, so...
8801         (handle_m4): don't.
8802         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
8803         (M4sh): Rely on M4sugar.
8804         (Autotest, M4sh, M4sugar): Use frozen files.
8806 2002-01-31  Akim Demaille  <akim@epita.fr>
8808         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
8809         * doc/autoconf.texi (Initializing configure): Adjust.
8811 2002-01-30  Akim Demaille  <akim@epita.fr>
8813         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
8814         alphanumeric to `-' instead of `_'.
8816 2002-01-30  Akim Demaille  <akim@epita.fr>
8818         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
8819         for plain code, the other for cross-compilation code.  The latter
8820         is now run with GCC only.
8821         * doc/autoconf.texi (Compilers and Preprocessors): New.
8823 2002-01-30  Akim Demaille  <akim@epita.fr>
8825         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
8826         values.
8827         * doc/autoconf.texi (Initializing configure): Explain how to
8828         change AC_INIT default values.
8830 2002-01-29  Akim Demaille  <akim@epita.fr>
8832         * tests/torture.at (Configuring subdirectories): Use configure.in,
8833         so that aclocal 1.4 works.
8834         Reported by Alexandre Duret-Lutz and Larry Schmitt.
8836 2002-01-28  Akim Demaille  <akim@epita.fr>
8838         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
8839         needs an argument.
8841 2002-01-28  Akim Demaille  <akim@epita.fr>
8843         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
8844         AUTOTEST_PATH *after* it was set.
8845         Don't put `.' in the PATH: the user should be precise and `./' if
8846         needed.  In addition, given that the test suite does some `cd', if
8847         `.' is in the path, the `tested programs' sections will report
8848         programs found in the test suite's directory, while during the
8849         tests (performed in their own directory), these programs are no
8850         longer visible.  In other words, the results is confusing and
8851         useless.
8852         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
8854 2002-01-24  Akim Demaille  <akim@epita.fr>
8856         Version 2.52g.
8858 2002-01-24  Akim Demaille  <akim@epita.fr>
8860         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
8861         * doc/autoconf.texi: Finally add Akim as an author.
8863 2002-01-24  Akim Demaille  <akim@epita.fr>
8865         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
8866         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
8867         Bourne. Use /bin/sh.
8868         From Andreas Buening.
8870 2002-01-24  Akim Demaille  <akim@epita.fr>
8872         * config/config.guess, config/config.sub, config/texinfo.tex:
8873         Update from masters.
8875 2002-01-24  Akim Demaille  <akim@epita.fr>
8877         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
8878         * config/auxdir.m4, config/cond.m4, config/depend.m4,
8879         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
8880         * config/missing.m4, config/sanity.m4, config/select.m4,
8881         * config/strip.m4: Remove, to ease sync'ing with any version of
8882         Automake.
8884 2002-01-24  Akim Demaille  <akim@epita.fr>
8886         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
8887         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
8888         Reported by Geir Ove Myhr.
8890 2002-01-21  Akim Demaille  <akim@epita.fr>
8892         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
8894 2002-01-21  Akim Demaille  <akim@epita.fr>
8896         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
8897         message on invalid options.
8898         * bin/autom4te.in (parse_args): Don't use
8899         Autoconf::General::getopt with non valid options.
8901 2002-01-17  Jim Meyering  <meyering@lucent.com>
8903         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
8904         $ac_cv_exeext so we don't use an old, invalid, cached value.
8906 2002-01-11  Akim Demaille  <akim@epita.fr>
8908         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
8909         Meyering.
8910         * doc/autoconf.texi (Function Portability): Document the strnlen
8911         limitation.
8912         (Particular Functions): Document AC_FUNC_STRNLEN.
8913         * lib/autoscan/functions: Adjust.
8915 2002-01-06  Akim Demaille  <akim@epita.fr>
8917         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
8918         package.m4, since is really depends upon configure.ac, not
8919         configure.
8920         * doc/autoconf.texi (testsuite Scripts): Adjust.
8921         * tests/Makefile.am (package.m4): New.
8922         EXTRA_DIST it since its a source.
8924 2002-01-06  Akim Demaille  <akim@epita.fr>
8926         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
8927         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
8928         and PACKAGE_BUGREPORT from here...
8929         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
8930         arguments.
8931         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
8932         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
8933         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
8934         * tests/tools.at (autoheader): Adjust.
8935         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
8937 2002-01-06  Akim Demaille  <akim@epita.fr>
8939         * bin/autoscan.in (scan_file): Use `&used'.
8941 2002-01-03  Akim Demaille  <akim@epita.fr>
8943         * doc/autoconf.texi (Output): Improved wording regarding use of
8944         AC_OUTPUT.
8945         From Olly Betts.
8947 2001-12-18  Kevin Ryde  <user42@zip.com.au>
8949         * doc/autoconf.texi (Function Portability): Add notes on sscanf
8950         sometimes needing writable input.
8952 2001-12-17  Jim Meyering  <meyering@lucent.com>
8954         * doc/autoconf.texi (New Macros): Tweak wording.
8956 2001-12-14  Akim Demaille  <akim@epita.fr>
8958         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
8959         trailing files, don't apply `-rf' to files which might not be
8960         created by configure (core, core.*, and *.core), but just `rm -f'.
8961         Suggested by Jonathan Kamens.
8963 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
8965         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
8967 2001-12-14  Akim Demaille  <akim@epita.fr>
8969         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
8971 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
8973         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
8974         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
8975         abs_srcdir, top_srcpath to abs_top_srcdir.
8976         (_AC_OUTPUT_FILES): Adjust.
8977         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
8978         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
8979         * tests/wrappl.in, tests/wrapsh.in: Adjust.
8981 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
8983         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
8984         C/Fortran linking on HP/UX, by extracting the Fortran library
8985         search path from the LPATH line in the $F77 -v output.
8987 2001-12-12  Kevin Ryde  <user42@zip.com.au>
8989         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
8990         forbidden file descriptors table.
8992 2001-11-26  Akim Demaille  <akim@epita.fr>
8994         * bin/autoscan.in (%c_keywords): Build it at top level.
8995         Map to 1 in order to simplify its uses.
8997 2001-11-26  Akim Demaille  <akim@epita.fr>
8999         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
9000         Remove $filepath, useless.
9001         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
9002         variables, they are really part of the tokens.
9003         Split the input line on spaces and then look for tokens.
9004         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
9005         because of `lex$U.$(OBJEXT)'.
9006         (&scan_files): Use "@list" instead of join.
9007         * doc/Makefile.am (CLEANFILES): Add *.fns.
9009 2001-11-26  Akim Demaille  <akim@epita.fr>
9011         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
9012         Remove, replaced by...
9013         * tests/wrappl.in: Be common for all the Perl executables.
9014         In particular autoscan and autoheader want -I.
9015         * configure.ac: Adjust.
9016         * lib/autoscan/headers: errno.h is portable.
9018 2001-11-26  Akim Demaille  <akim@epita.fr>
9020         * bin/autoscan.in (used): New.
9021         Use it.
9023 2001-11-26  Akim Demaille  <akim@epita.fr>
9025         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
9026         directives.
9027         (&scan_sh_file): Remove a duplicate pattern.
9028         (&check_configure_ac): Use long options.
9029         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
9031 2001-11-26  Akim Demaille  <akim@epita.fr>
9033         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
9034         Before, having a line containing the opening of a multi line
9035         comment made the whole line be ignored.
9037 2001-11-26  Akim Demaille  <akim@epita.fr>
9039         * doc/autoconf.texi (Using an Autotest Test Suite): New.
9040         (testsuite Scripts): Be one of its subsection.
9041         (Autotest Logs): New.
9043 2001-11-26  Akim Demaille  <akim@epita.fr>
9045         Test groups are now run two directories deeper.
9047         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
9048         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
9049         at_top_builddir.
9050         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
9051         top_srcdir, builddir and top_builddir.
9052         Use `at_*dir' relatively to the directory containing the
9053         suite, use `*dir' when relatively to the current group dir.
9055 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
9057         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
9058         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
9059         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
9060         spelling errors.
9062 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
9064         * doc/autoconf.texi (Using System Type): Add an example of `case
9065         $host' usage so people quit using `case $target' everywhere.
9067 2001-11-22  Akim Demaille  <akim@epita.fr>
9069         * doc/autoconf.texi (Installation Directory Variables): Englishoes
9070         spotted by Jim Meyering.
9072 2001-11-16  Paul Eggert  <eggert@twinsun.com>
9074         This patch implements a `long double' suggestion by Oliver Kiddle.
9076         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
9077         static, to catch errors if the value isn't known at compile-time
9078         and the compiler supports dynamic arrays.  Change its name from
9079         `_array_' to `test_array' to avoid potential name clashes.
9080         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
9081         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
9082         better than double.  Catch a bug in GCC 2.95.2 x86.
9083         * doc/autoconf.texi (C Compiler): Document the above.
9084         * NEWS: Likewise.
9086 2001-11-13  Akim Demaille  <akim@epita.fr>
9088         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
9089         hand.
9090         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
9092 2001-11-13  Akim Demaille  <akim@epita.fr>
9094         * lib/autotest/general.m4 (AT_INIT): After having run the test
9095         group, go back to the initial directory, not to at_suite_dir.
9097 2001-11-13  Akim Demaille  <akim@epita.fr>
9099         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
9100         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
9101         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
9102         option.
9103         (AT_CHECK_CONFIGURE): Use absolute paths.
9104         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
9105         The problem is still the old one: there is no means in M4 (that I
9106         know about) to create a defining macro, because there is no means
9107         to create `$1' etc., therefore, the defining macro ``swallows''
9108         all the arguments meant to the defined macro.
9110 2001-11-13  Akim Demaille  <akim@epita.fr>
9112         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
9113         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
9114         configure.ac.
9115         * tests/aclocal.m4: Remove, as it is no longer used.
9117 2001-11-13  Akim Demaille  <akim@epita.fr>
9119         * lib/autotest/general.m4: Change `tests?' into `groups?' in
9120         variable names when referring to a single test group, or to
9121         `suite' when referring to the whole test suite.
9122         `at_last_test' is removed: m4 compute at_format itself.
9123         (at_stdout, at_stder1, at_stderr): New variables.
9124         (AT_CHECK): Use them.
9126 2001-11-13  Akim Demaille  <akim@epita.fr>
9128         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
9129         in PATH.
9130         Create `testsuite.dir/003/run' instead of `testsuite.003'.
9131         Do it as soon as a test fails, don't wait till the end of the test
9132         suite.
9133         Don't remove $as_me.[0-9]*, since these files no longer exist.
9135 2001-11-13  Akim Demaille  <akim@epita.fr>
9137         * tests/tools.at: Use absolute paths, since we are no longer run
9138         in place.
9140 2001-11-13  Akim Demaille  <akim@epita.fr>
9142         Now that tests are running in their own private dir, there is no
9143         need to list the files to remove at the end of tests groups.
9145         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
9146         (AT_data_files, at_data_files): Remove.
9147         (AT_CLEANUP, AT_DATA): Simplify.
9148         (AT_INIT): Adjust.
9149         Remove the group dir if !debug && !failed.
9150         * tests/atspecific.m4: Adjust.
9152 2001-11-13  Akim Demaille  <akim@epita.fr>
9154         Start a new layout for Autotest: `testsuite' creates
9155         `testsuite.dir' in which the at-check-line etc. files are to be
9156         found, and `testsuite.dir/003' where the test group 3 is run.
9158         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
9159         at_check_line_file, at_format, at_test_normalized, at_group_dir
9160         are new variables.
9161         Create the directories.
9162         Use absolute paths for at- files.
9163         (AT_CHECK): Adjust.
9165 2001-11-11  Michael Matz  <matz@kde.org>
9167         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
9168         (m4_car2): New.
9169         (m4_car): Properly quote arguments.
9171 2001-11-13  Akim Demaille  <akim@epita.fr>
9173         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
9174         with stricter rules on LIBOBJS.
9176 2001-11-12  Paul Eggert  <eggert@twinsun.com>
9178         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
9179         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
9180         __PROTOTYPES too.
9182 2001-11-12  Akim Demaille  <akim@epita.fr>
9184         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
9186 2001-11-12  Akim Demaille  <akim@epita.fr>
9188         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
9189         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
9190         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
9191         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
9192         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
9193         specify to what the macro should be defined (typically to 1).
9195 2001-11-12  Akim Demaille  <akim@epita.fr>
9197         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
9198         From Jim Meyering.
9200 2001-11-12  Akim Demaille  <akim@epita.fr>
9202         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
9203         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
9204         definition used by Automake where LEX is +/- "${missing} lex" and
9205         `missing' itself contains variables.
9207 2001-11-12  Akim Demaille  <akim@epita.fr>
9209         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
9210         Now that M4sh pushes BODY, the comments were output at the end of
9211         the test suites.
9213 2001-11-08  Akim Demaille  <akim@epita.fr>
9215         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
9216         that we can trace macros from aclocal.m4.
9217         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
9218         obsoleted, and redirect to the former anyway.
9219         Reported by Ralf Corsepius.
9221 2001-11-08  Akim Demaille  <akim@epita.fr>
9223         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
9224         processed only if present.
9225         * tests/torture.at (Configuring subdirectories): Use autoreconf
9226         instead of successive calls to autoconf.
9227         Add a nonexistent subdirectory to exercise the patch above.
9228         Reported by Ralf Corsepius.
9230 2001-11-08  Kevin Ryde  <user42@zip.com.au>
9232         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
9233         doesn't accept .S files.
9235 2001-11-07  Akim Demaille  <akim@epita.fr>
9237         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
9238         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
9239         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
9240         * bin/autom4te.in (warn_forbidden): New.
9241         (handle_output): Use it.
9242         Read m4_pattern_forbid with messages.
9244 2001-11-05  Akim Demaille  <akim@epita.fr>
9246         * bin/autom4te.in (--normalize): Remove.
9247         * lib/autom4te.in: Adjust.
9249 2001-11-05  Akim Demaille  <akim@epita.fr>
9251         * tests/Makefile.am (testsuite): Rename this target as...
9252         ($(TESTSUITE)): this.
9253         From Nicolas Joly.
9255 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
9257         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
9258         the --prefix option, also remove it's argument.
9260 2001-11-05  Akim Demaille  <akim@epita.fr>
9262         * doc/autoconf.texi (testsuite Invocation): Update.
9263         (Writing testsuite.at): Update.
9265 2001-11-03  Akim Demaille  <akim@epita.fr>
9267         * doc/autoconf.texi: s/@code/@command/ where appropriate.
9269 2001-11-03  Akim Demaille  <akim@epita.fr>
9271         * lib/Autom4te/General.pm: (&catfile, &canonfile)
9272         (&file_name_is_absolute): New, wrappers around routines from
9273         File::Spec.
9274         Use and export them.
9275         (&find_configure_ac): Optionally take a directory where to look at.
9276         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
9277         the arguments.
9278         Default @ARGV to `.', not find_configure_ac.
9279         (&autoreconf): Argument is a directory.
9280         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
9281         * doc/autoconf.texi (autoreconf Invocation): Update.
9283 2001-11-03  Akim Demaille  <akim@epita.fr>
9285         * lib/Autom4te/General.pm (@export_vars, @export_subs)
9286         (@export_forward_subs): New.
9287         Add basename, dirname, and fileparse.
9288         (@EXPORT): Adjust.
9289         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
9290         Don't look for aclocal flags if we already know aclocal is not
9291         used.
9292         Move aclocal.m4t only if it exists.
9293         Reported by Ezra Peisach.
9295 2001-11-03  Akim Demaille  <akim@epita.fr>
9297         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
9298         passed on command line, defaulting to ./configure.ac if present.
9299         (&maybe_autoreconf, File::Find): Remove, unused.
9300         (&autoreconf): If autoconf is not used, don't try to trace.
9302 2001-11-02  Akim Demaille  <akim@epita.fr>
9304         * configure.ac: Bump to 2.52g.
9306 2001-11-02  Akim Demaille  <akim@epita.fr>
9308         Version 2.52f.
9310 2001-11-02  Akim Demaille  <akim@epita.fr>
9312         * config/config.guess, config/config.sub, doc/standards.texi:
9313         * config/lispdir.m4: Update from masters.
9314         * configure.ac: Bump to 2.52f.
9316 2001-11-02  Akim Demaille  <akim@epita.fr>
9318         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
9319         Don't run aclocal when aclocal.m4 is not from aclocal.
9320         From Ezra Peisach.
9321         Don't run libtoolize and gettextize if --install is not given.
9323 2001-11-01  Paul Eggert  <eggert@twinsun.com>
9325         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
9326         be invoked before _AS_LINENO_PREPARE.
9327         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
9328         than character ranges.
9330         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
9331         invoking AS_BASENAME.  Set the locale variables to 'C' if
9332         possible, as POSIX requires this to get the traditional
9333         behavior.
9334         * doc/autoconf.texi (Special Shell Variables): Describe the above.
9336 2001-10-31  Paul Eggert  <eggert@twinsun.com>
9338         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
9339         with {}, as that triggers a bug in Bash 2.05.
9341         (_AS_LINENO_PREPARE): Use Sed rather than
9342         Awk.  Fix the sed prepass to work even if there are multiple
9343         instances of $LINENO on the same line.  Do not substitute for
9344         other variables like $LINENOT.  Do not check file dates; such a
9345         check is unreliable on sufficiently fast machines, and removing
9346         the check makes the code simpler and more reliable.  Check for
9347         output and chmod failures.
9349         * doc/autoconf.texi (Special Shell Variables): Document
9350         the above.
9352 2001-10-31  Akim Demaille  <akim@epita.fr>
9354         * tests/Makefile.am (atconfig): Remove this target, Automake
9355         handles it now.
9357 2001-10-31  Akim Demaille  <akim@epita.fr>
9359         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
9360         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
9361         provided, while it is optional.
9362         * configure.ac: Adjust.
9364 2001-10-26  Paul Eggert  <eggert@twinsun.com>
9366         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
9367           lib/Autom4te/Struct.pm:
9368         Require Perl 5.005_03 instead of just 5.005, as some tests fail
9369         with 5.005_02.
9371         * doc/autoconf.texi (Special Shell Variables): Document some
9372         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
9374         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
9375         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
9376         eval $LINENO is not portable in practice.
9378 2001-10-24  Akim Demaille  <akim@epita.fr>
9380         * lib/Autom4te/General.pm (backname): New.
9382 2001-10-24  Akim Demaille  <akim@epita.fr>
9384         * m4/: Remove, merged into...
9385         * config/: here.
9387 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
9389         * doc/autoconf.texi (Shellology): Mention the problems with bash
9390         2.05's use of ANSI quoting in its `set' builtin.
9392 2001-10-22  Paul Eggert  <eggert@twinsun.com>
9394         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
9395         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
9396         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
9397         POSIX decided to standardize on the int flavor of strerror_r.
9398         Always do char* test, as there's no reason not to.
9399         Assign to a char* var, to catch strerror_r that returns int*.
9401         * doc/autoconf.texi (Particular Functions):
9402         Document the above changes.  Also, document the fact that
9403         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
9405         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
9407 2001-10-20  Akim Demaille  <akim@epita.fr>
9409         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
9410         the executable was missing from the log.
9412 2001-10-20  Akim Demaille  <akim@epita.fr>
9414         * lib/Autom4te/General.pm (&update_file): If destination is
9415         unchanged, remove the source.
9416         (&up_to_date_p): Don't be verbose, be debug.
9417         * bin/autoreconf.in: No longer support --m4dir.
9418         (&autoreconf): Display the full path of the configure.ac we are
9419         studying.
9420         Trace it only once.
9421         Be sure to honor --force with gettextize.
9422         Always run aclocal.
9423         * doc/autoconf.texi: Adjust.
9425 2001-10-20  Akim Demaille  <akim@epita.fr>
9427         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
9428         Remove, dead.
9429         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
9430         `intl' is already present, as it refuses unless --force.
9431         (&parse_args): Use -I, --include instead of the old Autoconf
9432         options.
9433         ($localdir, $autoconf_dir): Remove.
9434         (@include): New.
9435         (&maybe_autoreconf): New, to preserve $_ for File::Find.
9437 2001-10-19  Jens Petersen  <petersen@redhat.com>
9439         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
9440         * doc/autoconf.texi (Particular Programs): Likewise.
9442 2001-10-19  Akim Demaille  <akim@epita.fr>
9444         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
9445         file in @configure_input@.
9446         Don't mention `automatically' in addition to `generated'.
9447         * tests/torture.at (#define header templates): Adjust.
9449 2001-10-19  Akim Demaille  <akim@epita.fr>
9451         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
9452         comment, explain how to install automatic mode selection.
9453         From Russ Allbery.
9455 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
9457         * bin/autoreconf.in (autoreconf): Display the path to the
9458         configure.ac being studied.
9460 2001-10-18  Paul Eggert  <eggert@twinsun.com>
9462         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
9463         long, to work around a bug in the HP C compiler version HP92453-01
9464         B.11.11.23709.GP.
9466         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
9467         (AS_BASENAME_EXPR): New macro.
9468         (AS_BASENAME_SED): Do not assume GNU sed semantics.
9469         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
9470         and fall back on 'sed' only if the other two fail.  This makes
9471         AS_BASENAME act more like AS_DIRNAME.
9472         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
9473         contains white space.
9474         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
9475         Use AS_DIRNAME, since I think it's now DOS-friendly.
9476         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
9477         Allow "dirname //FOO" to return either / or //, as POSIX allows
9478         either behavior.
9480 2001-10-10  Akim Demaille  <akim@epita.fr>
9482         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
9483         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
9484         From Eric Sharkey.
9486 2001-10-10  Akim Demaille  <akim@epita.fr>
9488         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
9489         m4_define, since...
9490         (_AS_ECHO_N): AS_REQUIREs it.
9492 2001-10-10  Akim Demaille  <akim@epita.fr>
9494         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
9495         (AC_INCLUDES_DEFAULT): Move to...
9496         * lib/autoconf/headers.m4: here.
9497         * lib/autoconf/types.m4: Comment changes.
9498         * doc/autoconf.texi: Specify where the default includes are used
9499         in the macro prototypes.
9501 2001-10-09  Akim Demaille  <akim@epita.fr>
9503         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
9504         transition code.
9506 2001-10-08  Akim Demaille  <akim@epita.fr>
9508         * bin/autoreconf.in (&autoreconf): Remove debugging code.
9509         (&parse_args): Pass verbosity/debugging options to subtools when
9510         --debug, not when --verbose.
9511         * lib/autom4te.in (Autoreconf-preselections): New.
9512         (Autoconf): Use it.
9514 2001-10-08  Akim Demaille  <akim@epita.fr>
9516         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
9518 2001-10-08  Akim Demaille  <akim@epita.fr>
9520         * doc/autoconf.texi (autoreconf Invocation): Adjust.
9521         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
9523 2001-10-08  Akim Demaille  <akim@epita.fr>
9525         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
9526         (Syntax of the shell scripts): Don't.
9527         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
9528         bother with $force since...
9529         * lib/Autom4te/General.pm: does.
9531 2001-10-08  Akim Demaille  <akim@epita.fr>
9533         * bin/autoreconf.in: Rewrite in Perl.
9534         * configure.ac: Adjust.
9535         * lib/Autom4te/General.pm (&up_to_date_p): New.
9536         * bin/autom4te.in (&up_to_date_p): Use it.
9537         Rename as...
9538         (&up_to_date): this.
9540 2001-10-08  Akim Demaille  <akim@epita.fr>
9542         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
9543         (m4_list_cmp): Use $0 to reinvoke yourself.
9544         (m4_patsubsts): New.
9545         (m4_strip, m4_version_unletter): Use it.
9546         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
9548 2001-10-08  Akim Demaille  <akim@epita.fr>
9550         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
9551         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
9552         * lib/autoconf/types.m4, lib/autotest/general.m4,
9553         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
9554         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
9555         m4_bregexp, m4_bpatsubst, and m4_bmatch.
9556         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
9558 2001-10-08  Akim Demaille  <akim@epita.fr>
9560         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
9562 2001-10-08  Akim Demaille  <akim@epita.fr>
9564         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
9565         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
9566         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
9567         * tests/tools.at, tests/m4sh.at: Use it.
9568         * tests/m4sh.at: Don't rely on Autoconf macros.
9569         (DIRNAME_TEST): Also exercise the expr variant.
9570         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
9571         preferred M4sugar extension is now `.4s'.
9572         * tests/README: Remove.
9574 2001-10-08  Akim Demaille  <akim@epita.fr>
9576         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
9577         (m4_provide_if): this.
9578         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
9579         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
9580         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
9581         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
9583 2001-10-08  Akim Demaille  <akim@epita.fr>
9585         Use `add-log-current-defun-function' for ChangeLog creation.
9586         Suggested by Tom Tromey.
9588         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
9589         (autotest-mode): Adjust.
9590         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
9591         'comment-region onto `C-c ;'.
9592         Comments are `#', not `dnl'.
9593         (autoconf-current-defun): New.
9594         (autoconf-font-lock-keywords): Recognize `m4_defun'.
9596 2001-10-08  Akim Demaille  <akim@epita.fr>
9598         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
9599         * lib/m4sugar/m4sh.m4: here.
9600         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
9601         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
9602         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
9603         include handle the m4_pattern_*, no longer push the
9604         BODY diversion nor set the /bin/sh line, AS_INIT does it.
9605         * lib/autotest/general.m4 (AT_INIT): Likewise.
9606         * tests/base.at: Adjust the tests to use AS_INIT.
9607         * tests/tools.at (AT_DATA_FORBIDDEN): New.
9608         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
9609         Autoconf.
9611 2001-10-07  Paul Eggert  <eggert@twinsun.com>
9613         * doc/autoconf.texi (config.status Invocation):
9614         CONFIG_SHELL defaults to a shell that supports LINENO if available.
9616         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
9617         shell does not support LINENO, and if CONFIG_SHELL is unset or
9618         empty, and if we can find a shell that does support LINENO,
9619         then set CONFIG_SHELL to that shell and then re-execute
9620         ourselves with CONFIG_SHELL.
9622 2001-10-05  Paul Eggert  <eggert@twinsun.com>
9624         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
9625         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
9626         build of $(TESTSUITE).
9628 2001-10-05  Akim Demaille  <akim@epita.fr>
9630         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
9631         iff we are a bareword.
9632         Reported by Raja R Harinath.
9634 2001-10-05  Akim Demaille  <akim@epita.fr>
9636         * tests/m4sh.at (LINENO): New.
9637         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
9638         PATH_SEPARATOR before using it.
9639         Fix the absolute path case/esac pattern.
9640         Provide $0 as fallback for as_myself.
9641         Reported by Raja R Harinath.
9643 2001-10-05  Akim Demaille  <akim@epita.fr>
9645         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
9646         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
9648 2001-10-05  Akim Demaille  <akim@epita.fr>
9650         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
9651         (AS_SHELL_SANITIZE): here.  Use it.
9652         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
9653         From Paul Eggert.
9655 2001-10-04  Akim Demaille  <akim@epita.fr>
9657         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
9658         combination of Awk and sed to replace $LINENO.
9660 2001-10-02  Paul Eggert  <eggert@twinsun.com>
9662         * doc/autoconf.texi (Limitations of Builtins): You can't use
9663         "source"; it's not portable.  Remove confusing and
9664         somewhat-incorrect example involving "." and "/".
9666         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
9667         compatibility with POSIX shells.
9669 2001-10-02  Akim Demaille  <akim@epita.fr>
9671         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
9672         instead of exec'ing to preserve $0 and $@.
9674 2001-10-01  Akim Demaille  <akim@epita.fr>
9676         * tests/testsuite (AT_INIT) <at_pass_list>: New.
9677         Don't run twice the same test.
9679 2001-10-01  Akim Demaille  <akim@epita.fr>
9681         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
9682         No longer output the list of tests.
9683         <--list>: New option.
9684         <--full-help>: Remove.
9685         Complete the short/long options duality.
9686         Various small adjustments.
9688 2001-10-01  Akim Demaille  <akim@epita.fr>
9690         * doc/autoconf.texi: Use @kbd for user input.
9691         Always use `$' as shell prompt.
9693 2001-09-30  Paul Eggert  <eggert@twinsun.com>
9695         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
9696         Don't use nested parenthesization.  This patch was originally
9697         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
9698         but somehow it didn't get incorporated then.
9699         * doc/autoconf.texi (Limitations of Usual Tools):
9700         Clarify remark about sed and nested parenthesization.
9702         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
9703         Report an error if the size cannot be determined even though
9704         the type exists.
9705         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
9706         Check for `expr' arithmetic overflow, and for compilation failure,
9707         and invoke a new argument $4 if either is discovered.
9708         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
9709         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
9711 2001-09-28  Akim Demaille  <akim@epita.fr>
9713         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
9714         * m4/lispdir.m4: New.
9715         * aclocal.m4, configure.ac: Adjust.
9717 2001-09-28  Akim Demaille  <akim@epita.fr>
9719         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
9720         (AT_TESTED): this.
9721         (AT_INIT): More the wrapped section to where it will be expanded.
9722         Output `AT_tested' only when existing.
9723         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
9725 2001-09-27  Akim Demaille  <akim@epita.fr>
9727         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
9728         generates too many bug reports.
9730         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
9731         status when executing the ACTION-IF-FALSE.
9732         * tests/base.at (AC_TRY_*): Rename as...
9733         (AC_TRY_COMMAND): this.
9734         (AC_RUN_IFELSE): New.
9735         * tests/compile.at (Extensions, C keywords)
9736         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
9737         (Broken/missing compilers, AC_PROG_CPP with warnings)
9738         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
9739         * tests/c.at (Extensions, C keywords)
9740         (Broken/missing compilers, AC_PROG_CPP with warnings)
9741         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
9742         (AC_PROG_CPP requires AC_PROG_CC): here and...
9743         * tests/fortran.at (GNU Fortran 77): there.
9744         * doc/autoconf.texi (autoconf Invocation): Fix the example:
9745         AC_TRY_RUN is about compilation, not shell commands.
9746         (Test Programs): AC_TRY_RUN works as used to be advertised.
9748 2001-09-27  Akim Demaille  <akim@epita.fr>
9750         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
9751         Raja R Harinath:
9752         Be sure to detect when $LINENO always returns the same value.
9753         Look for the original script, basename($0) is certainly not
9754         enough.
9755         Pass the CLI arguments to `$as_me.lineno'.
9757 2001-09-25  Akim Demaille  <akim@epita.fr>
9759         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
9760         Be sure the close and reopen the LOG fd before and after using tee
9761         to extend the log.
9762         <at_tests_pattern>: Adjust to the new format of at_help_all.
9764 2001-09-23  Akim Demaille  <akim@epita.fr>
9766         * bin/autom4te.in (parse_args): There can be several invocations
9767         of --language now.
9769 2001-09-23  Akim Demaille  <akim@epita.fr>
9771         * doc/autoconf.texi (Top): Wrap in @ifnottex.
9773 2001-09-23  Akim Demaille  <akim@epita.fr>
9775         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
9776         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
9777         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
9778         builddir, buildpath, top_builddir, and top_buildpath.
9779         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
9780         the current directory.
9781         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
9782         variables *before* changing the current directory.
9783         Skip nonexistent dirs.
9784         * doc/autoconf.texi (Preset Output Variables): Document these
9785         variables.
9787         * lib/autotest/general.m4: Do not reset AT_victims.
9788         Don't compute at_srcdir nor at_top_srcdir.
9790         * tests/tools.at: Hence use top_srcdir.
9792         * tests/Makefile.am, tests/autoconf, tests/autoheader,
9793         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
9794         Remove.
9795         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
9796         * tests/wrapsh.in, tests/autoupdate.in: New.
9797         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
9798         * configure.ac: Build the position independent wrappers.
9800         * man/Makefile.am: Now that test wrappers are position
9801         independent, use them and drop dark envvar magic.
9803 2001-09-23  Akim Demaille  <akim@epita.fr>
9805         * doc/autoconf.texi (Common Shell Constructs): Rename as...
9806         (Programming in M4sh): this.
9807         Promote to @section.
9809 2001-09-23  Akim Demaille  <akim@epita.fr>
9811         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
9812         Pass $at_debug_args to the rerun test suite.
9813         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
9814         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
9815         From Paul Eggert.
9817 2001-09-23  Akim Demaille  <akim@epita.fr>
9819         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
9821 2001-09-23  Akim Demaille  <akim@epita.fr>
9823         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
9824         over-escaping.
9826 2001-09-23  Akim Demaille  <akim@epita.fr>
9828         * lib/Autom4te/General.pm (&debug): New.
9829         * bin/autom4te.in ($language): Move to...
9830         (parse_args): here.
9831         Handle --language in languages.
9832         * lib/autom4te.in (Automake-selections, Autoheader-selections)
9833         (Autoscan-selections): New.
9834         (Autoconf): Adjust.
9836 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
9838         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
9839         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
9840         to match current versions from CVS Automake.
9842 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
9844         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
9845         for $LINENO.
9847 2001-09-22  Akim Demaille  <akim@epita.fr>
9849         * lib/autoconf/autotest.m4: Create `package.m4'.
9850         * tests/Makefile.am (package.m4): Remove.
9852 2001-09-22  Akim Demaille  <akim@epita.fr>
9854         Rely on `$LINENO' when possible instead of `__oline__'.
9856         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
9857         `$LINENO' support replacement when not supported.
9858         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
9859         them explicitly to be sure they are not output before this section
9860         (via m4_require).  Cosmetic only.
9861         * lib/autoconf/c.m4, lib/autoconf/general.m4,
9862         * lib/autoconf/programs.m4: Replace all the occurrences of
9863         `__oline__' with `$LINENO'.
9864         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
9866 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
9868         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
9869         character (u: -> ue) in a code comment.
9870         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
9871         it works.
9873 2001-09-21  Akim Demaille  <akim@epita.fr>
9875         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
9876         Suggested by Jim Meyering.
9878 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9880         * lib/autoconf/programs.m4: Use extensions listed in
9881         $ac_executable_extensions when looking for programs.
9883 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9885         * lib/autoconf/general.m4: Fix a small Englisho.
9886         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
9887         setting up ac_dir_suffix and ac_top_builddir.
9888         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
9890 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9892         * doc/autoconf.texi (File System Conventions): Clarify the use of
9893         PATH_SEPARATOR.
9894         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
9895         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
9896         be used instead of ':'.
9897         * lib/autotest/general.m4: Replace occurrences of ':' in
9898         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
9900 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9902         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
9903         arguments.  Fixed a typo.
9905 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9907         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
9908         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
9910 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9912         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
9913         * bin/autoupdate.in: Ditto.
9914         * bin/autoheader.in: Reworded a few comments.
9915         * bin/autoconf.in: Reworded help text for a few options.
9916         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
9917         * bin/autoscan.in, bin/autoupdate.in: Ditto.
9919 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
9921         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
9922         already have $file).  Set output files to binary mode (helps avoid
9923         CR issues on DOSish systems).
9925 2001-09-19  Akim Demaille  <akim@epita.fr>
9927         * lib/autotest/general.m4: Englishoes.
9928         From Tim Van Holder and Alexey Mahotkin.
9930 2001-09-18  Paul Eggert  <eggert@twinsun.com>
9932         * doc/autoconf.texi (Common Shell Constructs): New node,
9933         documenting AS_DIRNAME.
9934         (Limitations of Usual Tools): Refer to it when discussing dirname.
9935         Also, update discussion of POSIX standard to reflect latest draft.
9937         * lib/autoconf/c.m4:
9938         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
9940         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
9941         Do not pass a first argument with leading '-'
9942         to expr, by parenthesizing initial integers that might be negative.
9944         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
9945         now merely checks whether it is an error to pass an argument
9946         to getpgrp.
9948         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
9949         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
9950         whether it is a (compile-time) error to pass an argument to
9951         getpgrp.  This simpler test supports the revised documentation,
9952         and is all that AC_FUNC_GETPGRP's users really need.
9954 2001-09-18  Akim Demaille  <akim@epita.fr>
9956         * doc/autoconf.texi (Limitations of Make) <$<>: New.
9958 2001-09-18  Akim Demaille  <akim@epita.fr>
9960         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
9961         `{}'.
9962         * lib/autotest/general.m4 (AT_INIT): Adjust.
9964 2001-09-18  Paul Wagland  <paul@wagland.net>
9966         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
9967         correctly.
9968         Add test for AS_BASENAME.
9969         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
9970         added test. It now correctly handles /1/2/3/, returning '3' not ''.
9971         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
9972         * tests/base.at: Fixed the expected responses. The old ones were
9973         one line out...
9974         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
9975         the documentation claims it should (and how it behaved in 2.13).
9977 2001-09-18  Akim Demaille  <akim@epita.fr>
9979         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
9980         the AC_CONFIG_COMMANDS invocation.
9981         This also solves the name clash problems.
9982         Don't set the package's ID.
9983         * lib/m4sugar/Makefile.am (version.m4): Revamp.
9984         No longer to be shipped.
9985         (version.in): Remove.
9986         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
9987         * lib/autoconf/status.m4: Adjust.
9988         Use `m4_PACKAGE_STRING'.
9989         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
9990         the only optional argument is the name of the test suite.
9991         Expect `package.m4' to define the package signature.
9992         * lib/autom4te.in (Autotest): Add `package.m4?'.
9993         * tests/Makefile.am (package.m4): New.
9994         * tests/suite.at: ifnames is a victim.
9996 2001-09-18  Akim Demaille  <akim@epita.fr>
9998         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
9999         AC_LIBSOURCE, AC_CONFIG_FILES.
10000         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
10001         program version string doesn't match the package's.
10002         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
10003         after `(cached)'.
10005 2001-09-17  Paul Eggert  <eggert@twinsun.com>
10007         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
10008         Allow expression to return any value that can fit into unsigned long
10009         (not int, as before).  Check for output errors.
10011 2001-09-17  Bruno Haible  <haible@ilog.fr>
10013         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
10014         Always include <stdio.h> and <stdlib.h>. Evaluate
10015         the expression in an extra function before these includes. Call
10016         fprintf "%d" only after ensuring the argument is of type 'int'.
10017         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
10019 2001-09-17  Paul Eggert  <eggert@twinsun.com>
10021         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
10022         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
10023         fatal errors, and AC_CHECK_LIB causes it to include libraries even
10024         when they don't exist.
10026         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
10027         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
10028         need it.
10030         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
10031         version with the version used by fileutils 4.1, except use
10032         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
10033         we don't need it.
10035         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
10037 2001-09-13  Akim Demaille  <akim@epita.fr>
10039         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
10040         _first_.
10041         Reported by Gerrit P. Haase.
10043 2001-09-13  Akim Demaille  <akim@epita.fr>
10045         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
10046         m4_defn'ing is valid.
10048 2001-09-13  Akim Demaille  <akim@epita.fr>
10050         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
10051         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
10052         Use it.
10054 2001-09-13  Akim Demaille  <akim@epita.fr>
10056         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
10057         m4_match.
10058         (m4_re_escape): New.
10059         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
10060         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
10061         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
10062         Likewise.
10063         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
10064         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
10065         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
10066         AT_tests_all for consistency.
10067         Set at_victims.
10068         (AT_VICTIMS): Similar to AT_KEYWORDS.
10069         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
10071 2001-09-13  Akim Demaille  <akim@epita.fr>
10073         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
10075 2001-09-13  Akim Demaille  <akim@epita.fr>
10077         * lib/autotest/general.m4 (AT_INIT): Create and remove
10078         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
10079         test suites can cohabit.
10081 2001-09-13  Akim Demaille  <akim@epita.fr>
10083         * tests/mktests.sh: Don't output banners for empty test files.
10085 2001-09-13  Akim Demaille  <akim@epita.fr>
10087         Test suites can be run independently of configure.
10089         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
10090         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
10091         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
10092         ECHO_N etc.
10093         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
10094         and at_c.
10095         * lib/autotest/general.m4: Use ECHO_*.
10097 2001-09-13  Akim Demaille  <akim@epita.fr>
10099         * bin/ifnames.in: Rewrite in Perl.
10100         * configure.ac: Don't look for AWK.
10101         * tests/tools.at (AWK portability): Remove.
10102         (Syntax of the shell scripts): Don't check ifnames.
10103         (AT_CHECK_PERL_SYNTAX): New.
10104         (Syntax of the Perl scripts): Check ifnames.
10105         * tests/ifnames: New.
10107 2001-09-13  Akim Demaille  <akim@epita.fr>
10109         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
10110         test group titles.
10111         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
10112         Remove all the other keywords.
10114 2001-09-10  Akim Demaille  <akim@epita.fr>
10116         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
10117         SETUP: no longer used.
10118         Support -k, --keywords.
10119         <at_help>: Be `no', `short', or `long'.
10120         <at_help_all>: New variable.
10121         (AT_KEYWORDS): New.
10122         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
10123         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
10124         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
10125         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
10126         No longer fill the HELP diversion.
10127         (AT_CLEANUP): Use them.
10128         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
10129         (m4_list_append): Remove.
10131         Spread a few keywords in the Autoconf test suite.
10133 2001-09-10  Akim Demaille  <akim@epita.fr>
10135         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
10136         PATH_SEPARATOR, let M4sh compute it.
10137         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
10138         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
10139         Move to...
10140         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
10141         Simplify when the path is not a literal.
10142         (AS_UNAME): Use it to report PATH.
10143         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
10144         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
10145         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
10146         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
10147         normalize the path, and to look for victims.
10148         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
10149         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
10151 2001-09-07  Akim Demaille  <akim@epita.fr>
10153         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
10154         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
10155         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
10156         related variables into `at_package_*'.
10157         * lib/autotest/general.m4 (AT_VICTIMS): New.
10158         (AT_INIT): Adjust for stand-alone/embedded test suites.
10159         (AS_MESSAGE_LOG_FD): Define and use it.
10160         * tests/suite.at (AT_VICTIMS): Use it.
10161         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
10162         at_version.
10164 2001-09-07  Akim Demaille  <akim@epita.fr>
10166         Move toward possibly stand-alone test suites.
10168         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
10169         in addition, it introduces useless differences in logs.
10170         (AT_INIT): Let atconfig and atlocal be both optional.
10171         Adjust PATH computation.
10172         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
10174 2001-09-07  Akim Demaille  <akim@epita.fr>
10176         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
10177         m4sugar/version.m4.
10179 2001-09-05  Akim Demaille  <akim@epita.fr>
10181         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
10182         to avoid GCC warnings.
10183         From Uwe Seimet.
10185 2001-09-05  Akim Demaille  <akim@epita.fr>
10187         * bin/autom4te.in: --language is -l, not -s.
10189 2001-09-05  Akim Demaille  <akim@epita.fr>
10191         Be ready to handle filenames as stupid as `dnl.at', for if even
10192         the maintainer is dumb enough to do that...
10194         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
10195         excellence in M4 quotation: consider `__file__' is active.
10197         And BTW, when invoking m4, pass the --include in the right order:
10198         the wrong one.
10200         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
10201         4m.
10203 2001-09-05  Akim Demaille  <akim@epita.fr>
10205         * lib/Autom4te/XFile.pm: New lib file.
10206         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
10207         * bin/autoheader.in: Use it.
10209 2001-09-05  Akim Demaille  <akim@epita.fr>
10211         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
10212         defined.
10214 2001-09-05  Akim Demaille  <akim@epita.fr>
10216         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
10217         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
10219         * bin/autoscan.in: Use `getopt' and `find_files' etc.
10220         Add -I, --include support.
10221         * doc/autoconf.texi (autoscan Invocation): Adjust.
10223 2001-09-05  Akim Demaille  <akim@epita.fr>
10225         CVS GNU M4 doesn't like `undefine(undefined)'.
10227         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
10228         New, extracted from main.
10229         Use IO::File wherever possible.
10230         (input.m4): Be constant, use -I instead of hard coding $tmp.
10231         Therefore be a quoted heredoc.
10232         Don't invoke `_au_disable', since ac was not loaded, but just
10233         `unm4.m4'.
10235 2001-08-31  Akim Demaille  <akim@epita.fr>
10237         Version 2.52d.
10239 2001-08-31  Akim Demaille  <akim@epita.fr>
10241         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
10242         previous patch.
10243         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
10245 2001-08-31  Akim Demaille  <akim@epita.fr>
10247         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
10248         serious problems handling heredocs in heredocs.
10249         Reported by Nicolas Joly.
10251 2001-08-31  Akim Demaille  <akim@epita.fr>
10253         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
10254         (Making testsuite Scripts): Update.
10256 2001-08-31  Akim Demaille  <akim@epita.fr>
10258         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
10260 2001-08-31  Akim Demaille  <akim@epita.fr>
10262         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
10263         (testsuite Scripts): There is no such thing as `atconfig.in'.
10264         And actually one diagram is missing: test suite runtime.
10266 2001-08-31  Akim Demaille  <akim@epita.fr>
10268         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
10269         inverse order.
10271 2001-08-31  Akim Demaille  <akim@epita.fr>
10273         * bin/autoupdate.in (@include): `installcheck' revealed the path
10274         to m4sugar was lacking!
10276 2001-08-31  Akim Demaille  <akim@epita.fr>
10278         * man/Makefile.am (.x.1): We really have to pass
10279         autom4te_perllibdir.
10281 2001-08-31  Akim Demaille  <akim@epita.fr>
10283         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
10284         debug scripts, in particular passing explicitly listed tests to
10285         run is stupid.
10287 2001-08-31  Akim Demaille  <akim@epita.fr>
10289         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
10290         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
10291         Use directly autom4te, not autoconf.
10292         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
10294 2001-08-31  Akim Demaille  <akim@epita.fr>
10296         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
10297         * bin/autoheader.in (%symbol): Strip arguments of macros.
10299 2001-08-31  Akim Demaille  <akim@epita.fr>
10301         * doc/autoconf.texi: Catch up -I, --include changes.
10303 2001-08-31  Akim Demaille  <akim@epita.fr>
10305         * bin/autom4te.in (&parse_args): Die on unknown languages.
10306         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
10307         need for autoconf.
10308         Promote --include over --macrodir and other obsolete options.
10310 2001-08-31  Akim Demaille  <akim@epita.fr>
10312         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
10313         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
10314         * bin/autom4te.in ($autoconf): Pass --force.
10315         `print $out' doesn't print `$_' but `$out'.
10316         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
10317         (autoheader): Pass --force since the test suite goes too fast for
10318         the time stamps.
10319         Adjust to the new autoheader messages.
10321 2001-08-31  Akim Demaille  <akim@epita.fr>
10323         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
10324         Check the completeness of the #template.
10325         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
10326         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
10327         invocation.
10329 2001-08-31  Akim Demaille  <akim@epita.fr>
10331         * lib/Autom4te/General.pm (&find_file, &update_file): New.
10332         * bin/autoupdate.in, bin/autoheader.in: Adjust.
10333         Drop AC_MACRODIR dead for real.
10334         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
10335         `autoheader: `config.hin' is created'.
10336         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
10338 2001-08-31  Akim Demaille  <akim@epita.fr>
10340         * bin/autoheader.in: Rewrite in Perl.
10341         * tests/autoheader: Adjust.
10343 2001-08-31  Akim Demaille  <akim@epita.fr>
10345         * bin/autoconf.in (--include, -I): New option.
10346         Map --localdir, --autoconf-dir onto it.
10347         Forward autom4te's options instead of interpreting them.
10348         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
10349         There is no such envvar since the inception of autom4te.cfg.
10350         * bin/autom4te.in (&parse_args): Uniquify `@include'.
10351         * bin/autoupdate.in: Adjust, and perform more control.
10352         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
10353         * tests/autoconf: Dittowise.
10355 2001-08-31  Akim Demaille  <akim@epita.fr>
10357         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
10358         * bin/autom4te.in (&find_file): Support `FILE?' standing for
10359         optionally `FILE'.
10360         Use -e, not -f, since /dev/null for instance is OK.
10361         (&parse_args): Adjust.
10362         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
10364 2001-08-31  Akim Demaille  <akim@epita.fr>
10366         * configure.ac: Also find tested executables in bin.
10367         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
10368         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
10369         installed peer executables, only PATH is allowed to resolve it.
10370         Pass `autoconf_dir' via options, not via invisible envvars.
10371         * lib/Autom4te/General.pm (&find_peer): Remove.
10372         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
10373         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
10374         * man/Makefile.am: Let help2man rely on PATH instead of trying to
10375         find the executables for it.
10376         * tests/Makefile.am: Major cleanup.  Too lazy to document...
10377         * tests/atlocal.in: Remove all the obscure envvar manipulations.
10378         We only need PERL.
10379         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
10380         indeed related to running the test suite, while passing
10381         --autoconf-dir and others is related to running non installed
10382         Autoconf executables.  So don't do that, leave it to...
10383         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
10384         * tests/autoscan: New.
10385         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
10386         refer to library files: rely on --language.
10388 2001-08-29  Akim Demaille  <akim@epita.fr>
10390         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
10391         s/--set/--language/.
10393 2001-08-29  Akim Demaille  <akim@epita.fr>
10395         * doc/autoconf.texi: Strip the @nodes.
10396         Suggested by Paul Eggert.
10397         (Initializing configure): Typo.
10399 2001-08-29  Akim Demaille  <akim@epita.fr>
10401         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
10402         Suggested by Paul Eggert.
10404 2001-08-29  Akim Demaille  <akim@epita.fr>
10406         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
10407         download in a tmp dir.
10409 2001-08-29  Akim Demaille  <akim@epita.fr>
10411         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
10412         case insensitive OSes out there :(
10413         From Tim Van Holder.
10415 2001-08-29  Akim Demaille  <akim@epita.fr>
10417         * lib/autom4te.in: New.
10418         * lib/Makefile.am (edit, autom4te.cfg): New.
10419         * bin/autom4te.in (BEGIN): Simplify.
10420         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
10421         (&load_configuration): New.  Use it.
10422         (&parse_args): Support --mode, --set, and --melt.
10423         * bin/autoconf.in: Simplify and adjust.
10424         * tests/Makefile.am (AUTOMAKE): Use --set.
10425         * tests/atlocal.in: Adjust.
10426         * BUGS: distcheck and check are weak.
10428 2001-08-29  Akim Demaille  <akim@epita.fr>
10430         * lib/autotest/general.m4: Use
10431                 foo=`(command) 2>/dev/null`
10432         not
10433                 foo=`command` 2>/dev/null
10434         (at-devnull): Rename as...
10435         (AT-devnull): this.
10436         (--clean): Remove AT-* files too.
10437         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
10438         Reported by Nicolas Joly.
10440 2001-08-28  Akim Demaille  <akim@epita.fr>
10442         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
10443         quotes inside single quotes.
10444         Reported by Nicolas Joly.
10446 2001-08-28  Kevin Ryde  <user42@zip.com.au>
10448         * doc/autoconf.texi (Function Portability): Mention C right shifts.
10450 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
10452         * lib/autotest/general.m4: Reword some messages.
10453         (AT_INIT): Check for the `times' builtin before using it.
10454         Support test ranges as arguments to the testsuite.
10455         Have -e imply -d as the help text suggested.
10457 2001-08-27  Akim Demaille  <akim@epita.fr>
10459         * Makefile.maint: Formatting changes.
10460         (do-po-update, po-update, cvs-update, update): New targets.
10461         (AMTAR): Remove.
10463 2001-08-27  Akim Demaille  <akim@epita.fr>
10465         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
10466         <at_cmd_line>: New.
10467         Pass it to debug-*.sh scripts.
10468         <AUTOTEST_PATH>: May contain absolute dir names.
10470 2001-08-27  Akim Demaille  <akim@epita.fr>
10472         * lib/autotest/general.m4 (AT_INIT): Log the command line.
10473         Support `VAR=VAL' as arguments.
10474         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
10475         may be set via the command line.
10477 2001-08-27  Akim Demaille  <akim@epita.fr>
10479         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
10480         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
10481         first the build dirs, then the src dirs.
10482         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
10484 2001-08-27  Akim Demaille  <akim@epita.fr>
10486         * lib/autotest/general.m4 (AT_INIT): Output the definition of
10487         at_data_files earlier.
10488         (--clean, -c): New option.
10489         * tests/Makefile.am: Use this option.
10491 2001-08-27  Akim Demaille  <akim@epita.fr>
10493         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
10494         `ac_top_builddir' to mimic Automake's vocabulary, which much more
10495         readable.
10496         Adjust callers.
10497         * doc/autoconf.texi (Configuration Actions): Document the vars
10498         available in commands.
10499         Emphasize the risks of collisions in init-cmds.
10501 2001-08-27  Akim Demaille  <akim@epita.fr>
10503         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
10504         (Initializing configure): this new node.
10506 2001-08-27  Akim Demaille  <akim@epita.fr>
10508         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
10510 2001-08-27  Akim Demaille  <akim@epita.fr>
10512         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
10513         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
10514         New file.
10515         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
10517 2001-08-27  Akim Demaille  <akim@epita.fr>
10519         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
10520         to...
10521         * lib/autoconf/autoheader.m4: this new file.
10522         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
10523         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
10524         Move to...
10525         * lib/autoconf/autoupdate.m4: this new file.
10527 2001-08-27  Akim Demaille  <akim@epita.fr>
10529         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
10530         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
10531         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
10532         -> ac_dir).
10533         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
10534         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
10536 2001-08-27  Akim Demaille  <akim@epita.fr>
10538         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
10539         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
10540         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
10541         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
10542         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
10543         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
10544         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
10545         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
10546         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
10547         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
10548         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
10549         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
10550         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
10551         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
10552         (_AC_OUTPUT_SUBDIRS): Move to...
10553         * lib/autoconf/status.m4: this new file.
10554         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
10555         * tests/Makefile.am, tests/suite.at: Adjust.
10557 2001-08-27  Akim Demaille  <akim@epita.fr>
10559         Automake 1.5.
10561         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
10562         (AMTAR): Help automake define it.
10563         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
10564         needed, 1.5 can have a macro and a target with the same name.
10565         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
10566         * m4/strip.m4: New.
10567         * m4/init.m4, m4/sanity.m4: Update.
10568         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
10569         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
10570         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
10571         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
10573 2001-08-27  Akim Demaille  <akim@epita.fr>
10575         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
10577         * lib/autoconf/version.in: Remove.
10578         * lib/m4sugar/version.in: New.
10579         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
10580         Adjust callers.
10581         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
10582         the name of the directory they're in, instead of the filename,
10583         since version.m4 is now in m4sugar, but m4_acversion must not be
10584         classified as an Autoconf macro.
10585         ($input_m4): Don't qualify the path to m4sugar.
10586         Rather, pass autoconf_dir to m4.
10587         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
10588         * tests/suite.at: Require 2.52c.
10590 2001-08-27  Akim Demaille  <akim@epita.fr>
10592         testsuite.log should include config.log.
10594         * lib/autotest/autotest.m4: New.
10595         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
10596         * tests/suite.at : Adjust.
10597         (AT_INIT): Log config.log.
10598         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
10599         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
10600         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
10601         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
10602         of config.log on traps.
10603         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
10604         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
10605         for config.status'.
10606         Open the log as soon as possible.
10607         Use the same log introduction as configure's.
10609 2001-08-22  Paul Eggert  <eggert@twinsun.com>
10611         * doc/autoconf.texi (Indices): New node.
10612         Move indices out of the top level menu and into this submenu.
10614 2001-08-22  Akim Demaille  <akim@epita.fr>
10616         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
10617         AC_TRY_COMMAND.
10618         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
10620 2001-08-22  Akim Demaille  <akim@epita.fr>
10622         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
10623         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
10624         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
10625         * lib/autoconf/programs.m4: here.
10626         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
10627         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
10628         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
10629         * lib/autoconf/programs.m4: here.
10630         (_AC_DECL_YYTEXT): Rename as...
10631         (_AC_PROG_LEX_YYTEXT_DECL): this.
10632         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
10633         * tests/Makefile.am, tests/suite.am: Adjust.
10635 2001-08-22  Akim Demaille  <akim@epita.fr>
10637         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
10638         Move to...
10639         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
10640         here.
10641         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
10642         * lib/autoconf/functions.m4: here.
10643         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
10644         (AH_CHECK_LIB): Move to...
10645         * lib/autoconf/libs: this new file.
10646         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
10647         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
10648         * lib/autoconf/libs.m4: here.
10649         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
10651 2001-08-22  Akim Demaille  <akim@epita.fr>
10653         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
10654         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
10655         (AC_SITE_LOAD): Better logging of config.site.
10657 2001-08-20  Akim Demaille  <akim@epita.fr>
10659         * configure.ac (AT_CONFIG): Fix the path.
10660         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
10661         can be used.
10663 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
10665         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
10666         program with AC_LANG_PROGRAM before feeding it to
10667         AC_COMPILE_IFELSE.  Cleanup grep usage.
10669 2001-08-20  Akim Demaille  <akim@epita.fr>
10671         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
10672         * NEWS, README, README-alpha, TODO, tests/README: This package is
10673         `Autoconf', not `autoconf' (the executable).
10675 2001-08-20  Akim Demaille  <akim@epita.fr>
10677         Info readers seem to need `Index' in the index node title :(
10679         * doc/autoconf.texi: Reverse the 2001-08-15 change which
10680         simplified index node names.
10682 2001-08-20  Akim Demaille  <akim@epita.fr>
10684         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
10685         arguments are not literals.
10686         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
10687         Specify the output variables, and macros defined.
10689 2001-08-20  Akim Demaille  <akim@epita.fr>
10691         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
10692         (Examining Syntax) <AC_TRY_COMPILE>
10693         (Examining Libraries) <AC_TRY_LINK>
10694         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
10695         their arguments.
10696         Reported by Werner Lemberg.
10698 2001-08-20  Akim Demaille  <akim@epita.fr>
10700         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
10701         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
10702         Load atlocal late enough to dump it in the log.
10703         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
10705 2001-08-20  Akim Demaille  <akim@epita.fr>
10707         * tests/torture.at (Configuring subdirectories): New test.
10708         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
10709         looking for.
10710         * m4/atconfig.m4: Be sure the let $[0] be expandable.
10711         (top_srcdir): Fix its computation.
10713 2001-08-20  Akim Demaille  <akim@epita.fr>
10715         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
10716         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
10717         test suite lives.
10718         Create `atconfig' automagically.
10719         Configure atlocal.in if present.
10720         * tests/atconfig.in: Remove.
10721         * tests/atlocal.in: New.
10722         * tests/Makefile.am: Adjust.
10724 2001-08-20  Akim Demaille  <akim@epita.fr>
10726         Huh!?!?!  There are still some user EOF tags used, which prevents
10727         their use in AC_CONFIG_COMMANDS for instance...
10729         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
10730         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
10731         `_CSEOF', or `_ATEOF', as appropriate.
10732         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
10733         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
10735 2001-08-20  Akim Demaille  <akim@epita.fr>
10737         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
10738         * tests/semantics.at, tests/tools.at, tests/torture.at:
10739         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
10741 2001-08-20  Akim Demaille  <akim@epita.fr>
10743         Autotest invokes M4sh's initialization.
10745         * lib/autotest/general.m4: Adjust the diversion names.
10746         (AT_INIT): Run AS_INIT.
10747         Use the BINSH diversion to invoke /bin/sh.
10748         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
10749         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
10751 2001-08-20  Akim Demaille  <akim@epita.fr>
10753         Let M4sh have its own diversions.
10755         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
10756         (_m4_divert(NOTICE)): Rename as...
10757         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
10758         (_m4_divert(HEADER-COMMENT)): these.
10759         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
10760         (_m4_divert(NOTICE)): New, for Libtool.
10761         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
10762         long ago with `_m4_divert(GROW)'.
10763         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
10765 2001-08-20  Akim Demaille  <akim@epita.fr>
10767         * tests/base.at, tests/compile.at, tests/foreign.at,
10768         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
10769         * tests/semantics.at, tests/suite.at, tests/tools.at,
10770         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
10772 2001-08-20  Akim Demaille  <akim@epita.fr>
10774         * bin/autom4te.in (handle_output): Handle @__@.
10776 2001-08-20  Akim Demaille  <akim@epita.fr>
10778         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
10779         * lib/autotest/general.m4: Adjust the license.
10781 2001-08-17  Paul Eggert  <eggert@twinsun.com>
10783         * doc/autoconf.texi (Function Portability): Mention snprintf,
10784         following up on a suggestion by Kevin Ryde.
10786 2001-08-17  Akim Demaille  <akim@epita.fr>
10788         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
10789         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
10791 2001-08-17  Akim Demaille  <akim@epita.fr>
10793         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
10794         `$0.log' as for projects where testsuite is in src, we'd have
10795         testsuite.log created in src.
10797 2001-08-17  Akim Demaille  <akim@epita.fr>
10799         * bin/autom4te.in (&parse_args): Recognize --normalize.
10801 2001-08-17  Akim Demaille  <akim@epita.fr>
10803         Start implementing the AC_CHECK_HEADER transition scheme.
10805         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
10806         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
10807         (AC_CHECK_HEADER): Use them.
10809 2001-08-17  Akim Demaille  <akim@epita.fr>
10811         * doc/autoconf.texi: Work around Texinfo buglets.
10812         (Transformation Rules): One example is enough, users are expected
10813         to have their brains on. And BTW, use DESTDIR.
10814         (dvar): New macro.  Use it.
10816 2001-08-17  Akim Demaille  <akim@epita.fr>
10818         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
10819         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
10820         looking for ChangeLogs.
10822 2001-08-17  Akim Demaille  <akim@epita.fr>
10824         * bin/autom4te.in: --normalize is a new option.
10825         * bin/autoconf.in: Use it.
10827 2001-08-17  Akim Demaille  <akim@epita.fr>
10829         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
10830         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
10832 2001-08-16  Paul Eggert  <eggert@twinsun.com>
10834         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
10835         start, not at end.
10837 2001-08-15  Akim Demaille  <akim@epita.fr>
10839         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
10840         Use it.
10842 2001-08-15  Akim Demaille  <akim@epita.fr>
10844         * doc/autoconf.texi (pr): New index.
10845         (prindex, findex): Use, merge, and output them.
10846         (Environment Variable Index, Output Variable Index)
10847         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
10848         (Autotest Macro Index): Rename as...
10849         (Environment Variables, Output Variables,Preprocessor Symbols)
10850         (Autoconf Macros, M4 Macros, Autotest Macros): these.
10851         * doc/install.texi: Use @command.
10852         (Environment Variables): Rename as...
10853         (Defining Variables): this.
10855 2001-08-15  Akim Demaille  <akim@epita.fr>
10857         * doc/autoconf.texi (Function Portability): sprintf's return
10858         value.
10859         From Kevin Ryde.
10861 2001-08-15  Akim Demaille  <akim@epita.fr>
10863         * Makefile.maint (CVS): New.
10864         (local-check): Run changelog-check. last.
10865         (alpha): Don't depend upon local-check, since...
10866         (cvs-dist): depends upon it.
10868 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
10870         * tests/Makefile.am: Use a clean-local rule to remove
10871         autom4te.cache (it's a directory, not a file.
10872         * Makefile.am: Ditto (but maintainer-clean-local).
10874 2001-08-15  Akim Demaille  <akim@epita.fr>
10876         * bin/autom4te.in (@m4_warning): New.
10877         (&handle_m4): Use it.
10878         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
10879         warnings are issued at each run.
10880         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
10881         is in the src tree.
10883 2001-08-15  Akim Demaille  <akim@epita.fr>
10885         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
10886         don't waste time running `autoupdate --version' works.
10887         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
10889 2001-08-13  Akim Demaille  <akim@epita.fr>
10891         * doc/autoconf.texi (ma): Rename this index as...
10892         (ac): this.
10894 2001-08-13  Akim Demaille  <akim@epita.fr>
10896         * Makefile.am: Remove dead code and dead comments.
10897         (pdf, html): New targets.
10898         * doc/autoconf.texi (Using Autotest): New chapter.
10899         * doc/Makefile.am (pdf): New targets.
10900         (CLEANFILES): Adjust.
10902 2001-08-13  Akim Demaille  <akim@epita.fr>
10904         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
10905         duration of the test suite.
10907 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
10909         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
10910         endianness for comparison instead of relying on AT_CHECK_ENV.
10912 2001-08-11  Paul Eggert  <eggert@twinsun.com>
10914         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
10915         to the INSTALL file.
10917 2001-08-11  Paul Eggert  <eggert@twinsun.com>
10919         * NEWS: The autoconf manual now is distributed under the terms
10920         of the GNU Free Documentation License.
10922         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
10923         Add an appendix "Copying This Manual" for the FDL.
10925         * doc/fdl.texi: New file, from
10926         <http://www.gnu.org/licenses/fdl.texi>.
10928         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
10930 2001-08-10  Paul Eggert  <eggert@twinsun.com>
10932         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
10933         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
10934         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
10935         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
10936         m4/sanity.m4, tests/README, tests/aclocal.m4,
10937         tests/atspecific.m4, tests/base.at, tests/compile.at,
10938         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
10939         tests/semantics.at, tests/suite.at, tests/tools.at,
10940         tests/torture.at: Add copyright notice.
10942         * tests/mktests.sh: Update year in copyright notice.
10944 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
10946         * tests/semantics.at (AC_C_BIGENDIAN): New test.
10948 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
10950         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
10951         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
10952         * doc/autoconf.texi (C Compiler Characteristics): Update
10953         documentation for AC_C_BIGENDIAN.
10955 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
10957         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
10958         magic values from an object file when cross-compiling.
10959         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
10961 2001-08-10  Akim Demaille  <akim@epita.fr>
10963         * bin/autom4te.in (&handle_output): Don't use `grep' with side
10964         effects.
10965         Suggested by Russ Allbery.
10967 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
10969         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
10970         current $prefix to the sub-configures.
10972 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
10974         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
10975         extension (needed on BeOS).  Reported by Guido van Rossum.
10977 2001-08-09  Akim Demaille  <akim@epita.fr>
10979         * bin/autom4te.in ($icache): Load it only if older than autom4te.
10981 2001-08-07  Akim Demaille  <akim@epita.fr>
10983         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
10984         removed.
10985         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
10986         No need to remove the files before and after the each test, before
10987         each test and at the end of the suite is enough.
10988         Display only the children `times', not the shell's.
10989         If the test failed or was skipped, at-times is not available.
10991 2001-08-07  Akim Demaille  <akim@epita.fr>
10993         Always produce testsuite.log, including when there are no
10994         failures.  This helps getting information on skipped tests, and
10995         duration of the tests.  Err, implement the latter btw.
10997         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
10998         Dump information on the first run of each test.
10999         (AT_CLEANUP): Create `at-times' containing the duration of the
11000         test group.
11002 2001-08-07  Akim Demaille  <akim@epita.fr>
11004         The use of `dumpstat' revealed that `len' was used although it
11005         should not.  m4_text_wrap was using it, but in the Autoconf world
11006         where it is legal.  Hence (i) test M4sh in its own world, not
11007         Autoconf's, and (ii), ahem, fix the bug :)
11009         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
11010         does not like `' instead of [].
11011         (AT_INIT): Forbid `^_?AT_'.
11012         And don't output such tokens.
11013         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
11014         `script.as', and `autom4te.cache'.
11015         Remove `empty' and `macro' which are no longer used.
11016         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
11017         * tests/m4sugar.at: Use it.
11018         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
11020 2001-08-07  Akim Demaille  <akim@epita.fr>
11022         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
11024 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
11026         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
11028 2001-08-04  Akim Demaille  <akim@epita.fr>
11030         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
11031         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
11032         AC_TRY_LINK.
11033         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
11034         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
11035         (AC_F77_MAIN): Likewise.
11037 2001-08-04  Akim Demaille  <akim@epita.fr>
11039         Don't rely on M4sugar outputting the patterns in files, since we
11040         might process the output _without_ running m4, hence without these
11041         files.
11043         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
11044         * bin/autom4te.in (@Request::includes): Remove, unused.
11045         (@Request::source): Rename as...
11046         (@Request::input): this.
11047         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
11048         (&handle_output): Fetch the patterns from the traces.
11049         `$forbidden' and `$allowed' are constant: use m//o.
11050         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
11051         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
11053 2001-08-04  Akim Demaille  <akim@epita.fr>
11055         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
11056         autoconf', i.e., in addition to caching traces, cache the output.
11058         * bin/autom4te.in (Request::cache): Rename as...
11059         (Request::id): this.
11060         ($cache, $icache, $tcache, $ocache): New.
11061         (&handle_m4): Save M4 output in the cache instead of $tmp.
11062         (&handle_output): Adjust.
11063         (&up_to_date_p): Check that the output cache is up to date too.
11064         (top level): Run `&handle_m4' iff force or the cache is invalid.
11065         Run `&handle_output' if the output cache is more recent.
11067 2001-08-04  Akim Demaille  <akim@epita.fr>
11069         * bin/autom4te.in ($force): New.
11070         (&parse_args, &print_usage): -f, --force is a new option.
11071         (&handle_output): CPP directives might have spaces after `#'.
11072         (&parse_args): The first file only can be frozen.
11074 2001-08-04  Akim Demaille  <akim@epita.fr>
11076         Don't let autom4te compute the `include' traces several times:
11077         first check that the trace cache file is up to date, and then
11078         compare its timestamp with that of the output.
11080         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
11081         the preamble.  Don't require 5.005 as Autom4te::General does it,
11082         and better yet (use `use', not `require'!).
11083         * lib/Autom4te/Struct.pm: Rename the last occurrences of
11084         Class::Struct as Autom4te::Struct.
11085         * lib/Autom4te/General.pm (File::stat): Use it.
11086         (&mtime): New, export it.
11087         * bin/autom4te.in: Use it.
11088         Declare `$req' is invalid if it is outdated.
11089         Don't declare it valid before saving it if something went wrong.
11091 2001-08-04  Akim Demaille  <akim@epita.fr>
11093         Autom4te shall not encode Autoconf data, and preselecting traces
11094         must be proposed to the users.
11096         * bin/autom4te.in (@required_trace): Remove.
11097         (@preselect): New.
11098         (&parse_args, &print_usage): -p, --preselect is a new option.
11099         (&up_to_date_p): Adjust.
11100         * bin/autoconf.in: Preselect some Autoconf macros.
11102 2001-08-04  Akim Demaille  <akim@epita.fr>
11104         * tests/tools.at (autoconf --trace: user macros): Check traces on
11105         macros invoked without arguments, and macros invoked with multiple
11106         lines arguments.
11108 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
11110         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
11111         arguments.
11113 2001-08-03  Akim Demaille  <akim@epita.fr>
11115         * bin/autoconf.in ($@): Work around the usual sh bug.
11116         From Nicolas Joly.
11118 2001-08-03  Akim Demaille  <akim@epita.fr>
11120         Clean up the handling of the M4 builtins tracing exception.
11122         * bin/autom4te.in (Request::request): Don't complete M4 builtins
11123         trace requests.
11124         (@m4_builtins): Rename as...
11125         (@m4_builtin): this.
11126         (%m4_builtin_alternate_name): New.
11127         (&parse_args): Complete the trace requests with alternate names.
11128         (&handle_traces): Hence no longer do it here.
11129         (&trace_requests): Remove, unused.
11131 2001-08-03  Akim Demaille  <akim@epita.fr>
11133         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
11134         m4_if, and m4_wrap.
11136 2001-08-03  Akim Demaille  <akim@epita.fr>
11138         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
11139         (m4_divert_pop): Dump the whole diversion stack when a diversion
11140         mismatch happens.
11141         * bin/autom4te.in (&handle_output): Remember of the first
11142         occurrence of a possibly undefined macro, not the last.
11143         Complain about the possibly undefined macros in the same order as
11144         the appear in the output.
11145         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
11146         * tests/tools.at (autoconf: forbidden tokens, basic)
11147         (autoconf: forbidden tokens, exceptions): No longer sort
11148         autoconf's stderr, as it is now deterministic.
11149         Check that `dnl' is caught.
11151 2001-08-01  Akim Demaille  <akim@epita.fr>
11153         * configure.ac: Bump to 2.52c.
11155 2001-08-01  Akim Demaille  <akim@epita.fr>
11157         Version 2.52b.
11159         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
11161 2001-08-01  Akim Demaille  <akim@epita.fr>
11163         Version 2.52a.
11165 2001-08-01  Akim Demaille  <akim@epita.fr>
11167         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
11168         `die'.
11169         (&END): New.
11170         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
11171         `END', as `Autom4te::General::END' will be triggered.
11172         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
11173         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
11174         system to run `mv', `rm', and `cmp'.
11176 2001-08-01  Akim Demaille  <akim@epita.fr>
11178         * lib/Autom4te/General.pm (&unique): New.
11179         * bin/autoscan.in (&output): Use it to issue trace requests once.
11181 2001-08-01  Akim Demaille  <akim@epita.fr>
11183         * lib/Autom4te/General.pm: New.
11184         * bin/autom4te.in (Autom4te::General): Use it.
11185         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
11186         (&find_configure_ac, &find_slave): Remove.
11187         * bin/autoscan.in: Likewise.
11188         * bin/autoupdate.in: Likewise.
11190 2001-08-01  Akim Demaille  <akim@epita.fr>
11192         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
11193         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
11194         * bin: here, new directory.
11195         * lib/Autoconf: Rename as...
11196         * lib/Autom4te: this, to please case insensitive junkie OSes.
11198 2001-08-01  Akim Demaille  <akim@epita.fr>
11200         * autom4te.in ($m4): Handle the --nesting-limit.
11201         * autoconf.in (M4): Remove.
11203 2001-08-01  Akim Demaille  <akim@epita.fr>
11205         * autoconf.in ($AWK): Remove, no longer used.
11206         * test/tools.at: Use AT_CHECK_AUTOCONF.
11207         (AWK portability): Remove, for autoconf no longer uses AWK.
11208         (Syntax of the Perl scripts): New.
11209         * configure.ac: autoconf no longer needs an AWK with a good
11210         regexp engine.
11211         Use a static test on AC_PACKAGE_VERSION.
11212         * autom4te.in (&up_to_date_p): Output depends on the arguments.
11213         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
11214         * tests/atconfig.in (PERL): New.
11216 2001-08-01  Akim Demaille  <akim@epita.fr>
11218         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
11219         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
11220         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
11221         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
11222         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
11223         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
11224         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
11225         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
11226         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
11227         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
11228         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
11229         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
11230         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
11231         * lib/autoconf/c.m4: here, new file.
11233         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
11234         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
11235         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
11236         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
11237         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
11238         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
11239         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
11240         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
11241         (AC_F77_FUNC): Move to...
11242         * lib/autoconf/fortran.m4: here, new file.
11244 2001-08-01  Akim Demaille  <akim@epita.fr>
11246         * acfunctions.m4: Rename as...
11247         * lib/autoconf/functions.m4: this.
11248         * acgeneral.m4: Rename as...
11249         * lib/autoconf/general.m4: this.
11250         * acheaders.m4: Rename as...
11251         * lib/autoconf/headers.m4: this.
11252         * aclang.m4: Rename as...
11253         * lib/autoconf/lang.m4: this.
11254         * acoldnames.m4: Rename as...
11255         * lib/autoconf/oldnames.m4: this.
11256         * acspecific.m4: Rename as...
11257         * lib/autoconf/specific.m4: this.
11258         * actypes.m4: Rename as...
11259         * lib/autoconf/types.m4: this.
11260         * autoconf.m4: Rename as...
11261         * lib/autoconf/autoconf.m4: this.
11263         * m4sugar.m4: Rename as...
11264         * lib/m4sugar/m4sugar.m4: this.
11265         * m4sh.m4: Rename as...
11266         * lib/m4sugar/m4sh.m4: this.
11268         * tests/atgeneral.m4: Rename as...
11269         * lib/autotest/general.m4: this.
11271         * acfunctions: Rename as...
11272         * lib/autoscan/functions: this.
11273         * acheaders: Rename as...
11274         * lib/autoscan/headers: this.
11275         * acidentifiers: Rename as...
11276         * lib/autoscan/identifiers: this.
11277         * aclibraries: Rename as...
11278         * lib/autoscan/libraries: this.
11279         * acmakevars: Rename as...
11280         * lib/autoscan/makevars: this.
11281         * acprograms: Rename as...
11282         * lib/autoscan/programs: this.
11284 2001-08-01  Akim Demaille  <akim@epita.fr>
11286         * doc/autoconf.texi: Moving/deleting open files is not portable.
11287         Portability issues for `.' (source), and more information about sed.
11289 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
11291         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
11292         which has a special meaning and is not a reference to libibmil.a.
11293         Reported by Matteo Frigo.
11295 2001-07-25  Pavel Roskin  <proski@gnu.org>
11297         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
11298         output.
11300 2001-07-25  Akim Demaille  <akim@epita.fr>
11302         * autoconf.in: Try to define the variables before using them.
11303         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
11304         instead of `$perllibdir'.
11305         * tests/atconfig.in ($autom4te_perllibdir): Export it.
11307 2001-07-25  Akim Demaille  <akim@epita.fr>
11309         * autoconf.in (ac_LF_and_DOT): Remove, unused.
11311 2001-07-24  Akim Demaille  <akim@epita.fr>
11313         Let autoconf use autom4te for traces.
11315         * autoconf.in ($task, task trace): Remove, merely pass --trace to
11316         autom4te.
11317         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
11318         (Because I found no way for autom4te to accept `-').
11319         * autom4te.in (&Request::request): Beware of M4 builtins.
11320         (END): Don't try to remove the content of an empty dir.
11321         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
11322         (&handle_output): Set a default value to `$forbidden'.
11323         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
11324         ($autoconf): Pass --debug and --verbose.
11325         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
11326         cache.
11328 2001-07-24  Akim Demaille  <akim@epita.fr>
11330         Let autoconf use autom4te to create configure.
11332         * autoconf.in ($automate): New var.
11333         (task script): Use autom4te.
11334         * autom4te.in (File::Spec): Use it.
11335         (&find_file): New.
11336         (&parse_args): --warning is -W, not -w.
11337         Find the top level files.
11338         (&handle_m4): Pass the warnings flags.
11339         Don't report verbosely m4's failures, unless requested.
11340         (&handle_output): Don't complain for forbidden tokens in comments.
11341         Be sure to report all the forbidden tokens within a single line.
11342         (&trace_format_to_m4): Preserve `$_'.
11343         (&handle_traces): Sort the output macros.
11344         (&up_to_date_p): Find the files before trying to get its time stamp.
11346 2001-07-24  Akim Demaille  <akim@epita.fr>
11348         * Makefile.am: Ship, build and install Autom4te.
11349         (SUBDIRS): Add lib.
11350         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
11351         * configure.in: Require Perl.
11352         * man/autom4te.in: New.
11354 2001-07-19  Paul Eggert  <eggert@twinsun.com>
11356         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
11357         example, rather than (exit 1); exit (which isn't portable).
11359 2001-07-18  Akim Demaille  <akim@epita.fr>
11361         Version 2.52.
11363 2001-07-18  Akim Demaille  <akim@epita.fr>
11365         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
11366         was run, while they are needed also when it is expanded.
11367         Reported by Nicolas Joly.
11369         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
11370         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
11371         AC_F77_DUMMY_MAIN being expanded.
11373 2001-07-18  Akim Demaille  <akim@epita.fr>
11375         * configure.in: Bump to 2.51a.
11377 2001-07-17  Akim Demaille  <akim@epita.fr>
11379         Version 2.51.
11381 2001-07-17  Akim Demaille  <akim@epita.fr>
11383         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
11384         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
11386 2001-07-17  Akim Demaille  <akim@epita.fr>
11388         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
11389         used.  Well, then use the prototypes when you can, and runtime as
11390         a last resort.
11391         Reported by Artur Frysiak
11393         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
11394         (AC_FUNC_GETPGRP): Use it.
11395         First try to compile with 0-ary or 1-ary calls.
11397 2001-07-17  Akim Demaille  <akim@epita.fr>
11399         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
11400         replacement type.
11401         From Paul Eggert.
11403 2001-07-17  Akim Demaille  <akim@epita.fr>
11405         * Makefile.maint: Sync. with cppi 1.10.
11407 2001-07-17  Akim Demaille  <akim@epita.fr>
11409         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
11410         AC_F77_DUMMY_MAIN has been run.
11411         From Pavel Roskin and Steven G. Johnson.
11413 2001-07-17  Akim Demaille  <akim@epita.fr>
11415         * configure.in: Rename as...
11416         * configure.ac: this.
11418 2001-07-17  Akim Demaille  <akim@epita.fr>
11420         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
11421         rules.
11422         From Marc Espie.
11423         * Makefile.maint (release-archive-dir): Rename as...
11424         (release_archive_dir): this, so that it can be specialized in
11425         Makefile.
11427 2001-07-14  Akim Demaille  <akim@epita.fr>
11429         * configure.in: Bump to 2.50d.
11431 2001-07-14  Akim Demaille  <akim@epita.fr>
11433         Version 2.50c.
11434         * Makefile.maint (alpha): Typo.
11436 2001-07-14  Akim Demaille  <akim@epita.fr>
11438         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
11440 2001-07-14  Akim Demaille  <akim@epita.fr>
11442         * config/config.guess, config/config.sub, config/texinfo.tex
11443         * doc/standards.texi, doc/make-stds.texi: Update.
11445 2001-07-14  Akim Demaille  <akim@epita.fr>
11447         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
11449 2001-07-14  Akim Demaille  <akim@epita.fr>
11451         * Makefile.maint (maintainer-check): Rename as...
11452         (maintainer-distcheck): this.
11453         (changelog-check, static-check): New.
11454         Use them.
11456 2001-07-14  Kevin Ryde  <user42@zip.com.au>
11458         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
11459         for CXX is g++, not gcc.
11461 2001-07-14  Akim Demaille  <akim@epita.fr>
11463         * doc/autoconf.texi (Files): New subsection.
11465 2001-07-14  Akim Demaille  <akim@epita.fr>
11467         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
11468         of...
11469         (Generic Compiler Characteristics): this.
11470         (C++ Compiler): New subsection.
11472 2001-07-14  Akim Demaille  <akim@epita.fr>
11474         * autoscan.in: Use IO::File.
11475         Adjust all the routines to use it.
11476         ($log): New file (autoscan.log).
11477         (output): Dump detailed logs into $log, and a shortened version to
11478         stderr.
11479         (&scan_makefile): Refine the regexp catching tokens in the code.
11480         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
11481         and the `configure.ac' checking feature.
11483 2001-07-12  Akim Demaille  <akim@epita.fr>
11485         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
11486         Reported by Michael Elizabeth Chastain.
11488         * autoconf.in: Refuse such AWK.
11489         * configure.in: Likewise.
11490         * Makefile.am (acversion.m4): Do not use move-if-change this file
11491         has dependencies.
11492         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
11494 2001-07-10  Jens Petersen  <petersen@redhat.com>
11496         * autoscan.in (&scan_makefile): Improve programs regexp to parse
11497         things like "g++", "file.c" and "some-conf" as tokens.
11498         (&scan_file): Match C++ files extensions.
11499         If the filename extension is C++ then ask for c++.
11501 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
11503         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
11504         AC_TRY_LINK_FUNC, to check whether defining a dummy
11505         main-like routine is needed for linking with F77 libs.
11507 2001-07-05  Pavel Roskin  <proski@gnu.org>
11509         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
11510         after using break.
11511         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
11512         linking.
11514 2001-07-05  Akim Demaille  <akim@epita.fr>
11516         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
11517         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
11518         Makes' lives.
11519         Reported by Nicolas Joly.
11521 2001-07-04  Akim Demaille  <akim@epita.fr>
11523         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
11524         up.
11525         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
11526         warnings from compilers.
11527         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
11528         for all the compilers, not only GNU.  Hence move from here...
11529         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
11531 2001-07-04  Akim Demaille  <akim@epita.fr>
11533         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
11534         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
11535         AC_COMPILE_IFELSE.
11537 2001-07-04  Akim Demaille  <akim@epita.fr>
11539         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
11540         the ``strings.h'' change claimed below.
11542 2001-07-04  Akim Demaille  <akim@epita.fr>
11544         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
11546 2001-07-04  Akim Demaille  <akim@epita.fr>
11548         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
11549         strings.h if usable with string.h.
11550         Suggested by Paul Eggert.
11552 2001-07-04  Akim Demaille  <akim@epita.fr>
11554         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
11555         From Jens Petersen.
11557 2001-07-03  Akim Demaille  <akim@epita.fr>
11559         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
11560         etc. in the log.
11562 2001-07-03  Akim Demaille  <akim@epita.fr>
11564         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
11565         compiler, not the preprocessor.
11566         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
11567         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
11568         the right thing.
11569         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
11570         earlier if there are.
11572 2001-07-03  Akim Demaille  <akim@epita.fr>
11574         * autoscan.in ($initfile): Remove.
11575         (&find_file): Rename as...
11576         (&scan_file): this.
11577         Immediately scan the current file, instead of gathering them, and
11578         later having them handled by &scan_files.
11579         (&scan_files): Merely invoke Find::File.
11580         Adjust.
11582 2001-07-02  Akim Demaille  <akim@epita.fr>
11584         * autoscan.in: Formatting changes, matching the invocation order.
11585         (File::Find): Use it instead of Perl 4's `find.pl'.
11586         (&wanted): Rename as...
11587         (&find_file): this.
11589 2001-07-01  Pavel Roskin  <proski@gnu.org>
11591         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
11592         break in the argument to AC_TRY_LINK_FUNC.
11593         (AC_F77_MAIN): Remove conftest* after using break in the
11594         argument to AC_TRY_LINK.
11596 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
11598         Add alternate 'main' routine detection for linking C/C++ with Fortran,
11599         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
11601         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
11602         dummy alternate main is required even if the user provides her own
11603         'main'.
11604         (AC_F77_MAIN): New macro to detect whether it is possible to
11605         provide an alternate 'main' function name, using the 'main' from
11606         the Fortran libraries.
11607         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
11608         cross-language link tests can be performed successfully.
11609         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
11610         after $LIBS, for consistency; this should be the general rule since
11611         the user may want to link to Fortran libraries that require $FLIBS.
11612         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
11614 2001-06-29  Pavel Roskin  <proski@gnu.org>
11616         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
11617         at-stdout and at-stderr instead of removing the newline
11618         from the echo output, which is not guaranteed to work.
11620 2001-06-28  Jens Petersen  <petersen@redhat.com>
11622         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
11623         confdefs.h when non-zero.
11625 2001-06-28  Akim Demaille  <akim@epita.fr>
11627         * configure.in: Bump to 2.50c.
11629 2001-06-26  Akim Demaille  <akim@epita.fr>
11631         Version 2.50b.
11633 2001-06-26  Akim Demaille  <akim@epita.fr>
11635         Version 2.50a.
11637 2001-06-25  Pavel Roskin  <proski@gnu.org>
11639         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
11640         argument, AUTOCONF-FLAGS.
11641         * tests/mktests.sh (update_exclude_list): Add
11642         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
11643         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
11644         AC_FUNC_WAIT3 with "-W no-obsolete".
11646 2001-06-25  Akim Demaille  <akim@epita.fr>
11648         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
11650 2001-06-25  Akim Demaille  <akim@epita.fr>
11652         * autoscan.in (%macro): Now maps from word to list of macros.
11653         (&init_tables): Die when a word which is already handled by
11654         explicit macros is mapped to the default macro.
11655         (&print_unique): Remove, inlined in...
11656         (&output_kind): here.
11657         (File::Basename): Use it.
11658         (&output): Sort the CONFIG_FILES.
11659         * acheaders: Normalize.
11660         * acfunctions: Likewise.
11662 2001-06-25  Akim Demaille  <akim@epita.fr>
11664         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
11665         characteristics in the logs.
11666         Suggested by Mo DeJong.
11668 2001-06-24  Akim Demaille  <akim@epita.fr>
11670         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
11671         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
11672         * doc/autoconf.texi (Autoconf 2.13): New section.
11674 2001-06-24  Akim Demaille  <akim@epita.fr>
11676         * autoconf.in (Task traces): Separate the error messages from the
11677         traces to improve robustness.
11679 2001-06-23  Akim Demaille  <akim@epita.fr>
11681         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
11682         three as failures are unlikely, and speed matters.
11684 2001-06-23  Akim Demaille  <akim@epita.fr>
11686         * doc/autoconf.texi (Redefined M4 Macros): New.
11688 2001-06-23  Akim Demaille  <akim@epita.fr>
11690         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
11691         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
11692         5.3.
11694 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
11696         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
11697         config.status targets to after the evaluation of the INIT-CMDS.
11698         Double quote config.status targets (used to be single quoted).
11700 2001-06-23  Akim Demaille  <akim@epita.fr>
11702         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
11703         Check the content of the created file.
11704         Check the ./config.status command line invocation.
11706 2001-06-23  Akim Demaille  <akim@epita.fr>
11708         * tests/foreign.at (Libtool): Reject prehistoric versions.
11710 2001-06-23  Akim Demaille  <akim@epita.fr>
11712         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
11713         preexisting files matching a.*.
11715 2001-06-23  Akim Demaille  <akim@epita.fr>
11717         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
11718         stderr.
11719         * doc/autoconf.texi (AC_ARG_VAR): Update.
11721 2001-06-21  Akim Demaille  <akim@epita.fr>
11723         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
11724         precious variables have changed.
11725         * tests/torture.at (AC_ARG_VAR): Adjust.
11727 2001-06-21  Akim Demaille  <akim@epita.fr>
11729         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
11730         but some sed choke on multiple `;', and other tools (e.g.,
11731         Automake), include the separator themselves.
11733         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
11735 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
11737         * doc/autoconf.texi (Functions Portability): Rename as...
11738         (Function Portability): this.
11739         (Function Portability): Document potential problems with unlink().
11741 2001-06-19  Paul Eggert  <eggert@twinsun.com>
11743         * NEWS, doc/autoconf.texi: Document quadrigraphs.
11745 2001-06-18  Akim Demaille  <akim@epita.fr>
11747         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
11749 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
11751         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
11752         (_AC_FUNC_VFORK): this.
11753         Remove AC_DEFINEs and don't guess cross-compilation values.
11754         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
11755         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
11756         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
11757         vfork doesn't work.
11758         Guess values if cross-compiling, but warn.
11759         * acfunctions: Add AC_FUNC_FORK.
11760         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
11761         and vfork appropriately.
11763 2001-06-18  Akim Demaille  <akim@epita.fr>
11765         * doc/autoconf.texi (Functions Portability): New section.
11767 2001-06-18  Akim Demaille  <akim@epita.fr>
11769         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
11770         in $M4.
11771         Suggested by Andreas Schwab.
11773 2001-06-18  Akim Demaille  <akim@epita.fr>
11775         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
11776         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
11777         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
11778         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
11779         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
11780         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
11781         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
11782         the converse).
11784 2001-06-18  Akim Demaille  <akim@epita.fr>
11786         * doc/autoconf.texi (ms): New index.
11787         (Macro Index): Rename as...
11788         (Autoconf Macro Index): this.
11789         (M4 Macro Index): New appendix.
11790         (Programming in M4): New chapter.
11791         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
11792         (Quoting): Rename as...
11793         (M$ Quotation): this.
11794         Be part of `Programming in M4).
11796 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
11798         * tests/torture.at (AC_ARG_VAR): Set variables and export them
11799         in separate statements for compatibility with Tru64 v5.1.
11801 2001-06-17  Akim Demaille  <akim@epita.fr>
11803         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
11804         current values of the precious variables, not the previously
11805         cached values.
11806         Pass precious variables which are set to config.status.
11807         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
11808         * tests/torture.at (AC_ARG_VAR): New.
11810 2001-06-15  Paul Eggert  <eggert@twinsun.com>
11812         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
11813         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
11814         and explain why and how to replace them.
11815         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
11816         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
11818 2001-06-15  Akim Demaille  <akim@epita.fr>
11820         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
11821         Reported by Bruno Haible.
11823         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
11824          (_AC_ARG_VAR_PRECIOUS): to here.
11826 2001-06-15  Pavel Roskin  <proski@gnu.org>
11828         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
11829         an unused pointer use cast to this type and `if' statement to
11830         avoid warnings from the compiler.
11831         (AC_HEADER_TIME): Likewise.
11832         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
11833         in `if' statement to avoid warnings from the compiler. Declare
11834         ac_aggr static to avoid the need to initialize it.
11836 2001-06-14  Akim Demaille  <akim@epita.fr>
11838         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
11839         Macros'.
11841 2001-06-13  Akim Demaille  <akim@epita.fr>
11843         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
11844         Suggested by Alexander Mai.
11846 2001-06-13  Akim Demaille  <akim@epita.fr>
11848         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
11849         sys/types.h and sys/stat.h, and check for them.
11851 2001-06-13  Akim Demaille  <akim@epita.fr>
11853         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
11854         INCLUDES.
11856 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
11858         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
11859         succeeds and only try adding libdnet upon a failure.
11861 2001-06-12  Akim Demaille  <akim@epita.fr>
11863         * autoscan.in (&output_kind): Output the comment only if it exists.
11864         (%kind_comment): Add entry for `programs'.
11865         (&output_programs): Use &output_kind.
11866         (&output_functions, &output_identifiers, &output_headers)
11867         (&output_programs): Inline, and remove.
11869 2001-06-12  Akim Demaille  <akim@epita.fr>
11871         * autoscan.in (%kind_comment): New.
11872         (output_kind): New.
11873         (output_functions, output_identifiers, output_headers): Use it.
11875 2001-06-12  Akim Demaille  <akim@epita.fr>
11877         * autoscan.in (&print_unique): Take `$kind' and `$word' as
11878         arguments, to factor indirections into `%macro' and `%used'.
11879         (%generic_macro): Fix a typo.
11881 2001-06-12  Akim Demaille  <akim@epita.fr>
11883         * aclibraries: New.
11884         * autoscan.in (@kinds): Add `libraries'.
11885         Use `@kinds' instead of hard coded lists.
11886         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
11887         Remove, replaced by...
11888         (%used): this.
11890 2001-06-12  Akim Demaille  <akim@epita.fr>
11892         * autoscan.in (%functions_macros %headers_macros)
11893         (%identifiers_macros %programs_macros %makevars_macros): Remove,
11894         replaced by...
11895         (%macro): New.
11897 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
11899         * aclang.m4 (AC_NO_EXECUTABLES): Override
11900         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
11902 2001-06-11  Akim Demaille  <akim@epita.fr>
11904         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
11905         trailing new line.
11906         Reported by Andreas Schwab.
11908 2001-06-11  Akim Demaille  <akim@epita.fr>
11910         * Makefile.am, Makefile.maint: Typos.
11912 2001-06-09  Akim Demaille  <akim@epita.fr>
11914         * doc/autoconf.texi (Here-Documents): New section, gathering
11915         documentation about here-documents.
11916         Use `href', not `uref', and other changes.
11918 2001-06-09  Akim Demaille  <akim@epita.fr>
11920         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
11921         chapter.
11923 2001-06-09  Akim Demaille  <akim@epita.fr>
11925         * doc/autoconf.texi (Limitations of Builtins): Complete the
11926         description of the here-docs penalties with Alexandre Oliva's
11927         explanations.
11929 2001-06-01  Paul Eggert  <eggert@twinsun.com>
11931         * doc/autoconf.texi: Talk about here documents and speedups.
11932         Do not use "echo" on arbitrary strings.
11933         Spell "here-documents" consistently with the standard.
11935 2001-06-09  Akim Demaille  <akim@epita.fr>
11937         * doc/autoconf.texi (Concept Index): Introduce it.
11938         Regenerate the menus.
11940 2001-06-09  Akim Demaille  <akim@epita.fr>
11942         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
11943         * config/prev-version.txt: New.
11944         * config/move-if-change: New, for GNU libc.
11946 2001-06-06  Pavel Roskin  <proski@gnu.org>
11948         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
11950 2001-06-06  Akim Demaille  <akim@epita.fr>
11952         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
11953         properly when $1 is not a literal.
11954         Fixes PR Autoconf/187, reported by Bram Moolenaar.
11956 2001-06-06  Akim Demaille  <akim@epita.fr>
11958         Invoking AC_COPYRIGHT before AC_INIT fails.
11960         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
11961         * acgeneral.m4 (_m4_divert(VERSION_FSF))
11962         (_m4_divert(VERSION_USER)): New.
11963         (AC_COPYRIGHT): $2 is the diversion to use.
11964         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
11965         (AC_INIT): Remove dead comments as now it's commutative.
11967 2001-06-06  Akim Demaille  <akim@epita.fr>
11969         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
11970         PR autoconf/187.
11972 2001-06-05  Akim Demaille  <akim@epita.fr>
11974         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
11975         can be empty.
11976         `*dir' variables cannot be NONE.
11977         Reported by Mark Kettenis.
11979 2001-06-05  Paul Eggert  <eggert@twinsun.com>
11981         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
11983 2001-06-04  Akim Demaille  <akim@epita.fr>
11985         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
11986         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
11987         (AC_TR_SH): Move as...
11988         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
11989         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
11990         (AS_TR_SH): these.
11991         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
11992         (_AS_TR_SH_PREPARE): New.
11993         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
11994         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
11996 2001-06-02  Akim Demaille  <akim@epita.fr>
11998         * Makefile.am (.m4.m4f): Pass the options first.
11999         Fixes PR autoconf/182.
12001 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
12003         GNU getopt, when POSIXLY_CORRECT does not permute options and
12004         arguments.  So pass the options first.
12005         Fixes PR autoconf/184.
12007         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
12008         (run_m4): Remove files.
12009         (run_m4f): Remove.
12010         Update remainder of script to use them.
12011         (for warning in): Do not use a literal comma as it will not be
12012         split by IFS.
12014 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
12016         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
12017         Fortran compilers to check.
12018         (_AC_PROG_F77_V): Add '-###' as a possible option to print
12019         information on library and object files.
12020         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
12021         to check.
12023 2001-06-02  Akim Demaille  <akim@epita.fr>
12025         * autom4te.in (Request::@request): Declare with `vars', not `my',
12026         as it prevents updates via `do FILENAME'.
12028 2001-06-02  Akim Demaille  <akim@epita.fr>
12030         * configure.in (standards_texi): Remove, dead code.
12032 2001-06-02  Akim Demaille  <akim@epita.fr>
12034         * autom4te.in: New.
12036 2001-06-02  Pavel Roskin  <proski@gnu.org>
12038         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
12039         for signals other than 0 - exit with code 1.
12040         * m4sh.m4 (AS_TMPDIR): Likewise.
12041         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
12042         * autoheader.in: Likewise.
12043         * autoreconf.in: Likewise.
12044         * tests/torture.at (Signal handling): New test for the above.
12046 2001-06-01  Akim Demaille  <akim@epita.fr>
12048         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
12049         message.
12051 2001-05-31  Akim Demaille  <akim@epita.fr>
12053         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
12054         Add copyright and comments.
12055         * acheaders: Add stdint.h.
12056         Suggested by Paul Eggert.
12058 2001-05-31  Akim Demaille  <akim@epita.fr>
12060         * atgeneral.m4 (AT_INIT): Use $SHELL.
12061         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
12063 2001-05-31  Akim Demaille  <akim@epita.fr>
12065         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
12066         stdint.h.
12067         From Paul Eggert and Lars Hecking.
12069 2001-05-31  Akim Demaille  <akim@epita.fr>
12071         * tests/base.at: Adjust line numbers in error messages.
12073 2001-05-31  Akim Demaille  <akim@epita.fr>
12075         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
12076         to emit the bangshe line.
12077         Reported by David Carter.
12079 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
12081         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
12082         Fortran (95) compilers to check.
12084 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
12086         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
12087         Macro Archive URL.
12089 2001-05-23  Pavel Roskin  <proski@gnu.org>
12091         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
12092         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
12093         (AC_PROG_CXXCPP): Likewise.
12095 2001-05-22  Akim Demaille  <akim@epita.fr>
12097         * config: New directory.
12098         * configure.in: AC_CONFIG_AUX_DIR it.
12099         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
12101 2001-05-22  Akim Demaille  <akim@epita.fr>
12103         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
12104         * autoupdate.in: Specify the Emacs mode.
12105         * acversion.m4.in: Rename as...
12106         * acversion.m4: this.
12107         * tests/Makefile.am (CLEANFILES): More garbage.
12109 2001-05-22  Akim Demaille  <akim@epita.fr>
12111         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
12112         Rename as...
12113         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
12114         these.
12116 2001-05-21  Akim Demaille  <akim@epita.fr>
12118         * configure.in: Bump to 2.50a.
12121         -----
12123         Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software
12124         Foundation, Inc.
12126         This file is part of GNU Autoconf.
12128         GNU Autoconf is free software; you can redistribute it and/or modify
12129         it under the terms of the GNU General Public License as published by
12130         the Free Software Foundation; either version 2, or (at your option)
12131         any later version.
12133         GNU Autoconf is distributed in the hope that it will be useful,
12134         but WITHOUT ANY WARRANTY; without even the implied warranty of
12135         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12136         GNU General Public License for more details.
12138         You should have received a copy of the GNU General Public License
12139         along with autoconf; see the file COPYING.  If not, write to
12140         the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12141         Boston, MA 02110-1301, USA.