* doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
[autoconf.git] / ChangeLog
blob18301b7b0c70a13777f61f7eeb7b3517facdf470
1 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
3         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
4         Give an example for AS_DIRNAME instead of referring to Posix..
5         (File System Conventions): Put discussion of // versus / here, and
6         modernize it a bit.
7         (Limitations of Usual Tools): Add basename.  Remove verbiage
8         after dirname, since it got moved to the above sections.
9         All this was inspired by a patch proposed earlier by Ralf Wildenhues.
11 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
14         `$0' to protect against spaces.
15         * lib/autotest/general.m4 (AT_INIT): Likewise.
16         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
17         `$0', $as_me.
19 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21         * bin/autoscan.in: The value of find_configure_ac should be
22         checked for existence, so we don't barf over a nonexisting
23         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
25 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27         * bin/autoupdate.in: Fix some typos.
29 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
31         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
33 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
35         * lib/autoscan/autoscan.list: Refreshed.
37 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
40         and Erlang related variables.
42         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
43         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
44         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
45         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
46         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
47         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
48         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
49         (_AC_PROG_OBJC_G): New macros.
50         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
51         * doc/autoconf.texi (Objective C Compiler): New node.
52         (Preset Output Variables): Document OBJCFLAGS.
53         (Language Choice): Document `Objective C' language.
54         (Fortran Compiler): Fix typo.
55         * NEWS: Updated.
56         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
58 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
60         * doc/autoconf.texi (Default Includes): Fix typo
61           s/AC_HEADERS_STDC/AC_HEADER_STDC/
62         (Limitations of Usual Tools): s/unwriteable/unwritable/
63         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
64           Fix typos in the comments.
66 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
68         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
69           Factor out the warning to...
70         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
71         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
72         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
74 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
76         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
77           case `ac_delim' when writing the sed script.
79 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
81         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
82           moved DUALCASE=1 ...
83         (AS_SHELL_SANITIZE): ... here.
84         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
85           that it is set.
87 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
89         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
90           AC_SUBST.
91         (_AC_PATH_PROG): Store the result to VARIABLE.
92         (AC_PATH_PROG): No need to set VARIABLE again.
94 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
96         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
97           the first one is usual AT_CHECK_MACRO test, the second one checks
98           that the same works when cross-compiling.
99         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
100         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
102 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
105         the directory `/usr/bin/posix' in the shell search, to prefer
106         the Posix shell not only in subsequent spawns as with `$BIN_SH'
107         on Tru64.
109         * doc/autoconf.texi (contents): To fix texi2html output, hide
110         `@setcontentsaftertitlepage' for HTML.
111         (Writing Autoconf Macros): Likewise, insert space after `@c'.
112         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
113         `@,{c}'.
115 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
117         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
118           sanitizing...
119         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
120         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
121           why IFS is restored so late; thank you, Ralf, for reminding us.
123 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
125         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
126           variables in the examples.
128 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
130         * doc/autoconf.texi (several sections): Cleaned up documentation for
131         macros in erlang.m4.
133 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
135         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
136         failure condition for `$(cmd)' style command substitutions.
137         (Parenthetical command substition, Multiline parenthetical
138         command substition): Use it.
140         * doc/autoconf.texi (Special Shell Variables): Missing word.
141         Reported by Keith Marshall <keith.marshall@total.com>.
143         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
144         IFS even in case of empty `$PATH'.
146 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
148         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
149         `expr' away if there is nothing to do.
150         < --keywords >: Simplify and robustify argument handling.
151         Revert erroneous comment from 2005-08-23.  Extend to allow
152         keyword negation with `!'.
153         Update help message.  Remove broken code to prevent running
154         tests multiple times.
155         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
156         Update and fix the documentation accordingly.
157         * tests/autotest.at (Keywords): Renamed to..
158         (Keywords and ranges): .. this.  Extended to make sure negated
159         keywords, keywords taken from AT_SETUP arguments, and numeric
160         test ranges work, and that matching is case-insensitive.
162 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
164         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
165         allow to pass unnamed structs even in C++.
166         (AC_CHECK_SIZEOF):  Likewise.
167         Also fix quoting error in `AC_MSG_FAILURE' arguments.
168         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
169         struct): New tests for unnamed structs, each both native and
170         cross-compiling.
172         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
173         a structure inside a cast, for C++ conformance.
174         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
175         Also fix quoting error in `AC_MSG_FAILURE' arguments.
177         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
178         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
179         trying to execute the command `no'.
181         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
182         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
183         expanded outside.
185         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
186         example.  Do not emphasize `$%', it is hardly new and special.
187         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
189         * doc/autoconf.texi (Limitations of Usual Tools): Document
190         OpenBSD and traditional `grep' failure to handle multiple
191         patterns separated by newlines.
193 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
195         * doc/autoconf.texi (several sections): Add documentation for macros
196         in erlang.m4.
198 2006-03-10  Eric Blake  <ebb9@byu.net>
200         * doc/autoconf.texi (Obsolete Macros): Fix wording of
201         AC_TRY_LINK_FUNC.
203 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
205         * doc/autoconf.texi: Use @acronym more consistently for acronyms
206         like BSD, GPL, LGPL.  Fix minor English typos.
207         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
208         Mention that these macros are becoming obsolete.
209         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
210         Use more modern terminology for which standard is what.
211         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
212         and to ansi2knr.
213         (AC_PROG_CXX): Likewise.
214         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
215         Remove obsolete discussion about how to port to K&R.
216         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
217         the obsolescent AC_HEADER_STDC.
218         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
219         can't rely on it.
221 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
223         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
224         Remove stdin redirection from /dev/null to allow pipe to work.
226 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
228         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
229         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
230         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
231         Ralf Wildenhues.
233 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
235         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
236         HP-UX sed is 99 commands, not 100.
237         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
238         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
239         newline for portability.
240         * tests/torture.at (Torturing config.status): Also test 100
241         AC_SUBST_FILE invocations.  Fix test to actually verify the
242         AC_CONFIG_FILES output.
243         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
244         command, label, and read-file `r' limits.  Unify HP-UX spelling.
246         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
247         non-suffix rule.
248         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
249         non-GNU make.
250         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
251         * tests/mktests.sh: Small shell portability fixes.
253 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
255         * doc/autoconf.texi (Caching Results): Fix the examples to use a
256         recommended quoting style and discard unwanted output.
258 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
260         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
261         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
262         cases, and to work around Tru64 expr bug.
264 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
266         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
267         expr bug that turns the result of a regex match into a number if
268         possible.
270 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
272         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
273         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
274         in section `Specific Compiler Characteristics'.
276 2006-03-04  Eric Blake  <ebb9@byu.net>
278         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
279         variable warning.
281 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
283         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
284         order of variable initialization, so even the Solaris 2.6 shell
285         can create a config header correctly.  Fixes lots of test suite
286         failures.
288 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
290         * doc/autoconf.texi (Text processing Macros): New node to
291         document the m4sugar macros m4_re_escape, m4_tolower,
292         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
294 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
296         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
297         XrmInitialize (0) -> XrmInitialize ().
298         Reported by Toshio Kuratomi.
300 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
302         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
303         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
304         * doc/autoconf.texi (Programming in M4sh): Adjusted.
305         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
306         both macros are defun'ed so that required macros are evaluated
307         outside.
309         * doc/autoconf.texi (Prerequisite Macros): State more precisely
310         where a required macro will be expanded.
311         (Coding Style): Another reason not to use `m4_define'.
313 2006-02-21  Eric Blake  <ebb9@byu.net>
315         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
317 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
319         * doc/autoconf.texi (Looping constructs): New node, to
320         document m4_for, m4_foreach, m4_foreach_w, and mention
321         obsolete AC_FOREACH.
322         (Obsolete Macros): Document AC_FOREACH.
323         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
324         (m4_for): Fix to never loop (almost) endlessly, work correctly
325         with arithmetic expressions in arguments, a step of zero or
326         non-integer multiple of the interval, and avoid integer
327         overflow.
328         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
329         m4_foreach_w.
331 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
333         Add basic support for Erlang, both for configuring Erlang/OTP
334         tools, and Erlang as a conf test language.
335         * lib/autoconf/erlang.m4: New file.
336         * lib/autoconf/autoconf.m4: Add erlang.m4.
337         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
338         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
339         * NEWS: Add short description of new macros.
340         * THANKS: Add Romain Lenglet.
342 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
344         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
345         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
347 2006-02-15  Eric Blake  <ebb9@byu.net>
349         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
350         warning.
352 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
354         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
355         (_AS_CASE): Private helper macro.
356         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
357         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
358         Fix syntax of AS_IF description
359         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
360         for the AC_REQUIRE mess.
361         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
362         AS_SHELL_SANITIZE.
364 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
366         * doc/autoconf.texi: Minor style cleanup.
367         Be consistent about spaces after commas.
368         Insert [] where empty args look a bit funny.
369         Fix some "i.e." and "e.g." usages.
370         Try to avoid "X/Y" usages.
371         Don't be pedantic about "ISO C99"; just say C99.
372         Prefer GNU style for spaces in front of parens.
373         (Function Portability): Comment about C89 versus C99
374         signed integer division.
375         (Particular Headers): Use current gnulib style for dirent
376         includes.
378 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
379         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
381         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
382         macros without parameters.
383         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
384         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
385         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
386         `$#' bug.
387         (autoupdate): Updated to match AU_ALIAS fix.
389 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
390         and Paul Eggert  <eggert@cs.ucla.edu>
392         * doc/autoconf.texi (Programming in M4sh): Document
393         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
395 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
397         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
398         (AS_BOURNE_COMPATIBLE): ..this.
399         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
401 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
403         * doc/install.texi (Defining Variables): Tighten up the
404         CONFIG_SHELL wording.
406 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
407         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
409         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
410         of (set -o) rather than testing whether (set -o posix) succeeds,
411         to work around a bug in the AIX 5.3 shell.  Problem originally
412         reportd by Howard Chu for libtool.
414 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
416         * doc/autoconf.texi (Running the Compiler, Running the Linker):
417         Changes the macro arguments in summaries to match the
418         descriptions.
420 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
422         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
423         hint as ``a workaround for a bug.''
425 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
427         * bin/autoreconf.in: New option `--no-recursive'.
428         Improve wording for subpackages a bit.
429         * doc/autoconf.texi (autoreconf Invocation): Updated.
430         * NEWS: Updated.
432         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
433         in environment of `configure', not the command line.
434         Reported by Howard Chu <hyc@highlandsun.com>.
436 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
438         * doc/autoconf.texi (Limitations of Builtins): Document the
439         problem with "trap -".
441 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
443         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
444         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
445         messages to differentiate Fortran and Fortran 77 tests.
446         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
447         AC_LANG_ASSERT, to allow use in mixed-language projects.
449 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
451         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
452         FOO" to "defined (FOO)".
453         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
454         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
455         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
456         * tests/tools.at (ifnames): Likewise.
458 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
460         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
461         * lib/Autom4te/General.pm (mktmpdir): Likewise.
462         (END): Improve error message a bit.
463         Reported by Bruce Korb <bkorb@gnu.org>.
465 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
467         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
468         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
470 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
472         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
473         requires sys/stream.h.  Reported by Oliver Kiddle.
475 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
476             Stepan Kasal  <kasal@ucw.cz>
478         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
479         before the removals of test dirs, use `find' to avoid modification
480         of symlinked directories.
482 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
484         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
485         Don't ignore the macro arguments.
487 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
489         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
490         declaration that works for MSVC.
492 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
494         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
495         Add `*.map' and `.inf' for Green Hills compiler.
496         Reported by Stefan Seefeld <stefan@codesourcery.com>.
498         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
499         correctly: pad with spaces after FIRST_PREFIX if necessary,
500         and compute string lenghts with `m4_qlen' instead of `m4_len'.
501         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
502         * tests/m4sh.at (AS_HELP_STRING): Test extended.
503         * NEWS: Updated.
504         Reported by numerous people, numerous times.
506 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
508         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
509         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
510         * lib/autoconf/general.m4, lib/autoconf/status.m4:
511         * lib/autotest/general.m4, tests/local.at:
512         Update copyright year to 2006.
514         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
515         sed substitutions.
516         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
517         for file names, again.  Reported by Noah Misch.
518         (Coding Style): Explain that s|a|b| is preferred for file names.
519         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
520         (AC_OUTPUT_MAKE_DEFS): Likewise.
521         * lib/autotest/general.m4 (AT_INIT): Likewise.
522         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
523         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
525         Fix Posix-conformance bugs re use of { command in sed scripts,
526         and improve the sed-related documentation a bit.
527         * doc/autoconf.texi (Installation Directory Variables): Use
528         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
529         rather than "sed" when talking about Sed in general.
530         (Particular Programs): Likewise.
531         (Coding Style): y is like s with respect to / and ,.
532         (Limitations of Usual Tools): Document the weird restrictions
533         that Posix has about { }.  Use better quoting.
534         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
535         Rewrite to conform to Posix rules about { } in sed scripts.
536         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
537         * tests/foreign.at (Libtool): Likewise.
538         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
539         Use our own style advice re 's,a,b,' versus 's|a|b|'.
541 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
543         * lib/autoconf/status.m4: Fix typo.
545         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
546         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
547         `-def', for the benefit of Portland `pgf90 -Mipa'.
548         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
550 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
552         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
553         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
554         shell from zsh to bash.
556 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
558         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
559           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
561 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
563         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
564         parentheses in $(...).  Problem reported by Eric Blake.
566 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
568         * doc/autoconf.texi (Limitations of Usual Tools):
569         Mention which characters can be escaped with \ in portable regular
570         expressions used in grep, sed, expr.  Mention the leading ^ problem
571         with expr.  Clean up some confusing wording.  Mention which
572         grep options are portable.
574 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
576         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
578 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
580         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
581         patch, noted by Ralf Wildenhues.
583 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
585         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
586         posix' unconditionally, for pdksh in `native sh' emulation.
588 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
590         * doc/autoconf.texi (Shellology): Document eval $? problem
591         with ash.
592         (Limitations of Builtins): Likewise.
594 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
596         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
597         CONFIG_SHELL in the environment of the configure rerun.
598         * doc/autoconf.texi (Here-Documents, config.status Invocation):
599         Suggest passing CONFIG_SHELL absolute, and in the environment
600         rather than as option.
602 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
604         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
605         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
606         Fix macro quoting.  Fix output for n * 98 substituted variables.
608 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
610         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
611         `tmp' to avoid file removal race.
613 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
615         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
616         ac_clean_files and LIBOBJS.
618 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
620         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
621         Factor functionality to..
622         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
623         `AC_SUBST($1)' in the public version.
624         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
625         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
626         ac_pt_* variables.
628 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
630         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
631         filesystems.
633 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
635         * NEWS: Move AH_HEADER mention to right place.
637 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
639         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
640         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
642 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
644         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
645         conftst2.$ac_objext.
646         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
648 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
650         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
651         conftest.o, to see whether the compiler really obeys; rm the object
652         file before and after the test and register it with ac_clean_files.
653         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
655 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
657         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
658         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
659         code so that the most common case requires less forks.
661 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
663         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
664         not portable; thanks to Paul Eggert and Alexandre.
666         * NEWS: Fix an old typo.
668 2005-10-20  Jim Meyering  <jim@meyering.net>
670         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
671         the latter'', in two places.
673 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
675         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
676         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
677         the inner workings of AC_LANG_FUNC_LINK_TRY.
678         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
679         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
680         by the function rather than ignoring it.
681         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
682         comparing its address.  Intel's interprocedural optimization was
683         outsmarting the old heuristic.  Problem reported by
684         Mikulas Patocka.
686 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
688         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
690 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
692         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
693         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
695 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
697         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
698         before removing it (chmod -R u+rwx); there are three instances of this.
700 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
701             Stepan Kasal  <kasal@ucw.cz>
703         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
704         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
705         make its content writable before removing it.  Remove an errorneous
706         comment from the end, where the logs of the failed tests are copied
707         to the main log file.
709 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
711         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
712           in case the computer is too quick.  Double quote the configure.ac
713           snippets.
715         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
716           problems if the testsuite were running too fast.
718 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
720         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
721         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
722         (which belong to Xt, not X itself).  See Debian bug 327655.
723         * NEWS: Mention this.
725 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
727         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
729 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
731         * config/move-if-change: Don't output "$2 is unchanged";
732         suggested by Ben Elliston.  Handle weird characters correctly.
734 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
736         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
737           calls, so that the final expansion of this macro is shorter.
738           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
739           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
740           the cleanup there.  Use AS_VAR_* macros, to be more general.
741         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
743         * lib/autoconf/general.m4: Use AS_IF where appropriate.
745         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
747 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
749         * doc/autoconf.texi (Configuration Headers): Add an index entry
750           for AH_HEADER.
752 2005-08-26  Pavel Roskin  <proski@gnu.org>
754         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
755         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
756         running xmkmf.
758 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
760         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
761         The previous patch didn't work, so try a better one.
763 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
765         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
766         in the example.  Reported by Bruno Haible.
767         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
768         "if $undefined_var;" succeeds with my shell.
770         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
771         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
772         but change the m4_divert_text to m4_divert_once.
774 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
776         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
777         Work around bug in Solaris /usr/xpg4/bin/awk.
778         The bug is present in at least Solaris 8 through 10.
780 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
782         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
783         some evil values and relying on the fact that $* concatenates the
784         parameters by the first character from IFS.
786 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
787             Stepan Kasal  <kasal@ucw.cz>
789         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
790         first header appears, define AH_HEADER.
791         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
792         Update limitations about when to call AC_CONFIG_HEADERS.
793         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
794         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
795         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
796         ``Configuration Actions''; fix their index entries.
798         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
799         options correctly.  Process N-M as M-N if M is smaller than N.
800         Process ranges correctly so that N-N will run only N.
801         Sort and uniquify the tests that will be run.  If there is more
802         than one test, reinsert the banners for the tests.
803         * tests/autotest.at (Keywords): Unmark XFAIL.
805 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
807         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
808           before passing the macro name to AH_TEMPLATE.
810         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
811           now opens log after option processing; in particular, --version
812           and --help do not touch config.log.
814         * Makefile.maint: Revert the change from 2005-08-12.
816 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
818         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
819           common code to...
820         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
822 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
824         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
825         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
826         Language cleanup.
828         * doc/autoconf.texi (Defining Symbols, Changed Results):
829         Prepend to LIBS, not append, in examples.
831 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
833         When building in place, set srcdir="."; suggested by Tim Van Holder.
835         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
836           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
837         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
838         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
839           does not mean "no --srcdir option".
841 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
843         * tests/autoscan.at (autoscan): New file.
844         * tests/suite.at: Use it.
845         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
846         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
848         * tests/autotest.at (Keywords): Test keywords combinations.
850 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
852         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
853           add "2>&1"; gzip 1.2.4 prints help on stderr.
855 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
857         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
858         was pushdef'ed twice while popped only once.  Push it only once.
859         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
861 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
863         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
864         prefixed by mere "===", not "configure: === ".
866 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
868         * Makefile.maint: Update from Bison.
870         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
871         "<tab>" in comment, so that the point is understandable.
873 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
875         Rewrite substantial part of lib/autoconf/status.m4.
876         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
877         and CONFIG_COMMANDS are not processed in four separate loops.
878         Instead, there is one main loop.  This alows that the common code
879         is expanded only once, thus config.status (and configure) is smaller.
881         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
882         the AC_LIST_FILES and cousins macros are no longer used.
884         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
885         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
886         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
887         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
888         contain the initialization, nor the for loop, nor the associated
889         commands; all these go to ...
890         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
891         _AC_OUTPUT_CONFIG_STATUS.
892         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
893         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
894         (_AC_OUTPUT_FILE): The creation of the sed script ...
895         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
896         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
897         _AC_OUTPUT_MAIN_LOOP.
898         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
899         _AC_CONFIG_COMMANDS): Use ...
900         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
901         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
902         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
903         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
904         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
905         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
906         ... new macros.
907         (_AC_CONFIG_UNIQUE): Update.
908         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
909         Replaced by this ...
910         (_AC_LIST_TAGS): ... new common macro.
911         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
912         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
913         (_AC_LIST_TAG_COMMANDS): ... new common macro.
914         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
915         this didn't belong to the `config commands' section.
916         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
917         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
918         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
919         to the `config commands' section either.
920         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
921         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
923         ... and many changes to the comments nearby.
925         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
926         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
927         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
928         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
929         (#define header templates): The comment at the top of the generated
930         header now includes the name(s) of the source file(s).
932         Several unrelated small changes:
934         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
935         parameter to AC_DIAGNOSE.
936         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
937         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
938         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
939         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
940         with AU::AC_OUTPUT.
941         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
942         in AC_OUTPUT doesn't double-quote it either.
943         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
944         parameters.
946 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
948         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
949         versions of Portland Group compiler produce single- and double-quoted
950         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
951         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
953 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
955         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
956         This is a corrected version of yesterday's patch.
958 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
960         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
961         path, too; insert a "===" to emphasize the line.
963         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
964           ac_cv_build_alias to ac_build_alias.
965         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
967         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
968         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
969         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
970         (AC_ARG_VAR): ... here.
971         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
972           target_alias.
974         Keep a list of all precious variables and process them with one simple
975         for loop, instead of expanding all commands, or, OTOH, complicated
976         processing of output of "set".
977         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
978         variable names in new macro...
979         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
980         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
981           a loop to assign all ac_env_* and ac_cv_env_* variables.
982         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
983           to INIT_PREPARE.
984         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
985           its value to shell variable ac_precious_vars and call
986           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
987         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
988           _AC_ARG_VAR_VALIDATE.
990         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
991           and the AC_SUBSTs ...
992         (AC_INIT): ... here.
994         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
995           the ac_subst_files section in config.log.
997         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
999 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1001         * NEWS: New macro AC_C_TYPEOF.
1002         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
1003         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
1004         * tests/c.at (C keywords): Test AC_C_TYPEOF.
1006         Fix problems reported by Nicolas Joly.
1007         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
1008         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
1009         They are generated by the Tru64 v5.1B shell.
1011 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
1013         Fix my changes from 2005-07-01; reported by Noah Misch.
1014         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
1015         description, the macro now accepts only a single tag.
1016         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
1018         Fix cases when the varsions of Autoconf and Autotest don't match.
1019         Reported by Noah Misch.
1020         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
1021         at_top_builddir, for compatibility with older autotest.
1022         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
1023         is not set, use at_top_builddir, for compatibility with older
1024         versions of autoconf.
1026 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1028         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
1029         Problem reported by Patrick Welche.
1031 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1033         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
1034         sed substitution command, so that we allow | in program prefixes
1035         and program suffixes.  (& is a problem anyway; we're not fixing
1036         that here.)
1037         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
1038         configure_input, top_builddir, srcdir, etc.
1039         * lib/autotest/general.m4 (AT_INIT): Likewise, for
1040         PATH_SEPARATOR in AUTOTEST_PATH.
1042 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
1044         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
1045         for loop over config.site files using `set', to allow
1046         directory names containing IFS characters.
1048 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1050         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
1051         directories with weird names.  Apparently some people like living
1052         on the edge.  However, improve the test that "pwd" actually does
1053         report a name for the working directory.
1054         * NEWS: Remove the claim that we test for funny chars in dir names.
1056 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
1058         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
1059         replaced ...
1060         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
1061         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
1062         Now accept a single tag, not whitespace separated list.
1063         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
1065 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
1067         * doc/autoconf.texi (Configuration Headers): Change the explanation
1068         about #include <config.h>.
1069         (Generic Functions): Mention the Gnulib project.
1070         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
1072         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
1073         document to output the default config_* lists to config.status.
1074         Don't recognize option --file, if the functionality is not there.
1075         Likewise for --header; moreover, recognize --he and --h as shortcuts
1076         for --help in that case.
1078         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
1079         matches the order of execution.  No code changed.
1081 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1083         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
1084         single-quoted -cmdline argument in Portland Group compiler.
1085         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
1087 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
1089         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
1091 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
1093         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
1094         descriptors to child processes; reported by Norman Gray.
1096 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
1098         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
1100         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
1101         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
1102         (AC_SUBST): Call it.
1103         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
1104         the directory specific variables; but don't call it for configure_input.
1106 2005-06-28  Derek Price  <derek@ximbiot.com>
1108         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
1109         addition.
1111 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1113         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
1114         directory have inherent problems with special characters like spaces,
1115         due to limitations in Make syntax.  Problem reported by Alexandre
1116         Duret-Lutz.
1117         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
1118         Also, fix Tru64 porting problem with shell patterns,
1119         reported by Ralf Wildenhues.
1121 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1123         * doc/autoconf.texi (Subdirectories): Fix markup typos.
1125 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1127         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
1129         Fix some more shell quoting problems.  Prompted by a bug report
1130         from Justace Clutter.
1131         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
1132         variable into diagnostic.  Make the diagnostic an error, not a warning,
1133         because we really don't support spaces and suchlike in dir names.
1134         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
1135         Don't worry about backslashes in srcdir; it can't happen now.
1136         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
1137         Simplify ac_optarg handling.
1138         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
1140 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
1142         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
1143         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
1144         * tests/atlocal.in: Propagate $EGREP and $SED.
1145         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
1146         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
1148         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
1149         that '\|' is not allowed in BREs; recommend using newline separated
1150         list of patterns instead of multiple -e options.
1152         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
1154         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
1156 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1158         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
1160 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
1162         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
1163         b, t, r, w commands require single space, while : cannot have any.
1164         (Special Shell Variables): Fix sed code this in the example.
1165         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
1166         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
1168         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
1169         expand to the empty list.  Don't use two pairs of m4_changequote,
1170         it's not necessary.
1172 2005-06-20  Derek Price  <derek@ximbiot.com>
1174         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
1176 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1178         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
1179         * doc/autoconf.texi:
1180         Don't mention Solaris versions so much, if a
1181         problem is common to all extant versions of Solaris.  Say "SunOS
1182         4" instead of "SunOS" for SunOS 4.
1183         (awk): Mention more of the limitations of traditional Awk.
1184         (cat): Don't talk about cat -v.
1186 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1188         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
1189         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
1190         but the implementation is entirely different and is designed
1191         to be compatible with glibc strverscmp.
1192         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
1194         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
1195         on Mac OS X 10.4 reported by Peter O'Gorman in:
1196         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
1197         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
1198         Use shell builtins rather than 'expr', to work around expr bug.
1200 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
1202         * doc/autoconf.texi: "filesystem" -> "file system".
1203         "behaviour" -> "behavior".
1204         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
1205         * lib/autoconf/general.m4: Omit blank after ":" sed command,
1206         as per POSIX.
1207         * lib/m4sugar/m4sh.m4: Likewise.
1208         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
1209         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
1211         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
1212         (.x.1): Ignore the time stamp in the .TH line when deciding whether
1213         to update the man page.  That way, we don't have to check in new
1214         man pages every month.
1216         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
1217         quotes and backslashes.  Patch from Derek Price.
1219 2005-06-10  Derek Price  <derek@ximbiot.com>
1221         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
1222         AS_TR_SH.
1224 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
1226         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
1227         -u, since it outputs chatter if the input files are the same.
1228         Problem reported by Ralf Menzel.
1230 2005-06-08  Derek Price  <derek@ximbiot.com>
1232         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
1233         renaming them since they are about to be redefined anyhow.
1235 2005-06-08  Derek Price  <derek@ximbiot.com>
1237         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
1238         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
1239         Move m4_undefine to alphabetical order.
1241 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1243         * README: Recommend GNU M4 1.4.3 or later.
1244         * doc/autoconf.texi (Introduction): Likewise.
1245         Reword to avoid some formatting glitches.
1246         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
1247         Clarify explanation of HP compiler bug.
1248         Redo example output tp match current CVS snapshot.
1249         Use @example.org in email addresses when the examples
1250         might get inadvertently cut-and-pasted into user code.
1251         Remove example of autom4te usage that doesn't seem to work now.
1252         Use modern AC_INIT (except when the example is meant to be
1253         shown with Autoconf 2.13).
1254         Update ksh info for Solaris 9 and later.
1255         KB -> kB.
1256         Modernize description of Automake versions a bit.
1257         Don't claim a future version of Autoconf is near.
1258         * doc/install.texi: Reword to avoid some formatting glitches.
1260 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1262         * doc/autoconf.texi: Add [] to examples, so that the manual
1263         follows its own advice about quoting better.
1264         Reword to avoid some formatting glitches.
1265         * doc/installt.exi: Reword to avoid some formatting glitches.
1267         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
1268         Tru64 ksh pattern matching bug.  Reported against Libtool by
1269         Albert Chin <libtool@mlists.thewrittenword.com> and
1270         Nicolas Joly <njoly@pasteur.fr>.
1272 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
1274         m4_cdr of one-member list was [[]] (one-member list containing an
1275         empty string) instead of [] (an empty list.  Callers were skewed to
1276         match this misbehaviour.  As a consequence of this:
1277          - m4_foreach([x], [], [foo]) expanded to `foo', while
1278          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
1279         This bug has been fixed:
1281         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
1282           expand to an empty string; print error msg if called without
1283           an argument list.
1284         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
1285           misbehaviour; handle [] and [[]] correctly.
1287 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
1289         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
1290         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
1291           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
1293 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
1295         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
1296           swallow records with more than 99 fields.
1297         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
1298           parse the long line.
1300 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
1302         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
1303           swallow literals longer than 399.  Reported by Ralf Wildenhues.
1304         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
1305           to workaround this limitation.
1307 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
1309         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
1310         to gfortran, and make these the first two compiler names
1311         checked (following the general autoconf preference for gcc).
1313 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
1315         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
1316         (DISTCLEANFILES): Remove $(check_SCRIPTS).
1317         (testsuite): Make sure autotest.m4f is up-to-date before using it.
1319 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1321         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
1322         expression of unbounded size when processing the --list
1323         option.  This runs afoul of a limit of 399 bytes per regular
1324         expression on AIX.  Problem reported by Ralf Wildenhues.
1326 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1328         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
1329         * doc/autoconf.texi (Particular Headers): Reword example
1330         for multiline stdbool replacement.
1331         (Setting Output Variables): Reword text a bit.  Don't
1332         give all the details about |#_!!_#|.
1333         Reword description of line replacement.
1335 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
1337         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
1338         now contain newlines, and substituted files must be referenced on
1339         a line alone; the sed scripts to substitute them are now very
1340         different.
1341         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
1342         commands can be put in a sed script portably.
1343         * doc/autoconf.texi (Setting Output Variables): Document above
1344         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
1345         use of multiline substitution.
1346         * tests/torture.at: No longer expect substitution of newline to fail.
1348 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1350         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
1351         From Ralf Menzel (trivial change).
1353 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1355         * tests/local.at: Don't attempt to check for negated character
1356         classes in shell scripts.  The test was too brittle.
1358 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
1360         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
1361         * doc/autoconf.texi (Limitations of Builtins): Document this
1362           limitation.
1364 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
1366         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
1367           common code; used in many places in the tree.
1368         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
1369         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
1371         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
1373         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
1374           messages when ac_unique_file is not found.
1375         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
1376         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
1377           commands, for consistency with AC_MSG_ERROR and such.
1379         * bin/autoconf.as: Make more use of "shift 2" in option processing.
1381         * bin/Makefile.am: Merge the two rules for creating scripts.
1383 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
1385         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
1386         obsolete; it was never documented.
1387         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
1389 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
1391         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
1392         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
1393         (ac_top_builddir): ... this ...
1394         (ac_top_build_prefix): ... to this; the old name is also kept, for
1395           backward compatibility.
1396         (ac_top_builddir_sub): New variable, without the trailing slash,
1397           always nonempty.
1398         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
1399         * doc/autoconf.texi (Configuration Actions): Rename
1400           ac_top_builddir to ac_top_build_prefix.
1401         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
1402           at_top_builddir to at_top_build_prefix.
1403         * lib/autotest/general.m4 (AT_INIT): Likewise.
1405 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
1407         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
1408           of confdefs.h .
1410 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
1412         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
1413           argument to m4_foreach.  I guess it was necessary in the past,
1414           but I think it's a no-op now.
1416 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
1418         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
1419           ``cat <<_ACEOF'' commands to one.
1420         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
1421         * lib/autoconf/status.m4: On various places, use expr instead of
1422           ``echo|sed.''
1423         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
1424         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
1425         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
1426           a range.
1427         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
1428           the wrong patterns between ``case'' and ``esac.''  The previous
1429           code had false positives.
1431 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
1433         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
1434         as on 2005-05-02.
1435         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
1436         Mention LIBOBJDIR.
1438 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1440         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
1441         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
1442         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
1443         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
1444         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
1445         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
1446         config/config.guess, config/config.sub, config/elisp-comp,
1447         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
1448         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
1449         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1450         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
1451         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
1452         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
1453         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
1454         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1455         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1456         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1457         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
1458         lib/autoconf/general.m4, lib/autoconf/headers.m4,
1459         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
1460         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
1461         lib/autoconf/specific.m4, lib/autoconf/status.m4,
1462         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
1463         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
1464         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
1465         lib/autotest/general.m4, lib/emacs/Makefile.am,
1466         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1467         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
1468         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
1469         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
1470         tests/compile.at, tests/foreign.at, tests/fortran.at,
1471         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
1472         tests/semantics.at, tests/suite.at, tests/tools.at,
1473         tests/torture.at, tests/wrapper.as:
1474         Update FSF postal mail address.
1476 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
1478         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
1479           check.
1480         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
1481           enough arguments, similarly as in m4_bpatsubsts.
1483 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
1485         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
1486           of absolute paths.
1488 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
1490         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
1491           for absolute directory names in one loop.
1492         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
1493           abbreviations of --version and --debug.
1495 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1497         * doc/autoconf.texi (Autoconf Language): Be more precise about
1498         quoting rules.  Problems noted by Stepan Kasal.
1499         Also, throughout this document, be more careful about white space.
1500         "blank", "white space", and "space" all have different meanings
1501         and we should be careful to say what we mean.
1503 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1505         Fix C++ related problems reported by Werner Lemberg.
1506         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
1507         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
1508         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
1509         avoid problems with C++ and throw.
1510         * tests/compile.at: .cpp, not .cc.
1512         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
1514 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1516         * doc/autoconf.texi (Generic Functions): Typos.
1518 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
1520         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
1521         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
1522         set by latest automake.
1524 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1526         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
1527         outputs 0 on GNU/Linux these days.
1529 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1531         * doc/autoconf.texi (Autoconf Language): Add more description
1532         about quoting heuristics.
1533         (Limitations of Builtins): Describe "set -" problems.
1535 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1537         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
1538         not newline.
1540         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
1541         by AC_DEFINE; it was a mistake.
1542         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
1544 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
1546         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
1548 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
1550         * doc/autoconf.texi (External Software): Quadrigraphs are not
1551           processed correctly in AS_HELP_STRING; avoid this in the examples.
1552         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
1553         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
1554           comment and reduce m4_default([foo], []) to [foo].
1555         (m4_strip): Update the explanation.
1557 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
1559         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
1560         Remove core.conftest.* too; it's generated by Tru64 5.1.
1561         Problem reported by Jennis Pruett.
1562         * lib/autoconf/functions.m4
1563         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
1564         Don't bother to remove core files; AC_RUN_IFELSE should do that
1565         for you.
1567 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
1569         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
1571 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
1573         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
1574         Report from Horst Wente.
1576 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
1578         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
1579           the comment.
1581 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
1583         * doc/autoconf.texi (External Software, Package Options): Add
1584           examples showing how to implement --with-* and --enable-* options.
1586 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
1588         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
1589         as well as configure.in.  Problem reported by Gregorio Guidi.
1591 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
1593         * doc/autoconf.texi (Particular Functions): Use gnulib's current
1594         pattern for alloca snippet.
1596 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
1598         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
1600 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
1602         * doc/autoconf.texi (Generic Programs): Fix a typo.
1604 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
1606         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
1607         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
1609 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1611         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
1612         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
1613         whole-archive (-zallextract, -zdefaultextract) options in the hope of
1614         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
1615         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
1617 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
1619         * NEWS: The configure command now warns you if you attempt to use
1620         a directory whose name contains a special character like space,
1621         newline, or "\".
1622         * doc/autoconf.texi (Installation Directory Variables): Allow
1623         "," in file names.  Do not use \@; it's not a portable regexp.
1624         * bin/Makefile.am (edit): Likewise.
1625         * lib/Makefile.am (edit): Likewise.
1626         * tests/Makefile.am (edit): Likewise.
1627         * tests/semantics.at: Likewise.
1628         * tests/torture.at: Likewise.
1629         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
1630         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
1631         * doc/autoconf.texi (File System Conventions): Warn about
1632         unportable file names.
1633         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
1634         (AC_INIT): Use it.
1635         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
1636         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
1637         ac_pwd, and quote srcdir.
1638         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
1640         * doc/autoconf.texi: Fix some systematic formatting problems.
1641         ".)"  needs a following @: if not at the end of a sentence, and
1642         similarly for "!)".  "etc." should be preceded by a comma.
1643         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
1645 2005-03-22  Bruno Haible  <bruno@clisp.org>
1647         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
1648         argument is often called 'build-aux'.
1650 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
1652         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
1653           macro AC_TRY_LINK is obsolete.
1654         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
1655           `AC_CONFIG_FILES'.
1657 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
1659         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
1660           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
1661           from a Common Lisp's `cl'.
1662         (AC_PROG_CXX): Behave according to the documentation: don't
1663           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
1664           make the variable CCC precious; use `cl.exe', not `cl'.
1666 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1667             Alexandre Duret-Lutz  <adl@gnu.org>
1669         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
1670         /dev/null, as "configure" shouldn't read stdin, and this insulates
1671         us from problems (e.g., when testing for "cl").  Also, do this
1672         redirection before invoking "hostname" or "uname", and keep the
1673         original input stream available via...
1674         (AS_ORIGINAL_STDIN_FD): ... this new macro.
1675         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
1676         bother with "</dev/null" since it's now done at the top of
1677         'configure'.
1678         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
1679         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1680         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
1681         * doc/autoconf.texi (File Descriptor Macros): New section.
1682         (Printing Messages): Mention it.
1683         * tests/base.at (Input/Output): New test.
1685 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1687         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
1688         newline if neither \c nor -n work, as that would output two
1689         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
1691 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
1693         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
1694         This causes that any required macros inside will get before the if.
1695         * doc/autoconf.texi (autom4te.cache): A typo.
1697 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1699         Undo previous change, except keep the change to
1700         lib/autoconf/programs.m4 that replaced grep with shell
1701         pattern-matching.  This is because net-snmp configure reads stdin.
1702         Reported by Noah Misch.
1704 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1706         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
1707         from /dev/null, as "configure" shouldn't read stdin, and this
1708         insulates us from problems (e.g., when testing for "cl").
1709         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
1710         before invoking "hostname" or "uname".
1711         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1712         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
1713         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
1714         "</dev/null" since it's now done at the top of 'configure'.
1715         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
1716         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
1717         Also, replace grep with shell pattern-matching, to save a process.
1719 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
1721         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
1722         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
1723         avoid thinking that Allegro Common Lisp's "cl" command is a C++
1724         compiler.
1726 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1728         * doc/autoconf.texi (Limitations of Usual Tools): Document that
1729         grep -q isn't portable.  Improve grep -s explanation.
1730         Problem reported by Dan Manthey.
1732 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1734         * doc/autoconf.texi (Special Shell Variables): Clarify
1735         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
1737 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1739         * doc/autoconf.texi: Use @acronym for DJGPP.
1740         Fix some @code's that should have been @env's, and vice versa.
1741         Sort environment variable names.
1742         Mention that shells no longer inherit IFS.
1743         Don't recommend PATH_SEPARATOR=';' so strongly.
1744         Mention that $RANDOM might expand to the empty string.
1745         "symlink" and "soft link" -> "symbolic link".
1746         Improve mktemp description (reported by Bruno Haible).
1748 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
1750         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
1751         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
1752         Likewise.
1753         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
1754         Likewise.
1756 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1758         * NEWS: Mention AT_COPYRIGHT.
1760         * tests/local.at (AT_CMP): Use diff directly on input files rather
1761         than copying them.
1763         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
1764         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
1766 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
1767         and Paul Eggert  <eggert@cs.ucla.edu>
1769         * tests/autotest.at (Empty test suite): New test.
1770         * tests/torture.at (Substitute and define special characters)
1771         (Substitute a 2000-byte string, Define to a 2000-byte string)
1772         (Substitute a newline, Define a newline): New tests.
1774 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
1776         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
1777         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
1778         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
1779         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
1780         (Standard regular expressions): New test.
1781         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
1782         excess test name quoting.
1783         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
1784         CPPFLAGS to `configure' instead of setting it in `configure'.
1786         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
1787         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
1788         on some platforms.
1790         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
1791         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
1793         * tests/local.at (AT_CMP): New macro.
1794         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
1795         (AC_SAVE_STATE): Move environment grep...
1796         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
1797         (AT_CONFIG_CMP): New macro.
1798         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
1799         * tests/c.at (Extensions): Do not exit early.
1800         * tests/atlocal.in: Inherit $GREP.
1802         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
1803         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
1805         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
1806         (AC_COPYRIGHT): Factor header comment portion out and move into...
1807         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
1808         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
1809         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
1810         --version output.
1811         * tests/local.at: Add Autoconf test suite copyright notice.
1812         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
1814 2005-02-04  Bruno Haible  <bruno@clisp.org>
1815         and Paul Eggert  <eggert@cs.ucla.edu>
1817         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
1819 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1821         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
1822         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
1824         Try not to generated lines of unlimited length, as POSIX places a
1825         2047-byte limit on line length of portable text files.
1826         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
1827         Use newline as a separator, not space.
1828         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
1829         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
1830         space.
1832 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1834         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
1835         as_func_*.  Add test to check whether positional parameters
1836         are restored after function return.
1838 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1840         * doc/autoconf.texi (Special Shell Variables): Mention _,
1841         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
1842         if they contain a lower-case letter.  The DUALCASE problem was
1843         reported by Ralf Wildenhues.
1845         * bin/autoconf.as: Don't exit with status 0 after write failure
1846         with --help or --version.
1847         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
1848         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
1850 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1852         * doc/autoconf.texi (Limitations of Usual Tools):
1853         Unicos 9 sed limitations.
1854         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
1855         to get the option-enhanced interface on older Crays.  Try ftn for
1856         Fortran 95 (newer Crays).
1858 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
1860         * man/Makefile.am (.x.1): Go back to the simple solution, but take
1861         care to echo the commands, so the user knows what's going on.
1862         Modified from a suggestion by Stepan Kasal.
1864         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
1865         with a cross reference.  Derived from a suggestion by Bruce Korb.
1867 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1869         * doc/autoconf.texi (config.status Invocation): Warn about
1870         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
1871         * doc/install.texi (Defining Variables): Likewise.
1872         Based on a proposed patch by Ralf Wildenhues.
1874         * man/Makefile.am (.x.1): Make sure the required generated files
1875         are up to date.  Problem and original solution proposed by Stepan Kasal.
1876         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
1877         implicit-man-prerequisites): New rules, used by the above.
1879         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
1880         * config/config.guess, config/config.sub, config/install-sh: Likewise.
1881         * config/missing, config/texinfo.tex: Likewise.
1883 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
1885         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
1886         Update the long comment explaining it.
1888         m4_require no longer writes an ``is required by'' line to the
1889         execution stack.  It contains only one bit of non-redundant
1890         information: that the macro was required, not called.  And even
1891         this bit is useless in most situations: have you ever met a macro
1892         which both calls and requires the same macro?
1894         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
1895         (_m4_defun_pro_outer): ... only via this macro, for the outermost
1896           macro.
1897         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
1898         (m4_expansion_stack_pop): Remove the misplaced comment.
1899         (m4_require): Don't put the ``is required by'' line to the
1900           execution stack; slightly improve the out-of-a-defun error message.
1901         (_m4_divert_grow): New macro, counter for the temporary diversions.
1902         (_m4_require_call): Use it.
1903         * tests/m4sugar.at (m4_require): Expect output without the
1904           ``is required by'' messages.
1906 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1908         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
1909         rather than x for expr.
1911         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
1912         this is safe.
1913         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
1914         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
1915         * lib/autotest/general.m4 (AT_INIT): Likewise.
1916         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
1917         * tests/mktests.sh: Likewise.
1919 2005-01-27  Akim Demaille  <akim@epita.fr>
1921         Have autoheader honor --force.
1923         * doc/make-stds.texi, doc/standards.texi: Update from masters.
1924         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
1925         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
1926         from masters, so that FileUtils.pm's update_file provide --force
1927         support.
1928         * bin/autoheader.in: Pass $force to update_file so that
1929         config.h.in is always recreated when --force.
1931 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
1933         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
1935 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1937         * doc/autoconf.texi (Limitations of Builtins): Clarify that
1938         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
1940 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
1942         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
1943         Warn about newline stripping in `` and $().  Update Solaris
1944         version to 9.
1945         (Limitations of Builtins): Use expr "X...", not expr "x...", as
1946         X insulates us from future changes to Posix.
1947         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
1948         stripping.
1950 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
1952         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
1953           you cannot use AC_DEFINE to define macros containing `[' or `]'.
1955 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1957         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
1958         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
1959         bug-tar mailing list.
1961 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
1963         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
1965 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1967         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
1968         ulongval to be static, to avoid unwanted GCC warning.  Problem
1969         reported by Michael Jennings via Daniel Reed; see
1970         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
1972 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
1974         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
1975         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
1976         datadir, infodir, and mandir.  Adjust argument parsing code.
1977         (_AC_INIT_HELP): Update help text.
1978         * doc/autoconf.texi (Installation Directory Variables): Document
1979         new variables.
1981 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
1983         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
1984         not seem to work, assume it does set $(MAKE).
1985         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
1987 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
1989         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
1991 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
1993         A cleanup of the diversion support in m4sugar.
1995         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
1996         (_m4_divert_n_stack): New macro; the expansion is
1997           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
1998           otherwise.
1999         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
2000         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
2001           stored in _m4_divert_diversion or _m4_divert_dump.
2002         (m4_divert_pop): When the parameter is given, compare the symbolic
2003           name with the last diversion pushed on the stack.  Previously, the
2004           current diversion was compared with the numeric value of the
2005           diversion given as the parameter.
2006         (m4_require): If the macro hasn't been expanded yet, call ...
2007         (_m4_require_call): this new macro.
2009 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2011         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
2012         Workarounds for documented `case' limitations.
2014 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2016         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
2017         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
2019 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2021         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
2022         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
2023         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
2025         Patch from Roger Leigh (with some minor changes) as follows:
2026         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
2027         Resurrect AC_PROG_CC_STDC.
2028         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
2029         AC_PROG_CC_C89, AC_PROG_CC_C99.
2030         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
2031         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
2032         AC_PROG_CC_C99): New macros.
2033         (AC_PROG_CC_STDC): Use them.
2034         (_AC_PROG_CC_STDC): Remove.
2035         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
2036         * THANKS: Add Roger Leigh.
2038 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
2040         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
2041         signals that the package uses Automake; a `Makefile.am' is typical but
2042         not essential.  Reported by Magnus Therning.
2043         * tests/torture.at (autoreconf.): New banner.
2044         (autoreconf and non-AC configure): Rename to `Non-Autoconf
2045         AC_CONFIG_SUBDIRS'.
2046         (autoreconf an empty directory): Rename to `Empty directory'.
2047         (Unusual Automake input files): New test.
2049 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
2051         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
2052         (AT_SETUP): Clear AT_capture_files.
2053         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
2054         (AT_KEYWORDS): Fix comment typo.
2055         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
2056         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
2057         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
2059 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
2061         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
2062         If the variable to set is already set, set ac_cv_path_$1
2063         to the preset value so caller can assume ac_cv_path_$1
2064         is available.  (trivial change)
2066 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
2068         * BUGS (Minor Problems): Warn about makefile limitations.
2069         * Makefile.am: Find and update `INSTALL' in $(srcdir).
2070         * man/Makefile.am: Find and update manual pages in $(srcdir).
2072 2004-12-24  Eric Blake  <ebb9@byu.net>
2074         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
2075         shells in subshell, to avoid noise from ash.  (trivial change)
2077 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2079         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
2080         problems with SunOS ksh and backslash escaping, Bourne shells and
2081         closing brackets (both within character classes).  Bug reported
2082         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
2083         <read>: New entry.  Mention non-availability of -r.
2085 2004-12-21  Akim Demaille  <akim@epita.fr>
2087         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
2088         avoid cluttering displayed messages.  Rather, prepend srcdir where
2089         AT_LINE is used for log files.
2091 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
2093         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
2094         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
2095           no longer part of the macro, quote the occurrence of ``$tmp''.
2096         * doc/autoconf.texi (Forbidden Patterns): Typo.
2098 2004-12-21  Akim Demaille  <akim@epita.fr>
2100         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
2101         separated from the test title by forcing a white space.
2103 2004-12-21  Akim Demaille  <akim@epita.fr>
2105         Enable Emacs navigation within testsuite.log files.
2107         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
2108         use the compilation mode.
2109         (AT_LINE): Point to the srcdir.
2111 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
2113         * tests/Makefile.am (installcheck-local): Use $(bindir).
2114         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
2115         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
2116         Makefile.am scheme Autoconf now uses.
2118 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
2120         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
2121         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
2123 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
2125         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
2126         (_AT_CHECK): Use it.
2127         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
2128         (AS_ESCAPE): Fix comment.
2129         * tests/autotest.at: Adjust section banner comments.
2130         (AT_CHECK_AT): Accept STATUS and STDERR.
2131         (AT_CHECK_AT_TEST): Likewise.
2132         (Invalid brace-enclosed parameter expansion)
2133         (Multiline command from M4 expansion)
2134         (Double-M4-quoted command): New tests.
2136 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2138         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
2140 2004-12-17  Akim Demaille  <akim@epita.fr>
2142         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
2143         m4_pattern_allow.
2144         Suggested by Alexandre Duret-Lutz.
2145         * doc/autoconf.texi (Setting Output Variables): Catch up.
2147 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2149         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
2151 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2153         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
2154           remove the comment which said we cannot.
2156 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2158         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
2159         Reini Urban and Paul Eggert for reporting the dependencies.
2161         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
2162         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
2163         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
2165 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2167         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
2168           so that eg. ``autoscan --help'' doesn't truncate it.
2170 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
2172         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
2173         generated conftest files.
2175 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
2177         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
2178         tracing on commands with possibly-escaped newlines.
2179         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
2180         discontinued behavior and its implications.
2181         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
2182         (BSx641-newline in command, BS-BS-newline in command)
2183         (BSx640-newline in command, Newline-CODE-BS-newline in command)
2184         (Single-quote-BS-newline in command)
2185         (Single-quote-newline-BS-newline in command): New tests.
2187 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
2189         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
2190           on platforms where it works.
2191         (_AS_TEST_PREPARE): Test for ``test -x''.
2192         (_AS_BROKEN_TEST_PREPARE): Nuke.
2194 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
2196         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
2197         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
2198           give only 4-letter prefix to AS_TMPDIR, comment fixed.
2199         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
2200           create the temporary directory.
2201         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
2203 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
2205         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
2206         (trivial change)
2208 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
2210         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
2212 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
2214         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
2215         to avoid using a negated character class.  Reported by Nicolas Joly.
2216         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
2218 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
2220         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
2221         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
2222         Don't depend on .x file explicitly, since "make" does that for us.
2223         Suggested by Stepan Kasal.
2225         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
2226         Add *.tmp.
2227         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
2228         ifnames): Factor common code.  And they said it couldn't be done!
2230 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
2232         * bin/.cvsignore: Add autoconf.in.
2233         * tests/.cvsignore: Add wrapper.in.
2234         * lib/autotest/general.m4: Escape '$' in case pattern.
2236 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
2238         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
2240         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
2242         * tests/autotest.at: New file.
2243         * tests/suite.at: Include it.
2244         * tests/Makefile.am: Distribute it.
2246         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
2247           shell tracing on a command that could contain multiple lines.
2248         * doc/autoconf.text: Document that fact and its implications.
2249         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
2250         * tests/autotest.at (Multiline backquote command substitution,
2251           Multiline parameter expansion, Literal multiline command,
2252           Multiline parenthetical command substitution): Remove XFAIL.
2254 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
2256         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
2257         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
2259 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
2261         * configure.ac (test suite): Cease to generate wrapper scripts.
2262         * configure: Regenerate.
2263         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
2264         (m4f_dependencies): Adjust accordingly.
2265         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
2266         (wrapper.in): Generate it in the build directory.
2267         (MAINTAINERCLEANFILES): Delete wrapper.in.
2268         (CLEANFILES): Add wrapper.in.
2269         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
2270         the output.  Replace each $as_me with a @wrap_program@.
2271         * tests/wrapper.in: Delete it; we always build it.
2273         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
2274         (EXTRA_DIST): Remove autoconf.in.
2275         (CLEANFILES): Add autoconf.in.
2276         (autoconf): Find autoconf.in in the build directory.
2277         * bin/autoconf.in: Delete it; we always build it.
2279 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
2281         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
2282         PATH members so as to not prepend an empty element.  Move a comment.
2283         * Makefile.am (SUBDIRS): Build in `tests' last.
2284         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
2286 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
2288         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
2289         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
2290         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
2291         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
2293 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
2295         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
2296         patch: extra "-l"s.
2298 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2300         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
2301         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
2302         * doc/autoconf.texi (Particular Functions): Mention new behavior.
2304 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
2306         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
2307           out the common code to ...
2308         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
2309           value of the #define--default to 1, iff the macro was called
2310           with exactly one parameter.
2312 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2314         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
2315         "char c = '\200';" rather than "char c = 0x80;" as the
2316         latter doesn't conform to the strict C standard due to
2317         overflow on signed char hosts.
2319         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
2320         to -qlanglvl=ansi.  We don't want to disable extensions.
2322 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2324         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
2325         (Using Autotest, testsuite Scripts, Writing testsuite.at):
2326         Reword slightly to avoid some English-language problems noted
2327         by Ralf Wildenhues in:
2328         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
2330 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
2332         * NEWS: Add ^L above each release.
2334 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2336         Fix documentation problems reported by Russ Boylan in
2337         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
2338         along with some nearby cruft.
2339         * doc/autoconf.texi (Libtool): Libtool can be used without
2340         Automake (not without Autoconf).
2341         (Introduction): Mention lists.gnu.org.
2342         * BUGS: Don't mention bugs.gnu.org.
2343         Remove mention of ancient libtool compatibility problem.
2344         * NEWS: Mention that bugs.gnu.org is kaput.
2345         * README: Likewise.  Mention where mailing list archives can be found.
2347 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
2349         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
2350         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
2352 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2354         * doc/autoconf.texi (Pretty Help Strings): Go back to
2355         single-quoting assignments to cache variables.
2357 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
2359         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
2360         with the examples; fix the bug in MY_ARG_WITH example reported
2361         by Alexandre Duret-Lutz.
2362         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
2363         expansion of $1 in the comment emitted to configure.
2365 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2367         * doc/autoconf.texi (Pretty Help Strings): Fix typo
2368         in my editing of the previous patch.  Problem reported
2369         by Alexandre Duret-Lutz.
2371 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
2373         * doc/autoconf.texi (Autoconf Language): Explain that
2374         ``descriptions'' may not be double quotes.
2375         (Quotation Rule Of Thumb): Likewise.
2376         (Pretty Help Strings): Likewise; remove the wrong comment;
2377         simplify the examples and improve their quoting.
2379 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
2381         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
2382         the $1_found variable, don't test whether the file is executable;
2383         Both things are checked ...
2384         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
2385         the former ``test -f''.
2386         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
2388 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
2390         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
2391         use cp -R instead.
2393 2004-11-10  Derek R. Price  <derek@ximbiot.com>
2395         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
2396         limitations.  Reorder paragraphs for clarity.
2398 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2400         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
2401         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
2402         variants", "Unix", and some related minor wording fixups.
2404         (Shellology, Special Shell Variables): Document that the Zsh
2405         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
2406         to Alexandre Duret-Lutz for this info.
2408 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
2410         * doc/autoconf.texi (One-Shot Macros): New node.
2412 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2414         * doc/autoconf.texi (Function Portability): Fix misdescription
2415         of putenv.  Problem reported by Michael Wardle.
2417 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2419         * doc/autoconf.texi (auindex): New macro.
2420         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
2421         Problem reported by Stepan Kasal.
2423 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2425         Fix problems reported by Andreas Buening in:
2426         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
2427         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
2428         in test makefile.
2429         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
2430         readable; it's not true in OS/2-emx.
2432 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
2434         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
2435         "/usr/include", clear ac_x_includes instead of leaving it as "no"
2436         (trivial change).  Problem and patch reported by Andrew Church in:
2437         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
2439 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2441         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
2442         three args in examples.  Problem reported by Frederik Fouvry in:
2443         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
2444         Also, fix some minor spacing and punctuation bugs.
2446 2004-09-02  Akim Demaille  <akim@epita.fr>
2448         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
2449         "case" to restore ordering.
2450         Reported by Stepan Kasal.
2452 2004-08-26  Akim Demaille  <akim@epita.fr>
2454         * doc/autoconf.texi: Minor typos and stylos.
2456 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2458         * configure.ac (AC_INIT): Bump to 2.59c.
2460 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2462         Version 2.59b.
2464         * README: Add advice about m4 1.4.2.
2466         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
2467         texinfo.tex for now (done by hand now).
2468         * Makefile.maint (wget_files, cvs_files):
2469         Remove ansi2knr.c; nobody uses it.
2470         (ansi2knr.c-url_prefix): Remove.
2471         (cvs-update): Fix test for failure.  I don't know why it ever
2472         worked...
2474         * doc/autoconf.texi: Update URLs, some of which went stale.
2475         Use @uref rather than @href.
2477         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
2478         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
2480         * config/config.guess, config/config.sub, config/elisp-comp,
2481         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
2482         doc/fdl.texi, doc/standards.texi: Sync with master copy.
2484         * NEWS, TODO, configure.ac, bin/autoscan.in,
2485         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
2486         doc/install.texi, lib/Autom4te/Configure_ac.pm,
2487         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
2488         lib/autoconf/programs.m4, lib/autoconf/status.m4,
2489         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
2490         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
2491         tests/tools.at, tests/torture.at:
2492         Use "file name" rather than "filename" or "path",
2493         to be consistent with the terminology of the GNU coding standards.
2495 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2497         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
2498         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
2499         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
2500         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
2502         More fixes to support spaces in the name of the build directory.
2503         This isn't a complete fix but it's an improvement.
2505         * bin/autoconf.as (autom4te_options): New var.
2506         Use it instead of appending to AUTOM4TE, so that we can allow
2507         spaces in the build directory's absolute name.
2508         * bin/autoheader.in ($autoconf): Allow spaces in file names.
2509         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
2510         AT_CHECK_NOESCAPE): Likewise.
2511         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
2512         main program): Likewise.
2514 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2516         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
2517         From Ralf Corsepius in:
2518         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
2520 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2522         * doc/autoconf.texi (Function Portability): Document isinf and
2523         and isnan.  From a suggestion by Kevin Ryde.
2525         * lib/Autom4te/General.pm (END): Return correct exit status even
2526         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
2528 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2530         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
2531         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
2532         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
2534 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
2536         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
2537         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
2538         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
2539         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
2540         * lib/autom4te.in (Automake-preselections): Preselect
2541         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
2543 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
2545         * lib/autom4te.in (Automake-preselections): Preselect
2546         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
2547         trace them.
2549 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
2551         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
2552         Tru64.
2553         * doc/autoconf.texi (Shellology): Mention BIN_SH.
2554         Document problem with "`""`" in pdksh POSIX mode.
2556 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2558         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
2559         with pdksh, too.  Problem reported by Patrick Welche via
2560         Gary V. Vaughan.
2561         * doc/autoconf.texi (Shellology): Note that set -o posix is
2562         useful for pkdsh, too.
2564 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2566         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
2567         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
2568         Don't fail if ENV or BASH_ENV is readonly.
2569         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
2570         etc. are read only.  Problem reported by Ludovic Courtes.
2572 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
2574         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
2575         zsh, disable GLOB_SUBST to avoid backslash handling problems.
2576         (trivial change)
2578 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
2580         * doc/autoconf.texi (File System Conventions): Warn about
2581         names like "aux".  Problem reported by Eric Blake.
2583         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
2584         by zero instead of array size, so that we can use any arithmetic
2585         constant expression (instead of requiring an integer constant
2586         expression).  This allows us to test expressions like DBL_MAX <
2587         LDBL_MAX, which didn't conform to the C standard using the old
2588         method.
2589         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
2590         now that we can do floating-point tests at compile time.
2592 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2594         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
2595         and LDBL_EPSILON, as the resulting expression isn't an
2596         integer constant expression and violates the C standard.
2597         Problem reported by Nelson H. F. Beebe.  Also, check
2598         for "L" suffix, and check that long double doesn't have
2599         worse range or precision than double, that mixed-mode
2600         arithmetic doesn't generate a diagnostic, that double
2601         constants fit in long double.
2603 2004-06-03  Kevin Ryde  <user42@zip.com.au>
2605         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
2606         malloc(0) and realloc(NULL,size).
2608         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
2609         Bob Proulx.
2611 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2613         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
2614         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
2615         by Jim Meyering.
2617 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2619         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
2620         can be rewritten using if-then-else.  Suggested by Bruno Haible.
2622 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2624         * doc/autoconf.texi (testsuite Scripts): Fix typo.
2625         Problem reported by Stepan Kasal.
2627 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2629         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
2630         change).  Patch reported by Ralf Wildenhues in
2631         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
2633         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
2634         function F exists if the compiler and linker let you compile an
2635         expression like (F != 0).  Recent versions of GCC optimize away
2636         the reference to F in that case, since every function address must
2637         be nonzero, so the link succeeds even if F does not exist.
2638         Problem reported by Manu in
2639         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
2641         * doc/autoconf.texi (Systemology): Standardize on the spelling of
2642         "Unix".  Many uses changed.
2643         (Limitations of Builtins): Explain better why the ! command isn't
2644         portable.
2646 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
2648         * lib/autom4te.in (Automake-preselections): Preselect
2649         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
2651 2004-05-19  Kevin Ryde  <user42@zip.com.au>
2653         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
2654         referencing AC_FUNC_STRERROR_R.
2656         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
2657         note pessimistic assumption when cross compiling.
2659 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2661         * doc/autoconf.texi (Limitations of Make): Note that BSD make
2662         (until 2004) invoked subcommands with sh -e, contra POSIX.
2663         Reported by Kevin Ryde.
2665 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
2667         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
2668         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
2669         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
2670         `test -f "        /usr/bin/grep"', which _always_ failed.
2671         (AC_PROG_SED): Ditto bogus PATH fix.
2672         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
2673         requires that grep correctly supports _multiple_ `-e' options, rather
2674         than stating only that grep should accept `-e'.
2676 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2678         Port to C99, which requires that 'exit' be declared.
2680         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
2681         to ensure that stdlib.h is included.
2682         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
2683         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
2684         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
2685         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
2686         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
2687         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
2688         when using 'exit' in a test; C99 requires that 'exit' be declared.
2690 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2692         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
2693         now prefers 'grep' implementations that accept -e.
2694         (Limitations of Usual Tools): Describe problems of traditional
2695         egrep and fgrep with long input lines, and of traditional grep
2696         with -e.
2697         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
2698         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
2699         All callers changed.  Append /usr/xpg4/bin to the PATH, for
2700         Solaris.
2701         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
2702         the user with complaints about multiple -e options.
2703         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
2704         Define it with AC_PROG_GREP.
2705         * configure.ac (AC_PROG_GREP): Add.
2706         * lib/freeze.mk (GREP): New macro.
2708 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
2710         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
2711         a possible candidate only after all others fail, rather than
2712         consulting it first.  This improves backward compatibility by
2713         better reflecting the way shell selection occurred in previous
2714         versions of Autoconf, and should help to avoid triggering latent
2715         problems in other packages, such as the one in Automake where zsh
2716         is not handled robustly:
2717         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
2718         Although it is not Autoconf's responsibility to work around
2719         problems in Automake, it nevertheless makes sense to avoid
2720         introducing unnecessary incompatibilites.
2722 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
2723             Gary V. Vaughan  <gary@gnu.org>
2725         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
2726         how deeply nested we are when a suitable tool is found, set the
2727         ac_path_TOOL_found flag.
2728         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
2729         nested we are in this macro.  Break out of all 3 nested loops if
2730         ac_path_TOOL_found is set.
2732 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
2734         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
2735         of the _AS_PATH_WALK loop too if GNU flavor is found.
2737 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
2739         * doc/autoconf.texi (Limitations of Make): Update documentation
2740         for `$<'.  New entry `Long lines', based on a report from Simon
2741         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
2742         paragraph about DJGPP, based on a mail from Richard Dawe.
2744 2004-04-20  Paul Eggert  <eggert@twinsun.com>
2746         * tests/c.at (C keywords): Don't assume that GCC supports
2747         "restrict" and "inline", as sufficiently-old GCC versions do not
2748         (also, GCC configured to be in pedantic C89 mode does not).
2749         Problem reported by Sumit Pandya in:
2750         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
2752         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
2753         consider -g to work if it generates warnings when plain compiles
2754         don't.  Problem reported by Braden McDaniel in:
2755         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
2757         * doc/autoconf.texi (Slashes): New section, to document a problem
2758         reported by Jim Meyering in:
2759         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
2761         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
2762         linker output files before linking, to work around IRIX 6 linker bug.
2763         Problem reported by Rainer Orth in:
2764         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
2766 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
2768         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
2769         best tool so far counter rely on the tool path variable name to
2770         avoid checks for one tool being affected by the results of running
2771         the length check on a previous tool.
2773         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
2774         match expression argument, as different greps have different
2775         regular expression flavours.
2776         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
2777         literals.
2778         (AC_PROG_EGREP): Pass 'EGREP$'.
2779         (AC_PROG_GREP): Pass 'GREP$'.
2781 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
2783         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
2784         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
2786 2004-03-29  Paul Eggert  <eggert@twinsun.com>
2788         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
2789         Types, Specific Compiler Characteristics, System Services,
2790         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
2791         etc. consistently instead of 'long', 'short', 'unsigned' etc.
2792         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
2793         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
2794         Likewise.
2795         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
2796         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
2797         AC_TYPE_OFF_T): Likewise.
2798         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
2799         Likewise.
2801         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
2802         pacify libtool 1.5.2.  Fix quoting problems in sed command.
2804 2004-03-28  Paul Eggert  <eggert@twinsun.com>
2806         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
2807         now defines HAVE_DECL_TZNAME if it is declared, when
2808         HAVE_STRUCT_TM_TM_ZONE is not defined.
2809         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
2810         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
2811         for HAVE_TZNAME.
2813 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
2815         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
2816         superfluous backslashing of quotes (") in sed expressions;
2817         thanks to Paul Eggert.
2819 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
2821         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
2822         Fortran compiler is ifort, also added pghpf; thanks to Nelson
2823         H. F. Beebe for the bug report.
2825 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
2827         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
2828         quoted -cmdline argument in Portland Group compiler (bug
2829         reported by Jeffrey J. Barteet).
2831 2004-03-25  Kevin Ryde  <user42@zip.com.au>
2833         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
2834         (Run Time): ... here, where it's now mentioned.
2836 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
2838         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
2839         inherits from language Autoconf-without-aclocal-m4.
2840         (Customizing autom4te): Adjust example; the cache must now be
2841         disabled for language Autoconf-without-aclocal-m4.
2843 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
2844             Nathanael Nerode  <neroden@twcny.rr.com>
2846         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
2847         AC_CHECK_TOOLS): Warn if a cross-tool is found without
2848         a prefix.
2849         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
2850         AC_CHECK_TARGET_TOOLS): New macros.
2851         * doc/autoconf.texi (Generic Programs): Document
2852         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
2853         AC_CHECK_TARGET_TOOLS, and warn for future changes
2854         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
2855         AC_CHECK_TOOLS.
2856         (Specifying Names): Document the reason for these future
2857         behavioral changes.
2858         * tests/mktests.sh: Do not generate tests for the
2859         new macros.
2860         * NEWS: Document these changes.
2862         * doc/autoconf.texi: Avoid macros with unbraced arguments,
2863         they make TeX hang up.
2865 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
2867         * NEWS: New macro AC_CHECK_ALIGNOF.
2868         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
2869         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
2870         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
2871         vowel.
2872         (AC_CHECK_ALIGNOF): New macro.
2873         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
2874         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
2875         those for sizeof.
2877 2004-03-03  Paul Eggert  <eggert@twinsun.com>
2879         * bin/Makefile.am (edit): Don't use $< in a context where
2880         POSIX doesn't require support for it.  Use $@.in instead.
2881         Problem reported by Anthony N. Frasso in
2882         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
2883         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
2885 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
2887         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
2888         from the next generation of Libtool.
2889         * lib/autom4te.in (Autoreconf-preselections): Ditto.
2891 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
2893         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
2894         is not always thread-safe.  Report from Nathanael Nerode.
2896 2004-02-18  Paul Eggert  <eggert@twinsun.com>
2898         Fix a dependencies problem, stemming from a Autoconf 2.59 build
2899         problem on QNX reported by Stephen Rasku in
2900         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
2902         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
2903         $(m4sh_m4f_dependencies); this removes a FIXME.
2904         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
2905         (MAINTAINERCLEANFILES): Split into pieces,
2906         one per related section.  Add $(srcdir)/wrapper.in.
2908 2004-02-09  Paul Eggert  <eggert@twinsun.com>
2910         * doc/autoconf.texi (Setting Output Variables): Emphasize that
2911         AC_SUBST provides no portable way to escape literal newlines.
2913         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
2914         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
2915         Darwin uses -lcrt2.o and there's little point to cataloging all
2916         the system variants.  Partial fix reported by Andreas Waechter in:
2917         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
2918         for bug reported by Nelson H. F. Beebe in:
2919         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
2921 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
2923         * doc/autoconf.texi (AU_DEFUN): Fix English,
2924         suggested by Paul Eggert.
2925         * lib/autoconf/autoupdate.m4: Correct reference to
2926         acobsolete.m4, suggested by Alexandre Duret-Lutz.
2928 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
2930         * bin/autoupdate.in: Define __file__ so that warnings
2931         refer to the correct file.
2932         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
2933         the behavior of the third argument.
2934         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
2935         correctly the behavior of the third argument.  Document
2936         what the three macros that AU_DEFUN defines do.  Fix
2937         warning message when the third argument includes $0
2938         (reported by Alexandre Duret-Lutz).
2940 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
2941             Eric Sunshine  <sunshine@sunshineco.com>
2942             Paul Eggert  <eggert@twinsun.com>
2944         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
2945         (AS_INIT): Output shell initialization there. Removed optional
2946         parameter. Expand _AS_SHELL_FN_SPY.
2947         (AS_INIT_WITH_SHELL_FN): Removed.
2948         (_AS_SHELL_FN_SPY): New macro.
2949         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
2950         macros.
2951         (AS_SHELL_SANITIZE): Remove loop to find better shell
2952         and documentation for the parameter.
2953         (_AS_DETECT_BETTER_SHELL): Move it here.
2954         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
2955         (_AS_RUN): Move it here, support testing with eval.
2956         (AS_REQUIRE_SHELL_FN): Require shell functions when
2957         it is used.
2958         (_AS_LINENO_WORKS): Put around braces, we do not
2959         trigger the bash bug anymore.
2960         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
2961         use AS_INIT_WITH_SHELL_FN.
2962         * bin/autoconf.in, tests/wrapper.in: Regenerated.
2964 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
2966         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
2967         * doc/autoconf.texi: Don't say that the third parameter
2968         is broken.
2969         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
2970         (AU_DEFUN): Honor the third parameter, create autoupdate
2971         macros with AU_DEFINE.
2972         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
2973         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
2974         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
2975         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
2976         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
2977         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
2978         AC_XENIX_DIR): Likewise.
2979         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
2980         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
2981         * lib/autoconf/status.m4: Remove FIXME.
2982         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
2983         that the macro is not present anymore in the updated
2984         configure.ac.
2985         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
2986         of autoupdate.
2988 2004-01-28  Paul Eggert  <eggert@twinsun.com>
2990         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
2991         copyright years.
2992         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
2993         2003 (except 1997) to the list of copyright years.  This undoes
2994         the 2003-05-22 change, which removed the older years from the list.
2995         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
2997 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
2998             Albert Chin-A-Young  <china@thewrittenword.com>
3000         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
3001         grep or ggrep program in PATH that accepts as long lines as
3002         possible.
3003         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
3004         AC_PROG_GREP.
3005         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
3006         egrep and fgrep respectively if $GREP -E/-F don't work.
3007         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
3008         _AC_PROG_GREP, and AC_PROG_SED.
3009         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
3010         longest input length accepted by a command.
3011         (AC_PROG_SED): Use it.
3012         * doc/autoconf.texi (Particular Programs): Document the changes.
3013         * NEWS: Updated.
3015 2004-01-27  Paul Eggert  <eggert@twinsun.com>
3017         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
3018         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
3019         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
3020         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
3022         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
3023         bin/autoconf.in, config/Makefile.in, config/config.guess,
3024         config/config.sub, config/install-sh, config/mdate-sh,
3025         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
3026         lib/Makefile.in, lib/Autom4te/Makefile.in,
3027         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
3028         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
3029         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
3030         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
3031         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
3032         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
3033         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
3034         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
3035         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
3036         tests/actypes.at: Regenerate and/or sync with original
3037         sources.
3039 2004-01-26  Paul Eggert  <eggert@twinsun.com>
3041         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
3042         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
3043         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
3044         not <inttypes.h>.  Problem reported by Tim Mooney in
3045         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
3046         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
3047         Likewise.
3049         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
3050         otherwise "make check" fails because it forbids cmp (I guess
3051         because cmp treats files as binary on DOS-like systems).
3053         * tests/mktests.sh: Update copyright date to 2004, since some tests
3054         have changed in 2004.
3056 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
3058         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
3059         non-truncating sed or gsed program in PATH.
3060         * tests/acprograms.at: Add it.
3061         * doc/autoconf.texi (Particular Programs): Document it.
3062         * NEWS: Updated.
3064 2004-01-15  Paul Eggert  <eggert@twinsun.com>
3066         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
3067         -std1 disables some useful extensions on Tru64.  Problem reported
3068         by N. Lichtmaier in
3069         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
3071 2004-01-14  Paul Eggert  <eggert@twinsun.com>
3073         * doc/autoconf.texi (Programming in M4sh): Document that
3074         AS_MKDIR_P succeeds if the destination is a symbolic link
3075         to an existing directory.
3076         (Limitations of Usual Tools): Note that mkdir -p might not
3077         succeed on symlinks to directories.
3079 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
3081         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
3082         * bin/autoheader.in: Grammar fix in message.
3083         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
3084         Test for dir before calling mkdir -p.  (trivial changes)
3086 2004-01-13  Eric Blake  <ebb9@byu.net>
3088         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
3089         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
3091 2004-01-10  Jim Meyering  <jim@meyering.net>
3093         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
3095 2004-01-09  Paul Eggert  <eggert@twinsun.com>
3097         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
3098         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
3099         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
3100         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
3101         AC_COMPILE_IFELSE, since we now assume our caller invokes
3102         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
3103         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
3104         of AC_RUN_IFELSE; this avoids the warning mentioned above.
3105         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
3107 2004-01-07  Paul Eggert  <eggert@twinsun.com>
3109         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
3110         `"'...'"`, as it's confusing (and I suspect it may not work on
3111         some platforms).  The code was incorrect anyway, as it assumed
3112         that \$ evaluated to itself in that context.  Reported by
3113         Alexandre Duret-Lutz.
3115 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
3117         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
3118         and _LT_AC_TAGCONFIG.
3120 2004-01-06  Paul Eggert  <eggert@twinsun.com>
3122         * doc/autoconf.texi (One Macro Call): Fix an incorrect
3123         example, and add more examples.  Reported by Eric Sunshine.
3125 2004-01-05  Paul Eggert  <eggert@twinsun.com>
3127         * doc/autoconf.texi (Limitations of Usual Tools):
3128         Remove warning against "rm -fr" introduced yesterday; it
3129         was a false alarm.
3131         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
3132         autoscan, autoupdate, ifnames): Don't use chmod -w.
3133         * lib/Makefile.am (autom4te.cfg): Likewise.
3134         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
3135         "chmod -w".
3137 2004-01-04  Paul Eggert  <eggert@twinsun.com>
3138             Paolo Bonzini  <bonzini@gnu.org>
3140         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
3141         by doing lineno substitution only on lines containing "$LINENO".
3143 2004-01-04  Paul Eggert  <eggert@twinsun.com>
3145         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
3146         Use "rm -f" to remove conftest.sed, not plain "rm".
3147         Bug reported by David Relson in
3148         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
3150         * Makefile.am (autom4te-update):
3151         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
3152         * Makefile.maint (my-distcheck, do-po-update): Likewise.
3153         * doc/autoconf.texi (Guidelines): Likewise.
3154         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
3155         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
3156         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
3157         * lib/autotest/general.m4 (AT_INIT): Likewise.
3158         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
3159         * tests/Makefile.am (clean-local): Likewise.
3160         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
3161         srcdir): Likewise.
3162         * doc/autoconf.texi (Limitations of Usual Tools):
3163         Warn against "rm -fr".
3165 2004-01-03  Paul Eggert  <eggert@twinsun.com>
3167         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
3168         -c -o might not work.  From a suggestion by Kevin Ryde.
3169         (C Compiler, Generating Sources, Limitations
3170         of Usual Tools, Limitations of Make, Making testsuite Scripts):
3171         Don't put '-o' after non-options, as POSIX doesn't allow this.
3172         Mention that cc's name might be gcc or c89 or whatever.
3174 2004-01-04  Kevin Ryde  <user42@zip.com.au>
3176         * doc/autoconf.texi: Add various further index entries.
3178 2003-12-29  Paul Eggert  <eggert@twinsun.com>
3180         * bin/autoreconf.in (autoreconf_current_directory):
3181         Fix typo: mkdir without umask arg.
3183 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
3185         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
3186         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
3187         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
3188         explanation clearer.
3190 2003-12-24  Andreas Schwab  <schwab@suse.de>
3192         * doc/autoconf.texi (Default Includes): Fix misspelling of
3193         AC_INCLUDES_DEFAULT.
3195 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
3197         * configure.ac: Test if sh -n works.
3198         * configure: Regenerate.
3199         * tests/atlocal.in: Store the result here.
3200         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
3201         tools.at, looking in atlocal's ac_cv_sh_n_works instead
3202         of explicitly testing.
3203         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
3204         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
3205         * tests/tools.at (Syntax of the shell scripts): Simplify
3206         using AT_CHECK_SHELL_SYNTAX.
3207         (Syntax of the Perl scripts): Remove definition of
3208         AT_CHECK_PERL_SYNTAX.
3210 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
3212         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
3213         stderr to /dev/null.
3214         * bin/autoconf.in: Regenerate.
3215         * bin/wrapper.in: Regenerate.
3217 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
3219         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
3220         Extracted from AS_SHELL_SANITIZE.
3221         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
3222         macros.
3223         (AS_SHELL_SANITIZE): Move reinvocation code from
3224         _AS_LINENO_WORKS, use it to find out if shell
3225         functions work.
3226         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
3227         does not work.
3228         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
3229         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
3230         was called.
3231         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
3232         * bin/autoconf.in: Regenerate.
3233         * tests/wrapper.in: Regenerate.
3234         * tests/tools.at: Test the syntax of tests/autoconf
3235         and tests/testsuite.
3237 2003-11-24  Akim Demaille  <akim@epita.fr>
3239         * config/announce-gen (&print_locations, &print_signatures)
3240         (&sizes): New.
3241         Use them.
3242         No longer rely on Gnus to inline the list of signatures: compute
3243         them on the fly.
3245 2003-11-24  Akim Demaille  <akim@epita.fr>
3247         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
3248         override some files.
3249         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
3250         From Debian Autoconf 2.58.
3252 2003-11-24  Akim Demaille  <akim@epita.fr>
3254         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
3255         uses.
3256         From Debian Autoconf 2.58.
3258 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
3260         * TODO: Remove already done things.  Update the part about finding
3261         tools for the target.
3263 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
3265         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
3266         Make wording more consistent.
3267         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
3268         Explain the transition better.
3269         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
3270         the transition better.
3272 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
3274         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
3275         parameter of AU_DEFUN.
3276         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
3277         (AU_DEFUN): Remove the third parameter, it was not used.
3278         Use AC_DEFUN directly, not AU_DEFINE.
3279         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
3280         the expanded body, consistently with other macros such as AC_USG.
3282 2003-11-17  Paul Eggert  <eggert@twinsun.com>
3284         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
3285         into the initial confdefs.h, to work around a bug in NextStep 3.3
3286         patch 3 reported by Eric Sunshine.
3288 2003-11-15  Kevin Ryde  <user42@zip.com.au>
3290         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
3291         than $target since the latter is not usual, add guidelines on when to
3292         use or not use the system type.
3294 2003-11-12  Derek Price  <derek@ximbiot.com>
3296         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
3297         typo misrepaired by an auto-spellcheck.
3299 2003-11-12  Akim Demaille  <akim@epita.fr>
3301         * bin/autoreconf.in (&parse_args): Don't call automake with
3302         --force-missing unless it actually supports it.
3303         From Debian #219336.
3305 2003-11-12  Akim Demaille  <akim@epita.fr>
3307         * configure.ac: Bump to 2.59a.
3308         Require 2.59.
3310 2003-11-06  Akim Demaille  <akim@epita.fr>
3312         Version 2.59.
3314 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
3316         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
3317         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
3318         and ac_abs_top_srcdir are absolute paths.
3319         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
3321 2003-11-05  Akim Demaille  <akim@epita.fr>
3323         * configure.ac: Bump to 2.58a.
3325 2003-11-05  Kevin Ryde  <user42@zip.com.au>
3327         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
3328         it provokes a warning from makeinfo about looking like a cross
3329         reference in info output.
3331         * doc/autoconf.texi (Function Portability): Add notes on signal
3332         handler return type, as per AC_TYPE_SIGNAL.
3334 2003-11-04  Akim Demaille  <akim@epita.fr>
3336         Version 2.58.
3337         * doc/standards.texi: Update from master.
3339         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
3341 2003-11-04  Akim Demaille  <akim@epita.fr>
3343         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
3344         computing the absolute path to d1 in the source hierarchy: it may
3345         not exist at all.  So don't cd into it.
3346         From Alexandre Duret-Lutz.
3347         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
3349         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
3350         From Paul Eggert, but named after Perl's IO::Spec->catfile.
3351         * doc/autoconf.texi (Programming in M4sh): Document.
3352         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
3354 2003-11-03  Pavel Roskin  <proski@gnu.org>
3356         * doc/autoconf.texi (Generic Structure Checks): Describe
3357         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
3359 2003-10-31  Akim Demaille  <akim@epita.fr>
3361         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
3362         (GNU Fortran): New.
3363         * doc/autoconf.texi (Language Choice): Document.
3364         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
3365         the current language is Fortran.
3367 2003-10-31  Akim Demaille  <akim@epita.fr>
3369         * bin/autom4te.in (&freeze): Use a less likely warning separator
3370         than `\n\n', so that `\n\n\n' is valid in warnings.
3371         Reported by Steve Huston.
3373 2003-10-28  Akim Demaille  <akim@epita.fr>
3375         * Makefile.cfg (local_updates, executable-update): Tweak to be
3376         robust to parallel makes.
3377         Suggested by Alexandre Duret-Lutz.
3379 2003-10-27  Akim Demaille  <akim@epita.fr>
3381         * Makefile.cfg (executable-update): New.
3382         (local_updates): Call it.
3384 2003-10-27  Akim Demaille  <akim@epita.fr>
3386         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
3387         Don't remove core.* as it may remove valid user files.
3388         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
3389         (AC_FUNC_UTIME_NULL): Likewise.
3391 2003-10-23  Akim Demaille  <akim@epita.fr>
3393         Version 2.57g.
3394         * config/config.guess, config/config.sub: Upgrade from masters.
3396 2003-10-23  Akim Demaille  <akim@epita.fr>
3398         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
3399         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
3400         hand...
3402 2003-10-23  Akim Demaille  <akim@epita.fr>
3404         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
3405         Don't forget to remove conftest.err.
3407 2003-10-23  Akim Demaille  <akim@epita.fr>
3409         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
3410         same object file in $LIBOBJS.
3411         Reported by Alexandre Duret-Lutz & Derek Robert Price.
3412         * doc/autoconf.texi (Generic Functions): Adjust.
3414 2003-10-20  Paul Eggert  <eggert@twinsun.com>
3416         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
3417         Use 'eval', so that the resulting configure scripts work even if
3418         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
3420 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
3422         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
3423         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
3424         (_AC_LINK_IFELSE): Check the werror flag.
3425         * doc/autoconf.texi (Generic Compiler Characteristics): Document
3426         AC_LANG_WERROR.
3427         * NEWS: Mention it.
3429 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
3431         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
3432         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
3433         override AC_LINK_IFELSE.
3435 2003-10-15  Paul Eggert  <eggert@twinsun.com>
3437         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
3438         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
3439         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
3440         Mention /usr/dt/bin/dtksh on Solaris.
3441         (Shell Substitutions): Warn about $((...)).
3442         (Parentheses): New section.
3444 2003-10-15  Kevin Ryde  <user42@zip.com.au>
3446         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
3447         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
3449 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3451         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
3452         cross test.
3454 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
3456         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
3457         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
3459 2003-10-10  Andreas Schwab  <schwab@suse.de>
3461         * bin/autoheader.in: Avoid empty first line in --version and
3462         --help output.
3463         * bin/ifnames.in: Likewise.
3465 2003-10-09  Paul Eggert  <eggert@twinsun.com>
3467         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
3468         Issue a more-informative diagnostic.
3469         Problems reported by Eric Sunshine.
3471 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
3473         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
3474         -mGLOB_options_string stuff for Intel ifc, which can cause
3475         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
3476         pattern-matching instead of grep.
3478 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
3480         * doc/autoconf.texi: Document new FC Fortran macros.
3482 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
3484         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
3485         that future autopoint/aclocal/automake/autoreconf will be able
3486         to trace to find where to install local m4 macros.
3487         * doc/autoconf.texi (Input): Document it.
3488         * NEWS: Updated.
3490 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
3492         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
3493         -lcrtbegin.o to list of ignored flags and fix underquoting of
3494         -lcrt[01].o.
3496 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
3498         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
3499         cache variable instead of $G77 to decide whether to include -O2,
3500         since $G77 is specific to Fortran 77.
3502 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3504         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
3505         free" flag.  Re-order flags tested into rough order of popularity.
3507 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
3509         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
3510         arguments so that it can be used with syntax identical to
3511         AC_PROG_F77, and so that we can more easily decide to
3512         remove/deprecate the DIALECT optional argument in the future if it
3513         proves troublesome.
3514         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
3515         non-freeform-supporting compilers.  Document freeform flags.
3517 2003-10-03  Akim Demaille  <akim@epita.fr>
3519         * configure.ac: Look for emacs, not macs.
3520         Reported by Eric Sunshine.
3522 2003-10-03  Akim Demaille  <akim@epita.fr>
3524         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
3525         * bin/autoreconf.in (autoreconf_current_directory): Create the
3526         AUX_DIR if needed, for sake of automake --add-missing etc.
3527         Suggested by Alexandre Duret-Lutz.
3529 2003-10-03  Akim Demaille  <akim@epita.fr>
3531         * configure.ac: Quotation and formatting changes.
3532         (EMACS): Don't set it if it is not recent enough to support
3533         autoconf-mode.el.
3534         From Eric Sunshine.
3536 2003-10-02  Akim Demaille  <akim@epita.fr>
3538         * bin/ifnames.in (&scan_file): Skip C++ comments.
3539         From Jeremy Yallop.
3541 2003-10-01  Pavel Roskin  <proski@gnu.org>
3543         * doc/autoconf.texi (Particular Structure Checks):
3544         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
3546 2003-10-01  Akim Demaille  <akim@epita.fr>
3548         Version 2.57f.
3550 2003-09-30  Paul Eggert  <eggert@twinsun.com>
3552         * lib/Autom4te/XFile.pm: Use Errno.
3553         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
3554         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
3556 2003-09-30  Akim Demaille  <akim@epita.fr>
3558         * config/announce-gen (&print_news_deltas): Extracted from...
3559         (&print_changelog_deltas): here.
3560         (&news_file): Rename as...
3561         (@news_file): this.
3563 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
3565         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
3566         have been created when invoking the compiler.
3567         * tests/fortran.at (GNU Fortran 77): Quote $G77.
3569 2003-09-29  Akim Demaille  <akim@epita.fr>
3571         Version 2.57e.
3573         * config/mkinstalldirs: Upgrade.
3575 2003-09-28  Paul Eggert  <eggert@twinsun.com>
3577         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
3578         Problem reported by Lars J. Aas in
3579         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
3580         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
3581         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
3582         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
3584 2003-09-26  Akim Demaille  <akim@epita.fr>
3586         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
3587         directory for AC_CONFIG_COMMANDS' first argument exists.
3588         This makes valid the invocation of _AC_SRCPATH that follows.
3589         Reported by Eric Sunshine.
3590         * doc/autoconf.texi (Configuration Commands): Adjust.
3592 2003-09-26  Akim Demaille  <akim@epita.fr>
3594         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
3595         Reported by Ralf Corsepius.
3597 2003-09-26  Akim Demaille  <akim@epita.fr>
3599         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
3600         arguments.
3601         Actually, use AU_ALIAS.
3602         From Bruno Haible.
3604 2003-09-26  Paul Eggert  <eggert@twinsun.com>
3606         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
3607         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
3608         Problem reported by Eric Sunshine in:
3609         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
3611 2003-09-26  Akim Demaille  <akim@epita.fr>
3613         The test suite are sometimes assigning timings incorrectly.
3614         Reported by Henk Krus.
3615         Diagnosed by Nicolas Joly.
3617         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
3618         AT_help_all.
3619         Instead of making AT_help a sequence of assignments to grow
3620         $at_help_all, just make AT_help_all be the growing contents of
3621         $at_help_all, and make a single assignment in...
3622         (AT_INIT): here.
3623         (at_times_skip): Flip the meaning and rename as...
3624         (at_times_p): this.
3625         (AT_INIT): When summarizing the test that ran, remove
3626         $at_times_file after use, and check it is present before trying to
3627         use it.
3629 2003-09-25  Akim Demaille  <akim@epita.fr>
3631         Version 2.57d.
3633         * bin/Makefile.am (edit): Handle '@configure_input@'.
3634         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
3635         (ifnames): chmod -w.
3636         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
3637         executables, not bin/ executables!  Otherwise all the magic needed
3638         to find non installed files is turned off.  This caused a failure
3639         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
3640         as found in its environment (sent by tests/autoreconf): pointing
3641         to bin/autom4te that could not find its files.
3642         * tests/mktests.sh: Force the replacement of generated files, for
3643         the sake of "mv" program that are interactive when overwriting a
3644         -w file.
3645         * config/install-sh: Upgrade from CVS Automake.
3647 2003-09-23  Paul Eggert  <eggert@twinsun.com>
3649         * doc/autoconf.texi (Limitations of Builtins): Document test -h
3650         versus test -L issues.
3652 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
3653             Paul Eggert  <eggert@twinsun.com>
3655         Trivial change to support GCC's configuration procedure.
3656         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
3657         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
3658         about inconsistency if the preprocessor is set to give errors for
3659         any warning.
3660         * doc/autoconf.texi (C Compiler Characteristics): Document this.
3662 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
3664         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
3665         and XFile.pm from Automake.
3666         * lib/Autom4te/XFile.pm: Update from Automake.
3668 2003-09-12  Akim Demaille  <akim@epita.fr>
3670         Version 2.57c.
3672 2003-09-12  Akim Demaille  <akim@epita.fr>
3674         * config/config.guess, config/config.sub, config/missing,
3675         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
3676         from masters.
3678 2003-09-12  Akim Demaille  <akim@epita.fr>
3680         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
3681         not asm/types.h.
3683 2003-09-11  Akim Demaille  <akim@epita.fr>
3685         * doc/autoconf.texi (Header Portability): linux/random.h.
3686         From Peter Hendrickson.
3688 2003-09-10  Akim Demaille  <akim@epita.fr>
3690         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
3691         willing to edit the output files.
3693 2003-09-10  Akim Demaille  <akim@epita.fr>
3695         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
3696         and AC_FC_FREEFORM.
3697         * tests/mktests.sh: Skip AC_FC_SRCEXT.
3698         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
3700 2003-09-09  Akim Demaille  <akim@epita.fr>
3702         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
3703         Reported by Gary Vaughan.
3704         * bin/autom4te.in (handle_m4): Likewise.
3706 2003-09-09  Akim Demaille  <akim@epita.fr>
3708         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
3709         trailing files.
3711 2003-09-07  Paul Eggert  <eggert@twinsun.com>
3713         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
3714         Improve the accuracy of the wording about obsolescence.
3715         From a suggestion by Ian Lance Taylor in
3716         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
3718 2003-09-05  Paul Eggert  <eggert@twinsun.com>
3720         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
3721         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
3723 2003-09-04  Akim Demaille  <akim@epita.fr>
3725         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
3726         AC_FUNC_WAIT3.
3728 2003-09-04  Akim Demaille  <akim@epita.fr>
3730         * bin/autom4te.in: Use &fatal where more appropriate than &error.
3731         (freeze): When exiting, use $exit_code.
3732         * lib/autoconf/fortran.m4: Comment changes.
3734 2003-09-04  Akim Demaille  <akim@epita.fr>
3736         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
3738 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
3740         Add support for newer Fortran dialects.  The F77 interface is
3741         unchanged, and continues to support Fortran 77.  New FC macros
3742         correspond to all the old F77 macros, with output variables FC,
3743         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
3744         available dialect, but older dialects can be specified.  There are
3745         new macros AC_FC_SRCEXT to set the source extension, and
3746         AC_FC_FREEFORM to accept free-form source files.
3748         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
3749         New macros.
3750         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
3751         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
3752         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
3753         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
3754         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
3755         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
3756         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
3757         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
3758         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
3759         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
3760         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
3761         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
3762         AC_FC_SRCEXT, AC_FC_FREEFORM):
3763         New macros.
3764         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
3765         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
3766         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
3767         Rewrite in terms of the above.
3768         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
3769         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
3770         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
3771         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
3773 2003-09-02  Paul Eggert  <eggert@twinsun.com>
3775         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
3776         Document problems with timestamp resolution that 'make', 'cp -p', and
3777         'touch -r' have.
3779 2003-08-27  Akim Demaille  <akim@epita.fr>
3781         * tests/m4sugar.at (cross_warning): Make sure to enable the
3782         output, so that we can track spurious m4sugar output.
3783         * tests/local.at: Require 2.57.
3784         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
3785         are defaulted by AT_CHECK anyway.
3786         Use AT_CHECK_AUTOM4TE.
3787         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
3788         missing dnl.
3790 2003-08-27  Akim Demaille  <akim@epita.fr>
3792         * bin/autoheader.in: Issue the "Using auxiliary..." message only
3793         when -Wobsolete is set.
3794         Set it on by default.
3795         Suggested by Klee Dienes.
3797 2003-08-27  Akim Demaille  <akim@epita.fr>
3799         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
3800         documentation.
3801         From Guido Draheim.
3803 2003-08-26  Akim Demaille  <akim@epita.fr>
3805         * doc/autoconf.texi (Output): Make clear that one can run code
3806         after AC_OUTPUT.
3808 2003-08-25  Akim Demaille  <akim@epita.fr>
3810         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
3811         CVS Bison.
3813 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
3815         * bin/autoreconf.in (parse_args): Do not pass --no-force to
3816         Automake versions prior to 1.8.
3818 2003-08-25  Akim Demaille  <akim@epita.fr>
3820         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
3821         From Ville Karaila.
3823 2003-08-24  Akim Demaille  <akim@epita.fr>
3825         * configure.ac: Bump to 2.57c.
3827 2003-08-22  Akim Demaille  <akim@epita.fr>
3829         Version 2.57b.
3831         * Makefile.cfg (local-checks-to-skip): New.
3832         * Makefile.maint (local-check): Rename as...
3833         (local-checks-available): this.
3834         (local-check): New.
3836         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
3837         * configure.ac: Require Automake 1.7.6.
3839 2003-08-22  Akim Demaille  <akim@epita.fr>
3841         Output stack traces in warnings.
3843         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
3844         Replace the former...
3845         (m4_warn): Pass the call stack to _m4_warn.
3846         * bin/autom4te.in: Adjust to output the call stack.
3847         * tests/m4sugar.at (m4@&t@_warn): Adjust.
3849 2003-08-22  Akim Demaille  <akim@epita.fr>
3851         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
3852         * bin/autom4te.in: Adjust.
3854 2003-08-21  Akim Demaille  <akim@epita.fr>
3856         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
3857         (&verbose): Remove.
3858         (&getopt): Adjust the note and verb channels, depending upon
3859         --verbose.
3860         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
3861         * bin/autoupdate.in: Adjust.
3862         Use &verb, not &verbose.
3864 2003-08-21  Akim Demaille  <akim@epita.fr>
3866         * bin/autoheader.in (&parse_args): Use &parse_warnings and
3867         &parse_WARNINGS.
3868         ($help): Use Autom4te::ChannelDefs::usage.
3869         * bin/autoscan.in: Use Autom4te::ChannelDefs.
3870         * lib/Autom4te/General.pm: Don't export error: you don't own it.
3872 2003-08-21  Akim Demaille  <akim@epita.fr>
3874         First stab at preserving warnings between calls to autom4te,
3875         including when the cache is used.
3877         There are still several issues: (i) there are too many runs of m4
3878         (one for include, one for warnings, and some more), (ii) warnings
3879         spreading on several lines are not handled gracefully, (iii) the
3880         code meant to have the call stack display for errors does not work
3881         (its handling should move from m4 to autom4te).
3883         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
3884         Use them.
3885         (@preselect): Add m4_warn.
3886         ($exit_status): Remove, use $exit_code.
3887         ($help): Use Autom4te::ChannelDefs::usage.
3888         (&handle_m4): No longer define the m4_warnings.
3889         At each run, extract and report the warnings.
3890         Always cache the result, including if the exit status is on
3891         failure, since if nothing changes, we should result in the same
3892         failure, hence we can use the cache.
3893         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
3894         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
3895         Remove.
3896         (m4_warn): Redefine as a do-nothing: it is its invocation that
3897         matters, as warnings are now reported via traces.
3898         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
3899         the contents of m4_warn: make it _call_ m4_warn, so that tracing
3900         the latter reveals calls to the former.
3902         Adjust the tests.
3904         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
3906 2003-08-21  Akim Demaille  <akim@epita.fr>
3908         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
3909         Use them.
3911 2003-08-21  Akim Demaille  <akim@epita.fr>
3913         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
3914         forward order.
3915         * lib/Autom4te/ChannelDefs.pm: Doc typos.
3916         (&parse_warnings): Accept a list of warning requests.
3917         (&usage): Return a string, not a side effect.
3918         (cross): New warning category.
3920 2003-08-21  Akim Demaille  <akim@epita.fr>
3922         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
3923         (&require_configure_ac): Accept an optional directory argument.
3924         ($configure_ac): Remove.
3925         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
3926         (&catfile): Remove.
3927         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
3928         * bin/autoscan.in: Adjust.
3930 2003-08-20  Akim Demaille  <akim@epita.fr>
3932         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
3933         Reported by Alexandre Duret-Lutz.
3935 2003-08-20  Akim Demaille  <akim@epita.fr>
3937         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
3938         * bin/autom4te: Adjust.
3939         In particular, be Autoconf tools are really silent when properly
3940         working, bind the verbosity of the 'note' channel to $verbose.
3941         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
3942         (&xsystem, &contents): Remove, since they are exported by...
3943         * lib/Autom4te/FileUtils.pm: this.
3944         More perldoc.
3945         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
3946         * lib/Autom4te/FileUtils.pm: here.
3948 2003-08-20  Akim Demaille  <akim@epita.fr>
3950         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
3951         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
3952         from CVS Automake.
3954 2003-08-20  Akim Demaille  <akim@epita.fr>
3956         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
3957         (autom4te-update): New.
3958         * Makefile.cfg (update): Bind autom4te-update.
3960 2003-08-19  Derek Price  <derek@ximbiot.com>
3962         * lib/autotest/general.m4: Comment various HELP_* diversions.
3963         (PARSE_ARGS_BEGIN): New section for option parsing related
3964         initialization.
3965         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
3966         package specific options and associated help.
3968 2003-08-19  Akim Demaille  <akim@epita.fr>
3970         * config/announce-gen, Makefile.cfg: New.
3971         * Makefile.am: Adjust.
3972         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
3974 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
3976         * lib/autom4te.in (Automake-preselections): Preselect
3977         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
3978         and m4_sinclude.
3980 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
3982         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
3983         (Autoconf-without-aclocal-m4): ... this new language.
3984         * doc/autoconf.texi (autom4te Invocation): Mention
3985         Autoconf-without-aclocal-m4.
3987 2003-08-18  Derek Price  <derek@ximbiot.com>
3989         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
3990         RUN-IF-PASS optional arguments.
3992 2003-08-18  Derek Price  <derek@ximbiot.com>
3994         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
3996 2003-08-16  Derek Price  <derek@ximbiot.com>
3998         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
3999         STDOUT & STDERR arguments.
4001 2003-08-14  Derek Price  <derek@ximbiot.com>
4003         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
4004         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
4005         shorter column three.  Add DESCRIPTION to log file content.
4007 2003-08-13  Derek Price  <derek@ximbiot.com>
4009         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
4010         output.
4012 2003-08-12  Derek Price  <derek@ximbiot.com>
4014         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
4015         (AT_CHECK_NOESCAPE): Move core functionality to...
4016         (_AT_CHECK): ...this new macro.
4018 2003-08-07  Derek Price  <derek@ximbiot.com>
4020         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
4021         (AT_CHECK_NOESCAPE): ...to this new macro.
4023 2003-07-31  Paul Eggert  <eggert@twinsun.com>
4025         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
4026         in Bash 2.01.  Problem reported by Brian Gough in
4027         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
4029 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
4031         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
4032         -lcrt1.o, for OS X.  (trivial change)
4034 2003-07-07  Paul Eggert  <eggert@twinsun.com>
4036         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
4037         inside '#ifndef __cplusplus'.  Problem reported by
4038         Bob Friesenhahn.
4040 2003-07-06  Bill Clarke  <llib@computer.org>
4042         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
4043         'long', not 'int', for benefit of Sun's recent C++ compilers
4044         (trivial change).  See:
4045         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
4046         (This really should be 'intptr_t', not 'long', but that would
4047         take more work.)
4049 2003-06-25  Akim Demaille  <akim@epita.fr>
4051         * lib/Makefile.am (autom4te.cfg): Make it read only.
4052         Depend on Makefile since it contains substitutions.
4053         From Paolo Bonzini.
4054         * lib/autom4te.in (args): Add local.at? for Autotest args.
4055         This change was made on autom4te.cfg which is generated.
4056         Reported by Raja R. Harinath.
4058 2003-06-25  Akim Demaille  <akim@epita.fr>
4060         * doc/autoconf.texi (Header Portability): sys/mount.h.
4061         From Gareth McCaughan.
4063 2003-06-23  Akim Demaille  <akim@epita.fr>
4065         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
4066         not all of them.  This fixes 1. the fact that when testing
4067         Autoconf there are many many config.log, 2. the incorrect use of
4068         top_srcdir to find config.log.
4069         Don't mix the detailed output of failed test with the summary of
4070         failures.  Rather, append detailed log afterwards.
4072 2003-06-23  Akim Demaille  <akim@epita.fr>
4074         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
4075         always run: output config.log on $at_group_log.
4077 2003-06-23  Akim Demaille  <akim@epita.fr>
4079         * tests/torture.at (#define header templates): Don't use quotes in
4080         C++ comments as it puzzles Emacs' sh font-lock-mode.
4082 2003-06-23  Akim Demaille  <akim@epita.fr>
4084         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
4085         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
4086         * tests/atspecific.m4: Rename as...
4087         * tests/local.at: This.
4088         * tests/suite.at: Move the globals into...
4089         * tests/local.at: here.
4090         * tests/Makefile.am: Adjust.
4091         * doc/autoconf.texi (testsuite Scripts): Adjust.
4093 2003-06-21  Kevin Ryde  <user42@zip.com.au>
4095         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
4096         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
4097         ensuring we add -std1 for full-ANSI.
4099         * doc/autoconf.texi (hdrindex): New macro.
4100         Add index entries for portability of various standard header files.
4102 2003-06-20  Akim Demaille  <akim@epita.fr>
4104         * configure.ac: Bump to 2.57b.
4106 2003-06-20  Akim Demaille  <akim@epita.fr>
4108         Version 2.57a.
4110 2003-06-20  Akim Demaille  <akim@epita.fr>
4112         * bin/autom4te.in: Don't rely on $HOME being defined.
4113         Reported by Marc Espie as PR/233.
4115 2003-06-20  Akim Demaille  <akim@epita.fr>
4117         * lib/autotest/general.m4: Use at_times_file only if used.
4118         From Nicolas Joly.
4120 2003-06-20  Akim Demaille  <akim@epita.fr>
4122         * config/config.guess, config/config.sub, config/elisp-comp,
4123         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
4124         Update from masters.
4126 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
4128         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
4129         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
4130         (TEST_SCRIPT): New diversion.
4131         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
4132         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
4133         (AT_INIT): Support for expected failures.
4135 2003-06-02  Akim Demaille  <akim@epita.fr>
4137         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
4138         changes.
4139         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
4140         Autoconf nor Automake.
4141         (&contents): New, from Automake.
4142         PODify.
4144 2003-05-28  Paul Eggert  <eggert@twinsun.com>
4146         * NEWS, doc/autoconf.texi (Particular Functions),
4147         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
4148         is the inverse of localtime.
4150 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
4152         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
4153         (handle_exec_errors): New function.  Work around $! being
4154         altered by WEXITSTATUS.
4155         (xqx, xsystem): Use handle_exec_errors.
4157 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
4159         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
4160         Do not call `_exit()', simply modify `$?'.
4161         (xsystem): Reset $! before running system, and check it afterward.
4162         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
4163         63 for version mismatches.
4165 2003-05-23  Akim Demaille  <akim@epita.fr>
4167         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
4168         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
4169         the middle of a line).
4170         * lib/m4sugar/m4sugar.m4: Likewise.
4171         Remove useless spaces in comments.
4173 2003-05-23  Akim Demaille  <akim@epita.fr>
4175         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
4176         exit 63, so that we (or Automake's "missing") can tell the
4177         difference with a plain failure.
4178         * doc/autoconf.texi (Notices): Adjust.
4180 2003-05-23  Akim Demaille  <akim@epita.fr>
4182         * Makefile.am, bin/Makefile.am, config/Makefile.am,
4183         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
4184         White spaces cleanup.
4186 2003-05-22  Jim Meyering  <jim@meyering.net>
4187             Paul Eggert  <eggert@twinsun.com>
4189         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
4190         Remove `#include <stdlib.h>' from the list; we should never
4191         make confdefs.h include <stdlib.h> or <cstdlib>, because the
4192         resulting namespace pollution would cause other tests to fail.
4193         Configure scripts run with some older versions of g++ and HP's
4194         aCC would fail due to such an #include.  Problems reported by
4195         Matthew Mueller in <http://bugs.debian.org/120704> and by
4196         Keith Bostic in
4197         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
4198         In the test, use the test declaration before including <stdlib.h>,
4199         as that's closer to how it'll be used.
4201 2003-05-23  Akim Demaille  <akim@epita.fr>
4203         * doc/autoconf.texi (Header Portability): ucred.h.
4204         From Ian Redfern.
4206 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
4208         Overhaul Autotest's logging: generate separate log files
4209         in testsuite.dir/NNN/testsuite.log, and append them to
4210         testsuite.log instead of re-running the test verbosely.
4212         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
4213         file descriptor, write 0 to at_status_file instead of setting
4214         at_status=0, initialize some new variables (at_status_file,
4215         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
4216         to rerun the tests, instead append the at_group_log to the
4217         at_suite_log when a test fails.
4218         (AT_SETUP): pipe the test case's output into at_tee_pipe,
4219         with the AS_MESSAGE_LOG_FD redirected to stdout.
4220         (AT_CLEANUP): save the output status in $at_status_file
4221         and restore it, redirect the AS_MESSAGE_LOG_FD back to
4222         its original place.
4223         (AT_CHECK): since tests are run with a redirected stdout,
4224         and used to be re-run in verbose mode, turn some $at_verbose
4225         into echo, and don't redirect the output of testing stdout
4226         and stderr.
4228         * lib/autotest/autoconf.texi (testsuite Scripts): Update
4229         the name of the debugging directory and information about
4230         its contents.
4232 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
4234         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
4235         parameter.
4237 2003-05-22  Akim Demaille  <akim@epita.fr>
4239         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
4240         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
4241         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
4242         * lib/autoconf/status.m4: Fix and adjust copyright notices.
4244 2003-05-22  Akim Demaille  <akim@epita.fr>
4246         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
4247         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
4248         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
4249         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
4250         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
4251         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
4252         * lib/autoconf/status.m4, lib/autoconf/types.m4,
4253         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
4254         * tests/atspecific.m4, tests/base.at, tests/compile.at,
4255         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
4256         * tests/tools.at, tests/torture.at:
4257         Whitespace clean up.
4258         Suggested by Jim Meyering.
4260 2003-05-22  Akim Demaille  <akim@epita.fr>
4262         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
4263         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
4264         Reported by Jim Meyering.
4266 2003-05-22  Akim Demaille  <akim@epita.fr>
4268         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
4269         Add AC_HELP_STRING  to the obsolete macros section.
4270         Typos.
4271         Use '@.' for sentences that ended in a capital letter.
4272         From Art Haas.
4274 2003-05-22  Akim Demaille  <akim@epita.fr>
4276         * config/config.guess, config/config.sub, config/elisp-comp,
4277         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
4278         * config/texinfo.tex, doc/standards.texi: Update from masters.
4280 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
4282         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
4283         it to eval.
4285 2003-05-21  Akim Demaille  <akim@epita.fr>
4287         * bin/autoupdate.in ($m4): Fix quotation.
4288         Reported by Martin Mokrejs.
4290 2003-05-19  Paul Eggert  <eggert@twinsun.com>
4292         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
4293         Remove non-ASCII characters.
4295 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
4297         * tests/semantics.at (AC_SEARCH_LIBS): New test.
4298         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
4299         AC_CHECK_HEADERS_NEW): New tests.
4301 2003-05-17  Akim Demaille  <akim@epita.fr>
4303         * lib/autoconf/functions.m4: Use the default includes so that
4304         memcmp be declared before being tested.
4305         Reported by Sander Niemeijer.
4306         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
4307         * doc/autoconf.texi (Default Includes): Document
4308         AC_INCLUDES_DEFAULT.
4310 2003-05-17  Akim Demaille  <akim@epita.fr>
4312         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
4313         * doc/autoconf.texi (Obsolete Macros): Adjust.
4314         Reported by Werner LEMBERG and Debian Bug 190886.
4316 2003-05-16  Akim Demaille  <akim@epita.fr>
4318         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
4319         user name space clashes.
4320         Reported by Bruno Haible.
4322 2003-05-16  Akim Demaille  <akim@epita.fr>
4324         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
4325         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
4326         them uniform, and more robust to Perl special characters.
4327         Reported by Martin Mokrejs.
4329 2003-05-14  Akim Demaille  <akim@epita.fr>
4331         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
4333 2003-05-14  Akim Demaille  <akim@epita.fr>
4335         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
4336         linux/irda.h.
4338 2003-05-12  Akim Demaille  <akim@epita.fr>
4340         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
4341         message.
4342         From Matthias Andree.
4344 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
4346         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
4347         and truncate.
4349 2003-05-06  Akim Demaille  <akim@epita.fr>
4351         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
4352         longer updates aclocal.m4 if useless, (ii) if a file m4_included
4353         by aclocal.m4 is changed it might require the importing of another
4354         m4 extension file, i.e., aclocal must be run.
4356         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
4357         (&parse_args): Use --force with aclocal if required and supported.
4358         (&autoreconf_current_directory): Use &run_aclocal.
4360 2003-05-06  Akim Demaille  <akim@epita.fr>
4362         Lock autom4te's cache.
4364         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
4365         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
4366         argument instead of a file name, so that the request file remains
4367         open during the whole autom4te run.
4368         ($icache_file): New.
4369         (&freeze): Lock the $icache_file.
4371 2003-04-29  Derek Price  <derek@ximbiot.com>
4373         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
4374         seperator with m4_append_uniq().  It doesn't work.
4375         (AT_CLEANUP): Add `;' to end of at_help_all.
4376         (AT_INIT): Allow --keywords to be specified more than once.  When
4377         grepping $at_help_all for keywords, use the field and keyword
4378         seperators to ensure a complete keyword match.  Alter at_prev handling
4379         to support the new --keywords behavior.
4381 2003-04-27  Karl Berry  <karl@freefriends.org>
4383         * doc/autoconf.texi: Make the dir entries in the autoconf manual
4384         align better with others.  I also made some of the individual
4385         entries on one line, for brevity and to make it easier for me to
4386         sort my dir-example file in the Texinfo distribution :).
4388 2003-04-12  Jim Meyering  <jim@meyering.net>
4390         * NEWS: Mention the new macro.
4391         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
4392         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
4393         * tests/c.at: Test AC_C_RESTRICT.
4394         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
4396 2003-04-08  Akim Demaille  <akim@epita.fr>
4398         * bin/ifnames.in: Skip C++ comments.
4399         From Jeremy Yallop.
4401 2003-04-08  Akim Demaille  <akim@epita.fr>
4403         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
4404         From Ilya Zakharevich.
4406 2003-04-08  Akim Demaille  <akim@epita.fr>
4408         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
4409         net/if.h, stdlib.h.
4411 2003-04-01  Derek Price  <derek@ximbiot.com>
4413         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
4414         from Akim's checkin of 2003-03-29.
4416 2003-04-01  Derek Price  <derek@ximbiot.com>
4418         * tests/torture.at (Configuring subdirectories): Add missing
4419         close-quote for Akim's change from 2003-03-28.
4421 2003-04-01  Akim Demaille  <akim@epita.fr>
4423         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
4424         (AC, AT, MS): these.
4425         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
4426         New.
4427         Use them.
4428         * doc/Makefile.am (CLEANFILES): Adjust.
4429         (TEXI2DVI): Make it --batch.
4431 2003-03-31  Derek Price  <derek@ximbiot.com>
4433         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
4434         which removed the main loop.
4435         Thanks to Akim Demaille.
4437 2003-03-29  Akim Demaille  <akim@epita.fr>
4439         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
4440         that starts a GUI.
4441         From Ilya Zakharevich.
4443 2003-03-29  Akim Demaille  <akim@epita.fr>
4445         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
4446         documentation to read is Autoconf's.
4447         Suggested by Paul Eggert.
4449 2003-03-28  Akim Demaille  <akim@epita.fr>
4451         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
4452         reading the section "Present But Cannot Be Compiled" when the
4453         header causes problems.
4455 2003-03-28  Akim Demaille  <akim@epita.fr>
4457         * tests/torture.at (Configuring subdirectories): Require aclocal
4458         1.4, otherwise the test fails, as it does support configure.ac.
4459         This fixes the "test 40 failed" bug reports.
4461 2003-03-28  Akim Demaille  <akim@epita.fr>
4463         * doc/autoconf.texi (C Compiler): `#line' portability.
4464         From Paul Eggert and Nelson H. F. Beebe.
4466 2003-03-27  Derek Price  <derek@ximbiot.com>
4468         * lib/autotest/general.m4: Eliminate main loop and reorganize test
4469         layout in order to allow scripting around test groups.
4471 2003-03-27  Derek Price  <derek@ximbiot.com>
4473         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
4474         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
4475         use new diversions in preparation for accepting new arguments and
4476         allowing scripting around tests.
4477         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
4479 2003-03-26  Derek Price  <derek@ximbiot.com>
4481         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
4482         obsolete AC_HELP_STRING.
4483         (AC_HELP_STRING): AU_DEFUN to...
4484         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
4485         * tests/m4sh.at (AS_HELP_STRING): New test.
4487         * tests/acgeneral.at: Regenerated.
4489 2003-03-26  Derek Price  <derek@ximbiot.com>
4491         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
4492         sense.  Verbosify the diversion definitions comment.
4494 2003-03-26  Derek Price  <derek@ximbiot.com>
4496         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
4497         AS_PREPARE.
4499 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
4501         * doc/autoconf.texi (Present But Cannot Be Compiled):
4502         Grammar fixes and minor rewording. (trivial change)
4504 2003-03-06  Paul Eggert  <eggert@twinsun.com>
4506         Work around a problem noted by Nelson H. F. Beebe with coreutils
4507         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
4508         2002/05/09) rejects '#line 32768 "configure"' because the line
4509         number overflows.
4510         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
4511         #line directives.
4512         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
4513         * doc/autoconf.texi (Generating Sources): Document this.
4515 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
4517         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
4518         file name for the m4 program, when it has an "exe" file extension.
4519         DJGPP's error messages include the error code in brackets -
4520         remove the error code during normalization.
4522 2003-02-28  Akim Demaille  <akim@epita.fr>
4524         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
4526 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
4528         * doc/autoconf.texi (Limitations of Make): Remove the section
4529         about `$<' in inference rules, it was a bogus interpretation of
4530         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
4531         Tru64 make in the "target lookup" section.
4532         (Automake): Automake 1.5+ no longer requires special tools to be
4533         present on the developer's host.
4535 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
4537         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
4538         to a shell that can handle redirection or quoting correctly.
4539         Override SHELL with the shell detected by configure.
4540         Use of $^O suggested by Tim van Holder.
4541         * bin/autom4te.in (BEGIN): Likewise.
4542         * bin/autoreconf.in (BEGIN): Likewise.
4543         * bin/autoscan.in (BEGIN): Likewise.
4544         * bin/autoupdate.in (BEGIN): Likewise.
4545         * bin/ifnames.in (BEGIN): Likewise.
4547         * bin/ifnames.in: Add final newline to help and version messages.
4549         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
4550         to cope with DOS-style absolute paths, when constructing
4551         ${ac_make}.
4553         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
4554         When constructing paths with IFS=:, quote the path. If we're
4555         constructing a DOS-style absolute path, we don't want to split it
4556         on the colon.
4558         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
4559         in description.
4561 2003-02-25  Pavel Roskin  <proski@gnu.org>
4563         * bin/autoheader.in: Add missing newline when printing
4564         suggestion how change AC_DEFINE call.
4566 2003-02-24  Paul Eggert  <eggert@twinsun.com>
4568         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
4569         2002-09-01 patch by replacing "test -n" with "test -z".
4570         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
4571         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
4573         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
4574         to fix a mismatch between example and discussion.
4576 2003-02-24  Kevin Ryde  <user42@zip.com.au>
4578         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
4579         format starting with "-".
4581 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
4583         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
4584         is not portable inside Makefile.
4586 2003-02-20  Akim Demaille  <akim@epita.fr>
4588         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
4589         compiler says yeah, but preproc says nope, compiler is right.
4590         Conversely, prompt the reader to send a bug report to the
4591         maintainers of the package, not of Autoconf.
4593 2003-02-20  Klee Dienes  <kdienes@apple.com>
4595         * bin/autoreconf.in (autoreconf_current_directory): Properly
4596         handle an empty aclocal.m4.
4598 2003-02-20  Akim Demaille  <akim@epita.fr>
4600         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
4601         $ac_prefix_program.
4602         From Larry Jones.
4604 2002-12-23  Paul Eggert  <eggert@twinsun.com>
4606         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
4607         innocuous variant befor including <limits.h> or <assert.h>.  This
4608         works around a bug reported by Albert Chin: HP-UX 11i
4609         (and earlier versions) have a <limits.h> that declares
4610         gettimeofday and many other functions.
4612 2002-12-03  Paul Eggert  <eggert@twinsun.com>
4614         Version 2.57.
4616         * NEWS, configure.ac: Update version.
4618         * doc/fdl.texi: Upgrade to FDL version 1.2.
4620         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
4621         nontrivially in main's body, so that f's external declaration is
4622         not optimized away in AIX.  This should fix the bug reported by
4623         Martin Frydl in
4624         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
4626         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
4627         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
4628         defined, to support freestanding compilers.  This should fix the
4629         bug reported by Momchil Velkov in
4630         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
4632         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
4633         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
4634         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
4635         by Simon Josefsson in
4636         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
4638         * Makefile.maint (www-gnu): New macro.
4639         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
4640         the location has moved.
4642 2002-12-02  Martin Frydl  <martin@systinet.com>
4644         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
4645         \(.*\) match is too long and there is something more to be checked.
4646         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
4648 2002-11-15  Akim Demaille  <akim@epita.fr>
4650         Version 2.56.
4652         * config/install-sh: chmod +x.
4653         From Paul Eggert.
4654         * config/move-if-change: Indenting changes.
4655         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
4656         * configure.ac (AM_INIT_AUTOMAKE): here.
4657         Require 1.7.1.
4659 2002-11-14  Akim Demaille  <akim@epita.fr>
4661         Version 2.55.
4663         * config/config.guess, config/config.sub, config/install-sh:
4664         Update from masters.
4666 2002-11-14  Akim Demaille  <akim@epita.fr>
4668         * Makefile.maint: Sync with Bison, i.e.:
4669         (po-check): Scan .l and .y files instead of the
4670         .c and the .h files that they generate.  This fixes the bug
4671         reported by Tim Van Holder in:
4672         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
4673         Look for N_ as well as for _.  Try to avoid matching #define for
4674         N_ and _.
4675         From Paul Eggert.
4677 2002-11-14  Akim Demaille  <akim@epita.fr>
4679         * doc/autoconf.texi (C Compiler): Compiling several files at once.
4680         From Paul Eggert and Albert Chin-A-Young.
4682 2002-11-14  Akim Demaille  <akim@epita.fr>
4684         * doc/autoconf.texi (C Compiler): Solitary backslashes.
4685         From Paul Eggert and Albert Chin-A-Young.
4687 2002-11-14  Kevin Ryde  <user42@zip.com.au>
4689         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
4690         than assigning in main, to avoid HP cc +O3 optimizing it away.
4692 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
4694         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
4695         option.  Process --recheck after parsing all options.  Pass -q
4696         option to configure on --recheck.
4697         (AC_OUTPUT): Pass -q from configure to config.status.
4698         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
4699         arguments to record.
4700         * doc/autoconf.texi (config.status Invocation): Document
4701         config.status -q option.
4703 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
4705         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
4706         Makefile.in if Makefile.am exists.
4707         (output): Strip `.am' from Makefiles.  Don't
4708         output AC_CONFIG_FILES if no Makefiles were found.
4710 2002-11-07  Akim Demaille  <akim@epita.fr>
4712         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
4713         (local_updates): New.
4714         * Makefile.maint: Update, from CVS Bison.
4715         (local_updates): New.
4717 2002-11-06  Akim Demaille  <akim@epita.fr>
4719         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
4720         declaration in extern "C" too.
4721         Reported by Roberto Bagnara.
4723 2002-11-06  Akim Demaille  <akim@epita.fr>
4725         * tests/torture.at (Configuring subdirectories): Don't use grep
4726         -w.
4727         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
4728         Reported by Ezra Peisach.
4730 2002-11-05  Akim Demaille  <akim@epita.fr>
4732         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
4733         Remove.
4734         We _have_ to stop using the old compatibility scheme that tried to
4735         avoid useless backslashes because Libtool 1.4.3 contains a
4736         AC_DEFINE([error_t], [int],
4737         [Define to a type to use for \`error_t' if it is not
4738         otherwise available.])
4739         We _have_ to quote the single quote and backslashes with \.  The
4740         old compatibility scheme saw that ` was backslashed, and therefore
4741         did not quote the single quote.  Hence before this patch, Autoconf
4742         was not compatible with Libtool.
4744 2002-11-04  Paul Eggert  <eggert@twinsun.com>
4746         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
4747         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
4748         LC_NAME, LC_PAPER, LC_TELEPHONE.
4749         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
4751 2002-11-04  Akim Demaille  <akim@epita.fr>
4753         Version 2.54c.
4755         * Makefile.maint (update, cvs-update, po-update, do-po-update):
4756         New.
4757         * config/texinfo.tex: Update.
4759 2002-11-03  Akim Demaille  <akim@epita.fr>
4761         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
4762         from...
4763         (&autoreconf): here.
4764         ($help, $make, &parse_args, &autoreconf_current_directory):
4765         Support -m/--make.
4766         * doc/autoconf.texi (autoreconf Invocation): Adjust.
4768 2002-10-31  Bruno Haible  <bruno@clisp.org>
4770         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
4771         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
4772         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
4773         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
4774         to ac_cv_func_realloc_0_nonnull.
4775         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
4777 2002-10-31  Akim Demaille  <akim@epita.fr>
4779         The test suite was no longer checking for trailing envvars and files.
4781         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
4782         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
4784 2002-10-31  Akim Demaille  <akim@epita.fr>
4786         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
4787         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
4788         Make variable, not a shell variable.
4789         Suggested by Bruno Haible.
4791 2002-10-31  Akim Demaille  <akim@epita.fr>
4793         * bin/autom4te.in (load_configuration): Reject #args out of any
4794         language.
4796 2002-10-31  Akim Demaille  <akim@epita.fr>
4798         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
4799         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
4800         (_AC_RUN_IFELSE): Use it.
4801         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
4802         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
4803         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
4804         inline it.
4806 2002-10-30  Akim Demaille  <akim@epita.fr>
4808         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
4809         * doc/autoconf.texi (autom4te Invocation): Adjust.
4810         Suggested by Tim van Holder.
4812 2002-10-29  Paul Eggert  <eggert@twinsun.com>
4814         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
4815         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
4816         Problem reported by Bruno Haible.
4818 2002-10-29  Akim Demaille  <akim@epita.fr>
4820         * doc/autoconf.texi (Header Templates): Put also in words what the
4821         pictures says to assist free style readers.
4822         (Customizing autom4te): s/--cache=/--cache /.
4824 2002-10-29  Akim Demaille  <akim@epita.fr>
4826         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
4827         sys/wait.h.
4828         sparc_address_test returns void.
4829         Use it with an argument, as prototyped.
4830         From Bruno Haible.
4832 2002-10-29  Akim Demaille  <akim@epita.fr>
4834         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
4835         configure.in, not configure.ac.
4836         Reported by Bruno Haible.
4838 2002-10-29  Akim Demaille  <akim@epita.fr>
4840         * tests/torture.at (Deep Package): New test.
4841         (Configuring subdirectories): Don't use a testSubDir as Autotest
4842         now does it itself.
4844 2002-10-29  Akim Demaille  <akim@epita.fr>
4846         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
4847         * doc/autoconf.texi (Invoking autom4te): Rename as...
4848         (autom4te Invocation): this, for consistency with the other nodes.
4850 2002-10-29  Akim Demaille  <akim@epita.fr>
4852         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
4853         Reported by Ralf Corsepius.
4855 2002-10-29  Akim Demaille  <akim@epita.fr>
4857         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
4858         characters is a back as an `obsolete' warning now.
4859         Reported by Ralf Corsepius.
4861 2002-10-28  Akim Demaille  <akim@epita.fr>
4863         * configure.ac: Bump to 2.54c.
4865 2002-10-28  Akim Demaille  <akim@epita.fr>
4867         Version 2.54b.
4869         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
4871 2002-10-28  Akim Demaille  <akim@epita.fr>
4873         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
4874         m4 executable names, and different GNU M4 version.
4875         Reported by Ezra Peisach and Paul Jarc.
4877 2002-10-27  Akim Demaille  <akim@epita.fr>
4879         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
4880         AC_RUN_IFELSE.
4882 2002-10-27  Akim Demaille  <akim@epita.fr>
4884         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
4885         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
4886         Die when a simple Fortran program cannot be compiled.
4887         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
4888         Issue a warning if no function is given.
4890 2002-10-27  Akim Demaille  <akim@epita.fr>
4892         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
4893         Move the documentation of AC_TRY_RUN to...
4894         (Obsolete Macros): here.
4895         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
4896         (autoconf Invocation): Remove the duplicates with `invoking
4897         autom4te'.
4898         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
4899         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
4901 2002-10-27  Akim Demaille  <akim@epita.fr>
4903         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
4904         and AC_LANG_FUNC_LINK_TRY.
4905         (Examining Libraries): Rename as...
4906         (Running the Linker): this.
4907         Document AC_LINK_IFELSE.
4908         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
4909         (Obsolete Macros): here.
4910         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
4911         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
4912         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
4913         * lib/autoconf/headers.m4 (AC_USG): Likewise.
4915 2002-10-27  Akim Demaille  <akim@epita.fr>
4917         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
4919         More `check config.log' messages.
4921         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
4922         * doc/autoconf.texi (Printing Messages): Document it.
4923         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
4924         appropriate.
4925         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
4926         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
4927         (_AC_COMPILER_OBJEXT): Likewise.
4928         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
4929         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
4930         Likewise.
4931         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
4932         Likewise.
4934         Deprecate macros with unusual interfaces.
4936         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
4937         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
4939         Document the new ones, and proper style.
4941         * doc/autoconf.texi (Generating Sources): New.
4942         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
4943         (Examining Declarations): Rename as...
4944         (Running the Preprocessor): this.
4945         Document AC_PREPROC_IFELSE.
4946         (Examining Syntax): Rename as...
4947         (Running the Compiler): this.
4948         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
4949         (Obsolete Macros): Move the definition of AC_TRY_CPP and
4950         AC_TRY_COMPILE here.
4952 2002-10-27  Akim Demaille  <akim@epita.fr>
4954         Move sections around.
4956         * doc/autoconf.texi (Customizing autom4te): Remove a lost
4957         sentence.
4958         Reported by Burno Haible.
4959         (Language Choice): Now the first section of...
4960         (Writing Tests): this section.
4961         Make the introduction less C-centric.
4962         (Guidelines, Test Functions): Move to...
4963         (Writing Test Programs): this new section.
4964         (Test Programs): Merge into...
4965         (Run Time): this.
4967 2002-10-27  Akim Demaille  <akim@epita.fr>
4969         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
4970         autom4te.in that resulted in the need for two `make' runs.
4972 2002-10-27  Akim Demaille  <akim@epita.fr>
4974         * configure.ac: Bump to 2.54b.
4976 2002-10-25  Akim Demaille  <akim@epita.fr>
4978         Version 2.54a.
4980         * Makefile.maint: Update from the Coreutils.
4981         (AMTAR): Remove, obsolete.
4982         (automake_repo): Update to redhat.com.
4983         (cvs_file): New.
4984         Adjust to the fact that ansi2knr is now hosted by Automake.
4985         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
4986         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
4987         Update from masters.
4988         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
4989         autoscan.pre is not to be installed, and autoscan.list is not to
4990         be shipped.
4991         (CLEANFILES): Add autoscan.list.
4992         (autoscan.list): Disable the cache.
4993         * bin/Makefile.am: Include freeze.mk.
4995 2002-10-25  Akim Demaille  <akim@epita.fr>
4997         * bin/autom4te.in (&load_configuration): Take the file as
4998         argument.
4999         (&parse_args): Handle -C, --cache.
5000         ($help): Adjust.
5001         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
5002         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
5003         * doc/autoconf.texi (Invoking autom4te): Document --cache.
5004         Now a subsection of...
5005         (Using autom4te): This new section.
5006         (Customizing autom4te): New.
5007         (autom4te.cache): Adjust.
5009 2002-10-25  Akim Demaille  <akim@epita.fr>
5011         * doc/autoconf.texi (Generic Headers): More information on how to
5012         use AC_CHECK_HEADERS.
5014 2002-10-25  Akim Demaille  <akim@epita.fr>
5016         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
5017         Space changes.
5019 2002-10-25  Akim Demaille  <akim@epita.fr>
5021         * bin/autoscan.in (output): Output AC_PREREQ.
5022         (%needed_macros): Add AC_PREREQ so that configure.ac without one
5023         be reported.
5025 2002-10-23  Akim Demaille  <akim@epita.fr>
5027         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
5028         document _Bool.
5030 2002-10-23  Akim Demaille  <akim@epita.fr>
5032         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
5033         Reported by Peter Eisentraut.
5035 2002-10-23  Akim Demaille  <akim@epita.fr>
5037         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
5038         type _Bool.
5039         Fix a typo.
5040         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
5041         Eggert's recommandations.
5043 2002-10-22  Akim Demaille  <akim@epita.fr>
5045         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
5046         Bison, by Paul Eggert.
5047         * doc/autoconf.texi (Particular Headers): Document it.
5049 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
5051         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
5052         `$ac_configure_args'.
5054 2002-10-22  Akim Demaille  <akim@epita.fr>
5056         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
5057         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
5058         From Art Haas.
5060 2002-10-22  Akim Demaille  <akim@epita.fr>
5062         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
5064         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5065         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
5066         (_AC_CHECK_HEADER_NEW): Rename as...
5067         (AC_CHECK_HEADER): this.
5069 2002-10-22  Akim Demaille  <akim@epita.fr>
5071         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
5072         words about HP-UX cmp: it was actually a user-written cmp.
5074 2002-10-22  Akim Demaille  <akim@epita.fr>
5076         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
5077         are a few warnings.
5078         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
5079         Quote for Perl '' strings, not "".
5080         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
5081         strings.
5083 2002-10-22  Akim Demaille  <akim@epita.fr>
5085         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
5086         characters is a syntax warning now.
5087         (_AS_QUOTE): Accept $2 as list of characters to quote.
5088         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
5089         Quote for Perl, not sh.
5090         * bin/autoheader.in: When $debug, report the file which is
5091         `do'ne.
5092         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
5093         `@', to tickle Perl's lists.
5094         Reported by Carlos Velasco.
5096 2002-10-18  Akim Demaille  <akim@epita.fr>
5098         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
5099         missing included files _are_ errors.
5100         Thanks to Alexandre Duret-Lutz.
5101         * tests/tools.at (autom4te cache): Adjust.
5102         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
5103         (AT_CHECK_M4SUGAR): Use it.
5104         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5105         Adjust.
5106         * tests/tools.at (autom4te): Now it does exit 1.
5108 2002-10-17  Akim Demaille  <akim@epita.fr>
5110         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
5111         Fixes the `AC_ARG_VAR' test failures.
5112         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
5113         * lib/freeze.mk (check-forbidden-patterns): New.
5114         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
5115         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
5116         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
5117         /dev/null.
5118         Reported months ago by H. Merijn Brand.
5120 2002-10-17  Akim Demaille  <akim@epita.fr>
5122         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
5124 2002-10-16  Paul Eggert  <eggert@twinsun.com>
5126         * Makefile.maint (wget_files): Remove ansi2knr.c.
5127         (ansi2knr.c-url_prefix): Remove.
5129 2002-10-16  Akim Demaille  <akim@epita.fr>
5131         Because of caching, some files that no longer exist and are no
5132         longer required can still cause errors.
5133         Reported by Alexandre Duret-Lutz.
5135         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
5136         to frozen files in @ARGV, as @ARGV must remain being a list of
5137         files.  Rather, at M4 call sites, use this...
5138         (&files_to_options): New function.
5139         (&freeze): Use &error.
5140         (&up_to_date): If a file that was included according to the cache
5141         is no longer there, then the output is out dated.
5142         (&main): Don't even check whether a file is up to date is anyway
5143         --force is given.
5144         * tests/tools.at (autom4te cache): New.
5146 2002-10-16  Akim Demaille  <akim@epita.fr>
5148         * bin/autoconf.as: Kill dead options.
5149         * bin/autoupdate.in (&parse_args): Kill old options.
5150         * bin/autoreconf.in (&parse_args): Remove dead options.
5151         Factor some code.
5152         (&autoreconf): Report the directories we enter *and leave*, so
5153         that error messages can be easily located, and use GNU Make
5154         format, so that Emacs' compile mode understands us.
5155         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
5156         if some file was changed instead of `print'.
5157         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
5158         (&parse_args): Remove the dead options.
5159         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
5160         autoheader's quiet mode.
5161         (AT_CHECK_AUTOUPDATE): Likewise.
5162         * tests/tools.at (autoupdate): Adjust.
5163         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
5165 2002-10-11  Akim Demaille  <akim@epita.fr>
5167         No longer use CPP to check for the existing of headers: use CC to
5168         check for compilability.
5170         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5171         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
5172         (_AC_CHECK_HEADER_NEW): Rename as...
5173         (AC_CHECK_HEADER): this.
5175         * lib/autotest/general.m4 (AT_INIT): Include the failed test
5176         numbers in the Subject suggestion.
5178 2002-10-11  Akim Demaille  <akim@epita.fr>
5180         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
5181         Suggest using AC_CHECK_DECLS instead.
5183 2002-10-11  Akim Demaille  <akim@epita.fr>
5185         * tests/torture.at (AC_ARG_VAR): Have configure report the value
5186         of `precious'.
5188 2002-10-11  Akim Demaille  <akim@epita.fr>
5190         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
5191         file name to enable parallel executions.
5192         From Sam Varshavchik.
5194 2002-10-08  Akim Demaille  <akim@epita.fr>
5196         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
5197         aclocal invocation, as Gettext macros might not be visible to
5198         aclocal.
5199         Instead of blindly running autopoint, scan configure.ac (not the
5200         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
5201         Reported by Paul D. Smith.
5203 2002-10-08  Paul Eggert  <eggert@twinsun.com>
5205         Work around problems found when POSIXLY_CORRECT=1 is set.
5206         None of this seems to have anything to do with POSIX, really,
5207         but it's how Perl getopt works.
5208         * bin/autom4te.in (parse_args): Configure GetOpt with
5209         "permute", too.
5210         * doc/autoconf.texi (Invoking autom4te):
5211         --warning -> --warnings.
5212         * lib/autom4te.in: --warning -> --warnings.
5214 2002-09-28  Akim Demaille  <akim@epita.fr>
5216         * doc/autoconf.texi (autom4te.cache): New section.
5218 2002-09-28  Akim Demaille  <akim@epita.fr>
5220         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
5221         (Automake-preselections): Update.
5222         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
5224 2002-09-28  Akim Demaille  <akim@epita.fr>
5226         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
5227         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
5228         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
5229         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
5231 2002-09-28  Akim Demaille  <akim@epita.fr>
5233         * tests/torture.at (Configuring subdirectories): Be robust to
5234         users who use config.site to require for a cache: in this case,
5235         the two last configure runs, using two different sets of
5236         arguments, trigger a legitimate error.
5238 2002-09-28  Akim Demaille  <akim@epita.fr>
5240         * tests/m4sh.at (Functions Support, Functions and return Support):
5241         New.
5243 2002-09-28  Akim Demaille  <akim@epita.fr>
5245         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
5246         autoheader are Perl programs.
5247         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
5248         (autom4te): Specify that the sources are in the $srcdir.
5249         * doc/autoconf.texi (Installation Directory Variables): Adjust.
5251 2002-09-28  Akim Demaille  <akim@epita.fr>
5253         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
5254         (tm_zone): Move their rules to...
5255         * lib/autoconf/types.m4: here, using AN_ macros.
5256         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
5257         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
5258         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
5259         * lib/autoconf/programs.m4: here.
5260         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
5261         (ETAGS_FOR_AUTOCONF): New.
5262         Use it.
5264 2002-09-28  Akim Demaille  <akim@epita.fr>
5266         * lib/autoconf/autoscan.m4: New file.
5267         * lib/autoconf/autoconf.m4: Include it.
5268         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
5269         that were listed in the original autoscan.list.
5270         * lib/autoconf/headers.m4: Similarly with headers.
5271         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
5272         (.m4.m4f): Don't pass --prepend-include, since that's done by
5273         tests/autom4te itself.
5274         * lib/autoscan/Makefile.am: Include freeze.mk.
5275         (autoscan.list): New target --this file is no longer a source.
5276         (autoscan.pre): New file.
5278 2002-09-28  Akim Demaille  <akim@epita.fr>
5280         * bin/autoscan.in (@kinds): Make them singular.
5281         Adjust all uses.
5282         (&init_tables): When --debug, report the list of rules to ease
5283         tracking changes in autoscan.list.
5284         * lib/autoscan/autoscan.list (function): Strip comments, sort.
5286 2002-09-28  Akim Demaille  <akim@epita.fr>
5288         * lib/autoscan/functions, lib/autoscan/headers,
5289         * lib/autoscan/identifiers, lib/autoscan/makevars,
5290         * lib/autoscan/programs: Merge into...
5291         * lib/autoscan/autoscan.list: this.
5292         * bin/autoscan.in (&init_tables): Adjust.
5294 2002-09-28  Akim Demaille  <akim@epita.fr>
5296         * lib/autoscan/functions, lib/autoscan/headers,
5297         * lib/autoscan/identifiers, lib/autoscan/makevars,
5298         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
5299         `functions' line is now prefixed with `function:'.
5300         * bin/autoscan.in (&init_tables): Adjust.
5302 2002-09-28  Akim Demaille  <akim@epita.fr>
5304         From now on, autoscan files must always map a macro name to a
5305         word: there is no `default' macro for autoscan.
5307         * bin/autoscan.in (&init_tables): Reject entries with no macro at
5308         all.
5309         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
5310         explicit.
5312 2002-09-28  Akim Demaille  <akim@epita.fr>
5314         * bin/autoscan.in (%c_keywords): Remove.
5315         (&used): Keep only track of the words we might be interested in.
5316         (&output_kind): It is no longer needed to look for non active
5317         checks.
5319 2002-09-27  Akim Demaille  <akim@epita.fr>
5321         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
5322         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
5323         * lib/autoscan/functions: Adjust.
5324         * doc/autoconf.texi (Particular Functions): Adjust.
5326 2002-09-27  Akim Demaille  <akim@epita.fr>
5328         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
5329         from /tmp.
5330         Thanks to Bill Moseley and Paul Eggert.
5331         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
5332         the tmpdir must be created.
5333         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
5334         dir be in the build tree, instead of $TMPDIR.
5336 2002-09-27  Akim Demaille  <akim@epita.fr>
5338         * bin/autoscan.in: Improve the comments.
5339         (&parse_args): Drop obsolete undocumented options.
5340         (&output_kind): Output warnings.
5341         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
5342         (getwd): Trigger a warning.
5344 2002-09-26  Akim Demaille  <akim@epita.fr>
5346         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
5347         Reported by Ralf Corsepius.
5348         * doc/autoconf.texi (autoreconf Invocation): Likewise.
5350 2002-09-26  Akim Demaille  <akim@epita.fr>
5352         Single suffix rules and seperated dependencies are not portable.
5354         * doc/autoconf.texi (Installation Directory Variables): Update.
5355         (Limitations of Make): Some about `Single Suffix Rules and
5356         Separated Dependencies'.
5357         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
5358         (ifnames, autoscan, autom4te): Un-factor into several rules.
5360 2002-09-25  Paul Eggert  <eggert@twinsun.com>
5362         * BUGS (Interoperability bugs): New section.  Mention libtool
5363         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
5365 2002-09-24  Paul Eggert  <eggert@twinsun.com>
5367         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
5368         make handles suffix-rules differently from GNU make.
5370         * bin/Makefile.am (SUFFIXES, .in): Remove.
5371         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
5372         Move the body of the old .in rule here.
5374 2002-09-16  Akim Demaille  <akim@epita.fr>
5376         i960 compilers create `b.out' files by default.
5377         Reported by Ralf Corsepius.
5379         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
5380         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
5382 2002-09-13  Paul Eggert  <eggert@twinsun.com>
5384         * doc/autoconf.texi (Particular Headers): Remove obsolete
5385         reference to `struct timezone' in the description of
5386         AC_HEADER_TIME.
5388 2002-09-13  Akim Demaille  <akim@epita.fr>
5390         Version 2.54.
5392         * config/config.sub, config/config.guess: Update.
5393         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
5394         * Makefile.am: Adjust.
5396 2002-09-13  Akim Demaille  <akim@epita.fr>
5398         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
5399         reading config.log when the compiler is rejected.
5400         Suggested by Guido Draheim.
5402 2002-09-13  Akim Demaille  <akim@epita.fr>
5404         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
5405         (chdir_init) might hang when stat'ing mounted directories.
5406         Reported by Vance Shipley.
5408 2002-09-12  Akim Demaille  <akim@epita.fr>
5410         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
5411         the lists.
5413 2002-09-12  Akim Demaille  <akim@epita.fr>
5415         * doc/autoconf.texi (Defining Symbols): Present two different
5416         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
5417         difference between 1 argument calls, and 2-3 argument calls.
5419 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
5421         * doc/autoconf.texi: Review grammar and punctuation.
5423 2002-09-11  Paul Eggert  <eggert@twinsun.com>
5425         * doc/autoconf.texi: Fix minor formatting, spelling, and
5426         grammatical typos.
5427         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
5428         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
5429         is obsolescent.
5431 2002-09-11  Akim Demaille  <akim@epita.fr>
5433         * doc/autoconf.texi (Questions): Rename as...
5434         (FAQ): this.
5435         (Defining Directories): New.
5437 2002-09-09  Akim Demaille  <akim@epita.fr>
5439         * doc/autoconf.texi (Making testsuite Scripts): Update.
5440         Suggested by Nishio Futoshi.
5442 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
5444         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
5445         plain `@' is wanted.
5447 2002-09-09  Akim Demaille  <akim@epita.fr>
5449         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
5450         `duplicates', since the algorithm was too naive and could keep
5451         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
5452         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
5453         Reported by Ralf Corsepius.
5454         * tests/torture.at (Configuring subdirectories): Exercise these
5455         cases.
5457 2002-09-09  Akim Demaille  <akim@epita.fr>
5459         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
5460         looking for a replacement file.
5461         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
5462         directory is relative.
5463         * doc/autoconf.texi (Generic Functions): Clarify the replacement
5464         directory definition.
5465         Reported by Andreas Schwab and Jim Meyering.
5467 2002-09-06  Akim Demaille  <akim@epita.fr>
5469         * doc/autoconf.texi (Setting Output Variables): Clarify what
5470         precious variables are.
5471         Suggested by Pontus Skoeld.
5473 2002-09-05  Akim Demaille  <akim@epita.fr>
5475         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
5476         (ifnames, autoscan, autom4te): Since we don't only depend on
5477         configure.ac variables (such as VERSION etc.), but also on prefix
5478         and so forth, depend on Makefile, not configure.ac.
5479         Reported by Alexandre Duret-Lutz.
5480         * doc/autoconf.texi (Installation Directory Variables): Adjust.
5482 2002-09-05  Kevin Ryde  <user42@zip.com.au>
5484         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
5485         doesn't seem to be confined to ia64, just say "some versions".
5487 2002-09-04  Akim Demaille  <akim@epita.fr>
5489         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
5490         Automake 1.6c.
5491         * Makefile.am (maintainer-clean-local): Remove.
5492         (MAINTAINERCLEANFILES): Remove COPYING.
5494 2002-09-03  Paul Eggert  <eggert@twinsun.com>
5496         * doc/autoconf.texi (Configuration Commands): Remove obsolete
5497         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
5498         Brinkmann.
5500 2002-09-03  Akim Demaille  <akim@epita.fr>
5502         * configure.ac: Bump to 2.53d.
5503         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
5504         as of today, on Automake's team suggestion.
5506 2002-09-03  Akim Demaille  <akim@epita.fr>
5508         Version 2.53c.
5510 2002-09-02  Akim Demaille  <akim@epita.fr>
5512         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
5513         SITE_MACRO_DIR.
5514         * configure.ac: Disable SITE_MACRO_DIR.
5516 2002-09-02  Jim Meyering  <meyering@lucent.com>
5518         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
5519         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
5520         Also, tweak grammar: s/make sure to/be sure to/.
5522 2002-09-02  Paul Eggert  <eggert@twinsun.com>
5524         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
5525         directory names are generally preferable to physical names.
5527 2002-09-02  Akim Demaille  <akim@epita.fr>
5529         * lib/Autom4te/General.pm (&update_file): s/die/error/.
5530         Reported by Raja R. Harinath.
5531         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
5532         * bin/autoupdate.in: Use error instead of die.
5534 2002-09-01  Paul Eggert  <eggert@twinsun.com>
5536         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
5537         ordinary shell concatenation rather than echo+tr+sed command that
5538         runs afoul of a long-line-related sed bug in Solaris 8.
5540         * bin/autoheader.in (parse_args): --warning -> --warnings.
5542         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
5543         stdout, as traditional "ls" does.
5544         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
5545         _AC_COMPILER_EXEEXT_O): Likewise.
5546         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
5548         * bin/autoconf.as: Add --prepend-include option.  This patch was
5549         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
5550         but bin/autoconf.in is generated automatically from bin/autoconf.as.
5552         * bin/autoconf.in, configure: Regenerate.
5554         * doc/autoconf.texi (Special Shell Variables): Mention
5555         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
5557         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
5558         MAILPATH and set PS1, PS2, PS4 to default values, to work
5559         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
5560         For LC_ALL etc, first try to set to "C" as POSIX requires and as
5561         the Autoconf documentation specifies; fall back to "unset" only if
5562         this fails.  Use a shell for-loop for this rather than an m4 loop,
5563         to shorten the output script.
5565 2002-08-30  Paul Eggert  <eggert@twinsun.com>
5567         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
5568         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
5569         for the CDPATH problem.  Document PWD.
5570         (Limitations of Builtins): Document the problem that "cd $foo" and
5571         "ls $foo" may refer to different directories in shells conforming
5572         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
5573         example, since the old example is now out of date.
5575         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
5576         FOO" and "ls FOO" talk about different directories; this catches
5577         problems when POSIX 1003.1-2001 "cd" fails due to symlink
5578         spaghetti.
5580         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
5581         of rolling our own unset.
5582         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
5583         in practice we needn't worry about CDPATH if unset doesn't work.
5585         * Makefile.in, aclocal.m4, bin/Makefile.in,
5586         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
5587         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
5588         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
5589         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
5590         tests/Makefile.in: Regenerate with Automake 1.6.3.
5592         * config/config.guess, config/config.sub, config/mkinstalldirs:
5593         Update.
5595         * configure: Regenerate with self.
5597 2002-08-30  Kevin Ryde  <user42@zip.com.au>
5599         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
5600         default output.
5602 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5604         * bin/autom4te.in (Request::load): Correctly test for "do" read
5605         failure.
5607 2002-08-29  Akim Demaille  <akim@epita.fr>
5609         * lib/Autom4te/General.pm (&xqx): New.
5610         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
5611         hand, which is not portable.
5612         (&error): New.
5613         * bin/autom4te.in: Use them.
5614         Use &error instead of die.
5615         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5616         Adjust.
5618 2002-08-17  Paul Eggert  <eggert@twinsun.com>
5620         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
5621         default list of compilers to try, since it was long ago superseded
5622         by the ksh fc builtin.  Suggested by Steven G. Johnson.
5624 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
5626         * doc/autoconf.texi (Invoking autom4te): End the option table,
5627         fixing a bug introduced by the previous patch.
5628         (Limitations of Make): Add a 'target lookup' subentry in the
5629         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
5631 2002-07-29  Mark D. Roth  <roth@feep.net>
5633         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
5634         options and use $AUTOM4TE_PATH.
5635         * doc/autoconf.texi: Remove documentation of autom4te
5636         --include-envvar and --site-macro-subdir options and document
5637         use of $AUTOM4TE_PATH.
5638         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
5639         arguments from each language section.
5641 2002-07-29  Paul Eggert  <eggert@twinsun.com>
5643         * doc/install.texi: Include copyright symbol in copyright notice.
5645         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
5646         Replace with:
5647         (AM_MAKEINFOFLAGS): New macro.
5648         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
5649         * Makefile.am (INSTALL): Use the new macros.
5650         Use -o rather than --output, since "missing" does not grok --output.
5652 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
5654         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
5655         comments do not always work. Never trust the exit status of
5656         `make -k'.
5658 2002-07-24  Kevin Ryde  <user42@zip.com.au>
5660         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
5661         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
5663 2002-07-23  Paul Eggert  <eggert@twinsun.com>
5665         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
5666         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
5667         apparently treats PATH="nonexistent" as if it contained ".".
5668         Bug reported by Stefan `Sec' Zehl.
5670 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
5672         * doc/autoconf.texi (Limitations of Make): Mention the special
5673         handling of the obj/ directory by BSD make.
5675 2002-07-20  Kevin Ryde  <user42@zip.com.au>
5677         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
5678         backslashes.
5680 2002-07-19  Akim Demaille  <akim@epita.fr>
5682         * doc/autoconf.texi (Function Portability): `exit'.
5683         (Programming in M4sh): Ethymology of M4sh.
5685 2002-07-19  Akim Demaille  <akim@epita.fr>
5687         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
5689 2002-07-18  Akim Demaille  <akim@epita.fr>
5691         Version 2.53b.
5693 2002-07-18  Akim Demaille  <akim@epita.fr>
5695         * config/config.guess, config/config.sub: Update.
5697 2002-07-18  Akim Demaille  <akim@epita.fr>
5699         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
5700         Automake's parts.
5702         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
5703         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
5704         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
5706 2002-07-18  Akim Demaille  <akim@epita.fr>,
5707             Alexandre Duret-Lutz  <duret_g@epita.fr>
5709         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
5710         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
5712 2002-07-17  Russ Allbery  <rra@stanford.edu>
5714         * doc/autoconf.texi (Initializing configure): Clarify the
5715         description of the tarname default.
5717 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
5719         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
5720         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
5721         latter was not run.
5723 2002-07-17  Akim Demaille  <akim@epita.fr>
5725         * lib/Autom4te/General.pm (find_file): Browse the directories in
5726         the order they are given.
5728 2002-07-17  Akim Demaille  <akim@epita.fr>
5730         * tests/wrapsh.as, tests/wrappl.as: Merge into...
5731         * tests/wrapper.as: this.
5732         * tests/Makefile.am, configure.ac: Adjust.
5734 2002-07-17  Mark D. Roth  <roth@feep.net>
5736         * configure.ac: Add --enable-site-macro-dir option.
5737         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
5738         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
5739         --site-macro-subdir options.
5740         * bin/autoconf.in: Add --prepend-include option.
5741         * bin/autoheader.in: Add --prepend-include option.
5742         * bin/autoreconf.in: Add --prepend-include option.
5743         * bin/autoscan.in: Add --prepend-include option.
5744         * bin/autoupdate.in: Add --prepend-include option.
5745         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
5746         macro directory, remove note that include path directories are
5747         used in reverse order, and document --prepend-include option.
5748         * lib/autom4te.in: Use --prepend-include instead of --include.
5749         * tests/wrapsh.in: Use --prepend-include instead of --include.
5751 2002-07-17  Akim Demaille  <akim@epita.fr>
5753         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
5754         tarnames.
5755         * doc/autoconf.texi (Initializing configure): Adjust.
5757 2002-07-17  Akim Demaille  <akim@epita.fr>
5759         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
5760         (_AC_FUNC_MALLOC): New.
5761         (AC_FUNC_MALLOC): Use the latter.
5762         Define HAVE_MALLOC to 0 if broken.
5763         * doc/autoconf.texi (Particular Functions): Adjust.
5765 2002-07-16  Akim Demaille  <akim@epita.fr>
5767         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
5768         * doc/autoconf.texi (C Compiler): Adjust.
5770 2002-07-09  Akim Demaille  <akim@epita.fr>
5772         * doc/autoconf.texi: Properly set the ``header'' part.
5774 2002-07-09  Akim Demaille  <akim@epita.fr>
5776         * doc/autoconf.texi (Systemology): Some about Darwin.
5778 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
5780         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
5781         Don't use AC_REQUIRE in AU_DEFUN.
5783 2002-07-09  Art Haas  <ahaas@neosoft.com>
5785         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
5787 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
5789         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
5790         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
5791         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
5792         so that Emacs setups GNU style for perl-mode and cperl-mode.
5794 2002-06-27  Paul Eggert  <eggert@twinsun.com>
5796         * config/install-sh: Quote $src.  Prefer || to test's -o option,
5797         as per "Limitations of Builtins".
5798         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
5799         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
5801         * tests/mktests.sh: Use grep instead of fgrep, as per
5802         "Limitations of Builtins".
5804 2002-06-15  Paul Eggert  <eggert@twinsun.com>
5806         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
5807         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
5808         so that we consistently test the just-built programs.
5809         * tests/wrappl.as: Likewise.
5811 2002-06-12  Paul Eggert  <eggert@twinsun.com>
5813         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
5814         name, so that symlinks to 'autoconf' work properly.  Bug reported
5815         by Bruno Haible.
5816         * bin/autoheader.in (AUTOM4TE): Likewise.
5817         * bin/autoreconf.in (autoconf, autoheader): Likewise.
5818         * bin/autoscan.in (autom4te): Likewise.
5819         * bin/autoupdate.in (autom4te): Likewise.
5821         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
5822         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
5823         on Solaris 2.5.1.
5825 2002-06-11  Andreas Schwab  <schwab@suse.de>
5827         * doc/autoconf.texi: Add more dir entries.
5829 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
5831         * bin/autom4te.in ($cache): Don't define using `$me', the name
5832         of the cache should not depend on the name under which autom4te
5833         was installed.
5835 2002-06-07  Akim Demaille  <akim@epita.fr>
5837         * tests/tools.at (autoconf: forbidden tokens, basic)
5838         (autoconf: forbidden tokens, exceptions): Adjust to the change of
5839         words in autom4te.in.
5841 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
5843         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
5844         _AC_LANG_PROGRAM_C_F77_HOOKS.
5846 2002-06-07  Akim Demaille  <akim@epita.fr>
5848         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
5849         rename as...
5850         (AC_REPLACE_FNMATCH): this.
5851         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
5852         AC_FUNC_FNMATCH_GNU.
5854 2002-06-07  Akim Demaille  <akim@epita.fr>
5856         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
5857         Rosetta Stone for Unix.
5859 2002-06-07  Akim Demaille  <akim@epita.fr>
5861         * bin/autom4te.in (warn_forbidden): When rejecting a token,
5862         suggest m4_pattern_allow.
5863         Suggested by Adam J. Richter.
5865 2002-06-07  Akim Demaille  <akim@epita.fr>
5867         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
5868         ac_config_libobj_dir.
5869         (AC_CONFIG_LIBOBJ_DIR): New.
5870         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
5871         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
5872         Use ac_config_libobj_dir to find the replacement files.
5873         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
5874         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
5875         (AC_REPLACE_FNMATCH_GNU): these.
5876         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
5877         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
5878         * tests/mktests.sh (ac_exclude_list): Don't check
5879         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
5881 2002-06-06  Paul Eggert  <eggert@twinsun.com>
5883         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
5884         if ln doesn't work.
5885         * NEWS: Likewise.
5886         * doc/autoconf.texi (Configuration Links): Likewise.
5887         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
5889 2002-06-05  Paul Eggert  <eggert@twinsun.com>
5891         * config/config.guess, config/config.sub, config/texinfo.tex:
5892         Update from masters.
5894 2002-05-29  Paul Eggert  <eggert@twinsun.com>
5896         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
5897         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
5898         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
5899         Likewise.
5900         * lib/autoconf/Makefile.am (check-local): Likewise.
5901         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
5902         * lib/autoconf/types.m4 (commentary only): Likewise.
5903         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
5904         * lib/autotest/Makefile.am (check-local): Likewise.
5905         * lib/m4sugar/Makefile.am (check-local): Likewise.
5906         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
5907         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
5909         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
5910         * doc/autoconf.texi (Particular Programs): Document them.
5911         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
5912         * NEWS: Likewise.
5914 2002-05-27  Paul Eggert  <eggert@twinsun.com>
5916         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
5917         * NEWS, doc/autoconf.texi (Particular Types): Document it.
5918         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
5919         instead of AC_MBSTATE_T, which never existed.
5921 2002-05-23  Akim Demaille  <akim@epita.fr>
5923         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
5924         version of Autoconf that is discussed.
5926 2002-05-22  Paul Eggert  <eggert@twinsun.com>
5928         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
5929         from the default list of compilers to try.  Suggested by
5930         Kate Hedstrom.
5931         * NEWS: Document the above.
5932         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
5934 2002-05-17  Paul Eggert  <eggert@twinsun.com>
5936         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
5937         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
5938         This improves on an earlier suggestion by H. Peter Anvin.
5940 2002-05-16  Paul Eggert  <eggert@twinsun.com>
5942         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
5943         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
5944         Both macros now accept an optional source-dir arg.
5945         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
5947         * NEWS: Document this.
5948         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
5950         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
5951         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
5952         not for GNU extensions; this undoes part of the 2000-11-03 change,
5953         reverting to 2.13-compatible behavior.
5954         Add new optional argument DIR.
5955         (AC_FUNC_FNMATCH_GNU): New macro.
5957         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
5959 2002-05-08  Paul Eggert  <eggert@twinsun.com>
5961         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
5962         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
5963         and it causes a 'test' syntax error if it fails.
5964         Bug reported by Stephen Gildea.
5966         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
5967         If prototypes are supported, use them to check this at compile-time,
5968         instead of trying to check it at run-time.  If we must do a run-time
5969         check, assume that setvbuf is standard when cross-compiling, as
5970         nonstandard setvbuf occurs only on ancient and unlikely hosts.
5971         Bug reported by Paul D. Smith.
5973         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
5974         argument specifying location of getloadavg.c.  This removes a
5975         FIXME.  This idea was taken from Jim Meyering's implementation in
5976         textutils.
5977         * doc/autoconf.texi (Particular Functions): Document this.
5978         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
5979         that's what the code does; this fixes a bug reported by
5980         Paul D. Smith.
5982 2002-05-03  Akim Demaille  <akim@epita.fr>
5984         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
5985         autopoint instead of gettextize.
5986         ($uses_alocal): Rename as...
5987         ($uses_aclocal): this.
5988         * doc/autoconf.texi (autoreconf Invocation): Adjust.
5989         Suggested by Bruno Haible.
5991 2002-05-03  Akim Demaille  <akim@epita.fr>
5993         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
5995 2002-04-29  Paul Eggert  <eggert@twinsun.com>
5997         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
5998         files to be 1 second older; just set them to be the same time.
5999         Also, sleep 1 second after the first aclocal, to work around
6000         problems with sub-second time stamps on the input files.
6002 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
6004         * doc/autoconf.texi: Mention "set -e -x" lossage
6005         under node "Limitations of Builtins".
6007 2002-04-29  Akim Demaille  <akim@epita.fr>
6009         * doc/install.texi: Better wording for setting variables when
6010         running configure.
6011         From Christian Cornelssen.
6013 2002-04-29  Akim Demaille  <akim@epita.fr>
6015         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
6016         of lack of $LINENO support, then the test will compare the $LINENO
6017         in testsuite vs. the lineno in the test file.  This is wrong, of
6018         course.
6019         Be sure to protect it.
6020         Reported by Patrick Welche.
6022 2002-04-25  Akim Demaille  <akim@epita.fr>
6024         * doc/autoconf.texi (Obsolete Macros): Typo.
6025         Reported by Vladimir Volovich.
6027 2002-04-25  Akim Demaille  <akim@epita.fr>
6029         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
6030         than some of the input files, hence, on the second run of aclocal,
6031         if some of its input are younger, make them older.
6032         Suggested by Paul Eggert.
6034 2002-04-25  Akim Demaille  <akim@epita.fr>
6036         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
6037         Thanks to Paul Eggert.
6039 2002-04-25  Akim Demaille  <akim@epita.fr>
6041         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
6042         and ac_subst_vars be sh variables containing the list of
6043         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
6044         DEFAULT diversion.
6045         (_AC_INIT_PREPARE): Use them to log them.
6046         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
6047         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
6048         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
6049         _AC_SUBST_FILES and _AC_SUBST_VARS.
6050         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
6052 2002-04-24  Akim Demaille  <akim@epita.fr>
6054         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
6055         autoheader, so that automake does not complain about a missing
6056         config.h.in that was to be created.
6058 2002-04-23  Akim Demaille  <akim@epita.fr>
6060         * bin/autoheader.in (parse_args): --warning takes an argument.
6061         Fixes PR/220.
6063 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
6065         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
6066         and bb.out when cleaning up.
6068 2002-04-22  Akim Demaille  <akim@epita.fr>
6070         Version 2.53a.
6072 2002-04-22  Akim Demaille  <akim@epita.fr>
6074         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
6076 2002-04-22  Akim Demaille  <akim@epita.fr>
6078         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
6079         comma.
6080         Reported by Gregory Giannoni.
6082 2002-04-22  Akim Demaille  <akim@epita.fr>
6084         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
6085         Fixes false failures on Darwin.
6087 2002-04-21  Paul Eggert  <eggert@twinsun.com>
6089         * TODO, bin/autoupdate.in, doc/autoconf.texi,
6090         lib/autoconf/general.m4, lib/autoconf/libs.m4,
6091         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
6092         tests/tools.at: Minor spelling and grammar fixes.
6094 2002-04-20  Paul Eggert  <eggert@twinsun.com>
6096         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
6097         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
6098         * lib/autotest/general.m4 (AT_INIT): Likewise.
6099         * tests/atgeneral.m4 (AT_INIT): Likewise.
6101 2002-04-19  Paul Eggert  <eggert@twinsun.com>
6103         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
6104         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
6105         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
6106         lib/autoconf/functions.m4, lib/autoconf/general.m4,
6107         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
6108         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
6109         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
6110         Minor spelling and grammar fixes.
6112         * doc/autoconf.texi: Follow the outline suggested in the GNU
6113         Sample Texts sections of the Texinfo 4.2 manual.  Most
6114         importantly, this makes sure that the copyright notices appear in
6115         all output formats.  You probably need Texinfo 4.2 to generate
6116         the manual now.
6118         Fix some bugs when using "$@" when there might be zero positional
6119         arguments in cases where this matters.
6121         * bin/autoconf.as: Rewrite so that the problem does not come up.
6122         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
6123         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
6124         * lib/autotest/general.m4 (AT_INIT): Likewise.
6126         * bin/autoheader.in: Use 'case' statement to work around problem.
6127         * bin/auto4mte.in: Likewise.
6128         * bin/autoreconf.in: Likewise.
6129         * bin/autoscan.in: Likewise.
6130         * bin/autoupdate.in: Likewise.
6131         * bin/ifnames.in: Likewise.
6133         * doc/autoconf.texi (Shell Substitutions): Document the problem.
6135         * lib/autotest/general.m4 (AT_INIT):
6136         Use Zsh alias to work around problem.
6137         * tests/atgeneral.m4 (AT_INIT): Likewise.
6139         * tests/c.at: We can't have zero arguments, so remove workaround
6140         that is not portable to Zsh.
6142 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
6144         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
6145         from aclocal.m4 too.
6147 2002-04-12  Akim Demaille  <akim@epita.fr>
6149         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
6151 2002-04-10  Akim Demaille  <akim@epita.fr>
6153         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
6154         workaround for ${1+"$@"}.
6155         * doc/autoconf.texi (Shell Substitutions): Explain it.
6156         From Oliver Kiddle and Peter Stephenson.
6158         Have M4sh perform minimal shell sanitizing.
6160         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
6161         part into...
6162         (_AS_PREPARE): this new macro.
6163         (AS_PREPARE): New.
6164         (AS_INIT): Invoke AS_SHELL_SANITIZE.
6165         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
6167         Adjust Autoconf and Autotest.
6169         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
6170         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
6171         * lib/autotest/general.m4 (AT_INIT): Likewise.
6172         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6173         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
6174         AS_SHELL_SANITIZE.
6176         Use this M4sh to generate Autoconf's shell scripts.
6178         * tests/wrapsh.as: New, precursor of wrapsh.in.
6179         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
6180         on Autotest and M4sh.
6181         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
6182         (wrapsh.in): New target.
6183         * bin/autoconf.as: New, precursor of autoconf.in.
6184         (autoconf.in): New target.
6186 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
6188         * doc/autoconf.texi (Limitations of Make): Mention the issue
6189         with indented comments in rules.
6191 2002-04-09  Andreas Schwab  <schwab@suse.de>
6193         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
6194         ac_top_builddir when setting ac_abs_top_builddir.
6196 2002-04-06  Kevin Ryde  <user42@zip.com.au>
6198         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
6199         (Portable Shell): Cross reference to Systemology.
6201 2002-04-05  Akim Demaille  <akim@epita.fr>
6203         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
6204         directories when descending in a SUBDIRS.
6205         Reported by Ezra Peisach.
6207 2002-04-04  Andreas Schwab  <schwab@suse.de>
6209         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
6210         contains no literal separators.
6212 2002-04-03  Akim Demaille  <akim@epita.fr>
6214         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
6215         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
6216         Use dnl, not the KILL diversion.
6217         Extracted from...
6218         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
6219         (AC_CONFIG_LINKS): here.
6220         Adjust.
6221         Don't use the KILL diversion, as it kills spurious output, which
6222         results in failures being hidden.
6223         Use m4_defn where appropriate.
6224         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
6225         after the second argument.
6226         Use m4_defn.
6227         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
6228         syntax, as it is provided by M4sugar.
6229         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
6231 2002-04-03  Andreas Schwab  <schwab@suse.de>
6233         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
6234         expanded if $# <= 2.
6236         * bin/autoreconf.in (autoreconf): Run automake after rerunning
6237         aclocal.
6239 2002-04-03  Akim Demaille  <akim@epita.fr>
6241         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
6242         (_AC_COMPILER_EXEEXT_REJECT): New.
6243         Also recognize *.bb and *.bbg as compilation byproducts.
6244         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
6245         (_AC_COMPILER_OBJEXT): Use them.
6246         Fixes Debian #138666.
6248 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
6250         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
6252         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
6253         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
6254         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
6255         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
6256         (AC_C_CONST): Same.
6257         (AC_C_INLINE): Same.
6258         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
6259         * doc/autoconf.texi, NEWS: Document.
6260         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
6261         AC_C_CROSS.
6263 2002-04-02  Akim Demaille  <akim@epita.fr>
6265         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
6266         _AS_MKDIR_P_PREPARE.
6268 2002-03-28  Kevin Ryde  <user42@zip.com.au>
6270         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
6271         to avoid versions of HP C which don't allow that.
6273 2002-03-27  Paul Eggert  <eggert@twinsun.com>
6275         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
6276         (AS_SHELL_SANITIZE): Invoke it.
6277         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
6279 2002-03-26  Akim Demaille  <akim@epita.fr>
6281         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
6283 2002-03-26  Akim Demaille  <akim@epita.fr>
6285         * doc/autoconf.texi (Introduction): The GNATS base moved.
6287 2002-03-25  Paul Eggert  <eggert@twinsun.com>
6289         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
6290         as POSIX requires, as it doesn't work with Zsh.
6291         * doc/autoconf.texi (Assignments): Document the problem.
6293 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
6295         * doc/autoconf.texi (Limitations of Make): Mention more issue
6296         about VPATH, overriding of macros in sub-makes, and handling of
6297         SHELL.
6299 2002-03-21  Paul Eggert  <eggert@twinsun.com>
6301         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
6302         problem with here-document buffer boundaries.
6304         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
6305         when reinvoking the shell, to work around problems with installers
6306         who put strange things like "cd" commands in their environments.
6308 2002-03-19  Akim Demaille  <akim@epita.fr>
6310         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
6311         From Aaron Ucko.
6313 2002-03-19  Akim Demaille  <akim@epita.fr>
6315         * bin/autoscan.in (scan_file): Specify the location in `&used'
6316         invocations.
6317         From Nicolas Joly.
6319 2002-03-19  Akim Demaille  <akim@epita.fr>
6321         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
6322         From Nishio Futoshi.
6324 2002-03-19  Akim Demaille  <akim@epita.fr>
6326         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
6328 2002-03-18  Paul Eggert  <eggert@twinsun.com>
6330         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
6331         (Limitations of Usual Tools): Add mkdir section.
6333         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
6334         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
6335         back on AS_DIRNAME to compute prefixes otherwise; this is
6336         roughly what mkinstalldirs does.  That way, we need not have
6337         our own filename disassembler.  The old disassembler did not
6338         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
6340         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
6341         Create at_test_all by a series of assignments,
6342         not by a single assignment of a long string.  The latter causes ksh
6343         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
6344         presumably because of a buffer overrun.
6346 2002-03-14  Paul Eggert  <eggert@twinsun.com>
6348         * lib/autotest/general.m4 (at_times_skip):
6349         Renamed from at_times.  Now a boolean.
6350         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
6351         says 'times: not found'.
6353 2002-03-14  Akim Demaille  <akim@epita.fr>
6355         * bin/autoreconf.in (&study_gettextize): New.
6356         (&autoreconf): Handle newest gettextize.
6357         Rerun aclocal if needed.
6358         Suggested by Andreas Schwab.
6360 2002-03-13  Akim Demaille  <akim@epita.fr>
6362         * doc/autoconf.texi (Special Shell Variables): More about IFS.
6364 2002-03-13  Akim Demaille  <akim@epita.fr>
6366         * doc/autoconf.texi (Header Portability): New.
6367         Add information about stdint.h and inttypes.h from Paul Eggert.
6369 2002-03-13  Akim Demaille  <akim@epita.fr>
6371         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
6372         -p'.
6373         From Bob Proulx.
6375 2002-03-12  Akim Demaille  <akim@epita.fr>
6377         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
6378         m4_require.
6380 2002-03-11  Andreas Schwab  <schwab@suse.de>
6382         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
6383         does not do it if --with-lispdir is given.
6385 2002-03-08  Akim Demaille  <akim@epita.fr>
6387         Version 2.53.
6389 2002-03-08  Akim Demaille  <akim@epita.fr>
6391         * doc/autoconf.texi (Subdirectories): Clarify that the
6392         subdirectory should exist.
6394 2002-03-08  Akim Demaille  <akim@epita.fr>
6396         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
6398 2002-03-08  Akim Demaille  <akim@epita.fr>
6400         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
6401         aliases the actual variables, and modifications of the former
6402         affect the latter.
6404 2002-03-08  Akim Demaille  <akim@epita.fr>
6406         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
6407         because of C-c: have m4 output in tmp files, then mv them.
6409 2002-03-08  Akim Demaille  <akim@epita.fr>
6411         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
6412         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
6413         * bin/ifnames.in: Copyright update.
6415 2002-03-08  Akim Demaille  <akim@epita.fr>
6417         * doc/autoconf.texi (Invoking autom4te): New.
6419 2002-03-05  Akim Demaille  <akim@epita.fr>
6421         * doc/autoconf.texi (Specifying Names): Clarification suggested by
6422         Kevin Ryde.
6424 2002-03-05  Akim Demaille  <akim@epita.fr>
6426         Version 2.52i.
6428 2002-03-04  Akim Demaille  <akim@epita.fr>
6430         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
6431         * lib/autoconf/general.m4 (AC_INIT): More informative error
6432         message for LIBOBJ.
6434 2002-03-04  Akim Demaille  <akim@epita.fr>
6436         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
6437         parallel builds.
6439 2002-03-04  Akim Demaille  <akim@epita.fr>
6441         * doc/autoconf.texi (Transforming Names): Equality between target
6442         and host is irrelevant.
6443         (Specifying Names, Canonicalizing): Remove all references to the
6444         backward compatibility hooks.  Rather, collect them all into...
6445         (Hosts and Cross-Compilation): this new section.
6446         * doc/install.texi (System Type): Ditto.
6447         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
6448         that `--host' implies cross-compilation.
6450 2002-03-04  Akim Demaille  <akim@epita.fr>
6452         * doc/autoconf.texi (Evaluation Macros): New.
6453         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
6454         useless.
6455         (_m4_foreach): Define the variant with immediate evaluation so
6456         that it contains exactly the items, not an expression which
6457         evaluation is the current item.
6458         (m4_re_string, m4_re_word): Don't over quote them.
6460 2002-03-04  Akim Demaille  <akim@epita.fr>
6462         Instead of having stacking `shift's evaluated at the end, let
6463         `foreach' loops immediately evaluate them.
6465         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
6466         $*.  This is the n-th time I change my mind, but hopefully this is
6467         the last...
6468         (m4_lquote): New.
6469         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
6470         efficient.
6471         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
6472         it was only a hack for m4_text_wrap.
6473         (m4_car2): Remove, replaced by...
6474         (m4_cdr): New.
6475         (_m4_foreach): Adjust.
6476         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
6477         m4_bpatsubst for clarification.
6479 2002-03-04  Akim Demaille  <akim@epita.fr>
6481         * doc/autoconf.texi (Changequote is Evil): New.
6483 2002-03-03  Kevin Ryde  <user42@zip.com.au>
6485         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
6486         on old systems like SunOS.
6488 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
6490         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6491         lib/autoconf/functions.m4, lib/autoconf/general.m4,
6492         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
6493         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
6494         of messages.
6496 2002-02-28  Akim Demaille  <akim@epita.fr>
6498         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
6499         message to be sent.
6501 2002-02-28  Kevin Ryde  <user42@zip.com.au>
6503         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
6505 2002-02-25  Akim Demaille  <akim@epita.fr>
6507         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
6508         From Akinori Musha.
6510 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
6512         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
6513         translate \r\n to \n.
6515 2002-02-07  Akim Demaille  <akim@epita.fr>
6517         Version 2.52h.
6519 2002-02-07  Akim Demaille  <akim@epita.fr>
6521         Fix Autoconf PR/209.
6522         Also reported by Frank Denis.
6524         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
6526 2002-02-07  Akim Demaille  <akim@epita.fr>
6528         Fix Autoconf PR/207:
6529         AC_PREFIX_PROGRAM fails with dashed program names
6531         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
6532         variable when looking for the prefix program.
6533         Now it also works for shell variables.
6535 2002-02-07  Akim Demaille  <akim@epita.fr>
6537         * doc/autoconf.texi (Limitations of Builtins): More about
6538         case/esac.
6540 2002-02-06  Akim Demaille  <akim@epita.fr>
6542         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
6543         case/esac, some shells don't support it.
6544         Reported by Zack Weinberg.
6545         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
6547 2002-02-06  Akim Demaille  <akim@epita.fr>
6549         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
6550         sure not to introduce newlines in at_groups.
6551         * lib/autotest/Makefile.am (autotest.m4f): Typo.
6553 2002-02-06  Akim Demaille  <akim@epita.fr>
6555         * tests/torture.at (Configuring subdirectories): Skip if aclocal
6556         is not available.
6558 2002-02-05  Paul Eggert  <eggert@twinsun.com>
6560         * doc/autoconf.texi (Specific Compiler Characteristics):
6561         Describe HP-UX cc bug workaround more accurately.
6562         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
6563         not unsigned long.
6564         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
6565         cross-compilers, too.  This undoes some of the most recent change
6566         to this file.
6568 2002-02-05  Akim Demaille  <akim@epita.fr>
6570         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
6571         to make sure they are up to date when `check' is run.
6573 2002-02-05  Akim Demaille  <akim@epita.fr>
6575         * doc/autoconf.texi (Making testsuite Scripts): Document
6576         package.m4.
6578 2002-02-05  Akim Demaille  <akim@epita.fr>
6580         * lib/freeze.mk: New.
6582 2002-02-05  Akim Demaille  <akim@epita.fr>
6584         Implement `autom4te --freeze'.
6586         * bin/autom4te.in (&freeze): New.
6587         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
6588         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
6590 2002-02-05  Akim Demaille  <akim@epita.fr>
6592         * bin/autom4te.in (&parse_args): Implement `frozen files are
6593         optional are the sum of the previous files on the command line'.
6594         Also, pass `--reload-state=' on them, so...
6595         (handle_m4): don't.
6596         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
6597         (M4sh): Rely on M4sugar.
6598         (Autotest, M4sh, M4sugar): Use frozen files.
6600 2002-01-31  Akim Demaille  <akim@epita.fr>
6602         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
6603         * doc/autoconf.texi (Initializing configure): Adjust.
6605 2002-01-30  Akim Demaille  <akim@epita.fr>
6607         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
6608         alphanumeric to `-' instead of `_'.
6610 2002-01-30  Akim Demaille  <akim@epita.fr>
6612         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
6613         for plain code, the other for cross-compilation code.  The latter
6614         is now run with GCC only.
6615         * doc/autoconf.texi (Compilers and Preprocessors): New.
6617 2002-01-30  Akim Demaille  <akim@epita.fr>
6619         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
6620         values.
6621         * doc/autoconf.texi (Initializing configure): Explain how to
6622         change AC_INIT default values.
6624 2002-01-29  Akim Demaille  <akim@epita.fr>
6626         * tests/torture.at (Configuring subdirectories): Use configure.in,
6627         so that aclocal 1.4 works.
6628         Reported by Alexandre Duret-Lutz and Larry Schmitt.
6630 2002-01-28  Akim Demaille  <akim@epita.fr>
6632         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
6633         needs an argument.
6635 2002-01-28  Akim Demaille  <akim@epita.fr>
6637         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
6638         AUTOTEST_PATH *after* it was set.
6639         Don't put `.' in the PATH: the user should be precise and `./' if
6640         needed.  In addition, given that the test suite does some `cd', if
6641         `.' is in the path, the `tested programs' sections will report
6642         programs found in the test suite's directory, while during the
6643         tests (performed in their own directory), these programs are no
6644         longer visible.  In other words, the results is confusing and
6645         useless.
6646         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
6648 2002-01-24  Akim Demaille  <akim@epita.fr>
6650         Version 2.52g.
6652 2002-01-24  Akim Demaille  <akim@epita.fr>
6654         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
6655         * doc/autoconf.texi: Finally add Akim as an author.
6657 2002-01-24  Akim Demaille  <akim@epita.fr>
6659         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
6660         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
6661         Bourne. Use /bin/sh.
6662         From Andreas Buening.
6664 2002-01-24  Akim Demaille  <akim@epita.fr>
6666         * config/config.guess, config/config.sub, config/texinfo.tex:
6667         Update from masters.
6669 2002-01-24  Akim Demaille  <akim@epita.fr>
6671         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
6672         * config/auxdir.m4, config/cond.m4, config/depend.m4,
6673         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
6674         * config/missing.m4, config/sanity.m4, config/select.m4,
6675         * config/strip.m4: Remove, to ease sync'ing with any version of
6676         Automake.
6678 2002-01-24  Akim Demaille  <akim@epita.fr>
6680         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
6681         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
6682         Reported by Geir Ove Myhr.
6684 2002-01-21  Akim Demaille  <akim@epita.fr>
6686         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
6688 2002-01-21  Akim Demaille  <akim@epita.fr>
6690         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
6691         message on invalid options.
6692         * bin/autom4te.in (parse_args): Don't use
6693         Autoconf::General::getopt with non valid options.
6695 2002-01-17  Jim Meyering  <meyering@lucent.com>
6697         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
6698         $ac_cv_exeext so we don't use an old, invalid, cached value.
6700 2002-01-11  Akim Demaille  <akim@epita.fr>
6702         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
6703         Meyering.
6704         * doc/autoconf.texi (Function Portability): Document the strnlen
6705         limitation.
6706         (Particular Functions): Document AC_FUNC_STRNLEN.
6707         * lib/autoscan/functions: Adjust.
6709 2002-01-06  Akim Demaille  <akim@epita.fr>
6711         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
6712         package.m4, since is really depends upon configure.ac, not
6713         configure.
6714         * doc/autoconf.texi (testsuite Scripts): Adjust.
6715         * tests/Makefile.am (package.m4): New.
6716         EXTRA_DIST it since its a source.
6718 2002-01-06  Akim Demaille  <akim@epita.fr>
6720         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
6721         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
6722         and PACKAGE_BUGREPORT from here...
6723         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
6724         arguments.
6725         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
6726         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
6727         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
6728         * tests/tools.at (autoheader): Adjust.
6729         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
6731 2002-01-06  Akim Demaille  <akim@epita.fr>
6733         * bin/autoscan.in (scan_file): Use `&used'.
6735 2002-01-03  Akim Demaille  <akim@epita.fr>
6737         * doc/autoconf.texi (Output): Improved wording regarding use of
6738         AC_OUTPUT.
6739         From Olly Betts.
6741 2001-12-18  Kevin Ryde  <user42@zip.com.au>
6743         * doc/autoconf.texi (Function Portability): Add notes on sscanf
6744         sometimes needing writable input.
6746 2001-12-17  Jim Meyering  <meyering@lucent.com>
6748         * doc/autoconf.texi (New Macros): Tweak wording.
6750 2001-12-14  Akim Demaille  <akim@epita.fr>
6752         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
6753         trailing files, don't apply `-rf' to files which might not be
6754         created by configure (core, core.*, and *.core), but just `rm -f'.
6755         Suggested by Jonathan Kamens.
6757 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
6759         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
6761 2001-12-14  Akim Demaille  <akim@epita.fr>
6763         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
6765 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
6767         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
6768         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
6769         abs_srcdir, top_srcpath to abs_top_srcdir.
6770         (_AC_OUTPUT_FILES): Adjust.
6771         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
6772         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
6773         * tests/wrappl.in, tests/wrapsh.in: Adjust.
6775 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
6777         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
6778         C/Fortran linking on HP/UX, by extracting the Fortran library
6779         search path from the LPATH line in the $F77 -v output.
6781 2001-12-12  Kevin Ryde  <user42@zip.com.au>
6783         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
6784         forbidden file descriptors table.
6786 2001-11-26  Akim Demaille  <akim@epita.fr>
6788         * bin/autoscan.in (%c_keywords): Build it at top level.
6789         Map to 1 in order to simplify its uses.
6791 2001-11-26  Akim Demaille  <akim@epita.fr>
6793         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
6794         Remove $filepath, useless.
6795         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
6796         variables, they are really part of the tokens.
6797         Split the input line on spaces and then look for tokens.
6798         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
6799         because of `lex$U.$(OBJEXT)'.
6800         (&scan_files): Use "@list" instead of join.
6801         * doc/Makefile.am (CLEANFILES): Add *.fns.
6803 2001-11-26  Akim Demaille  <akim@epita.fr>
6805         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
6806         Remove, replaced by...
6807         * tests/wrappl.in: Be common for all the Perl executables.
6808         In particular autoscan and autoheader want -I.
6809         * configure.ac: Adjust.
6810         * lib/autoscan/headers: errno.h is portable.
6812 2001-11-26  Akim Demaille  <akim@epita.fr>
6814         * bin/autoscan.in (used): New.
6815         Use it.
6817 2001-11-26  Akim Demaille  <akim@epita.fr>
6819         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
6820         directives.
6821         (&scan_sh_file): Remove a duplicate pattern.
6822         (&check_configure_ac): Use long options.
6823         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
6825 2001-11-26  Akim Demaille  <akim@epita.fr>
6827         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
6828         Before, having a line containing the opening of a multi line
6829         comment made the whole line be ignored.
6831 2001-11-26  Akim Demaille  <akim@epita.fr>
6833         * doc/autoconf.texi (Using an Autotest Test Suite): New.
6834         (testsuite Scripts): Be one of its subsection.
6835         (Autotest Logs): New.
6837 2001-11-26  Akim Demaille  <akim@epita.fr>
6839         Test groups are now run two directories deeper.
6841         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
6842         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
6843         at_top_builddir.
6844         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
6845         top_srcdir, builddir and top_builddir.
6846         Use `at_*dir' relatively to the directory containing the
6847         suite, use `*dir' when relatively to the current group dir.
6849 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
6851         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
6852         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
6853         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
6854         spelling errors.
6856 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
6858         * doc/autoconf.texi (Using System Type): Add an example of `case
6859         $host' usage so people quit using `case $target' everywhere.
6861 2001-11-22  Akim Demaille  <akim@epita.fr>
6863         * doc/autoconf.texi (Installation Directory Variables): Englishoes
6864         spotted by Jim Meyering.
6866 2001-11-16  Paul Eggert  <eggert@twinsun.com>
6868         This patch implements a `long double' suggestion by Oliver Kiddle.
6870         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
6871         static, to catch errors if the value isn't known at compile-time
6872         and the compiler supports dynamic arrays.  Change its name from
6873         `_array_' to `test_array' to avoid potential name clashes.
6874         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
6875         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
6876         better than double.  Catch a bug in GCC 2.95.2 x86.
6877         * doc/autoconf.texi (C Compiler): Document the above.
6878         * NEWS: Likewise.
6880 2001-11-13  Akim Demaille  <akim@epita.fr>
6882         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
6883         hand.
6884         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
6886 2001-11-13  Akim Demaille  <akim@epita.fr>
6888         * lib/autotest/general.m4 (AT_INIT): After having run the test
6889         group, go back to the initial directory, not to at_suite_dir.
6891 2001-11-13  Akim Demaille  <akim@epita.fr>
6893         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
6894         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
6895         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
6896         option.
6897         (AT_CHECK_CONFIGURE): Use absolute paths.
6898         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
6899         The problem is still the old one: there is no means in M4 (that I
6900         know about) to create a defining macro, because there is no means
6901         to create `$1' etc., therefore, the defining macro ``swallows''
6902         all the arguments meant to the defined macro.
6904 2001-11-13  Akim Demaille  <akim@epita.fr>
6906         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
6907         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
6908         configure.ac.
6909         * tests/aclocal.m4: Remove, as it is no longer used.
6911 2001-11-13  Akim Demaille  <akim@epita.fr>
6913         * lib/autotest/general.m4: Change `tests?' into `groups?' in
6914         variable names when referring to a single test group, or to
6915         `suite' when referring to the whole test suite.
6916         `at_last_test' is removed: m4 compute at_format itself.
6917         (at_stdout, at_stder1, at_stderr): New variables.
6918         (AT_CHECK): Use them.
6920 2001-11-13  Akim Demaille  <akim@epita.fr>
6922         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
6923         in PATH.
6924         Create `testsuite.dir/003/run' instead of `testsuite.003'.
6925         Do it as soon as a test fails, don't wait till the end of the test
6926         suite.
6927         Don't remove $as_me.[0-9]*, since these files no longer exist.
6929 2001-11-13  Akim Demaille  <akim@epita.fr>
6931         * tests/tools.at: Use absolute paths, since we are no longer run
6932         in place.
6934 2001-11-13  Akim Demaille  <akim@epita.fr>
6936         Now that tests are running in their own private dir, there is no
6937         need to list the files to remove at the end of tests groups.
6939         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
6940         (AT_data_files, at_data_files): Remove.
6941         (AT_CLEANUP, AT_DATA): Simplify.
6942         (AT_INIT): Adjust.
6943         Remove the group dir if !debug && !failed.
6944         * tests/atspecific.m4: Adjust.
6946 2001-11-13  Akim Demaille  <akim@epita.fr>
6948         Start a new layout for Autotest: `testsuite' creates
6949         `testsuite.dir' in which the at-check-line etc. files are to be
6950         found, and `testsuite.dir/003' where the test group 3 is run.
6952         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
6953         at_check_line_file, at_format, at_test_normalized, at_group_dir
6954         are new variables.
6955         Create the directories.
6956         Use absolute paths for at- files.
6957         (AT_CHECK): Adjust.
6959 2001-11-11  Michael Matz  <matz@kde.org>
6961         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
6962         (m4_car2): New.
6963         (m4_car): Properly quote arguments.
6965 2001-11-13  Akim Demaille  <akim@epita.fr>
6967         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
6968         with stricter rules on LIBOBJS.
6970 2001-11-12  Paul Eggert  <eggert@twinsun.com>
6972         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
6973         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
6974         __PROTOTYPES too.
6976 2001-11-12  Akim Demaille  <akim@epita.fr>
6978         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
6980 2001-11-12  Akim Demaille  <akim@epita.fr>
6982         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
6983         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
6984         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
6985         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
6986         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
6987         specify to what the macro should be defined (typically to 1).
6989 2001-11-12  Akim Demaille  <akim@epita.fr>
6991         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
6992         From Jim Meyering.
6994 2001-11-12  Akim Demaille  <akim@epita.fr>
6996         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
6997         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
6998         definition used by Automake where LEX is +/- "${missing} lex" and
6999         `missing' itself contains variables.
7001 2001-11-12  Akim Demaille  <akim@epita.fr>
7003         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
7004         Now that M4sh pushes BODY, the comments were output at the end of
7005         the test suites.
7007 2001-11-08  Akim Demaille  <akim@epita.fr>
7009         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
7010         that we can trace macros from aclocal.m4.
7011         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
7012         obsoleted, and redirect to the former anyway.
7013         Reported by Ralf Corsepius.
7015 2001-11-08  Akim Demaille  <akim@epita.fr>
7017         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
7018         processed only if present.
7019         * tests/torture.at (Configuring subdirectories): Use autoreconf
7020         instead of successive calls to autoconf.
7021         Add a nonexistent subdirectory to exercise the patch above.
7022         Reported by Ralf Corsepius.
7024 2001-11-08  Kevin Ryde  <user42@zip.com.au>
7026         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
7027         doesn't accept .S files.
7029 2001-11-07  Akim Demaille  <akim@epita.fr>
7031         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
7032         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
7033         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
7034         * bin/autom4te.in (warn_forbidden): New.
7035         (handle_output): Use it.
7036         Read m4_pattern_forbid with messages.
7038 2001-11-05  Akim Demaille  <akim@epita.fr>
7040         * bin/autom4te.in (--normalize): Remove.
7041         * lib/autom4te.in: Adjust.
7043 2001-11-05  Akim Demaille  <akim@epita.fr>
7045         * tests/Makefile.am (testsuite): Rename this target as...
7046         ($(TESTSUITE)): this.
7047         From Nicolas Joly.
7049 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
7051         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
7052         the --prefix option, also remove it's argument.
7054 2001-11-05  Akim Demaille  <akim@epita.fr>
7056         * doc/autoconf.texi (testsuite Invocation): Update.
7057         (Writing testsuite.at): Update.
7059 2001-11-03  Akim Demaille  <akim@epita.fr>
7061         * doc/autoconf.texi: s/@code/@command/ where appropriate.
7063 2001-11-03  Akim Demaille  <akim@epita.fr>
7065         * lib/Autom4te/General.pm: (&catfile, &canonfile)
7066         (&file_name_is_absolute): New, wrappers around routines from
7067         File::Spec.
7068         Use and export them.
7069         (&find_configure_ac): Optionally take a directory where to look at.
7070         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
7071         the arguments.
7072         Default @ARGV to `.', not find_configure_ac.
7073         (&autoreconf): Argument is a directory.
7074         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
7075         * doc/autoconf.texi (autoreconf Invocation): Update.
7077 2001-11-03  Akim Demaille  <akim@epita.fr>
7079         * lib/Autom4te/General.pm (@export_vars, @export_subs)
7080         (@export_forward_subs): New.
7081         Add basename, dirname, and fileparse.
7082         (@EXPORT): Adjust.
7083         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
7084         Don't look for aclocal flags if we already know aclocal is not
7085         used.
7086         Move aclocal.m4t only if it exists.
7087         Reported by Ezra Peisach.
7089 2001-11-03  Akim Demaille  <akim@epita.fr>
7091         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
7092         passed on command line, defaulting to ./configure.ac if present.
7093         (&maybe_autoreconf, File::Find): Remove, unused.
7094         (&autoreconf): If autoconf is not used, don't try to trace.
7096 2001-11-02  Akim Demaille  <akim@epita.fr>
7098         * configure.ac: Bump to 2.52g.
7100 2001-11-02  Akim Demaille  <akim@epita.fr>
7102         Version 2.52f.
7104 2001-11-02  Akim Demaille  <akim@epita.fr>
7106         * config/config.guess, config/config.sub, doc/standards.texi:
7107         * config/lispdir.m4: Update from masters.
7108         * configure.ac: Bump to 2.52f.
7110 2001-11-02  Akim Demaille  <akim@epita.fr>
7112         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
7113         Don't run aclocal when aclocal.m4 is not from aclocal.
7114         From Ezra Peisach.
7115         Don't run libtoolize and gettextize if --install is not given.
7117 2001-11-01  Paul Eggert  <eggert@twinsun.com>
7119         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
7120         be invoked before _AS_LINENO_PREPARE.
7121         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
7122         than character ranges.
7124         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
7125         invoking AS_BASENAME.  Set the locale variables to 'C' if
7126         possible, as POSIX requires this to get the traditional
7127         behavior.
7128         * doc/autoconf.texi (Special Shell Variables): Describe the above.
7130 2001-10-31  Paul Eggert  <eggert@twinsun.com>
7132         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
7133         with {}, as that triggers a bug in Bash 2.05.
7135         (_AS_LINENO_PREPARE): Use Sed rather than
7136         Awk.  Fix the sed prepass to work even if there are multiple
7137         instances of $LINENO on the same line.  Do not substitute for
7138         other variables like $LINENOT.  Do not check file dates; such a
7139         check is unreliable on sufficiently fast machines, and removing
7140         the check makes the code simpler and more reliable.  Check for
7141         output and chmod failures.
7143         * doc/autoconf.texi (Special Shell Variables): Document
7144         the above.
7146 2001-10-31  Akim Demaille  <akim@epita.fr>
7148         * tests/Makefile.am (atconfig): Remove this target, Automake
7149         handles it now.
7151 2001-10-31  Akim Demaille  <akim@epita.fr>
7153         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
7154         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
7155         provided, while it is optional.
7156         * configure.ac: Adjust.
7158 2001-10-26  Paul Eggert  <eggert@twinsun.com>
7160         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
7161           lib/Autom4te/Struct.pm:
7162         Require Perl 5.005_03 instead of just 5.005, as some tests fail
7163         with 5.005_02.
7165         * doc/autoconf.texi (Special Shell Variables): Document some
7166         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
7168         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
7169         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
7170         eval $LINENO is not portable in practice.
7172 2001-10-24  Akim Demaille  <akim@epita.fr>
7174         * lib/Autom4te/General.pm (backname): New.
7176 2001-10-24  Akim Demaille  <akim@epita.fr>
7178         * m4/: Remove, merged into...
7179         * config/: here.
7181 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
7183         * doc/autoconf.texi (Shellology): Mention the problems with bash
7184         2.05's use of ANSI quoting in its `set' builtin.
7186 2001-10-22  Paul Eggert  <eggert@twinsun.com>
7188         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
7189         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
7190         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
7191         POSIX decided to standardize on the int flavor of strerror_r.
7192         Always do char* test, as there's no reason not to.
7193         Assign to a char* var, to catch strerror_r that returns int*.
7195         * doc/autoconf.texi (Particular Functions):
7196         Document the above changes.  Also, document the fact that
7197         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
7199         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
7201 2001-10-20  Akim Demaille  <akim@epita.fr>
7203         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
7204         the executable was missing from the log.
7206 2001-10-20  Akim Demaille  <akim@epita.fr>
7208         * lib/Autom4te/General.pm (&update_file): If destination is
7209         unchanged, remove the source.
7210         (&up_to_date_p): Don't be verbose, be debug.
7211         * bin/autoreconf.in: No longer support --m4dir.
7212         (&autoreconf): Display the full path of the configure.ac we are
7213         studying.
7214         Trace it only once.
7215         Be sure to honor --force with gettextize.
7216         Always run aclocal.
7217         * doc/autoconf.texi: Adjust.
7219 2001-10-20  Akim Demaille  <akim@epita.fr>
7221         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
7222         Remove, dead.
7223         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
7224         `intl' is already present, as it refuses unless --force.
7225         (&parse_args): Use -I, --include instead of the old Autoconf
7226         options.
7227         ($localdir, $autoconf_dir): Remove.
7228         (@include): New.
7229         (&maybe_autoreconf): New, to preserve $_ for File::Find.
7231 2001-10-19  Jens Petersen  <petersen@redhat.com>
7233         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
7234         * doc/autoconf.texi (Particular Programs): Likewise.
7236 2001-10-19  Akim Demaille  <akim@epita.fr>
7238         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
7239         file in @configure_input@.
7240         Don't mention `automatically' in addition to `generated'.
7241         * tests/torture.at (#define header templates): Adjust.
7243 2001-10-19  Akim Demaille  <akim@epita.fr>
7245         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
7246         comment, explain how to install automatic mode selection.
7247         From Russ Allbery.
7249 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
7251         * bin/autoreconf.in (autoreconf): Display the path to the
7252         configure.ac being studied.
7254 2001-10-18  Paul Eggert  <eggert@twinsun.com>
7256         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
7257         long, to work around a bug in the HP C compiler version HP92453-01
7258         B.11.11.23709.GP.
7260         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
7261         (AS_BASENAME_EXPR): New macro.
7262         (AS_BASENAME_SED): Do not assume GNU sed semantics.
7263         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
7264         and fall back on 'sed' only if the other two fail.  This makes
7265         AS_BASENAME act more like AS_DIRNAME.
7266         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
7267         contains white space.
7268         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
7269         Use AS_DIRNAME, since I think it's now DOS-friendly.
7270         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
7271         Allow "dirname //FOO" to return either / or //, as POSIX allows
7272         either behavior.
7274 2001-10-10  Akim Demaille  <akim@epita.fr>
7276         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
7277         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
7278         From Eric Sharkey.
7280 2001-10-10  Akim Demaille  <akim@epita.fr>
7282         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
7283         m4_define, since...
7284         (_AS_ECHO_N): AS_REQUIREs it.
7286 2001-10-10  Akim Demaille  <akim@epita.fr>
7288         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
7289         (AC_INCLUDES_DEFAULT): Move to...
7290         * lib/autoconf/headers.m4: here.
7291         * lib/autoconf/types.m4: Comment changes.
7292         * doc/autoconf.texi: Specify where the default includes are used
7293         in the macro prototypes.
7295 2001-10-09  Akim Demaille  <akim@epita.fr>
7297         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
7298         transition code.
7300 2001-10-08  Akim Demaille  <akim@epita.fr>
7302         * bin/autoreconf.in (&autoreconf): Remove debugging code.
7303         (&parse_args): Pass verbosity/debugging options to subtools when
7304         --debug, not when --verbose.
7305         * lib/autom4te.in (Autoreconf-preselections): New.
7306         (Autoconf): Use it.
7308 2001-10-08  Akim Demaille  <akim@epita.fr>
7310         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
7312 2001-10-08  Akim Demaille  <akim@epita.fr>
7314         * doc/autoconf.texi (autoreconf Invocation): Adjust.
7315         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
7317 2001-10-08  Akim Demaille  <akim@epita.fr>
7319         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
7320         (Syntax of the shell scripts): Don't.
7321         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
7322         bother with $force since...
7323         * lib/Autom4te/General.pm: does.
7325 2001-10-08  Akim Demaille  <akim@epita.fr>
7327         * bin/autoreconf.in: Rewrite in Perl.
7328         * configure.ac: Adjust.
7329         * lib/Autom4te/General.pm (&up_to_date_p): New.
7330         * bin/autom4te.in (&up_to_date_p): Use it.
7331         Rename as...
7332         (&up_to_date): this.
7334 2001-10-08  Akim Demaille  <akim@epita.fr>
7336         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
7337         (m4_list_cmp): Use $0 to reinvoke yourself.
7338         (m4_patsubsts): New.
7339         (m4_strip, m4_version_unletter): Use it.
7340         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
7342 2001-10-08  Akim Demaille  <akim@epita.fr>
7344         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
7345         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
7346         * lib/autoconf/types.m4, lib/autotest/general.m4,
7347         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
7348         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
7349         m4_bregexp, m4_bpatsubst, and m4_bmatch.
7350         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
7352 2001-10-08  Akim Demaille  <akim@epita.fr>
7354         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
7356 2001-10-08  Akim Demaille  <akim@epita.fr>
7358         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
7359         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
7360         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
7361         * tests/tools.at, tests/m4sh.at: Use it.
7362         * tests/m4sh.at: Don't rely on Autoconf macros.
7363         (DIRNAME_TEST): Also exercise the expr variant.
7364         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
7365         preferred M4sugar extension is now `.4s'.
7366         * tests/README: Remove.
7368 2001-10-08  Akim Demaille  <akim@epita.fr>
7370         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
7371         (m4_provide_if): this.
7372         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
7373         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
7374         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
7375         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
7377 2001-10-08  Akim Demaille  <akim@epita.fr>
7379         Use `add-log-current-defun-function' for ChangeLog creation.
7380         Suggested by Tom Tromey.
7382         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
7383         (autotest-mode): Adjust.
7384         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
7385         'comment-region onto `C-c ;'.
7386         Comments are `#', not `dnl'.
7387         (autoconf-current-defun): New.
7388         (autoconf-font-lock-keywords): Recognize `m4_defun'.
7390 2001-10-08  Akim Demaille  <akim@epita.fr>
7392         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
7393         * lib/m4sugar/m4sh.m4: here.
7394         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
7395         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
7396         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
7397         include handle the m4_pattern_*, no longer push the
7398         BODY diversion nor set the /bin/sh line, AS_INIT does it.
7399         * lib/autotest/general.m4 (AT_INIT): Likewise.
7400         * tests/base.at: Adjust the tests to use AS_INIT.
7401         * tests/tools.at (AT_DATA_FORBIDDEN): New.
7402         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
7403         Autoconf.
7405 2001-10-07  Paul Eggert  <eggert@twinsun.com>
7407         * doc/autoconf.texi (config.status Invocation):
7408         CONFIG_SHELL defaults to a shell that supports LINENO if available.
7410         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
7411         shell does not support LINENO, and if CONFIG_SHELL is unset or
7412         empty, and if we can find a shell that does support LINENO,
7413         then set CONFIG_SHELL to that shell and then re-execute
7414         ourselves with CONFIG_SHELL.
7416 2001-10-05  Paul Eggert  <eggert@twinsun.com>
7418         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
7419         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
7420         build of $(TESTSUITE).
7422 2001-10-05  Akim Demaille  <akim@epita.fr>
7424         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
7425         iff we are a bareword.
7426         Reported by Raja R Harinath.
7428 2001-10-05  Akim Demaille  <akim@epita.fr>
7430         * tests/m4sh.at (LINENO): New.
7431         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
7432         PATH_SEPARATOR before using it.
7433         Fix the absolute path case/esac pattern.
7434         Provide $0 as fallback for as_myself.
7435         Reported by Raja R Harinath.
7437 2001-10-05  Akim Demaille  <akim@epita.fr>
7439         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
7440         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
7442 2001-10-05  Akim Demaille  <akim@epita.fr>
7444         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
7445         (AS_SHELL_SANITIZE): here.  Use it.
7446         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
7447         From Paul Eggert.
7449 2001-10-04  Akim Demaille  <akim@epita.fr>
7451         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
7452         combination of Awk and sed to replace $LINENO.
7454 2001-10-02  Paul Eggert  <eggert@twinsun.com>
7456         * doc/autoconf.texi (Limitations of Builtins): You can't use
7457         "source"; it's not portable.  Remove confusing and
7458         somewhat-incorrect example involving "." and "/".
7460         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
7461         compatibility with POSIX shells.
7463 2001-10-02  Akim Demaille  <akim@epita.fr>
7465         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
7466         instead of exec'ing to preserve $0 and $@.
7468 2001-10-01  Akim Demaille  <akim@epita.fr>
7470         * tests/testsuite (AT_INIT) <at_pass_list>: New.
7471         Don't run twice the same test.
7473 2001-10-01  Akim Demaille  <akim@epita.fr>
7475         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
7476         No longer output the list of tests.
7477         <--list>: New option.
7478         <--full-help>: Remove.
7479         Complete the short/long options duality.
7480         Various small adjustments.
7482 2001-10-01  Akim Demaille  <akim@epita.fr>
7484         * doc/autoconf.texi: Use @kbd for user input.
7485         Always use `$' as shell prompt.
7487 2001-09-30  Paul Eggert  <eggert@twinsun.com>
7489         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
7490         Don't use nested parenthesization.  This patch was originally
7491         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
7492         but somehow it didn't get incorporated then.
7493         * doc/autoconf.texi (Limitations of Usual Tools):
7494         Clarify remark about sed and nested parenthesization.
7496         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
7497         Report an error if the size cannot be determined even though
7498         the type exists.
7499         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
7500         Check for `expr' arithmetic overflow, and for compilation failure,
7501         and invoke a new argument $4 if either is discovered.
7502         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
7503         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
7505 2001-09-28  Akim Demaille  <akim@epita.fr>
7507         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
7508         * m4/lispdir.m4: New.
7509         * aclocal.m4, configure.ac: Adjust.
7511 2001-09-28  Akim Demaille  <akim@epita.fr>
7513         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
7514         (AT_TESTED): this.
7515         (AT_INIT): More the wrapped section to where it will be expanded.
7516         Output `AT_tested' only when existing.
7517         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
7519 2001-09-27  Akim Demaille  <akim@epita.fr>
7521         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
7522         generates too many bug reports.
7524         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
7525         status when executing the ACTION-IF-FALSE.
7526         * tests/base.at (AC_TRY_*): Rename as...
7527         (AC_TRY_COMMAND): this.
7528         (AC_RUN_IFELSE): New.
7529         * tests/compile.at (Extensions, C keywords)
7530         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
7531         (Broken/missing compilers, AC_PROG_CPP with warnings)
7532         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
7533         * tests/c.at (Extensions, C keywords)
7534         (Broken/missing compilers, AC_PROG_CPP with warnings)
7535         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
7536         (AC_PROG_CPP requires AC_PROG_CC): here and...
7537         * tests/fortran.at (GNU Fortran 77): there.
7538         * doc/autoconf.texi (autoconf Invocation): Fix the example:
7539         AC_TRY_RUN is about compilation, not shell commands.
7540         (Test Programs): AC_TRY_RUN works as used to be advertised.
7542 2001-09-27  Akim Demaille  <akim@epita.fr>
7544         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
7545         Raja R Harinath:
7546         Be sure to detect when $LINENO always returns the same value.
7547         Look for the original script, basename($0) is certainly not
7548         enough.
7549         Pass the CLI arguments to `$as_me.lineno'.
7551 2001-09-25  Akim Demaille  <akim@epita.fr>
7553         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
7554         Be sure the close and reopen the LOG fd before and after using tee
7555         to extend the log.
7556         <at_tests_pattern>: Adjust to the new format of at_help_all.
7558 2001-09-23  Akim Demaille  <akim@epita.fr>
7560         * bin/autom4te.in (parse_args): There can be several invocations
7561         of --language now.
7563 2001-09-23  Akim Demaille  <akim@epita.fr>
7565         * doc/autoconf.texi (Top): Wrap in @ifnottex.
7567 2001-09-23  Akim Demaille  <akim@epita.fr>
7569         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
7570         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
7571         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
7572         builddir, buildpath, top_builddir, and top_buildpath.
7573         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
7574         the current directory.
7575         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
7576         variables *before* changing the current directory.
7577         Skip nonexistent dirs.
7578         * doc/autoconf.texi (Preset Output Variables): Document these
7579         variables.
7581         * lib/autotest/general.m4: Do not reset AT_victims.
7582         Don't compute at_srcdir nor at_top_srcdir.
7584         * tests/tools.at: Hence use top_srcdir.
7586         * tests/Makefile.am, tests/autoconf, tests/autoheader,
7587         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
7588         Remove.
7589         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
7590         * tests/wrapsh.in, tests/autoupdate.in: New.
7591         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
7592         * configure.ac: Build the position independent wrappers.
7594         * man/Makefile.am: Now that test wrappers are position
7595         independent, use them and drop dark envvar magic.
7597 2001-09-23  Akim Demaille  <akim@epita.fr>
7599         * doc/autoconf.texi (Common Shell Constructs): Rename as...
7600         (Programming in M4sh): this.
7601         Promote to @section.
7603 2001-09-23  Akim Demaille  <akim@epita.fr>
7605         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
7606         Pass $at_debug_args to the rerun test suite.
7607         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
7608         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
7609         From Paul Eggert.
7611 2001-09-23  Akim Demaille  <akim@epita.fr>
7613         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
7615 2001-09-23  Akim Demaille  <akim@epita.fr>
7617         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
7618         over-escaping.
7620 2001-09-23  Akim Demaille  <akim@epita.fr>
7622         * lib/Autom4te/General.pm (&debug): New.
7623         * bin/autom4te.in ($language): Move to...
7624         (parse_args): here.
7625         Handle --language in languages.
7626         * lib/autom4te.in (Automake-selections, Autoheader-selections)
7627         (Autoscan-selections): New.
7628         (Autoconf): Adjust.
7630 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
7632         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
7633         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
7634         to match current versions from CVS Automake.
7636 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
7638         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
7639         for $LINENO.
7641 2001-09-22  Akim Demaille  <akim@epita.fr>
7643         * lib/autoconf/autotest.m4: Create `package.m4'.
7644         * tests/Makefile.am (package.m4): Remove.
7646 2001-09-22  Akim Demaille  <akim@epita.fr>
7648         Rely on `$LINENO' when possible instead of `__oline__'.
7650         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
7651         `$LINENO' support replacement when not supported.
7652         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
7653         them explicitly to be sure they are not output before this section
7654         (via m4_require).  Cosmetic only.
7655         * lib/autoconf/c.m4, lib/autoconf/general.m4,
7656         * lib/autoconf/programs.m4: Replace all the occurrences of
7657         `__oline__' with `$LINENO'.
7658         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
7660 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
7662         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
7663         character (u: -> ue) in a code comment.
7664         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
7665         it works.
7667 2001-09-21  Akim Demaille  <akim@epita.fr>
7669         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
7670         Suggested by Jim Meyering.
7672 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7674         * lib/autoconf/programs.m4: Use extensions listed in
7675         $ac_executable_extensions when looking for programs.
7677 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7679         * lib/autoconf/general.m4: Fix a small Englisho.
7680         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
7681         setting up ac_dir_suffix and ac_top_builddir.
7682         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
7684 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7686         * doc/autoconf.texi (File System Conventions): Clarify the use of
7687         PATH_SEPARATOR.
7688         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
7689         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
7690         be used instead of ':'.
7691         * lib/autotest/general.m4: Replace occurrences of ':' in
7692         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
7694 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7696         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
7697         arguments.  Fixed a typo.
7699 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7701         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
7702         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
7704 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7706         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
7707         * bin/autoupdate.in: Ditto.
7708         * bin/autoheader.in: Reworded a few comments.
7709         * bin/autoconf.in: Reworded help text for a few options.
7710         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
7711         * bin/autoscan.in, bin/autoupdate.in: Ditto.
7713 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
7715         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
7716         already have $file).  Set output files to binary mode (helps avoid
7717         CR issues on DOSish systems).
7719 2001-09-19  Akim Demaille  <akim@epita.fr>
7721         * lib/autotest/general.m4: Englishoes.
7722         From Tim Van Holder and Alexey Mahotkin.
7724 2001-09-18  Paul Eggert  <eggert@twinsun.com>
7726         * doc/autoconf.texi (Common Shell Constructs): New node,
7727         documenting AS_DIRNAME.
7728         (Limitations of Usual Tools): Refer to it when discussing dirname.
7729         Also, update discussion of POSIX standard to reflect latest draft.
7731         * lib/autoconf/c.m4:
7732         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
7734         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
7735         Do not pass a first argument with leading '-'
7736         to expr, by parenthesizing initial integers that might be negative.
7738         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
7739         now merely checks whether it is an error to pass an argument
7740         to getpgrp.
7742         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
7743         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
7744         whether it is a (compile-time) error to pass an argument to
7745         getpgrp.  This simpler test supports the revised documentation,
7746         and is all that AC_FUNC_GETPGRP's users really need.
7748 2001-09-18  Akim Demaille  <akim@epita.fr>
7750         * doc/autoconf.texi (Limitations of Make) <$<>: New.
7752 2001-09-18  Akim Demaille  <akim@epita.fr>
7754         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
7755         `{}'.
7756         * lib/autotest/general.m4 (AT_INIT): Adjust.
7758 2001-09-18  Paul Wagland  <paul@wagland.net>
7760         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
7761         correctly.
7762         Add test for AS_BASENAME.
7763         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
7764         added test. It now correctly handles /1/2/3/, returning '3' not ''.
7765         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
7766         * tests/base.at: Fixed the expected responses. The old ones were
7767         one line out...
7768         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
7769         the documentation claims it should (and how it behaved in 2.13).
7771 2001-09-18  Akim Demaille  <akim@epita.fr>
7773         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
7774         the AC_CONFIG_COMMANDS invocation.
7775         This also solves the name clash problems.
7776         Don't set the package's ID.
7777         * lib/m4sugar/Makefile.am (version.m4): Revamp.
7778         No longer to be shipped.
7779         (version.in): Remove.
7780         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
7781         * lib/autoconf/status.m4: Adjust.
7782         Use `m4_PACKAGE_STRING'.
7783         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
7784         the only optional argument is the name of the test suite.
7785         Expect `package.m4' to define the package signature.
7786         * lib/autom4te.in (Autotest): Add `package.m4?'.
7787         * tests/Makefile.am (package.m4): New.
7788         * tests/suite.at: ifnames is a victim.
7790 2001-09-18  Akim Demaille  <akim@epita.fr>
7792         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
7793         AC_LIBSOURCE, AC_CONFIG_FILES.
7794         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
7795         program version string doesn't match the package's.
7796         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
7797         after `(cached)'.
7799 2001-09-17  Paul Eggert  <eggert@twinsun.com>
7801         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
7802         Allow expression to return any value that can fit into unsigned long
7803         (not int, as before).  Check for output errors.
7805 2001-09-17  Bruno Haible  <haible@ilog.fr>
7807         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
7808         Always include <stdio.h> and <stdlib.h>. Evaluate
7809         the expression in an extra function before these includes. Call
7810         fprintf "%d" only after ensuring the argument is of type 'int'.
7811         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
7813 2001-09-17  Paul Eggert  <eggert@twinsun.com>
7815         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
7816         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
7817         fatal errors, and AC_CHECK_LIB causes it to include libraries even
7818         when they don't exist.
7820         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
7821         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
7822         need it.
7824         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
7825         version with the version used by fileutils 4.1, except use
7826         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
7827         we don't need it.
7829         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
7831 2001-09-13  Akim Demaille  <akim@epita.fr>
7833         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
7834         _first_.
7835         Reported by Gerrit P. Haase.
7837 2001-09-13  Akim Demaille  <akim@epita.fr>
7839         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
7840         m4_defn'ing is valid.
7842 2001-09-13  Akim Demaille  <akim@epita.fr>
7844         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
7845         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
7846         Use it.
7848 2001-09-13  Akim Demaille  <akim@epita.fr>
7850         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
7851         m4_match.
7852         (m4_re_escape): New.
7853         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
7854         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
7855         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
7856         Likewise.
7857         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
7858         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
7859         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
7860         AT_tests_all for consistency.
7861         Set at_victims.
7862         (AT_VICTIMS): Similar to AT_KEYWORDS.
7863         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
7865 2001-09-13  Akim Demaille  <akim@epita.fr>
7867         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
7869 2001-09-13  Akim Demaille  <akim@epita.fr>
7871         * lib/autotest/general.m4 (AT_INIT): Create and remove
7872         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
7873         test suites can cohabit.
7875 2001-09-13  Akim Demaille  <akim@epita.fr>
7877         * tests/mktests.sh: Don't output banners for empty test files.
7879 2001-09-13  Akim Demaille  <akim@epita.fr>
7881         Test suites can be run independently of configure.
7883         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
7884         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
7885         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
7886         ECHO_N etc.
7887         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
7888         and at_c.
7889         * lib/autotest/general.m4: Use ECHO_*.
7891 2001-09-13  Akim Demaille  <akim@epita.fr>
7893         * bin/ifnames.in: Rewrite in Perl.
7894         * configure.ac: Don't look for AWK.
7895         * tests/tools.at (AWK portability): Remove.
7896         (Syntax of the shell scripts): Don't check ifnames.
7897         (AT_CHECK_PERL_SYNTAX): New.
7898         (Syntax of the Perl scripts): Check ifnames.
7899         * tests/ifnames: New.
7901 2001-09-13  Akim Demaille  <akim@epita.fr>
7903         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
7904         test group titles.
7905         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
7906         Remove all the other keywords.
7908 2001-09-10  Akim Demaille  <akim@epita.fr>
7910         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
7911         SETUP: no longer used.
7912         Support -k, --keywords.
7913         <at_help>: Be `no', `short', or `long'.
7914         <at_help_all>: New variable.
7915         (AT_KEYWORDS): New.
7916         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
7917         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
7918         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
7919         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
7920         No longer fill the HELP diversion.
7921         (AT_CLEANUP): Use them.
7922         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
7923         (m4_list_append): Remove.
7925         Spread a few keywords in the Autoconf test suite.
7927 2001-09-10  Akim Demaille  <akim@epita.fr>
7929         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
7930         PATH_SEPARATOR, let M4sh compute it.
7931         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
7932         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
7933         Move to...
7934         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
7935         Simplify when the path is not a literal.
7936         (AS_UNAME): Use it to report PATH.
7937         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
7938         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
7939         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
7940         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
7941         normalize the path, and to look for victims.
7942         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
7943         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
7945 2001-09-07  Akim Demaille  <akim@epita.fr>
7947         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
7948         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
7949         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
7950         related variables into `at_package_*'.
7951         * lib/autotest/general.m4 (AT_VICTIMS): New.
7952         (AT_INIT): Adjust for stand-alone/embedded test suites.
7953         (AS_MESSAGE_LOG_FD): Define and use it.
7954         * tests/suite.at (AT_VICTIMS): Use it.
7955         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
7956         at_version.
7958 2001-09-07  Akim Demaille  <akim@epita.fr>
7960         Move toward possibly stand-alone test suites.
7962         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
7963         in addition, it introduces useless differences in logs.
7964         (AT_INIT): Let atconfig and atlocal be both optional.
7965         Adjust PATH computation.
7966         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
7968 2001-09-07  Akim Demaille  <akim@epita.fr>
7970         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
7971         m4sugar/version.m4.
7973 2001-09-05  Akim Demaille  <akim@epita.fr>
7975         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
7976         to avoid GCC warnings.
7977         From Uwe Seimet.
7979 2001-09-05  Akim Demaille  <akim@epita.fr>
7981         * bin/autom4te.in: --language is -l, not -s.
7983 2001-09-05  Akim Demaille  <akim@epita.fr>
7985         Be ready to handle filenames as stupid as `dnl.at', for if even
7986         the maintainer is dumb enough to do that...
7988         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
7989         excellence in M4 quotation: consider `__file__' is active.
7991         And BTW, when invoking m4, pass the --include in the right order:
7992         the wrong one.
7994         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
7995         4m.
7997 2001-09-05  Akim Demaille  <akim@epita.fr>
7999         * lib/Autom4te/XFile.pm: New lib file.
8000         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
8001         * bin/autoheader.in: Use it.
8003 2001-09-05  Akim Demaille  <akim@epita.fr>
8005         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
8006         defined.
8008 2001-09-05  Akim Demaille  <akim@epita.fr>
8010         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
8011         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
8013         * bin/autoscan.in: Use `getopt' and `find_files' etc.
8014         Add -I, --include support.
8015         * doc/autoconf.texi (autoscan Invocation): Adjust.
8017 2001-09-05  Akim Demaille  <akim@epita.fr>
8019         CVS GNU M4 doesn't like `undefine(undefined)'.
8021         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
8022         New, extracted from main.
8023         Use IO::File wherever possible.
8024         (input.m4): Be constant, use -I instead of hard coding $tmp.
8025         Therefore be a quoted heredoc.
8026         Don't invoke `_au_disable', since ac was not loaded, but just
8027         `unm4.m4'.
8029 2001-08-31  Akim Demaille  <akim@epita.fr>
8031         Version 2.52d.
8033 2001-08-31  Akim Demaille  <akim@epita.fr>
8035         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
8036         previous patch.
8037         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
8039 2001-08-31  Akim Demaille  <akim@epita.fr>
8041         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
8042         serious problems handling heredocs in heredocs.
8043         Reported by Nicolas Joly.
8045 2001-08-31  Akim Demaille  <akim@epita.fr>
8047         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
8048         (Making testsuite Scripts): Update.
8050 2001-08-31  Akim Demaille  <akim@epita.fr>
8052         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
8054 2001-08-31  Akim Demaille  <akim@epita.fr>
8056         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
8057         (testsuite Scripts): There is no such thing as `atconfig.in'.
8058         And actually one diagram is missing: test suite runtime.
8060 2001-08-31  Akim Demaille  <akim@epita.fr>
8062         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
8063         inverse order.
8065 2001-08-31  Akim Demaille  <akim@epita.fr>
8067         * bin/autoupdate.in (@include): `installcheck' revealed the path
8068         to m4sugar was lacking!
8070 2001-08-31  Akim Demaille  <akim@epita.fr>
8072         * man/Makefile.am (.x.1): We really have to pass
8073         autom4te_perllibdir.
8075 2001-08-31  Akim Demaille  <akim@epita.fr>
8077         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
8078         debug scripts, in particular passing explicitly listed tests to
8079         run is stupid.
8081 2001-08-31  Akim Demaille  <akim@epita.fr>
8083         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
8084         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
8085         Use directly autom4te, not autoconf.
8086         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
8088 2001-08-31  Akim Demaille  <akim@epita.fr>
8090         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
8091         * bin/autoheader.in (%symbol): Strip arguments of macros.
8093 2001-08-31  Akim Demaille  <akim@epita.fr>
8095         * doc/autoconf.texi: Catch up -I, --include changes.
8097 2001-08-31  Akim Demaille  <akim@epita.fr>
8099         * bin/autom4te.in (&parse_args): Die on unknown languages.
8100         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
8101         need for autoconf.
8102         Promote --include over --macrodir and other obsolete options.
8104 2001-08-31  Akim Demaille  <akim@epita.fr>
8106         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
8107         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
8108         * bin/autom4te.in ($autoconf): Pass --force.
8109         `print $out' doesn't print `$_' but `$out'.
8110         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
8111         (autoheader): Pass --force since the test suite goes too fast for
8112         the time stamps.
8113         Adjust to the new autoheader messages.
8115 2001-08-31  Akim Demaille  <akim@epita.fr>
8117         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
8118         Check the completeness of the #template.
8119         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
8120         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
8121         invocation.
8123 2001-08-31  Akim Demaille  <akim@epita.fr>
8125         * lib/Autom4te/General.pm (&find_file, &update_file): New.
8126         * bin/autoupdate.in, bin/autoheader.in: Adjust.
8127         Drop AC_MACRODIR dead for real.
8128         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
8129         `autoheader: `config.hin' is created'.
8130         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
8132 2001-08-31  Akim Demaille  <akim@epita.fr>
8134         * bin/autoheader.in: Rewrite in Perl.
8135         * tests/autoheader: Adjust.
8137 2001-08-31  Akim Demaille  <akim@epita.fr>
8139         * bin/autoconf.in (--include, -I): New option.
8140         Map --localdir, --autoconf-dir onto it.
8141         Forward autom4te's options instead of interpreting them.
8142         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
8143         There is no such envvar since the inception of autom4te.cfg.
8144         * bin/autom4te.in (&parse_args): Uniquify `@include'.
8145         * bin/autoupdate.in: Adjust, and perform more control.
8146         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
8147         * tests/autoconf: Dittowise.
8149 2001-08-31  Akim Demaille  <akim@epita.fr>
8151         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
8152         * bin/autom4te.in (&find_file): Support `FILE?' standing for
8153         optionally `FILE'.
8154         Use -e, not -f, since /dev/null for instance is OK.
8155         (&parse_args): Adjust.
8156         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
8158 2001-08-31  Akim Demaille  <akim@epita.fr>
8160         * configure.ac: Also find tested executables in bin.
8161         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
8162         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
8163         installed peer executables, only PATH is allowed to resolve it.
8164         Pass `autoconf_dir' via options, not via invisible envvars.
8165         * lib/Autom4te/General.pm (&find_peer): Remove.
8166         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
8167         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
8168         * man/Makefile.am: Let help2man rely on PATH instead of trying to
8169         find the executables for it.
8170         * tests/Makefile.am: Major cleanup.  Too lazy to document...
8171         * tests/atlocal.in: Remove all the obscure envvar manipulations.
8172         We only need PERL.
8173         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
8174         indeed related to running the test suite, while passing
8175         --autoconf-dir and others is related to running non installed
8176         Autoconf executables.  So don't do that, leave it to...
8177         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
8178         * tests/autoscan: New.
8179         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
8180         refer to library files: rely on --language.
8182 2001-08-29  Akim Demaille  <akim@epita.fr>
8184         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
8185         s/--set/--language/.
8187 2001-08-29  Akim Demaille  <akim@epita.fr>
8189         * doc/autoconf.texi: Strip the @nodes.
8190         Suggested by Paul Eggert.
8191         (Initializing configure): Typo.
8193 2001-08-29  Akim Demaille  <akim@epita.fr>
8195         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
8196         Suggested by Paul Eggert.
8198 2001-08-29  Akim Demaille  <akim@epita.fr>
8200         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
8201         download in a tmp dir.
8203 2001-08-29  Akim Demaille  <akim@epita.fr>
8205         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
8206         case insensitive OSes out there :(
8207         From Tim Van Holder.
8209 2001-08-29  Akim Demaille  <akim@epita.fr>
8211         * lib/autom4te.in: New.
8212         * lib/Makefile.am (edit, autom4te.cfg): New.
8213         * bin/autom4te.in (BEGIN): Simplify.
8214         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
8215         (&load_configuration): New.  Use it.
8216         (&parse_args): Support --mode, --set, and --melt.
8217         * bin/autoconf.in: Simplify and adjust.
8218         * tests/Makefile.am (AUTOMAKE): Use --set.
8219         * tests/atlocal.in: Adjust.
8220         * BUGS: distcheck and check are weak.
8222 2001-08-29  Akim Demaille  <akim@epita.fr>
8224         * lib/autotest/general.m4: Use
8225                 foo=`(command) 2>/dev/null`
8226         not
8227                 foo=`command` 2>/dev/null
8228         (at-devnull): Rename as...
8229         (AT-devnull): this.
8230         (--clean): Remove AT-* files too.
8231         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
8232         Reported by Nicolas Joly.
8234 2001-08-28  Akim Demaille  <akim@epita.fr>
8236         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
8237         quotes inside single quotes.
8238         Reported by Nicolas Joly.
8240 2001-08-28  Kevin Ryde  <user42@zip.com.au>
8242         * doc/autoconf.texi (Function Portability): Mention C right shifts.
8244 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
8246         * lib/autotest/general.m4: Reword some messages.
8247         (AT_INIT): Check for the `times' builtin before using it.
8248         Support test ranges as arguments to the testsuite.
8249         Have -e imply -d as the help text suggested.
8251 2001-08-27  Akim Demaille  <akim@epita.fr>
8253         * Makefile.maint: Formatting changes.
8254         (do-po-update, po-update, cvs-update, update): New targets.
8255         (AMTAR): Remove.
8257 2001-08-27  Akim Demaille  <akim@epita.fr>
8259         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
8260         <at_cmd_line>: New.
8261         Pass it to debug-*.sh scripts.
8262         <AUTOTEST_PATH>: May contain absolute dir names.
8264 2001-08-27  Akim Demaille  <akim@epita.fr>
8266         * lib/autotest/general.m4 (AT_INIT): Log the command line.
8267         Support `VAR=VAL' as arguments.
8268         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
8269         may be set via the command line.
8271 2001-08-27  Akim Demaille  <akim@epita.fr>
8273         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
8274         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
8275         first the build dirs, then the src dirs.
8276         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
8278 2001-08-27  Akim Demaille  <akim@epita.fr>
8280         * lib/autotest/general.m4 (AT_INIT): Output the definition of
8281         at_data_files earlier.
8282         (--clean, -c): New option.
8283         * tests/Makefile.am: Use this option.
8285 2001-08-27  Akim Demaille  <akim@epita.fr>
8287         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
8288         `ac_top_builddir' to mimic Automake's vocabulary, which much more
8289         readable.
8290         Adjust callers.
8291         * doc/autoconf.texi (Configuration Actions): Document the vars
8292         available in commands.
8293         Emphasize the risks of collisions in init-cmds.
8295 2001-08-27  Akim Demaille  <akim@epita.fr>
8297         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
8298         (Initializing configure): this new node.
8300 2001-08-27  Akim Demaille  <akim@epita.fr>
8302         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
8304 2001-08-27  Akim Demaille  <akim@epita.fr>
8306         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
8307         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
8308         New file.
8309         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
8311 2001-08-27  Akim Demaille  <akim@epita.fr>
8313         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
8314         to...
8315         * lib/autoconf/autoheader.m4: this new file.
8316         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
8317         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
8318         Move to...
8319         * lib/autoconf/autoupdate.m4: this new file.
8321 2001-08-27  Akim Demaille  <akim@epita.fr>
8323         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
8324         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
8325         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
8326         -> ac_dir).
8327         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
8328         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
8330 2001-08-27  Akim Demaille  <akim@epita.fr>
8332         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
8333         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
8334         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
8335         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
8336         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
8337         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
8338         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
8339         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
8340         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
8341         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
8342         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
8343         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
8344         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
8345         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
8346         (_AC_OUTPUT_SUBDIRS): Move to...
8347         * lib/autoconf/status.m4: this new file.
8348         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
8349         * tests/Makefile.am, tests/suite.at: Adjust.
8351 2001-08-27  Akim Demaille  <akim@epita.fr>
8353         Automake 1.5.
8355         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
8356         (AMTAR): Help automake define it.
8357         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
8358         needed, 1.5 can have a macro and a target with the same name.
8359         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
8360         * m4/strip.m4: New.
8361         * m4/init.m4, m4/sanity.m4: Update.
8362         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
8363         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
8364         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
8365         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
8367 2001-08-27  Akim Demaille  <akim@epita.fr>
8369         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
8371         * lib/autoconf/version.in: Remove.
8372         * lib/m4sugar/version.in: New.
8373         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
8374         Adjust callers.
8375         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
8376         the name of the directory they're in, instead of the filename,
8377         since version.m4 is now in m4sugar, but m4_acversion must not be
8378         classified as an Autoconf macro.
8379         ($input_m4): Don't qualify the path to m4sugar.
8380         Rather, pass autoconf_dir to m4.
8381         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
8382         * tests/suite.at: Require 2.52c.
8384 2001-08-27  Akim Demaille  <akim@epita.fr>
8386         testsuite.log should include config.log.
8388         * lib/autotest/autotest.m4: New.
8389         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
8390         * tests/suite.at : Adjust.
8391         (AT_INIT): Log config.log.
8392         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
8393         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
8394         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
8395         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
8396         of config.log on traps.
8397         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
8398         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
8399         for config.status'.
8400         Open the log as soon as possible.
8401         Use the same log introduction as configure's.
8403 2001-08-22  Paul Eggert  <eggert@twinsun.com>
8405         * doc/autoconf.texi (Indices): New node.
8406         Move indices out of the top level menu and into this submenu.
8408 2001-08-22  Akim Demaille  <akim@epita.fr>
8410         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
8411         AC_TRY_COMMAND.
8412         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
8414 2001-08-22  Akim Demaille  <akim@epita.fr>
8416         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
8417         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
8418         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
8419         * lib/autoconf/programs.m4: here.
8420         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
8421         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
8422         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
8423         * lib/autoconf/programs.m4: here.
8424         (_AC_DECL_YYTEXT): Rename as...
8425         (_AC_PROG_LEX_YYTEXT_DECL): this.
8426         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
8427         * tests/Makefile.am, tests/suite.am: Adjust.
8429 2001-08-22  Akim Demaille  <akim@epita.fr>
8431         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
8432         Move to...
8433         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
8434         here.
8435         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
8436         * lib/autoconf/functions.m4: here.
8437         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
8438         (AH_CHECK_LIB): Move to...
8439         * lib/autoconf/libs: this new file.
8440         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
8441         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
8442         * lib/autoconf/libs.m4: here.
8443         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
8445 2001-08-22  Akim Demaille  <akim@epita.fr>
8447         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
8448         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
8449         (AC_SITE_LOAD): Better logging of config.site.
8451 2001-08-20  Akim Demaille  <akim@epita.fr>
8453         * configure.ac (AT_CONFIG): Fix the path.
8454         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
8455         can be used.
8457 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
8459         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
8460         program with AC_LANG_PROGRAM before feeding it to
8461         AC_COMPILE_IFELSE.  Cleanup grep usage.
8463 2001-08-20  Akim Demaille  <akim@epita.fr>
8465         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
8466         * NEWS, README, README-alpha, TODO, tests/README: This package is
8467         `Autoconf', not `autoconf' (the executable).
8469 2001-08-20  Akim Demaille  <akim@epita.fr>
8471         Info readers seem to need `Index' in the index node title :(
8473         * doc/autoconf.texi: Reverse the 2001-08-15 change which
8474         simplified index node names.
8476 2001-08-20  Akim Demaille  <akim@epita.fr>
8478         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
8479         arguments are not literals.
8480         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
8481         Specify the output variables, and macros defined.
8483 2001-08-20  Akim Demaille  <akim@epita.fr>
8485         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
8486         (Examining Syntax) <AC_TRY_COMPILE>
8487         (Examining Libraries) <AC_TRY_LINK>
8488         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
8489         their arguments.
8490         Reported by Werner Lemberg.
8492 2001-08-20  Akim Demaille  <akim@epita.fr>
8494         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
8495         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
8496         Load atlocal late enough to dump it in the log.
8497         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
8499 2001-08-20  Akim Demaille  <akim@epita.fr>
8501         * tests/torture.at (Configuring subdirectories): New test.
8502         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
8503         looking for.
8504         * m4/atconfig.m4: Be sure the let $[0] be expandable.
8505         (top_srcdir): Fix its computation.
8507 2001-08-20  Akim Demaille  <akim@epita.fr>
8509         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
8510         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
8511         test suite lives.
8512         Create `atconfig' automagically.
8513         Configure atlocal.in if present.
8514         * tests/atconfig.in: Remove.
8515         * tests/atlocal.in: New.
8516         * tests/Makefile.am: Adjust.
8518 2001-08-20  Akim Demaille  <akim@epita.fr>
8520         Huh!?!?!  There are still some user EOF tags used, which prevents
8521         their use in AC_CONFIG_COMMANDS for instance...
8523         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
8524         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
8525         `_CSEOF', or `_ATEOF', as appropriate.
8526         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
8527         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
8529 2001-08-20  Akim Demaille  <akim@epita.fr>
8531         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
8532         * tests/semantics.at, tests/tools.at, tests/torture.at:
8533         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
8535 2001-08-20  Akim Demaille  <akim@epita.fr>
8537         Autotest invokes M4sh's initialization.
8539         * lib/autotest/general.m4: Adjust the diversion names.
8540         (AT_INIT): Run AS_INIT.
8541         Use the BINSH diversion to invoke /bin/sh.
8542         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
8543         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
8545 2001-08-20  Akim Demaille  <akim@epita.fr>
8547         Let M4sh have its own diversions.
8549         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
8550         (_m4_divert(NOTICE)): Rename as...
8551         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
8552         (_m4_divert(HEADER-COMMENT)): these.
8553         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
8554         (_m4_divert(NOTICE)): New, for Libtool.
8555         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
8556         long ago with `_m4_divert(GROW)'.
8557         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
8559 2001-08-20  Akim Demaille  <akim@epita.fr>
8561         * tests/base.at, tests/compile.at, tests/foreign.at,
8562         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
8563         * tests/semantics.at, tests/suite.at, tests/tools.at,
8564         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
8566 2001-08-20  Akim Demaille  <akim@epita.fr>
8568         * bin/autom4te.in (handle_output): Handle @__@.
8570 2001-08-20  Akim Demaille  <akim@epita.fr>
8572         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
8573         * lib/autotest/general.m4: Adjust the license.
8575 2001-08-17  Paul Eggert  <eggert@twinsun.com>
8577         * doc/autoconf.texi (Function Portability): Mention snprintf,
8578         following up on a suggestion by Kevin Ryde.
8580 2001-08-17  Akim Demaille  <akim@epita.fr>
8582         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
8583         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
8585 2001-08-17  Akim Demaille  <akim@epita.fr>
8587         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
8588         `$0.log' as for projects where testsuite is in src, we'd have
8589         testsuite.log created in src.
8591 2001-08-17  Akim Demaille  <akim@epita.fr>
8593         * bin/autom4te.in (&parse_args): Recognize --normalize.
8595 2001-08-17  Akim Demaille  <akim@epita.fr>
8597         Start implementing the AC_CHECK_HEADER transition scheme.
8599         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
8600         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
8601         (AC_CHECK_HEADER): Use them.
8603 2001-08-17  Akim Demaille  <akim@epita.fr>
8605         * doc/autoconf.texi: Work around Texinfo buglets.
8606         (Transformation Rules): One example is enough, users are expected
8607         to have their brains on. And BTW, use DESTDIR.
8608         (dvar): New macro.  Use it.
8610 2001-08-17  Akim Demaille  <akim@epita.fr>
8612         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
8613         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
8614         looking for ChangeLogs.
8616 2001-08-17  Akim Demaille  <akim@epita.fr>
8618         * bin/autom4te.in: --normalize is a new option.
8619         * bin/autoconf.in: Use it.
8621 2001-08-17  Akim Demaille  <akim@epita.fr>
8623         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
8624         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
8626 2001-08-16  Paul Eggert  <eggert@twinsun.com>
8628         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
8629         start, not at end.
8631 2001-08-15  Akim Demaille  <akim@epita.fr>
8633         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
8634         Use it.
8636 2001-08-15  Akim Demaille  <akim@epita.fr>
8638         * doc/autoconf.texi (pr): New index.
8639         (prindex, findex): Use, merge, and output them.
8640         (Environment Variable Index, Output Variable Index)
8641         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
8642         (Autotest Macro Index): Rename as...
8643         (Environment Variables, Output Variables,Preprocessor Symbols)
8644         (Autoconf Macros, M4 Macros, Autotest Macros): these.
8645         * doc/install.texi: Use @command.
8646         (Environment Variables): Rename as...
8647         (Defining Variables): this.
8649 2001-08-15  Akim Demaille  <akim@epita.fr>
8651         * doc/autoconf.texi (Function Portability): sprintf's return
8652         value.
8653         From Kevin Ryde.
8655 2001-08-15  Akim Demaille  <akim@epita.fr>
8657         * Makefile.maint (CVS): New.
8658         (local-check): Run changelog-check. last.
8659         (alpha): Don't depend upon local-check, since...
8660         (cvs-dist): depends upon it.
8662 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
8664         * tests/Makefile.am: Use a clean-local rule to remove
8665         autom4te.cache (it's a directory, not a file.
8666         * Makefile.am: Ditto (but maintainer-clean-local).
8668 2001-08-15  Akim Demaille  <akim@epita.fr>
8670         * bin/autom4te.in (@m4_warning): New.
8671         (&handle_m4): Use it.
8672         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
8673         warnings are issued at each run.
8674         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
8675         is in the src tree.
8677 2001-08-15  Akim Demaille  <akim@epita.fr>
8679         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
8680         don't waste time running `autoupdate --version' works.
8681         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
8683 2001-08-13  Akim Demaille  <akim@epita.fr>
8685         * doc/autoconf.texi (ma): Rename this index as...
8686         (ac): this.
8688 2001-08-13  Akim Demaille  <akim@epita.fr>
8690         * Makefile.am: Remove dead code and dead comments.
8691         (pdf, html): New targets.
8692         * doc/autoconf.texi (Using Autotest): New chapter.
8693         * doc/Makefile.am (pdf): New targets.
8694         (CLEANFILES): Adjust.
8696 2001-08-13  Akim Demaille  <akim@epita.fr>
8698         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
8699         duration of the test suite.
8701 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
8703         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
8704         endianness for comparison instead of relying on AT_CHECK_ENV.
8706 2001-08-11  Paul Eggert  <eggert@twinsun.com>
8708         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
8709         to the INSTALL file.
8711 2001-08-11  Paul Eggert  <eggert@twinsun.com>
8713         * NEWS: The autoconf manual now is distributed under the terms
8714         of the GNU Free Documentation License.
8716         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
8717         Add an appendix "Copying This Manual" for the FDL.
8719         * doc/fdl.texi: New file, from
8720         <http://www.gnu.org/licenses/fdl.texi>.
8722         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
8724 2001-08-10  Paul Eggert  <eggert@twinsun.com>
8726         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
8727         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
8728         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
8729         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
8730         m4/sanity.m4, tests/README, tests/aclocal.m4,
8731         tests/atspecific.m4, tests/base.at, tests/compile.at,
8732         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
8733         tests/semantics.at, tests/suite.at, tests/tools.at,
8734         tests/torture.at: Add copyright notice.
8736         * tests/mktests.sh: Update year in copyright notice.
8738 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
8740         * tests/semantics.at (AC_C_BIGENDIAN): New test.
8742 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
8744         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
8745         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
8746         * doc/autoconf.texi (C Compiler Characteristics): Update
8747         documentation for AC_C_BIGENDIAN.
8749 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
8751         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
8752         magic values from an object file when cross-compiling.
8753         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
8755 2001-08-10  Akim Demaille  <akim@epita.fr>
8757         * bin/autom4te.in (&handle_output): Don't use `grep' with side
8758         effects.
8759         Suggested by Russ Allbery.
8761 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
8763         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
8764         current $prefix to the sub-configures.
8766 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
8768         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
8769         extension (needed on BeOS).  Reported by Guido van Rossum.
8771 2001-08-09  Akim Demaille  <akim@epita.fr>
8773         * bin/autom4te.in ($icache): Load it only if older than autom4te.
8775 2001-08-07  Akim Demaille  <akim@epita.fr>
8777         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
8778         removed.
8779         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
8780         No need to remove the files before and after the each test, before
8781         each test and at the end of the suite is enough.
8782         Display only the children `times', not the shell's.
8783         If the test failed or was skipped, at-times is not available.
8785 2001-08-07  Akim Demaille  <akim@epita.fr>
8787         Always produce testsuite.log, including when there are no
8788         failures.  This helps getting information on skipped tests, and
8789         duration of the tests.  Err, implement the latter btw.
8791         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
8792         Dump information on the first run of each test.
8793         (AT_CLEANUP): Create `at-times' containing the duration of the
8794         test group.
8796 2001-08-07  Akim Demaille  <akim@epita.fr>
8798         The use of `dumpstat' revealed that `len' was used although it
8799         should not.  m4_text_wrap was using it, but in the Autoconf world
8800         where it is legal.  Hence (i) test M4sh in its own world, not
8801         Autoconf's, and (ii), ahem, fix the bug :)
8803         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
8804         does not like `' instead of [].
8805         (AT_INIT): Forbid `^_?AT_'.
8806         And don't output such tokens.
8807         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
8808         `script.as', and `autom4te.cache'.
8809         Remove `empty' and `macro' which are no longer used.
8810         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
8811         * tests/m4sugar.at: Use it.
8812         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
8814 2001-08-07  Akim Demaille  <akim@epita.fr>
8816         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
8818 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
8820         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
8822 2001-08-04  Akim Demaille  <akim@epita.fr>
8824         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
8825         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
8826         AC_TRY_LINK.
8827         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
8828         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
8829         (AC_F77_MAIN): Likewise.
8831 2001-08-04  Akim Demaille  <akim@epita.fr>
8833         Don't rely on M4sugar outputting the patterns in files, since we
8834         might process the output _without_ running m4, hence without these
8835         files.
8837         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
8838         * bin/autom4te.in (@Request::includes): Remove, unused.
8839         (@Request::source): Rename as...
8840         (@Request::input): this.
8841         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
8842         (&handle_output): Fetch the patterns from the traces.
8843         `$forbidden' and `$allowed' are constant: use m//o.
8844         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
8845         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
8847 2001-08-04  Akim Demaille  <akim@epita.fr>
8849         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
8850         autoconf', i.e., in addition to caching traces, cache the output.
8852         * bin/autom4te.in (Request::cache): Rename as...
8853         (Request::id): this.
8854         ($cache, $icache, $tcache, $ocache): New.
8855         (&handle_m4): Save M4 output in the cache instead of $tmp.
8856         (&handle_output): Adjust.
8857         (&up_to_date_p): Check that the output cache is up to date too.
8858         (top level): Run `&handle_m4' iff force or the cache is invalid.
8859         Run `&handle_output' if the output cache is more recent.
8861 2001-08-04  Akim Demaille  <akim@epita.fr>
8863         * bin/autom4te.in ($force): New.
8864         (&parse_args, &print_usage): -f, --force is a new option.
8865         (&handle_output): CPP directives might have spaces after `#'.
8866         (&parse_args): The first file only can be frozen.
8868 2001-08-04  Akim Demaille  <akim@epita.fr>
8870         Don't let autom4te compute the `include' traces several times:
8871         first check that the trace cache file is up to date, and then
8872         compare its timestamp with that of the output.
8874         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
8875         the preamble.  Don't require 5.005 as Autom4te::General does it,
8876         and better yet (use `use', not `require'!).
8877         * lib/Autom4te/Struct.pm: Rename the last occurrences of
8878         Class::Struct as Autom4te::Struct.
8879         * lib/Autom4te/General.pm (File::stat): Use it.
8880         (&mtime): New, export it.
8881         * bin/autom4te.in: Use it.
8882         Declare `$req' is invalid if it is outdated.
8883         Don't declare it valid before saving it if something went wrong.
8885 2001-08-04  Akim Demaille  <akim@epita.fr>
8887         Autom4te shall not encode Autoconf data, and preselecting traces
8888         must be proposed to the users.
8890         * bin/autom4te.in (@required_trace): Remove.
8891         (@preselect): New.
8892         (&parse_args, &print_usage): -p, --preselect is a new option.
8893         (&up_to_date_p): Adjust.
8894         * bin/autoconf.in: Preselect some Autoconf macros.
8896 2001-08-04  Akim Demaille  <akim@epita.fr>
8898         * tests/tools.at (autoconf --trace: user macros): Check traces on
8899         macros invoked without arguments, and macros invoked with multiple
8900         lines arguments.
8902 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
8904         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
8905         arguments.
8907 2001-08-03  Akim Demaille  <akim@epita.fr>
8909         * bin/autoconf.in ($@): Work around the usual sh bug.
8910         From Nicolas Joly.
8912 2001-08-03  Akim Demaille  <akim@epita.fr>
8914         Clean up the handling of the M4 builtins tracing exception.
8916         * bin/autom4te.in (Request::request): Don't complete M4 builtins
8917         trace requests.
8918         (@m4_builtins): Rename as...
8919         (@m4_builtin): this.
8920         (%m4_builtin_alternate_name): New.
8921         (&parse_args): Complete the trace requests with alternate names.
8922         (&handle_traces): Hence no longer do it here.
8923         (&trace_requests): Remove, unused.
8925 2001-08-03  Akim Demaille  <akim@epita.fr>
8927         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
8928         m4_if, and m4_wrap.
8930 2001-08-03  Akim Demaille  <akim@epita.fr>
8932         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
8933         (m4_divert_pop): Dump the whole diversion stack when a diversion
8934         mismatch happens.
8935         * bin/autom4te.in (&handle_output): Remember of the first
8936         occurrence of a possibly undefined macro, not the last.
8937         Complain about the possibly undefined macros in the same order as
8938         the appear in the output.
8939         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
8940         * tests/tools.at (autoconf: forbidden tokens, basic)
8941         (autoconf: forbidden tokens, exceptions): No longer sort
8942         autoconf's stderr, as it is now deterministic.
8943         Check that `dnl' is caught.
8945 2001-08-01  Akim Demaille  <akim@epita.fr>
8947         * configure.ac: Bump to 2.52c.
8949 2001-08-01  Akim Demaille  <akim@epita.fr>
8951         Version 2.52b.
8953         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
8955 2001-08-01  Akim Demaille  <akim@epita.fr>
8957         Version 2.52a.
8959 2001-08-01  Akim Demaille  <akim@epita.fr>
8961         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
8962         `die'.
8963         (&END): New.
8964         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
8965         `END', as `Autom4te::General::END' will be triggered.
8966         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
8967         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
8968         system to run `mv', `rm', and `cmp'.
8970 2001-08-01  Akim Demaille  <akim@epita.fr>
8972         * lib/Autom4te/General.pm (&unique): New.
8973         * bin/autoscan.in (&output): Use it to issue trace requests once.
8975 2001-08-01  Akim Demaille  <akim@epita.fr>
8977         * lib/Autom4te/General.pm: New.
8978         * bin/autom4te.in (Autom4te::General): Use it.
8979         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
8980         (&find_configure_ac, &find_slave): Remove.
8981         * bin/autoscan.in: Likewise.
8982         * bin/autoupdate.in: Likewise.
8984 2001-08-01  Akim Demaille  <akim@epita.fr>
8986         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
8987         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
8988         * bin: here, new directory.
8989         * lib/Autoconf: Rename as...
8990         * lib/Autom4te: this, to please case insensitive junkie OSes.
8992 2001-08-01  Akim Demaille  <akim@epita.fr>
8994         * autom4te.in ($m4): Handle the --nesting-limit.
8995         * autoconf.in (M4): Remove.
8997 2001-08-01  Akim Demaille  <akim@epita.fr>
8999         * autoconf.in ($AWK): Remove, no longer used.
9000         * test/tools.at: Use AT_CHECK_AUTOCONF.
9001         (AWK portability): Remove, for autoconf no longer uses AWK.
9002         (Syntax of the Perl scripts): New.
9003         * configure.ac: autoconf no longer needs an AWK with a good
9004         regexp engine.
9005         Use a static test on AC_PACKAGE_VERSION.
9006         * autom4te.in (&up_to_date_p): Output depends on the arguments.
9007         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
9008         * tests/atconfig.in (PERL): New.
9010 2001-08-01  Akim Demaille  <akim@epita.fr>
9012         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
9013         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
9014         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
9015         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
9016         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
9017         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
9018         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
9019         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
9020         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
9021         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
9022         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
9023         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
9024         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
9025         * lib/autoconf/c.m4: here, new file.
9027         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
9028         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
9029         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
9030         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
9031         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
9032         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
9033         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
9034         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
9035         (AC_F77_FUNC): Move to...
9036         * lib/autoconf/fortran.m4: here, new file.
9038 2001-08-01  Akim Demaille  <akim@epita.fr>
9040         * acfunctions.m4: Rename as...
9041         * lib/autoconf/functions.m4: this.
9042         * acgeneral.m4: Rename as...
9043         * lib/autoconf/general.m4: this.
9044         * acheaders.m4: Rename as...
9045         * lib/autoconf/headers.m4: this.
9046         * aclang.m4: Rename as...
9047         * lib/autoconf/lang.m4: this.
9048         * acoldnames.m4: Rename as...
9049         * lib/autoconf/oldnames.m4: this.
9050         * acspecific.m4: Rename as...
9051         * lib/autoconf/specific.m4: this.
9052         * actypes.m4: Rename as...
9053         * lib/autoconf/types.m4: this.
9054         * autoconf.m4: Rename as...
9055         * lib/autoconf/autoconf.m4: this.
9057         * m4sugar.m4: Rename as...
9058         * lib/m4sugar/m4sugar.m4: this.
9059         * m4sh.m4: Rename as...
9060         * lib/m4sugar/m4sh.m4: this.
9062         * tests/atgeneral.m4: Rename as...
9063         * lib/autotest/general.m4: this.
9065         * acfunctions: Rename as...
9066         * lib/autoscan/functions: this.
9067         * acheaders: Rename as...
9068         * lib/autoscan/headers: this.
9069         * acidentifiers: Rename as...
9070         * lib/autoscan/identifiers: this.
9071         * aclibraries: Rename as...
9072         * lib/autoscan/libraries: this.
9073         * acmakevars: Rename as...
9074         * lib/autoscan/makevars: this.
9075         * acprograms: Rename as...
9076         * lib/autoscan/programs: this.
9078 2001-08-01  Akim Demaille  <akim@epita.fr>
9080         * doc/autoconf.texi: Moving/deleting open files is not portable.
9081         Portability issues for `.' (source), and more information about sed.
9083 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
9085         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
9086         which has a special meaning and is not a reference to libibmil.a.
9087         Reported by Matteo Frigo.
9089 2001-07-25  Pavel Roskin  <proski@gnu.org>
9091         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
9092         output.
9094 2001-07-25  Akim Demaille  <akim@epita.fr>
9096         * autoconf.in: Try to define the variables before using them.
9097         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
9098         instead of `$perllibdir'.
9099         * tests/atconfig.in ($autom4te_perllibdir): Export it.
9101 2001-07-25  Akim Demaille  <akim@epita.fr>
9103         * autoconf.in (ac_LF_and_DOT): Remove, unused.
9105 2001-07-24  Akim Demaille  <akim@epita.fr>
9107         Let autoconf use autom4te for traces.
9109         * autoconf.in ($task, task trace): Remove, merely pass --trace to
9110         autom4te.
9111         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
9112         (Because I found no way for autom4te to accept `-').
9113         * autom4te.in (&Request::request): Beware of M4 builtins.
9114         (END): Don't try to remove the content of an empty dir.
9115         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
9116         (&handle_output): Set a default value to `$forbidden'.
9117         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
9118         ($autoconf): Pass --debug and --verbose.
9119         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
9120         cache.
9122 2001-07-24  Akim Demaille  <akim@epita.fr>
9124         Let autoconf use autom4te to create configure.
9126         * autoconf.in ($automate): New var.
9127         (task script): Use autom4te.
9128         * autom4te.in (File::Spec): Use it.
9129         (&find_file): New.
9130         (&parse_args): --warning is -W, not -w.
9131         Find the top level files.
9132         (&handle_m4): Pass the warnings flags.
9133         Don't report verbosely m4's failures, unless requested.
9134         (&handle_output): Don't complain for forbidden tokens in comments.
9135         Be sure to report all the forbidden tokens within a single line.
9136         (&trace_format_to_m4): Preserve `$_'.
9137         (&handle_traces): Sort the output macros.
9138         (&up_to_date_p): Find the files before trying to get its time stamp.
9140 2001-07-24  Akim Demaille  <akim@epita.fr>
9142         * Makefile.am: Ship, build and install Autom4te.
9143         (SUBDIRS): Add lib.
9144         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
9145         * configure.in: Require Perl.
9146         * man/autom4te.in: New.
9148 2001-07-19  Paul Eggert  <eggert@twinsun.com>
9150         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
9151         example, rather than (exit 1); exit (which isn't portable).
9153 2001-07-18  Akim Demaille  <akim@epita.fr>
9155         Version 2.52.
9157 2001-07-18  Akim Demaille  <akim@epita.fr>
9159         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
9160         was run, while they are needed also when it is expanded.
9161         Reported by Nicolas Joly.
9163         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
9164         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
9165         AC_F77_DUMMY_MAIN being expanded.
9167 2001-07-18  Akim Demaille  <akim@epita.fr>
9169         * configure.in: Bump to 2.51a.
9171 2001-07-17  Akim Demaille  <akim@epita.fr>
9173         Version 2.51.
9175 2001-07-17  Akim Demaille  <akim@epita.fr>
9177         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
9178         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
9180 2001-07-17  Akim Demaille  <akim@epita.fr>
9182         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
9183         used.  Well, then use the prototypes when you can, and runtime as
9184         a last resort.
9185         Reported by Artur Frysiak
9187         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
9188         (AC_FUNC_GETPGRP): Use it.
9189         First try to compile with 0-ary or 1-ary calls.
9191 2001-07-17  Akim Demaille  <akim@epita.fr>
9193         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
9194         replacement type.
9195         From Paul Eggert.
9197 2001-07-17  Akim Demaille  <akim@epita.fr>
9199         * Makefile.maint: Sync. with cppi 1.10.
9201 2001-07-17  Akim Demaille  <akim@epita.fr>
9203         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
9204         AC_F77_DUMMY_MAIN has been run.
9205         From Pavel Roskin and Steven G. Johnson.
9207 2001-07-17  Akim Demaille  <akim@epita.fr>
9209         * configure.in: Rename as...
9210         * configure.ac: this.
9212 2001-07-17  Akim Demaille  <akim@epita.fr>
9214         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
9215         rules.
9216         From Marc Espie.
9217         * Makefile.maint (release-archive-dir): Rename as...
9218         (release_archive_dir): this, so that it can be specialized in
9219         Makefile.
9221 2001-07-14  Akim Demaille  <akim@epita.fr>
9223         * configure.in: Bump to 2.50d.
9225 2001-07-14  Akim Demaille  <akim@epita.fr>
9227         Version 2.50c.
9228         * Makefile.maint (alpha): Typo.
9230 2001-07-14  Akim Demaille  <akim@epita.fr>
9232         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
9234 2001-07-14  Akim Demaille  <akim@epita.fr>
9236         * config/config.guess, config/config.sub, config/texinfo.tex
9237         * doc/standards.texi, doc/make-stds.texi: Update.
9239 2001-07-14  Akim Demaille  <akim@epita.fr>
9241         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
9243 2001-07-14  Akim Demaille  <akim@epita.fr>
9245         * Makefile.maint (maintainer-check): Rename as...
9246         (maintainer-distcheck): this.
9247         (changelog-check, static-check): New.
9248         Use them.
9250 2001-07-14  Kevin Ryde  <user42@zip.com.au>
9252         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
9253         for CXX is g++, not gcc.
9255 2001-07-14  Akim Demaille  <akim@epita.fr>
9257         * doc/autoconf.texi (Files): New subsection.
9259 2001-07-14  Akim Demaille  <akim@epita.fr>
9261         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
9262         of...
9263         (Generic Compiler Characteristics): this.
9264         (C++ Compiler): New subsection.
9266 2001-07-14  Akim Demaille  <akim@epita.fr>
9268         * autoscan.in: Use IO::File.
9269         Adjust all the routines to use it.
9270         ($log): New file (autoscan.log).
9271         (output): Dump detailed logs into $log, and a shortened version to
9272         stderr.
9273         (&scan_makefile): Refine the regexp catching tokens in the code.
9274         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
9275         and the `configure.ac' checking feature.
9277 2001-07-12  Akim Demaille  <akim@epita.fr>
9279         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
9280         Reported by Michael Elizabeth Chastain.
9282         * autoconf.in: Refuse such AWK.
9283         * configure.in: Likewise.
9284         * Makefile.am (acversion.m4): Do not use move-if-change this file
9285         has dependencies.
9286         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
9288 2001-07-10  Jens Petersen  <petersen@redhat.com>
9290         * autoscan.in (&scan_makefile): Improve programs regexp to parse
9291         things like "g++", "file.c" and "some-conf" as tokens.
9292         (&scan_file): Match C++ files extensions.
9293         If the filename extension is C++ then ask for c++.
9295 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
9297         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
9298         AC_TRY_LINK_FUNC, to check whether defining a dummy
9299         main-like routine is needed for linking with F77 libs.
9301 2001-07-05  Pavel Roskin  <proski@gnu.org>
9303         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
9304         after using break.
9305         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
9306         linking.
9308 2001-07-05  Akim Demaille  <akim@epita.fr>
9310         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
9311         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
9312         Makes' lives.
9313         Reported by Nicolas Joly.
9315 2001-07-04  Akim Demaille  <akim@epita.fr>
9317         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
9318         up.
9319         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
9320         warnings from compilers.
9321         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
9322         for all the compilers, not only GNU.  Hence move from here...
9323         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
9325 2001-07-04  Akim Demaille  <akim@epita.fr>
9327         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
9328         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
9329         AC_COMPILE_IFELSE.
9331 2001-07-04  Akim Demaille  <akim@epita.fr>
9333         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
9334         the ``strings.h'' change claimed below.
9336 2001-07-04  Akim Demaille  <akim@epita.fr>
9338         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
9340 2001-07-04  Akim Demaille  <akim@epita.fr>
9342         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
9343         strings.h if usable with string.h.
9344         Suggested by Paul Eggert.
9346 2001-07-04  Akim Demaille  <akim@epita.fr>
9348         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
9349         From Jens Petersen.
9351 2001-07-03  Akim Demaille  <akim@epita.fr>
9353         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
9354         etc. in the log.
9356 2001-07-03  Akim Demaille  <akim@epita.fr>
9358         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
9359         compiler, not the preprocessor.
9360         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
9361         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
9362         the right thing.
9363         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
9364         earlier if there are.
9366 2001-07-03  Akim Demaille  <akim@epita.fr>
9368         * autoscan.in ($initfile): Remove.
9369         (&find_file): Rename as...
9370         (&scan_file): this.
9371         Immediately scan the current file, instead of gathering them, and
9372         later having them handled by &scan_files.
9373         (&scan_files): Merely invoke Find::File.
9374         Adjust.
9376 2001-07-02  Akim Demaille  <akim@epita.fr>
9378         * autoscan.in: Formatting changes, matching the invocation order.
9379         (File::Find): Use it instead of Perl 4's `find.pl'.
9380         (&wanted): Rename as...
9381         (&find_file): this.
9383 2001-07-01  Pavel Roskin  <proski@gnu.org>
9385         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
9386         break in the argument to AC_TRY_LINK_FUNC.
9387         (AC_F77_MAIN): Remove conftest* after using break in the
9388         argument to AC_TRY_LINK.
9390 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
9392         Add alternate 'main' routine detection for linking C/C++ with Fortran,
9393         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
9395         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
9396         dummy alternate main is required even if the user provides her own
9397         'main'.
9398         (AC_F77_MAIN): New macro to detect whether it is possible to
9399         provide an alternate 'main' function name, using the 'main' from
9400         the Fortran libraries.
9401         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
9402         cross-language link tests can be performed successfully.
9403         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
9404         after $LIBS, for consistency; this should be the general rule since
9405         the user may want to link to Fortran libraries that require $FLIBS.
9406         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
9408 2001-06-29  Pavel Roskin  <proski@gnu.org>
9410         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
9411         at-stdout and at-stderr instead of removing the newline
9412         from the echo output, which is not guaranteed to work.
9414 2001-06-28  Jens Petersen  <petersen@redhat.com>
9416         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
9417         confdefs.h when non-zero.
9419 2001-06-28  Akim Demaille  <akim@epita.fr>
9421         * configure.in: Bump to 2.50c.
9423 2001-06-26  Akim Demaille  <akim@epita.fr>
9425         Version 2.50b.
9427 2001-06-26  Akim Demaille  <akim@epita.fr>
9429         Version 2.50a.
9431 2001-06-25  Pavel Roskin  <proski@gnu.org>
9433         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
9434         argument, AUTOCONF-FLAGS.
9435         * tests/mktests.sh (update_exclude_list): Add
9436         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
9437         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
9438         AC_FUNC_WAIT3 with "-W no-obsolete".
9440 2001-06-25  Akim Demaille  <akim@epita.fr>
9442         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
9444 2001-06-25  Akim Demaille  <akim@epita.fr>
9446         * autoscan.in (%macro): Now maps from word to list of macros.
9447         (&init_tables): Die when a word which is already handled by
9448         explicit macros is mapped to the default macro.
9449         (&print_unique): Remove, inlined in...
9450         (&output_kind): here.
9451         (File::Basename): Use it.
9452         (&output): Sort the CONFIG_FILES.
9453         * acheaders: Normalize.
9454         * acfunctions: Likewise.
9456 2001-06-25  Akim Demaille  <akim@epita.fr>
9458         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
9459         characteristics in the logs.
9460         Suggested by Mo DeJong.
9462 2001-06-24  Akim Demaille  <akim@epita.fr>
9464         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
9465         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
9466         * doc/autoconf.texi (Autoconf 2.13): New section.
9468 2001-06-24  Akim Demaille  <akim@epita.fr>
9470         * autoconf.in (Task traces): Separate the error messages from the
9471         traces to improve robustness.
9473 2001-06-23  Akim Demaille  <akim@epita.fr>
9475         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
9476         three as failures are unlikely, and speed matters.
9478 2001-06-23  Akim Demaille  <akim@epita.fr>
9480         * doc/autoconf.texi (Redefined M4 Macros): New.
9482 2001-06-23  Akim Demaille  <akim@epita.fr>
9484         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
9485         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
9486         5.3.
9488 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
9490         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
9491         config.status targets to after the evaluation of the INIT-CMDS.
9492         Double quote config.status targets (used to be single quoted).
9494 2001-06-23  Akim Demaille  <akim@epita.fr>
9496         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
9497         Check the content of the created file.
9498         Check the ./config.status command line invocation.
9500 2001-06-23  Akim Demaille  <akim@epita.fr>
9502         * tests/foreign.at (Libtool): Reject prehistoric versions.
9504 2001-06-23  Akim Demaille  <akim@epita.fr>
9506         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
9507         preexisting files matching a.*.
9509 2001-06-23  Akim Demaille  <akim@epita.fr>
9511         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
9512         stderr.
9513         * doc/autoconf.texi (AC_ARG_VAR): Update.
9515 2001-06-21  Akim Demaille  <akim@epita.fr>
9517         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
9518         precious variables have changed.
9519         * tests/torture.at (AC_ARG_VAR): Adjust.
9521 2001-06-21  Akim Demaille  <akim@epita.fr>
9523         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
9524         but some sed choke on multiple `;', and other tools (e.g.,
9525         Automake), include the separator themselves.
9527         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
9529 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
9531         * doc/autoconf.texi (Functions Portability): Rename as...
9532         (Function Portability): this.
9533         (Function Portability): Document potential problems with unlink().
9535 2001-06-19  Paul Eggert  <eggert@twinsun.com>
9537         * NEWS, doc/autoconf.texi: Document quadrigraphs.
9539 2001-06-18  Akim Demaille  <akim@epita.fr>
9541         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
9543 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
9545         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
9546         (_AC_FUNC_VFORK): this.
9547         Remove AC_DEFINEs and don't guess cross-compilation values.
9548         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
9549         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
9550         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
9551         vfork doesn't work.
9552         Guess values if cross-compiling, but warn.
9553         * acfunctions: Add AC_FUNC_FORK.
9554         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
9555         and vfork appropriately.
9557 2001-06-18  Akim Demaille  <akim@epita.fr>
9559         * doc/autoconf.texi (Functions Portability): New section.
9561 2001-06-18  Akim Demaille  <akim@epita.fr>
9563         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
9564         in $M4.
9565         Suggested by Andreas Schwab.
9567 2001-06-18  Akim Demaille  <akim@epita.fr>
9569         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
9570         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
9571         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
9572         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
9573         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
9574         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
9575         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
9576         the converse).
9578 2001-06-18  Akim Demaille  <akim@epita.fr>
9580         * doc/autoconf.texi (ms): New index.
9581         (Macro Index): Rename as...
9582         (Autoconf Macro Index): this.
9583         (M4 Macro Index): New appendix.
9584         (Programming in M4): New chapter.
9585         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
9586         (Quoting): Rename as...
9587         (M$ Quotation): this.
9588         Be part of `Programming in M4).
9590 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
9592         * tests/torture.at (AC_ARG_VAR): Set variables and export them
9593         in separate statements for compatibility with Tru64 v5.1.
9595 2001-06-17  Akim Demaille  <akim@epita.fr>
9597         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
9598         current values of the precious variables, not the previously
9599         cached values.
9600         Pass precious variables which are set to config.status.
9601         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
9602         * tests/torture.at (AC_ARG_VAR): New.
9604 2001-06-15  Paul Eggert  <eggert@twinsun.com>
9606         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
9607         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
9608         and explain why and how to replace them.
9609         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
9610         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
9612 2001-06-15  Akim Demaille  <akim@epita.fr>
9614         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
9615         Reported by Bruno Haible.
9617         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
9618          (_AC_ARG_VAR_PRECIOUS): to here.
9620 2001-06-15  Pavel Roskin  <proski@gnu.org>
9622         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
9623         an unused pointer use cast to this type and `if' statement to
9624         avoid warnings from the compiler.
9625         (AC_HEADER_TIME): Likewise.
9626         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
9627         in `if' statement to avoid warnings from the compiler. Declare
9628         ac_aggr static to avoid the need to initialize it.
9630 2001-06-14  Akim Demaille  <akim@epita.fr>
9632         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
9633         Macros'.
9635 2001-06-13  Akim Demaille  <akim@epita.fr>
9637         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
9638         Suggested by Alexander Mai.
9640 2001-06-13  Akim Demaille  <akim@epita.fr>
9642         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
9643         sys/types.h and sys/stat.h, and check for them.
9645 2001-06-13  Akim Demaille  <akim@epita.fr>
9647         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
9648         INCLUDES.
9650 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9652         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
9653         succeeds and only try adding libdnet upon a failure.
9655 2001-06-12  Akim Demaille  <akim@epita.fr>
9657         * autoscan.in (&output_kind): Output the comment only if it exists.
9658         (%kind_comment): Add entry for `programs'.
9659         (&output_programs): Use &output_kind.
9660         (&output_functions, &output_identifiers, &output_headers)
9661         (&output_programs): Inline, and remove.
9663 2001-06-12  Akim Demaille  <akim@epita.fr>
9665         * autoscan.in (%kind_comment): New.
9666         (output_kind): New.
9667         (output_functions, output_identifiers, output_headers): Use it.
9669 2001-06-12  Akim Demaille  <akim@epita.fr>
9671         * autoscan.in (&print_unique): Take `$kind' and `$word' as
9672         arguments, to factor indirections into `%macro' and `%used'.
9673         (%generic_macro): Fix a typo.
9675 2001-06-12  Akim Demaille  <akim@epita.fr>
9677         * aclibraries: New.
9678         * autoscan.in (@kinds): Add `libraries'.
9679         Use `@kinds' instead of hard coded lists.
9680         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
9681         Remove, replaced by...
9682         (%used): this.
9684 2001-06-12  Akim Demaille  <akim@epita.fr>
9686         * autoscan.in (%functions_macros %headers_macros)
9687         (%identifiers_macros %programs_macros %makevars_macros): Remove,
9688         replaced by...
9689         (%macro): New.
9691 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
9693         * aclang.m4 (AC_NO_EXECUTABLES): Override
9694         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
9696 2001-06-11  Akim Demaille  <akim@epita.fr>
9698         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
9699         trailing new line.
9700         Reported by Andreas Schwab.
9702 2001-06-11  Akim Demaille  <akim@epita.fr>
9704         * Makefile.am, Makefile.maint: Typos.
9706 2001-06-09  Akim Demaille  <akim@epita.fr>
9708         * doc/autoconf.texi (Here-Documents): New section, gathering
9709         documentation about here-documents.
9710         Use `href', not `uref', and other changes.
9712 2001-06-09  Akim Demaille  <akim@epita.fr>
9714         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
9715         chapter.
9717 2001-06-09  Akim Demaille  <akim@epita.fr>
9719         * doc/autoconf.texi (Limitations of Builtins): Complete the
9720         description of the here-docs penalties with Alexandre Oliva's
9721         explanations.
9723 2001-06-01  Paul Eggert  <eggert@twinsun.com>
9725         * doc/autoconf.texi: Talk about here documents and speedups.
9726         Do not use "echo" on arbitrary strings.
9727         Spell "here-documents" consistently with the standard.
9729 2001-06-09  Akim Demaille  <akim@epita.fr>
9731         * doc/autoconf.texi (Concept Index): Introduce it.
9732         Regenerate the menus.
9734 2001-06-09  Akim Demaille  <akim@epita.fr>
9736         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
9737         * config/prev-version.txt: New.
9738         * config/move-if-change: New, for GNU libc.
9740 2001-06-06  Pavel Roskin  <proski@gnu.org>
9742         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
9744 2001-06-06  Akim Demaille  <akim@epita.fr>
9746         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
9747         properly when $1 is not a literal.
9748         Fixes PR Autoconf/187, reported by Bram Moolenaar.
9750 2001-06-06  Akim Demaille  <akim@epita.fr>
9752         Invoking AC_COPYRIGHT before AC_INIT fails.
9754         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
9755         * acgeneral.m4 (_m4_divert(VERSION_FSF))
9756         (_m4_divert(VERSION_USER)): New.
9757         (AC_COPYRIGHT): $2 is the diversion to use.
9758         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
9759         (AC_INIT): Remove dead comments as now it's commutative.
9761 2001-06-06  Akim Demaille  <akim@epita.fr>
9763         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
9764         PR autoconf/187.
9766 2001-06-05  Akim Demaille  <akim@epita.fr>
9768         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
9769         can be empty.
9770         `*dir' variables cannot be NONE.
9771         Reported by Mark Kettenis.
9773 2001-06-05  Paul Eggert  <eggert@twinsun.com>
9775         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
9777 2001-06-04  Akim Demaille  <akim@epita.fr>
9779         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
9780         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
9781         (AC_TR_SH): Move as...
9782         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
9783         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
9784         (AS_TR_SH): these.
9785         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
9786         (_AS_TR_SH_PREPARE): New.
9787         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
9788         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
9790 2001-06-02  Akim Demaille  <akim@epita.fr>
9792         * Makefile.am (.m4.m4f): Pass the options first.
9793         Fixes PR autoconf/182.
9795 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
9797         GNU getopt, when POSIXLY_CORRECT does not permute options and
9798         arguments.  So pass the options first.
9799         Fixes PR autoconf/184.
9801         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
9802         (run_m4): Remove files.
9803         (run_m4f): Remove.
9804         Update remainder of script to use them.
9805         (for warning in): Do not use a literal comma as it will not be
9806         split by IFS.
9808 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
9810         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
9811         Fortran compilers to check.
9812         (_AC_PROG_F77_V): Add '-###' as a possible option to print
9813         information on library and object files.
9814         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
9815         to check.
9817 2001-06-02  Akim Demaille  <akim@epita.fr>
9819         * autom4te.in (Request::@request): Declare with `vars', not `my',
9820         as it prevents updates via `do FILENAME'.
9822 2001-06-02  Akim Demaille  <akim@epita.fr>
9824         * configure.in (standards_texi): Remove, dead code.
9826 2001-06-02  Akim Demaille  <akim@epita.fr>
9828         * autom4te.in: New.
9830 2001-06-02  Pavel Roskin  <proski@gnu.org>
9832         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
9833         for signals other than 0 - exit with code 1.
9834         * m4sh.m4 (AS_TMPDIR): Likewise.
9835         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
9836         * autoheader.in: Likewise.
9837         * autoreconf.in: Likewise.
9838         * tests/torture.at (Signal handling): New test for the above.
9840 2001-06-01  Akim Demaille  <akim@epita.fr>
9842         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
9843         message.
9845 2001-05-31  Akim Demaille  <akim@epita.fr>
9847         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
9848         Add copyright and comments.
9849         * acheaders: Add stdint.h.
9850         Suggested by Paul Eggert.
9852 2001-05-31  Akim Demaille  <akim@epita.fr>
9854         * atgeneral.m4 (AT_INIT): Use $SHELL.
9855         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
9857 2001-05-31  Akim Demaille  <akim@epita.fr>
9859         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
9860         stdint.h.
9861         From Paul Eggert and Lars Hecking.
9863 2001-05-31  Akim Demaille  <akim@epita.fr>
9865         * tests/base.at: Adjust line numbers in error messages.
9867 2001-05-31  Akim Demaille  <akim@epita.fr>
9869         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
9870         to emit the bangshe line.
9871         Reported by David Carter.
9873 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
9875         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
9876         Fortran (95) compilers to check.
9878 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
9880         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
9881         Macro Archive URL.
9883 2001-05-23  Pavel Roskin  <proski@gnu.org>
9885         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
9886         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
9887         (AC_PROG_CXXCPP): Likewise.
9889 2001-05-22  Akim Demaille  <akim@epita.fr>
9891         * config: New directory.
9892         * configure.in: AC_CONFIG_AUX_DIR it.
9893         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
9895 2001-05-22  Akim Demaille  <akim@epita.fr>
9897         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
9898         * autoupdate.in: Specify the Emacs mode.
9899         * acversion.m4.in: Rename as...
9900         * acversion.m4: this.
9901         * tests/Makefile.am (CLEANFILES): More garbage.
9903 2001-05-22  Akim Demaille  <akim@epita.fr>
9905         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
9906         Rename as...
9907         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
9908         these.
9910 2001-05-21  Akim Demaille  <akim@epita.fr>
9912         * configure.in: Bump to 2.50a.
9914 -----
9916 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9918 This file is part of GNU Autoconf.
9920 GNU Autoconf is free software; you can redistribute it and/or modify
9921 it under the terms of the GNU General Public License as published by
9922 the Free Software Foundation; either version 2, or (at your option)
9923 any later version.
9925 GNU Autoconf is distributed in the hope that it will be useful,
9926 but WITHOUT ANY WARRANTY; without even the implied warranty of
9927 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9928 GNU General Public License for more details.
9930 You should have received a copy of the GNU General Public License
9931 along with autoconf; see the file COPYING.  If not, write to
9932 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
9933 Boston, MA 02110-1301, USA.