Don't use "shift 2".
[autoconf.git] / ChangeLog
blob4143a35f6ca705e5f7d8a9e1e4b6277ace548bf1
1 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
3         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
4         * doc/autoconf.texi (Limitations of Builtins): Document this
5           limitation.
7 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
9         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
10           common code; used in many places in the tree.
11         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
12         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
14         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
16         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
17           messages when ac_unique_file is not found.
18         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
19         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
20           commands, for consistency with AC_MSG_ERROR and such.
22         * bin/autoconf.as: Make more use of "shift 2" in option processing.
24         * bin/Makefile.am: Merge the two rules for creating scripts.
26 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
28         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
29         obsolete; it was never documented.
30         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
32 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
34         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
35         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
36         (ac_top_builddir): ... this ...
37         (ac_top_build_prefix): ... to this; the old name is also kept, for
38           backward compatibility.
39         (ac_top_builddir_sub): New variable, without the trailing slash,
40           always nonempty.
41         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
42         * doc/autoconf.texi (Configuration Actions): Rename
43           ac_top_builddir to ac_top_build_prefix.
44         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
45           at_top_builddir to at_top_build_prefix.
46         * lib/autotest/general.m4 (AT_INIT): Likewise.
48 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
50         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
51           of confdefs.h .
53 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
55         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
56           argument to m4_foreach.  I guess it was necessary in the past,
57           but I think it's a no-op now.
59 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
61         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
62           ``cat <<_ACEOF'' commands to one.
63         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
64         * lib/autoconf/status.m4: On various places, use expr instead of
65           ``echo|sed.''
66         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
67         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
68         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
69           a range.
70         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
71           the wrong patterns between ``case'' and ``esac.''  The previous
72           code had false positives.
74 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
76         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
77         as on 2005-05-02.
78         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
79         Mention LIBOBJDIR.
81 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
84         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
85         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
86         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
87         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
88         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
89         config/config.guess, config/config.sub, config/elisp-comp,
90         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
91         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
92         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
93         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
94         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
95         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
96         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
97         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
98         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
99         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
100         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
101         lib/autoconf/general.m4, lib/autoconf/headers.m4,
102         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
103         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
104         lib/autoconf/specific.m4, lib/autoconf/status.m4,
105         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
106         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
107         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
108         lib/autotest/general.m4, lib/emacs/Makefile.am,
109         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
110         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
111         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
112         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
113         tests/compile.at, tests/foreign.at, tests/fortran.at,
114         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
115         tests/semantics.at, tests/suite.at, tests/tools.at,
116         tests/torture.at, tests/wrapper.as:
117         Update FSF postal mail address.
119 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
121         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
122           check.
123         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
124           enough arguments, similarly as in m4_bpatsubsts.
126 2005-05-12  Stepan Kasal  <address@hidden>
128         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
129           of absolute paths.
131 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
133         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
134           for absolute directory names in one loop.
135         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
136           abbreviations of --version and --debug.
138 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
140         * doc/autoconf.texi (Autoconf Language): Be more precise about
141         quoting rules.  Problems noted by Stepan Kasal.
142         Also, throughout this document, be more careful about white space.
143         "blank", "white space", and "space" all have different meanings
144         and we should be careful to say what we mean.
146 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
148         Fix C++ related problems reported by Werner Lemberg.
149         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
150         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
151         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
152         avoid problems with C++ and throw.
153         * tests/compile.at: .cpp, not .cc.
155         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
157 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
159         * doc/autoconf.texi (Generic Functions): Typos.
161 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
163         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
164         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
165         set by latest automake.
167 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
169         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
170         outputs 0 on GNU/Linux these days.
172 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
174         * doc/autoconf.texi (Autoconf Language): Add more description
175         about quoting heuristics.
176         (Limitations of Builtins): Describe "set -" problems.
178 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
180         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
181         not newline.
183         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
184         by AC_DEFINE; it was a mistake.
185         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
187 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
189         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
191 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
193         * doc/autoconf.texi (External Software): Quadrigraphs are not
194           processed correctly in AS_HELP_STRING; avoid this in the examples.
195         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
196         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
197           comment and reduce m4_default([foo], []) to [foo].
198         (m4_strip): Update the explanation.
200 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
202         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
203         Remove core.conftest.* too; it's generated by Tru64 5.1.
204         Problem reported by Jennis Pruett.
205         * lib/autoconf/functions.m4
206         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
207         Don't bother to remove core files; AC_RUN_IFELSE should do that
208         for you.
210 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
212         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
214 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
216         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
217         Report from Horst Wente.
219 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
221         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
222           the comment.
224 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
226         * doc/autoconf.texi (External Software, Package Options): Add
227           examples showing how to implement --with-* and --enable-* options.
229 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
231         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
232         as well as configure.in.  Problem reported by Gregorio Guidi.
234 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
236         * doc/autoconf.texi (Particular Functions): Use gnulib's current
237         pattern for alloca snippet.
239 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
241         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
243 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
245         * doc/autoconf.texi (Generic Programs): Fix a typo.
247 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
249         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
250         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
252 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
254         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
255         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
256         whole-archive (-zallextract, -zdefaultextract) options in the hope of
257         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
258         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
260 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
262         * NEWS: The configure command now warns you if you attempt to use
263         a directory whose name contains a special character like space,
264         newline, or "\".
265         * doc/autoconf.texi (Installation Directory Variables): Allow
266         "," in file names.  Do not use \@; it's not a portable regexp.
267         * bin/Makefile.am (edit): Likewise.
268         * lib/Makefile.am (edit): Likewise.
269         * tests/Makefile.am (edit): Likewise.
270         * tests/semantics.at: Likewise.
271         * tests/torture.at: Likewise.
272         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
273         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
274         * doc/autoconf.texi (File System Conventions): Warn about
275         unportable file names.
276         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
277         (AC_INIT): Use it.
278         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
279         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
280         ac_pwd, and quote srcdir.
281         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
283         * doc/autoconf.texi: Fix some systematic formatting problems.
284         ".)"  needs a following @: if not at the end of a sentence, and
285         similarly for "!)".  "etc." should be preceded by a comma.
286         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
288 2005-03-22  Bruno Haible  <bruno@clisp.org>
290         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
291         argument is often called 'build-aux'.
293 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
295         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
296           macro AC_TRY_LINK is obsolete.
297         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
298           `AC_CONFIG_FILES'.
300 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
302         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
303           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
304           from a Common Lisp's `cl'.
305         (AC_PROG_CXX): Behave according to the documentation: don't
306           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
307           make the variable CCC precious; use `cl.exe', not `cl'.
309 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
310             Alexandre Duret-Lutz  <adl@gnu.org>
312         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
313         /dev/null, as "configure" shouldn't read stdin, and this insulates
314         us from problems (e.g., when testing for "cl").  Also, do this
315         redirection before invoking "hostname" or "uname", and keep the
316         original input stream available via...
317         (AS_ORIGINAL_STDIN_FD): ... this new macro.
318         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
319         bother with "</dev/null" since it's now done at the top of
320         'configure'.
321         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
322         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
323         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
324         * doc/autoconf.texi (File Descriptor Macros): New section.
325         (Printing Messages): Mention it.
326         * tests/base.at (Input/Output): New test.
328 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
330         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
331         newline if neither \c nor -n work, as that would output two
332         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
334 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
336         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
337         This causes that any required macros inside will get before the if.
338         * doc/autoconf.texi (autom4te.cache): A typo.
340 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
342         Undo previous change, except keep the change to
343         lib/autoconf/programs.m4 that replaced grep with shell
344         pattern-matching.  This is because net-snmp configure reads stdin.
345         Reported by Noah Misch.
347 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
349         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
350         from /dev/null, as "configure" shouldn't read stdin, and this
351         insulates us from problems (e.g., when testing for "cl").
352         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
353         before invoking "hostname" or "uname".
354         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
355         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
356         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
357         "</dev/null" since it's now done at the top of 'configure'.
358         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
359         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
360         Also, replace grep with shell pattern-matching, to save a process.
362 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
364         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
365         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
366         avoid thinking that Allegro Common Lisp's "cl" command is a C++
367         compiler.
369 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
371         * doc/autoconf.texi (Limitations of Usual Tools): Document that
372         grep -q isn't portable.  Improve grep -s explanation.
373         Problem reported by Dan Manthey.
375 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
377         * doc/autoconf.texi (Special Shell Variables): Clarify
378         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
380 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
382         * doc/autoconf.texi: Use @acronym for DJGPP.
383         Fix some @code's that should have been @env's, and vice versa.
384         Sort environment variable names.
385         Mention that shells no longer inherit IFS.
386         Don't recommend PATH_SEPARATOR=';' so strongly.
387         Mention that $RANDOM might expand to the empty string.
388         "symlink" and "soft link" -> "symbolic link".
389         Improve mktemp description (reported by Bruno Haible).
391 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
393         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
394         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
395         Likewise.
396         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
397         Likewise.
399 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
401         * NEWS: Mention AT_COPYRIGHT.
403         * tests/local.at (AT_CMP): Use diff directly on input files rather
404         than copying them.
406         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
407         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
409 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
410         and Paul Eggert  <eggert@cs.ucla.edu>
412         * tests/autotest.at (Empty test suite): New test.
413         * tests/torture.at (Substitute and define special characters)
414         (Substitute a 2000-byte string, Define to a 2000-byte string)
415         (Substitute a newline, Define a newline): New tests.
417 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
419         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
420         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
421         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
422         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
423         (Standard regular expressions): New test.
424         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
425         excess test name quoting.
426         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
427         CPPFLAGS to `configure' instead of setting it in `configure'.
429         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
430         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
431         on some platforms.
433         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
434         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
436         * tests/local.at (AT_CMP): New macro.
437         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
438         (AC_SAVE_STATE): Move environment grep...
439         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
440         (AT_CONFIG_CMP): New macro.
441         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
442         * tests/c.at (Extensions): Do not exit early.
443         * tests/atlocal.in: Inherit $GREP.
445         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
446         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
448         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
449         (AC_COPYRIGHT): Factor header comment portion out and move into...
450         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
451         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
452         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
453         --version output.
454         * tests/local.at: Add Autoconf test suite copyright notice.
455         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
457 2005-02-04  Bruno Haible <bruno@clisp.org>
458         and Paul Eggert  <eggert@cs.ucla.edu>
460         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
462 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
464         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
465         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
467         Try not to generated lines of unlimited length, as POSIX places a
468         2047-byte limit on line length of portable text files.
469         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
470         Use newline as a separator, not space.
471         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
472         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
473         space.
475 2005-02-03  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
477         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
478         as_func_*.  Add test to check whether positional parameters
479         are restored after function return.
481 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
483         * doc/autoconf.texi (Special Shell Variables): Mention _,
484         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
485         if they contain a lower-case letter.  The DUALCASE problem was
486         reported by Ralf Wildenhues.
488         * bin/autoconf.as: Don't exit with status 0 after write failure
489         with --help or --version.
490         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
491         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
493 2005-02-02  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
495         * doc/autoconf.texi (Limitations of Usual Tools):
496         Unicos 9 sed limitations.
497         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
498         to get the option-enhanced interface on older Crays.  Try ftn for
499         Fortran 95 (newer Crays).
501 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
503         * man/Makefile.am (.x.1): Go back to the simple solution, but take
504         care to echo the commands, so the user knows what's going on.
505         Modified from a suggestion by Stepan Kasal.
507         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
508         with a cross reference.  Derived from a suggestion by Bruce Korb.
510 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
512         * doc/autoconf.texi (config.status Invocation): Warn about
513         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
514         * doc/install.texi (Defining Variables): Likewise.
515         Based on a proposed patch by Ralf Wildenhues.
517         * man/Makefile.am (.x.1): Make sure the required generated files
518         are up to date.  Problem and original solution proposed by Stepan Kasal.
519         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
520         implicit-man-prerequisites): New rules, used by the above.
522         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
523         * config/config.guess, config/config.sub, config/install-sh: Likewise.
524         * config/missing, config/texinfo.tex: Likewise.
526 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
528         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
529         Update the long comment explaining it.
531         m4_require no longer writes an ``is required by'' line to the
532         execution stack.  It contains only one bit of non-redundant
533         information: that the macro was required, not called.  And even
534         this bit is useless in most situations: have you ever met a macro
535         which both calls and requires the same macro?
537         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
538         (_m4_defun_pro_outer): ... only via this macro, for the outermost
539           macro.
540         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
541         (m4_expansion_stack_pop): Remove the misplaced comment.
542         (m4_require): Don't put the ``is required by'' line to the
543           execution stack; slightly improve the out-of-a-defun error message.
544         (_m4_divert_grow): New macro, counter for the temporary diversions.
545         (_m4_require_call): Use it.
546         * tests/m4sugar.at (m4_require): Expect output without the
547           ``is required by'' messages.
549 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
551         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
552         rather than x for expr.
554         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
555         this is safe.
556         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
557         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
558         * lib/autotest/general.m4 (AT_INIT): Likewise.
559         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
560         * tests/mktests.sh: Likewise.
562 2005-01-27  Akim Demaille  <akim@epita.fr>
564         Have autoheader honor --force.
566         * doc/make-stds.texi, doc/standards.texi: Update from masters.
567         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
568         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
569         from masters, so that FileUtils.pm's update_file provide --force
570         support.
571         * bin/autoheader.in: Pass $force to update_file so that
572         config.h.in is always recreated when --force.
574 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
576         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
578 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
580         * doc/autoconf.texi (Limitations of Builtins): Clarify that
581         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
583 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
585         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
586         Warn about newline stripping in `` and $().  Update Solaris
587         version to 9.
588         (Limitations of Builtins): Use expr "X...", not expr "x...", as
589         X insulates us from future changes to Posix.
590         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
591         stripping.
593 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
595         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
596           you cannot use AC_DEFINE to define macros containing `[' or `]'.
598 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
600         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
601         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
602         bug-tar mailing list.
604 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
606         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
608 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
610         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
611         ulongval to be static, to avoid unwanted GCC warning.  Problem
612         reported by Michael Jennings via Daniel Reed; see
613         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
615 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
617         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
618         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
619         datadir, infodir, and mandir.  Adjust argument parsing code.
620         (_AC_INIT_HELP): Update help text.
621         * doc/autoconf.texi (Installation Directory Variables): Document
622         new variables.
624 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
626         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
627         not seem to work, assume it does set $(MAKE).
628         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
630 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
632         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
634 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
636         A cleanup of the diversion support in m4sugar.
638         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
639         (_m4_divert_n_stack): New macro; the expansion is
640           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
641           otherwise.
642         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
643         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
644           stored in _m4_divert_diversion or _m4_divert_dump.
645         (m4_divert_pop): When the parameter is given, compare the symbolic
646           name with the last diversion pushed on the stack.  Previously, the
647           current diversion was compared with the numeric value of the
648           diversion given as the parameter.
649         (m4_require): If the macro hasn't been expanded yet, call ...
650         (_m4_require_call): this new macro.
652 2005-01-03  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
654         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
655         Workarounds for documented `case' limitations.
657 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
659         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
660         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
662 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
664         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
665         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
666         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
668         Patch from Roger Leigh (with some minor changes) as follows:
669         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
670         Resurrect AC_PROG_CC_STDC.
671         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
672         AC_PROG_CC_C89, AC_PROG_CC_C99.
673         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
674         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
675         AC_PROG_CC_C99): New macros.
676         (AC_PROG_CC_STDC): Use them.
677         (_AC_PROG_CC_STDC): Remove.
678         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
679         * THANKS: Add Roger Leigh.
681 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
683         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
684         signals that the package uses Automake; a `Makefile.am' is typical but
685         not essential.  Reported by Magnus Therning.
686         * tests/torture.at (autoreconf.): New banner.
687         (autoreconf and non-AC configure): Rename to `Non-Autoconf
688         AC_CONFIG_SUBDIRS'.
689         (autoreconf an empty directory): Rename to `Empty directory'.
690         (Unusual Automake input files): New test.
692 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
694         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
695         (AT_SETUP): Clear AT_capture_files.
696         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
697         (AT_KEYWORDS): Fix comment typo.
698         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
699         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
700         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
702 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
704         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
705         If the variable to set is already set, set ac_cv_path_$1
706         to the preset value so caller can assume ac_cv_path_$1
707         is available.  (trivial change)
709 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
711         * BUGS (Minor Problems): Warn about makefile limitations.
712         * Makefile.am: Find and update `INSTALL' in $(srcdir).
713         * man/Makefile.am: Find and update manual pages in $(srcdir).
715 2004-12-24  Eric Blake  <ebb9@byu.net>
717         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
718         shells in subshell, to avoid noise from ash.  (trivial change)
720 2004-12-22  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
722         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
723         problems with SunOS ksh and backslash escaping, Bourne shells and
724         closing brackets (both within character classes).  Bug reported
725         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
726         <read>: New entry.  Mention non-availability of -r.
728 2004-12-21  Akim Demaille  <akim@epita.fr>
730         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
731         avoid cluttering displayed messages.  Rather, prepend srcdir where
732         AT_LINE is used for log files.
734 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
736         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
737         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
738           no longer part of the macro, quote the occurrence of ``$tmp''.
739         * doc/autoconf.texi (Forbidden Patterns): Typo.
741 2004-12-21  Akim Demaille  <akim@epita.fr>
743         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
744         separated from the test title by forcing a white space.
746 2004-12-21  Akim Demaille  <akim@epita.fr>
748         Enable Emacs navigation within testsuite.log files.
750         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
751         use the compilation mode.
752         (AT_LINE): Point to the srcdir.
754 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
756         * tests/Makefile.am (installcheck-local): Use $(bindir).
757         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
758         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
759         Makefile.am scheme Autoconf now uses.
761 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
763         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
764         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
766 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
768         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
769         (_AT_CHECK): Use it.
770         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
771         (AS_ESCAPE): Fix comment.
772         * tests/autotest.at: Adjust section banner comments.
773         (AT_CHECK_AT): Accept STATUS and STDERR.
774         (AT_CHECK_AT_TEST): Likewise.
775         (Invalid brace-enclosed parameter expansion)
776         (Multiline command from M4 expansion)
777         (Double-M4-quoted command): New tests.
779 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
781         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
783 2004-12-17  Akim Demaille  <akim@epita.fr>
785         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
786         m4_pattern_allow.
787         Suggested by Alexandre Duret-Lutz.
788         * doc/autoconf.texi (Setting Output Variables): Catch up.
790 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
792         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
794 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
796         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
797           remove the comment which said we cannot.
799 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
801         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
802         Reini Urban and Paul Eggert for reporting the dependencies.
804         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
805         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
806         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
808 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
810         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
811           so that eg. ``autoscan --help'' doesn't truncate it.
813 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
815         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
816         generated conftest files.
818 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
820         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
821         tracing on commands with possibly-escaped newlines.
822         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
823         discontinued behavior and its implications.
824         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
825         (BSx641-newline in command, BS-BS-newline in command)
826         (BSx640-newline in command, Newline-CODE-BS-newline in command)
827         (Single-quote-BS-newline in command)
828         (Single-quote-newline-BS-newline in command): New tests.
830 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
832         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
833           on platforms where it works.
834         (_AS_TEST_PREPARE): Test for ``test -x''.
835         (_AS_BROKEN_TEST_PREPARE): Nuke.
837 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
839         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
840         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
841           give only 4-letter prefix to AS_TMPDIR, comment fixed.
842         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
843           create the temporary directory.
844         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
846 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
848         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
849         (trivial change)
851 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
853         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
855 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
857         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
858         to avoid using a negated character class.  Reported by Nicolas Joly.
859         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
861 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
863         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
864         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
865         Don't depend on .x file explicitly, since "make" does that for us.
866         Suggested by Stepan Kasal.
868         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
869         Add *.tmp.
870         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
871         ifnames): Factor common code.  And they said it couldn't be done!
873 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
875         * bin/.cvsignore: Add autoconf.in.
876         * tests/.cvsignore: Add wrapper.in.
877         * lib/autotest/general.m4: Escape '$' in case pattern.
879 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
881         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
883         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
885         * tests/autotest.at: New file.
886         * tests/suite.at: Include it.
887         * tests/Makefile.am: Distribute it.
889         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
890           shell tracing on a command that could contain multiple lines.
891         * doc/autoconf.text: Document that fact and its implications.
892         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
893         * tests/autotest.at (Multiline backquote command substitution,
894           Multiline parameter expansion, Literal multiline command,
895           Multiline parenthetical command substitution): Remove XFAIL.
897 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
899         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
900         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
902 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
904         * configure.ac (test suite): Cease to generate wrapper scripts.
905         * configure: Regenerate.
906         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
907         (m4f_dependencies): Adjust accordingly.
908         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
909         (wrapper.in): Generate it in the build directory.
910         (MAINTAINERCLEANFILES): Delete wrapper.in.
911         (CLEANFILES): Add wrapper.in.
912         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
913         the output.  Replace each $as_me with a @wrap_program@.
914         * tests/wrapper.in: Delete it; we always build it.
916         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
917         (EXTRA_DIST): Remove autoconf.in.
918         (CLEANFILES): Add autoconf.in.
919         (autoconf): Find autoconf.in in the build directory.
920         * bin/autoconf.in: Delete it; we always build it.
922 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
924         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
925         PATH members so as to not prepend an empty element.  Move a comment.
926         * Makefile.am (SUBDIRS): Build in `tests' last.
927         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
929 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
931         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
932         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
933         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
934         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
936 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
938         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
939         patch: extra "-l"s.
941 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
943         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
944         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
945         * doc/autoconf.texi (Particular Functions): Mention new behavior.
947 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
949         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
950           out the common code to ...
951         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
952           value of the #define--default to 1, iff the macro was called
953           with exactly one parameter.
955 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
957         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
958         "char c = '\200';" rather than "char c = 0x80;" as the
959         latter doesn't conform to the strict C standard due to
960         overflow on signed char hosts.
962         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
963         to -qlanglvl=ansi.  We don't want to disable extensions.
965 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
967         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
968         (Using Autotest, testsuite Scripts, Writing testsuite.at):
969         Reword slightly to avoid some English-language problems noted
970         by Ralf Wildenhues in:
971         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
973 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
975         * NEWS: Add ^L above each release.
977 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
979         Fix documentation problems reported by Russ Boylan in
980         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
981         along with some nearby cruft.
982         * doc/autoconf.texi (Libtool): Libtool can be used without
983         Automake (not without Autoconf).
984         (Introduction): Mention lists.gnu.org.
985         * BUGS: Don't mention bugs.gnu.org.
986         Remove mention of ancient libtool compatibility problem.
987         * NEWS: Mention that bugs.gnu.org is kaput.
988         * README: Likewise.  Mention where mailing list archives can be found.
990 2004-11-28  Stepan Kasal  <address@ucw.cz>
992         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
993         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
995 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
997         * doc/autoconf.texi (Pretty Help Strings): Go back to
998         single-quoting assignments to cache variables.
1000 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
1002         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
1003         with the examples; fix the bug in MY_ARG_WITH example reported
1004         by Alexandre Duret-Lutz.
1005         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
1006         expansion of $1 in the comment emitted to configure.
1008 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1010         * doc/autoconf.texi (Pretty Help Strings): Fix typo
1011         in my editing of the previous patch.  Problem reported
1012         by Alexandre Duret-Lutz.
1014 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
1016         * doc/autoconf.texi (Autoconf Language): Explain that
1017         ``descriptions'' may not be double quotes.
1018         (Quotation Rule Of Thumb): Likewise.
1019         (Pretty Help Strings): Likewise; remove the wrong comment;
1020         simplify the examples and improve their quoting.
1022 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
1024         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
1025         the $1_found variable, don't test whether the file is executable;
1026         Both things are checked ...
1027         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
1028         the former ``test -f''.
1029         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
1031 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
1033         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
1034         use cp -R instead.
1036 2004-11-10  Derek R. Price  <derek@ximbiot.com>
1038         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
1039         limitations.  Reorder paragraphs for clarity.
1041 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1043         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
1044         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
1045         variants", "Unix", and some related minor wording fixups.
1047         (Shellology, Special Shell Variables): Document that the Zsh
1048         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
1049         to Alexandre Duret-Lutz for this info.
1051 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
1053         * doc/autoconf.texi (One-Shot Macros): New node.
1055 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1057         * doc/autoconf.texi (Function Portability): Fix misdescription
1058         of putenv.  Problem reported by Michael Wardle.
1060 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1062         * doc/autoconf.texi (auindex): New macro.
1063         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
1064         Problem reported by Stepan Kasal.
1066 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1068         Fix problems reported by Andreas Buening in:
1069         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
1070         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
1071         in test makefile.
1072         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
1073         readable; it's not true in OS/2-emx.
1075 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
1077         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
1078         "/usr/include", clear ac_x_includes instead of leaving it as "no"
1079         (trivial change).  Problem and patch reported by Andrew Church in:
1080         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
1082 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1084         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
1085         three args in examples.  Problem reported by Frederik Fouvry in:
1086         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
1087         Also, fix some minor spacing and punctuation bugs.
1089 2004-09-02  Akim Demaille  <akim@epita.fr>
1091         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
1092         "case" to restore ordering.
1093         Reported by Stepan Kasal.
1095 2004-08-26  Akim Demaille  <akim@epita.fr>
1097         * doc/autoconf.texi: Minor typos and stylos.
1099 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1101         * configure.ac (AC_INIT): Bump to 2.59c.
1103 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1105         Version 2.59b.
1107         * README: Add advice about m4 1.4.2.
1109         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
1110         texinfo.tex for now (done by hand now).
1111         * Makefile.maint (wget_files, cvs_files):
1112         Remove ansi2knr.c; nobody uses it.
1113         (ansi2knr.c-url_prefix): Remove.
1114         (cvs-update): Fix test for failure.  I don't know why it ever
1115         worked...
1117         * doc/autoconf.texi: Update URLs, some of which went stale.
1118         Use @uref rather than @href.
1120         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
1121         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
1123         * config/config.guess, config/config.sub, config/elisp-comp,
1124         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
1125         doc/fdl.texi, doc/standards.texi: Sync with master copy.
1127         * NEWS, TODO, configure.ac, bin/autoscan.in,
1128         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
1129         doc/install.texi, lib/Autom4te/Configure_ac.pm,
1130         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
1131         lib/autoconf/programs.m4, lib/autoconf/status.m4,
1132         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
1133         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
1134         tests/tools.at, tests/torture.at:
1135         Use "file name" rather than "filename" or "path",
1136         to be consistent with the terminology of the GNU coding standards.
1138 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1140         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
1141         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
1142         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
1143         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
1145         More fixes to support spaces in the name of the build directory.
1146         This isn't a complete fix but it's an improvement.
1148         * bin/autoconf.as (autom4te_options): New var.
1149         Use it instead of appending to AUTOM4TE, so that we can allow
1150         spaces in the build directory's absolute name.
1151         * bin/autoheader.in ($autoconf): Allow spaces in file names.
1152         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
1153         AT_CHECK_NOESCAPE): Likewise.
1154         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
1155         main program): Likewise.
1157 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1159         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
1160         From Ralf Corsepius in:
1161         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
1163 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1165         * doc/autoconf.texi (Function Portability): Document isinf and
1166         and isnan.  From a suggestion by Kevin Ryde.
1168         * lib/Autom4te/General.pm (END): Return correct exit status even
1169         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
1171 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1173         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
1174         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
1175         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
1177 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
1179         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
1180         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
1181         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
1182         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
1183         * lib/autom4te.in (Automake-preselections): Preselect
1184         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
1186 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
1188         * lib/autom4te.in (Automake-preselections): Preselect
1189         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
1190         trace them.
1192 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1194         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
1195         Tru64.
1196         * doc/autoconf.texi (Shellology): Mention BIN_SH.
1197         Document problem with "`""`" in pdksh POSIX mode.
1199 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1201         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
1202         with pdksh, too.  Problem reported by Patrick Welche via
1203         Gary V. Vaughan.
1204         * doc/autoconf.texi (Shellology): Note that set -o posix is
1205         useful for pkdsh, too.
1207 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
1209         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
1210         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
1211         Don't fail if ENV or BASH_ENV is readonly.
1212         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
1213         etc. are read only.  Problem reported by Ludovic Courtes.
1215 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
1217         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
1218         zsh, disable GLOB_SUBST to avoid backslash handling problems.
1219         (trivial change)
1221 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
1223         * doc/autoconf.texi (File System Conventions): Warn about
1224         names like "aux".  Problem reported by Eric Blake.
1226         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
1227         by zero instead of array size, so that we can use any arithmetic
1228         constant expression (instead of requiring an integer constant
1229         expression).  This allows us to test expressions like DBL_MAX <
1230         LDBL_MAX, which didn't conform to the C standard using the old
1231         method.
1232         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
1233         now that we can do floating-point tests at compile time.
1235 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1237         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
1238         and LDBL_EPSILON, as the resulting expression isn't an
1239         integer constant expression and violates the C standard.
1240         Problem reported by Nelson H. F. Beebe.  Also, check
1241         for "L" suffix, and check that long double doesn't have
1242         worse range or precision than double, that mixed-mode
1243         arithmetic doesn't generate a diagnostic, that double
1244         constants fit in long double.
1246 2004-06-03  Kevin Ryde  <user42@zip.com.au>
1248         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
1249         malloc(0) and realloc(NULL,size).
1251         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
1252         Bob Proulx.
1254 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1256         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
1257         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
1258         by Jim Meyering.
1260 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1262         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
1263         can be rewritten using if-then-else.  Suggested by Bruno Haible.
1265 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1267         * doc/autoconf.texi (testsuite Scripts): Fix typo.
1268         Problem reported by Stepan Kasal.
1270 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1272         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
1273         change).  Patch reported by Ralf Wildenhues in
1274         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
1276         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
1277         function F exists if the compiler and linker let you compile an
1278         expression like (F != 0).  Recent versions of GCC optimize away
1279         the reference to F in that case, since every function address must
1280         be nonzero, so the link succeeds even if F does not exist.
1281         Problem reported by Manu in
1282         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
1284         * doc/autoconf.texi (Systemology): Standardize on the spelling of
1285         "Unix".  Many uses changed.
1286         (Limitations of Builtins): Explain better why the ! command isn't
1287         portable.
1289 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
1291         * lib/autom4te.in (Automake-preselections): Preselect
1292         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
1294 2004-05-19  Kevin Ryde  <user42@zip.com.au>
1296         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
1297         referencing AC_FUNC_STRERROR_R.
1299         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
1300         note pessimistic assumption when cross compiling.
1302 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1304         * doc/autoconf.texi (Limitations of Make): Note that BSD make
1305         (until 2004) invoked subcommands with sh -e, contra POSIX.
1306         Reported by Kevin Ryde.
1308 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
1310         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
1311         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
1312         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
1313         `test -f "        /usr/bin/grep"', which _always_ failed.
1314         (AC_PROG_SED): Ditto bogus PATH fix.
1315         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
1316         requires that grep correctly supports _multiple_ `-e' options, rather
1317         than stating only that grep should accept `-e'.
1319 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1321         Port to C99, which requires that 'exit' be declared.
1323         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
1324         to ensure that stdlib.h is included.
1325         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
1326         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
1327         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
1328         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
1329         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
1330         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
1331         when using 'exit' in a test; C99 requires that 'exit' be declared.
1333 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
1335         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
1336         now prefers 'grep' implementations that accept -e.
1337         (Limitations of Usual Tools): Describe problems of traditional
1338         egrep and fgrep with long input lines, and of traditional grep
1339         with -e.
1340         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
1341         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
1342         All callers changed.  Append /usr/xpg4/bin to the PATH, for
1343         Solaris.
1344         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
1345         the user with complaints about multiple -e options.
1346         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
1347         Define it with AC_PROG_GREP.
1348         * configure.ac (AC_PROG_GREP): Add.
1349         * lib/freeze.mk (GREP): New macro.
1351 2004-05-02  Eric Sunshine <sunshine@sunshineco.com>
1353         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
1354         a possible candidate only after all others fail, rather than
1355         consulting it first.  This improves backward compatibility by
1356         better reflecting the way shell selection occurred in previous
1357         versions of Autoconf, and should help to avoid triggering latent
1358         problems in other packages, such as the one in Automake where zsh
1359         is not handled robustly:
1360         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
1361         Although it is not Autoconf's responsibility to work around
1362         problems in Automake, it nevertheless makes sense to avoid
1363         introducing unnecessary incompatibilites.
1365 2004-04-22  Albert Chin-A-Young <china@thewrittenword.com>,
1366             Gary V. Vaughan  <gary@gnu.org>
1368         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
1369         how deeply nested we are when a suitable tool is found, set the
1370         ac_path_TOOL_found flag.
1371         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
1372         nested we are in this macro.  Break out of all 3 nested loops if
1373         ac_path_TOOL_found is set.
1375 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
1377         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
1378         of the _AS_PATH_WALK loop too if GNU flavor is found.
1380 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
1382         * doc/autoconf.texi (Limitations of Make): Update documentation
1383         for `$<'.  New entry `Long lines', based on a report from Simon
1384         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
1385         paragraph about DJGPP, based on a mail from Richard Dawe.
1387 2004-04-20  Paul Eggert  <eggert@twinsun.com>
1389         * tests/c.at (C keywords): Don't assume that GCC supports
1390         "restrict" and "inline", as sufficiently-old GCC versions do not
1391         (also, GCC configured to be in pedantic C89 mode does not).
1392         Problem reported by Sumit Pandya in:
1393         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
1395         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
1396         consider -g to work if it generates warnings when plain compiles
1397         don't.  Problem reported by Braden McDaniel in:
1398         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
1400         * doc/autoconf.texi (Slashes): New section, to document a problem
1401         reported by Jim Meyering in:
1402         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
1404         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
1405         linker output files before linking, to work around IRIX 6 linker bug.
1406         Problem reported by Rainer Orth in:
1407         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
1409 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
1411         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
1412         best tool so far counter rely on the tool path variable name to
1413         avoid checks for one tool being affected by the results of running
1414         the length check on a previous tool.
1416         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
1417         match expression argument, as different greps have different
1418         regular expression flavours.
1419         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
1420         literals.
1421         (AC_PROG_EGREP): Pass 'EGREP$'.
1422         (AC_PROG_GREP): Pass 'GREP$'.
1424 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
1426         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
1427         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
1429 2004-03-29  Paul Eggert  <eggert@twinsun.com>
1431         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
1432         Types, Specific Compiler Characteristics, System Services,
1433         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
1434         etc. consistently instead of 'long', 'short', 'unsigned' etc.
1435         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
1436         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
1437         Likewise.
1438         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
1439         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
1440         AC_TYPE_OFF_T): Likewise.
1441         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
1442         Likewise.
1444         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
1445         pacify libtool 1.5.2.  Fix quoting problems in sed command.
1447 2004-03-28  Paul Eggert  <eggert@twinsun.com>
1449         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
1450         now defines HAVE_DECL_TZNAME if it is declared, when
1451         HAVE_STRUCT_TM_TM_ZONE is not defined.
1452         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
1453         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
1454         for HAVE_TZNAME.
1456 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
1458         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
1459         superfluous backslashing of quotes (") in sed expressions;
1460         thanks to Paul Eggert.
1462 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
1464         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
1465         Fortran compiler is ifort, also added pghpf; thanks to Nelson
1466         H. F. Beebe for the bug report.
1468 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
1470         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
1471         quoted -cmdline argument in Portland Group compiler (bug
1472         reported by Jeffrey J. Barteet).
1474 2004-03-25  Kevin Ryde  <user42@zip.com.au>
1476         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
1477         (Run Time): ... here, where it's now mentioned.
1479 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
1481         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
1482         inherits from language Autoconf-without-aclocal-m4.
1483         (Customizing autom4te): Adjust example; the cache must now be
1484         disabled for language Autoconf-without-aclocal-m4.
1486 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
1487             Nathanael Nerode  <neroden@twcny.rr.com>
1489         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
1490         AC_CHECK_TOOLS): Warn if a cross-tool is found without
1491         a prefix.
1492         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
1493         AC_CHECK_TARGET_TOOLS): New macros.
1494         * doc/autoconf.texi (Generic Programs): Document
1495         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
1496         AC_CHECK_TARGET_TOOLS, and warn for future changes
1497         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
1498         AC_CHECK_TOOLS.
1499         (Specifying Names): Document the reason for these future
1500         behavioral changes.
1501         * tests/mktests.sh: Do not generate tests for the
1502         new macros.
1503         * NEWS: Document these changes.
1505         * doc/autoconf.texi: Avoid macros with unbraced arguments,
1506         they make TeX hang up.
1508 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
1510         * NEWS: New macro AC_CHECK_ALIGNOF.
1511         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
1512         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
1513         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
1514         vowel.
1515         (AC_CHECK_ALIGNOF): New macro.
1516         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
1517         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
1518         those for sizeof.
1520 2004-03-03  Paul Eggert  <eggert@twinsun.com>
1522         * bin/Makefile.am (edit): Don't use $< in a context where
1523         POSIX doesn't require support for it.  Use $@.in instead.
1524         Problem reported by Anthony N. Frasso in
1525         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
1526         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
1528 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
1530         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
1531         from the next generation of Libtool.
1532         * lib/autom4te.in (Autoreconf-preselections): Ditto.
1534 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
1536         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
1537         is not always thread-safe.  Report from Nathanael Nerode.
1539 2004-02-18  Paul Eggert  <eggert@twinsun.com>
1541         Fix a dependencies problem, stemming from a Autoconf 2.59 build
1542         problem on QNX reported by Stephen Rasku in
1543         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
1545         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
1546         $(m4sh_m4f_dependencies); this removes a FIXME.
1547         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
1548         (MAINTAINERCLEANFILES): Split into pieces,
1549         one per related section.  Add $(srcdir)/wrapper.in.
1551 2004-02-09  Paul Eggert  <eggert@twinsun.com>
1553         * doc/autoconf.texi (Setting Output Variables): Emphasize that
1554         AC_SUBST provides no portable way to escape literal newlines.
1556         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
1557         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
1558         Darwin uses -lcrt2.o and there's little point to cataloging all
1559         the system variants.  Partial fix reported by Andreas Waechter in:
1560         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
1561         for bug reported by Nelson H. F. Beebe in:
1562         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
1564 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
1566         * doc/autoconf.texi (AU_DEFUN): Fix English,
1567         suggested by Paul Eggert.
1568         * lib/autoconf/autoupdate.m4: Correct reference to
1569         acobsolete.m4, suggested by Alexandre Duret-Lutz.
1571 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
1573         * bin/autoupdate.in: Define __file__ so that warnings
1574         refer to the correct file.
1575         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
1576         the behavior of the third argument.
1577         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
1578         correctly the behavior of the third argument.  Document
1579         what the three macros that AU_DEFUN defines do.  Fix
1580         warning message when the third argument includes $0
1581         (reported by Alexandre Duret-Lutz).
1583 2004-01-30  Paolo Bonzini <bonzini@gnu.org>
1584             Eric Sunshine <sunshine@sunshineco.com>
1585             Paul Eggert <eggert@twinsun.com>
1587         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
1588         (AS_INIT): Output shell initialization there. Removed optional
1589         parameter. Expand _AS_SHELL_FN_SPY.
1590         (AS_INIT_WITH_SHELL_FN): Removed.
1591         (_AS_SHELL_FN_SPY): New macro.
1592         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
1593         macros.
1594         (AS_SHELL_SANITIZE): Remove loop to find better shell
1595         and documentation for the parameter.
1596         (_AS_DETECT_BETTER_SHELL): Move it here.
1597         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
1598         (_AS_RUN): Move it here, support testing with eval.
1599         (AS_REQUIRE_SHELL_FN): Require shell functions when
1600         it is used.
1601         (_AS_LINENO_WORKS): Put around braces, we do not
1602         trigger the bash bug anymore.
1603         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
1604         use AS_INIT_WITH_SHELL_FN.
1605         * bin/autoconf.in, tests/wrapper.in: Regenerated.
1607 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
1609         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
1610         * doc/autoconf.texi: Don't say that the third parameter
1611         is broken.
1612         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
1613         (AU_DEFUN): Honor the third parameter, create autoupdate
1614         macros with AU_DEFINE.
1615         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
1616         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
1617         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
1618         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
1619         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
1620         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
1621         AC_XENIX_DIR): Likewise.
1622         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
1623         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
1624         * lib/autoconf/status.m4: Remove FIXME.
1625         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
1626         that the macro is not present anymore in the updated
1627         configure.ac.
1628         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
1629         of autoupdate.
1631 2004-01-28  Paul Eggert  <eggert@twinsun.com>
1633         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
1634         copyright years.
1635         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
1636         2003 (except 1997) to the list of copyright years.  This undoes
1637         the 2003-05-22 change, which removed the older years from the list.
1638         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
1640 2004-01-27  Gary V. Vaugan  <gary@gnu.org>
1641             Albert Chin-A-Young <china@thewrittenword.com>
1643         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
1644         grep or ggrep program in PATH that accepts as long lines as
1645         possible.
1646         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
1647         AC_PROG_GREP.
1648         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
1649         egrep and fgrep respectively if $GREP -E/-F don't work.
1650         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
1651         _AC_PROG_GREP, and AC_PROG_SED.
1652         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
1653         longest input length accepted by a command.
1654         (AC_PROG_SED): Use it.
1655         * doc/autoconf.texi (Particular Programs): Document the changes.
1656         * NEWS: Updated.
1658 2004-01-27  Paul Eggert  <eggert@twinsun.com>
1660         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
1661         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
1662         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
1663         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
1665         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
1666         bin/autoconf.in, config/Makefile.in, config/config.guess,
1667         config/config.sub, config/install-sh, config/mdate-sh,
1668         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
1669         lib/Makefile.in, lib/Autom4te/Makefile.in,
1670         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
1671         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
1672         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
1673         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
1674         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
1675         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
1676         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
1677         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
1678         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
1679         tests/actypes.at: Regenerate and/or sync with original
1680         sources.
1682 2004-01-26  Paul Eggert  <eggert@twinsun.com>
1684         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
1685         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
1686         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
1687         not <inttypes.h>.  Problem reported by Tim Mooney in
1688         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
1689         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
1690         Likewise.
1692         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
1693         otherwise "make check" fails because it forbids cmp (I guess
1694         because cmp treats files as binary on DOS-like systems).
1696         * tests/mktests.sh: Update copyright date to 2004, since some tests
1697         have changed in 2004.
1699 2004-01-23  Gary V. Vaugan  <gary@gnu.org>
1701         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
1702         non-truncating sed or gsed program in PATH.
1703         * tests/acprograms.at: Add it.
1704         * doc/autoconf.texi (Particular Programs): Document it.
1705         * NEWS: Updated.
1707 2004-01-15  Paul Eggert  <eggert@twinsun.com>
1709         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
1710         -std1 disables some useful extensions on Tru64.  Problem reported
1711         by N. Lichtmaier in
1712         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
1714 2004-01-14  Paul Eggert  <eggert@twinsun.com>
1716         * doc/autoconf.texi (Programming in M4sh): Document that
1717         AS_MKDIR_P succeeds if the destination is a symbolic link
1718         to an existing directory.
1719         (Limitations of Usual Tools): Note that mkdir -p might not
1720         succeed on symlinks to directories.
1722 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
1724         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
1725         * bin/autoheader.in: Grammar fix in message.
1726         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
1727         Test for dir before calling mkdir -p.  (trivial changes)
1729 2004-01-13  Eric Blake  <ebb9@byu.net>
1731         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
1732         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
1734 2004-01-10  Jim Meyering  <jim@meyering.net>
1736         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
1738 2004-01-09  Paul Eggert  <eggert@twinsun.com>
1740         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
1741         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
1742         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
1743         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
1744         AC_COMPILE_IFELSE, since we now assume our caller invokes
1745         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
1746         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
1747         of AC_RUN_IFELSE; this avoids the warning mentioned above.
1748         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
1750 2004-01-07  Paul Eggert  <eggert@twinsun.com>
1752         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
1753         `"'...'"`, as it's confusing (and I suspect it may not work on
1754         some platforms).  The code was incorrect anyway, as it assumed
1755         that \$ evaluated to itself in that context.  Reported by
1756         Alexandre Duret-Lutz.
1758 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
1760         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
1761         and _LT_AC_TAGCONFIG.
1763 2004-01-06  Paul Eggert  <eggert@twinsun.com>
1765         * doc/autoconf.texi (One Macro Call): Fix an incorrect
1766         example, and add more examples.  Reported by Eric Sunshine.
1768 2004-01-05  Paul Eggert  <eggert@twinsun.com>
1770         * doc/autoconf.texi (Limitations of Usual Tools):
1771         Remove warning against "rm -fr" introduced yesterday; it
1772         was a false alarm.
1774         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
1775         autoscan, autoupdate, ifnames): Don't use chmod -w.
1776         * lib/Makefile.am (autom4te.cfg): Likewise.
1777         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
1778         "chmod -w".
1780 2004-01-04  Paul Eggert  <eggert@twinsun.com>
1781             Paolo Bonzini  <bonzini@gnu.org>
1783         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
1784         by doing lineno substitution only on lines containing "$LINENO".
1786 2004-01-04  Paul Eggert  <eggert@twinsun.com>
1788         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
1789         Use "rm -f" to remove conftest.sed, not plain "rm".
1790         Bug reported by David Relson in
1791         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
1793         * Makefile.am (autom4te-update):
1794         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
1795         * Makefile.maint (my-distcheck, do-po-update): Likewise.
1796         * doc/autoconf.texi (Guidelines): Likewise.
1797         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
1798         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
1799         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
1800         * lib/autotest/general.m4 (AT_INIT): Likewise.
1801         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
1802         * tests/Makefile.am (clean-local): Likewise.
1803         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
1804         srcdir): Likewise.
1805         * doc/autoconf.texi (Limitations of Usual Tools):
1806         Warn against "rm -fr".
1808 2004-01-03  Paul Eggert  <eggert@twinsun.com>
1810         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
1811         -c -o might not work.  From a suggestion by Kevin Ryde.
1812         (C Compiler, Generating Sources, Limitations
1813         of Usual Tools, Limitations of Make, Making testsuite Scripts):
1814         Don't put '-o' after non-options, as POSIX doesn't allow this.
1815         Mention that cc's name might be gcc or c89 or whatever.
1817 2004-01-04  Kevin Ryde  <user42@zip.com.au>
1819         * doc/autoconf.texi: Add various further index entries.
1821 2003-12-29  Paul Eggert  <eggert@twinsun.com>
1823         * bin/autoreconf.in (autoreconf_current_directory):
1824         Fix typo: mkdir without umask arg.
1826 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
1828         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
1829         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
1830         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
1831         explanation clearer.
1833 2003-12-24  Andreas Schwab  <schwab@suse.de>
1835         * doc/autoconf.texi (Default Includes): Fix misspelling of
1836         AC_INCLUDES_DEFAULT.
1838 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
1840         * configure.ac: Test if sh -n works.
1841         * configure: Regenerate.
1842         * tests/atlocal.in: Store the result here.
1843         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
1844         tools.at, looking in atlocal's ac_cv_sh_n_works instead
1845         of explicitly testing.
1846         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
1847         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
1848         * tests/tools.at (Syntax of the shell scripts): Simplify
1849         using AT_CHECK_SHELL_SYNTAX.
1850         (Syntax of the Perl scripts): Remove definition of
1851         AT_CHECK_PERL_SYNTAX.
1853 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
1855         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
1856         stderr to /dev/null.
1857         * bin/autoconf.in: Regenerate.
1858         * bin/wrapper.in: Regenerate.
1860 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
1862         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
1863         Extracted from AS_SHELL_SANITIZE.
1864         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
1865         macros.
1866         (AS_SHELL_SANITIZE): Move reinvocation code from
1867         _AS_LINENO_WORKS, use it to find out if shell
1868         functions work.
1869         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
1870         does not work.
1871         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
1872         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
1873         was called.
1874         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
1875         * bin/autoconf.in: Regenerate.
1876         * tests/wrapper.in: Regenerate.
1877         * tests/tools.at: Test the syntax of tests/autoconf
1878         and tests/testsuite.
1880 2003-11-24  Akim Demaille  <akim@epita.fr>
1882         * config/announce-gen (&print_locations, &print_signatures)
1883         (&sizes): New.
1884         Use them.
1885         No longer rely on Gnus to inline the list of signatures: compute
1886         them on the fly.
1888 2003-11-24  Akim Demaille  <akim@epita.fr>
1890         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
1891         override some files.
1892         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
1893         From Debian Autoconf 2.58.
1895 2003-11-24  Akim Demaille  <akim@epita.fr>
1897         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
1898         uses.
1899         From Debian Autoconf 2.58.
1901 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
1903         * TODO: Remove already done things.  Update the part about finding
1904         tools for the target.
1906 2003-11-24  Paolo Bonzini <bonzini@gnu.org>
1908         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
1909         Make wording more consistent.
1910         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
1911         Explain the transition better.
1912         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
1913         the transition better.
1915 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
1917         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
1918         parameter of AU_DEFUN.
1919         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
1920         (AU_DEFUN): Remove the third parameter, it was not used.
1921         Use AC_DEFUN directly, not AU_DEFINE.
1922         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
1923         the expanded body, consistently with other macros such as AC_USG.
1925 2003-11-17  Paul Eggert  <eggert@twinsun.com>
1927         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
1928         into the initial confdefs.h, to work around a bug in NextStep 3.3
1929         patch 3 reported by Eric Sunshine.
1931 2003-11-15  Kevin Ryde  <user42@zip.com.au>
1933         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
1934         than $target since the latter is not usual, add guidelines on when to
1935         use or not use the system type.
1937 2003-11-12  Derek Price  <derek@ximbiot.com>
1939         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
1940         typo misrepaired by an auto-spellcheck.
1942 2003-11-12  Akim Demaille  <akim@epita.fr>
1944         * bin/autoreconf.in (&parse_args): Don't call automake with
1945         --force-missing unless it actually supports it.
1946         From Debian #219336.
1948 2003-11-12  Akim Demaille  <akim@epita.fr>
1950         * configure.ac: Bump to 2.59a.
1951         Require 2.59.
1953 2003-11-06  Akim Demaille  <akim@epita.fr>
1955         Version 2.59.
1957 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
1959         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
1960         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
1961         and ac_abs_top_srcdir are absolute paths.
1962         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
1964 2003-11-05  Akim Demaille  <akim@epita.fr>
1966         * configure.ac: Bump to 2.58a.
1968 2003-11-05  Kevin Ryde  <user42@zip.com.au>
1970         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
1971         it provokes a warning from makeinfo about looking like a cross
1972         reference in info output.
1974         * doc/autoconf.texi (Function Portability): Add notes on signal
1975         handler return type, as per AC_TYPE_SIGNAL.
1977 2003-11-04  Akim Demaille  <akim@epita.fr>
1979         Version 2.58.
1980         * doc/standards.texi: Update from master.
1982         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
1984 2003-11-04  Akim Demaille  <akim@epita.fr>
1986         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
1987         computing the absolute path to d1 in the source hierarchy: it may
1988         not exist at all.  So don't cd into it.
1989         From Alexandre Duret-Lutz.
1990         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
1992         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
1993         From Paul Eggert, but named after Perl's IO::Spec->catfile.
1994         * doc/autoconf.texi (Programming in M4sh): Document.
1995         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
1997 2003-11-03  Pavel Roskin  <proski@gnu.org>
1999         * doc/autoconf.texi (Generic Structure Checks): Describe
2000         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
2002 2003-10-31  Akim Demaille  <akim@epita.fr>
2004         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
2005         (GNU Fortran): New.
2006         * doc/autoconf.texi (Language Choice): Document.
2007         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
2008         the current language is Fortran.
2010 2003-10-31  Akim Demaille  <akim@epita.fr>
2012         * bin/autom4te.in (&freeze): Use a less likely warning separator
2013         than `\n\n', so that `\n\n\n' is valid in warnings.
2014         Reported by Steve Huston.
2016 2003-10-28  Akim Demaille  <akim@epita.fr>
2018         * Makefile.cfg (local_updates, executable-update): Tweak to be
2019         robust to parallel makes.
2020         Suggested by Alexandre Duret-Lutz.
2022 2003-10-27  Akim Demaille  <akim@epita.fr>
2024         * Makefile.cfg (executable-update): New.
2025         (local_updates): Call it.
2027 2003-10-27  Akim Demaille  <akim@epita.fr>
2029         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
2030         Don't remove core.* as it may remove valid user files.
2031         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
2032         (AC_FUNC_UTIME_NULL): Likewise.
2034 2003-10-23  Akim Demaille  <akim@epita.fr>
2036         Version 2.57g.
2037         * config/config.guess, config/config.sub: Upgrade from masters.
2039 2003-10-23  Akim Demaille  <akim@epita.fr>
2041         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
2042         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
2043         hand...
2045 2003-10-23  Akim Demaille  <akim@epita.fr>
2047         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
2048         Don't forget to remove conftest.err.
2050 2003-10-23  Akim Demaille  <akim@epita.fr>
2052         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
2053         same object file in $LIBOBJS.
2054         Reported by Alexandre Duret-Lutz & Derek Robert Price.
2055         * doc/autoconf.texi (Generic Functions): Adjust.
2057 2003-10-20  Paul Eggert  <eggert@twinsun.com>
2059         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
2060         Use 'eval', so that the resulting configure scripts work even if
2061         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
2063 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
2065         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
2066         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
2067         (_AC_LINK_IFELSE): Check the werror flag.
2068         * doc/autoconf.texi (Generic Compiler Characteristics): Document
2069         AC_LANG_WERROR.
2070         * NEWS: Mention it.
2072 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
2074         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
2075         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
2076         override AC_LINK_IFELSE.
2078 2003-10-15  Paul Eggert  <eggert@twinsun.com>
2080         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
2081         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
2082         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
2083         Mention /usr/dt/bin/dtksh on Solaris.
2084         (Shell Substitutions): Warn about $((...)).
2085         (Parentheses): New section.
2087 2003-10-15  Kevin Ryde  <user42@zip.com.au>
2089         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
2090         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
2092 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2094         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
2095         cross test.
2097 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
2099         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
2100         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
2102 2003-10-10  Andreas Schwab  <schwab@suse.de>
2104         * bin/autoheader.in: Avoid empty first line in --version and
2105         --help output.
2106         * bin/ifnames.in: Likewise.
2108 2003-10-09  Paul Eggert  <eggert@twinsun.com>
2110         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
2111         Issue a more-informative diagnostic.
2112         Problems reported by Eric Sunshine.
2114 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
2116         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
2117         -mGLOB_options_string stuff for Intel ifc, which can cause
2118         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
2119         pattern-matching instead of grep.
2121 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
2123         * doc/autoconf.texi: Document new FC Fortran macros.
2125 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
2127         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
2128         that future autopoint/aclocal/automake/autoreconf will be able
2129         to trace to find where to install local m4 macros.
2130         * doc/autoconf.texi (Input): Document it.
2131         * NEWS: Updated.
2133 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
2135         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
2136         -lcrtbegin.o to list of ignored flags and fix underquoting of
2137         -lcrt[01].o.
2139 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
2141         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
2142         cache variable instead of $G77 to decide whether to include -O2,
2143         since $G77 is specific to Fortran 77.
2145 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
2147         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
2148         free" flag.  Re-order flags tested into rough order of popularity.
2150 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
2152         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
2153         arguments so that it can be used with syntax identical to
2154         AC_PROG_F77, and so that we can more easily decide to
2155         remove/deprecate the DIALECT optional argument in the future if it
2156         proves troublesome.
2157         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
2158         non-freeform-supporting compilers.  Document freeform flags.
2160 2003-10-03  Akim Demaille  <akim@epita.fr>
2162         * configure.ac: Look for emacs, not macs.
2163         Reported by Eric Sunshine.
2165 2003-10-03  Akim Demaille  <akim@epita.fr>
2167         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
2168         * bin/autoreconf.in (autoreconf_current_directory): Create the
2169         AUX_DIR if needed, for sake of automake --add-missing etc.
2170         Suggested by Alexandre Duret-Lutz.
2172 2003-10-03  Akim Demaille  <akim@epita.fr>
2174         * configure.ac: Quotation and formatting changes.
2175         (EMACS): Don't set it if it is not recent enough to support
2176         autoconf-mode.el.
2177         From Eric Sunshine.
2179 2003-10-02  Akim Demaille  <akim@epita.fr>
2181         * bin/ifnames.in (&scan_file): Skip C++ comments.
2182         From Jeremy Yallop.
2184 2003-10-01  Pavel Roskin  <proski@gnu.org>
2186         * doc/autoconf.texi (Particular Structure Checks):
2187         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
2189 2003-10-01  Akim Demaille  <akim@epita.fr>
2191         Version 2.57f.
2193 2003-09-30  Paul Eggert  <eggert@twinsun.com>
2195         * lib/Autom4te/XFile.pm: Use Errno.
2196         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
2197         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
2199 2003-09-30  Akim Demaille  <akim@epita.fr>
2201         * config/announce-gen (&print_news_deltas): Extracted from...
2202         (&print_changelog_deltas): here.
2203         (&news_file): Rename as...
2204         (@news_file): this.
2206 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
2208         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
2209         have been created when invoking the compiler.
2210         * tests/fortran.at (GNU Fortran 77): Quote $G77.
2212 2003-09-29  Akim Demaille  <akim@epita.fr>
2214         Version 2.57e.
2216         * config/mkinstalldirs: Upgrade.
2218 2003-09-28  Paul Eggert  <eggert@twinsun.com>
2220         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
2221         Problem reported by Lars J. Aas in
2222         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
2223         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
2224         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
2225         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
2227 2003-09-26  Akim Demaille  <akim@epita.fr>
2229         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
2230         directory for AC_CONFIG_COMMANDS' first argument exists.
2231         This makes valid the invocation of _AC_SRCPATH that follows.
2232         Reported by Eric Sunshine.
2233         * doc/autoconf.texi (Configuration Commands): Adjust.
2235 2003-09-26  Akim Demaille  <akim@epita.fr>
2237         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
2238         Reported by Ralf Corsepius.
2240 2003-09-26  Akim Demaille  <akim@epita.fr>
2242         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
2243         arguments.
2244         Actually, use AU_ALIAS.
2245         From Bruno Haible.
2247 2003-09-26  Paul Eggert  <eggert@twinsun.com>
2249         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
2250         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
2251         Problem reported by Eric Sunshine in:
2252         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
2254 2003-09-26  Akim Demaille  <akim@epita.fr>
2256         The test suite are sometimes assigning timings incorrectly.
2257         Reported by Henk Krus.
2258         Diagnosed by Nicolas Joly.
2260         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
2261         AT_help_all.
2262         Instead of making AT_help a sequence of assignments to grow
2263         $at_help_all, just make AT_help_all be the growing contents of
2264         $at_help_all, and make a single assignment in...
2265         (AT_INIT): here.
2266         (at_times_skip): Flip the meaning and rename as...
2267         (at_times_p): this.
2268         (AT_INIT): When summarizing the test that ran, remove
2269         $at_times_file after use, and check it is present before trying to
2270         use it.
2272 2003-09-25  Akim Demaille  <akim@epita.fr>
2274         Version 2.57d.
2276         * bin/Makefile.am (edit): Handle '@configure_input@'.
2277         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
2278         (ifnames): chmod -w.
2279         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
2280         executables, not bin/ executables!  Otherwise all the magic needed
2281         to find non installed files is turned off.  This caused a failure
2282         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
2283         as found in its environment (sent by tests/autoreconf): pointing
2284         to bin/autom4te that could not find its files.
2285         * tests/mktests.sh: Force the replacement of generated files, for
2286         the sake of "mv" program that are interactive when overwriting a
2287         -w file.
2288         * config/install-sh: Upgrade from CVS Automake.
2290 2003-09-23  Paul Eggert  <eggert@twinsun.com>
2292         * doc/autoconf.texi (Limitations of Builtins): Document test -h
2293         versus test -L issues.
2295 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
2296             Paul Eggert <eggert@twinsun.com>
2298         Trivial change to support GCC's configuration procedure.
2299         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
2300         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
2301         about inconsistency if the preprocessor is set to give errors for
2302         any warning.
2303         * doc/autoconf.texi (C Compiler Characteristics): Document this.
2305 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
2307         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
2308         and XFile.pm from Automake.
2309         * lib/Autom4te/XFile.pm: Update from Automake.
2311 2003-09-12  Akim Demaille  <akim@epita.fr>
2313         Version 2.57c.
2315 2003-09-12  Akim Demaille  <akim@epita.fr>
2317         * config/config.guess, config/config.sub, config/missing,
2318         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
2319         from masters.
2321 2003-09-12  Akim Demaille  <akim@epita.fr>
2323         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
2324         not asm/types.h.
2326 2003-09-11  Akim Demaille  <akim@epita.fr>
2328         * doc/autoconf.texi (Header Portability): linux/random.h.
2329         From Peter Hendrickson.
2331 2003-09-10  Akim Demaille  <akim@epita.fr>
2333         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
2334         willing to edit the output files.
2336 2003-09-10  Akim Demaille  <akim@epita.fr>
2338         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
2339         and AC_FC_FREEFORM.
2340         * tests/mktests.sh: Skip AC_FC_SRCEXT.
2341         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
2343 2003-09-09  Akim Demaille  <akim@epita.fr>
2345         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
2346         Reported by Gary Vaughan.
2347         * bin/autom4te.in (handle_m4): Likewise.
2349 2003-09-09  Akim Demaille  <akim@epita.fr>
2351         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
2352         trailing files.
2354 2003-09-07  Paul Eggert  <eggert@twinsun.com>
2356         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
2357         Improve the accuracy of the wording about obsolescence.
2358         From a suggestion by Ian Lance Taylor in
2359         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
2361 2003-09-05  Paul Eggert  <eggert@twinsun.com>
2363         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
2364         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
2366 2003-09-04  Akim Demaille  <akim@epita.fr>
2368         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
2369         AC_FUNC_WAIT3.
2371 2003-09-04  Akim Demaille  <akim@epita.fr>
2373         * bin/autom4te.in: Use &fatal where more appropriate than &error.
2374         (freeze): When exiting, use $exit_code.
2375         * lib/autoconf/fortran.m4: Comment changes.
2377 2003-09-04  Akim Demaille  <akim@epita.fr>
2379         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
2381 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
2383         Add support for newer Fortran dialects.  The F77 interface is
2384         unchanged, and continues to support Fortran 77.  New FC macros
2385         correspond to all the old F77 macros, with output variables FC,
2386         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
2387         available dialect, but older dialects can be specified.  There are
2388         new macros AC_FC_SRCEXT to set the source extension, and
2389         AC_FC_FREEFORM to accept free-form source files.
2391         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
2392         New macros.
2393         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
2394         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
2395         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
2396         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
2397         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
2398         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
2399         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
2400         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
2401         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
2402         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
2403         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
2404         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
2405         AC_FC_SRCEXT, AC_FC_FREEFORM):
2406         New macros.
2407         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
2408         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
2409         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
2410         Rewrite in terms of the above.
2411         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
2412         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
2413         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
2414         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
2416 2003-09-02  Paul Eggert  <eggert@twinsun.com>
2418         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
2419         Document problems with timestamp resolution that 'make', 'cp -p', and
2420         'touch -r' have.
2422 2003-08-27  Akim Demaille  <akim@epita.fr>
2424         * tests/m4sugar.at (cross_warning): Make sure to enable the
2425         output, so that we can track spurious m4sugar output.
2426         * tests/local.at: Require 2.57.
2427         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
2428         are defaulted by AT_CHECK anyway.
2429         Use AT_CHECK_AUTOM4TE.
2430         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
2431         missing dnl.
2433 2003-08-27  Akim Demaille  <akim@epita.fr>
2435         * bin/autoheader.in: Issue the "Using auxiliary..." message only
2436         when -Wobsolete is set.
2437         Set it on by default.
2438         Suggested by Klee Dienes.
2440 2003-08-27  Akim Demaille  <akim@epita.fr>
2442         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
2443         documentation.
2444         From Guido Draheim.
2446 2003-08-26  Akim Demaille  <akim@epita.fr>
2448         * doc/autoconf.texi (Output): Make clear that one can run code
2449         after AC_OUTPUT.
2451 2003-08-25  Akim Demaille  <akim@epita.fr>
2453         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
2454         CVS Bison.
2456 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
2458         * bin/autoreconf.in (parse_args): Do not pass --no-force to
2459         Automake versions prior to 1.8.
2461 2003-08-25  Akim Demaille  <akim@epita.fr>
2463         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
2464         From Ville Karaila.
2466 2003-08-24  Akim Demaille  <akim@epita.fr>
2468         * configure.ac: Bump to 2.57c.
2470 2003-08-22  Akim Demaille  <akim@epita.fr>
2472         Version 2.57b.
2474         * Makefile.cfg (local-checks-to-skip): New.
2475         * Makefile.maint (local-check): Rename as...
2476         (local-checks-available): this.
2477         (local-check): New.
2479         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
2480         * configure.ac: Require Automake 1.7.6.
2482 2003-08-22  Akim Demaille  <akim@epita.fr>
2484         Output stack traces in warnings.
2486         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
2487         Replace the former...
2488         (m4_warn): Pass the call stack to _m4_warn.
2489         * bin/autom4te.in: Adjust to output the call stack.
2490         * tests/m4sugar.at (m4@&t@_warn): Adjust.
2492 2003-08-22  Akim Demaille  <akim@epita.fr>
2494         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
2495         * bin/autom4te.in: Adjust.
2497 2003-08-21  Akim Demaille  <akim@epita.fr>
2499         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
2500         (&verbose): Remove.
2501         (&getopt): Adjust the note and verb channels, depending upon
2502         --verbose.
2503         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
2504         * bin/autoupdate.in: Adjust.
2505         Use &verb, not &verbose.
2507 2003-08-21  Akim Demaille  <akim@epita.fr>
2509         * bin/autoheader.in (&parse_args): Use &parse_warnings and
2510         &parse_WARNINGS.
2511         ($help): Use Autom4te::ChannelDefs::usage.
2512         * bin/autoscan.in: Use Autom4te::ChannelDefs.
2513         * lib/Autom4te/General.pm: Don't export error: you don't own it.
2515 2003-08-21  Akim Demaille  <akim@epita.fr>
2517         First stab at preserving warnings between calls to autom4te,
2518         including when the cache is used.
2520         There are still several issues: (i) there are too many runs of m4
2521         (one for include, one for warnings, and some more), (ii) warnings
2522         spreading on several lines are not handled gracefully, (iii) the
2523         code meant to have the call stack display for errors does not work
2524         (its handling should move from m4 to autom4te).
2526         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
2527         Use them.
2528         (@preselect): Add m4_warn.
2529         ($exit_status): Remove, use $exit_code.
2530         ($help): Use Autom4te::ChannelDefs::usage.
2531         (&handle_m4): No longer define the m4_warnings.
2532         At each run, extract and report the warnings.
2533         Always cache the result, including if the exit status is on
2534         failure, since if nothing changes, we should result in the same
2535         failure, hence we can use the cache.
2536         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
2537         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
2538         Remove.
2539         (m4_warn): Redefine as a do-nothing: it is its invocation that
2540         matters, as warnings are now reported via traces.
2541         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
2542         the contents of m4_warn: make it _call_ m4_warn, so that tracing
2543         the latter reveals calls to the former.
2545         Adjust the tests.
2547         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
2549 2003-08-21  Akim Demaille  <akim@epita.fr>
2551         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
2552         Use them.
2554 2003-08-21  Akim Demaille  <akim@epita.fr>
2556         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
2557         forward order.
2558         * lib/Autom4te/ChannelDefs.pm: Doc typos.
2559         (&parse_warnings): Accept a list of warning requests.
2560         (&usage): Return a string, not a side effect.
2561         (cross): New warning category.
2563 2003-08-21  Akim Demaille  <akim@epita.fr>
2565         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
2566         (&require_configure_ac): Accept an optional directory argument.
2567         ($configure_ac): Remove.
2568         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
2569         (&catfile): Remove.
2570         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
2571         * bin/autoscan.in: Adjust.
2573 2003-08-20  Akim Demaille  <akim@epita.fr>
2575         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
2576         Reported by Alexandre Duret-Lutz.
2578 2003-08-20  Akim Demaille  <akim@epita.fr>
2580         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
2581         * bin/autom4te: Adjust.
2582         In particular, be Autoconf tools are really silent when properly
2583         working, bind the verbosity of the 'note' channel to $verbose.
2584         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
2585         (&xsystem, &contents): Remove, since they are exported by...
2586         * lib/Autom4te/FileUtils.pm: this.
2587         More perldoc.
2588         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
2589         * lib/Autom4te/FileUtils.pm: here.
2591 2003-08-20  Akim Demaille  <akim@epita.fr>
2593         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
2594         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
2595         from CVS Automake.
2597 2003-08-20  Akim Demaille  <akim@epita.fr>
2599         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
2600         (autom4te-update): New.
2601         * Makefile.cfg (update): Bind autom4te-update.
2603 2003-08-19  Derek Price  <derek@ximbiot.com>
2605         * lib/autotest/general.m4: Comment various HELP_* diversions.
2606         (PARSE_ARGS_BEGIN): New section for option parsing related
2607         initialization.
2608         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
2609         package specific options and associated help.
2611 2003-08-19  Akim Demaille  <akim@epita.fr>
2613         * config/announce-gen, Makefile.cfg: New.
2614         * Makefile.am: Adjust.
2615         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
2617 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
2619         * lib/autom4te.in (Automake-preselections): Preselect
2620         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
2621         and m4_sinclude.
2623 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
2625         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
2626         (Autoconf-without-aclocal-m4): ... this new language.
2627         * doc/autoconf.texi (autom4te Invocation): Mention
2628         Autoconf-without-aclocal-m4.
2630 2003-08-18  Derek Price <derek@ximbiot.com>
2632         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
2633         RUN-IF-PASS optional arguments.
2635 2003-08-18  Derek Price  <derek@ximbiot.com>
2637         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
2639 2003-08-16  Derek Price  <derek@ximbiot.com>
2641         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
2642         STDOUT & STDERR arguments.
2644 2003-08-14  Derek Price  <derek@ximbiot.com>
2646         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
2647         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
2648         shorter column three.  Add DESCRIPTION to log file content.
2650 2003-08-13  Derek Price  <derek@ximbiot.com>
2652         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
2653         output.
2655 2003-08-12  Derek Price  <derek@ximbiot.com>
2657         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
2658         (AT_CHECK_NOESCAPE): Move core functionality to...
2659         (_AT_CHECK): ...this new macro.
2661 2003-08-07  Derek Price  <derek@ximbiot.com>
2663         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
2664         (AT_CHECK_NOESCAPE): ...to this new macro.
2666 2003-07-31  Paul Eggert  <eggert@twinsun.com>
2668         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
2669         in Bash 2.01.  Problem reported by Brian Gough in
2670         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
2672 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
2674         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
2675         -lcrt1.o, for OS X.  (trivial change)
2677 2003-07-07  Paul Eggert  <eggert@twinsun.com>
2679         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
2680         inside '#ifndef __cplusplus'.  Problem reported by
2681         Bob Friesenhahn.
2683 2003-07-06  Bill Clarke  <llib@computer.org>
2685         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
2686         'long', not 'int', for benefit of Sun's recent C++ compilers
2687         (trivial change).  See:
2688         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
2689         (This really should be 'intptr_t', not 'long', but that would
2690         take more work.)
2692 2003-06-25  Akim Demaille  <akim@epita.fr>
2694         * lib/Makefile.am (autom4te.cfg): Make it read only.
2695         Depend on Makefile since it contains substitutions.
2696         From Paolo Bonzini.
2697         * lib/autom4te.in (args): Add local.at? for Autotest args.
2698         This change was made on autom4te.cfg which is generated.
2699         Reported by Raja R. Harinath.
2701 2003-06-25  Akim Demaille  <akim@epita.fr>
2703         * doc/autoconf.texi (Header Portability): sys/mount.h.
2704         From Gareth McCaughan.
2706 2003-06-23  Akim Demaille  <akim@epita.fr>
2708         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
2709         not all of them.  This fixes 1. the fact that when testing
2710         Autoconf there are many many config.log, 2. the incorrect use of
2711         top_srcdir to find config.log.
2712         Don't mix the detailed output of failed test with the summary of
2713         failures.  Rather, append detailed log afterwards.
2715 2003-06-23  Akim Demaille  <akim@epita.fr>
2717         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
2718         always run: output config.log on $at_group_log.
2720 2003-06-23  Akim Demaille  <akim@epita.fr>
2722         * tests/torture.at (#define header templates): Don't use quotes in
2723         C++ comments as it puzzles Emacs' sh font-lock-mode.
2725 2003-06-23  Akim Demaille  <akim@epita.fr>
2727         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
2728         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
2729         * tests/atspecific.m4: Rename as...
2730         * tests/local.at: This.
2731         * tests/suite.at: Move the globals into...
2732         * tests/local.at: here.
2733         * tests/Makefile.am: Adjust.
2734         * doc/autoconf.texi (testsuite Scripts): Adjust.
2736 2003-06-21  Kevin Ryde  <user42@zip.com.au>
2738         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
2739         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
2740         ensuring we add -std1 for full-ANSI.
2742         * doc/autoconf.texi (hdrindex): New macro.
2743         Add index entries for portability of various standard header files.
2745 2003-06-20  Akim Demaille  <akim@epita.fr>
2747         * configure.ac: Bump to 2.57b.
2749 2003-06-20  Akim Demaille  <akim@epita.fr>
2751         Version 2.57a.
2753 2003-06-20  Akim Demaille  <akim@epita.fr>
2755         * bin/autom4te.in: Don't rely on $HOME being defined.
2756         Reported by Marc Espie as PR/233.
2758 2003-06-20  Akim Demaille  <akim@epita.fr>
2760         * lib/autotest/general.m4: Use at_times_file only if used.
2761         From Nicolas Joly.
2763 2003-06-20  Akim Demaille  <akim@epita.fr>
2765         * config/config.guess, config/config.sub, config/elisp-comp,
2766         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
2767         Update from masters.
2769 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
2771         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
2772         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
2773         (TEST_SCRIPT): New diversion.
2774         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
2775         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
2776         (AT_INIT): Support for expected failures.
2778 2003-06-02  Akim Demaille  <akim@epita.fr>
2780         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
2781         changes.
2782         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
2783         Autoconf nor Automake.
2784         (&contents): New, from Automake.
2785         PODify.
2787 2003-05-28  Paul Eggert  <eggert@twinsun.com>
2789         * NEWS, doc/autoconf.texi (Particular Functions),
2790         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
2791         is the inverse of localtime.
2793 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
2795         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
2796         (handle_exec_errors): New function.  Work around $! being
2797         altered by WEXITSTATUS.
2798         (xqx, xsystem): Use handle_exec_errors.
2800 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
2802         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
2803         Do not call `_exit()', simply modify `$?'.
2804         (xsystem): Reset $! before running system, and check it afterward.
2805         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
2806         63 for version mismatches.
2808 2003-05-23  Akim Demaille  <akim@epita.fr>
2810         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
2811         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
2812         the middle of a line).
2813         * lib/m4sugar/m4sugar.m4: Likewise.
2814         Remove useless spaces in comments.
2816 2003-05-23  Akim Demaille  <akim@epita.fr>
2818         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
2819         exit 63, so that we (or Automake's "missing") can tell the
2820         difference with a plain failure.
2821         * doc/autoconf.texi (Notices): Adjust.
2823 2003-05-23  Akim Demaille  <akim@epita.fr>
2825         * Makefile.am, bin/Makefile.am, config/Makefile.am,
2826         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
2827         White spaces cleanup.
2829 2003-05-22  Jim Meyering  <jim@meyering.net>
2830             Paul Eggert <eggert@twinsun.com>
2832         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
2833         Remove `#include <stdlib.h>' from the list; we should never
2834         make confdefs.h include <stdlib.h> or <cstdlib>, because the
2835         resulting namespace pollution would cause other tests to fail.
2836         Configure scripts run with some older versions of g++ and HP's
2837         aCC would fail due to such an #include.  Problems reported by
2838         Matthew Mueller in <http://bugs.debian.org/120704> and by
2839         Keith Bostic in
2840         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
2841         In the test, use the test declaration before including <stdlib.h>,
2842         as that's closer to how it'll be used.
2844 2003-05-23  Akim Demaille  <akim@epita.fr>
2846         * doc/autoconf.texi (Header Portability): ucred.h.
2847         From Ian Redfern.
2849 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
2851         Overhaul Autotest's logging: generate separate log files
2852         in testsuite.dir/NNN/testsuite.log, and append them to
2853         testsuite.log instead of re-running the test verbosely.
2855         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
2856         file descriptor, write 0 to at_status_file instead of setting
2857         at_status=0, initialize some new variables (at_status_file,
2858         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
2859         to rerun the tests, instead append the at_group_log to the
2860         at_suite_log when a test fails.
2861         (AT_SETUP): pipe the test case's output into at_tee_pipe,
2862         with the AS_MESSAGE_LOG_FD redirected to stdout.
2863         (AT_CLEANUP): save the output status in $at_status_file
2864         and restore it, redirect the AS_MESSAGE_LOG_FD back to
2865         its original place.
2866         (AT_CHECK): since tests are run with a redirected stdout,
2867         and used to be re-run in verbose mode, turn some $at_verbose
2868         into echo, and don't redirect the output of testing stdout
2869         and stderr.
2871         * lib/autotest/autoconf.texi (testsuite Scripts): Update
2872         the name of the debugging directory and information about
2873         its contents.
2875 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
2877         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
2878         parameter.
2880 2003-05-22  Akim Demaille  <akim@epita.fr>
2882         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
2883         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
2884         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
2885         * lib/autoconf/status.m4: Fix and adjust copyright notices.
2887 2003-05-22  Akim Demaille  <akim@epita.fr>
2889         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
2890         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
2891         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
2892         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
2893         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
2894         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
2895         * lib/autoconf/status.m4, lib/autoconf/types.m4,
2896         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
2897         * tests/atspecific.m4, tests/base.at, tests/compile.at,
2898         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
2899         * tests/tools.at, tests/torture.at:
2900         Whitespace clean up.
2901         Suggested by Jim Meyering.
2903 2003-05-22  Akim Demaille  <akim@epita.fr>
2905         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
2906         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
2907         Reported by Jim Meyering.
2909 2003-05-22  Akim Demaille  <akim@epita.fr>
2911         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
2912         Add AC_HELP_STRING  to the obsolete macros section.
2913         Typos.
2914         Use '@.' for sentences that ended in a capital letter.
2915         From Art Haas.
2917 2003-05-22  Akim Demaille  <akim@epita.fr>
2919         * config/config.guess, config/config.sub, config/elisp-comp,
2920         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
2921         * config/texinfo.tex, doc/standards.texi: Update from masters.
2923 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
2925         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
2926         it to eval.
2928 2003-05-21  Akim Demaille  <akim@epita.fr>
2930         * bin/autoupdate.in ($m4): Fix quotation.
2931         Reported by Martin Mokrejs.
2933 2003-05-19  Paul Eggert  <eggert@twinsun.com>
2935         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
2936         Remove non-ASCII characters.
2938 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
2940         * tests/semantics.at (AC_SEARCH_LIBS): New test.
2941         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
2942         AC_CHECK_HEADERS_NEW): New tests.
2944 2003-05-17  Akim Demaille  <akim@epita.fr>
2946         * lib/autoconf/functions.m4: Use the default includes so that
2947         memcmp be declared before being tested.
2948         Reported by Sander Niemeijer.
2949         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
2950         * doc/autoconf.texi (Default Includes): Document
2951         AC_INCLUDES_DEFAULT.
2953 2003-05-17  Akim Demaille  <akim@epita.fr>
2955         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
2956         * doc/autoconf.texi (Obsolete Macros): Adjust.
2957         Reported by Werner LEMBERG and Debian Bug 190886.
2959 2003-05-16  Akim Demaille  <akim@epita.fr>
2961         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
2962         user name space clashes.
2963         Reported by Bruno Haible.
2965 2003-05-16  Akim Demaille  <akim@epita.fr>
2967         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
2968         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
2969         them uniform, and more robust to Perl special characters.
2970         Reported by Martin Mokrejs.
2972 2003-05-14  Akim Demaille  <akim@epita.fr>
2974         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
2976 2003-05-14  Akim Demaille  <akim@epita.fr>
2978         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
2979         linux/irda.h.
2981 2003-05-12  Akim Demaille  <akim@epita.fr>
2983         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
2984         message.
2985         From Matthias Andree.
2987 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2989         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
2990         and truncate.
2992 2003-05-06  Akim Demaille  <akim@epita.fr>
2994         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
2995         longer updates aclocal.m4 if useless, (ii) if a file m4_included
2996         by aclocal.m4 is changed it might require the importing of another
2997         m4 extension file, i.e., aclocal must be run.
2999         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
3000         (&parse_args): Use --force with aclocal if required and supported.
3001         (&autoreconf_current_directory): Use &run_aclocal.
3003 2003-05-06  Akim Demaille  <akim@epita.fr>
3005         Lock autom4te's cache.
3007         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
3008         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
3009         argument instead of a file name, so that the request file remains
3010         open during the whole autom4te run.
3011         ($icache_file): New.
3012         (&freeze): Lock the $icache_file.
3014 2003-04-29  Derek Price  <derek@ximbiot.com>
3016         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
3017         seperator with m4_append_uniq().  It doesn't work.
3018         (AT_CLEANUP): Add `;' to end of at_help_all.
3019         (AT_INIT): Allow --keywords to be specified more than once.  When
3020         grepping $at_help_all for keywords, use the field and keyword
3021         seperators to ensure a complete keyword match.  Alter at_prev handling
3022         to support the new --keywords behavior.
3024 2003-04-27  Karl Berry  <karl@freefriends.org>
3026         * doc/autoconf.texi: Make the dir entries in the autoconf manual
3027         align better with others.  I also made some of the individual
3028         entries on one line, for brevity and to make it easier for me to
3029         sort my dir-example file in the Texinfo distribution :).
3031 2003-04-12  Jim Meyering  <jim@meyering.net>
3033         * NEWS: Mention the new macro.
3034         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
3035         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
3036         * tests/c.at: Test AC_C_RESTRICT.
3037         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
3039 2003-04-08  Akim Demaille  <akim@epita.fr>
3041         * bin/ifnames.in: Skip C++ comments.
3042         From Jeremy Yallop.
3044 2003-04-08  Akim Demaille  <akim@epita.fr>
3046         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
3047         From Ilya Zakharevich.
3049 2003-04-08  Akim Demaille  <akim@epita.fr>
3051         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
3052         net/if.h, stdlib.h.
3054 2003-04-01  Derek Price  <derek@ximbiot.com>
3056         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
3057         from Akim's checkin of 2003-03-29.
3059 2003-04-01  Derek Price  <derek@ximbiot.com>
3061         * tests/torture.at (Configuring subdirectories): Add missing
3062         close-quote for Akim's change from 2003-03-28.
3064 2003-04-01  Akim Demaille  <akim@epita.fr>
3066         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
3067         (AC, AT, MS): these.
3068         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
3069         New.
3070         Use them.
3071         * doc/Makefile.am (CLEANFILES): Adjust.
3072         (TEXI2DVI): Make it --batch.
3074 2003-03-31  Derek Price  <derek@ximbiot.com>
3076         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
3077         which removed the main loop.
3078         Thanks to Akim Demaille.
3080 2003-03-29  Akim Demaille  <akim@epita.fr>
3082         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
3083         that starts a GUI.
3084         From Ilya Zakharevich.
3086 2003-03-29  Akim Demaille  <akim@epita.fr>
3088         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
3089         documentation to read is Autoconf's.
3090         Suggested by Paul Eggert.
3092 2003-03-28  Akim Demaille  <akim@epita.fr>
3094         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
3095         reading the section "Present But Cannot Be Compiled" when the
3096         header causes problems.
3098 2003-03-28  Akim Demaille  <akim@epita.fr>
3100         * tests/torture.at (Configuring subdirectories): Require aclocal
3101         1.4, otherwise the test fails, as it does support configure.ac.
3102         This fixes the "test 40 failed" bug reports.
3104 2003-03-28  Akim Demaille  <akim@epita.fr>
3106         * doc/autoconf.texi (C Compiler): `#line' portability.
3107         From Paul Eggert and Nelson H. F. Beebe.
3109 2003-03-27  Derek Price  <derek@ximbiot.com>
3111         * lib/autotest/general.m4: Eliminate main loop and reorganize test
3112         layout in order to allow scripting around test groups.
3114 2003-03-27  Derek Price  <derek@ximbiot.com>
3116         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
3117         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
3118         use new diversions in preparation for accepting new arguments and
3119         allowing scripting around tests.
3120         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
3122 2003-03-26  Derek Price  <derek@ximbiot.com>
3124         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
3125         obsolete AC_HELP_STRING.
3126         (AC_HELP_STRING): AU_DEFUN to...
3127         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
3128         * tests/m4sh.at (AS_HELP_STRING): New test.
3130         * tests/acgeneral.at: Regenerated.
3132 2003-03-26  Derek Price  <derek@ximbiot.com>
3134         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
3135         sense.  Verbosify the diversion definitions comment.
3137 2003-03-26  Derek Price  <derek@ximbiot.com>
3139         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
3140         AS_PREPARE.
3142 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
3144         * doc/autoconf.texi (Present But Cannot Be Compiled):
3145         Grammar fixes and minor rewording. (trivial change)
3147 2003-03-06  Paul Eggert  <eggert@twinsun.com>
3149         Work around a problem noted by Nelson H. F. Beebe with coreutils
3150         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
3151         2002/05/09) rejects '#line 32768 "configure"' because the line
3152         number overflows.
3153         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
3154         #line directives.
3155         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
3156         * doc/autoconf.texi (Generating Sources): Document this.
3158 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
3160         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
3161         file name for the m4 program, when it has an "exe" file extension.
3162         DJGPP's error messages include the error code in brackets -
3163         remove the error code during normalization.
3165 2003-02-28  Akim Demaille  <akim@epita.fr>
3167         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
3169 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
3171         * doc/autoconf.texi (Limitations of Make): Remove the section
3172         about `$<' in inference rules, it was a bogus interpretation of
3173         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
3174         Tru64 make in the "target lookup" section.
3175         (Automake): Automake 1.5+ no longer requires special tools to be
3176         present on the developer's host.
3178 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
3180         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
3181         to a shell that can handle redirection or quoting correctly.
3182         Override SHELL with the shell detected by configure.
3183         Use of $^O suggested by Tim van Holder.
3184         * bin/autom4te.in (BEGIN): Likewise.
3185         * bin/autoreconf.in (BEGIN): Likewise.
3186         * bin/autoscan.in (BEGIN): Likewise.
3187         * bin/autoupdate.in (BEGIN): Likewise.
3188         * bin/ifnames.in (BEGIN): Likewise.
3190         * bin/ifnames.in: Add final newline to help and version messages.
3192         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
3193         to cope with DOS-style absolute paths, when constructing
3194         ${ac_make}.
3196         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
3197         When constructing paths with IFS=:, quote the path. If we're
3198         constructing a DOS-style absolute path, we don't want to split it
3199         on the colon.
3201         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
3202         in description.
3204 2003-02-25  Pavel Roskin  <proski@gnu.org>
3206         * bin/autoheader.in: Add missing newline when printing
3207         suggestion how change AC_DEFINE call.
3209 2003-02-24  Paul Eggert  <eggert@twinsun.com>
3211         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
3212         2002-09-01 patch by replacing "test -n" with "test -z".
3213         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
3214         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
3216         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
3217         to fix a mismatch between example and discussion.
3219 2003-02-24  Kevin Ryde  <user42@zip.com.au>
3221         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
3222         format starting with "-".
3224 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
3226         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
3227         is not portable inside Makefile.
3229 2003-02-20  Akim Demaille  <akim@epita.fr>
3231         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
3232         compiler says yeah, but preproc says nope, compiler is right.
3233         Conversely, prompt the reader to send a bug report to the
3234         maintainers of the package, not of Autoconf.
3236 2003-02-20  Klee Dienes  <kdienes@apple.com>
3238         * bin/autoreconf.in (autoreconf_current_directory): Properly
3239         handle an empty aclocal.m4.
3241 2003-02-20  Akim Demaille  <akim@epita.fr>
3243         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
3244         $ac_prefix_program.
3245         From Larry Jones.
3247 2002-12-23  Paul Eggert  <eggert@twinsun.com>
3249         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
3250         innocuous variant befor including <limits.h> or <assert.h>.  This
3251         works around a bug reported by Albert Chin: HP-UX 11i
3252         (and earlier versions) have a <limits.h> that declares
3253         gettimeofday and many other functions.
3255 2002-12-03  Paul Eggert  <eggert@twinsun.com>
3257         Version 2.57.
3259         * NEWS, configure.ac: Update version.
3261         * doc/fdl.texi: Upgrade to FDL version 1.2.
3263         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
3264         nontrivially in main's body, so that f's external declaration is
3265         not optimized away in AIX.  This should fix the bug reported by
3266         Martin Frydl in
3267         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
3269         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
3270         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
3271         defined, to support freestanding compilers.  This should fix the
3272         bug reported by Momchil Velkov in
3273         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
3275         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
3276         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
3277         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
3278         by Simon Josefsson in
3279         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
3281         * Makefile.maint (www-gnu): New macro.
3282         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
3283         the location has moved.
3285 2002-12-02  Martin Frydl  <martin@systinet.com>
3287         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
3288         \(.*\) match is too long and there is something more to be checked.
3289         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
3291 2002-11-15  Akim Demaille  <akim@epita.fr>
3293         Version 2.56.
3295         * config/install-sh: chmod +x.
3296         From Paul Eggert.
3297         * config/move-if-change: Indenting changes.
3298         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
3299         * configure.ac (AM_INIT_AUTOMAKE): here.
3300         Require 1.7.1.
3302 2002-11-14  Akim Demaille  <akim@epita.fr>
3304         Version 2.55.
3306         * config/config.guess, config/config.sub, config/install-sh:
3307         Update from masters.
3309 2002-11-14  Akim Demaille  <akim@epita.fr>
3311         * Makefile.maint: Sync with Bison, i.e.:
3312         (po-check): Scan .l and .y files instead of the
3313         .c and the .h files that they generate.  This fixes the bug
3314         reported by Tim Van Holder in:
3315         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
3316         Look for N_ as well as for _.  Try to avoid matching #define for
3317         N_ and _.
3318         From Paul Eggert.
3320 2002-11-14  Akim Demaille  <akim@epita.fr>
3322         * doc/autoconf.texi (C Compiler): Compiling several files at once.
3323         From Paul Eggert and Albert Chin-A-Young.
3325 2002-11-14  Akim Demaille  <akim@epita.fr>
3327         * doc/autoconf.texi (C Compiler): Solitary backslashes.
3328         From Paul Eggert and Albert Chin-A-Young.
3330 2002-11-14  Kevin Ryde  <user42@zip.com.au>
3332         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
3333         than assigning in main, to avoid HP cc +O3 optimizing it away.
3335 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
3337         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
3338         option.  Process --recheck after parsing all options.  Pass -q
3339         option to configure on --recheck.
3340         (AC_OUTPUT): Pass -q from configure to config.status.
3341         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
3342         arguments to record.
3343         * doc/autoconf.texi (config.status Invocation): Document
3344         config.status -q option.
3346 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
3348         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
3349         Makefile.in if Makefile.am exists.
3350         (output): Strip `.am' from Makefiles.  Don't
3351         output AC_CONFIG_FILES if no Makefiles were found.
3353 2002-11-07  Akim Demaille  <akim@epita.fr>
3355         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
3356         (local_updates): New.
3357         * Makefile.maint: Update, from CVS Bison.
3358         (local_updates): New.
3360 2002-11-06  Akim Demaille  <akim@epita.fr>
3362         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
3363         declaration in extern "C" too.
3364         Reported by Roberto Bagnara.
3366 2002-11-06  Akim Demaille  <akim@epita.fr>
3368         * tests/torture.at (Configuring subdirectories): Don't use grep
3369         -w.
3370         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
3371         Reported by Ezra Peisach.
3373 2002-11-05  Akim Demaille  <akim@epita.fr>
3375         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
3376         Remove.
3377         We _have_ to stop using the old compatibility scheme that tried to
3378         avoid useless backslashes because Libtool 1.4.3 contains a
3379         AC_DEFINE([error_t], [int],
3380         [Define to a type to use for \`error_t' if it is not
3381         otherwise available.])
3382         We _have_ to quote the single quote and backslashes with \.  The
3383         old compatibility scheme saw that ` was backslashed, and therefore
3384         did not quote the single quote.  Hence before this patch, Autoconf
3385         was not compatible with Libtool.
3387 2002-11-04  Paul Eggert  <eggert@twinsun.com>
3389         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
3390         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
3391         LC_NAME, LC_PAPER, LC_TELEPHONE.
3392         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
3394 2002-11-04  Akim Demaille  <akim@epita.fr>
3396         Version 2.54c.
3398         * Makefile.maint (update, cvs-update, po-update, do-po-update):
3399         New.
3400         * config/texinfo.tex: Update.
3402 2002-11-03  Akim Demaille  <akim@epita.fr>
3404         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
3405         from...
3406         (&autoreconf): here.
3407         ($help, $make, &parse_args, &autoreconf_current_directory):
3408         Support -m/--make.
3409         * doc/autoconf.texi (autoreconf Invocation): Adjust.
3411 2002-10-31  Bruno Haible  <bruno@clisp.org>
3413         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
3414         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
3415         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
3416         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
3417         to ac_cv_func_realloc_0_nonnull.
3418         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
3420 2002-10-31  Akim Demaille  <akim@epita.fr>
3422         The test suite was no longer checking for trailing envvars and files.
3424         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
3425         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
3427 2002-10-31  Akim Demaille  <akim@epita.fr>
3429         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
3430         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
3431         Make variable, not a shell variable.
3432         Suggested by Bruno Haible.
3434 2002-10-31  Akim Demaille  <akim@epita.fr>
3436         * bin/autom4te.in (load_configuration): Reject #args out of any
3437         language.
3439 2002-10-31  Akim Demaille  <akim@epita.fr>
3441         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
3442         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
3443         (_AC_RUN_IFELSE): Use it.
3444         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
3445         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
3446         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
3447         inline it.
3449 2002-10-30  Akim Demaille  <akim@epita.fr>
3451         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
3452         * doc/autoconf.texi (autom4te Invocation): Adjust.
3453         Suggested by Tim van Holder.
3455 2002-10-29  Paul Eggert  <eggert@twinsun.com>
3457         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
3458         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
3459         Problem reported by Bruno Haible.
3461 2002-10-29  Akim Demaille  <akim@epita.fr>
3463         * doc/autoconf.texi (Header Templates): Put also in words what the
3464         pictures says to assist free style readers.
3465         (Customizing autom4te): s/--cache=/--cache /.
3467 2002-10-29  Akim Demaille  <akim@epita.fr>
3469         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
3470         sys/wait.h.
3471         sparc_address_test returns void.
3472         Use it with an argument, as prototyped.
3473         From Bruno Haible.
3475 2002-10-29  Akim Demaille  <akim@epita.fr>
3477         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
3478         configure.in, not configure.ac.
3479         Reported by Bruno Haible.
3481 2002-10-29  Akim Demaille  <akim@epita.fr>
3483         * tests/torture.at (Deep Package): New test.
3484         (Configuring subdirectories): Don't use a testSubDir as Autotest
3485         now does it itself.
3487 2002-10-29  Akim Demaille  <akim@epita.fr>
3489         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
3490         * doc/autoconf.texi (Invoking autom4te): Rename as...
3491         (autom4te Invocation): this, for consistency with the other nodes.
3493 2002-10-29  Akim Demaille  <akim@epita.fr>
3495         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
3496         Reported by Ralf Corsepius.
3498 2002-10-29  Akim Demaille  <akim@epita.fr>
3500         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
3501         characters is a back as an `obsolete' warning now.
3502         Reported by Ralf Corsepius.
3504 2002-10-28  Akim Demaille  <akim@epita.fr>
3506         * configure.ac: Bump to 2.54c.
3508 2002-10-28  Akim Demaille  <akim@epita.fr>
3510         Version 2.54b.
3512         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
3514 2002-10-28  Akim Demaille  <akim@epita.fr>
3516         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
3517         m4 executable names, and different GNU M4 version.
3518         Reported by Ezra Peisach and Paul Jarc.
3520 2002-10-27  Akim Demaille  <akim@epita.fr>
3522         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
3523         AC_RUN_IFELSE.
3525 2002-10-27  Akim Demaille  <akim@epita.fr>
3527         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
3528         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
3529         Die when a simple Fortran program cannot be compiled.
3530         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
3531         Issue a warning if no function is given.
3533 2002-10-27  Akim Demaille  <akim@epita.fr>
3535         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
3536         Move the documentation of AC_TRY_RUN to...
3537         (Obsolete Macros): here.
3538         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
3539         (autoconf Invocation): Remove the duplicates with `invoking
3540         autom4te'.
3541         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
3542         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
3544 2002-10-27  Akim Demaille  <akim@epita.fr>
3546         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
3547         and AC_LANG_FUNC_LINK_TRY.
3548         (Examining Libraries): Rename as...
3549         (Running the Linker): this.
3550         Document AC_LINK_IFELSE.
3551         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
3552         (Obsolete Macros): here.
3553         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
3554         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
3555         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
3556         * lib/autoconf/headers.m4 (AC_USG): Likewise.
3558 2002-10-27  Akim Demaille  <akim@epita.fr>
3560         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
3562         More `check config.log' messages.
3564         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
3565         * doc/autoconf.texi (Printing Messages): Document it.
3566         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
3567         appropriate.
3568         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
3569         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
3570         (_AC_COMPILER_OBJEXT): Likewise.
3571         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
3572         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
3573         Likewise.
3574         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
3575         Likewise.
3577         Deprecate macros with unusual interfaces.
3579         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
3580         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
3582         Document the new ones, and proper style.
3584         * doc/autoconf.texi (Generating Sources): New.
3585         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
3586         (Examining Declarations): Rename as...
3587         (Running the Preprocessor): this.
3588         Document AC_PREPROC_IFELSE.
3589         (Examining Syntax): Rename as...
3590         (Running the Compiler): this.
3591         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
3592         (Obsolete Macros): Move the definition of AC_TRY_CPP and
3593         AC_TRY_COMPILE here.
3595 2002-10-27  Akim Demaille  <akim@epita.fr>
3597         Move sections around.
3599         * doc/autoconf.texi (Customizing autom4te): Remove a lost
3600         sentence.
3601         Reported by Burno Haible.
3602         (Language Choice): Now the first section of...
3603         (Writing Tests): this section.
3604         Make the introduction less C-centric.
3605         (Guidelines, Test Functions): Move to...
3606         (Writing Test Programs): this new section.
3607         (Test Programs): Merge into...
3608         (Run Time): this.
3610 2002-10-27  Akim Demaille  <akim@epita.fr>
3612         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
3613         autom4te.in that resulted in the need for two `make' runs.
3615 2002-10-27  Akim Demaille  <akim@epita.fr>
3617         * configure.ac: Bump to 2.54b.
3619 2002-10-25  Akim Demaille  <akim@epita.fr>
3621         Version 2.54a.
3623         * Makefile.maint: Update from the Coreutils.
3624         (AMTAR): Remove, obsolete.
3625         (automake_repo): Update to redhat.com.
3626         (cvs_file): New.
3627         Adjust to the fact that ansi2knr is now hosted by Automake.
3628         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
3629         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
3630         Update from masters.
3631         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
3632         autoscan.pre is not to be installed, and autoscan.list is not to
3633         be shipped.
3634         (CLEANFILES): Add autoscan.list.
3635         (autoscan.list): Disable the cache.
3636         * bin/Makefile.am: Include freeze.mk.
3638 2002-10-25  Akim Demaille  <akim@epita.fr>
3640         * bin/autom4te.in (&load_configuration): Take the file as
3641         argument.
3642         (&parse_args): Handle -C, --cache.
3643         ($help): Adjust.
3644         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
3645         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
3646         * doc/autoconf.texi (Invoking autom4te): Document --cache.
3647         Now a subsection of...
3648         (Using autom4te): This new section.
3649         (Customizing autom4te): New.
3650         (autom4te.cache): Adjust.
3652 2002-10-25  Akim Demaille  <akim@epita.fr>
3654         * doc/autoconf.texi (Generic Headers): More information on how to
3655         use AC_CHECK_HEADERS.
3657 2002-10-25  Akim Demaille  <akim@epita.fr>
3659         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
3660         Space changes.
3662 2002-10-25  Akim Demaille  <akim@epita.fr>
3664         * bin/autoscan.in (output): Output AC_PREREQ.
3665         (%needed_macros): Add AC_PREREQ so that configure.ac without one
3666         be reported.
3668 2002-10-23  Akim Demaille  <akim@epita.fr>
3670         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
3671         document _Bool.
3673 2002-10-23  Akim Demaille  <akim@epita.fr>
3675         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
3676         Reported by Peter Eisentraut.
3678 2002-10-23  Akim Demaille  <akim@epita.fr>
3680         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
3681         type _Bool.
3682         Fix a typo.
3683         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
3684         Eggert's recommandations.
3686 2002-10-22  Akim Demaille  <akim@epita.fr>
3688         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
3689         Bison, by Paul Eggert.
3690         * doc/autoconf.texi (Particular Headers): Document it.
3692 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
3694         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
3695         `$ac_configure_args'.
3697 2002-10-22  Akim Demaille  <akim@epita.fr>
3699         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
3700         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
3701         From Art Haas.
3703 2002-10-22  Akim Demaille  <akim@epita.fr>
3705         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
3707         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3708         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
3709         (_AC_CHECK_HEADER_NEW): Rename as...
3710         (AC_CHECK_HEADER): this.
3712 2002-10-22  Akim Demaille  <akim@epita.fr>
3714         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
3715         words about HP-UX cmp: it was actually a user-written cmp.
3717 2002-10-22  Akim Demaille  <akim@epita.fr>
3719         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
3720         are a few warnings.
3721         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
3722         Quote for Perl '' strings, not "".
3723         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
3724         strings.
3726 2002-10-22  Akim Demaille  <akim@epita.fr>
3728         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
3729         characters is a syntax warning now.
3730         (_AS_QUOTE): Accept $2 as list of characters to quote.
3731         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
3732         Quote for Perl, not sh.
3733         * bin/autoheader.in: When $debug, report the file which is
3734         `do'ne.
3735         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
3736         `@', to tickle Perl's lists.
3737         Reported by Carlos Velasco.
3739 2002-10-18  Akim Demaille  <akim@epita.fr>
3741         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
3742         missing included files _are_ errors.
3743         Thanks to Alexandre Duret-Lutz.
3744         * tests/tools.at (autom4te cache): Adjust.
3745         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
3746         (AT_CHECK_M4SUGAR): Use it.
3747         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
3748         Adjust.
3749         * tests/tools.at (autom4te): Now it does exit 1.
3751 2002-10-17  Akim Demaille  <akim@epita.fr>
3753         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
3754         Fixes the `AC_ARG_VAR' test failures.
3755         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
3756         * lib/freeze.mk (check-forbidden-patterns): New.
3757         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
3758         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
3759         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
3760         /dev/null.
3761         Reported months ago by H. Merijn Brand.
3763 2002-10-17  Akim Demaille  <akim@epita.fr>
3765         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
3767 2002-10-16  Paul Eggert  <eggert@twinsun.com>
3769         * Makefile.maint (wget_files): Remove ansi2knr.c.
3770         (ansi2knr.c-url_prefix): Remove.
3772 2002-10-16  Akim Demaille  <akim@epita.fr>
3774         Because of caching, some files that no longer exist and are no
3775         longer required can still cause errors.
3776         Reported by Alexandre Duret-Lutz.
3778         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
3779         to frozen files in @ARGV, as @ARGV must remain being a list of
3780         files.  Rather, at M4 call sites, use this...
3781         (&files_to_options): New function.
3782         (&freeze): Use &error.
3783         (&up_to_date): If a file that was included according to the cache
3784         is no longer there, then the output is out dated.
3785         (&main): Don't even check whether a file is up to date is anyway
3786         --force is given.
3787         * tests/tools.at (autom4te cache): New.
3789 2002-10-16  Akim Demaille  <akim@epita.fr>
3791         * bin/autoconf.as: Kill dead options.
3792         * bin/autoupdate.in (&parse_args): Kill old options.
3793         * bin/autoreconf.in (&parse_args): Remove dead options.
3794         Factor some code.
3795         (&autoreconf): Report the directories we enter *and leave*, so
3796         that error messages can be easily located, and use GNU Make
3797         format, so that Emacs' compile mode understands us.
3798         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
3799         if some file was changed instead of `print'.
3800         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
3801         (&parse_args): Remove the dead options.
3802         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
3803         autoheader's quiet mode.
3804         (AT_CHECK_AUTOUPDATE): Likewise.
3805         * tests/tools.at (autoupdate): Adjust.
3806         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
3808 2002-10-11  Akim Demaille  <akim@epita.fr>
3810         No longer use CPP to check for the existing of headers: use CC to
3811         check for compilability.
3813         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
3814         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
3815         (_AC_CHECK_HEADER_NEW): Rename as...
3816         (AC_CHECK_HEADER): this.
3818         * lib/autotest/general.m4 (AT_INIT): Include the failed test
3819         numbers in the Subject suggestion.
3821 2002-10-11  Akim Demaille  <akim@epita.fr>
3823         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
3824         Suggest using AC_CHECK_DECLS instead.
3826 2002-10-11  Akim Demaille  <akim@epita.fr>
3828         * tests/torture.at (AC_ARG_VAR): Have configure report the value
3829         of `precious'.
3831 2002-10-11  Akim Demaille  <akim@epita.fr>
3833         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
3834         file name to enable parallel executions.
3835         From Sam Varshavchik.
3837 2002-10-08  Akim Demaille  <akim@epita.fr>
3839         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
3840         aclocal invocation, as Gettext macros might not be visible to
3841         aclocal.
3842         Instead of blindly running autopoint, scan configure.ac (not the
3843         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
3844         Reported by Paul D. Smith.
3846 2002-10-08  Paul Eggert  <eggert@twinsun.com>
3848         Work around problems found when POSIXLY_CORRECT=1 is set.
3849         None of this seems to have anything to do with POSIX, really,
3850         but it's how Perl getopt works.
3851         * bin/autom4te.in (parse_args): Configure GetOpt with
3852         "permute", too.
3853         * doc/autoconf.texi (Invoking autom4te):
3854         --warning -> --warnings.
3855         * lib/autom4te.in: --warning -> --warnings.
3857 2002-09-28  Akim Demaille  <akim@epita.fr>
3859         * doc/autoconf.texi (autom4te.cache): New section.
3861 2002-09-28  Akim Demaille  <akim@epita.fr>
3863         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
3864         (Automake-preselections): Update.
3865         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
3867 2002-09-28  Akim Demaille  <akim@epita.fr>
3869         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
3870         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
3871         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
3872         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
3874 2002-09-28  Akim Demaille  <akim@epita.fr>
3876         * tests/torture.at (Configuring subdirectories): Be robust to
3877         users who use config.site to require for a cache: in this case,
3878         the two last configure runs, using two different sets of
3879         arguments, trigger a legitimate error.
3881 2002-09-28  Akim Demaille  <akim@epita.fr>
3883         * tests/m4sh.at (Functions Support, Functions and return Support):
3884         New.
3886 2002-09-28  Akim Demaille  <akim@epita.fr>
3888         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
3889         autoheader are Perl programs.
3890         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
3891         (autom4te): Specify that the sources are in the $srcdir.
3892         * doc/autoconf.texi (Installation Directory Variables): Adjust.
3894 2002-09-28  Akim Demaille  <akim@epita.fr>
3896         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
3897         (tm_zone): Move their rules to...
3898         * lib/autoconf/types.m4: here, using AN_ macros.
3899         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
3900         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
3901         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
3902         * lib/autoconf/programs.m4: here.
3903         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
3904         (ETAGS_FOR_AUTOCONF): New.
3905         Use it.
3907 2002-09-28  Akim Demaille  <akim@epita.fr>
3909         * lib/autoconf/autoscan.m4: New file.
3910         * lib/autoconf/autoconf.m4: Include it.
3911         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
3912         that were listed in the original autoscan.list.
3913         * lib/autoconf/headers.m4: Similarly with headers.
3914         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
3915         (.m4.m4f): Don't pass --prepend-include, since that's done by
3916         tests/autom4te itself.
3917         * lib/autoscan/Makefile.am: Include freeze.mk.
3918         (autoscan.list): New target --this file is no longer a source.
3919         (autoscan.pre): New file.
3921 2002-09-28  Akim Demaille  <akim@epita.fr>
3923         * bin/autoscan.in (@kinds): Make them singular.
3924         Adjust all uses.
3925         (&init_tables): When --debug, report the list of rules to ease
3926         tracking changes in autoscan.list.
3927         * lib/autoscan/autoscan.list (function): Strip comments, sort.
3929 2002-09-28  Akim Demaille  <akim@epita.fr>
3931         * lib/autoscan/functions, lib/autoscan/headers,
3932         * lib/autoscan/identifiers, lib/autoscan/makevars,
3933         * lib/autoscan/programs: Merge into...
3934         * lib/autoscan/autoscan.list: this.
3935         * bin/autoscan.in (&init_tables): Adjust.
3937 2002-09-28  Akim Demaille  <akim@epita.fr>
3939         * lib/autoscan/functions, lib/autoscan/headers,
3940         * lib/autoscan/identifiers, lib/autoscan/makevars,
3941         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
3942         `functions' line is now prefixed with `function:'.
3943         * bin/autoscan.in (&init_tables): Adjust.
3945 2002-09-28  Akim Demaille  <akim@epita.fr>
3947         From now on, autoscan files must always map a macro name to a
3948         word: there is no `default' macro for autoscan.
3950         * bin/autoscan.in (&init_tables): Reject entries with no macro at
3951         all.
3952         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
3953         explicit.
3955 2002-09-28  Akim Demaille  <akim@epita.fr>
3957         * bin/autoscan.in (%c_keywords): Remove.
3958         (&used): Keep only track of the words we might be interested in.
3959         (&output_kind): It is no longer needed to look for non active
3960         checks.
3962 2002-09-27  Akim Demaille  <akim@epita.fr>
3964         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
3965         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
3966         * lib/autoscan/functions: Adjust.
3967         * doc/autoconf.texi (Particular Functions): Adjust.
3969 2002-09-27  Akim Demaille  <akim@epita.fr>
3971         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
3972         from /tmp.
3973         Thanks to Bill Moseley and Paul Eggert.
3974         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
3975         the tmpdir must be created.
3976         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
3977         dir be in the build tree, instead of $TMPDIR.
3979 2002-09-27  Akim Demaille  <akim@epita.fr>
3981         * bin/autoscan.in: Improve the comments.
3982         (&parse_args): Drop obsolete undocumented options.
3983         (&output_kind): Output warnings.
3984         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
3985         (getwd): Trigger a warning.
3987 2002-09-26  Akim Demaille  <akim@epita.fr>
3989         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
3990         Reported by Ralf Corsepius.
3991         * doc/autoconf.texi (autoreconf Invocation): Likewise.
3993 2002-09-26  Akim Demaille  <akim@epita.fr>
3995         Single suffix rules and seperated dependencies are not portable.
3997         * doc/autoconf.texi (Installation Directory Variables): Update.
3998         (Limitations of Make): Some about `Single Suffix Rules and
3999         Separated Dependencies'.
4000         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
4001         (ifnames, autoscan, autom4te): Un-factor into several rules.
4003 2002-09-25  Paul Eggert  <eggert@twinsun.com>
4005         * BUGS (Interoperability bugs): New section.  Mention libtool
4006         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
4008 2002-09-24  Paul Eggert  <eggert@twinsun.com>
4010         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
4011         make handles suffix-rules differently from GNU make.
4013         * bin/Makefile.am (SUFFIXES, .in): Remove.
4014         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
4015         Move the body of the old .in rule here.
4017 2002-09-16  Akim Demaille  <akim@epita.fr>
4019         i960 compilers create `b.out' files by default.
4020         Reported by Ralf Corsepius.
4022         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
4023         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
4025 2002-09-13  Paul Eggert  <eggert@twinsun.com>
4027         * doc/autoconf.texi (Particular Headers): Remove obsolete
4028         reference to `struct timezone' in the description of
4029         AC_HEADER_TIME.
4031 2002-09-13  Akim Demaille  <akim@epita.fr>
4033         Version 2.54.
4035         * config/config.sub, config/config.guess: Update.
4036         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
4037         * Makefile.am: Adjust.
4039 2002-09-13  Akim Demaille  <akim@epita.fr>
4041         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
4042         reading config.log when the compiler is rejected.
4043         Suggested by Guido Draheim.
4045 2002-09-13  Akim Demaille  <akim@epita.fr>
4047         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
4048         (chdir_init) might hang when stat'ing mounted directories.
4049         Reported by Vance Shipley.
4051 2002-09-12  Akim Demaille  <akim@epita.fr>
4053         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
4054         the lists.
4056 2002-09-12  Akim Demaille  <akim@epita.fr>
4058         * doc/autoconf.texi (Defining Symbols): Present two different
4059         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
4060         difference between 1 argument calls, and 2-3 argument calls.
4062 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
4064         * doc/autoconf.texi: Review grammar and punctuation.
4066 2002-09-11  Paul Eggert  <eggert@twinsun.com>
4068         * doc/autoconf.texi: Fix minor formatting, spelling, and
4069         grammatical typos.
4070         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
4071         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
4072         is obsolescent.
4074 2002-09-11  Akim Demaille  <akim@epita.fr>
4076         * doc/autoconf.texi (Questions): Rename as...
4077         (FAQ): this.
4078         (Defining Directories): New.
4080 2002-09-09  Akim Demaille  <akim@epita.fr>
4082         * doc/autoconf.texi (Making testsuite Scripts): Update.
4083         Suggested by Nishio Futoshi.
4085 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
4087         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
4088         plain `@' is wanted.
4090 2002-09-09  Akim Demaille  <akim@epita.fr>
4092         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
4093         `duplicates', since the algorithm was too naive and could keep
4094         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
4095         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
4096         Reported by Ralf Corsepius.
4097         * tests/torture.at (Configuring subdirectories): Exercise these
4098         cases.
4100 2002-09-09  Akim Demaille  <akim@epita.fr>
4102         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
4103         looking for a replacement file.
4104         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
4105         directory is relative.
4106         * doc/autoconf.texi (Generic Functions): Clarify the replacement
4107         directory definition.
4108         Reported by Andreas Schwab and Jim Meyering.
4110 2002-09-06  Akim Demaille  <akim@epita.fr>
4112         * doc/autoconf.texi (Setting Output Variables): Clarify what
4113         precious variables are.
4114         Suggested by Pontus Skoeld.
4116 2002-09-05  Akim Demaille  <akim@epita.fr>
4118         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
4119         (ifnames, autoscan, autom4te): Since we don't only depend on
4120         configure.ac variables (such as VERSION etc.), but also on prefix
4121         and so forth, depend on Makefile, not configure.ac.
4122         Reported by Alexandre Duret-Lutz.
4123         * doc/autoconf.texi (Installation Directory Variables): Adjust.
4125 2002-09-05  Kevin Ryde  <user42@zip.com.au>
4127         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
4128         doesn't seem to be confined to ia64, just say "some versions".
4130 2002-09-04  Akim Demaille  <akim@epita.fr>
4132         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
4133         Automake 1.6c.
4134         * Makefile.am (maintainer-clean-local): Remove.
4135         (MAINTAINERCLEANFILES): Remove COPYING.
4137 2002-09-03  Paul Eggert  <eggert@twinsun.com>
4139         * doc/autoconf.texi (Configuration Commands): Remove obsolete
4140         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
4141         Brinkmann.
4143 2002-09-03  Akim Demaille  <akim@epita.fr>
4145         * configure.ac: Bump to 2.53d.
4146         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
4147         as of today, on Automake's team suggestion.
4149 2002-09-03  Akim Demaille  <akim@epita.fr>
4151         Version 2.53c.
4153 2002-09-02  Akim Demaille  <akim@epita.fr>
4155         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
4156         SITE_MACRO_DIR.
4157         * configure.ac: Disable SITE_MACRO_DIR.
4159 2002-09-02  Jim Meyering  <meyering@lucent.com>
4161         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
4162         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
4163         Also, tweak grammar: s/make sure to/be sure to/.
4165 2002-09-02  Paul Eggert  <eggert@twinsun.com>
4167         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
4168         directory names are generally preferable to physical names.
4170 2002-09-02  Akim Demaille  <akim@epita.fr>
4172         * lib/Autom4te/General.pm (&update_file): s/die/error/.
4173         Reported by Raja R. Harinath.
4174         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
4175         * bin/autoupdate.in: Use error instead of die.
4177 2002-09-01  Paul Eggert  <eggert@twinsun.com>
4179         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
4180         ordinary shell concatenation rather than echo+tr+sed command that
4181         runs afoul of a long-line-related sed bug in Solaris 8.
4183         * bin/autoheader.in (parse_args): --warning -> --warnings.
4185         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
4186         stdout, as traditional "ls" does.
4187         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
4188         _AC_COMPILER_EXEEXT_O): Likewise.
4189         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
4191         * bin/autoconf.as: Add --prepend-include option.  This patch was
4192         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
4193         but bin/autoconf.in is generated automatically from bin/autoconf.as.
4195         * bin/autoconf.in, configure: Regenerate.
4197         * doc/autoconf.texi (Special Shell Variables): Mention
4198         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
4200         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
4201         MAILPATH and set PS1, PS2, PS4 to default values, to work
4202         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
4203         For LC_ALL etc, first try to set to "C" as POSIX requires and as
4204         the Autoconf documentation specifies; fall back to "unset" only if
4205         this fails.  Use a shell for-loop for this rather than an m4 loop,
4206         to shorten the output script.
4208 2002-08-30  Paul Eggert  <eggert@twinsun.com>
4210         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
4211         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
4212         for the CDPATH problem.  Document PWD.
4213         (Limitations of Builtins): Document the problem that "cd $foo" and
4214         "ls $foo" may refer to different directories in shells conforming
4215         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
4216         example, since the old example is now out of date.
4218         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
4219         FOO" and "ls FOO" talk about different directories; this catches
4220         problems when POSIX 1003.1-2001 "cd" fails due to symlink
4221         spaghetti.
4223         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
4224         of rolling our own unset.
4225         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
4226         in practice we needn't worry about CDPATH if unset doesn't work.
4228         * Makefile.in, aclocal.m4, bin/Makefile.in,
4229         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
4230         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
4231         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
4232         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
4233         tests/Makefile.in: Regenerate with Automake 1.6.3.
4235         * config/config.guess, config/config.sub, config/mkinstalldirs:
4236         Update.
4238         * configure: Regenerate with self.
4240 2002-08-30  Kevin Ryde  <user42@zip.com.au>
4242         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
4243         default output.
4245 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4247         * bin/autom4te.in (Request::load): Correctly test for "do" read
4248         failure.
4250 2002-08-29  Akim Demaille  <akim@epita.fr>
4252         * lib/Autom4te/General.pm (&xqx): New.
4253         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
4254         hand, which is not portable.
4255         (&error): New.
4256         * bin/autom4te.in: Use them.
4257         Use &error instead of die.
4258         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
4259         Adjust.
4261 2002-08-17  Paul Eggert  <eggert@twinsun.com>
4263         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
4264         default list of compilers to try, since it was long ago superseded
4265         by the ksh fc builtin.  Suggested by Steven G. Johnson.
4267 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
4269         * doc/autoconf.texi (Invoking autom4te): End the option table,
4270         fixing a bug introduced by the previous patch.
4271         (Limitations of Make): Add a 'target lookup' subentry in the
4272         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
4274 2002-07-29  Mark D. Roth  <roth@feep.net>
4276         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
4277         options and use $AUTOM4TE_PATH.
4278         * doc/autoconf.texi: Remove documentation of autom4te
4279         --include-envvar and --site-macro-subdir options and document
4280         use of $AUTOM4TE_PATH.
4281         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
4282         arguments from each language section.
4284 2002-07-29  Paul Eggert  <eggert@twinsun.com>
4286         * doc/install.texi: Include copyright symbol in copyright notice.
4288         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
4289         Replace with:
4290         (AM_MAKEINFOFLAGS): New macro.
4291         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
4292         * Makefile.am (INSTALL): Use the new macros.
4293         Use -o rather than --output, since "missing" does not grok --output.
4295 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4297         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
4298         comments do not always work. Never trust the exit status of
4299         `make -k'.
4301 2002-07-24  Kevin Ryde  <user42@zip.com.au>
4303         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
4304         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
4306 2002-07-23  Paul Eggert  <eggert@twinsun.com>
4308         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
4309         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
4310         apparently treats PATH="nonexistent" as if it contained ".".
4311         Bug reported by Stefan `Sec' Zehl.
4313 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
4315         * doc/autoconf.texi (Limitations of Make): Mention the special
4316         handling of the obj/ directory by BSD make.
4318 2002-07-20  Kevin Ryde  <user42@zip.com.au>
4320         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
4321         backslashes.
4323 2002-07-19  Akim Demaille  <akim@epita.fr>
4325         * doc/autoconf.texi (Function Portability): `exit'.
4326         (Programming in M4sh): Ethymology of M4sh.
4328 2002-07-19  Akim Demaille  <akim@epita.fr>
4330         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
4332 2002-07-18  Akim Demaille  <akim@epita.fr>
4334         Version 2.53b.
4336 2002-07-18  Akim Demaille  <akim@epita.fr>
4338         * config/config.guess, config/config.sub: Update.
4340 2002-07-18  Akim Demaille  <akim@epita.fr>
4342         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
4343         Automake's parts.
4345         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
4346         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
4347         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
4349 2002-07-18  Akim Demaille  <akim@epita.fr>,
4350             Alexandre Duret-Lutz  <duret_g@epita.fr>
4352         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
4353         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
4355 2002-07-17  Russ Allbery  <rra@stanford.edu>
4357         * doc/autoconf.texi (Initializing configure): Clarify the
4358         description of the tarname default.
4360 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
4362         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
4363         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
4364         latter was not run.
4366 2002-07-17  Akim Demaille  <akim@epita.fr>
4368         * lib/Autom4te/General.pm (find_file): Browse the directories in
4369         the order they are given.
4371 2002-07-17  Akim Demaille  <akim@epita.fr>
4373         * tests/wrapsh.as, tests/wrappl.as: Merge into...
4374         * tests/wrapper.as: this.
4375         * tests/Makefile.am, configure.ac: Adjust.
4377 2002-07-17  Mark D. Roth  <roth@feep.net>
4379         * configure.ac: Add --enable-site-macro-dir option.
4380         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
4381         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
4382         --site-macro-subdir options.
4383         * bin/autoconf.in: Add --prepend-include option.
4384         * bin/autoheader.in: Add --prepend-include option.
4385         * bin/autoreconf.in: Add --prepend-include option.
4386         * bin/autoscan.in: Add --prepend-include option.
4387         * bin/autoupdate.in: Add --prepend-include option.
4388         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
4389         macro directory, remove note that include path directories are
4390         used in reverse order, and document --prepend-include option.
4391         * lib/autom4te.in: Use --prepend-include instead of --include.
4392         * tests/wrapsh.in: Use --prepend-include instead of --include.
4394 2002-07-17  Akim Demaille  <akim@epita.fr>
4396         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
4397         tarnames.
4398         * doc/autoconf.texi (Initializing configure): Adjust.
4400 2002-07-17  Akim Demaille  <akim@epita.fr>
4402         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
4403         (_AC_FUNC_MALLOC): New.
4404         (AC_FUNC_MALLOC): Use the latter.
4405         Define HAVE_MALLOC to 0 if broken.
4406         * doc/autoconf.texi (Particular Functions): Adjust.
4408 2002-07-16  Akim Demaille  <akim@epita.fr>
4410         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
4411         * doc/autoconf.texi (C Compiler): Adjust.
4413 2002-07-09  Akim Demaille  <akim@epita.fr>
4415         * doc/autoconf.texi: Properly set the ``header'' part.
4417 2002-07-09  Akim Demaille  <akim@epita.fr>
4419         * doc/autoconf.texi (Systemology): Some about Darwin.
4421 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
4423         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
4424         Don't use AC_REQUIRE in AU_DEFUN.
4426 2002-07-09  Art Haas  <ahaas@neosoft.com>
4428         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
4430 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
4432         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
4433         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
4434         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
4435         so that Emacs setups GNU style for perl-mode and cperl-mode.
4437 2002-06-27  Paul Eggert  <eggert@twinsun.com>
4439         * config/install-sh: Quote $src.  Prefer || to test's -o option,
4440         as per "Limitations of Builtins".
4441         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
4442         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
4444         * tests/mktests.sh: Use grep instead of fgrep, as per
4445         "Limitations of Builtins".
4447 2002-06-15  Paul Eggert  <eggert@twinsun.com>
4449         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
4450         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
4451         so that we consistently test the just-built programs.
4452         * tests/wrappl.as: Likewise.
4454 2002-06-12  Paul Eggert  <eggert@twinsun.com>
4456         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
4457         name, so that symlinks to 'autoconf' work properly.  Bug reported
4458         by Bruno Haible.
4459         * bin/autoheader.in (AUTOM4TE): Likewise.
4460         * bin/autoreconf.in (autoconf, autoheader): Likewise.
4461         * bin/autoscan.in (autom4te): Likewise.
4462         * bin/autoupdate.in (autom4te): Likewise.
4464         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
4465         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
4466         on Solaris 2.5.1.
4468 2002-06-11  Andreas Schwab  <schwab@suse.de>
4470         * doc/autoconf.texi: Add more dir entries.
4472 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
4474         * bin/autom4te.in ($cache): Don't define using `$me', the name
4475         of the cache should not depend on the name under which autom4te
4476         was installed.
4478 2002-06-07  Akim Demaille  <akim@epita.fr>
4480         * tests/tools.at (autoconf: forbidden tokens, basic)
4481         (autoconf: forbidden tokens, exceptions): Adjust to the change of
4482         words in autom4te.in.
4484 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
4486         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
4487         _AC_LANG_PROGRAM_C_F77_HOOKS.
4489 2002-06-07  Akim Demaille  <akim@epita.fr>
4491         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
4492         rename as...
4493         (AC_REPLACE_FNMATCH): this.
4494         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
4495         AC_FUNC_FNMATCH_GNU.
4497 2002-06-07  Akim Demaille  <akim@epita.fr>
4499         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
4500         Rosetta Stone for Unix.
4502 2002-06-07  Akim Demaille  <akim@epita.fr>
4504         * bin/autom4te.in (warn_forbidden): When rejecting a token,
4505         suggest m4_pattern_allow.
4506         Suggested by Adam J. Richter.
4508 2002-06-07  Akim Demaille  <akim@epita.fr>
4510         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
4511         ac_config_libobj_dir.
4512         (AC_CONFIG_LIBOBJ_DIR): New.
4513         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
4514         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
4515         Use ac_config_libobj_dir to find the replacement files.
4516         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
4517         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
4518         (AC_REPLACE_FNMATCH_GNU): these.
4519         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
4520         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
4521         * tests/mktests.sh (ac_exclude_list): Don't check
4522         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
4524 2002-06-06  Paul Eggert  <eggert@twinsun.com>
4526         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
4527         if ln doesn't work.
4528         * NEWS: Likewise.
4529         * doc/autoconf.texi (Configuration Links): Likewise.
4530         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
4532 2002-06-05  Paul Eggert  <eggert@twinsun.com>
4534         * config/config.guess, config/config.sub, config/texinfo.tex:
4535         Update from masters.
4537 2002-05-29  Paul Eggert  <eggert@twinsun.com>
4539         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
4540         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
4541         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
4542         Likewise.
4543         * lib/autoconf/Makefile.am (check-local): Likewise.
4544         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
4545         * lib/autoconf/types.m4 (commentary only): Likewise.
4546         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
4547         * lib/autotest/Makefile.am (check-local): Likewise.
4548         * lib/m4sugar/Makefile.am (check-local): Likewise.
4549         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
4550         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
4552         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
4553         * doc/autoconf.texi (Particular Programs): Document them.
4554         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
4555         * NEWS: Likewise.
4557 2002-05-27  Paul Eggert  <eggert@twinsun.com>
4559         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
4560         * NEWS, doc/autoconf.texi (Particular Types): Document it.
4561         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
4562         instead of AC_MBSTATE_T, which never existed.
4564 2002-05-23  Akim Demaille  <akim@epita.fr>
4566         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
4567         version of Autoconf that is discussed.
4569 2002-05-22  Paul Eggert  <eggert@twinsun.com>
4571         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
4572         from the default list of compilers to try.  Suggested by
4573         Kate Hedstrom.
4574         * NEWS: Document the above.
4575         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
4577 2002-05-17  Paul Eggert  <eggert@twinsun.com>
4579         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
4580         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
4581         This improves on an earlier suggestion by H. Peter Anvin.
4583 2002-05-16  Paul Eggert  <eggert@twinsun.com>
4585         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
4586         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
4587         Both macros now accept an optional source-dir arg.
4588         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
4590         * NEWS: Document this.
4591         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
4593         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
4594         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
4595         not for GNU extensions; this undoes part of the 2000-11-03 change,
4596         reverting to 2.13-compatible behavior.
4597         Add new optional argument DIR.
4598         (AC_FUNC_FNMATCH_GNU): New macro.
4600         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
4602 2002-05-08  Paul Eggert  <eggert@twinsun.com>
4604         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
4605         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
4606         and it causes a 'test' syntax error if it fails.
4607         Bug reported by Stephen Gildea.
4609         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
4610         If prototypes are supported, use them to check this at compile-time,
4611         instead of trying to check it at run-time.  If we must do a run-time
4612         check, assume that setvbuf is standard when cross-compiling, as
4613         nonstandard setvbuf occurs only on ancient and unlikely hosts.
4614         Bug reported by Paul D. Smith.
4616         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
4617         argument specifying location of getloadavg.c.  This removes a
4618         FIXME.  This idea was taken from Jim Meyering's implementation in
4619         textutils.
4620         * doc/autoconf.texi (Particular Functions): Document this.
4621         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
4622         that's what the code does; this fixes a bug reported by
4623         Paul D. Smith.
4625 2002-05-03  Akim Demaille  <akim@epita.fr>
4627         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
4628         autopoint instead of gettextize.
4629         ($uses_alocal): Rename as...
4630         ($uses_aclocal): this.
4631         * doc/autoconf.texi (autoreconf Invocation): Adjust.
4632         Suggested by Bruno Haible.
4634 2002-05-03  Akim Demaille  <akim@epita.fr>
4636         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
4638 2002-04-29  Paul Eggert  <eggert@twinsun.com>
4640         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
4641         files to be 1 second older; just set them to be the same time.
4642         Also, sleep 1 second after the first aclocal, to work around
4643         problems with sub-second time stamps on the input files.
4645 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
4647         * doc/autoconf.texi: Mention "set -e -x" lossage
4648         under node "Limitations of Builtins".
4650 2002-04-29  Akim Demaille  <akim@epita.fr>
4652         * doc/install.texi: Better wording for setting variables when
4653         running configure.
4654         From Christian Cornelssen.
4656 2002-04-29  Akim Demaille  <akim@epita.fr>
4658         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
4659         of lack of $LINENO support, then the test will compare the $LINENO
4660         in testsuite vs. the lineno in the test file.  This is wrong, of
4661         course.
4662         Be sure to protect it.
4663         Reported by Patrick Welche.
4665 2002-04-25  Akim Demaille  <akim@epita.fr>
4667         * doc/autoconf.texi (Obsolete Macros): Typo.
4668         Reported by Vladimir Volovich.
4670 2002-04-25  Akim Demaille  <akim@epita.fr>
4672         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
4673         than some of the input files, hence, on the second run of aclocal,
4674         if some of its input are younger, make them older.
4675         Suggested by Paul Eggert.
4677 2002-04-25  Akim Demaille  <akim@epita.fr>
4679         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
4680         Thanks to Paul Eggert.
4682 2002-04-25  Akim Demaille  <akim@epita.fr>
4684         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
4685         and ac_subst_vars be sh variables containing the list of
4686         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
4687         DEFAULT diversion.
4688         (_AC_INIT_PREPARE): Use them to log them.
4689         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
4690         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
4691         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
4692         _AC_SUBST_FILES and _AC_SUBST_VARS.
4693         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
4695 2002-04-24  Akim Demaille  <akim@epita.fr>
4697         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
4698         autoheader, so that automake does not complain about a missing
4699         config.h.in that was to be created.
4701 2002-04-23  Akim Demaille  <akim@epita.fr>
4703         * bin/autoheader.in (parse_args): --warning takes an argument.
4704         Fixes PR/220.
4706 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
4708         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
4709         and bb.out when cleaning up.
4711 2002-04-22  Akim Demaille  <akim@epita.fr>
4713         Version 2.53a.
4715 2002-04-22  Akim Demaille  <akim@epita.fr>
4717         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
4719 2002-04-22  Akim Demaille  <akim@epita.fr>
4721         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
4722         comma.
4723         Reported by Gregory Giannoni.
4725 2002-04-22  Akim Demaille  <akim@epita.fr>
4727         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
4728         Fixes false failures on Darwin.
4730 2002-04-21  Paul Eggert  <eggert@twinsun.com>
4732         * TODO, bin/autoupdate.in, doc/autoconf.texi,
4733         lib/autoconf/general.m4, lib/autoconf/libs.m4,
4734         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
4735         tests/tools.at: Minor spelling and grammar fixes.
4737 2002-04-20  Paul Eggert  <eggert@twinsun.com>
4739         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
4740         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
4741         * lib/autotest/general.m4 (AT_INIT): Likewise.
4742         * tests/atgeneral.m4 (AT_INIT): Likewise.
4744 2002-04-19  Paul Eggert  <eggert@twinsun.com>
4746         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
4747         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
4748         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
4749         lib/autoconf/functions.m4, lib/autoconf/general.m4,
4750         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
4751         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
4752         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
4753         Minor spelling and grammar fixes.
4755         * doc/autoconf.texi: Follow the outline suggested in the GNU
4756         Sample Texts sections of the Texinfo 4.2 manual.  Most
4757         importantly, this makes sure that the copyright notices appear in
4758         all output formats.  You probably need Texinfo 4.2 to generate
4759         the manual now.
4761         Fix some bugs when using "$@" when there might be zero positional
4762         arguments in cases where this matters.
4764         * bin/autoconf.as: Rewrite so that the problem does not come up.
4765         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
4766         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
4767         * lib/autotest/general.m4 (AT_INIT): Likewise.
4769         * bin/autoheader.in: Use 'case' statement to work around problem.
4770         * bin/auto4mte.in: Likewise.
4771         * bin/autoreconf.in: Likewise.
4772         * bin/autoscan.in: Likewise.
4773         * bin/autoupdate.in: Likewise.
4774         * bin/ifnames.in: Likewise.
4776         * doc/autoconf.texi (Shell Substitutions): Document the problem.
4778         * lib/autotest/general.m4 (AT_INIT):
4779         Use Zsh alias to work around problem.
4780         * tests/atgeneral.m4 (AT_INIT): Likewise.
4782         * tests/c.at: We can't have zero arguments, so remove workaround
4783         that is not portable to Zsh.
4785 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
4787         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
4788         from aclocal.m4 too.
4790 2002-04-12  Akim Demaille  <akim@epita.fr>
4792         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
4794 2002-04-10  Akim Demaille  <akim@epita.fr>
4796         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
4797         workaround for ${1+"$@"}.
4798         * doc/autoconf.texi (Shell Substitutions): Explain it.
4799         From Oliver Kiddle and Peter Stephenson.
4801         Have M4sh perform minimal shell sanitizing.
4803         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
4804         part into...
4805         (_AS_PREPARE): this new macro.
4806         (AS_PREPARE): New.
4807         (AS_INIT): Invoke AS_SHELL_SANITIZE.
4808         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
4810         Adjust Autoconf and Autotest.
4812         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
4813         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
4814         * lib/autotest/general.m4 (AT_INIT): Likewise.
4815         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
4816         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
4817         AS_SHELL_SANITIZE.
4819         Use this M4sh to generate Autoconf's shell scripts.
4821         * tests/wrapsh.as: New, precursor of wrapsh.in.
4822         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
4823         on Autotest and M4sh.
4824         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
4825         (wrapsh.in): New target.
4826         * bin/autoconf.as: New, precursor of autoconf.in.
4827         (autoconf.in): New target.
4829 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
4831         * doc/autoconf.texi (Limitations of Make): Mention the issue
4832         with indented comments in rules.
4834 2002-04-09  Andreas Schwab  <schwab@suse.de>
4836         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
4837         ac_top_builddir when setting ac_abs_top_builddir.
4839 2002-04-06  Kevin Ryde  <user42@zip.com.au>
4841         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
4842         (Portable Shell): Cross reference to Systemology.
4844 2002-04-05  Akim Demaille  <akim@epita.fr>
4846         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
4847         directories when descending in a SUBDIRS.
4848         Reported by Ezra Peisach.
4850 2002-04-04  Andreas Schwab  <schwab@suse.de>
4852         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
4853         contains no literal separators.
4855 2002-04-03  Akim Demaille  <akim@epita.fr>
4857         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
4858         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
4859         Use dnl, not the KILL diversion.
4860         Extracted from...
4861         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
4862         (AC_CONFIG_LINKS): here.
4863         Adjust.
4864         Don't use the KILL diversion, as it kills spurious output, which
4865         results in failures being hidden.
4866         Use m4_defn where appropriate.
4867         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
4868         after the second argument.
4869         Use m4_defn.
4870         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
4871         syntax, as it is provided by M4sugar.
4872         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
4874 2002-04-03  Andreas Schwab  <schwab@suse.de>
4876         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
4877         expanded if $# <= 2.
4879         * bin/autoreconf.in (autoreconf): Run automake after rerunning
4880         aclocal.
4882 2002-04-03  Akim Demaille  <akim@epita.fr>
4884         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
4885         (_AC_COMPILER_EXEEXT_REJECT): New.
4886         Also recognize *.bb and *.bbg as compilation byproducts.
4887         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
4888         (_AC_COMPILER_OBJEXT): Use them.
4889         Fixes Debian #138666.
4891 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
4893         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
4895         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
4896         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
4897         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
4898         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
4899         (AC_C_CONST): Same.
4900         (AC_C_INLINE): Same.
4901         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
4902         * doc/autoconf.texi, NEWS: Document.
4903         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
4904         AC_C_CROSS.
4906 2002-04-02  Akim Demaille  <akim@epita.fr>
4908         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
4909         _AS_MKDIR_P_PREPARE.
4911 2002-03-28  Kevin Ryde  <user42@zip.com.au>
4913         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
4914         to avoid versions of HP C which don't allow that.
4916 2002-03-27  Paul Eggert  <eggert@twinsun.com>
4918         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
4919         (AS_SHELL_SANITIZE): Invoke it.
4920         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
4922 2002-03-26  Akim Demaille  <akim@epita.fr>
4924         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
4926 2002-03-26  Akim Demaille  <akim@epita.fr>
4928         * doc/autoconf.texi (Introduction): The GNATS base moved.
4930 2002-03-25  Paul Eggert  <eggert@twinsun.com>
4932         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
4933         as POSIX requires, as it doesn't work with Zsh.
4934         * doc/autoconf.texi (Assignments): Document the problem.
4936 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4938         * doc/autoconf.texi (Limitations of Make): Mention more issue
4939         about VPATH, overriding of macros in sub-makes, and handling of
4940         SHELL.
4942 2002-03-21  Paul Eggert  <eggert@twinsun.com>
4944         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
4945         problem with here-document buffer boundaries.
4947         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
4948         when reinvoking the shell, to work around problems with installers
4949         who put strange things like "cd" commands in their environments.
4951 2002-03-19  Akim Demaille  <akim@epita.fr>
4953         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
4954         From Aaron Ucko.
4956 2002-03-19  Akim Demaille  <akim@epita.fr>
4958         * bin/autoscan.in (scan_file): Specify the location in `&used'
4959         invocations.
4960         From Nicolas Joly.
4962 2002-03-19  Akim Demaille  <akim@epita.fr>
4964         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
4965         From Nishio Futoshi.
4967 2002-03-19  Akim Demaille  <akim@epita.fr>
4969         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
4971 2002-03-18  Paul Eggert  <eggert@twinsun.com>
4973         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
4974         (Limitations of Usual Tools): Add mkdir section.
4976         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
4977         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
4978         back on AS_DIRNAME to compute prefixes otherwise; this is
4979         roughly what mkinstalldirs does.  That way, we need not have
4980         our own filename disassembler.  The old disassembler did not
4981         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
4983         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
4984         Create at_test_all by a series of assignments,
4985         not by a single assignment of a long string.  The latter causes ksh
4986         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
4987         presumably because of a buffer overrun.
4989 2002-03-14  Paul Eggert  <eggert@twinsun.com>
4991         * lib/autotest/general.m4 (at_times_skip):
4992         Renamed from at_times.  Now a boolean.
4993         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
4994         says 'times: not found'.
4996 2002-03-14  Akim Demaille  <akim@epita.fr>
4998         * bin/autoreconf.in (&study_gettextize): New.
4999         (&autoreconf): Handle newest gettextize.
5000         Rerun aclocal if needed.
5001         Suggested by Andreas Schwab.
5003 2002-03-13  Akim Demaille  <akim@epita.fr>
5005         * doc/autoconf.texi (Special Shell Variables): More about IFS.
5007 2002-03-13  Akim Demaille  <akim@epita.fr>
5009         * doc/autoconf.texi (Header Portability): New.
5010         Add information about stdint.h and inttypes.h from Paul Eggert.
5012 2002-03-13  Akim Demaille  <akim@epita.fr>
5014         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
5015         -p'.
5016         From Bob Proulx.
5018 2002-03-12  Akim Demaille  <akim@epita.fr>
5020         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
5021         m4_require.
5023 2002-03-11  Andreas Schwab  <schwab@suse.de>
5025         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
5026         does not do it if --with-lispdir is given.
5028 2002-03-08  Akim Demaille  <akim@epita.fr>
5030         Version 2.53.
5032 2002-03-08  Akim Demaille  <akim@epita.fr>
5034         * doc/autoconf.texi (Subdirectories): Clarify that the
5035         subdirectory should exist.
5037 2002-03-08  Akim Demaille  <akim@epita.fr>
5039         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
5041 2002-03-08  Akim Demaille  <akim@epita.fr>
5043         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
5044         aliases the actual variables, and modifications of the former
5045         affect the latter.
5047 2002-03-08  Akim Demaille  <akim@epita.fr>
5049         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
5050         because of C-c: have m4 output in tmp files, then mv them.
5052 2002-03-08  Akim Demaille  <akim@epita.fr>
5054         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
5055         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
5056         * bin/ifnames.in: Copyright update.
5058 2002-03-08  Akim Demaille  <akim@epita.fr>
5060         * doc/autoconf.texi (Invoking autom4te): New.
5062 2002-03-05  Akim Demaille  <akim@epita.fr>
5064         * doc/autoconf.texi (Specifying Names): Clarification suggested by
5065         Kevin Ryde.
5067 2002-03-05  Akim Demaille  <akim@epita.fr>
5069         Version 2.52i.
5071 2002-03-04  Akim Demaille  <akim@epita.fr>
5073         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
5074         * lib/autoconf/general.m4 (AC_INIT): More informative error
5075         message for LIBOBJ.
5077 2002-03-04  Akim Demaille  <akim@epita.fr>
5079         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
5080         parallel builds.
5082 2002-03-04  Akim Demaille  <akim@epita.fr>
5084         * doc/autoconf.texi (Transforming Names): Equality between target
5085         and host is irrelevant.
5086         (Specifying Names, Canonicalizing): Remove all references to the
5087         backward compatibility hooks.  Rather, collect them all into...
5088         (Hosts and Cross-Compilation): this new section.
5089         * doc/install.texi (System Type): Ditto.
5090         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
5091         that `--host' implies cross-compilation.
5093 2002-03-04  Akim Demaille  <akim@epita.fr>
5095         * doc/autoconf.texi (Evaluation Macros): New.
5096         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
5097         useless.
5098         (_m4_foreach): Define the variant with immediate evaluation so
5099         that it contains exactly the items, not an expression which
5100         evaluation is the current item.
5101         (m4_re_string, m4_re_word): Don't over quote them.
5103 2002-03-04  Akim Demaille  <akim@epita.fr>
5105         Instead of having stacking `shift's evaluated at the end, let
5106         `foreach' loops immediately evaluate them.
5108         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
5109         $*.  This is the n-th time I change my mind, but hopefully this is
5110         the last...
5111         (m4_lquote): New.
5112         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
5113         efficient.
5114         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
5115         it was only a hack for m4_text_wrap.
5116         (m4_car2): Remove, replaced by...
5117         (m4_cdr): New.
5118         (_m4_foreach): Adjust.
5119         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
5120         m4_bpatsubst for clarification.
5122 2002-03-04  Akim Demaille  <akim@epita.fr>
5124         * doc/autoconf.texi (Changequote is Evil): New.
5126 2002-03-03  Kevin Ryde  <user42@zip.com.au>
5128         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
5129         on old systems like SunOS.
5131 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
5133         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
5134         lib/autoconf/functions.m4, lib/autoconf/general.m4,
5135         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
5136         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
5137         of messages.
5139 2002-02-28  Akim Demaille  <akim@epita.fr>
5141         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
5142         message to be sent.
5144 2002-02-28  Kevin Ryde  <user42@zip.com.au>
5146         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
5148 2002-02-25  Akim Demaille  <akim@epita.fr>
5150         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
5151         From Akinori Musha.
5153 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
5155         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
5156         translate \r\n to \n.
5158 2002-02-07  Akim Demaille  <akim@epita.fr>
5160         Version 2.52h.
5162 2002-02-07  Akim Demaille  <akim@epita.fr>
5164         Fix Autoconf PR/209.
5165         Also reported by Frank Denis.
5167         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
5169 2002-02-07  Akim Demaille  <akim@epita.fr>
5171         Fix Autoconf PR/207:
5172         AC_PREFIX_PROGRAM fails with dashed program names
5174         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
5175         variable when looking for the prefix program.
5176         Now it also works for shell variables.
5178 2002-02-07  Akim Demaille  <akim@epita.fr>
5180         * doc/autoconf.texi (Limitations of Builtins): More about
5181         case/esac.
5183 2002-02-06  Akim Demaille  <akim@epita.fr>
5185         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
5186         case/esac, some shells don't support it.
5187         Reported by Zack Weinberg.
5188         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
5190 2002-02-06  Akim Demaille  <akim@epita.fr>
5192         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
5193         sure not to introduce newlines in at_groups.
5194         * lib/autotest/Makefile.am (autotest.m4f): Typo.
5196 2002-02-06  Akim Demaille  <akim@epita.fr>
5198         * tests/torture.at (Configuring subdirectories): Skip if aclocal
5199         is not available.
5201 2002-02-05  Paul Eggert  <eggert@twinsun.com>
5203         * doc/autoconf.texi (Specific Compiler Characteristics):
5204         Describe HP-UX cc bug workaround more accurately.
5205         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
5206         not unsigned long.
5207         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
5208         cross-compilers, too.  This undoes some of the most recent change
5209         to this file.
5211 2002-02-05  Akim Demaille  <akim@epita.fr>
5213         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
5214         to make sure they are up to date when `check' is run.
5216 2002-02-05  Akim Demaille  <akim@epita.fr>
5218         * doc/autoconf.texi (Making testsuite Scripts): Document
5219         package.m4.
5221 2002-02-05  Akim Demaille  <akim@epita.fr>
5223         * lib/freeze.mk: New.
5225 2002-02-05  Akim Demaille  <akim@epita.fr>
5227         Implement `autom4te --freeze'.
5229         * bin/autom4te.in (&freeze): New.
5230         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
5231         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
5233 2002-02-05  Akim Demaille  <akim@epita.fr>
5235         * bin/autom4te.in (&parse_args): Implement `frozen files are
5236         optional are the sum of the previous files on the command line'.
5237         Also, pass `--reload-state=' on them, so...
5238         (handle_m4): don't.
5239         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
5240         (M4sh): Rely on M4sugar.
5241         (Autotest, M4sh, M4sugar): Use frozen files.
5243 2002-01-31  Akim Demaille  <akim@epita.fr>
5245         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
5246         * doc/autoconf.texi (Initializing configure): Adjust.
5248 2002-01-30  Akim Demaille  <akim@epita.fr>
5250         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
5251         alphanumeric to `-' instead of `_'.
5253 2002-01-30  Akim Demaille  <akim@epita.fr>
5255         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
5256         for plain code, the other for cross-compilation code.  The latter
5257         is now run with GCC only.
5258         * doc/autoconf.texi (Compilers and Preprocessors): New.
5260 2002-01-30  Akim Demaille  <akim@epita.fr>
5262         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
5263         values.
5264         * doc/autoconf.texi (Initializing configure): Explain how to
5265         change AC_INIT default values.
5267 2002-01-29  Akim Demaille  <akim@epita.fr>
5269         * tests/torture.at (Configuring subdirectories): Use configure.in,
5270         so that aclocal 1.4 works.
5271         Reported by Alexandre Duret-Lutz and Larry Schmitt.
5273 2002-01-28  Akim Demaille  <akim@epita.fr>
5275         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
5276         needs an argument.
5278 2002-01-28  Akim Demaille  <akim@epita.fr>
5280         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
5281         AUTOTEST_PATH *after* it was set.
5282         Don't put `.' in the PATH: the user should be precise and `./' if
5283         needed.  In addition, given that the test suite does some `cd', if
5284         `.' is in the path, the `tested programs' sections will report
5285         programs found in the test suite's directory, while during the
5286         tests (performed in their own directory), these programs are no
5287         longer visible.  In other words, the results is confusing and
5288         useless.
5289         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
5291 2002-01-24  Akim Demaille  <akim@epita.fr>
5293         Version 2.52g.
5295 2002-01-24  Akim Demaille  <akim@epita.fr>
5297         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
5298         * doc/autoconf.texi: Finally add Akim as an author.
5300 2002-01-24  Akim Demaille  <akim@epita.fr>
5302         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
5303         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
5304         Bourne. Use /bin/sh.
5305         From Andreas Buening.
5307 2002-01-24  Akim Demaille  <akim@epita.fr>
5309         * config/config.guess, config/config.sub, config/texinfo.tex:
5310         Update from masters.
5312 2002-01-24  Akim Demaille  <akim@epita.fr>
5314         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
5315         * config/auxdir.m4, config/cond.m4, config/depend.m4,
5316         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
5317         * config/missing.m4, config/sanity.m4, config/select.m4,
5318         * config/strip.m4: Remove, to ease sync'ing with any version of
5319         Automake.
5321 2002-01-24  Akim Demaille  <akim@epita.fr>
5323         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
5324         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
5325         Reported by Geir Ove Myhr.
5327 2002-01-21  Akim Demaille  <akim@epita.fr>
5329         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
5331 2002-01-21  Akim Demaille  <akim@epita.fr>
5333         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
5334         message on invalid options.
5335         * bin/autom4te.in (parse_args): Don't use
5336         Autoconf::General::getopt with non valid options.
5338 2002-01-17  Jim Meyering  <meyering@lucent.com>
5340         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
5341         $ac_cv_exeext so we don't use an old, invalid, cached value.
5343 2002-01-11  Akim Demaille  <akim@epita.fr>
5345         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
5346         Meyering.
5347         * doc/autoconf.texi (Function Portability): Document the strnlen
5348         limitation.
5349         (Particular Functions): Document AC_FUNC_STRNLEN.
5350         * lib/autoscan/functions: Adjust.
5352 2002-01-06  Akim Demaille  <akim@epita.fr>
5354         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
5355         package.m4, since is really depends upon configure.ac, not
5356         configure.
5357         * doc/autoconf.texi (testsuite Scripts): Adjust.
5358         * tests/Makefile.am (package.m4): New.
5359         EXTRA_DIST it since its a source.
5361 2002-01-06  Akim Demaille  <akim@epita.fr>
5363         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
5364         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
5365         and PACKAGE_BUGREPORT from here...
5366         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
5367         arguments.
5368         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
5369         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
5370         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
5371         * tests/tools.at (autoheader): Adjust.
5372         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
5374 2002-01-06  Akim Demaille  <akim@epita.fr>
5376         * bin/autoscan.in (scan_file): Use `&used'.
5378 2002-01-03  Akim Demaille  <akim@epita.fr>
5380         * doc/autoconf.texi (Output): Improved wording regarding use of
5381         AC_OUTPUT.
5382         From Olly Betts.
5384 2001-12-18  Kevin Ryde  <user42@zip.com.au>
5386         * doc/autoconf.texi (Function Portability): Add notes on sscanf
5387         sometimes needing writable input.
5389 2001-12-17  Jim Meyering  <meyering@lucent.com>
5391         * doc/autoconf.texi (New Macros): Tweak wording.
5393 2001-12-14  Akim Demaille  <akim@epita.fr>
5395         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
5396         trailing files, don't apply `-rf' to files which might not be
5397         created by configure (core, core.*, and *.core), but just `rm -f'.
5398         Suggested by Jonathan Kamens.
5400 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
5402         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
5404 2001-12-14  Akim Demaille  <akim@epita.fr>
5406         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
5408 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
5410         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
5411         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
5412         abs_srcdir, top_srcpath to abs_top_srcdir.
5413         (_AC_OUTPUT_FILES): Adjust.
5414         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
5415         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
5416         * tests/wrappl.in, tests/wrapsh.in: Adjust.
5418 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
5420         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
5421         C/Fortran linking on HP/UX, by extracting the Fortran library
5422         search path from the LPATH line in the $F77 -v output.
5424 2001-12-12  Kevin Ryde  <user42@zip.com.au>
5426         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
5427         forbidden file descriptors table.
5429 2001-11-26  Akim Demaille  <akim@epita.fr>
5431         * bin/autoscan.in (%c_keywords): Build it at top level.
5432         Map to 1 in order to simplify its uses.
5434 2001-11-26  Akim Demaille  <akim@epita.fr>
5436         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
5437         Remove $filepath, useless.
5438         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
5439         variables, they are really part of the tokens.
5440         Split the input line on spaces and then look for tokens.
5441         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
5442         because of `lex$U.$(OBJEXT)'.
5443         (&scan_files): Use "@list" instead of join.
5444         * doc/Makefile.am (CLEANFILES): Add *.fns.
5446 2001-11-26  Akim Demaille  <akim@epita.fr>
5448         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
5449         Remove, replaced by...
5450         * tests/wrappl.in: Be common for all the Perl executables.
5451         In particular autoscan and autoheader want -I.
5452         * configure.ac: Adjust.
5453         * lib/autoscan/headers: errno.h is portable.
5455 2001-11-26  Akim Demaille  <akim@epita.fr>
5457         * bin/autoscan.in (used): New.
5458         Use it.
5460 2001-11-26  Akim Demaille  <akim@epita.fr>
5462         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
5463         directives.
5464         (&scan_sh_file): Remove a duplicate pattern.
5465         (&check_configure_ac): Use long options.
5466         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
5468 2001-11-26  Akim Demaille  <akim@epita.fr>
5470         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
5471         Before, having a line containing the opening of a multi line
5472         comment made the whole line be ignored.
5474 2001-11-26  Akim Demaille  <akim@epita.fr>
5476         * doc/autoconf.texi (Using an Autotest Test Suite): New.
5477         (testsuite Scripts): Be one of its subsection.
5478         (Autotest Logs): New.
5480 2001-11-26  Akim Demaille  <akim@epita.fr>
5482         Test groups are now run two directories deeper.
5484         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
5485         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
5486         at_top_builddir.
5487         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
5488         top_srcdir, builddir and top_builddir.
5489         Use `at_*dir' relatively to the directory containing the
5490         suite, use `*dir' when relatively to the current group dir.
5492 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
5494         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
5495         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
5496         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
5497         spelling errors.
5499 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
5501         * doc/autoconf.texi (Using System Type): Add an example of `case
5502         $host' usage so people quit using `case $target' everywhere.
5504 2001-11-22  Akim Demaille  <akim@epita.fr>
5506         * doc/autoconf.texi (Installation Directory Variables): Englishoes
5507         spotted by Jim Meyering.
5509 2001-11-16  Paul Eggert  <eggert@twinsun.com>
5511         This patch implements a `long double' suggestion by Oliver Kiddle.
5513         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
5514         static, to catch errors if the value isn't known at compile-time
5515         and the compiler supports dynamic arrays.  Change its name from
5516         `_array_' to `test_array' to avoid potential name clashes.
5517         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
5518         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
5519         better than double.  Catch a bug in GCC 2.95.2 x86.
5520         * doc/autoconf.texi (C Compiler): Document the above.
5521         * NEWS: Likewise.
5523 2001-11-13  Akim Demaille  <akim@epita.fr>
5525         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
5526         hand.
5527         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
5529 2001-11-13  Akim Demaille  <akim@epita.fr>
5531         * lib/autotest/general.m4 (AT_INIT): After having run the test
5532         group, go back to the initial directory, not to at_suite_dir.
5534 2001-11-13  Akim Demaille  <akim@epita.fr>
5536         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
5537         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
5538         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
5539         option.
5540         (AT_CHECK_CONFIGURE): Use absolute paths.
5541         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
5542         The problem is still the old one: there is no means in M4 (that I
5543         know about) to create a defining macro, because there is no means
5544         to create `$1' etc., therefore, the defining macro ``swallows''
5545         all the arguments meant to the defined macro.
5547 2001-11-13  Akim Demaille  <akim@epita.fr>
5549         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
5550         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
5551         configure.ac.
5552         * tests/aclocal.m4: Remove, as it is no longer used.
5554 2001-11-13  Akim Demaille  <akim@epita.fr>
5556         * lib/autotest/general.m4: Change `tests?' into `groups?' in
5557         variable names when referring to a single test group, or to
5558         `suite' when referring to the whole test suite.
5559         `at_last_test' is removed: m4 compute at_format itself.
5560         (at_stdout, at_stder1, at_stderr): New variables.
5561         (AT_CHECK): Use them.
5563 2001-11-13  Akim Demaille  <akim@epita.fr>
5565         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
5566         in PATH.
5567         Create `testsuite.dir/003/run' instead of `testsuite.003'.
5568         Do it as soon as a test fails, don't wait till the end of the test
5569         suite.
5570         Don't remove $as_me.[0-9]*, since these files no longer exist.
5572 2001-11-13  Akim Demaille  <akim@epita.fr>
5574         * tests/tools.at: Use absolute paths, since we are no longer run
5575         in place.
5577 2001-11-13  Akim Demaille  <akim@epita.fr>
5579         Now that tests are running in their own private dir, there is no
5580         need to list the files to remove at the end of tests groups.
5582         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
5583         (AT_data_files, at_data_files): Remove.
5584         (AT_CLEANUP, AT_DATA): Simplify.
5585         (AT_INIT): Adjust.
5586         Remove the group dir if !debug && !failed.
5587         * tests/atspecific.m4: Adjust.
5589 2001-11-13  Akim Demaille  <akim@epita.fr>
5591         Start a new layout for Autotest: `testsuite' creates
5592         `testsuite.dir' in which the at-check-line etc. files are to be
5593         found, and `testsuite.dir/003' where the test group 3 is run.
5595         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
5596         at_check_line_file, at_format, at_test_normalized, at_group_dir
5597         are new variables.
5598         Create the directories.
5599         Use absolute paths for at- files.
5600         (AT_CHECK): Adjust.
5602 2001-11-11  Michael Matz  <matz@kde.org>
5604         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
5605         (m4_car2): New.
5606         (m4_car): Properly quote arguments.
5608 2001-11-13  Akim Demaille  <akim@epita.fr>
5610         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
5611         with stricter rules on LIBOBJS.
5613 2001-11-12  Paul Eggert  <eggert@twinsun.com>
5615         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
5616         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
5617         __PROTOTYPES too.
5619 2001-11-12  Akim Demaille  <akim@epita.fr>
5621         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
5623 2001-11-12  Akim Demaille  <akim@epita.fr>
5625         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
5626         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
5627         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
5628         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
5629         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
5630         specify to what the macro should be defined (typically to 1).
5632 2001-11-12  Akim Demaille  <akim@epita.fr>
5634         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
5635         From Jim Meyering.
5637 2001-11-12  Akim Demaille  <akim@epita.fr>
5639         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
5640         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
5641         definition used by Automake where LEX is +/- "${missing} lex" and
5642         `missing' itself contains variables.
5644 2001-11-12  Akim Demaille  <akim@epita.fr>
5646         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
5647         Now that M4sh pushes BODY, the comments were output at the end of
5648         the test suites.
5650 2001-11-08  Akim Demaille  <akim@epita.fr>
5652         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
5653         that we can trace macros from aclocal.m4.
5654         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
5655         obsoleted, and redirect to the former anyway.
5656         Reported by Ralf Corsepius.
5658 2001-11-08  Akim Demaille  <akim@epita.fr>
5660         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
5661         processed only if present.
5662         * tests/torture.at (Configuring subdirectories): Use autoreconf
5663         instead of successive calls to autoconf.
5664         Add a nonexistent subdirectory to exercise the patch above.
5665         Reported by Ralf Corsepius.
5667 2001-11-08  Kevin Ryde  <user42@zip.com.au>
5669         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
5670         doesn't accept .S files.
5672 2001-11-07  Akim Demaille  <akim@epita.fr>
5674         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
5675         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
5676         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
5677         * bin/autom4te.in (warn_forbidden): New.
5678         (handle_output): Use it.
5679         Read m4_pattern_forbid with messages.
5681 2001-11-05  Akim Demaille  <akim@epita.fr>
5683         * bin/autom4te.in (--normalize): Remove.
5684         * lib/autom4te.in: Adjust.
5686 2001-11-05  Akim Demaille  <akim@epita.fr>
5688         * tests/Makefile.am (testsuite): Rename this target as...
5689         ($(TESTSUITE)): this.
5690         From Nicolas Joly.
5692 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
5694         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
5695         the --prefix option, also remove it's argument.
5697 2001-11-05  Akim Demaille  <akim@epita.fr>
5699         * doc/autoconf.texi (testsuite Invocation): Update.
5700         (Writing testsuite.at): Update.
5702 2001-11-03  Akim Demaille  <akim@epita.fr>
5704         * doc/autoconf.texi: s/@code/@command/ where appropriate.
5706 2001-11-03  Akim Demaille  <akim@epita.fr>
5708         * lib/Autom4te/General.pm: (&catfile, &canonfile)
5709         (&file_name_is_absolute): New, wrappers around routines from
5710         File::Spec.
5711         Use and export them.
5712         (&find_configure_ac): Optionally take a directory where to look at.
5713         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
5714         the arguments.
5715         Default @ARGV to `.', not find_configure_ac.
5716         (&autoreconf): Argument is a directory.
5717         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
5718         * doc/autoconf.texi (autoreconf Invocation): Update.
5720 2001-11-03  Akim Demaille  <akim@epita.fr>
5722         * lib/Autom4te/General.pm (@export_vars, @export_subs)
5723         (@export_forward_subs): New.
5724         Add basename, dirname, and fileparse.
5725         (@EXPORT): Adjust.
5726         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
5727         Don't look for aclocal flags if we already know aclocal is not
5728         used.
5729         Move aclocal.m4t only if it exists.
5730         Reported by Ezra Peisach.
5732 2001-11-03  Akim Demaille  <akim@epita.fr>
5734         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
5735         passed on command line, defaulting to ./configure.ac if present.
5736         (&maybe_autoreconf, File::Find): Remove, unused.
5737         (&autoreconf): If autoconf is not used, don't try to trace.
5739 2001-11-02  Akim Demaille  <akim@epita.fr>
5741         * configure.ac: Bump to 2.52g.
5743 2001-11-02  Akim Demaille  <akim@epita.fr>
5745         Version 2.52f.
5747 2001-11-02  Akim Demaille  <akim@epita.fr>
5749         * config/config.guess, config/config.sub, doc/standards.texi:
5750         * config/lispdir.m4: Update from masters.
5751         * configure.ac: Bump to 2.52f.
5753 2001-11-02  Akim Demaille  <akim@epita.fr>
5755         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
5756         Don't run aclocal when aclocal.m4 is not from aclocal.
5757         From Ezra Peisach.
5758         Don't run libtoolize and gettextize if --install is not given.
5760 2001-11-01  Paul Eggert  <eggert@twinsun.com>
5762         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
5763         be invoked before _AS_LINENO_PREPARE.
5764         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
5765         than character ranges.
5767         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
5768         invoking AS_BASENAME.  Set the locale variables to 'C' if
5769         possible, as POSIX requires this to get the traditional
5770         behavior.
5771         * doc/autoconf.texi (Special Shell Variables): Describe the above.
5773 2001-10-31  Paul Eggert  <eggert@twinsun.com>
5775         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
5776         with {}, as that triggers a bug in Bash 2.05.
5778         (_AS_LINENO_PREPARE): Use Sed rather than
5779         Awk.  Fix the sed prepass to work even if there are multiple
5780         instances of $LINENO on the same line.  Do not substitute for
5781         other variables like $LINENOT.  Do not check file dates; such a
5782         check is unreliable on sufficiently fast machines, and removing
5783         the check makes the code simpler and more reliable.  Check for
5784         output and chmod failures.
5786         * doc/autoconf.texi (Special Shell Variables): Document
5787         the above.
5789 2001-10-31  Akim Demaille  <akim@epita.fr>
5791         * tests/Makefile.am (atconfig): Remove this target, Automake
5792         handles it now.
5794 2001-10-31  Akim Demaille  <akim@epita.fr>
5796         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
5797         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
5798         provided, while it is optional.
5799         * configure.ac: Adjust.
5801 2001-10-26  Paul Eggert  <eggert@twinsun.com>
5803         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
5804           lib/Autom4te/Struct.pm:
5805         Require Perl 5.005_03 instead of just 5.005, as some tests fail
5806         with 5.005_02.
5808         * doc/autoconf.texi (Special Shell Variables): Document some
5809         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
5811         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
5812         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
5813         eval $LINENO is not portable in practice.
5815 2001-10-24  Akim Demaille  <akim@epita.fr>
5817         * lib/Autom4te/General.pm (backname): New.
5819 2001-10-24  Akim Demaille  <akim@epita.fr>
5821         * m4/: Remove, merged into...
5822         * config/: here.
5824 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
5826         * doc/autoconf.texi (Shellology): Mention the problems with bash
5827         2.05's use of ANSI quoting in its `set' builtin.
5829 2001-10-22  Paul Eggert  <eggert@twinsun.com>
5831         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
5832         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
5833         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
5834         POSIX decided to standardize on the int flavor of strerror_r.
5835         Always do char* test, as there's no reason not to.
5836         Assign to a char* var, to catch strerror_r that returns int*.
5838         * doc/autoconf.texi (Particular Functions):
5839         Document the above changes.  Also, document the fact that
5840         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
5842         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
5844 2001-10-20  Akim Demaille  <akim@epita.fr>
5846         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
5847         the executable was missing from the log.
5849 2001-10-20  Akim Demaille  <akim@epita.fr>
5851         * lib/Autom4te/General.pm (&update_file): If destination is
5852         unchanged, remove the source.
5853         (&up_to_date_p): Don't be verbose, be debug.
5854         * bin/autoreconf.in: No longer support --m4dir.
5855         (&autoreconf): Display the full path of the configure.ac we are
5856         studying.
5857         Trace it only once.
5858         Be sure to honor --force with gettextize.
5859         Always run aclocal.
5860         * doc/autoconf.texi: Adjust.
5862 2001-10-20  Akim Demaille  <akim@epita.fr>
5864         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
5865         Remove, dead.
5866         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
5867         `intl' is already present, as it refuses unless --force.
5868         (&parse_args): Use -I, --include instead of the old Autoconf
5869         options.
5870         ($localdir, $autoconf_dir): Remove.
5871         (@include): New.
5872         (&maybe_autoreconf): New, to preserve $_ for File::Find.
5874 2001-10-19  Jens Petersen  <petersen@redhat.com>
5876         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
5877         * doc/autoconf.texi (Particular Programs): Likewise.
5879 2001-10-19  Akim Demaille  <akim@epita.fr>
5881         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
5882         file in @configure_input@.
5883         Don't mention `automatically' in addition to `generated'.
5884         * tests/torture.at (#define header templates): Adjust.
5886 2001-10-19  Akim Demaille  <akim@epita.fr>
5888         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
5889         comment, explain how to install automatic mode selection.
5890         From Russ Allbery.
5892 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
5894         * bin/autoreconf.in (autoreconf): Display the path to the
5895         configure.ac being studied.
5897 2001-10-18  Paul Eggert  <eggert@twinsun.com>
5899         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
5900         long, to work around a bug in the HP C compiler version HP92453-01
5901         B.11.11.23709.GP.
5903         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
5904         (AS_BASENAME_EXPR): New macro.
5905         (AS_BASENAME_SED): Do not assume GNU sed semantics.
5906         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
5907         and fall back on 'sed' only if the other two fail.  This makes
5908         AS_BASENAME act more like AS_DIRNAME.
5909         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
5910         contains white space.
5911         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
5912         Use AS_DIRNAME, since I think it's now DOS-friendly.
5913         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
5914         Allow "dirname //FOO" to return either / or //, as POSIX allows
5915         either behavior.
5917 2001-10-10  Akim Demaille  <akim@epita.fr>
5919         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
5920         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
5921         From Eric Sharkey.
5923 2001-10-10  Akim Demaille  <akim@epita.fr>
5925         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
5926         m4_define, since...
5927         (_AS_ECHO_N): AS_REQUIREs it.
5929 2001-10-10  Akim Demaille  <akim@epita.fr>
5931         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
5932         (AC_INCLUDES_DEFAULT): Move to...
5933         * lib/autoconf/headers.m4: here.
5934         * lib/autoconf/types.m4: Comment changes.
5935         * doc/autoconf.texi: Specify where the default includes are used
5936         in the macro prototypes.
5938 2001-10-09  Akim Demaille  <akim@epita.fr>
5940         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
5941         transition code.
5943 2001-10-08  Akim Demaille  <akim@epita.fr>
5945         * bin/autoreconf.in (&autoreconf): Remove debugging code.
5946         (&parse_args): Pass verbosity/debugging options to subtools when
5947         --debug, not when --verbose.
5948         * lib/autom4te.in (Autoreconf-preselections): New.
5949         (Autoconf): Use it.
5951 2001-10-08  Akim Demaille  <akim@epita.fr>
5953         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
5955 2001-10-08  Akim Demaille  <akim@epita.fr>
5957         * doc/autoconf.texi (autoreconf Invocation): Adjust.
5958         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
5960 2001-10-08  Akim Demaille  <akim@epita.fr>
5962         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
5963         (Syntax of the shell scripts): Don't.
5964         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
5965         bother with $force since...
5966         * lib/Autom4te/General.pm: does.
5968 2001-10-08  Akim Demaille  <akim@epita.fr>
5970         * bin/autoreconf.in: Rewrite in Perl.
5971         * configure.ac: Adjust.
5972         * lib/Autom4te/General.pm (&up_to_date_p): New.
5973         * bin/autom4te.in (&up_to_date_p): Use it.
5974         Rename as...
5975         (&up_to_date): this.
5977 2001-10-08  Akim Demaille  <akim@epita.fr>
5979         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
5980         (m4_list_cmp): Use $0 to reinvoke yourself.
5981         (m4_patsubsts): New.
5982         (m4_strip, m4_version_unletter): Use it.
5983         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
5985 2001-10-08  Akim Demaille  <akim@epita.fr>
5987         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
5988         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
5989         * lib/autoconf/types.m4, lib/autotest/general.m4,
5990         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
5991         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
5992         m4_bregexp, m4_bpatsubst, and m4_bmatch.
5993         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
5995 2001-10-08  Akim Demaille  <akim@epita.fr>
5997         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
5999 2001-10-08  Akim Demaille  <akim@epita.fr>
6001         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
6002         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
6003         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
6004         * tests/tools.at, tests/m4sh.at: Use it.
6005         * tests/m4sh.at: Don't rely on Autoconf macros.
6006         (DIRNAME_TEST): Also exercise the expr variant.
6007         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
6008         preferred M4sugar extension is now `.4s'.
6009         * tests/README: Remove.
6011 2001-10-08  Akim Demaille  <akim@epita.fr>
6013         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
6014         (m4_provide_if): this.
6015         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
6016         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
6017         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
6018         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
6020 2001-10-08  Akim Demaille  <akim@epita.fr>
6022         Use `add-log-current-defun-function' for ChangeLog creation.
6023         Suggested by Tom Tromey.
6025         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
6026         (autotest-mode): Adjust.
6027         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
6028         'comment-region onto `C-c ;'.
6029         Comments are `#', not `dnl'.
6030         (autoconf-current-defun): New.
6031         (autoconf-font-lock-keywords): Recognize `m4_defun'.
6033 2001-10-08  Akim Demaille  <akim@epita.fr>
6035         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
6036         * lib/m4sugar/m4sh.m4: here.
6037         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
6038         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
6039         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
6040         include handle the m4_pattern_*, no longer push the
6041         BODY diversion nor set the /bin/sh line, AS_INIT does it.
6042         * lib/autotest/general.m4 (AT_INIT): Likewise.
6043         * tests/base.at: Adjust the tests to use AS_INIT.
6044         * tests/tools.at (AT_DATA_FORBIDDEN): New.
6045         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
6046         Autoconf.
6048 2001-10-07  Paul Eggert  <eggert@twinsun.com>
6050         * doc/autoconf.texi (config.status Invocation):
6051         CONFIG_SHELL defaults to a shell that supports LINENO if available.
6053         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
6054         shell does not support LINENO, and if CONFIG_SHELL is unset or
6055         empty, and if we can find a shell that does support LINENO,
6056         then set CONFIG_SHELL to that shell and then re-execute
6057         ourselves with CONFIG_SHELL.
6059 2001-10-05  Paul Eggert  <eggert@twinsun.com>
6061         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
6062         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
6063         build of $(TESTSUITE).
6065 2001-10-05  Akim Demaille  <akim@epita.fr>
6067         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
6068         iff we are a bareword.
6069         Reported by Raja R Harinath.
6071 2001-10-05  Akim Demaille  <akim@epita.fr>
6073         * tests/m4sh.at (LINENO): New.
6074         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
6075         PATH_SEPARATOR before using it.
6076         Fix the absolute path case/esac pattern.
6077         Provide $0 as fallback for as_myself.
6078         Reported by Raja R Harinath.
6080 2001-10-05  Akim Demaille  <akim@epita.fr>
6082         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
6083         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
6085 2001-10-05  Akim Demaille  <akim@epita.fr>
6087         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
6088         (AS_SHELL_SANITIZE): here.  Use it.
6089         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
6090         From Paul Eggert.
6092 2001-10-04  Akim Demaille  <akim@epita.fr>
6094         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
6095         combination of Awk and sed to replace $LINENO.
6097 2001-10-02  Paul Eggert  <eggert@twinsun.com>
6099         * doc/autoconf.texi (Limitations of Builtins): You can't use
6100         "source"; it's not portable.  Remove confusing and
6101         somewhat-incorrect example involving "." and "/".
6103         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
6104         compatibility with POSIX shells.
6106 2001-10-02  Akim Demaille  <akim@epita.fr>
6108         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
6109         instead of exec'ing to preserve $0 and $@.
6111 2001-10-01  Akim Demaille  <akim@epita.fr>
6113         * tests/testsuite (AT_INIT) <at_pass_list>: New.
6114         Don't run twice the same test.
6116 2001-10-01  Akim Demaille  <akim@epita.fr>
6118         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
6119         No longer output the list of tests.
6120         <--list>: New option.
6121         <--full-help>: Remove.
6122         Complete the short/long options duality.
6123         Various small adjustments.
6125 2001-10-01  Akim Demaille  <akim@epita.fr>
6127         * doc/autoconf.texi: Use @kbd for user input.
6128         Always use `$' as shell prompt.
6130 2001-09-30  Paul Eggert  <eggert@twinsun.com>
6132         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
6133         Don't use nested parenthesization.  This patch was originally
6134         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
6135         but somehow it didn't get incorporated then.
6136         * doc/autoconf.texi (Limitations of Usual Tools):
6137         Clarify remark about sed and nested parenthesization.
6139         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
6140         Report an error if the size cannot be determined even though
6141         the type exists.
6142         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
6143         Check for `expr' arithmetic overflow, and for compilation failure,
6144         and invoke a new argument $4 if either is discovered.
6145         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
6146         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
6148 2001-09-28  Akim Demaille  <akim@epita.fr>
6150         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
6151         * m4/lispdir.m4: New.
6152         * aclocal.m4, configure.ac: Adjust.
6154 2001-09-28  Akim Demaille  <akim@epita.fr>
6156         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
6157         (AT_TESTED): this.
6158         (AT_INIT): More the wrapped section to where it will be expanded.
6159         Output `AT_tested' only when existing.
6160         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
6162 2001-09-27  Akim Demaille  <akim@epita.fr>
6164         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
6165         generates too many bug reports.
6167         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
6168         status when executing the ACTION-IF-FALSE.
6169         * tests/base.at (AC_TRY_*): Rename as...
6170         (AC_TRY_COMMAND): this.
6171         (AC_RUN_IFELSE): New.
6172         * tests/compile.at (Extensions, C keywords)
6173         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
6174         (Broken/missing compilers, AC_PROG_CPP with warnings)
6175         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
6176         * tests/c.at (Extensions, C keywords)
6177         (Broken/missing compilers, AC_PROG_CPP with warnings)
6178         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
6179         (AC_PROG_CPP requires AC_PROG_CC): here and...
6180         * tests/fortran.at (GNU Fortran 77): there.
6181         * doc/autoconf.texi (autoconf Invocation): Fix the example:
6182         AC_TRY_RUN is about compilation, not shell commands.
6183         (Test Programs): AC_TRY_RUN works as used to be advertised.
6185 2001-09-27  Akim Demaille  <akim@epita.fr>
6187         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
6188         Raja R Harinath:
6189         Be sure to detect when $LINENO always returns the same value.
6190         Look for the original script, basename($0) is certainly not
6191         enough.
6192         Pass the CLI arguments to `$as_me.lineno'.
6194 2001-09-25  Akim Demaille  <akim@epita.fr>
6196         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
6197         Be sure the close and reopen the LOG fd before and after using tee
6198         to extend the log.
6199         <at_tests_pattern>: Adjust to the new format of at_help_all.
6201 2001-09-23  Akim Demaille  <akim@epita.fr>
6203         * bin/autom4te.in (parse_args): There can be several invocations
6204         of --language now.
6206 2001-09-23  Akim Demaille  <akim@epita.fr>
6208         * doc/autoconf.texi (Top): Wrap in @ifnottex.
6210 2001-09-23  Akim Demaille  <akim@epita.fr>
6212         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
6213         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
6214         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
6215         builddir, buildpath, top_builddir, and top_buildpath.
6216         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
6217         the current directory.
6218         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
6219         variables *before* changing the current directory.
6220         Skip nonexistent dirs.
6221         * doc/autoconf.texi (Preset Output Variables): Document these
6222         variables.
6224         * lib/autotest/general.m4: Do not reset AT_victims.
6225         Don't compute at_srcdir nor at_top_srcdir.
6227         * tests/tools.at: Hence use top_srcdir.
6229         * tests/Makefile.am, tests/autoconf, tests/autoheader,
6230         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
6231         Remove.
6232         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
6233         * tests/wrapsh.in, tests/autoupdate.in: New.
6234         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
6235         * configure.ac: Build the position independent wrappers.
6237         * man/Makefile.am: Now that test wrappers are position
6238         independent, use them and drop dark envvar magic.
6240 2001-09-23  Akim Demaille  <akim@epita.fr>
6242         * doc/autoconf.texi (Common Shell Constructs): Rename as...
6243         (Programming in M4sh): this.
6244         Promote to @section.
6246 2001-09-23  Akim Demaille  <akim@epita.fr>
6248         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
6249         Pass $at_debug_args to the rerun test suite.
6250         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
6251         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
6252         From Paul Eggert.
6254 2001-09-23  Akim Demaille  <akim@epita.fr>
6256         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
6258 2001-09-23  Akim Demaille  <akim@epita.fr>
6260         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
6261         over-escaping.
6263 2001-09-23  Akim Demaille  <akim@epita.fr>
6265         * lib/Autom4te/General.pm (&debug): New.
6266         * bin/autom4te.in ($language): Move to...
6267         (parse_args): here.
6268         Handle --language in languages.
6269         * lib/autom4te.in (Automake-selections, Autoheader-selections)
6270         (Autoscan-selections): New.
6271         (Autoconf): Adjust.
6273 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
6275         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
6276         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
6277         to match current versions from CVS Automake.
6279 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
6281         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
6282         for $LINENO.
6284 2001-09-22  Akim Demaille  <akim@epita.fr>
6286         * lib/autoconf/autotest.m4: Create `package.m4'.
6287         * tests/Makefile.am (package.m4): Remove.
6289 2001-09-22  Akim Demaille  <akim@epita.fr>
6291         Rely on `$LINENO' when possible instead of `__oline__'.
6293         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
6294         `$LINENO' support replacement when not supported.
6295         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
6296         them explicitly to be sure they are not output before this section
6297         (via m4_require).  Cosmetic only.
6298         * lib/autoconf/c.m4, lib/autoconf/general.m4,
6299         * lib/autoconf/programs.m4: Replace all the occurrences of
6300         `__oline__' with `$LINENO'.
6301         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
6303 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
6305         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
6306         character (u: -> ue) in a code comment.
6307         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
6308         it works.
6310 2001-09-21  Akim Demaille  <akim@epita.fr>
6312         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
6313         Suggested by Jim Meyering.
6315 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6317         * lib/autoconf/programs.m4: Use extensions listed in
6318         $ac_executable_extensions when looking for programs.
6320 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6322         * lib/autoconf/general.m4: Fix a small Englisho.
6323         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
6324         setting up ac_dir_suffix and ac_top_builddir.
6325         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
6327 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6329         * doc/autoconf.texi (File System Conventions): Clarify the use of
6330         PATH_SEPARATOR.
6331         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
6332         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
6333         be used instead of ':'.
6334         * lib/autotest/general.m4: Replace occurrences of ':' in
6335         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
6337 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6339         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
6340         arguments.  Fixed a typo.
6342 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6344         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
6345         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
6347 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6349         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
6350         * bin/autoupdate.in: Ditto.
6351         * bin/autoheader.in: Reworded a few comments.
6352         * bin/autoconf.in: Reworded help text for a few options.
6353         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6354         * bin/autoscan.in, bin/autoupdate.in: Ditto.
6356 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
6358         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
6359         already have $file).  Set output files to binary mode (helps avoid
6360         CR issues on DOSish systems).
6362 2001-09-19  Akim Demaille  <akim@epita.fr>
6364         * lib/autotest/general.m4: Englishoes.
6365         From Tim Van Holder and Alexey Mahotkin.
6367 2001-09-18  Paul Eggert  <eggert@twinsun.com>
6369         * doc/autoconf.texi (Common Shell Constructs): New node,
6370         documenting AS_DIRNAME.
6371         (Limitations of Usual Tools): Refer to it when discussing dirname.
6372         Also, update discussion of POSIX standard to reflect latest draft.
6374         * lib/autoconf/c.m4:
6375         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
6377         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
6378         Do not pass a first argument with leading '-'
6379         to expr, by parenthesizing initial integers that might be negative.
6381         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
6382         now merely checks whether it is an error to pass an argument
6383         to getpgrp.
6385         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
6386         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
6387         whether it is a (compile-time) error to pass an argument to
6388         getpgrp.  This simpler test supports the revised documentation,
6389         and is all that AC_FUNC_GETPGRP's users really need.
6391 2001-09-18  Akim Demaille  <akim@epita.fr>
6393         * doc/autoconf.texi (Limitations of Make) <$<>: New.
6395 2001-09-18  Akim Demaille  <akim@epita.fr>
6397         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
6398         `{}'.
6399         * lib/autotest/general.m4 (AT_INIT): Adjust.
6401 2001-09-18  Paul Wagland  <paul@wagland.net>
6403         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
6404         correctly.
6405         Add test for AS_BASENAME.
6406         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
6407         added test. It now correctly handles /1/2/3/, returning '3' not ''.
6408         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
6409         * tests/base.at: Fixed the expected responses. The old ones were
6410         one line out...
6411         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
6412         the documentation claims it should (and how it behaved in 2.13).
6414 2001-09-18  Akim Demaille  <akim@epita.fr>
6416         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
6417         the AC_CONFIG_COMMANDS invocation.
6418         This also solves the name clash problems.
6419         Don't set the package's ID.
6420         * lib/m4sugar/Makefile.am (version.m4): Revamp.
6421         No longer to be shipped.
6422         (version.in): Remove.
6423         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
6424         * lib/autoconf/status.m4: Adjust.
6425         Use `m4_PACKAGE_STRING'.
6426         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
6427         the only optional argument is the name of the test suite.
6428         Expect `package.m4' to define the package signature.
6429         * lib/autom4te.in (Autotest): Add `package.m4?'.
6430         * tests/Makefile.am (package.m4): New.
6431         * tests/suite.at: ifnames is a victim.
6433 2001-09-18  Akim Demaille  <akim@epita.fr>
6435         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
6436         AC_LIBSOURCE, AC_CONFIG_FILES.
6437         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
6438         program version string doesn't match the package's.
6439         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
6440         after `(cached)'.
6442 2001-09-17  Paul Eggert  <eggert@twinsun.com>
6444         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
6445         Allow expression to return any value that can fit into unsigned long
6446         (not int, as before).  Check for output errors.
6448 2001-09-17  Bruno Haible <haible@ilog.fr>
6450         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
6451         Always include <stdio.h> and <stdlib.h>. Evaluate
6452         the expression in an extra function before these includes. Call
6453         fprintf "%d" only after ensuring the argument is of type 'int'.
6454         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
6456 2001-09-17  Paul Eggert  <eggert@twinsun.com>
6458         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
6459         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
6460         fatal errors, and AC_CHECK_LIB causes it to include libraries even
6461         when they don't exist.
6463         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
6464         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
6465         need it.
6467         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
6468         version with the version used by fileutils 4.1, except use
6469         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
6470         we don't need it.
6472         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
6474 2001-09-13  Akim Demaille  <akim@epita.fr>
6476         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
6477         _first_.
6478         Reported by Gerrit P. Haase.
6480 2001-09-13  Akim Demaille  <akim@epita.fr>
6482         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
6483         m4_defn'ing is valid.
6485 2001-09-13  Akim Demaille  <akim@epita.fr>
6487         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
6488         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
6489         Use it.
6491 2001-09-13  Akim Demaille  <akim@epita.fr>
6493         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
6494         m4_match.
6495         (m4_re_escape): New.
6496         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
6497         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
6498         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
6499         Likewise.
6500         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
6501         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
6502         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
6503         AT_tests_all for consistency.
6504         Set at_victims.
6505         (AT_VICTIMS): Similar to AT_KEYWORDS.
6506         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
6508 2001-09-13  Akim Demaille  <akim@epita.fr>
6510         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
6512 2001-09-13  Akim Demaille  <akim@epita.fr>
6514         * lib/autotest/general.m4 (AT_INIT): Create and remove
6515         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
6516         test suites can cohabit.
6518 2001-09-13  Akim Demaille  <akim@epita.fr>
6520         * tests/mktests.sh: Don't output banners for empty test files.
6522 2001-09-13  Akim Demaille  <akim@epita.fr>
6524         Test suites can be run independently of configure.
6526         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
6527         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
6528         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
6529         ECHO_N etc.
6530         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
6531         and at_c.
6532         * lib/autotest/general.m4: Use ECHO_*.
6534 2001-09-13  Akim Demaille  <akim@epita.fr>
6536         * bin/ifnames.in: Rewrite in Perl.
6537         * configure.ac: Don't look for AWK.
6538         * tests/tools.at (AWK portability): Remove.
6539         (Syntax of the shell scripts): Don't check ifnames.
6540         (AT_CHECK_PERL_SYNTAX): New.
6541         (Syntax of the Perl scripts): Check ifnames.
6542         * tests/ifnames: New.
6544 2001-09-13  Akim Demaille  <akim@epita.fr>
6546         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
6547         test group titles.
6548         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
6549         Remove all the other keywords.
6551 2001-09-10  Akim Demaille  <akim@epita.fr>
6553         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
6554         SETUP: no longer used.
6555         Support -k, --keywords.
6556         <at_help>: Be `no', `short', or `long'.
6557         <at_help_all>: New variable.
6558         (AT_KEYWORDS): New.
6559         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
6560         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
6561         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
6562         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
6563         No longer fill the HELP diversion.
6564         (AT_CLEANUP): Use them.
6565         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
6566         (m4_list_append): Remove.
6568         Spread a few keywords in the Autoconf test suite.
6570 2001-09-10  Akim Demaille  <akim@epita.fr>
6572         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
6573         PATH_SEPARATOR, let M4sh compute it.
6574         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
6575         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
6576         Move to...
6577         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
6578         Simplify when the path is not a literal.
6579         (AS_UNAME): Use it to report PATH.
6580         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
6581         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
6582         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
6583         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
6584         normalize the path, and to look for victims.
6585         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
6586         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
6588 2001-09-07  Akim Demaille  <akim@epita.fr>
6590         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
6591         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
6592         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
6593         related variables into `at_package_*'.
6594         * lib/autotest/general.m4 (AT_VICTIMS): New.
6595         (AT_INIT): Adjust for stand-alone/embedded test suites.
6596         (AS_MESSAGE_LOG_FD): Define and use it.
6597         * tests/suite.at (AT_VICTIMS): Use it.
6598         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
6599         at_version.
6601 2001-09-07  Akim Demaille  <akim@epita.fr>
6603         Move toward possibly stand-alone test suites.
6605         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
6606         in addition, it introduces useless differences in logs.
6607         (AT_INIT): Let atconfig and atlocal be both optional.
6608         Adjust PATH computation.
6609         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
6611 2001-09-07  Akim Demaille  <akim@epita.fr>
6613         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
6614         m4sugar/version.m4.
6616 2001-09-05  Akim Demaille  <akim@epita.fr>
6618         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
6619         to avoid GCC warnings.
6620         From Uwe Seimet.
6622 2001-09-05  Akim Demaille  <akim@epita.fr>
6624         * bin/autom4te.in: --language is -l, not -s.
6626 2001-09-05  Akim Demaille  <akim@epita.fr>
6628         Be ready to handle filenames as stupid as `dnl.at', for if even
6629         the maintainer is dumb enough to do that...
6631         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
6632         excellence in M4 quotation: consider `__file__' is active.
6634         And BTW, when invoking m4, pass the --include in the right order:
6635         the wrong one.
6637         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
6638         4m.
6640 2001-09-05  Akim Demaille  <akim@epita.fr>
6642         * lib/Autom4te/XFile.pm: New lib file.
6643         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
6644         * bin/autoheader.in: Use it.
6646 2001-09-05  Akim Demaille  <akim@epita.fr>
6648         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
6649         defined.
6651 2001-09-05  Akim Demaille  <akim@epita.fr>
6653         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
6654         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
6656         * bin/autoscan.in: Use `getopt' and `find_files' etc.
6657         Add -I, --include support.
6658         * doc/autoconf.texi (autoscan Invocation): Adjust.
6660 2001-09-05  Akim Demaille  <akim@epita.fr>
6662         CVS GNU M4 doesn't like `undefine(undefined)'.
6664         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
6665         New, extracted from main.
6666         Use IO::File wherever possible.
6667         (input.m4): Be constant, use -I instead of hard coding $tmp.
6668         Therefore be a quoted heredoc.
6669         Don't invoke `_au_disable', since ac was not loaded, but just
6670         `unm4.m4'.
6672 2001-08-31  Akim Demaille  <akim@epita.fr>
6674         Version 2.52d.
6676 2001-08-31  Akim Demaille  <akim@epita.fr>
6678         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
6679         previous patch.
6680         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
6682 2001-08-31  Akim Demaille  <akim@epita.fr>
6684         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
6685         serious problems handling heredocs in heredocs.
6686         Reported by Nicolas Joly.
6688 2001-08-31  Akim Demaille  <akim@epita.fr>
6690         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
6691         (Making testsuite Scripts): Update.
6693 2001-08-31  Akim Demaille  <akim@epita.fr>
6695         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
6697 2001-08-31  Akim Demaille  <akim@epita.fr>
6699         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
6700         (testsuite Scripts): There is no such thing as `atconfig.in'.
6701         And actually one diagram is missing: test suite runtime.
6703 2001-08-31  Akim Demaille  <akim@epita.fr>
6705         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
6706         inverse order.
6708 2001-08-31  Akim Demaille  <akim@epita.fr>
6710         * bin/autoupdate.in (@include): `installcheck' revealed the path
6711         to m4sugar was lacking!
6713 2001-08-31  Akim Demaille  <akim@epita.fr>
6715         * man/Makefile.am (.x.1): We really have to pass
6716         autom4te_perllibdir.
6718 2001-08-31  Akim Demaille  <akim@epita.fr>
6720         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
6721         debug scripts, in particular passing explicitly listed tests to
6722         run is stupid.
6724 2001-08-31  Akim Demaille  <akim@epita.fr>
6726         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
6727         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
6728         Use directly autom4te, not autoconf.
6729         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
6731 2001-08-31  Akim Demaille  <akim@epita.fr>
6733         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
6734         * bin/autoheader.in (%symbol): Strip arguments of macros.
6736 2001-08-31  Akim Demaille  <akim@epita.fr>
6738         * doc/autoconf.texi: Catch up -I, --include changes.
6740 2001-08-31  Akim Demaille  <akim@epita.fr>
6742         * bin/autom4te.in (&parse_args): Die on unknown languages.
6743         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
6744         need for autoconf.
6745         Promote --include over --macrodir and other obsolete options.
6747 2001-08-31  Akim Demaille  <akim@epita.fr>
6749         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
6750         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
6751         * bin/autom4te.in ($autoconf): Pass --force.
6752         `print $out' doesn't print `$_' but `$out'.
6753         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
6754         (autoheader): Pass --force since the test suite goes too fast for
6755         the time stamps.
6756         Adjust to the new autoheader messages.
6758 2001-08-31  Akim Demaille  <akim@epita.fr>
6760         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
6761         Check the completeness of the #template.
6762         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
6763         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
6764         invocation.
6766 2001-08-31  Akim Demaille  <akim@epita.fr>
6768         * lib/Autom4te/General.pm (&find_file, &update_file): New.
6769         * bin/autoupdate.in, bin/autoheader.in: Adjust.
6770         Drop AC_MACRODIR dead for real.
6771         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
6772         `autoheader: `config.hin' is created'.
6773         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
6775 2001-08-31  Akim Demaille  <akim@epita.fr>
6777         * bin/autoheader.in: Rewrite in Perl.
6778         * tests/autoheader: Adjust.
6780 2001-08-31  Akim Demaille  <akim@epita.fr>
6782         * bin/autoconf.in (--include, -I): New option.
6783         Map --localdir, --autoconf-dir onto it.
6784         Forward autom4te's options instead of interpreting them.
6785         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
6786         There is no such envvar since the inception of autom4te.cfg.
6787         * bin/autom4te.in (&parse_args): Uniquify `@include'.
6788         * bin/autoupdate.in: Adjust, and perform more control.
6789         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
6790         * tests/autoconf: Dittowise.
6792 2001-08-31  Akim Demaille  <akim@epita.fr>
6794         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
6795         * bin/autom4te.in (&find_file): Support `FILE?' standing for
6796         optionally `FILE'.
6797         Use -e, not -f, since /dev/null for instance is OK.
6798         (&parse_args): Adjust.
6799         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
6801 2001-08-31  Akim Demaille  <akim@epita.fr>
6803         * configure.ac: Also find tested executables in bin.
6804         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
6805         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
6806         installed peer executables, only PATH is allowed to resolve it.
6807         Pass `autoconf_dir' via options, not via invisible envvars.
6808         * lib/Autom4te/General.pm (&find_peer): Remove.
6809         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
6810         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
6811         * man/Makefile.am: Let help2man rely on PATH instead of trying to
6812         find the executables for it.
6813         * tests/Makefile.am: Major cleanup.  Too lazy to document...
6814         * tests/atlocal.in: Remove all the obscure envvar manipulations.
6815         We only need PERL.
6816         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
6817         indeed related to running the test suite, while passing
6818         --autoconf-dir and others is related to running non installed
6819         Autoconf executables.  So don't do that, leave it to...
6820         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
6821         * tests/autoscan: New.
6822         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
6823         refer to library files: rely on --language.
6825 2001-08-29  Akim Demaille  <akim@epita.fr>
6827         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
6828         s/--set/--language/.
6830 2001-08-29  Akim Demaille  <akim@epita.fr>
6832         * doc/autoconf.texi: Strip the @nodes.
6833         Suggested by Paul Eggert.
6834         (Initializing configure): Typo.
6836 2001-08-29  Akim Demaille  <akim@epita.fr>
6838         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
6839         Suggested by Paul Eggert.
6841 2001-08-29  Akim Demaille  <akim@epita.fr>
6843         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
6844         download in a tmp dir.
6846 2001-08-29  Akim Demaille  <akim@epita.fr>
6848         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
6849         case insensitive OSes out there :(
6850         From Tim Van Holder.
6852 2001-08-29  Akim Demaille  <akim@epita.fr>
6854         * lib/autom4te.in: New.
6855         * lib/Makefile.am (edit, autom4te.cfg): New.
6856         * bin/autom4te.in (BEGIN): Simplify.
6857         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
6858         (&load_configuration): New.  Use it.
6859         (&parse_args): Support --mode, --set, and --melt.
6860         * bin/autoconf.in: Simplify and adjust.
6861         * tests/Makefile.am (AUTOMAKE): Use --set.
6862         * tests/atlocal.in: Adjust.
6863         * BUGS: distcheck and check are weak.
6865 2001-08-29  Akim Demaille  <akim@epita.fr>
6867         * lib/autotest/general.m4: Use
6868                 foo=`(command) 2>/dev/null`
6869         not
6870                 foo=`command` 2>/dev/null
6871         (at-devnull): Rename as...
6872         (AT-devnull): this.
6873         (--clean): Remove AT-* files too.
6874         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
6875         Reported by Nicolas Joly.
6877 2001-08-28  Akim Demaille  <akim@epita.fr>
6879         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
6880         quotes inside single quotes.
6881         Reported by Nicolas Joly.
6883 2001-08-28  Kevin Ryde  <user42@zip.com.au>
6885         * doc/autoconf.texi (Function Portability): Mention C right shifts.
6887 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
6889         * lib/autotest/general.m4: Reword some messages.
6890         (AT_INIT): Check for the `times' builtin before using it.
6891         Support test ranges as arguments to the testsuite.
6892         Have -e imply -d as the help text suggested.
6894 2001-08-27  Akim Demaille  <akim@epita.fr>
6896         * Makefile.maint: Formatting changes.
6897         (do-po-update, po-update, cvs-update, update): New targets.
6898         (AMTAR): Remove.
6900 2001-08-27  Akim Demaille  <akim@epita.fr>
6902         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
6903         <at_cmd_line>: New.
6904         Pass it to debug-*.sh scripts.
6905         <AUTOTEST_PATH>: May contain absolute dir names.
6907 2001-08-27  Akim Demaille  <akim@epita.fr>
6909         * lib/autotest/general.m4 (AT_INIT): Log the command line.
6910         Support `VAR=VAL' as arguments.
6911         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
6912         may be set via the command line.
6914 2001-08-27  Akim Demaille  <akim@epita.fr>
6916         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
6917         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
6918         first the build dirs, then the src dirs.
6919         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
6921 2001-08-27  Akim Demaille  <akim@epita.fr>
6923         * lib/autotest/general.m4 (AT_INIT): Output the definition of
6924         at_data_files earlier.
6925         (--clean, -c): New option.
6926         * tests/Makefile.am: Use this option.
6928 2001-08-27  Akim Demaille  <akim@epita.fr>
6930         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
6931         `ac_top_builddir' to mimic Automake's vocabulary, which much more
6932         readable.
6933         Adjust callers.
6934         * doc/autoconf.texi (Configuration Actions): Document the vars
6935         available in commands.
6936         Emphasize the risks of collisions in init-cmds.
6938 2001-08-27  Akim Demaille  <akim@epita.fr>
6940         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
6941         (Initializing configure): this new node.
6943 2001-08-27  Akim Demaille  <akim@epita.fr>
6945         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
6947 2001-08-27  Akim Demaille  <akim@epita.fr>
6949         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
6950         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
6951         New file.
6952         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
6954 2001-08-27  Akim Demaille  <akim@epita.fr>
6956         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
6957         to...
6958         * lib/autoconf/autoheader.m4: this new file.
6959         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
6960         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
6961         Move to...
6962         * lib/autoconf/autoupdate.m4: this new file.
6964 2001-08-27  Akim Demaille  <akim@epita.fr>
6966         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
6967         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
6968         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
6969         -> ac_dir).
6970         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
6971         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
6973 2001-08-27  Akim Demaille  <akim@epita.fr>
6975         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
6976         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
6977         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
6978         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
6979         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
6980         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
6981         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
6982         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
6983         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
6984         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
6985         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
6986         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
6987         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
6988         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
6989         (_AC_OUTPUT_SUBDIRS): Move to...
6990         * lib/autoconf/status.m4: this new file.
6991         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
6992         * tests/Makefile.am, tests/suite.at: Adjust.
6994 2001-08-27  Akim Demaille  <akim@epita.fr>
6996         Automake 1.5.
6998         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
6999         (AMTAR): Help automake define it.
7000         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
7001         needed, 1.5 can have a macro and a target with the same name.
7002         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
7003         * m4/strip.m4: New.
7004         * m4/init.m4, m4/sanity.m4: Update.
7005         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
7006         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
7007         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
7008         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
7010 2001-08-27  Akim Demaille  <akim@epita.fr>
7012         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
7014         * lib/autoconf/version.in: Remove.
7015         * lib/m4sugar/version.in: New.
7016         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
7017         Adjust callers.
7018         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
7019         the name of the directory they're in, instead of the filename,
7020         since version.m4 is now in m4sugar, but m4_acversion must not be
7021         classified as an Autoconf macro.
7022         ($input_m4): Don't qualify the path to m4sugar.
7023         Rather, pass autoconf_dir to m4.
7024         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
7025         * tests/suite.at: Require 2.52c.
7027 2001-08-27  Akim Demaille  <akim@epita.fr>
7029         testsuite.log should include config.log.
7031         * lib/autotest/autotest.m4: New.
7032         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
7033         * tests/suite.at : Adjust.
7034         (AT_INIT): Log config.log.
7035         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
7036         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
7037         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
7038         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
7039         of config.log on traps.
7040         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
7041         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
7042         for config.status'.
7043         Open the log as soon as possible.
7044         Use the same log introduction as configure's.
7046 2001-08-22  Paul Eggert  <eggert@twinsun.com>
7048         * doc/autoconf.texi (Indices): New node.
7049         Move indices out of the top level menu and into this submenu.
7051 2001-08-22  Akim Demaille  <akim@epita.fr>
7053         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
7054         AC_TRY_COMMAND.
7055         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
7057 2001-08-22  Akim Demaille  <akim@epita.fr>
7059         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
7060         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
7061         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
7062         * lib/autoconf/programs.m4: here.
7063         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
7064         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
7065         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
7066         * lib/autoconf/programs.m4: here.
7067         (_AC_DECL_YYTEXT): Rename as...
7068         (_AC_PROG_LEX_YYTEXT_DECL): this.
7069         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
7070         * tests/Makefile.am, tests/suite.am: Adjust.
7072 2001-08-22  Akim Demaille  <akim@epita.fr>
7074         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
7075         Move to...
7076         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
7077         here.
7078         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
7079         * lib/autoconf/functions.m4: here.
7080         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
7081         (AH_CHECK_LIB): Move to...
7082         * lib/autoconf/libs: this new file.
7083         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
7084         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
7085         * lib/autoconf/libs.m4: here.
7086         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
7088 2001-08-22  Akim Demaille  <akim@epita.fr>
7090         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
7091         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
7092         (AC_SITE_LOAD): Better logging of config.site.
7094 2001-08-20  Akim Demaille  <akim@epita.fr>
7096         * configure.ac (AT_CONFIG): Fix the path.
7097         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
7098         can be used.
7100 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
7102         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
7103         program with AC_LANG_PROGRAM before feeding it to
7104         AC_COMPILE_IFELSE.  Cleanup grep usage.
7106 2001-08-20  Akim Demaille  <akim@epita.fr>
7108         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
7109         * NEWS, README, README-alpha, TODO, tests/README: This package is
7110         `Autoconf', not `autoconf' (the executable).
7112 2001-08-20  Akim Demaille  <akim@epita.fr>
7114         Info readers seem to need `Index' in the index node title :(
7116         * doc/autoconf.texi: Reverse the 2001-08-15 change which
7117         simplified index node names.
7119 2001-08-20  Akim Demaille  <akim@epita.fr>
7121         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
7122         arguments are not literals.
7123         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
7124         Specify the output variables, and macros defined.
7126 2001-08-20  Akim Demaille  <akim@epita.fr>
7128         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
7129         (Examining Syntax) <AC_TRY_COMPILE>
7130         (Examining Libraries) <AC_TRY_LINK>
7131         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
7132         their arguments.
7133         Reported by Werner Lemberg.
7135 2001-08-20  Akim Demaille  <akim@epita.fr>
7137         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
7138         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
7139         Load atlocal late enough to dump it in the log.
7140         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
7142 2001-08-20  Akim Demaille  <akim@epita.fr>
7144         * tests/torture.at (Configuring subdirectories): New test.
7145         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
7146         looking for.
7147         * m4/atconfig.m4: Be sure the let $[0] be expandable.
7148         (top_srcdir): Fix its computation.
7150 2001-08-20  Akim Demaille  <akim@epita.fr>
7152         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
7153         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
7154         test suite lives.
7155         Create `atconfig' automagically.
7156         Configure atlocal.in if present.
7157         * tests/atconfig.in: Remove.
7158         * tests/atlocal.in: New.
7159         * tests/Makefile.am: Adjust.
7161 2001-08-20  Akim Demaille  <akim@epita.fr>
7163         Huh!?!?!  There are still some user EOF tags used, which prevents
7164         their use in AC_CONFIG_COMMANDS for instance...
7166         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
7167         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
7168         `_CSEOF', or `_ATEOF', as appropriate.
7169         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
7170         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
7172 2001-08-20  Akim Demaille  <akim@epita.fr>
7174         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
7175         * tests/semantics.at, tests/tools.at, tests/torture.at:
7176         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
7178 2001-08-20  Akim Demaille  <akim@epita.fr>
7180         Autotest invokes M4sh's initialization.
7182         * lib/autotest/general.m4: Adjust the diversion names.
7183         (AT_INIT): Run AS_INIT.
7184         Use the BINSH diversion to invoke /bin/sh.
7185         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
7186         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
7188 2001-08-20  Akim Demaille  <akim@epita.fr>
7190         Let M4sh have its own diversions.
7192         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
7193         (_m4_divert(NOTICE)): Rename as...
7194         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
7195         (_m4_divert(HEADER-COMMENT)): these.
7196         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
7197         (_m4_divert(NOTICE)): New, for Libtool.
7198         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
7199         long ago with `_m4_divert(GROW)'.
7200         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
7202 2001-08-20  Akim Demaille  <akim@epita.fr>
7204         * tests/base.at, tests/compile.at, tests/foreign.at,
7205         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
7206         * tests/semantics.at, tests/suite.at, tests/tools.at,
7207         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
7209 2001-08-20  Akim Demaille  <akim@epita.fr>
7211         * bin/autom4te.in (handle_output): Handle @__@.
7213 2001-08-20  Akim Demaille  <akim@epita.fr>
7215         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
7216         * lib/autotest/general.m4: Adjust the license.
7218 2001-08-17  Paul Eggert  <eggert@twinsun.com>
7220         * doc/autoconf.texi (Function Portability): Mention snprintf,
7221         following up on a suggestion by Kevin Ryde.
7223 2001-08-17  Akim Demaille  <akim@epita.fr>
7225         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
7226         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
7228 2001-08-17  Akim Demaille  <akim@epita.fr>
7230         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
7231         `$0.log' as for projects where testsuite is in src, we'd have
7232         testsuite.log created in src.
7234 2001-08-17  Akim Demaille  <akim@epita.fr>
7236         * bin/autom4te.in (&parse_args): Recognize --normalize.
7238 2001-08-17  Akim Demaille  <akim@epita.fr>
7240         Start implementing the AC_CHECK_HEADER transition scheme.
7242         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
7243         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
7244         (AC_CHECK_HEADER): Use them.
7246 2001-08-17  Akim Demaille  <akim@epita.fr>
7248         * doc/autoconf.texi: Work around Texinfo buglets.
7249         (Transformation Rules): One example is enough, users are expected
7250         to have their brains on. And BTW, use DESTDIR.
7251         (dvar): New macro.  Use it.
7253 2001-08-17  Akim Demaille  <akim@epita.fr>
7255         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
7256         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
7257         looking for ChangeLogs.
7259 2001-08-17  Akim Demaille  <akim@epita.fr>
7261         * bin/autom4te.in: --normalize is a new option.
7262         * bin/autoconf.in: Use it.
7264 2001-08-17  Akim Demaille  <akim@epita.fr>
7266         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
7267         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
7269 2001-08-16  Paul Eggert  <eggert@twinsun.com>
7271         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
7272         start, not at end.
7274 2001-08-15  Akim Demaille  <akim@epita.fr>
7276         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
7277         Use it.
7279 2001-08-15  Akim Demaille  <akim@epita.fr>
7281         * doc/autoconf.texi (pr): New index.
7282         (prindex, findex): Use, merge, and output them.
7283         (Environment Variable Index, Output Variable Index)
7284         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
7285         (Autotest Macro Index): Rename as...
7286         (Environment Variables, Output Variables,Preprocessor Symbols)
7287         (Autoconf Macros, M4 Macros, Autotest Macros): these.
7288         * doc/install.texi: Use @command.
7289         (Environment Variables): Rename as...
7290         (Defining Variables): this.
7292 2001-08-15  Akim Demaille  <akim@epita.fr>
7294         * doc/autoconf.texi (Function Portability): sprintf's return
7295         value.
7296         From Kevin Ryde.
7298 2001-08-15  Akim Demaille  <akim@epita.fr>
7300         * Makefile.maint (CVS): New.
7301         (local-check): Run changelog-check. last.
7302         (alpha): Don't depend upon local-check, since...
7303         (cvs-dist): depends upon it.
7305 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
7307         * tests/Makefile.am: Use a clean-local rule to remove
7308         autom4te.cache (it's a directory, not a file.
7309         * Makefile.am: Ditto (but maintainer-clean-local).
7311 2001-08-15  Akim Demaille  <akim@epita.fr>
7313         * bin/autom4te.in (@m4_warning): New.
7314         (&handle_m4): Use it.
7315         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
7316         warnings are issued at each run.
7317         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
7318         is in the src tree.
7320 2001-08-15  Akim Demaille  <akim@epita.fr>
7322         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
7323         don't waste time running `autoupdate --version' works.
7324         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
7326 2001-08-13  Akim Demaille  <akim@epita.fr>
7328         * doc/autoconf.texi (ma): Rename this index as...
7329         (ac): this.
7331 2001-08-13  Akim Demaille  <akim@epita.fr>
7333         * Makefile.am: Remove dead code and dead comments.
7334         (pdf, html): New targets.
7335         * doc/autoconf.texi (Using Autotest): New chapter.
7336         * doc/Makefile.am (pdf): New targets.
7337         (CLEANFILES): Adjust.
7339 2001-08-13  Akim Demaille  <akim@epita.fr>
7341         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
7342         duration of the test suite.
7344 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
7346         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
7347         endianness for comparison instead of relying on AT_CHECK_ENV.
7349 2001-08-11  Paul Eggert  <eggert@twinsun.com>
7351         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
7352         to the INSTALL file.
7354 2001-08-11  Paul Eggert  <eggert@twinsun.com>
7356         * NEWS: The autoconf manual now is distributed under the terms
7357         of the GNU Free Documentation License.
7359         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
7360         Add an appendix "Copying This Manual" for the FDL.
7362         * doc/fdl.texi: New file, from
7363         <http://www.gnu.org/licenses/fdl.texi>.
7365         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
7367 2001-08-10  Paul Eggert  <eggert@twinsun.com>
7369         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
7370         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
7371         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
7372         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
7373         m4/sanity.m4, tests/README, tests/aclocal.m4,
7374         tests/atspecific.m4, tests/base.at, tests/compile.at,
7375         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
7376         tests/semantics.at, tests/suite.at, tests/tools.at,
7377         tests/torture.at: Add copyright notice.
7379         * tests/mktests.sh: Update year in copyright notice.
7381 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
7383         * tests/semantics.at (AC_C_BIGENDIAN): New test.
7385 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
7387         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
7388         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
7389         * doc/autoconf.texi (C Compiler Characteristics): Update
7390         documentation for AC_C_BIGENDIAN.
7392 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
7394         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
7395         magic values from an object file when cross-compiling.
7396         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
7398 2001-08-10  Akim Demaille  <akim@epita.fr>
7400         * bin/autom4te.in (&handle_output): Don't use `grep' with side
7401         effects.
7402         Suggested by Russ Allbery.
7404 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
7406         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
7407         current $prefix to the sub-configures.
7409 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
7411         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
7412         extension (needed on BeOS).  Reported by Guido van Rossum.
7414 2001-08-09  Akim Demaille  <akim@epita.fr>
7416         * bin/autom4te.in ($icache): Load it only if older than autom4te.
7418 2001-08-07  Akim Demaille  <akim@epita.fr>
7420         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
7421         removed.
7422         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
7423         No need to remove the files before and after the each test, before
7424         each test and at the end of the suite is enough.
7425         Display only the children `times', not the shell's.
7426         If the test failed or was skipped, at-times is not available.
7428 2001-08-07  Akim Demaille  <akim@epita.fr>
7430         Always produce testsuite.log, including when there are no
7431         failures.  This helps getting information on skipped tests, and
7432         duration of the tests.  Err, implement the latter btw.
7434         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
7435         Dump information on the first run of each test.
7436         (AT_CLEANUP): Create `at-times' containing the duration of the
7437         test group.
7439 2001-08-07  Akim Demaille  <akim@epita.fr>
7441         The use of `dumpstat' revealed that `len' was used although it
7442         should not.  m4_text_wrap was using it, but in the Autoconf world
7443         where it is legal.  Hence (i) test M4sh in its own world, not
7444         Autoconf's, and (ii), ahem, fix the bug :)
7446         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
7447         does not like `' instead of [].
7448         (AT_INIT): Forbid `^_?AT_'.
7449         And don't output such tokens.
7450         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
7451         `script.as', and `autom4te.cache'.
7452         Remove `empty' and `macro' which are no longer used.
7453         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
7454         * tests/m4sugar.at: Use it.
7455         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
7457 2001-08-07  Akim Demaille  <akim@epita.fr>
7459         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
7461 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
7463         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
7465 2001-08-04  Akim Demaille  <akim@epita.fr>
7467         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
7468         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
7469         AC_TRY_LINK.
7470         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
7471         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
7472         (AC_F77_MAIN): Likewise.
7474 2001-08-04  Akim Demaille  <akim@epita.fr>
7476         Don't rely on M4sugar outputting the patterns in files, since we
7477         might process the output _without_ running m4, hence without these
7478         files.
7480         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
7481         * bin/autom4te.in (@Request::includes): Remove, unused.
7482         (@Request::source): Rename as...
7483         (@Request::input): this.
7484         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
7485         (&handle_output): Fetch the patterns from the traces.
7486         `$forbidden' and `$allowed' are constant: use m//o.
7487         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
7488         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
7490 2001-08-04  Akim Demaille  <akim@epita.fr>
7492         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
7493         autoconf', i.e., in addition to caching traces, cache the output.
7495         * bin/autom4te.in (Request::cache): Rename as...
7496         (Request::id): this.
7497         ($cache, $icache, $tcache, $ocache): New.
7498         (&handle_m4): Save M4 output in the cache instead of $tmp.
7499         (&handle_output): Adjust.
7500         (&up_to_date_p): Check that the output cache is up to date too.
7501         (top level): Run `&handle_m4' iff force or the cache is invalid.
7502         Run `&handle_output' if the output cache is more recent.
7504 2001-08-04  Akim Demaille  <akim@epita.fr>
7506         * bin/autom4te.in ($force): New.
7507         (&parse_args, &print_usage): -f, --force is a new option.
7508         (&handle_output): CPP directives might have spaces after `#'.
7509         (&parse_args): The first file only can be frozen.
7511 2001-08-04  Akim Demaille  <akim@epita.fr>
7513         Don't let autom4te compute the `include' traces several times:
7514         first check that the trace cache file is up to date, and then
7515         compare its timestamp with that of the output.
7517         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
7518         the preamble.  Don't require 5.005 as Autom4te::General does it,
7519         and better yet (use `use', not `require'!).
7520         * lib/Autom4te/Struct.pm: Rename the last occurrences of
7521         Class::Struct as Autom4te::Struct.
7522         * lib/Autom4te/General.pm (File::stat): Use it.
7523         (&mtime): New, export it.
7524         * bin/autom4te.in: Use it.
7525         Declare `$req' is invalid if it is outdated.
7526         Don't declare it valid before saving it if something went wrong.
7528 2001-08-04  Akim Demaille  <akim@epita.fr>
7530         Autom4te shall not encode Autoconf data, and preselecting traces
7531         must be proposed to the users.
7533         * bin/autom4te.in (@required_trace): Remove.
7534         (@preselect): New.
7535         (&parse_args, &print_usage): -p, --preselect is a new option.
7536         (&up_to_date_p): Adjust.
7537         * bin/autoconf.in: Preselect some Autoconf macros.
7539 2001-08-04  Akim Demaille  <akim@epita.fr>
7541         * tests/tools.at (autoconf --trace: user macros): Check traces on
7542         macros invoked without arguments, and macros invoked with multiple
7543         lines arguments.
7545 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
7547         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
7548         arguments.
7550 2001-08-03  Akim Demaille  <akim@epita.fr>
7552         * bin/autoconf.in ($@): Work around the usual sh bug.
7553         From Nicolas Joly.
7555 2001-08-03  Akim Demaille  <akim@epita.fr>
7557         Clean up the handling of the M4 builtins tracing exception.
7559         * bin/autom4te.in (Request::request): Don't complete M4 builtins
7560         trace requests.
7561         (@m4_builtins): Rename as...
7562         (@m4_builtin): this.
7563         (%m4_builtin_alternate_name): New.
7564         (&parse_args): Complete the trace requests with alternate names.
7565         (&handle_traces): Hence no longer do it here.
7566         (&trace_requests): Remove, unused.
7568 2001-08-03  Akim Demaille  <akim@epita.fr>
7570         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
7571         m4_if, and m4_wrap.
7573 2001-08-03  Akim Demaille  <akim@epita.fr>
7575         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
7576         (m4_divert_pop): Dump the whole diversion stack when a diversion
7577         mismatch happens.
7578         * bin/autom4te.in (&handle_output): Remember of the first
7579         occurrence of a possibly undefined macro, not the last.
7580         Complain about the possibly undefined macros in the same order as
7581         the appear in the output.
7582         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
7583         * tests/tools.at (autoconf: forbidden tokens, basic)
7584         (autoconf: forbidden tokens, exceptions): No longer sort
7585         autoconf's stderr, as it is now deterministic.
7586         Check that `dnl' is caught.
7588 2001-08-01  Akim Demaille  <akim@epita.fr>
7590         * configure.ac: Bump to 2.52c.
7592 2001-08-01  Akim Demaille  <akim@epita.fr>
7594         Version 2.52b.
7596         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
7598 2001-08-01  Akim Demaille  <akim@epita.fr>
7600         Version 2.52a.
7602 2001-08-01  Akim Demaille  <akim@epita.fr>
7604         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
7605         `die'.
7606         (&END): New.
7607         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
7608         `END', as `Autom4te::General::END' will be triggered.
7609         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
7610         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
7611         system to run `mv', `rm', and `cmp'.
7613 2001-08-01  Akim Demaille  <akim@epita.fr>
7615         * lib/Autom4te/General.pm (&unique): New.
7616         * bin/autoscan.in (&output): Use it to issue trace requests once.
7618 2001-08-01  Akim Demaille  <akim@epita.fr>
7620         * lib/Autom4te/General.pm: New.
7621         * bin/autom4te.in (Autom4te::General): Use it.
7622         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
7623         (&find_configure_ac, &find_slave): Remove.
7624         * bin/autoscan.in: Likewise.
7625         * bin/autoupdate.in: Likewise.
7627 2001-08-01  Akim Demaille  <akim@epita.fr>
7629         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
7630         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
7631         * bin: here, new directory.
7632         * lib/Autoconf: Rename as...
7633         * lib/Autom4te: this, to please case insensitive junkie OSes.
7635 2001-08-01  Akim Demaille  <akim@epita.fr>
7637         * autom4te.in ($m4): Handle the --nesting-limit.
7638         * autoconf.in (M4): Remove.
7640 2001-08-01  Akim Demaille  <akim@epita.fr>
7642         * autoconf.in ($AWK): Remove, no longer used.
7643         * test/tools.at: Use AT_CHECK_AUTOCONF.
7644         (AWK portability): Remove, for autoconf no longer uses AWK.
7645         (Syntax of the Perl scripts): New.
7646         * configure.ac: autoconf no longer needs an AWK with a good
7647         regexp engine.
7648         Use a static test on AC_PACKAGE_VERSION.
7649         * autom4te.in (&up_to_date_p): Output depends on the arguments.
7650         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
7651         * tests/atconfig.in (PERL): New.
7653 2001-08-01  Akim Demaille  <akim@epita.fr>
7655         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
7656         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
7657         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
7658         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
7659         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
7660         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
7661         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
7662         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
7663         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
7664         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
7665         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
7666         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
7667         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
7668         * lib/autoconf/c.m4: here, new file.
7670         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
7671         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
7672         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
7673         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
7674         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
7675         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
7676         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
7677         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
7678         (AC_F77_FUNC): Move to...
7679         * lib/autoconf/fortran.m4: here, new file.
7681 2001-08-01  Akim Demaille  <akim@epita.fr>
7683         * acfunctions.m4: Rename as...
7684         * lib/autoconf/functions.m4: this.
7685         * acgeneral.m4: Rename as...
7686         * lib/autoconf/general.m4: this.
7687         * acheaders.m4: Rename as...
7688         * lib/autoconf/headers.m4: this.
7689         * aclang.m4: Rename as...
7690         * lib/autoconf/lang.m4: this.
7691         * acoldnames.m4: Rename as...
7692         * lib/autoconf/oldnames.m4: this.
7693         * acspecific.m4: Rename as...
7694         * lib/autoconf/specific.m4: this.
7695         * actypes.m4: Rename as...
7696         * lib/autoconf/types.m4: this.
7697         * autoconf.m4: Rename as...
7698         * lib/autoconf/autoconf.m4: this.
7700         * m4sugar.m4: Rename as...
7701         * lib/m4sugar/m4sugar.m4: this.
7702         * m4sh.m4: Rename as...
7703         * lib/m4sugar/m4sh.m4: this.
7705         * tests/atgeneral.m4: Rename as...
7706         * lib/autotest/general.m4: this.
7708         * acfunctions: Rename as...
7709         * lib/autoscan/functions: this.
7710         * acheaders: Rename as...
7711         * lib/autoscan/headers: this.
7712         * acidentifiers: Rename as...
7713         * lib/autoscan/identifiers: this.
7714         * aclibraries: Rename as...
7715         * lib/autoscan/libraries: this.
7716         * acmakevars: Rename as...
7717         * lib/autoscan/makevars: this.
7718         * acprograms: Rename as...
7719         * lib/autoscan/programs: this.
7721 2001-08-01  Akim Demaille  <akim@epita.fr>
7723         * doc/autoconf.texi: Moving/deleting open files is not portable.
7724         Portability issues for `.' (source), and more information about sed.
7726 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
7728         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
7729         which has a special meaning and is not a reference to libibmil.a.
7730         Reported by Matteo Frigo.
7732 2001-07-25  Pavel Roskin  <proski@gnu.org>
7734         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
7735         output.
7737 2001-07-25  Akim Demaille  <akim@epita.fr>
7739         * autoconf.in: Try to define the variables before using them.
7740         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
7741         instead of `$perllibdir'.
7742         * tests/atconfig.in ($autom4te_perllibdir): Export it.
7744 2001-07-25  Akim Demaille  <akim@epita.fr>
7746         * autoconf.in (ac_LF_and_DOT): Remove, unused.
7748 2001-07-24  Akim Demaille  <akim@epita.fr>
7750         Let autoconf use autom4te for traces.
7752         * autoconf.in ($task, task trace): Remove, merely pass --trace to
7753         autom4te.
7754         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
7755         (Because I found no way for autom4te to accept `-').
7756         * autom4te.in (&Request::request): Beware of M4 builtins.
7757         (END): Don't try to remove the content of an empty dir.
7758         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
7759         (&handle_output): Set a default value to `$forbidden'.
7760         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
7761         ($autoconf): Pass --debug and --verbose.
7762         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
7763         cache.
7765 2001-07-24  Akim Demaille  <akim@epita.fr>
7767         Let autoconf use autom4te to create configure.
7769         * autoconf.in ($automate): New var.
7770         (task script): Use autom4te.
7771         * autom4te.in (File::Spec): Use it.
7772         (&find_file): New.
7773         (&parse_args): --warning is -W, not -w.
7774         Find the top level files.
7775         (&handle_m4): Pass the warnings flags.
7776         Don't report verbosely m4's failures, unless requested.
7777         (&handle_output): Don't complain for forbidden tokens in comments.
7778         Be sure to report all the forbidden tokens within a single line.
7779         (&trace_format_to_m4): Preserve `$_'.
7780         (&handle_traces): Sort the output macros.
7781         (&up_to_date_p): Find the files before trying to get its time stamp.
7783 2001-07-24  Akim Demaille  <akim@epita.fr>
7785         * Makefile.am: Ship, build and install Autom4te.
7786         (SUBDIRS): Add lib.
7787         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
7788         * configure.in: Require Perl.
7789         * man/autom4te.in: New.
7791 2001-07-19  Paul Eggert  <eggert@twinsun.com>
7793         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
7794         example, rather than (exit 1); exit (which isn't portable).
7796 2001-07-18  Akim Demaille  <akim@epita.fr>
7798         Version 2.52.
7800 2001-07-18  Akim Demaille  <akim@epita.fr>
7802         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
7803         was run, while they are needed also when it is expanded.
7804         Reported by Nicolas Joly.
7806         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
7807         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
7808         AC_F77_DUMMY_MAIN being expanded.
7810 2001-07-18  Akim Demaille  <akim@epita.fr>
7812         * configure.in: Bump to 2.51a.
7814 2001-07-17  Akim Demaille  <akim@epita.fr>
7816         Version 2.51.
7818 2001-07-17  Akim Demaille  <akim@epita.fr>
7820         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
7821         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
7823 2001-07-17  Akim Demaille  <akim@epita.fr>
7825         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
7826         used.  Well, then use the prototypes when you can, and runtime as
7827         a last resort.
7828         Reported by Artur Frysiak
7830         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
7831         (AC_FUNC_GETPGRP): Use it.
7832         First try to compile with 0-ary or 1-ary calls.
7834 2001-07-17  Akim Demaille  <akim@epita.fr>
7836         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
7837         replacement type.
7838         From Paul Eggert.
7840 2001-07-17  Akim Demaille  <akim@epita.fr>
7842         * Makefile.maint: Sync. with cppi 1.10.
7844 2001-07-17  Akim Demaille  <akim@epita.fr>
7846         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
7847         AC_F77_DUMMY_MAIN has been run.
7848         From Pavel Roskin and Steven G. Johnson.
7850 2001-07-17  Akim Demaille  <akim@epita.fr>
7852         * configure.in: Rename as...
7853         * configure.ac: this.
7855 2001-07-17  Akim Demaille  <akim@epita.fr>
7857         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
7858         rules.
7859         From Marc Espie.
7860         * Makefile.maint (release-archive-dir): Rename as...
7861         (release_archive_dir): this, so that it can be specialized in
7862         Makefile.
7864 2001-07-14  Akim Demaille  <akim@epita.fr>
7866         * configure.in: Bump to 2.50d.
7868 2001-07-14  Akim Demaille  <akim@epita.fr>
7870         Version 2.50c.
7871         * Makefile.maint (alpha): Typo.
7873 2001-07-14  Akim Demaille  <akim@epita.fr>
7875         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
7877 2001-07-14  Akim Demaille  <akim@epita.fr>
7879         * config/config.guess, config/config.sub, config/texinfo.tex
7880         * doc/standards.texi, doc/make-stds.texi: Update.
7882 2001-07-14  Akim Demaille  <akim@epita.fr>
7884         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
7886 2001-07-14  Akim Demaille  <akim@epita.fr>
7888         * Makefile.maint (maintainer-check): Rename as...
7889         (maintainer-distcheck): this.
7890         (changelog-check, static-check): New.
7891         Use them.
7893 2001-07-14  Kevin Ryde  <user42@zip.com.au>
7895         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
7896         for CXX is g++, not gcc.
7898 2001-07-14  Akim Demaille  <akim@epita.fr>
7900         * doc/autoconf.texi (Files): New subsection.
7902 2001-07-14  Akim Demaille  <akim@epita.fr>
7904         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
7905         of...
7906         (Generic Compiler Characteristics): this.
7907         (C++ Compiler): New subsection.
7909 2001-07-14  Akim Demaille  <akim@epita.fr>
7911         * autoscan.in: Use IO::File.
7912         Adjust all the routines to use it.
7913         ($log): New file (autoscan.log).
7914         (output): Dump detailed logs into $log, and a shortened version to
7915         stderr.
7916         (&scan_makefile): Refine the regexp catching tokens in the code.
7917         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
7918         and the `configure.ac' checking feature.
7920 2001-07-12  Akim Demaille  <akim@epita.fr>
7922         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
7923         Reported by Michael Elizabeth Chastain.
7925         * autoconf.in: Refuse such AWK.
7926         * configure.in: Likewise.
7927         * Makefile.am (acversion.m4): Do not use move-if-change this file
7928         has dependencies.
7929         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
7931 2001-07-10  Jens Petersen  <petersen@redhat.com>
7933         * autoscan.in (&scan_makefile): Improve programs regexp to parse
7934         things like "g++", "file.c" and "some-conf" as tokens.
7935         (&scan_file): Match C++ files extensions.
7936         If the filename extension is C++ then ask for c++.
7938 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
7940         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
7941         AC_TRY_LINK_FUNC, to check whether defining a dummy
7942         main-like routine is needed for linking with F77 libs.
7944 2001-07-05  Pavel Roskin  <proski@gnu.org>
7946         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
7947         after using break.
7948         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
7949         linking.
7951 2001-07-05  Akim Demaille  <akim@epita.fr>
7953         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
7954         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
7955         Makes' lives.
7956         Reported by Nicolas Joly.
7958 2001-07-04  Akim Demaille  <akim@epita.fr>
7960         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
7961         up.
7962         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
7963         warnings from compilers.
7964         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
7965         for all the compilers, not only GNU.  Hence move from here...
7966         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
7968 2001-07-04  Akim Demaille  <akim@epita.fr>
7970         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
7971         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
7972         AC_COMPILE_IFELSE.
7974 2001-07-04  Akim Demaille  <akim@epita.fr>
7976         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
7977         the ``strings.h'' change claimed below.
7979 2001-07-04  Akim Demaille  <akim@epita.fr>
7981         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
7983 2001-07-04  Akim Demaille  <akim@epita.fr>
7985         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
7986         strings.h if usable with string.h.
7987         Suggested by Paul Eggert.
7989 2001-07-04  Akim Demaille  <akim@epita.fr>
7991         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
7992         From Jens Petersen.
7994 2001-07-03  Akim Demaille  <akim@epita.fr>
7996         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
7997         etc. in the log.
7999 2001-07-03  Akim Demaille  <akim@epita.fr>
8001         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
8002         compiler, not the preprocessor.
8003         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
8004         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
8005         the right thing.
8006         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
8007         earlier if there are.
8009 2001-07-03  Akim Demaille  <akim@epita.fr>
8011         * autoscan.in ($initfile): Remove.
8012         (&find_file): Rename as...
8013         (&scan_file): this.
8014         Immediately scan the current file, instead of gathering them, and
8015         later having them handled by &scan_files.
8016         (&scan_files): Merely invoke Find::File.
8017         Adjust.
8019 2001-07-02  Akim Demaille  <akim@epita.fr>
8021         * autoscan.in: Formatting changes, matching the invocation order.
8022         (File::Find): Use it instead of Perl 4's `find.pl'.
8023         (&wanted): Rename as...
8024         (&find_file): this.
8026 2001-07-01  Pavel Roskin  <proski@gnu.org>
8028         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
8029         break in the argument to AC_TRY_LINK_FUNC.
8030         (AC_F77_MAIN): Remove conftest* after using break in the
8031         argument to AC_TRY_LINK.
8033 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
8035         Add alternate 'main' routine detection for linking C/C++ with Fortran,
8036         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
8038         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
8039         dummy alternate main is required even if the user provides her own
8040         'main'.
8041         (AC_F77_MAIN): New macro to detect whether it is possible to
8042         provide an alternate 'main' function name, using the 'main' from
8043         the Fortran libraries.
8044         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
8045         cross-language link tests can be performed successfully.
8046         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
8047         after $LIBS, for consistency; this should be the general rule since
8048         the user may want to link to Fortran libraries that require $FLIBS.
8049         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
8051 2001-06-29  Pavel Roskin  <proski@gnu.org>
8053         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
8054         at-stdout and at-stderr instead of removing the newline
8055         from the echo output, which is not guaranteed to work.
8057 2001-06-28  Jens Petersen  <petersen@redhat.com>
8059         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
8060         confdefs.h when non-zero.
8062 2001-06-28  Akim Demaille  <akim@epita.fr>
8064         * configure.in: Bump to 2.50c.
8066 2001-06-26  Akim Demaille  <akim@epita.fr>
8068         Version 2.50b.
8070 2001-06-26  Akim Demaille  <akim@epita.fr>
8072         Version 2.50a.
8074 2001-06-25  Pavel Roskin  <proski@gnu.org>
8076         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
8077         argument, AUTOCONF-FLAGS.
8078         * tests/mktests.sh (update_exclude_list): Add
8079         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
8080         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
8081         AC_FUNC_WAIT3 with "-W no-obsolete".
8083 2001-06-25  Akim Demaille  <akim@epita.fr>
8085         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
8087 2001-06-25  Akim Demaille  <akim@epita.fr>
8089         * autoscan.in (%macro): Now maps from word to list of macros.
8090         (&init_tables): Die when a word which is already handled by
8091         explicit macros is mapped to the default macro.
8092         (&print_unique): Remove, inlined in...
8093         (&output_kind): here.
8094         (File::Basename): Use it.
8095         (&output): Sort the CONFIG_FILES.
8096         * acheaders: Normalize.
8097         * acfunctions: Likewise.
8099 2001-06-25  Akim Demaille  <akim@epita.fr>
8101         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
8102         characteristics in the logs.
8103         Suggested by Mo DeJong.
8105 2001-06-24  Akim Demaille  <akim@epita.fr>
8107         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
8108         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
8109         * doc/autoconf.texi (Autoconf 2.13): New section.
8111 2001-06-24  Akim Demaille  <akim@epita.fr>
8113         * autoconf.in (Task traces): Separate the error messages from the
8114         traces to improve robustness.
8116 2001-06-23  Akim Demaille  <akim@epita.fr>
8118         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
8119         three as failures are unlikely, and speed matters.
8121 2001-06-23  Akim Demaille  <akim@epita.fr>
8123         * doc/autoconf.texi (Redefined M4 Macros): New.
8125 2001-06-23  Akim Demaille  <akim@epita.fr>
8127         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
8128         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
8129         5.3.
8131 2001-06-23  Paolo Bonzini <bonzini@gnu.org>
8133         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
8134         config.status targets to after the evaluation of the INIT-CMDS.
8135         Double quote config.status targets (used to be single quoted).
8137 2001-06-23  Akim Demaille  <akim@epita.fr>
8139         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
8140         Check the content of the created file.
8141         Check the ./config.status command line invocation.
8143 2001-06-23  Akim Demaille  <akim@epita.fr>
8145         * tests/foreign.at (Libtool): Reject prehistoric versions.
8147 2001-06-23  Akim Demaille  <akim@epita.fr>
8149         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
8150         preexisting files matching a.*.
8152 2001-06-23  Akim Demaille  <akim@epita.fr>
8154         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
8155         stderr.
8156         * doc/autoconf.texi (AC_ARG_VAR): Update.
8158 2001-06-21  Akim Demaille  <akim@epita.fr>
8160         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
8161         precious variables have changed.
8162         * tests/torture.at (AC_ARG_VAR): Adjust.
8164 2001-06-21  Akim Demaille  <akim@epita.fr>
8166         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
8167         but some sed choke on multiple `;', and other tools (e.g.,
8168         Automake), include the separator themselves.
8170         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
8172 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
8174         * doc/autoconf.texi (Functions Portability): Rename as...
8175         (Function Portability): this.
8176         (Function Portability): Document potential problems with unlink().
8178 2001-06-19  Paul Eggert  <eggert@twinsun.com>
8180         * NEWS, doc/autoconf.texi: Document quadrigraphs.
8182 2001-06-18  Akim Demaille  <akim@epita.fr>
8184         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
8186 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
8188         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
8189         (_AC_FUNC_VFORK): this.
8190         Remove AC_DEFINEs and don't guess cross-compilation values.
8191         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
8192         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
8193         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
8194         vfork doesn't work.
8195         Guess values if cross-compiling, but warn.
8196         * acfunctions: Add AC_FUNC_FORK.
8197         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
8198         and vfork appropriately.
8200 2001-06-18  Akim Demaille  <akim@epita.fr>
8202         * doc/autoconf.texi (Functions Portability): New section.
8204 2001-06-18  Akim Demaille  <akim@epita.fr>
8206         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
8207         in $M4.
8208         Suggested by Andreas Schwab.
8210 2001-06-18  Akim Demaille  <akim@epita.fr>
8212         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
8213         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
8214         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
8215         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
8216         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
8217         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
8218         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
8219         the converse).
8221 2001-06-18  Akim Demaille  <akim@epita.fr>
8223         * doc/autoconf.texi (ms): New index.
8224         (Macro Index): Rename as...
8225         (Autoconf Macro Index): this.
8226         (M4 Macro Index): New appendix.
8227         (Programming in M4): New chapter.
8228         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
8229         (Quoting): Rename as...
8230         (M$ Quotation): this.
8231         Be part of `Programming in M4).
8233 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
8235         * tests/torture.at (AC_ARG_VAR): Set variables and export them
8236         in separate statements for compatibility with Tru64 v5.1.
8238 2001-06-17  Akim Demaille  <akim@epita.fr>
8240         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
8241         current values of the precious variables, not the previously
8242         cached values.
8243         Pass precious variables which are set to config.status.
8244         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
8245         * tests/torture.at (AC_ARG_VAR): New.
8247 2001-06-15  Paul Eggert  <eggert@twinsun.com>
8249         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
8250         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
8251         and explain why and how to replace them.
8252         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
8253         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
8255 2001-06-15  Akim Demaille  <akim@epita.fr>
8257         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
8258         Reported by Bruno Haible.
8260         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
8261          (_AC_ARG_VAR_PRECIOUS): to here.
8263 2001-06-15  Pavel Roskin  <proski@gnu.org>
8265         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
8266         an unused pointer use cast to this type and `if' statement to
8267         avoid warnings from the compiler.
8268         (AC_HEADER_TIME): Likewise.
8269         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
8270         in `if' statement to avoid warnings from the compiler. Declare
8271         ac_aggr static to avoid the need to initialize it.
8273 2001-06-14  Akim Demaille  <akim@epita.fr>
8275         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
8276         Macros'.
8278 2001-06-13  Akim Demaille  <akim@epita.fr>
8280         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
8281         Suggested by Alexander Mai.
8283 2001-06-13  Akim Demaille  <akim@epita.fr>
8285         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
8286         sys/types.h and sys/stat.h, and check for them.
8288 2001-06-13  Akim Demaille  <akim@epita.fr>
8290         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
8291         INCLUDES.
8293 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8295         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
8296         succeeds and only try adding libdnet upon a failure.
8298 2001-06-12  Akim Demaille  <akim@epita.fr>
8300         * autoscan.in (&output_kind): Output the comment only if it exists.
8301         (%kind_comment): Add entry for `programs'.
8302         (&output_programs): Use &output_kind.
8303         (&output_functions, &output_identifiers, &output_headers)
8304         (&output_programs): Inline, and remove.
8306 2001-06-12  Akim Demaille  <akim@epita.fr>
8308         * autoscan.in (%kind_comment): New.
8309         (output_kind): New.
8310         (output_functions, output_identifiers, output_headers): Use it.
8312 2001-06-12  Akim Demaille  <akim@epita.fr>
8314         * autoscan.in (&print_unique): Take `$kind' and `$word' as
8315         arguments, to factor indirections into `%macro' and `%used'.
8316         (%generic_macro): Fix a typo.
8318 2001-06-12  Akim Demaille  <akim@epita.fr>
8320         * aclibraries: New.
8321         * autoscan.in (@kinds): Add `libraries'.
8322         Use `@kinds' instead of hard coded lists.
8323         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
8324         Remove, replaced by...
8325         (%used): this.
8327 2001-06-12  Akim Demaille  <akim@epita.fr>
8329         * autoscan.in (%functions_macros %headers_macros)
8330         (%identifiers_macros %programs_macros %makevars_macros): Remove,
8331         replaced by...
8332         (%macro): New.
8334 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
8336         * aclang.m4 (AC_NO_EXECUTABLES): Override
8337         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
8339 2001-06-11  Akim Demaille  <akim@epita.fr>
8341         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
8342         trailing new line.
8343         Reported by Andreas Schwab.
8345 2001-06-11  Akim Demaille  <akim@epita.fr>
8347         * Makefile.am, Makefile.maint: Typos.
8349 2001-06-09  Akim Demaille  <akim@epita.fr>
8351         * doc/autoconf.texi (Here-Documents): New section, gathering
8352         documentation about here-documents.
8353         Use `href', not `uref', and other changes.
8355 2001-06-09  Akim Demaille  <akim@epita.fr>
8357         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
8358         chapter.
8360 2001-06-09  Akim Demaille  <akim@epita.fr>
8362         * doc/autoconf.texi (Limitations of Builtins): Complete the
8363         description of the here-docs penalties with Alexandre Oliva's
8364         explanations.
8366 2001-06-01  Paul Eggert  <eggert@twinsun.com>
8368         * doc/autoconf.texi: Talk about here documents and speedups.
8369         Do not use "echo" on arbitrary strings.
8370         Spell "here-documents" consistently with the standard.
8372 2001-06-09  Akim Demaille  <akim@epita.fr>
8374         * doc/autoconf.texi (Concept Index): Introduce it.
8375         Regenerate the menus.
8377 2001-06-09  Akim Demaille  <akim@epita.fr>
8379         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
8380         * config/prev-version.txt: New.
8381         * config/move-if-change: New, for GNU libc.
8383 2001-06-06  Pavel Roskin  <proski@gnu.org>
8385         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
8387 2001-06-06  Akim Demaille  <akim@epita.fr>
8389         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
8390         properly when $1 is not a literal.
8391         Fixes PR Autoconf/187, reported by Bram Moolenaar.
8393 2001-06-06  Akim Demaille  <akim@epita.fr>
8395         Invoking AC_COPYRIGHT before AC_INIT fails.
8397         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
8398         * acgeneral.m4 (_m4_divert(VERSION_FSF))
8399         (_m4_divert(VERSION_USER)): New.
8400         (AC_COPYRIGHT): $2 is the diversion to use.
8401         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
8402         (AC_INIT): Remove dead comments as now it's commutative.
8404 2001-06-06  Akim Demaille  <akim@epita.fr>
8406         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
8407         PR autoconf/187.
8409 2001-06-05  Akim Demaille  <akim@epita.fr>
8411         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
8412         can be empty.
8413         `*dir' variables cannot be NONE.
8414         Reported by Mark Kettenis.
8416 2001-06-05  Paul Eggert  <eggert@twinsun.com>
8418         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
8420 2001-06-04  Akim Demaille  <akim@epita.fr>
8422         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
8423         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
8424         (AC_TR_SH): Move as...
8425         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
8426         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
8427         (AS_TR_SH): these.
8428         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
8429         (_AS_TR_SH_PREPARE): New.
8430         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
8431         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
8433 2001-06-02  Akim Demaille  <akim@epita.fr>
8435         * Makefile.am (.m4.m4f): Pass the options first.
8436         Fixes PR autoconf/182.
8438 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
8440         GNU getopt, when POSIXLY_CORRECT does not permute options and
8441         arguments.  So pass the options first.
8442         Fixes PR autoconf/184.
8444         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
8445         (run_m4): Remove files.
8446         (run_m4f): Remove.
8447         Update remainder of script to use them.
8448         (for warning in): Do not use a literal comma as it will not be
8449         split by IFS.
8451 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
8453         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
8454         Fortran compilers to check.
8455         (_AC_PROG_F77_V): Add '-###' as a possible option to print
8456         information on library and object files.
8457         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
8458         to check.
8460 2001-06-02  Akim Demaille  <akim@epita.fr>
8462         * autom4te.in (Request::@request): Declare with `vars', not `my',
8463         as it prevents updates via `do FILENAME'.
8465 2001-06-02  Akim Demaille  <akim@epita.fr>
8467         * configure.in (standards_texi): Remove, dead code.
8469 2001-06-02  Akim Demaille  <akim@epita.fr>
8471         * autom4te.in: New.
8473 2001-06-02  Pavel Roskin  <proski@gnu.org>
8475         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
8476         for signals other than 0 - exit with code 1.
8477         * m4sh.m4 (AS_TMPDIR): Likewise.
8478         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
8479         * autoheader.in: Likewise.
8480         * autoreconf.in: Likewise.
8481         * tests/torture.at (Signal handling): New test for the above.
8483 2001-06-01  Akim Demaille  <akim@epita.fr>
8485         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
8486         message.
8488 2001-05-31  Akim Demaille  <akim@epita.fr>
8490         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
8491         Add copyright and comments.
8492         * acheaders: Add stdint.h.
8493         Suggested by Paul Eggert.
8495 2001-05-31  Akim Demaille  <akim@epita.fr>
8497         * atgeneral.m4 (AT_INIT): Use $SHELL.
8498         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
8500 2001-05-31  Akim Demaille  <akim@epita.fr>
8502         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
8503         stdint.h.
8504         From Paul Eggert and Lars Hecking.
8506 2001-05-31  Akim Demaille  <akim@epita.fr>
8508         * tests/base.at: Adjust line numbers in error messages.
8510 2001-05-31  Akim Demaille  <akim@epita.fr>
8512         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
8513         to emit the bangshe line.
8514         Reported by David Carter.
8516 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
8518         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
8519         Fortran (95) compilers to check.
8521 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
8523         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
8524         Macro Archive URL.
8526 2001-05-23  Pavel Roskin  <proski@gnu.org>
8528         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
8529         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
8530         (AC_PROG_CXXCPP): Likewise.
8532 2001-05-22  Akim Demaille  <akim@epita.fr>
8534         * config: New directory.
8535         * configure.in: AC_CONFIG_AUX_DIR it.
8536         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
8538 2001-05-22  Akim Demaille  <akim@epita.fr>
8540         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
8541         * autoupdate.in: Specify the Emacs mode.
8542         * acversion.m4.in: Rename as...
8543         * acversion.m4: this.
8544         * tests/Makefile.am (CLEANFILES): More garbage.
8546 2001-05-22  Akim Demaille  <akim@epita.fr>
8548         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
8549         Rename as...
8550         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
8551         these.
8553 2001-05-21  Akim Demaille  <akim@epita.fr>
8555         * configure.in: Bump to 2.50a.
8557 -----
8559 Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
8561 This file is part of GNU Autoconf.
8563 GNU Autoconf is free software; you can redistribute it and/or modify
8564 it under the terms of the GNU General Public License as published by
8565 the Free Software Foundation; either version 2, or (at your option)
8566 any later version.
8568 GNU Autoconf is distributed in the hope that it will be useful,
8569 but WITHOUT ANY WARRANTY; without even the implied warranty of
8570 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8571 GNU General Public License for more details.
8573 You should have received a copy of the GNU General Public License
8574 along with autoconf; see the file COPYING.  If not, write to
8575 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
8576 Boston, MA 02110-1301, USA.