* doc/autoconf.texi: Remove unused words from word list.
[autoconf/tsuna.git] / ChangeLog
blob6ac8afb7f65156716b38fd7b89399c8354ba0175
1 2006-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3         * doc/autoconf.texi: Remove unused words from word list.
4         * .x-sc_prohibit_atoi_atof, .x-sc_space_tab, .x-sc_sun_os_names,
5         .x-sc_trailing_space: New files.
7         * doc/standards.texi: Sync from gnulib.
9         * NEWS, doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): Mark
10         `LIBOBJDIR' as experimental.
12         * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): MSYS `ln -s' fails
13         with a target directory; it's internally implemented as `cp'
14         anyway, but since Autoconf advertises the possibility to use
15         a target directory when LN_S is `ln -s', we need to find out.
16         Reported by Rolf Ebert <rolf.ebert.gcc@gmx.de> against MSYS,
17         analyzed by Keith Marshall <keith.marshall@total.com>.
19         * THANKS: Update.
21 2006-04-10  Paul Eggert  <eggert@cs.ucla.edu>
23         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Just output
24         confdefs.h as-is.  In general, if it has backslash-newline or the
25         like, then it doesn't work either to sort or to remove empty
26         lines.
28 2006-04-09  Stepan Kasal  <kasal@ucw.cz>
30         * tests/Makefile.am (AUTOCONF_FILES): Fix typo in the comment.
32 2006-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
34         * lib/autom4te.in (Automake-preselections): Preselect
35         _AM_SUBST_NOTMAKE.
37 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
39         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Use '\'' for an
40         apostrophe within a single-quoted string, as this is the usual
41         tradition and is easier to read than '"'"'.  Don't rely on the
42         shell treating "$/" like '$/'.  Use a more-consistent indenting
43         style for the trap.
45 2006-04-09  Eric Blake  <ebb9@byu.net>
47         * tests/autotest.at (Backquote command substitution),
48         (Multiline backquote command substitution): Remove mistaken
49         AT_NO_CMDSUBST from the 2006-03-14 patch, which was meant to be
50         applied...
51         (Parenthetical command substitution, Multiline parenthetical
52         command substitution): here.
54 2006-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56         Import macros from gnulib (often changing their name).
58         * NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
59         New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
60         AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
61         AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
62         AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
63         AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
64         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
65         AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
66         AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
67         AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
68         The manual mentions Gnulib more prominently.
69         * doc/autoconf.texi (Gnulib): New node.
70         (Pointers): Add Gnulib URL.
71         (Particular Functions): Alphabetize.  Add AC_FUNC_STRTOLD.
72         (Generic Functions): Add AC_CHECK_FUNCS_ONCE.  Refer to new
73         Gnulib section.
74         (Particular Headers): Add AC_HEADER_ASSERT.  For stdbool.h,
75         suggest a #define rather than a typedef for _Bool, and mention
76         Gnulib rather than trying to substitute stdbool code.
77         (Generic Headers): Add AC_CHECK_HEADERS_ONCE.
78         (Generic Declarations): Add AC_CHECK_DECLS_ONCE.
79         (Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
80         AC_STRUCT_DIRENT_D_TYPE.
81         (Particular Types): Mention stdint.h and inttypes.h as standard
82         headers too.
83         Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
84         AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
85         AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
86         AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
87         AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
88         (C Compiler): Move AC_C_LONG_DOUBLE to ...
89         (Obsolete Macros): here.  Under AC_LONG_DOUBLE, mention
90         AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
91         (Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
92         (Coding Style).  Don't mention m4_expand_once.
93         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
94         AC_TYPE_LONG_DOUBLE_WIDER.  Now obsolete.
95         * lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
96         (AC_CHECK_FUNCS): Use it.
97         (AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
98         (AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
99         * lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
100         * lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
101         (AC_HEADER_ASSERT): New macro.
102         (AC_HEADER_STDBOOL): Don't assume "#error" works.
103         Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
104         Catch a bug in an HP-UX C compiler.
105         * lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
106         * lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
107         (AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
108         (AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
109         (AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
110         (_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
111         New macros.
113         * tests/mktests.sh (ac_exclude_list, au_exclude_list): Do not
114         use /^foo|bar$/, it does not mean /^(foo|bar)$/.
116 2006-04-08  Stepan Kasal  <kasal@ucw.cz>
118         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Fix the wording
119         of the warning introduced by the 2001-08-28 change.
121 2006-04-08  Stepan Kasal  <kasal@ucw.cz>,
122             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
124         * lib/autoconf/general.m4 (AC_CACHE_SAVE): All `ac_cv_env_foo'
125         variables shall be overriden by the cache.
126         * tests/torture.at (AC_ARG_VAR): Test also with a first value
127         that contains braces.
129 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
131         Revert the patch from 2006-04-01 and only improve
132         _AS_DETECT_BETTER_SHELL:
134         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not optimize; do not
135         skip nonexistent directories.
136         (_AS_DETECT_BETTER_SHELL): The optimization is moved here--try
137         only shell candidates which exist.
138         (AS_UNAME): No need to give three parameters to _AS_PATH_WALK.
139         * lib/autotest/general.m4 (AT_INIT): No need to give three
140         parameters to _AS_PATH_WALK.
142 2006-04-07  Stepan Kasal  <kasal@ucw.cz>,
143             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
145         * bin/autoupdate.in (handle_autoconf_patches): Change the way we
146         distinguish m4sugar macros.
147         * tests/tools.at (autoupdating with aclocal and m4_include):
148         New test.  Bug reported by Gary V. Vaughan <gary@gnu.org>,
149         test case by Noah Misch <noah@cs.caltech.edu>.
151 2006-04-07  Stepan Kasal  <kasal@ucw.cz>
153         Revert my change from 2006-03-17, in other words:
154         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Insert BIN_SH=xpg4
155           and DUALCASE=1.
156         (AS_SHELL_SANITIZE): Remove DUALCASE=1.
157         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Say that
158           it is set.
160 2006-04-07  Eric Blake  <ebb9@byu.net>
162         * doc/autoconf.texi (Programming in M4sh): Document that
163         AS_MKDIR_P exits the script on failure.
164         * lib/autotest/general.m4: Remove redundant AS_ERROR.
166 2006-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
168         * config/elisp-comp, config/install-sh, config/mdate-sh,
169         config/missing, config/mkinstalldirs: Sync from Automake.
171         * lib/Autom4te/FileUtils.pm, lib/Autom4te/Struct.pm: Sync
172         from Automake.
174         * doc/make-stds.texi: Sync from gnulib.
176 2006-04-06  Eric Blake  <ebb9@byu.net>
178         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Inside cache
179         check, s/ac_exeext/ac_cv_exeext/.  Fixes regression introduced
180         2006-04-01.
182 2006-04-06  Stepan Kasal  <kasal@ucw.cz>,
183             Eric Blake  <ebb9@byu.net>,
184             Paul Eggert  <eggert@cs.ucla.edu>,
185             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
187         * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
188         whether `set' quotes correctly: redirect stderr of the tested
189         `set', and use a subshell, for Ultrix; use `sed' instead of
190         `grep' for zsh `set' which may write binary output; match only
191         at the beginning of a line, to avoid false positives.
192         In order to avoid false positives by unrelated variables with
193         multiline content, put the dump algorithm in a subshell and
194         unset all variables containing newlines (except some which are
195         special to the shell).  Warn about cache variables that are
196         unset.
198 2006-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
200         * config/config.guess, config/config.sub, config/texinfo.tex:
201         Sync from upstream.
203         * tests/mktests.sh: Reword comments.
205         * tests/mktests.sh: Only skip internal macros starting with
206         `_AC_' or `__AC_'.  Noted by Stepan Kasal.
207         Update exclusion lists for the test suite to this end:
208         (AC_ARG_VAR): Do test this now.
209         (AC_SEARCH_LIBS, AC_REPLACE_FUNCS): Need an argument.
210         (AC_LINKER_OPTION): Remove (renamed to _AC_LINKER_OPTION).
211         (AC_LIST_MEMBER_OF): Likewise (renamed to _AC_LIST_MEMBER_IF).
212         (AC_LINK_FILES): Obsoleted since (and thus AU_DEFUN'ed).
214         * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
215         shell issue with double-quoted command substitutions of native
216         commands.
217         Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
218         Marshall.
220         * Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
221         no file matches the glob, discard the warning, set `nullglob'.
222         (syntax-check): Likewise.
223         (sc_cast_of_x_alloc_return_value): Likewise.
224         (sc_cast_of_alloca_return_value, sc_error_exit_success)
225         (sc_prohibit_jm_in_m4, .re-list, sc_unmarked_diagnostics)
226         (m4-check): Likewise.
227         (sc_system_h_headers): Do not print rule on execution.
228         (sc_tight_scope): Do not fail for non-existing `src' directory.
229         (sc_changelog): Skip the Copyright footer.
230         * lib/autoconf/lang.m4: Remove trailing space.
232         * lib/autoconf/status.m4: More replacements to
233         <tab><space> where this makes sense.
235 2006-04-06  Stepan Kasal  <kasal@ucw.cz>
237         * tests/Makefile.am (maintainer-check-posix):
238           s/POSIXLY_CORRECTLY/POSIXLY_CORRECT/
240         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Append TAGS to
241           ac_config_<foo>s again, sometimes normalized, sometimes not.
242         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS):
243         (AC_CONFIG_COMMANDS): Do not do so here.
244         (_AC_CONFIG_REGISTER_DEST): Double quote the tags in macros _AC_LIST_TAGS
245           and_AC_LIST_TAG_COMMANDS; fixes another regression introduced by the
246           2005-07-25 rewrite.  Noticed by Noah Misch.
248         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
249           _AC_PRESERVE_HELP_ORDER, ...
250         (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
252         * lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
253           inside m4_expand_once; it is redundant.
255         * lib/autoconf/general.m4 (_AC_INIT_HELP): Remove the broken support
256           for --help from Cygnus `configure.'
258 2006-04-06  Paul Eggert  <eggert@cs.ucla.edu>
260         * doc/autoconf.texi (C Compiler): Warn about #error.  Follows up
261         on a patch proposed by Ralf Wildenhues.
263 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
265         * lib/autoconf/status.m4: Replace <space>''<tab> with
266         <tab><space> where this makes sense.
268 2006-04-05  Howard Chu  <hyc@highlandsun.com>  (trivial change)
269             Noah Misch  <noah@cs.caltech.edu>
271         * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): New macro.
272         (AC_ARG_ENABLE, AC_ARG_WITH): Adjust.
273         * doc/autoconf.texi (Help Formatting): New node.
274         * NEWS: Announce AC_PRESERVE_HELP_ORDER.
276 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
278         * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
279         lib/autoconf/specific.m4, lib/autoconf/status.m4,
280         lib/autoconf/types.m4, lib/autotest/general.m4,
281         tests/mktests.sh, tests/torture.at: White space cleanup:
282         remove some SPACE before TAB, or add quoting ('' or @&t@).
284         * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
286         * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
288 2006-04-05  Eric Blake  <ebb9@byu.net>
290         * lib/autotest/general.m4 (AT_INIT): Prep AT_*_all, so that an
291         empty test suite works.
292         * tests/autotest.at (Empty test suite): Remove xfail.
294 2006-04-05  Noah Misch  <noah@cs.caltech.edu>
296         * lib/autoconf/status.m4 (_AC_CONFIG_FOOS): Do not append normalized
297         TAGS to ac_config_<foo>s.
298         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Do so here.
299         (AC_CONFIG_COMMANDS): Append NAME to ac_config_commands without
300         normalizing it, consistent it with previous releases.
301         * tests/torture.at (Macro calls in AC_CONFIG_COMMANDS tags): New test.
303 2006-04-05  Paul Eggert  <eggert@cs.ucla.edu>
305         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR, AS_DIRNAME_EXPR):
306         Use simplified args that Eric Blake originally suggested.
308 2006-04-04  Paul Eggert  <eggert@cs.ucla.edu>
310         * tests/mktests.sh: Don't use 'cat'; just read the files directly.
311         Prefer 'sort -u' to 'sort | uniq'.  Filter data before sorting it.
312         Use 'comm' rather than N instances of grep; this also fixes a bug
313         whereby substrings were incorrectly matched, causing us to not
314         generate tests for AC_F77_NAME_MANGLING and AC_FUNC_LSTAT.
315         (exclude_list): Exclude empty macros.
316         (ac_exclude_list): Exclude AC_INCLUDES_DEFAULT.
318         Use awk rather than grep -E or egrep, to avoid
319         portability problems with regular expressions containing newlines.
320         (exclude_list, ac_exclude_list, au_exclude_list, ac_exclude_script):
321         Switch from grep to awk syntax.
322         (ac_exclude_script): Renamed from ac_exclude_egrep.
323         (au_exclude_script): Renamed from au_exclude_egrep.
325 2006-04-04  Noah Misch  <noah@cs.caltech.edu>
327         * lib/autoconf/general.m4 (_AC_INIT_HELP): Only `configure.in' evidences
328         a subdirectory subject to Cygnus `configure'.
329         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
331         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Omit the bug
332         report request when we have no AC_PACKAGE_BUGREPORT.
334 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
336         * THANKS: Update.
338         * tests/mktests.sh: Update copyright year in the header of the
339         generated files.
341         * lib/autoconf/c.m4 (AC_C_INLINE): Do not skip cleanup code.
342         (AC_C_RESTRICT): Likewise.  Furthermore, add a function with a
343         typedef'ed restricted pointer, to catch a compiler bug on
344         HP-UX 11.x, and fix warnings so it passes with -Werror.
345         (_AC_PROG_CC_C99): Likewise.
346         Reported by Albert Chin <china@thewrittenword.com>.
347         * tests/mktests.sh: Do not skip AC_C_INLINE, AC_C_RESTRICT.
349 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
351         * bin/autoscan.in (subdirs): New global.
352         (scan_file): Prune directories with configure{,.{ac,in,gnu}}.
353         (output): Emit AC_CONFIG_SUBDIRS as needed.
354         * tests/autoscan.at (autoscan): Remove XFAIL.
356 2006-04-03  Noah Misch  <noah@cs.caltech.edu>
358         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use AC_MSG_NOTICE.
360 2006-04-03  Eric Blake  <ebb9@byu.net>
362         * THANKS: Add myself.
364 2006-04-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
366         * lib/autotest/general.m4 (AT_INIT): Add `at_testdir' to pointer
367         to log, point to testsuite output tree.
369 2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
371         * NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
372         * doc/autoconf.texi (Function Portability): Mention that C++
373         has trouble with 'exit'.
374         (Guidelines): Test programs shouldn't use 'exit'.
375         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
376         Remove; all uses removed.
377         (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
378         Return from 'main' instead of calling 'exit'.
379         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
380         (_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
381         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
382         (AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
383         (AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
384         (AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
385         (_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
386         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
387         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
388         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
389         * tests/compile.at: Likewise.
391 2006-04-02  Pavel Roskin  <proski@gnu.org>
393         * doc/autoconf.texi (AC_PATH_X): Update per 2005-08-26 change.
395 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
397         Clean up _AC_COMPILER_EXEEXT* macros.
399         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't try to
400           detect exeext, it will be done by _AC_COMPILER_EXEEXT_O; just set
401           ac_file to the name of the default output filei and call
402           _AC_COMPILER_EXEEXT_WORKS.  Move the definition of ac_files and the
403           initial `rm' of the candidate files...
404         (_AC_COMPILER_EXEEXT): ... here and simplify them.  Moreover, use
405           the same list in subsequent `rm' calls, and for the temporary
406           redefinition of ac_clean_files; call _AC_COMPILER_OBJEXT at the end,
407           and don't call the other _AC_COMPILER_EXEEXT_* macros directly, use...
408         (_AC_COMPILER_EXEEXT_TESTS): ... this new macro.
409         (_AC_COMPILER_EXEEXT_O): Don't export ac_cv_exeext, it's not needed (or
410           no longer needed) by libtool.  Make it a cache check.
411         (_AC_COMPILER_EXEEXT_CROSS): Remove the comment, it was obviously
412           copied here by mistake.
413         (AC_NO_EXECUTABLES): Redefine _AC_COMPILER_EXEEXT_TESTS, not
414           _AC_COMPILER_EXEEXT.
415         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Do not call
416           _AC_COMPILER_OBJEXT directly.
417         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
419 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
421         * lib/m4sugar/m4sh.m4 (_AS_DIRNAME_PREPARE): New macro.
422         (AS_DIRNAME): Use it.
423         (_AS_PREPARE): Add _AS_DIRNAME_PREPARE.
425         * tests/*.at: Remove the generated ones.
427 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
429         * lib/autotest/general.m4 (AT_INIT): Don't optimize the first PATH walk.
431 2006-04-01  Eric Blake  <ebb9@byu.net>
433         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Optimize nonexistent
434         directories, unless optional third argument supplied.
435         (AS_UNAME): Don't optimize PATH walk.
437         * lib/Autom4te/Struct.pm, lib/autoconf/c.m4: s/non-existent/nonexistent/
439 2006-04-01  Eric Blake  <ebb9@byu.net>
440         and Stepan Kasal  <kasal@ucw.cz>
442         * lib/m4sugar/m4sh.m4: Sort sections as implied by the comments,
443         and fix some typos.
445 2006-04-01  Noah Misch  <noah@cs.caltech.edu>
447         * lib/autoconf/general.m4 (_AC_INIT_VERSION): Emit script name and
448         Autoconf version number despite a zero- or one-argument AC_INIT.
450         * bin/autoreconf.in (parse_args): Multiple -v send --verbose to
451         subordinate tools.
452         * lib/Autom4te/General.pm (getopt): Make -v and -d incremental.
453         * doc/autoconf.texi (autoreconf Invocation): Document it.
455         * doc/autoconf.texi: Use `Cygwin', `MinGW', and `license' consistently.
456         Append LocalWords so ispell-buffer passes cleanly.  Spelling fixes.
458 2006-04-01  Eric Blake  <ebb9@byu.net>
460         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Allow use in shell lists.
461         * lib/autotest/general.m4: Be tolerant of existing directory when
462           rm failed to remove it.
464 2006-04-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
466         * bin/autoupdate.in: Redefine m4_location so that warnings print
467         the correct lines of the input file by subtracting..
468         (_au__first_line): ..this new definition.
470         * lib/autoconf/general.m4 (AC_COMPILE_CHECK): Prefer
471         AC_MSG_CHECKING over obsolete AC_CHECKING in autoupdated code.
472         Remove stray newline in output.
473         (AC_FOREACH): AU_DEFUN this as literal for autoupdate, and also
474         AC_DEFUN this for autoconf, including the obsoletion diagnose.
475         Fixes autoupdating of code where the replacement output contains
476         m4sugar macros.
477         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
478         * tests/mktests.sh (ac_exclude_list): Add AC_FOREACH.
479          (au_exclude_list): Add AC_LANG_SAVE.
480         * tests/tools.at: Several new tests for all of this.
481         * doc/autoconf.texi (Obsoleting Macros): Give a hint about the
482         hairy details.
483         The AC_LANG_SAVE issue was reported against Libtool by
484         Dalibor Topic <robilad@kaffe.org>, and against Autoconf 2.57 by
485         Kristian Kvilekval <kris@cs.ucsb.edu>.
487 2006-04-01  Stepan Kasal  <kasal@ucw.cz>
489         * bin/autoupdate.in: Handle m4 builtins and m4sugar macros together--
490           switch all of them on and of when necessary.  Fixes the bug when
491           m4sugar macros (e.g., m4_define) were expanded after the first
492           automatic update (e.g., after AC_PREREQ or AC_INIT).
494 2006-03-31  Paul Eggert  <eggert@cs.ucla.edu>
496         * doc/autoconf.texi (Programming in M4sh): Sharpen the descriptions
497         of AS_BASENAME and AS_DIRNAME.  Reported by Stepan Kasal.
499         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): Handle ///, ////, etc.
500         correctly.  Problem reported by Eric Blake.
501         (_AS_EXPR_PREPARE): Detect Tru64 expr bug.  Problem reported by
502         Ralf Wildenhues.
504 2006-03-30  Paul Eggert  <eggert@cs.ucla.edu>
506         * doc/autoconf.texi (Programming in M4sh, Limitations of Usual Tools):
507         Tighten up the basename/dirname wording.
509 2006-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
511         * Makefile.maint (sc_texi_notab): New check: do not use TABs
512         in texinfo files outside of verbatim environments.
513         (syntax-check-rules): Update.
514         * doc/autoconf.texi (Configuration Headers): Conform to it.
516 2006-03-30  Chris Pickett <cpicke@cs.mcgill.ca>  (tiny change)
518         * doc/autoconf.texi (autoreconf Invocation): Mention that -I for
519           aclocal cannot be given on the command line.
521 2006-03-29  Paul Eggert  <eggert@cs.ucla.edu>
523         * doc/autoconf.texi (Programming in M4sh): Mention AS_BASENAME.
524         Give an example for AS_DIRNAME instead of referring to Posix..
525         (File System Conventions): Put discussion of // versus / here, and
526         modernize it a bit.
527         (Limitations of Usual Tools): Add basename.  Remove verbiage
528         after dirname, since it got moved to the above sections.
529         All this was inspired by a patch proposed earlier by Eric Blake.
531 2006-03-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
533         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Quote
534         `$0' to protect against spaces.
535         * lib/autotest/general.m4 (AT_INIT): Likewise.
536         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise, for
537         `$0', $as_me.
539 2006-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
541         * bin/autoscan.in: The value of find_configure_ac should be
542         checked for existence, so we don't barf over a nonexisting
543         configure.ac.  Reported by Laurence Darby <ldarby@tuffmail.com>.
545 2006-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
547         * bin/autoupdate.in: Fix some typos.
549 2006-03-21  Stepan Kasal  <kasal@ucw.cz>
551         * doc/autoconf.texi (Installation Directory Variables): Fix typo.
553         * lib/autoscan/autoscan.list: Refreshed.
555 2006-03-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
557         * tests/local.at (AT_CHECK_ENV): Ignore AC_SUBSTed Objective C
558         and Erlang related variables.
560         * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
561         (_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
562         (AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
563         (AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
564         (AC_LANG_BOOL_COMPILE_TRY(Objective C))
565         (AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
566         (AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
567         (_AC_PROG_OBJC_G): New macros.
568         (_AC_ARG_VAR_CPPFLAGS): Adjusted.
569         * doc/autoconf.texi (Objective C Compiler): New node.
570         (Preset Output Variables): Document OBJCFLAGS.
571         (Language Choice): Document `Objective C' language.
572         (Fortran Compiler): Fix typo.
573         * NEWS: Updated.
574         Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
576 2006-03-20  Stepan Kasal  <kasal@ucw.cz>
578         * doc/autoconf.texi (Default Includes): Fix typo
579           s/AC_HEADERS_STDC/AC_HEADER_STDC/
580         (Limitations of Usual Tools): s/unwriteable/unwritable/
581         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT):
582           Fix typos in the comments.
584 2006-03-17  Stepan Kasal  <kasal@ucw.cz>
586         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
587           Factor out the warning to...
588         (_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
589         * tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
590         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
592         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Do not special
593           case `ac_delim' when writing the sed script.
595         * lib/m4sugar/m4sh.m4 (AS_BOURNE_COMPATIBLE): Removed BIN_SH=xpg4,
596           moved DUALCASE=1 ...
597         (AS_SHELL_SANITIZE): ... here.
598         * doc/autoconf.texi (Special Shell Variables) <BIN_SH>: Do not say
599           that it is set.
601         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Quote the parameter of
602           AC_SUBST.
603         (_AC_PATH_PROG): Store the result to VARIABLE.
604         (AC_PATH_PROG): No need to set VARIABLE again.
606         * tests/local.at (AT_CHECK_MACRO_CROSS): New macro, creates two tests:
607           the first one is usual AT_CHECK_MACRO test, the second one checks
608           that the same works when cross-compiling.
609         * tests/semantics.at (AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct):
610         (AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct): Use it.
612 2006-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
614         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
615         the directory `/usr/bin/posix' in the shell search, to prefer
616         the Posix shell not only in subsequent spawns as with `$BIN_SH'
617         on Tru64.
619         * doc/autoconf.texi (contents): To fix texi2html output, hide
620         `@setcontentsaftertitlepage' for HTML.
621         (Writing Autoconf Macros): Likewise, insert space after `@c'.
622         (Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
623         `@,{c}'.
625 2006-03-16  Stepan Kasal  <kasal@ucw.cz>
627         * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH
628           sanitizing...
629         (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set.
630         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation
631           why IFS is restored so late; thank you, Ralf, for reminding us.
633 2006-03-15  Stepan Kasal  <kasal@ucw.cz>
635         * doc/autoconf.texi (Pretty Help Strings): No need to use cached
636           variables in the examples.
638 2006-03-14  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
640         * doc/autoconf.texi (several sections): Cleaned up documentation for
641         macros in erlang.m4.
643 2006-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
645         * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
646         failure condition for `$(cmd)' style command substitutions.
647         (Parenthetical command substition, Multiline parenthetical
648         command substition): Use it.
650         * doc/autoconf.texi (Special Shell Variables): Missing word.
651         Reported by Keith Marshall <keith.marshall@total.com>.
653         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
654         IFS even in case of empty `$PATH'.
656 2006-03-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
658         * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
659         `expr' away if there is nothing to do.
660         < --keywords >: Simplify and robustify argument handling.
661         Revert erroneous comment from 2005-08-23.  Extend to allow
662         keyword negation with `!'.
663         Update help message.  Remove broken code to prevent running
664         tests multiple times.
665         * doc/autoconf.texi (testsuite Invocation) < --keywords >:
666         Update and fix the documentation accordingly.
667         * tests/autotest.at (Keywords): Renamed to..
668         (Keywords and ranges): .. this.  Extended to make sure negated
669         keywords, keywords taken from AT_SETUP arguments, and numeric
670         test ranges work, and that matching is case-insensitive.
672 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
674         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
675         allow to pass unnamed structs even in C++.
676         (AC_CHECK_SIZEOF):  Likewise.
677         Also fix quoting error in `AC_MSG_FAILURE' arguments.
678         * tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
679         struct): New tests for unnamed structs, each both native and
680         cross-compiling.
682         * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
683         a structure inside a cast, for C++ conformance.
684         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
685         Also fix quoting error in `AC_MSG_FAILURE' arguments.
687         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
688         nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
689         trying to execute the command `no'.
691         * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
692         m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
693         expanded outside.
695         * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
696         example.  Do not emphasize `$%', it is hardly new and special.
697         Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
699         * doc/autoconf.texi (Limitations of Usual Tools): Document
700         OpenBSD and traditional `grep' failure to handle multiple
701         patterns separated by newlines.
703 2006-03-10  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
705         * doc/autoconf.texi (several sections): Add documentation for macros
706         in erlang.m4.
708 2006-03-10  Eric Blake  <ebb9@byu.net>
710         * doc/autoconf.texi (Obsolete Macros): Fix wording of
711         AC_TRY_LINK_FUNC.
713 2006-03-10  Paul Eggert  <eggert@cs.ucla.edu>
715         * doc/autoconf.texi: Use @acronym more consistently for acronyms
716         like BSD, GPL, LGPL.  Fix minor English typos.
717         (AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
718         Mention that these macros are becoming obsolete.
719         (AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
720         Use more modern terminology for which standard is what.
721         (AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
722         and to ansi2knr.
723         (AC_PROG_CXX): Likewise.
724         (AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
725         Remove obsolete discussion about how to port to K&R.
726         (Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
727         the obsolescent AC_HEADER_STDC.
728         (AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
729         can't rely on it.
731 2006-03-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
733         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
734         Remove stdin redirection from /dev/null to allow pipe to work.
736 2006-03-08  Paul Eggert  <eggert@cs.ucla.edu>
738         * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
739         Require that /lib/cpp include stdio.h correctly.  Solaris 10's
740         doesn't.  Problem reported by D'Arcy A MacIsaac and diagnosed by
741         Ralf Wildenhues.
743 2006-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
745         * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
746         HP-UX sed is 99 commands, not 100.
747         (_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
748         _AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
749         newline for portability.
750         * tests/torture.at (Torturing config.status): Also test 100
751         AC_SUBST_FILE invocations.  Fix test to actually verify the
752         AC_CONFIG_FILES output.
753         * doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
754         command, label, and read-file `r' limits.  Unify HP-UX spelling.
756         * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
757         non-suffix rule.
758         ($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
759         non-GNU make.
760         (autoconfdir, $(AUTOCONF_FILES)): Likewise.
761         * tests/mktests.sh: Small shell portability fixes.
763 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
765         * doc/autoconf.texi (Caching Results): Fix the examples to use a
766         recommended quoting style and discard unwanted output.
768 2006-03-05  Paul Eggert  <eggert@cs.ucla.edu>
770         * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
771         (AT_INIT): Use it, to remove arbitrary limit of 999,999 test
772         cases, and to work around Tru64 expr bug.
774 2006-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
776         * doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
777         expr bug that turns the result of a regex match into a number if
778         possible.
780 2006-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
782         * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
783         HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
784         in section `Specific Compiler Characteristics'.
786 2006-03-04  Eric Blake  <ebb9@byu.net>
788         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
789         variable warning.
791 2006-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
793         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
794         order of variable initialization, so even the Solaris 2.6 shell
795         can create a config header correctly.  Fixes lots of test suite
796         failures.
798 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
800         * doc/autoconf.texi (Text processing Macros): New node to
801         document the m4sugar macros m4_re_escape, m4_tolower,
802         m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
804 2006-02-22  Paul Eggert  <eggert@cs.ucla.edu>
806         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
807         XrmInitialize (0) -> XrmInitialize ().
808         Reported by Toshio Kuratomi.
810 2006-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
812         * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
813         test, as in `if tests; then cmd1; elif ...; else ...; fi'.
814         * doc/autoconf.texi (Programming in M4sh): Adjusted.
815         * tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
816         both macros are defun'ed so that required macros are evaluated
817         outside.
819         * doc/autoconf.texi (Prerequisite Macros): State more precisely
820         where a required macro will be expanded.
821         (Coding Style): Another reason not to use `m4_define'.
823 2006-02-21  Eric Blake  <ebb9@byu.net>
825         * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.
827 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
829         * doc/autoconf.texi (Looping constructs): New node, to
830         document m4_for, m4_foreach, m4_foreach_w, and mention
831         obsolete AC_FOREACH.
832         (Obsolete Macros): Document AC_FOREACH.
833         * lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
834         (m4_for): Fix to never loop (almost) endlessly, work correctly
835         with arithmetic expressions in arguments, a step of zero or
836         non-integer multiple of the interval, and avoid integer
837         overflow.
838         * tests/m4sugar.at: New test for m4_for, m4_foreach, and
839         m4_foreach_w.
841 2006-02-20  Romain Lenglet  <rlenglet@users.forge.objectweb.org>
843         Add basic support for Erlang, both for configuring Erlang/OTP
844         tools, and Erlang as a conf test language.
845         * lib/autoconf/erlang.m4: New file.
846         * lib/autoconf/autoconf.m4: Add erlang.m4.
847         * lib/autoconf/Makefile.am (dist_autoconflib_DATA): Likewise.
848         * lib/freeze.mk (autoconf_m4f_dependencies): Likewise.
849         * NEWS: Add short description of new macros.
850         * THANKS: Add Romain Lenglet.
852 2006-02-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
854         * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
855         native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
857 2006-02-15  Eric Blake  <ebb9@byu.net>
859         * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
860         warning.
862 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
864         * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
865         (_AS_CASE): Private helper macro.
866         * tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
867         * doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
868         Fix syntax of AS_IF description
869         (Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
870         for the AC_REQUIRE mess.
871         * NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
872         AS_SHELL_SANITIZE.
874 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
876         * doc/autoconf.texi: Minor style cleanup.
877         Be consistent about spaces after commas.
878         Insert [] where empty args look a bit funny.
879         Fix some "i.e." and "e.g." usages.
880         Try to avoid "X/Y" usages.
881         Don't be pedantic about "ISO C99"; just say C99.
882         Prefer GNU style for spaces in front of parens.
883         (Function Portability): Comment about C89 versus C99
884         signed integer division.
885         (Particular Headers): Use current gnulib style for dirent
886         includes.
888 2006-02-14  Stepan Kasal  <kasal@ucw.cz>
889         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
891         * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
892         macros without parameters.
893         * lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
894         * doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
895         * tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
896         `$#' bug.
897         (autoupdate): Updated to match AU_ALIAS fix.
899 2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
900         and Paul Eggert  <eggert@cs.ucla.edu>
902         * doc/autoconf.texi (Programming in M4sh): Document
903         AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
905 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
907         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
908         (AS_BOURNE_COMPATIBLE): ..this.
909         (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
911 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
913         * doc/install.texi (Defining Variables): Tighten up the
914         CONFIG_SHELL wording.
916 2006-02-12 Paul Eggert  <eggert@cs.ucla.edu>
917         and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
919         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
920         of (set -o) rather than testing whether (set -o posix) succeeds,
921         to work around a bug in the AIX 5.3 shell.  Problem originally
922         reportd by Howard Chu for libtool.
924 2006-02-10  J.T. Conklin  <jtc@acorntoolworks.com>
926         * doc/autoconf.texi (Running the Compiler, Running the Linker):
927         Changes the macro arguments in summaries to match the
928         descriptions.
930 2006-02-04  Stepan Kasal  <kasal@ucw.cz>
932         * doc/install.texi (Defining Variables): Classify the `CONFIG_SHELL'
933         hint as ``a workaround for a bug.''
935 2006-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
937         * bin/autoreconf.in: New option `--no-recursive'.
938         Improve wording for subpackages a bit.
939         * doc/autoconf.texi (autoreconf Invocation): Updated.
940         * NEWS: Updated.
942         * doc/install.texi (Defining Variables): Put `CONFIG_SHELL'
943         in environment of `configure', not the command line.
944         Reported by Howard Chu <hyc@highlandsun.com>.
946 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
948         * doc/autoconf.texi (Limitations of Builtins): Document the
949         problem with "trap -".
951 2006-01-23  Steven G. Johnson  <stevenj@fftw.org>
953         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
954         (_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
955         messages to differentiate Fortran and Fortran 77 tests.
956         (AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
957         AC_LANG_ASSERT, to allow use in mixed-language projects.
959 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
961         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
962         FOO" to "defined (FOO)".
963         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
964         * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
965         * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
966         * tests/tools.at (ifnames): Likewise.
968 2006-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
970         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
971         * lib/Autom4te/General.pm (mktmpdir): Likewise.
972         (END): Improve error message a bit.
973         Reported by Bruce Korb <bkorb@gnu.org>.
975 2006-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
977         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
978         `-LIST:' and `-LNO:', for PathScale 2.3 compilers.
980 2006-01-11  Stepan Kasal  <kasal@ucw.cz>
982         * doc/autoconf.texi (Header Portability): On Solaris 8, sys/ptem.h
983         requires sys/stream.h.  Reported by Oliver Kiddle.
985 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
986             Stepan Kasal  <kasal@ucw.cz>
988         * lib/autotest/general.m4 (AT_INIT): When ensuring writability
989         before the removals of test dirs, use `find' to avoid modification
990         of symlinked directories.
992 2006-01-11  Steven G. Johnson  <stevenj@alum.mit.edu>
994         * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
995         Don't ignore the macro arguments.
997 2006-01-11  David Thompson  <dthompsn@vizsolutions.com>
999         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
1000         declaration that works for MSVC.
1002 2006-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1004         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
1005         Add `*.map' and `.inf' for Green Hills compiler.
1006         Reported by Stefan Seefeld <stefan@codesourcery.com>.
1008         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
1009         correctly: pad with spaces after FIRST_PREFIX if necessary,
1010         and compute string lenghts with `m4_qlen' instead of `m4_len'.
1011         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
1012         * tests/m4sh.at (AS_HELP_STRING): Test extended.
1013         * NEWS: Updated.
1014         Reported by numerous people, numerous times.
1016 2006-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1018         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
1019         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
1020         * lib/autoconf/general.m4, lib/autoconf/status.m4:
1021         * lib/autotest/general.m4, tests/local.at:
1022         Update copyright year to 2006.
1024         * Makefile.maint (sc_root_tests): Use the recommended style s/a/b/ for
1025         sed substitutions.
1026         * doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
1027         for file names, again.  Reported by Noah Misch.
1028         (Coding Style): Explain that s|a|b| is preferred for file names.
1029         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
1030         (AC_OUTPUT_MAKE_DEFS): Likewise.
1031         * lib/autotest/general.m4 (AT_INIT): Likewise.
1032         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
1033         * tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
1035         Fix Posix-conformance bugs re use of { command in sed scripts,
1036         and improve the sed-related documentation a bit.
1037         * doc/autoconf.texi (Installation Directory Variables): Use
1038         our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
1039         rather than "sed" when talking about Sed in general.
1040         (Particular Programs): Likewise.
1041         (Coding Style): y is like s with respect to / and ,.
1042         (Limitations of Usual Tools): Document the weird restrictions
1043         that Posix has about { }.  Use better quoting.
1044         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
1045         Rewrite to conform to Posix rules about { } in sed scripts.
1046         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
1047         * tests/foreign.at (Libtool): Likewise.
1048         * tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
1049         Use our own style advice re 's,a,b,' versus 's|a|b|'.
1051 2006-01-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1053         * lib/autoconf/status.m4: Fix typo.
1055         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
1056         singly- or doubly-quoted arguments to `-cmdline', `-ignore',
1057         `-def', for the benefit of Portland `pgf90 -Mipa'.
1058         Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
1060 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1062         * doc/autoconf.texi: Update copyright (and other) dates to 2006.
1063         * doc/autoconf.texi (Shellology): Mac OS X 10.2 changed the default
1064         shell from zsh to bash.
1066 2005-12-31  Stepan Kasal  <kasal@ucw.cz>
1068         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Use $PATH_SEPARATOR;
1069           ":" caused problems on OS/2-EMX.  Suggested by Andrew Belov.
1071 2005-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1073         * doc/autoconf.texi (Shell Substitutions): Warn about unbalanced
1074         parentheses in $(...).  Problem reported by Eric Blake.
1076 2005-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1078         * doc/autoconf.texi (Limitations of Usual Tools):
1079         Mention which characters can be escaped with \ in portable regular
1080         expressions used in grep, sed, expr.  Mention the leading ^ problem
1081         with expr.  Clean up some confusing wording.  Mention which
1082         grep options are portable.
1084 2005-12-09  Stepan Kasal  <kasal@ucw.cz>
1086         * tests/local.at (AT_CHECK_AUTOM4TE): Fix typo in the comment.
1088 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1090         * doc/autoconf.texi (Limitations of Builtins): Fix typos in previous
1091         patch, noted by Ralf Wildenhues.
1093 2005-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1095         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Try `set -o
1096         posix' unconditionally, for pdksh in `native sh' emulation.
1098 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1100         * doc/autoconf.texi (Shellology): Document eval $? problem
1101         with ash.
1102         (Limitations of Builtins): Likewise.
1104 2005-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1106         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
1107         CONFIG_SHELL in the environment of the configure rerun.
1108         * doc/autoconf.texi (Here-Documents, config.status Invocation):
1109         Suggest passing CONFIG_SHELL absolute, and in the environment
1110         rather than as option.
1112 2005-11-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1114         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
1115         Fix quoting of output line (triggered for many AC_SUBST_FILEs).
1116         Fix macro quoting.  Fix output for n * 98 substituted variables.
1118 2005-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1120         * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
1121         `tmp' to avoid file removal race.
1123 2005-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1125         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
1126         ac_clean_files and LIBOBJS.
1128 2005-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1130         * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
1131         Factor functionality to..
1132         (_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
1133         `AC_SUBST($1)' in the public version.
1134         (AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
1135         (AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
1136         ac_pt_* variables.
1138 2005-11-01  Stepan Kasal  <kasal@ucw.cz>
1140         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove the comment about 8+3
1141         filesystems.
1143 2005-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1145         * NEWS: Move AH_HEADER mention to right place.
1147 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
1149         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): "conftst2" -> "conftest2"
1150         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1152 2005-10-25  Stepan Kasal  <kasal@ucw.cz>
1154         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): rm -f conftst2.*, not only
1155         conftst2.$ac_objext.
1156         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1158 2005-10-24  Stepan Kasal  <kasal@ucw.cz>
1160         * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Use conftst2.o instead of
1161         conftest.o, to see whether the compiler really obeys; rm the object
1162         file before and after the test and register it with ac_clean_files.
1163         * lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): Likewise.
1165 2005-10-21  Stepan Kasal  <kasal@ucw.cz>
1167         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining,
1168         the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the
1169         code so that the most common case requires less forks.
1171 2005-10-20  Stepan Kasal  <kasal@ucw.cz>
1173         * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
1174         not portable; thanks to Paul Eggert and Alexandre.
1176         * NEWS: Fix an old typo.
1178 2005-10-20  Jim Meyering  <jim@meyering.net>
1180         * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of
1181         the latter'', in two places.
1183 2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1185         * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
1186         AC_LANG_PROGRAM, fixing a typo.  Don't give details about
1187         the inner workings of AC_LANG_FUNC_LINK_TRY.
1188         * lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
1189         AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
1190         by the function rather than ignoring it.
1191         (AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
1192         comparing its address.  Intel's interprocedural optimization was
1193         outsmarting the old heuristic.  Problem reported by
1194         Mikulas Patocka.
1196 2005-10-19  Stepan Kasal  <kasal@ucw.cz>
1198         * lib/autoconf/general.m4 (AC_SUBST): Remove an obsolete comment.
1200 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1202         * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
1203         (m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
1205 2005-10-04  Stepan Kasal  <kasal@ucw.cz>
1207         * lib/autotest/general.m4 (AT_INIT): Really make the subtree writable
1208         before removing it (chmod -R u+rwx); there are three instances of this.
1210 2005-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1211             Stepan Kasal  <kasal@ucw.cz>
1213         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses.
1214         * lib/autotest/general.m4 (AT_INIT): If the test dir already exists,
1215         make its content writable before removing it.  Remove an errorneous
1216         comment from the end, where the logs of the failed tests are copied
1217         to the main log file.
1219 2005-09-27  Stepan Kasal  <kasal@ucw.cz>
1221         * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
1222           in case the computer is too quick.  Double quote the configure.ac
1223           snippets.
1225         * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
1226           problems if the testsuite were running too fast.
1228 2005-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1230         * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
1231         and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
1232         (which belong to Xt, not X itself).  See Debian bug 327655.
1233         * NEWS: Mention this.
1235 2005-09-07  Stepan Kasal  <kasal@ucw.cz>
1237         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Remove an incorrect comment.
1239 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1241         * config/move-if-change: Don't output "$2 is unchanged";
1242         suggested by Ben Elliston.  Handle weird characters correctly.
1244 2005-09-06  Stepan Kasal  <kasal@ucw.cz>
1246         * lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Merge the two AC_LINK_IFELSE
1247           calls, so that the final expansion of this macro is shorter.
1248           Create the conftest.$ac_ext outside the `for' loop, to speed the run.
1249           Do not use `break' in the argument to AC_LINK_IFELSE, it would skip
1250           the cleanup there.  Use AS_VAR_* macros, to be more general.
1251         * tests/semantics.at (AC_SEARCH_LIBS): Check for the cleanup.
1253         * lib/autoconf/general.m4: Use AS_IF where appropriate.
1255         * lib/m4sugar/m4sh.m4 (AS_IF): Use m4_default.
1257 2005-09-01  Stepan Kasal  <kasal@ucw.cz>
1259         * doc/autoconf.texi (Configuration Headers): Add an index entry
1260           for AH_HEADER.
1262 2005-08-26  Pavel Roskin  <proski@gnu.org>
1264         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
1265         XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
1266         running xmkmf.
1268 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
1270         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
1271         The previous patch didn't work, so try a better one.
1273 2005-08-26  Stepan Kasal  <kasal@ucw.cz>
1275         * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
1276         in the example.  Reported by Bruno Haible.
1277         <AS_TR_SH>: Likewise.  Also modify the example to be more convincing:
1278         "if $undefined_var;" succeeds with my shell.
1280         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
1281         AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
1282         but change the m4_divert_text to m4_divert_once.
1284 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
1286         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
1287         Work around bug in Solaris /usr/xpg4/bin/awk.
1288         The bug is present in at least Solaris 8 through 10.
1290 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
1292         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Simplify; rejecting
1293         some evil values and relying on the fact that $* concatenates the
1294         parameters by the first character from IFS.
1296 2005-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>,
1297             Stepan Kasal  <kasal@ucw.cz>
1299         * lib/autoconf/status.m4 (_AC_CONFIG_REGISTER_DEST): When the
1300         first header appears, define AH_HEADER.
1301         * doc/autoconf.texi (Configuration Headers): Document AH_HEADER.
1302         Update limitations about when to call AC_CONFIG_HEADERS.
1303         (Configuration Commands): Document that AC_CONFIG_COMMANDS_PRE
1304         parameter can call AC_SUBST, AC_DEFINE, or AC_CONFIG_FOOS; explain
1305         that AC_CONFIG_COMMANDS_PRE and AC_CONFIG_COMMANDS_POST are not
1306         ``Configuration Actions''; fix their index entries.
1308         * lib/autotest/general.m4 (AT_INIT): Process multiple keywords
1309         options correctly.  Process N-M as M-N if M is smaller than N.
1310         Process ranges correctly so that N-N will run only N.
1311         Sort and uniquify the tests that will be run.  If there is more
1312         than one test, reinsert the banners for the tests.
1313         * tests/autotest.at (Keywords): Unmark XFAIL.
1315 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
1317         * lib/autoconf/general.m4 (_AC_DEFINE_Q): Strip the parameter list
1318           before passing the macro name to AH_TEMPLATE.
1320         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): config.status
1321           now opens log after option processing; in particular, --version
1322           and --help do not touch config.log.
1324         * Makefile.maint: Revert the change from 2005-08-12.
1326 2005-08-22  Stepan Kasal  <kasal@ucw.cz>
1328         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out
1329           common code to...
1330         (_AC_ENABLE_IF, _AC_ENABLE_IF_ACTION): ... these new macros.
1332 2005-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1334         * doc/autoconf.texi (Using Autotest, testsuite Scripts)
1335         (Autotest Logs, Writing testsuite.at, testsuite Invocation):
1336         Language cleanup.
1338         * doc/autoconf.texi (Defining Symbols, Changed Results):
1339         Prepend to LIBS, not append, in examples.
1341 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
1343         When building in place, set srcdir="."; suggested by Tim Van Holder.
1345         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Do this; to recognize
1346           build in place, we need ac_pwd, and thus have to AC_REQUIRE ...
1347         (_AC_INIT_DIRCHECK): ... this macro and AC_DEFUN both of them.
1348         * lib/autoconf/status.m4 (_AC_SRCDIRS): Fix a comment: srcdir="."
1349           does not mean "no --srcdir option".
1351 2005-08-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1353         * tests/autoscan.at (autoscan): New file.
1354         * tests/suite.at: Use it.
1355         * tests/Makefile.am (TESTSUITE_HAND_AT): Add it.
1356         Reported against Libtool by Gideon Go <gideon.go@gmail.com>.
1358         * tests/autotest.at (Keywords): Test keywords combinations.
1360 2005-08-12  Stepan Kasal  <kasal@ucw.cz>
1362         * Makefile.maint (GZIP_ENV): When checking the help text of gzip,
1363           add "2>&1"; gzip 1.2.4 prints help on stderr.
1365 2005-07-27  Stepan Kasal  <kasal@ucw.cz>
1367         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
1368         was pushdef'ed twice while popped only once.  Push it only once.
1369         (_AT_CHECK): Cosmetic changes to the "case $at_status" command.
1371 2005-07-26  Stepan Kasal  <kasal@ucw.cz>
1373         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
1374         prefixed by mere "===", not "configure: === ".
1376 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1378         * Makefile.maint: Update from Bison.
1380         * lib/m4sugar/m4sugar.m4 (m4_strip): Comment fix---change tab to
1381         "<tab>" in comment, so that the point is understandable.
1383 2005-07-25  Stepan Kasal  <kasal@ucw.cz>
1385         Rewrite substantial part of lib/autoconf/status.m4.
1386         The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
1387         and CONFIG_COMMANDS are not processed in four separate loops.
1388         Instead, there is one main loop.  This alows that the common code
1389         is expanded only once, thus config.status (and configure) is smaller.
1391         The registration mechnism in AC_CONFIG_FILES and cousins also changed;
1392         the AC_LIST_FILES and cousins macros are no longer used.
1394         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
1395         _AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
1396         (_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
1397         _AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
1398         contain the initialization, nor the for loop, nor the associated
1399         commands; all these go to ...
1400         (_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
1401         _AC_OUTPUT_CONFIG_STATUS.
1402         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
1403         Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
1404         (_AC_OUTPUT_FILE): The creation of the sed script ...
1405         (AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
1406         (_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
1407         _AC_OUTPUT_MAIN_LOOP.
1408         (_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
1409         _AC_CONFIG_COMMANDS): Use ...
1410         (_AC_CONFIG_FOOS): ... this new macro, which uses these ...
1411         (_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
1412         (_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
1413         _AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
1414         (_AC_CONFIG_DEPENDENCY): Update, it uses these ...
1415         (_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
1416         ... new macros.
1417         (_AC_CONFIG_UNIQUE): Update.
1418         (AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
1419         Replaced by this ...
1420         (_AC_LIST_TAGS): ... new common macro.
1421         (AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
1422         AC_LIST_COMMAND_COMMANDS): Replaced by this ...
1423         (_AC_LIST_TAG_COMMANDS): ... new common macro.
1424         (_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
1425         this didn't belong to the `config commands' section.
1426         (_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
1427         (AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
1428         AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
1429         to the `config commands' section either.
1430         (AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
1431         (_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.
1433         ... and many changes to the comments nearby.
1435         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
1436         set ac_subdirs_all='_AC_LIST_SUBDIRS'.
1437         * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
1438         AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
1439         (#define header templates): The comment at the top of the generated
1440         header now includes the name(s) of the source file(s).
1442         Several unrelated small changes:
1444         * lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
1445         parameter to AC_DIAGNOSE.
1446         * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
1447         (_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
1448         with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
1449         (AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
1450         with AU::AC_OUTPUT.
1451         (AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
1452         in AC_OUTPUT doesn't double-quote it either.
1453         * tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
1454         parameters.
1456 2005-07-10  Stepan Kasal  <kasal@ucw.cz>
1458         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Document which
1459         versions of Portland Group compiler produce single- and double-quoted
1460         -cmdline argument.  Reported by Steven G. Johnson <stevenj@fftw.org>
1461         and Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
1463 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1465         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
1466         This is a corrected version of yesterday's patch.
1468 2005-07-07  Stepan Kasal  <kasal@ucw.cz>
1470         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Report the full
1471         path, too; insert a "===" to emphasize the line.
1473         * lib/autoconf/general.m4 (AC_CANONICAL_BUILD): Rename
1474           ac_cv_build_alias to ac_build_alias.
1475         (AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Simplify.
1477         On 2005-02-24, an unintentional AC_SUBST([CC]) was introduced; this
1478         change eliminates it.  Problem reported by Alexandre Duret-Lutz.
1479         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Move the AC_SUBST ...
1480         (AC_ARG_VAR): ... here.
1481         (_AC_INIT_PREPARE): Call AC_SUBST for build_alias, host_alias and
1482           target_alias.
1484         Keep a list of all precious variables and process them with one simple
1485         for loop, instead of expanding all commands, or, OTOH, complicated
1486         processing of output of "set".
1487         * lib/autoconf/general.m4 (_AC_ARG_VAR_PRECIOUS): Acumulate the
1488         variable names in new macro...
1489         (_AC_PRECIOUS_VARS): ... which will be assigned to ac_precious_vars.
1490         (_AC_ARG_VAR_STORE): New macro which writes to diversion PARSE_ARGS
1491           a loop to assign all ac_env_* and ac_cv_env_* variables.
1492         (_AC_ARG_VAR_VALIDATE): Use shell variable ac_precious_vars, divert
1493           to INIT_PREPARE.
1494         (_AC_INIT_DEFAULTS): At the end, if _AC_PRECIOUS_VARS is set, assign
1495           its value to shell variable ac_precious_vars and call
1496           _AC_ARG_VAR_STORE and _AC_ARG_VAR_VALIDATE.
1497         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't call
1498           _AC_ARG_VAR_VALIDATE.
1500         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Move AC_LANG_PUSH(C)
1501           and the AC_SUBSTs ...
1502         (AC_INIT): ... here.
1504         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Changed the title of
1505           the ac_subst_files section in config.log.
1507         * tests/local.at (AT_CONFIG_CMP): Revert Paul's previous change.
1509 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1511         * NEWS: New macro AC_C_TYPEOF.
1512         * doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
1513         * lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
1514         * tests/c.at (C keywords): Test AC_C_TYPEOF.
1516         Fix problems reported by Nicolas Joly.
1517         * tests/base.at (Input/Output): Ignore 'loading site script' chatter.
1518         * tests/local.at (AT_CONFIG_CMP): Ignore lines like "LIBS=''" too.
1519         They are generated by the Tru64 v5.1B shell.
1521 2005-07-05  Stepan Kasal  <kasal@ucw.cz>
1523         Fix my changes from 2005-07-01; reported by Noah Misch.
1524         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES): Fix the
1525         description, the macro now accepts only a single tag.
1526         (_AC_CONFIG_UNIQUE): Likewise; s/AC_File/[$1]/
1528         Fix cases when the varsions of Autoconf and Autotest don't match.
1529         Reported by Noah Misch.
1530         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Set also
1531         at_top_builddir, for compatibility with older autotest.
1532         * lib/autotest/general.m4 (AT_INIT): If at_top_build_prefix
1533         is not set, use at_top_builddir, for compatibility with older
1534         versions of autoconf.
1536 2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1538         * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
1539         Problem reported by Patrick Welche.
1541 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1543         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
1544         sed substitution command, so that we allow | in program prefixes
1545         and program suffixes.  (& is a problem anyway; we're not fixing
1546         that here.)
1547         * lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
1548         configure_input, top_builddir, srcdir, etc.
1549         * lib/autotest/general.m4 (AT_INIT): Likewise, for
1550         PATH_SEPARATOR in AUTOTEST_PATH.
1552 2005-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
1554         * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
1555         for loop over config.site files using `set', to allow
1556         directory names containing IFS characters.
1558 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1560         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
1561         directories with weird names.  Apparently some people like living
1562         on the edge.  However, improve the test that "pwd" actually does
1563         report a name for the working directory.
1564         * NEWS: Remove the claim that we test for funny chars in dir names.
1566 2005-07-01  Stepan Kasal  <kasal@ucw.cz>
1568         * lib/autoconf/general.m4 (AC_FOREACH): Make obsolete; it's
1569         replaced ...
1570         * lib/m4sugar/m4sugar.m4 (m4_foreach_w): ... by this new macro.
1571         * lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCIES, _AC_CONFIG_UNIQUE):
1572         Now accept a single tag, not whitespace separated list.
1573         (AC_CONFIG_SUBDIRS): Call _AC_CONFIG_UNIQUE in a m4_foreach_w loop.
1575 2005-06-30  Stepan Kasal  <kasal@ucw.cz>
1577         * doc/autoconf.texi (Configuration Headers): Change the explanation
1578         about #include <config.h>.
1579         (Generic Functions): Mention the Gnulib project.
1580         (Limitations of Usual Tools) <sed>: Another minor rephrasing.
1582         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use a here
1583         document to output the default config_* lists to config.status.
1584         Don't recognize option --file, if the functionality is not there.
1585         Likewise for --header; moreover, recognize --he and --h as shortcuts
1586         for --help in that case.
1588         * lib/autoconf/status.m4: Fix the order of the "sections", so that it
1589         matches the order of execution.  No code changed.
1591 2005-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1593         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Fix also for
1594         single-quoted -cmdline argument in Portland Group compiler.
1595         Reported against LAM by Ole Holm Nielsen <Ole.H.Nielsen@fysik.dtu.dk>.
1597 2005-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
1599         * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE.
1601 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
1603         * doc/autoconf.texi (File Descriptors): ksh doesn't pass open file
1604         descriptors to child processes; reported by Norman Gray.
1606 2005-06-29  Stepan Kasal  <kasal@ucw.cz>
1608         * lib/autoconf/general.m4 (AC_ARG_VAR): Move next to _AC_ARG_PRECIOUS.
1610         * lib/autoconf/general.m4 (AC_SUBST_TRACE): New macro, to be traced
1611         instead of AC_SUBST; proposed by Alexandre Duret-Lutz.
1612         (AC_SUBST): Call it.
1613         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Call AC_SUBST_TRACE for
1614         the directory specific variables; but don't call it for configure_input.
1616 2005-06-28  Derek Price  <derek@ximbiot.com>
1618         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Reword recent
1619         addition.
1621 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1623         * NEWS: Don't worry about spaces in bindir etc.  Only srcdir and working
1624         directory have inherent problems with special characters like spaces,
1625         due to limitations in Make syntax.  Problem reported by Alexandre
1626         Duret-Lutz.
1627         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
1628         Also, fix Tru64 porting problem with shell patterns,
1629         reported by Ralf Wildenhues.
1631 2005-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1633         * doc/autoconf.texi (Subdirectories): Fix markup typos.
1635 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1637         * tests/local.at (AT_CHECK_ENV): Simplify regexp slightly.
1639         Fix some more shell quoting problems.  Prompted by a bug report
1640         from Justace Clutter.
1641         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
1642         variable into diagnostic.  Make the diagnostic an error, not a warning,
1643         because we really don't support spaces and suchlike in dir names.
1644         (_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
1645         Don't worry about backslashes in srcdir; it can't happen now.
1646         (_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
1647         Simplify ac_optarg handling.
1648         (_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
1650 2005-06-22  Stepan Kasal  <kasal@ucw.cz>
1652         Fix AT_CONFIG_CMP for Solaris hosts; idea from Ralf Menzel.
1653         * configure.ac: Call AC_PROG_EGREP and AC_PROG_SED.
1654         * tests/atlocal.in: Propagate $EGREP and $SED.
1655         * tests/local.at (AT_CHECK_ENV): Use $EGREP, not $GREP -E.
1656         (AT_CONFIG_CMP): Use sed instead of grep plumbing.
1658         * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
1659         that '\|' is not allowed in BREs; recommend using newline separated
1660         list of patterns instead of multiple -e options.
1662         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Remove an old comment.
1664         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Use AC_SUBST/2.
1666 2005-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1668         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Fix typo.
1670 2005-06-21  Stepan Kasal  <kasal@ucw.cz>
1672         * doc/autoconf.texi (Limitations of Usual Tools) <sed>: Document that
1673         b, t, r, w commands require single space, while : cannot have any.
1674         (Special Shell Variables): Fix sed code this in the example.
1675         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Likewise; and fix a typo.
1676         * lib/autotest/general.m4 (AT_ARG_OPTION): Fix typo in the description.
1678         * lib/m4sugar/m4sugar.m4 (m4_split): If the parameter is empty,
1679         expand to the empty list.  Don't use two pairs of m4_changequote,
1680         it's not necessary.
1682 2005-06-20  Derek Price  <derek@ximbiot.com>
1684         * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
1686 2005-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1688         * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
1689         * doc/autoconf.texi:
1690         Don't mention Solaris versions so much, if a
1691         problem is common to all extant versions of Solaris.  Say "SunOS
1692         4" instead of "SunOS" for SunOS 4.
1693         (awk): Mention more of the limitations of traditional Awk.
1694         (cat): Don't talk about cat -v.
1696 2005-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1698         * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
1699         (AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
1700         but the implementation is entirely different and is designed
1701         to be compatible with glibc strverscmp.
1702         * tests/m4sh.at (AS_VERSION_COMPARE): New test.
1704         * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
1705         on Mac OS X 10.4 reported by Peter O'Gorman in:
1706         http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
1707         * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
1708         Use shell builtins rather than 'expr', to work around expr bug.
1710 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
1712         * doc/autoconf.texi: "filesystem" -> "file system".
1713         "behaviour" -> "behavior".
1714         Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
1715         * lib/autoconf/general.m4: Omit blank after ":" sed command,
1716         as per POSIX.
1717         * lib/m4sugar/m4sh.m4: Likewise.
1718         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
1719         with Solaris sed.  Fix by Ralf Menzel and Stepan Kasal.
1721         * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t.
1722         (.x.1): Ignore the time stamp in the .TH line when deciding whether
1723         to update the man page.  That way, we don't have to check in new
1724         man pages every month.
1726         * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
1727         quotes and backslashes.  Patch from Derek Price.
1729 2005-06-10  Derek Price  <derek@ximbiot.com>
1731         * doc/autoconf.texi (Programming in M4sh): Document AS_TR_CPP &
1732         AS_TR_SH.
1734 2005-06-08  Paul Eggert  <eggert@cs.ucla.edu>
1736         * lib/autotest/general.m4 (AT_INIT): Don't accept Solaris 9's diff
1737         -u, since it outputs chatter if the input files are the same.
1738         Problem reported by Ralf Menzel.
1740 2005-06-08  Derek Price  <derek@ximbiot.com>
1742         * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
1743         renaming them since they are about to be redefined anyhow.
1745 2005-06-08  Derek Price  <derek@ximbiot.com>
1747         * doc/autoconf.texi (Redefined M4 Macros): Add index entries for most
1748         redefined M4 macros to this node.  Document m4_include & m4_sinclude.
1749         Move m4_undefine to alphabetical order.
1751 2005-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1753         * README: Recommend GNU M4 1.4.3 or later.
1754         * doc/autoconf.texi (Introduction): Likewise.
1755         Reword to avoid some formatting glitches.
1756         Use "#!/bin/sh", not "#! /bin/sh"; the space isn't needed these days.
1757         Clarify explanation of HP compiler bug.
1758         Redo example output tp match current CVS snapshot.
1759         Use @example.org in email addresses when the examples
1760         might get inadvertently cut-and-pasted into user code.
1761         Remove example of autom4te usage that doesn't seem to work now.
1762         Use modern AC_INIT (except when the example is meant to be
1763         shown with Autoconf 2.13).
1764         Update ksh info for Solaris 9 and later.
1765         KB -> kB.
1766         Modernize description of Automake versions a bit.
1767         Don't claim a future version of Autoconf is near.
1768         * doc/install.texi: Reword to avoid some formatting glitches.
1770 2005-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1772         * doc/autoconf.texi: Add [] to examples, so that the manual
1773         follows its own advice about quoting better.
1774         Reword to avoid some formatting glitches.
1775         * doc/installt.exi: Reword to avoid some formatting glitches.
1777         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
1778         Tru64 ksh pattern matching bug.  Reported against Libtool by
1779         Albert Chin <libtool@mlists.thewrittenword.com> and
1780         Nicolas Joly <njoly@pasteur.fr>.
1782 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
1784         m4_cdr of one-member list was [[]] (one-member list containing an
1785         empty string) instead of [] (an empty list.  Callers were skewed to
1786         match this misbehaviour.  As a consequence of this:
1787          - m4_foreach([x], [], [foo]) expanded to `foo', while
1788          - the expansion of m4_foreach([x], [[]], [foo]) was empty.
1789         This bug has been fixed:
1791         * lib/m4sugar/m4sugar.m4 (m4_cdr): If only one argument is given,
1792           expand to an empty string; print error msg if called without
1793           an argument list.
1794         (m4_foreach, m4_map, m4_map_sep): Don't expect the previous
1795           misbehaviour; handle [] and [[]] correctly.
1797 2005-06-06  Stepan Kasal  <kasal@ucw.cz>
1799         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines.
1800         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed
1801           scripts created and the loop applying them, use _AC_SED_CMD_LIMIT.
1803 2005-06-06  Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
1805         * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
1806           swallow records with more than 99 fields.
1807         * lib/autotest/general.m4 (AT_INIT): Use the awk builtin `split' to
1808           parse the long line.
1810 2005-06-04  Stepan Kasal  <kasal@ucw.cz>
1812         * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot
1813           swallow literals longer than 399.  Reported by Ralf Wildenhues.
1814         * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin,
1815           to workaround this limitation.
1817 2005-06-03  Steven G. Johnson  <stevenj@alum.mit.edu>
1819         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Find g95 in addition
1820         to gfortran, and make these the first two compiler names
1821         checked (following the general autoconf preference for gcc).
1823 2005-06-03  Stepan Kasal  <kasal@ucw.cz>
1825         * tests/Makefile.am (check_SCRIPTS): Set to $(wrappers).
1826         (DISTCLEANFILES): Remove $(check_SCRIPTS).
1827         (testsuite): Make sure autotest.m4f is up-to-date before using it.
1829 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1831         * lib/autotest/general.m4 (AT_INIT): Don't create a regular
1832         expression of unbounded size when processing the --list
1833         option.  This runs afoul of a limit of 399 bytes per regular
1834         expression on AIX.  Problem reported by Ralf Wildenhues.
1836 2005-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1838         * NEWS: Note yesterday's changes to AC_SUBST and AC_SUBST_FILE.
1839         * doc/autoconf.texi (Particular Headers): Reword example
1840         for multiline stdbool replacement.
1841         (Setting Output Variables): Reword text a bit.  Don't
1842         give all the details about |#_!!_#|.
1843         Reword description of line replacement.
1845 2005-05-31  Dan Manthey  <dan_manthey@partech.com>
1847         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
1848         now contain newlines, and substituted files must be referenced on
1849         a line alone; the sed scripts to substitute them are now very
1850         different.
1851         (_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
1852         commands can be put in a sed script portably.
1853         * doc/autoconf.texi (Setting Output Variables): Document above
1854         changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
1855         use of multiline substitution.
1856         * tests/torture.at: No longer expect substitution of newline to fail.
1858 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1860         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
1861         From Ralf Menzel (trivial change).
1863 2005-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1865         * tests/local.at: Don't attempt to check for negated character
1866         classes in shell scripts.  The test was too brittle.
1868 2005-05-25  Stepan Kasal  <kasal@ucw.cz>
1870         * bin/autoconf.as: Don't use "shift 2"; it's not portable enough.
1871         * doc/autoconf.texi (Limitations of Builtins): Document this
1872           limitation.
1874 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
1876         * lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): New macro to factor out
1877           common code; used in many places in the tree.
1878         (AS_ESCAPE): Make the pattern a bit simpler; use \& insetad of \1.
1879         (_AS_ECHO_UNQUOTED): Move the macro lower; no code change.
1881         * lib/m4sugar/m4sugar.m4 (m4_ifset): Use m4_ifval.
1883         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Merge the two error
1884           messages when ac_unique_file is not found.
1885         (AC_CONFIG_MACRO_DIR): Simplify the `if' at the end.
1886         (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo
1887           commands, for consistency with AC_MSG_ERROR and such.
1889         * bin/autoconf.as: Make more use of "shift 2" in option processing.
1891         * bin/Makefile.am: Merge the two rules for creating scripts.
1893 2005-05-23  Stepan Kasal  <kasal@ucw.cz>
1895         * lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED): Make
1896         obsolete; it was never documented.
1897         (AC_CACHE_CHECK): Use AC_MSG_RESULT instead.
1899 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
1901         * NEWS: @top_builddir@ is now a dirname, ac_top_builddir will follow.
1902         * lib/autoconf/status.m4 (_AC_SRCDIRS): Rename ...
1903         (ac_top_builddir): ... this ...
1904         (ac_top_build_prefix): ... to this; the old name is also kept, for
1905           backward compatibility.
1906         (ac_top_builddir_sub): New variable, without the trailing slash,
1907           always nonempty.
1908         (_AC_OUTPUT_FILES): s/@top_builddir@/$ac_top_builddir_sub/
1909         * doc/autoconf.texi (Configuration Actions): Rename
1910           ac_top_builddir to ac_top_build_prefix.
1911         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Rename
1912           at_top_builddir to at_top_build_prefix.
1913         * lib/autotest/general.m4 (AT_INIT): Likewise.
1915 2005-05-20  Stepan Kasal  <kasal@ucw.cz>
1917         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Simplify the init
1918           of confdefs.h .
1920 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
1922         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't m4_quote the second
1923           argument to m4_foreach.  I guess it was necessary in the past,
1924           but I think it's a no-op now.
1926 2005-05-17  Stepan Kasal  <kasal@ucw.cz>
1928         * lib/autoconf/general.m4 (_AC_INIT_HELP): Merge two consecutive
1929           ``cat <<_ACEOF'' commands to one.
1930         (_AC_CANONICAL_SPLIT): Use expr, not ``echo|sed.''
1931         * lib/autoconf/status.m4: On various places, use expr instead of
1932           ``echo|sed.''
1933         (_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST):
1934         (_AC_CONFIG_SPLIT_FILE_IN): New macros, to factor out common code.
1935         * lib/autotest/general.m4 (AT_INIT): Use expr to get the numbers from
1936           a range.
1937         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Use awk to search for
1938           the wrong patterns between ``case'' and ``esac.''  The previous
1939           code had false positives.
1941 2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
1943         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
1944         as on 2005-05-02.
1945         * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
1946         Mention LIBOBJDIR.
1948 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1950         * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
1951         ChangeLog.2, GNUmakefile, HACKING, Makefile.am, Makefile.cfg,
1952         Makefile.maint, NEWS, README, README-alpha, TODO, configure.ac,
1953         bin/Makefile.am, bin/autoconf.as, bin/autoheader.in,
1954         bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in,
1955         bin/autoupdate.in, bin/ifnames.in, config/Makefile.am,
1956         config/config.guess, config/config.sub, config/elisp-comp,
1957         config/m4.m4, config/mdate-sh, config/missing, config/texinfo.tex,
1958         doc/Makefile.am, doc/fdl.texi, lib/Makefile.am, lib/autom4te.in,
1959         lib/freeze.mk, lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
1960         lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
1961         lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm,
1962         lib/Autom4te/Request.pm, lib/Autom4te/Struct.pm,
1963         lib/Autom4te/XFile.pm, lib/autoconf/Makefile.am,
1964         lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
1965         lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
1966         lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
1967         lib/autoconf/fortran.m4, lib/autoconf/functions.m4,
1968         lib/autoconf/general.m4, lib/autoconf/headers.m4,
1969         lib/autoconf/lang.m4, lib/autoconf/libs.m4,
1970         lib/autoconf/oldnames.m4, lib/autoconf/programs.m4,
1971         lib/autoconf/specific.m4, lib/autoconf/status.m4,
1972         lib/autoconf/types.m4, lib/autoscan/Makefile.am,
1973         lib/autoscan/autoscan.list, lib/autoscan/autoscan.pre,
1974         lib/autotest/Makefile.am, lib/autotest/autotest.m4,
1975         lib/autotest/general.m4, lib/emacs/Makefile.am,
1976         lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
1977         lib/m4sugar/Makefile.am, lib/m4sugar/m4sh.m4,
1978         lib/m4sugar/m4sugar.m4, man/Makefile.am, tests/Makefile.am,
1979         tests/atlocal.in, tests/autotest.at, tests/base.at, tests/c.at,
1980         tests/compile.at, tests/foreign.at, tests/fortran.at,
1981         tests/local.at, tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
1982         tests/semantics.at, tests/suite.at, tests/tools.at,
1983         tests/torture.at, tests/wrapper.as:
1984         Update FSF postal mail address.
1986 2005-05-13  Stepan Kasal  <kasal@ucw.cz>
1988         * lib/autoconf/general.m4 (AC_CONFIG_LIBOBJ_DIR): Remove the broken
1989           check.
1990         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Halt with error if we don't get
1991           enough arguments, similarly as in m4_bpatsubsts.
1993 2005-05-12  Stepan Kasal  <kasal@ucw.cz>
1995         * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
1996           of absolute paths.
1998 2005-05-11  Stepan Kasal  <kasal@ucw.cz>
2000         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
2001           for absolute directory names in one loop.
2002         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
2003           abbreviations of --version and --debug.
2005 2005-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2007         * doc/autoconf.texi (Autoconf Language): Be more precise about
2008         quoting rules.  Problems noted by Stepan Kasal.
2009         Also, throughout this document, be more careful about white space.
2010         "blank", "white space", and "space" all have different meanings
2011         and we should be careful to say what we mean.
2013 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2015         Fix C++ related problems reported by Werner Lemberg.
2016         * doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
2017         * lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
2018         * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
2019         avoid problems with C++ and throw.
2020         * tests/compile.at: .cpp, not .cc.
2022         * tests/semantics.at: Prepend LIBOBJDIR, as per 2005-05-02 change.
2024 2005-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2026         * doc/autoconf.texi (Generic Functions): Typos.
2028 2005-05-02  Gary V. Vaughan  <gary@gnu.org>
2030         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
2031         object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
2032         set by latest automake.
2034 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
2036         * doc/autoconf.texi (Limitations of Usual Tools): "expr '' \| ''"
2037         outputs 0 on GNU/Linux these days.
2039 2005-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2041         * doc/autoconf.texi (Autoconf Language): Add more description
2042         about quoting heuristics.
2043         (Limitations of Builtins): Describe "set -" problems.
2045 2005-04-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2047         * lib/autotest/general.m4 (AT_KEYWORDS): Separate by space,
2048         not newline.
2050         * doc/autoconf.texi (External Software): Replace AC_DEFINE_UNQUOTED
2051         by AC_DEFINE; it was a mistake.
2052         From bug reported against libtool by Dalibor Topic <robilad@kaffe.org>.
2054 2005-04-25  Stepan Kasal  <kasal@ucw.cz>
2056         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
2058 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
2060         * doc/autoconf.texi (External Software): Quadrigraphs are not
2061           processed correctly in AS_HELP_STRING; avoid this in the examples.
2062         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Add a FIXME about quadrigraphs.
2063         * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Likewise; and rephrase the
2064           comment and reduce m4_default([foo], []) to [foo].
2065         (m4_strip): Update the explanation.
2067 2005-04-19  Paul Eggert  <eggert@cs.ucla.edu>
2069         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
2070         Remove core.conftest.* too; it's generated by Tru64 5.1.
2071         Problem reported by Jennis Pruett.
2072         * lib/autoconf/functions.m4
2073         (AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
2074         Don't bother to remove core files; AC_RUN_IFELSE should do that
2075         for you.
2077 2005-04-19  Stepan Kasal  <kasal@ucw.cz>
2079         * lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Add the b- to comment, too.
2081 2005-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
2083         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
2084         Report from Horst Wente.
2086 2005-04-15  Stepan Kasal  <kasal@ucw.cz>
2088         * lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): Fixed a typo in
2089           the comment.
2091 2005-04-14  Gregorio Guidi  <greg_g@gentoo.org>
2093         * doc/autoconf.texi (External Software, Package Options): Add
2094           examples showing how to implement --with-* and --enable-* options.
2096 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
2098         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
2099         as well as configure.in.  Problem reported by Gregorio Guidi.
2101 2005-04-10  Paul Eggert  <eggert@cs.ucla.edu>
2103         * doc/autoconf.texi (Particular Functions): Use gnulib's current
2104         pattern for alloca snippet.
2106 2005-04-04  Stepan Kasal  <kasal@ucw.cz>
2108         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix a typo.
2110 2005-04-01  Stepan Kasal  <kasal@ucw.cz>
2112         * doc/autoconf.texi (Generic Programs): Fix a typo.
2114 2005-04-01  Paul Eggert  <eggert@cs.ucla.edu>
2116         * lib/autotest/general.m4 (AT_INIT): Don't assume that "date +%s"
2117         fails if %s isn't supported.  Problem reported by Ralf Wildenhues.
2119 2005-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2121         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
2122         Merge `-z option' as well for the benefit of Solaris link flags.  Pass
2123         whole-archive (-zallextract, -zdefaultextract) options in the hope of
2124         unique libraries, for the Sun Fortran 95 8.0 compiler.  Bug reported
2125         against Libtool by Yury Puhalsky <pooh@cryptopro.ru>.
2127 2005-03-22  Paul Eggert  <eggert@cs.ucla.edu>
2129         * NEWS: The configure command now warns you if you attempt to use
2130         a directory whose name contains a special character like space,
2131         newline, or "\".
2132         * doc/autoconf.texi (Installation Directory Variables): Allow
2133         "," in file names.  Do not use \@; it's not a portable regexp.
2134         * bin/Makefile.am (edit): Likewise.
2135         * lib/Makefile.am (edit): Likewise.
2136         * tests/Makefile.am (edit): Likewise.
2137         * tests/semantics.at: Likewise.
2138         * tests/torture.at: Likewise.
2139         * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
2140         * lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
2141         * doc/autoconf.texi (File System Conventions): Warn about
2142         unportable file names.
2143         * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
2144         (AC_INIT): Use it.
2145         (_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
2146         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
2147         ac_pwd, and quote srcdir.
2148         * lib/autotest/general.m4 (AT_INIT): Quote file name args.
2150         * doc/autoconf.texi: Fix some systematic formatting problems.
2151         ".)"  needs a following @: if not at the end of a sentence, and
2152         similarly for "!)".  "etc." should be preceded by a comma.
2153         "n-th" -> "@var{n}th".  pdksh is still buggy, so update its date.
2155 2005-03-22  Bruno Haible  <bruno@clisp.org>
2157         * doc/autoconf.texi (Input): Mention that AC_CONFIG_AUX_DIR's
2158         argument is often called 'build-aux'.
2160 2005-03-07  Stepan Kasal  <kasal@ucw.cz>
2162         * doc/autoconf.texi (Quotation Rule Of Thumb): Mention that the
2163           macro AC_TRY_LINK is obsolete.
2164         (Installation Directory Variables): Change `AC_OUTPUT_FILES' to
2165           `AC_CONFIG_FILES'.
2167 2005-02-24  Stepan Kasal  <kasal@ucw.cz>
2169         * lib/autoconf/c.m4 (AC_PROG_CC): Be more careful to skip
2170           `/usr/ucb/cc'; use `cl.exe' to distinguish the MS compiler
2171           from a Common Lisp's `cl'.
2172         (AC_PROG_CXX): Behave according to the documentation: don't
2173           search for $ac_tool_prefix$CCC and $CCC, just set CXX=$CCC;
2174           make the variable CCC precious; use `cl.exe', not `cl'.
2176 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2177             Alexandre Duret-Lutz  <adl@gnu.org>
2179         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
2180         /dev/null, as "configure" shouldn't read stdin, and this insulates
2181         us from problems (e.g., when testing for "cl").  Also, do this
2182         redirection before invoking "hostname" or "uname", and keep the
2183         original input stream available via...
2184         (AS_ORIGINAL_STDIN_FD): ... this new macro.
2185         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
2186         bother with "</dev/null" since it's now done at the top of
2187         'configure'.
2188         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
2189         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2190         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
2191         * doc/autoconf.texi (File Descriptor Macros): New section.
2192         (Printing Messages): Mention it.
2193         * tests/base.at (Input/Output): New test.
2195 2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2197         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
2198         newline if neither \c nor -n work, as that would output two
2199         newlines.  Prefer -n to \c.  Reported by Stepan Kasal.
2201 2005-02-12  Stepan Kasal  <kasal@ucw.cz>
2203         * lib/m4sugar/m4sh.m4 (AS_IF): Define by m4_defun, not m4_define.
2204         This causes that any required macros inside will get before the if.
2205         * doc/autoconf.texi (autom4te.cache): A typo.
2207 2005-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2209         Undo previous change, except keep the change to
2210         lib/autoconf/programs.m4 that replaced grep with shell
2211         pattern-matching.  This is because net-snmp configure reads stdin.
2212         Reported by Noah Misch.
2214 2005-02-11  Paul Eggert  <eggert@cs.ucla.edu>
2216         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
2217         from /dev/null, as "configure" shouldn't read stdin, and this
2218         insulates us from problems (e.g., when testing for "cl").
2219         Suggested by Alexandre Duret-Lutz.  Also, do this redirection
2220         before invoking "hostname" or "uname".
2221         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2222         _AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
2223         * lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
2224         "</dev/null" since it's now done at the top of 'configure'.
2225         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
2226         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
2227         Also, replace grep with shell pattern-matching, to save a process.
2229 2005-02-10  Paul Eggert  <eggert@cs.ucla.edu>
2231         * lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2232         _AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
2233         avoid thinking that Allegro Common Lisp's "cl" command is a C++
2234         compiler.
2236 2005-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2238         * doc/autoconf.texi (Limitations of Usual Tools): Document that
2239         grep -q isn't portable.  Improve grep -s explanation.
2240         Problem reported by Dan Manthey.
2242 2005-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2244         * doc/autoconf.texi (Special Shell Variables): Clarify
2245         PATH_SEPARATOR wording; fix typo in IFS.  Reported by Gary V. Vaughan.
2247 2005-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2249         * doc/autoconf.texi: Use @acronym for DJGPP.
2250         Fix some @code's that should have been @env's, and vice versa.
2251         Sort environment variable names.
2252         Mention that shells no longer inherit IFS.
2253         Don't recommend PATH_SEPARATOR=';' so strongly.
2254         Mention that $RANDOM might expand to the empty string.
2255         "symlink" and "soft link" -> "symbolic link".
2256         Improve mktemp description (reported by Bruno Haible).
2258 2005-02-05  Paul Eggert  <eggert@cs.ucla.edu>
2260         * tests/foreign.at (Libtool): Don't overquote AT_SETUP arg.
2261         * tests/m4sh.at (AS_DIRNAME, AS_BASENAME, AS_MKDIR_P, AS_HELP_STRING):
2262         Likewise.
2263         * tests/semantics.at (AC_C_BIGENDIAN, AC_PATH_PROG & AC_PATH_PROGS):
2264         Likewise.
2266 2005-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2268         * NEWS: Mention AT_COPYRIGHT.
2270         * tests/local.at (AT_CMP): Use diff directly on input files rather
2271         than copying them.
2273         * lib/autoconf/programs.m4 (AC_PROG_SED): Don't look in
2274         /usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
2276 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
2277         and Paul Eggert  <eggert@cs.ucla.edu>
2279         * tests/autotest.at (Empty test suite): New test.
2280         * tests/torture.at (Substitute and define special characters)
2281         (Substitute a 2000-byte string, Define to a 2000-byte string)
2282         (Substitute a newline, Define a newline): New tests.
2284 2005-02-04  Noah Misch  <noah@cs.caltech.edu>
2286         * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
2287         * tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
2288         (AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
2289         * tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
2290         (Standard regular expressions): New test.
2291         (m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
2292         excess test name quoting.
2293         * tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
2294         CPPFLAGS to `configure' instead of setting it in `configure'.
2296         * lib/m4sugar/m4sh.m4 (AS_UNAME): Try only /usr/bin/hostinfo, not
2297         any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
2298         on some platforms.
2300         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_FC_SRCEXT):
2301         s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
2303         * tests/local.at (AT_CMP): New macro.
2304         (AT_DATA_AUTOCONF): Do not call AC_PROG_GREP.
2305         (AC_SAVE_STATE): Move environment grep...
2306         (AT_CHECK_ENV): to here.  Filter out `'$''.  Use AT_CMP.
2307         (AT_CONFIG_CMP): New macro.
2308         (AT_CHECK_MACRO): Run `configure' twice with cache and compare results.
2309         * tests/c.at (Extensions): Do not exit early.
2310         * tests/atlocal.in: Inherit $GREP.
2312         * lib/autoconf/c.m4 (_AC_C_STD_TRY): New macro.
2313         (_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
2315         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
2316         (AC_COPYRIGHT): Factor header comment portion out and move into...
2317         * lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
2318         * lib/autotest/general.at (AT_COPYRIGHT): New macro.
2319         (AT_INIT): Add Autotest copyright notice.  Display copyright notices in
2320         --version output.
2321         * tests/local.at: Add Autoconf test suite copyright notice.
2322         * doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
2324 2005-02-04  Bruno Haible  <bruno@clisp.org>
2325         and Paul Eggert  <eggert@cs.ucla.edu>
2327         * doc/autoconf.texi (Limitations of Usual Tools): New mkstemp entry.
2329 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2331         * lib/m4sugar/m4sugar.m4 (m4_re_escape): Escape ?, ^, \, $ too;
2332         this fixes a bug tickled by the AT_CAPTURE_FILE change noted below.
2334         Try not to generated lines of unlimited length, as POSIX places a
2335         2047-byte limit on line length of portable text files.
2336         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILE):
2337         Use newline as a separator, not space.
2338         * lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Likewise.
2339         (AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not
2340         space.
2342 2005-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2344         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Move func_* to
2345         as_func_*.  Add test to check whether positional parameters
2346         are restored after function return.
2348 2005-02-02  Paul Eggert  <eggert@cs.ucla.edu>
2350         * doc/autoconf.texi (Special Shell Variables): Mention _,
2351         BIN_SH, DUALCASE.  Say that variables other than "status" are safe
2352         if they contain a lower-case letter.  The DUALCASE problem was
2353         reported by Ralf Wildenhues.
2355         * bin/autoconf.as: Don't exit with status 0 after write failure
2356         with --help or --version.
2357         * lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
2358         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
2360 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2362         * doc/autoconf.texi (Limitations of Usual Tools):
2363         Unicos 9 sed limitations.
2364         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Try cf77 before fort77
2365         to get the option-enhanced interface on older Crays.  Try ftn for
2366         Fortran 95 (newer Crays).
2368 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
2370         * man/Makefile.am (.x.1): Go back to the simple solution, but take
2371         care to echo the commands, so the user knows what's going on.
2372         Modified from a suggestion by Stepan Kasal.
2374         * doc/autoconf.texi (autoreconf Invocation): Mention autopoint,
2375         with a cross reference.  Derived from a suggestion by Bruce Korb.
2377 2005-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2379         * doc/autoconf.texi (config.status Invocation): Warn about
2380         discrepancy between CONFIG_SHELL and shell used to invoke 'configure'.
2381         * doc/install.texi (Defining Variables): Likewise.
2382         Based on a proposed patch by Ralf Wildenhues.
2384         * man/Makefile.am (.x.1): Make sure the required generated files
2385         are up to date.  Problem and original solution proposed by Stepan Kasal.
2386         $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
2387         implicit-man-prerequisites): New rules, used by the above.
2389         * doc/make-stds.texi, doc/standards.texi: Sync from gnulib.
2390         * config/config.guess, config/config.sub, config/install-sh: Likewise.
2391         * config/missing, config/texinfo.tex: Likewise.
2393 2005-01-29  Stepan Kasal  <kasal@ucw.cz>
2395         Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
2396         Update the long comment explaining it.
2398         m4_require no longer writes an ``is required by'' line to the
2399         execution stack.  It contains only one bit of non-redundant
2400         information: that the macro was required, not called.  And even
2401         this bit is useless in most situations: have you ever met a macro
2402         which both calls and requires the same macro?
2404         * lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
2405         (_m4_defun_pro_outer): ... only via this macro, for the outermost
2406           macro.
2407         (_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
2408         (m4_expansion_stack_pop): Remove the misplaced comment.
2409         (m4_require): Don't put the ``is required by'' line to the
2410           execution stack; slightly improve the out-of-a-defun error message.
2411         (_m4_divert_grow): New macro, counter for the temporary diversions.
2412         (_m4_require_call): Use it.
2413         * tests/m4sugar.at (m4_require): Expect output without the
2414           ``is required by'' messages.
2416 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2418         * doc/autoconf.texi (Limitations of Usual Tools): Recommend X
2419         rather than x for expr.
2421         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when
2422         this is safe.
2423         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
2424         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
2425         * lib/autotest/general.m4 (AT_INIT): Likewise.
2426         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
2427         * tests/mktests.sh: Likewise.
2429 2005-01-27  Akim Demaille  <akim@epita.fr>
2431         Have autoheader honor --force.
2433         * doc/make-stds.texi, doc/standards.texi: Update from masters.
2434         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
2435         * lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
2436         from masters, so that FileUtils.pm's update_file provide --force
2437         support.
2438         * bin/autoheader.in: Pass $force to update_file so that
2439         config.h.in is always recreated when --force.
2441 2005-01-24  Stepan Kasal  <kasal@ucw.cz>
2443         * doc/autoconf.texi (Introduction): Update Peter Simons' address.
2445 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2447         * doc/autoconf.texi (Limitations of Builtins): Clarify that
2448         "if test ! -d foo; ..." is portable.  Suggested by Stepan Kasal.
2450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
2452         * doc/autoconf.texi (Shell Substitutions): Fix typo in case statement.
2453         Warn about newline stripping in `` and $().  Update Solaris
2454         version to 9.
2455         (Limitations of Builtins): Use expr "X...", not expr "x...", as
2456         X insulates us from future changes to Posix.
2457         (Limitations of Usual Tools): For AS_DIRNAME, warn about newline
2458         stripping.
2460 2005-01-19  Stepan Kasal  <kasal@ucw.cz>
2462         * doc/autoconf.texi (Defining Symbols): Delete the false comment that
2463           you cannot use AC_DEFINE to define macros containing `[' or `]'.
2465 2005-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2467         * doc/autoconf.texi (Limitations of Usual Tools): Document bug
2468         in Solaris 8 join.  Problem reported by Tomohiro Suzuki on
2469         bug-tar mailing list.
2471 2005-01-05  Stepan Kasal  <kasal@ucw.cz>
2473         * lib/m4sugar/m4sugar.m4 (m4_copy): Fix the explanation.
2475 2005-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2477         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
2478         ulongval to be static, to avoid unwanted GCC warning.  Problem
2479         reported by Michael Jennings via Daniel Reed; see
2480         <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
2482 2005-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
2484         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
2485         docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
2486         datadir, infodir, and mandir.  Adjust argument parsing code.
2487         (_AC_INIT_HELP): Update help text.
2488         * doc/autoconf.texi (Installation Directory Variables): Document
2489         new variables.
2491 2005-01-04  Noah Misch  <noah@cs.caltech.edu>
2493         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
2494         not seem to work, assume it does set $(MAKE).
2495         * doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
2497 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
2499         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting.
2501 2005-01-03  Stepan Kasal  <kasal@ucw.cz>
2503         A cleanup of the diversion support in m4sugar.
2505         * lib/m4sugar/m4sugar.m4 (_m4_divert): A typo in description.
2506         (_m4_divert_n_stack): New macro; the expansion is
2507           <newline>m4_divert_stack, if m4_divert_stack is defined, and void
2508           otherwise.
2509         (m4_divert, m4_divert_push, m4_divert_pop, m4_init): Use it.
2510         (m4_divert_push, m4_divert_pop, _m4_defun_epi): Don't expand the word
2511           stored in _m4_divert_diversion or _m4_divert_dump.
2512         (m4_divert_pop): When the parameter is given, compare the symbolic
2513           name with the last diversion pushed on the stack.  Previously, the
2514           current diversion was compared with the numeric value of the
2515           diversion given as the parameter.
2516         (m4_require): If the macro hasn't been expanded yet, call ...
2517         (_m4_require_call): this new macro.
2519 2005-01-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2521         * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
2522         Workarounds for documented `case' limitations.
2524 2005-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2526         * doc/autoconf.texi (Limitations of Usual Tools): Warn about
2527         sed 'command1;command2'.  Problem reported by Ralf Wildenhues.
2529 2005-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2531         * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
2532         bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
2533         bin/ifnames.in, tests/mktests.sh: Update copyright date to 2005.
2535         Patch from Roger Leigh (with some minor changes) as follows:
2536         * NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
2537         Resurrect AC_PROG_CC_STDC.
2538         * doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
2539         AC_PROG_CC_C89, AC_PROG_CC_C99.
2540         (Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
2541         * lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
2542         AC_PROG_CC_C99): New macros.
2543         (AC_PROG_CC_STDC): Use them.
2544         (_AC_PROG_CC_STDC): Remove.
2545         (AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
2546         * THANKS: Add Roger Leigh.
2548 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
2550         * bin/autoreconf.in (autoreconf_current_directory):  AM_INIT_AUTOMAKE
2551         signals that the package uses Automake; a `Makefile.am' is typical but
2552         not essential.  Reported by Magnus Therning.
2553         * tests/torture.at (autoreconf.): New banner.
2554         (autoreconf and non-AC configure): Rename to `Non-Autoconf
2555         AC_CONFIG_SUBDIRS'.
2556         (autoreconf an empty directory): Rename to `Empty directory'.
2557         (Unusual Automake input files): New test.
2559 2004-12-30  Noah Misch  <noah@cs.caltech.edu>
2561         * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
2562         (AT_SETUP): Clear AT_capture_files.
2563         (_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
2564         (AT_KEYWORDS): Fix comment typo.
2565         * tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
2566         * tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
2567         * doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
2569 2004-12-29  Albert Chin-A-Young  <china@thewrittenword.com>
2571         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
2572         If the variable to set is already set, set ac_cv_path_$1
2573         to the preset value so caller can assume ac_cv_path_$1
2574         is available.  (trivial change)
2576 2004-12-27  Noah Misch  <noah@cs.caltech.edu>
2578         * BUGS (Minor Problems): Warn about makefile limitations.
2579         * Makefile.am: Find and update `INSTALL' in $(srcdir).
2580         * man/Makefile.am: Find and update manual pages in $(srcdir).
2582 2004-12-24  Eric Blake  <ebb9@byu.net>
2584         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
2585         shells in subshell, to avoid noise from ash.  (trivial change)
2587 2004-12-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2589         * doc/autoconf.texi (Limitations of Builtins) <case>: Mention
2590         problems with SunOS ksh and backslash escaping, Bourne shells and
2591         closing brackets (both within character classes).  Bug reported
2592         against Libtool by Alexander Kurz <alexander.kurz@qsc.de>.
2593         <read>: New entry.  Mention non-availability of -r.
2595 2004-12-21  Akim Demaille  <akim@epita.fr>
2597         * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
2598         avoid cluttering displayed messages.  Rather, prepend srcdir where
2599         AT_LINE is used for log files.
2601 2004-12-21  Stepan Kasal  <kasal@ucw.cz>
2603         * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
2604         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
2605           no longer part of the macro, quote the occurrence of ``$tmp''.
2606         * doc/autoconf.texi (Forbidden Patterns): Typo.
2608 2004-12-21  Akim Demaille  <akim@epita.fr>
2610         * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
2611         separated from the test title by forcing a white space.
2613 2004-12-21  Akim Demaille  <akim@epita.fr>
2615         Enable Emacs navigation within testsuite.log files.
2617         * lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
2618         use the compilation mode.
2619         (AT_LINE): Point to the srcdir.
2621 2004-12-19  Noah Misch  <noah@cs.caltech.edu>
2623         * tests/Makefile.am (installcheck-local): Use $(bindir).
2624         (check-local, installcheck-local): Pass TESTSUITEFLAGS.
2625         * doc/autoconf.texi (Making testsuite Scripts): Recommend the same
2626         Makefile.am scheme Autoconf now uses.
2628 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
2630         * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
2631         * lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
2633 2004-12-18  Noah Misch  <noah@cs.caltech.edu>
2635         * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
2636         (_AT_CHECK): Use it.
2637         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
2638         (AS_ESCAPE): Fix comment.
2639         * tests/autotest.at: Adjust section banner comments.
2640         (AT_CHECK_AT): Accept STATUS and STDERR.
2641         (AT_CHECK_AT_TEST): Likewise.
2642         (Invalid brace-enclosed parameter expansion)
2643         (Multiline command from M4 expansion)
2644         (Double-M4-quoted command): New tests.
2646 2004-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2648         * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2.
2650 2004-12-17  Akim Demaille  <akim@epita.fr>
2652         * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
2653         m4_pattern_allow.
2654         Suggested by Alexandre Duret-Lutz.
2655         * doc/autoconf.texi (Setting Output Variables): Catch up.
2657 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2659         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment.
2661 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2663         * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
2664           remove the comment which said we cannot.
2666 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2668         Add a specialized check for resolv.h.  Thanks to Gerrit P. Haase,
2669         Reini Urban and Paul Eggert for reporting the dependencies.
2671         * lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
2672         * doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
2673         (AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
2675 2004-12-17  Stepan Kasal  <kasal@ucw.cz>
2677         * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
2678           so that eg. ``autoscan --help'' doesn't truncate it.
2680 2004-12-15  Nicolas Joly  <njoly@pasteur.fr>
2682         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove
2683         generated conftest files.
2685 2004-12-13  Noah Misch  <noah@cs.caltech.edu>
2687         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
2688         tracing on commands with possibly-escaped newlines.
2689         * doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
2690         discontinued behavior and its implications.
2691         * tests/autotest.at (BS-newline in command, ^BS-newline in command)
2692         (BSx641-newline in command, BS-BS-newline in command)
2693         (BSx640-newline in command, Newline-CODE-BS-newline in command)
2694         (Single-quote-BS-newline in command)
2695         (Single-quote-newline-BS-newline in command): New tests.
2697 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
2699         * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
2700           on platforms where it works.
2701         (_AS_TEST_PREPARE): Test for ``test -x''.
2702         (_AS_BROKEN_TEST_PREPARE): Nuke.
2704 2004-12-13  Stepan Kasal  <kasal@ucw.cz>
2706         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
2707         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
2708           give only 4-letter prefix to AS_TMPDIR, comment fixed.
2709         * lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
2710           create the temporary directory.
2711         (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
2713 2004-12-12  Kelley Cook  <kcook@gcc.gnu.org>
2715         * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found.
2716         (trivial change)
2718 2004-12-12  Alexandre Duret-Lutz  <adl@gnu.org>
2720         * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo.
2722 2004-12-11  Noah Misch  <noah@cs.caltech.edu>
2724         * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Rework a shell pattern
2725         to avoid using a negated character class.  Reported by Nicolas Joly.
2726         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Check for similar constructs.
2728 2004-12-10  Paul Eggert  <eggert@cs.ucla.edu>
2730         * man/Makefile.am (autoconf.1, autoheader.1, autom4te.1, autoreconf.1,
2731         autoscan.1, autoupdate.1, ifnames.1, config.guess.1, config.sub.1):
2732         Don't depend on .x file explicitly, since "make" does that for us.
2733         Suggested by Stepan Kasal.
2735         * bin/Makefile.am (MOSTLYCLEANFILES): Renamed from CLEANFILES.
2736         Add *.tmp.
2737         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
2738         ifnames): Factor common code.  And they said it couldn't be done!
2740 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
2742         * bin/.cvsignore: Add autoconf.in.
2743         * tests/.cvsignore: Add wrapper.in.
2744         * lib/autotest/general.m4: Escape '$' in case pattern.
2746 2004-12-09  Noah Misch  <noah@cs.caltech.edu>
2748         * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.
2750         * lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.
2752         * tests/autotest.at: New file.
2753         * tests/suite.at: Include it.
2754         * tests/Makefile.am: Distribute it.
2756         * lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
2757           shell tracing on a command that could contain multiple lines.
2758         * doc/autoconf.text: Document that fact and its implications.
2759         * lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
2760         * tests/autotest.at (Multiline backquote command substitution,
2761           Multiline parameter expansion, Literal multiline command,
2762           Multiline parenthetical command substitution): Remove XFAIL.
2764 2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
2766         * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
2767         and suggest AC_SEARCH_LIBS.  Suggested by Noah Misch and Stepan Kasal.
2769 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
2771         * configure.ac (test suite): Cease to generate wrapper scripts.
2772         * configure: Regenerate.
2773         * lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
2774         (m4f_dependencies): Adjust accordingly.
2775         * tests/Makefile.am (Wrappers): Generate wrapper scripts.
2776         (wrapper.in): Generate it in the build directory.
2777         (MAINTAINERCLEANFILES): Delete wrapper.in.
2778         (CLEANFILES): Add wrapper.in.
2779         * tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
2780         the output.  Replace each $as_me with a @wrap_program@.
2781         * tests/wrapper.in: Delete it; we always build it.
2783         * bin/Makefile.am (autoconf.in): Generate it in the build directory.
2784         (EXTRA_DIST): Remove autoconf.in.
2785         (CLEANFILES): Add autoconf.in.
2786         (autoconf): Find autoconf.in in the build directory.
2787         * bin/autoconf.in: Delete it; we always build it.
2789 2004-12-08  Noah Misch  <noah@cs.caltech.edu>
2791         * lib/autotest/general.m4 (AT_INIT): Replace a `tr' with a `sed'.  Join
2792         PATH members so as to not prepend an empty element.  Move a comment.
2793         * Makefile.am (SUBDIRS): Build in `tests' last.
2794         * tests/Makefile.am (installcheck-local): Add check-local dependencies.
2796 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
2798         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
2799         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
2800         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
2801         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
2803 2004-12-07  Stepan Kasal  <kasal@ucw.cz>
2805         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
2806         patch: extra "-l"s.
2808 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2810         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
2811         looking elsewhere for getmntent.  Problem reported by Mark D. Baushke.
2812         * doc/autoconf.texi (Particular Functions): Mention new behavior.
2814 2004-12-03  Stepan Kasal  <kasal@ucw.cz>
2816         * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
2817           out the common code to ...
2818         (_AC_DEFINE_Q): ... a new macro; simplify the condition about the
2819           value of the #define--default to 1, iff the macro was called
2820           with exactly one parameter.
2822 2004-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2824         * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use
2825         "char c = '\200';" rather than "char c = 0x80;" as the
2826         latter doesn't conform to the strict C standard due to
2827         overflow on signed char hosts.
2829         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89
2830         to -qlanglvl=ansi.  We don't want to disable extensions.
2832 2004-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2834         * doc/autoconf.texi (Particular Programs): @code{$PATH} -> @env{PATH}.
2835         (Using Autotest, testsuite Scripts, Writing testsuite.at):
2836         Reword slightly to avoid some English-language problems noted
2837         by Ralf Wildenhues in:
2838         http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00027.html
2840 2004-11-29  Stepan Kasal  <kasal@ucw.cz>
2842         * NEWS: Add ^L above each release.
2844 2004-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2846         Fix documentation problems reported by Russ Boylan in
2847         <http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
2848         along with some nearby cruft.
2849         * doc/autoconf.texi (Libtool): Libtool can be used without
2850         Automake (not without Autoconf).
2851         (Introduction): Mention lists.gnu.org.
2852         * BUGS: Don't mention bugs.gnu.org.
2853         Remove mention of ancient libtool compatibility problem.
2854         * NEWS: Mention that bugs.gnu.org is kaput.
2855         * README: Likewise.  Mention where mailing list archives can be found.
2857 2004-11-28  Stepan Kasal  <kasal@ucw.cz>
2859         * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
2860         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
2862 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2864         * doc/autoconf.texi (Pretty Help Strings): Go back to
2865         single-quoting assignments to cache variables.
2867 2004-11-23  Stepan Kasal  <kasal@ucw.cz>
2869         * doc/autoconf.texi (Pretty Help Strings): Fix quoting issues
2870         with the examples; fix the bug in MY_ARG_WITH example reported
2871         by Alexandre Duret-Lutz.
2872         * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Enable
2873         expansion of $1 in the comment emitted to configure.
2875 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2877         * doc/autoconf.texi (Pretty Help Strings): Fix typo
2878         in my editing of the previous patch.  Problem reported
2879         by Alexandre Duret-Lutz.
2881 2004-11-22  Stepan Kasal  <kasal@ucw.cz>
2883         * doc/autoconf.texi (Autoconf Language): Explain that
2884         ``descriptions'' may not be double quotes.
2885         (Quotation Rule Of Thumb): Likewise.
2886         (Pretty Help Strings): Likewise; remove the wrong comment;
2887         simplify the examples and improve their quoting.
2889 2004-11-13  Stepan Kasal  <kasal@ucw.cz>
2891         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't check
2892         the $1_found variable, don't test whether the file is executable;
2893         Both things are checked ...
2894         (_AC_PATH_PROG_FEATURE_CHECK): ... here; AS_EXECUTABLE_P replaces
2895         the former ``test -f''.
2896         * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix a typo.
2898 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
2900         * doc/autoconf.texi (Limitations of Usual Tools): Avoid cp -r;
2901         use cp -R instead.
2903 2004-11-10  Derek R. Price  <derek@ximbiot.com>
2905         * doc/autoconf.texi (Limitations of Usual Tools): Note `cp -r'
2906         limitations.  Reorder paragraphs for clarity.
2908 2004-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2910         * doc/autoconf.texi: Standardize spelling of "Posix" (as opposed
2911         to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS
2912         variants", "Unix", and some related minor wording fixups.
2914         (Shellology, Special Shell Variables): Document that the Zsh
2915         problem with NULLCMD was fixed in zsh 3.1.6-dev-18.  Thanks
2916         to Alexandre Duret-Lutz for this info.
2918 2004-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
2920         * doc/autoconf.texi (One-Shot Macros): New node.
2922 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2924         * doc/autoconf.texi (Function Portability): Fix misdescription
2925         of putenv.  Problem reported by Michael Wardle.
2927 2004-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2929         * doc/autoconf.texi (auindex): New macro.
2930         (AU_DEFUN): Use it to fix the bug when the index contained AC_AU_DEFUN.
2931         Problem reported by Stepan Kasal.
2933 2004-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2935         Fix problems reported by Andreas Buening in:
2936         http://lists.gnu.org/archive/html/autoconf-patches/2004-04/msg00004.html
2937         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Set SHELL=/bin/sh
2938         in test makefile.
2939         * lib/autotest/general.m4 (AT_INIT): Don't assume /dev/null is
2940         readable; it's not true in OS/2-emx.
2942 2004-09-04  Paul Eggert  <eggert@cs.ucla.edu>
2944         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): If xmkmf returns
2945         "/usr/include", clear ac_x_includes instead of leaving it as "no"
2946         (trivial change).  Problem and patch reported by Andrew Church in:
2947         http://lists.gnu.org/archive/html/bug-autoconf/2004-04/msg00016.html
2949 2004-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2951         * doc/autoconf.texi: Give AC_DEFINE and AC_DEFINE_UNQUOTED
2952         three args in examples.  Problem reported by Frederik Fouvry in:
2953         http://lists.gnu.org/archive/html/bug-autoconf/2004-09/msg00017.html
2954         Also, fix some minor spacing and punctuation bugs.
2956 2004-09-02  Akim Demaille  <akim@epita.fr>
2958         * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and
2959         "case" to restore ordering.
2960         Reported by Stepan Kasal.
2962 2004-08-26  Akim Demaille  <akim@epita.fr>
2964         * doc/autoconf.texi: Minor typos and stylos.
2966 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2968         * configure.ac (AC_INIT): Bump to 2.59c.
2970 2004-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2972         Version 2.59b.
2974         * README: Add advice about m4 1.4.2.
2976         * Makefile.cfg (wget_files): Remove config.guess, config.sub,
2977         texinfo.tex for now (done by hand now).
2978         * Makefile.maint (wget_files, cvs_files):
2979         Remove ansi2knr.c; nobody uses it.
2980         (ansi2knr.c-url_prefix): Remove.
2981         (cvs-update): Fix test for failure.  I don't know why it ever
2982         worked...
2984         * doc/autoconf.texi: Update URLs, some of which went stale.
2985         Use @uref rather than @href.
2987         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Have configure
2988         handle "--" as per POSIX.  Suggested by Paul Pogonyshev.
2990         * config/config.guess, config/config.sub, config/elisp-comp,
2991         config/install-sh, config/mkinstalldirs, config/texinfo.tex,
2992         doc/fdl.texi, doc/standards.texi: Sync with master copy.
2994         * NEWS, TODO, configure.ac, bin/autoscan.in,
2995         bin/autoupdate.in, bin/ifnames.in, doc/autoconf.texi,
2996         doc/install.texi, lib/Autom4te/Configure_ac.pm,
2997         lib/Autom4te/FileUtils.pm, lib/autoconf/general.m4,
2998         lib/autoconf/programs.m4, lib/autoconf/status.m4,
2999         lib/autotest/general.m4, lib/m4sugar/m4sh.m4,
3000         lib/m4sugar/m4sugar.m4, tests/local.at, tests/m4sh.at,
3001         tests/tools.at, tests/torture.at:
3002         Use "file name" rather than "filename" or "path",
3003         to be consistent with the terminology of the GNU coding standards.
3005 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3007         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C),
3008         AC_C_LONG_DOUBLE): Undo 2004-06-04 change, as it didn't work with
3009         HP-UX 11.23 cc/aCC or Tru64 4.0 cc.  Problem reported by Noah Misch in
3010         <http://lists.gnu.org/archive/html/autoconf/2004-07/msg00004.html>.
3012         More fixes to support spaces in the name of the build directory.
3013         This isn't a complete fix but it's an improvement.
3015         * bin/autoconf.as (autom4te_options): New var.
3016         Use it instead of appending to AUTOM4TE, so that we can allow
3017         spaces in the build directory's absolute name.
3018         * bin/autoheader.in ($autoconf): Allow spaces in file names.
3019         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP, _AT_CHECK,
3020         AT_CHECK_NOESCAPE): Likewise.
3021         * tests/wrapper.as (testdir, AUTOM4TE_CFG, autom4te_perllibdir,
3022         main program): Likewise.
3024 2004-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3026         * lib/autoconf/general.m4 (_AC_INIT_HELP): Quote $ac_popdir uses.
3027         From Ralf Corsepius in:
3028         http://lists.gnu.org/archive/html/autoconf-patches/2004-08/msg00014.html
3030 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3032         * doc/autoconf.texi (Function Portability): Document isinf and
3033         and isnan.  From a suggestion by Kevin Ryde.
3035         * lib/Autom4te/General.pm (END): Return correct exit status even
3036         if unlink succeeds and sets $?.  Needed with Solaris 8's perl 5.00503.
3038 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3040         * tests/torture.at (Deep Package): Use configure.in, not configure.ac,
3041         for compatibility with Automake 1.4.  Reported by J C Fitzgerald in
3042         <http://lists.gnu.org/archive/html/bug-autoconf/2003-08/msg00051.html>.
3044 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
3046         * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): New empty macro.
3047         (AC_CANONICAL_BUILD): Call it to require config.sub and config.guess.
3048         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Likewise for install-sh.
3049         * doc/autoconf.texi (Input): Document AC_REQUIRE_AUX_FILE.
3050         * lib/autom4te.in (Automake-preselections): Preselect
3051         AC_REQUIRE_AUX_FILE.  Automake 1.10 will trace it.
3053 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
3055         * lib/autom4te.in (Automake-preselections): Preselect
3056         AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.  Automake 1.9.1 will
3057         trace them.
3059 2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3061         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
3062         Tru64.
3063         * doc/autoconf.texi (Shellology): Mention BIN_SH.
3064         Document problem with "`""`" in pdksh POSIX mode.
3066 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3068         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
3069         with pdksh, too.  Problem reported by Patrick Welche via
3070         Gary V. Vaughan.
3071         * doc/autoconf.texi (Shellology): Note that set -o posix is
3072         useful for pkdsh, too.
3074 2004-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3076         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
3077         _AS_UNSET_PREPARE, so that we can use $as_unset directly.
3078         Don't fail if ENV or BASH_ENV is readonly.
3079         (AS_SHELL_SANITIZE): Don't fail if ENV, MAIL, MAILPATH, LC_ALL,
3080         etc. are read only.  Problem reported by Ludovic Courtes.
3082 2004-06-23  Noah Misch  <noah@cs.caltech.edu>
3084         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): If the shell is
3085         zsh, disable GLOB_SUBST to avoid backslash handling problems.
3086         (trivial change)
3088 2004-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3090         * doc/autoconf.texi (File System Conventions): Warn about
3091         names like "aux".  Problem reported by Eric Blake.
3093         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY (C)): Use division
3094         by zero instead of array size, so that we can use any arithmetic
3095         constant expression (instead of requiring an integer constant
3096         expression).  This allows us to test expressions like DBL_MAX <
3097         LDBL_MAX, which didn't conform to the C standard using the old
3098         method.
3099         (AC_C_LONG_DOUBLE): Put back in the tests for LDBL_MAX and LDBL_EPSILON,
3100         now that we can do floating-point tests at compile time.
3102 2004-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3104         * lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Don't check LDBL_MAX
3105         and LDBL_EPSILON, as the resulting expression isn't an
3106         integer constant expression and violates the C standard.
3107         Problem reported by Nelson H. F. Beebe.  Also, check
3108         for "L" suffix, and check that long double doesn't have
3109         worse range or precision than double, that mixed-mode
3110         arithmetic doesn't generate a diagnostic, that double
3111         constants fit in long double.
3113 2004-06-03  Kevin Ryde  <user42@zip.com.au>
3115         * doc/autoconf.texi (Function Portability): Add notes on free(NULL),
3116         malloc(0) and realloc(NULL,size).
3118         * doc/autoconf.texi (Shell Substitutions): Spelling error reported by
3119         Bob Proulx.
3121 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3123         * lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
3124         in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].  Problem reported
3125         by Jim Meyering.
3127 2004-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3129         * doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND
3130         can be rewritten using if-then-else.  Suggested by Bruno Haible.
3132 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3134         * doc/autoconf.texi (testsuite Scripts): Fix typo.
3135         Problem reported by Stepan Kasal.
3137 2004-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3139         * tests/Makefile.am (autoconfdir): Fix to match comment (trivial
3140         change).  Patch reported by Ralf Wildenhues in
3141         <http://mail.gnu.org/archive/html/bug-autoconf/2004-05/msg00092.html>.
3143         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): Don't assume that a
3144         function F exists if the compiler and linker let you compile an
3145         expression like (F != 0).  Recent versions of GCC optimize away
3146         the reference to F in that case, since every function address must
3147         be nonzero, so the link succeeds even if F does not exist.
3148         Problem reported by Manu in
3149         <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00060.html>.
3151         * doc/autoconf.texi (Systemology): Standardize on the spelling of
3152         "Unix".  Many uses changed.
3153         (Limitations of Builtins): Explain better why the ! command isn't
3154         portable.
3156 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
3158         * lib/autom4te.in (Automake-preselections): Preselect
3159         LT_SUPPORTED_TAG in lieu of AC_LIBTOOL_TAGS.
3161 2004-05-19  Kevin Ryde  <user42@zip.com.au>
3163         * doc/autoconf.texi (Function Portability): Add strerror_r, cross
3164         referencing AC_FUNC_STRERROR_R.
3166         * doc/autoconf.texi (Particular Functions): In AC_FUNC_CLOSEDIR_VOID,
3167         note pessimistic assumption when cross compiling.
3169 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3171         * doc/autoconf.texi (Limitations of Make): Note that BSD make
3172         (until 2004) invoked subcommands with sh -e, contra POSIX.
3173         Reported by Kevin Ryde.
3175 2004-05-10  Eric Sunshine  <sunshine@sunshineco.com>
3177         * programs.m4 (_AC_PROG_GREP): Fixed bug where PATH argument handed to
3178         _AC_PATH_PROG_FEATURE_CHECK contained leading whitespace (i.e.
3179         "        $PATH:/usr/xpg4/bin"). This resulted in bogus tests, such as
3180         `test -f "        /usr/bin/grep"', which _always_ failed.
3181         (AC_PROG_SED): Ditto bogus PATH fix.
3182         * autoconf.texi (AC_PROG_GREP): Properly document that this macro
3183         requires that grep correctly supports _multiple_ `-e' options, rather
3184         than stating only that grep should accept `-e'.
3186 2004-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3188         Port to C99, which requires that 'exit' be declared.
3190         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use AC_INCLUDES_DEFAULT
3191         to ensure that stdlib.h is included.
3192         * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_SETPGRP,
3193         AC_FUNC_STRTOD, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_FORK, _AC_FUNC_FORK,
3194         _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
3195         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
3196         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
3197         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Include <stdlib.h>
3198         when using 'exit' in a test; C99 requires that 'exit' be declared.
3200 2004-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3202         * doc/autoconf.texi (Particular Programs): AC_PROG_GREP
3203         now prefers 'grep' implementations that accept -e.
3204         (Limitations of Usual Tools): Describe problems of traditional
3205         egrep and fgrep with long input lines, and of traditional grep
3206         with -e.
3207         * lib/autoconf/programs.m4 (AC_PROG_GREP): Check for -e, too.
3208         (_AC_PROG_GREP): Assume 3rd arg is properly quoted for the shell.
3209         All callers changed.  Append /usr/xpg4/bin to the PATH, for
3210         Solaris.
3211         (_AC_FEATURE_CHECK_LENGTH): Discard stderr, so we don't bother
3212         the user with complaints about multiple -e options.
3213         * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep.
3214         Define it with AC_PROG_GREP.
3215         * configure.ac (AC_PROG_GREP): Add.
3216         * lib/freeze.mk (GREP): New macro.
3218 2004-05-02  Eric Sunshine  <sunshine@sunshineco.com>
3220         * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Consult $SHELL as
3221         a possible candidate only after all others fail, rather than
3222         consulting it first.  This improves backward compatibility by
3223         better reflecting the way shell selection occurred in previous
3224         versions of Autoconf, and should help to avoid triggering latent
3225         problems in other packages, such as the one in Automake where zsh
3226         is not handled robustly:
3227         http://mail.gnu.org/archive/html/automake/2004-04/msg00095.html
3228         Although it is not Autoconf's responsibility to work around
3229         problems in Automake, it nevertheless makes sense to avoid
3230         introducing unnecessary incompatibilites.
3232 2004-04-22  Albert Chin-A-Young  <china@thewrittenword.com>,
3233             Gary V. Vaughan  <gary@gnu.org>
3235         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Don't guess
3236         how deeply nested we are when a suitable tool is found, set the
3237         ac_path_TOOL_found flag.
3238         (_AC_PATH_PROG_FEATURE_CHECK): Encapsulate knowledge of how deeply
3239         nested we are in this macro.  Break out of all 3 nested loops if
3240         ac_path_TOOL_found is set.
3242 2004-04-21  Gary V. Vaughan  <gary@gnu.org>
3244         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Break out
3245         of the _AS_PATH_WALK loop too if GNU flavor is found.
3247 2004-04-21  Alexandre Duret-Lutz  <adl@gnu.org>
3249         * doc/autoconf.texi (Limitations of Make): Update documentation
3250         for `$<'.  New entry `Long lines', based on a report from Simon
3251         Josefsson.  Augment the documentation for SHELL = @SHELL@ with a
3252         paragraph about DJGPP, based on a mail from Richard Dawe.
3254 2004-04-20  Paul Eggert  <eggert@twinsun.com>
3256         * tests/c.at (C keywords): Don't assume that GCC supports
3257         "restrict" and "inline", as sufficiently-old GCC versions do not
3258         (also, GCC configured to be in pedantic C89 mode does not).
3259         Problem reported by Sumit Pandya in:
3260         http://mail.gnu.org/archive/html/autoconf/2004-04/msg00092.html
3262         * lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G): Don't
3263         consider -g to work if it generates warnings when plain compiles
3264         don't.  Problem reported by Braden McDaniel in:
3265         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00014.html
3267         * doc/autoconf.texi (Slashes): New section, to document a problem
3268         reported by Jim Meyering in:
3269         http://mail.gnu.org/archive/html/bug-coreutils/2004-02/msg00060.html
3271         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Remove potential
3272         linker output files before linking, to work around IRIX 6 linker bug.
3273         Problem reported by Rainer Orth in:
3274         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00007.html
3276 2004-04-20  Gary V. Vaughan  <gary@gnu.org>
3278         * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
3279         best tool so far counter rely on the tool path variable name to
3280         avoid checks for one tool being affected by the results of running
3281         the length check on a previous tool.
3283         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Take an additional
3284         match expression argument, as different greps have different
3285         regular expression flavours.
3286         (AC_PROG_FGREP): Pass 'FGREP'. fgrep treats all match chars as
3287         literals.
3288         (AC_PROG_EGREP): Pass 'EGREP$'.
3289         (AC_PROG_GREP): Pass 'GREP$'.
3291 2004-04-20  Albert Chin-A-Young  <china@thewrittenword.com>
3293         * lib/autoconf/programs.m4 (AC_PROG_GREP): Cache variable
3294         is `ac_cv_path_GREP', not `oc_cv_path_GREP'.
3296 2004-03-29  Paul Eggert  <eggert@twinsun.com>
3298         * doc/autoconf.texi (Particular Headers, Particular Types, Generic
3299         Types, Specific Compiler Characteristics, System Services,
3300         Obsolete Macros): Use 'long int', 'short int', 'unsigned int'
3301         etc. consistently instead of 'long', 'short', 'unsigned' etc.
3302         * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN): Likewise.
3303         * lib/autoconf/functions.m4 (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES):
3304         Likewise.
3305         * lib/autoconf/headers.m4 (AC_HEADER_SYS_WAIT): Likewise.
3306         * lib/autoconf/types.m4 (AC_TYPE_GETGROUPS, AC_TYPE_SIZE_T,
3307         AC_TYPE_OFF_T): Likewise.
3308         * tests/semantics.at (AC_CHECK_TYPES: backward compatibility):
3309         Likewise.
3311         * tests/foreign.at (Libtool): Create an empty aclocal.m4, to
3312         pacify libtool 1.5.2.  Fix quoting problems in sed command.
3314 2004-03-28  Paul Eggert  <eggert@twinsun.com>
3316         * doc/autoconf.texi (Particular Structures): AC_STRUCT_TIMEZONE
3317         now defines HAVE_DECL_TZNAME if it is declared, when
3318         HAVE_STRUCT_TM_TM_ZONE is not defined.
3319         * lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Implement this.
3320         Do not assume atoi.  Rely on HAVE_DECL_TZNAME when testing
3321         for HAVE_TZNAME.
3323 2004-03-28  Steven G. Johnson  <stevenj@fftw.org>
3325         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Corrected
3326         superfluous backslashing of quotes (") in sed expressions;
3327         thanks to Paul Eggert.
3329 2004-03-26  Steven G. Johnson  <stevenj@alum.mit.edu>
3331         * lib/autoconf/fortran.m4 (_AC_PROG_FC): new name of Intel
3332         Fortran compiler is ifort, also added pghpf; thanks to Nelson
3333         H. F. Beebe for the bug report.
3335 2004-03-26  Steven G. Johnson  <stevenj@fftw.org>
3337         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): fix for
3338         quoted -cmdline argument in Portland Group compiler (bug
3339         reported by Jeffrey J. Barteet).
3341 2004-03-25  Kevin Ryde  <user42@zip.com.au>
3343         * doc/autoconf.texi (Specifying Names): Move cross_compiling ovindex to
3344         (Run Time): ... here, where it's now mentioned.
3346 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
3348         * doc/autoconf.texi (autom4te Invocation): Language Autoconf
3349         inherits from language Autoconf-without-aclocal-m4.
3350         (Customizing autom4te): Adjust example; the cache must now be
3351         disabled for language Autoconf-without-aclocal-m4.
3353 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
3354             Nathanael Nerode  <neroden@twcny.rr.com>
3356         * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
3357         AC_CHECK_TOOLS): Warn if a cross-tool is found without
3358         a prefix.
3359         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
3360         AC_CHECK_TARGET_TOOLS): New macros.
3361         * doc/autoconf.texi (Generic Programs): Document
3362         (AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
3363         AC_CHECK_TARGET_TOOLS, and warn for future changes
3364         in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
3365         AC_CHECK_TOOLS.
3366         (Specifying Names): Document the reason for these future
3367         behavioral changes.
3368         * tests/mktests.sh: Do not generate tests for the
3369         new macros.
3370         * NEWS: Document these changes.
3372         * doc/autoconf.texi: Avoid macros with unbraced arguments,
3373         they make TeX hang up.
3375 2004-03-15  Paul Eggert  <eggert@bogus.example.com>
3377         * NEWS: New macro AC_CHECK_ALIGNOF.
3378         * doc/autoconf.texi (Generic Compiler Characteristics): Document it.
3379         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use long int rather than
3380         int; avoid "a `$1'" since this isn't grammatical if $1 begins with a
3381         vowel.
3382         (AC_CHECK_ALIGNOF): New macro.
3383         * tests/mktests.sh (ac_exclude_list): Exclude AC_CHECK_ALIGNOF.
3384         * tests/semantics.at (AC_CHECK_ALIGNOF): Add tests similar to
3385         those for sizeof.
3387 2004-03-03  Paul Eggert  <eggert@twinsun.com>
3389         * bin/Makefile.am (edit): Don't use $< in a context where
3390         POSIX doesn't require support for it.  Use $@.in instead.
3391         Problem reported by Anthony N. Frasso in
3392         <http://mail.gnu.org/archive/html/autoconf/2004-03/msg00008.html>.
3393         * bin/autoscan.in, bin/autoupdate.in: Add @configure_input@ comment.
3395 2004-02-23  Gary V. Vaughan  <gary@gnu.org>
3397         * bin/autoreconf.in (autoreconf_current_directory): Recognize LT_INIT
3398         from the next generation of Libtool.
3399         * lib/autom4te.in (Autoreconf-preselections): Ditto.
3401 2004-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
3403         * doc/autoconf.texi (Limitations of Usual Tools) <mkdir>: `mkdir -p'
3404         is not always thread-safe.  Report from Nathanael Nerode.
3406 2004-02-18  Paul Eggert  <eggert@twinsun.com>
3408         Fix a dependencies problem, stemming from a Autoconf 2.59 build
3409         problem on QNX reported by Stephen Rasku in
3410         <http://mail.gnu.org/archive/html/bug-autoconf/2004-02/msg00066.html>.
3412         * bin/Makefile.am ($(srcdir)/autoconf.in): Depend on
3413         $(m4sh_m4f_dependencies); this removes a FIXME.
3414         * tests/Makefile.am ($(srcdir)/wrapper.in): Likewise.
3415         (MAINTAINERCLEANFILES): Split into pieces,
3416         one per related section.  Add $(srcdir)/wrapper.in.
3418 2004-02-09  Paul Eggert  <eggert@twinsun.com>
3420         * doc/autoconf.texi (Setting Output Variables): Emphasize that
3421         AC_SUBST provides no portable way to escape literal newlines.
3423         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
3424         flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
3425         Darwin uses -lcrt2.o and there's little point to cataloging all
3426         the system variants.  Partial fix reported by Andreas Waechter in:
3427         http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
3428         for bug reported by Nelson H. F. Beebe in:
3429         http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html
3431 2004-02-04  Paolo Bonzini  <bonzini@gnu.org>
3433         * doc/autoconf.texi (AU_DEFUN): Fix English,
3434         suggested by Paul Eggert.
3435         * lib/autoconf/autoupdate.m4: Correct reference to
3436         acobsolete.m4, suggested by Alexandre Duret-Lutz.
3438 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
3440         * bin/autoupdate.in: Define __file__ so that warnings
3441         refer to the correct file.
3442         * doc/autoconf.texi (AU_DEFUN): Describe more correctly
3443         the behavior of the third argument.
3444         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Describe more
3445         correctly the behavior of the third argument.  Document
3446         what the three macros that AU_DEFUN defines do.  Fix
3447         warning message when the third argument includes $0
3448         (reported by Alexandre Duret-Lutz).
3450 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
3451             Eric Sunshine  <sunshine@sunshineco.com>
3452             Paul Eggert  <eggert@twinsun.com>
3454         * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
3455         (AS_INIT): Output shell initialization there. Removed optional
3456         parameter. Expand _AS_SHELL_FN_SPY.
3457         (AS_INIT_WITH_SHELL_FN): Removed.
3458         (_AS_SHELL_FN_SPY): New macro.
3459         (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
3460         macros.
3461         (AS_SHELL_SANITIZE): Remove loop to find better shell
3462         and documentation for the parameter.
3463         (_AS_DETECT_BETTER_SHELL): Move it here.
3464         (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
3465         (_AS_RUN): Move it here, support testing with eval.
3466         (AS_REQUIRE_SHELL_FN): Require shell functions when
3467         it is used.
3468         (_AS_LINENO_WORKS): Put around braces, we do not
3469         trigger the bash bug anymore.
3470         * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
3471         use AS_INIT_WITH_SHELL_FN.
3472         * bin/autoconf.in, tests/wrapper.in: Regenerated.
3474 2004-01-30  Paolo Bonzini  <bonzini@gnu.org>
3476         * bin/autoupdate.in: Trace AU_DEFINE instead of AU_DEFUN.
3477         * doc/autoconf.texi: Don't say that the third parameter
3478         is broken.
3479         * lib/autoconf/autoupdate.m4 (AU_DEFINE): New dummy macro.
3480         (AU_DEFUN): Honor the third parameter, create autoupdate
3481         macros with AU_DEFINE.
3482         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H,
3483         AC_DIR_HEADER): Use AU_DEFUN's third parameter.
3484         * lib/autoconf/lang.m4 (AC_LANG_SAVE): Likewise.
3485         * lib/autoconf/programs.m4 (AC_RSH): Likewise.
3486         * lib/autoconf/specific.m4 (AC_HAVE_POUNDBANG,
3487         AC_ARG_ARRAY, AC_CYGWIN, AC_EMXOS2, AC_MINGW32,
3488         AC_XENIX_DIR): Likewise.
3489         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS,
3490         AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Likewise.
3491         * lib/autoconf/status.m4: Remove FIXME.
3492         * tests/local.at (AT_CHECK_AU_MACRO): Ignore stderr, check
3493         that the macro is not present anymore in the updated
3494         configure.ac.
3495         * tests/tools.at (autoupdate AC_LINK_FILES): Ignore stderr
3496         of autoupdate.
3498 2004-01-28  Paul Eggert  <eggert@twinsun.com>
3500         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Add 2004 to
3501         copyright years.
3502         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Add 1992 thorugh
3503         2003 (except 1997) to the list of copyright years.  This undoes
3504         the 2003-05-22 change, which removed the older years from the list.
3505         * lib/autoconf/status.m4 (AC_OUTPUT): Update copyright date to 2004.
3507 2004-01-27  Gary V. Vaughan  <gary@gnu.org>
3508             Albert Chin-A-Young  <china@thewrittenword.com>
3510         * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
3511         grep or ggrep program in PATH that accepts as long lines as
3512         possible.
3513         * lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
3514         AC_PROG_GREP.
3515         (AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
3516         egrep and fgrep respectively if $GREP -E/-F don't work.
3517         (_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
3518         _AC_PROG_GREP, and AC_PROG_SED.
3519         (_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
3520         longest input length accepted by a command.
3521         (AC_PROG_SED): Use it.
3522         * doc/autoconf.texi (Particular Programs): Document the changes.
3523         * NEWS: Updated.
3525 2004-01-27  Paul Eggert  <eggert@twinsun.com>
3527         * bin/autoconf.as ($version): Update copyright from 2003 to 2004.
3528         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
3529         bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: Likewise.
3530         * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Likewise.
3532         * Makefile.in, aclocal.m4, configure, bin/Makefile.in,
3533         bin/autoconf.in, config/Makefile.in, config/config.guess,
3534         config/config.sub, config/install-sh, config/mdate-sh,
3535         config/mkinstalldirs, config/texinfo.tex, doc/Makefile.in,
3536         lib/Makefile.in, lib/Autom4te/Makefile.in,
3537         lib/autoconf/Makefile.in, lib/autoscan/Makefile.in,
3538         lib/autotest/Makefile.in, lib/emacs/Makefile.in,
3539         lib/m4sugar/Makefile.in, man/Makefile.in, man/autoconf.1,
3540         man/autoheader.1, man/autom4te.1, man/autoreconf.1,
3541         man/autoscan.1, man/autoupdate.1, man/config.guess.1,
3542         man/config.sub.1, man/ifnames.1, tests/Makefile.in,
3543         tests/acc.at, tests/acfortran.at, tests/acfunctions.at,
3544         tests/acgeneral.at, tests/acheaders.at, tests/aclang.at,
3545         tests/aclibs.at, tests/acspecific.at, tests/acstatus.at,
3546         tests/actypes.at: Regenerate and/or sync with original
3547         sources.
3549 2004-01-26  Paul Eggert  <eggert@twinsun.com>
3551         * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
3552         HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
3553         Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
3554         not <inttypes.h>.  Problem reported by Tim Mooney in
3555         <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
3556         * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
3557         Likewise.
3559         * lib/autoconf/programs.m4 (AC_PROG_SED): Use diff, not sed;
3560         otherwise "make check" fails because it forbids cmp (I guess
3561         because cmp treats files as binary on DOS-like systems).
3563         * tests/mktests.sh: Update copyright date to 2004, since some tests
3564         have changed in 2004.
3566 2004-01-23  Gary V. Vaughan  <gary@gnu.org>
3568         * lib/autoconf/programs.m4 (AC_PROG_SED):  New macro to test for a
3569         non-truncating sed or gsed program in PATH.
3570         * tests/acprograms.at: Add it.
3571         * doc/autoconf.texi (Particular Programs): Document it.
3572         * NEWS: Updated.
3574 2004-01-15  Paul Eggert  <eggert@twinsun.com>
3576         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
3577         -std1 disables some useful extensions on Tru64.  Problem reported
3578         by N. Lichtmaier in
3579         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
3581 2004-01-14  Paul Eggert  <eggert@twinsun.com>
3583         * doc/autoconf.texi (Programming in M4sh): Document that
3584         AS_MKDIR_P succeeds if the destination is a symbolic link
3585         to an existing directory.
3586         (Limitations of Usual Tools): Note that mkdir -p might not
3587         succeed on symlinks to directories.
3589 2004-01-13  Paul Hilfinger  <hilfinger@CS.Berkeley.EDU>
3591         * lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
3592         * bin/autoheader.in: Grammar fix in message.
3593         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
3594         Test for dir before calling mkdir -p.  (trivial changes)
3596 2004-01-13  Eric Blake  <ebb9@byu.net>
3598         * doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
3599         AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.  (trivial change)
3601 2004-01-10  Jim Meyering  <jim@meyering.net>
3603         * doc/autoconf.texi (Running the Preprocessor): Correct grammar.
3605 2004-01-09  Paul Eggert  <eggert@twinsun.com>
3607         * lib/autoconf/general.m4: Fix bug: AC_CHECK_SIZEOF evokes a warning
3608         with `autoconf -Wall,error'.  Bug reported by Eric Blake in:
3609         http://mail.gnu.org/archive/html/autoconf-patches/2004-01/msg00000.html
3610         (_AC_COMPUTE_INT_COMPILE): Invoke _AC_COMPILE_IFELSE, not
3611         AC_COMPILE_IFELSE, since we now assume our caller invokes
3612         AC_LANG_COMPILER_REQUIRE, for symmetry with _AC_COMPUTE_INT_RUN.
3613         (_AC_COMPUTE_INT_RUN): Likewise, for _AC_RUN_IFELSE instead
3614         of AC_RUN_IFELSE; this avoids the warning mentioned above.
3615         (_AC_COMPUTE_INT): Invoke AC_LANG_COMPILER_REQUIRE.
3617 2004-01-07  Paul Eggert  <eggert@twinsun.com>
3619         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Avoid \$ inside
3620         `"'...'"`, as it's confusing (and I suspect it may not work on
3621         some platforms).  The code was incorrect anyway, as it assumed
3622         that \$ evaluated to itself in that context.  Reported by
3623         Alexandre Duret-Lutz.
3625 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
3627         * lib/autom4te.in (Automake-preselections): Preselect AC_LIBTOOL_TAGS
3628         and _LT_AC_TAGCONFIG.
3630 2004-01-06  Paul Eggert  <eggert@twinsun.com>
3632         * doc/autoconf.texi (One Macro Call): Fix an incorrect
3633         example, and add more examples.  Reported by Eric Sunshine.
3635 2004-01-05  Paul Eggert  <eggert@twinsun.com>
3637         * doc/autoconf.texi (Limitations of Usual Tools):
3638         Remove warning against "rm -fr" introduced yesterday; it
3639         was a false alarm.
3641         * bin/Makefile.am (autoconf, autoheader, autom4te, autoreconf,
3642         autoscan, autoupdate, ifnames): Don't use chmod -w.
3643         * lib/Makefile.am (autom4te.cfg): Likewise.
3644         * doc/autoconf.texi (Limitations of Usual Tools): Warn against
3645         "chmod -w".
3647 2004-01-04  Paul Eggert  <eggert@twinsun.com>
3648             Paolo Bonzini  <bonzini@gnu.org>
3650         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Speed up sed scripts
3651         by doing lineno substitution only on lines containing "$LINENO".
3653 2004-01-04  Paul Eggert  <eggert@twinsun.com>
3655         * lib/autoconf/general.m4 (AC_ARG_PROGRAM):
3656         Use "rm -f" to remove conftest.sed, not plain "rm".
3657         Bug reported by David Relson in
3658         <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00011.html>.
3660         * Makefile.am (autom4te-update):
3661         Replace "rm -rf" and "rm -fr" with "rm -f -r", as POSIX requires.
3662         * Makefile.maint (my-distcheck, do-po-update): Likewise.
3663         * doc/autoconf.texi (Guidelines): Likewise.
3664         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Likewise.
3665         * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Likewise.
3666         * lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
3667         * lib/autotest/general.m4 (AT_INIT): Likewise.
3668         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
3669         * tests/Makefile.am (clean-local): Likewise.
3670         * tests/tortue.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS,
3671         srcdir): Likewise.
3672         * doc/autoconf.texi (Limitations of Usual Tools):
3673         Warn against "rm -fr".
3675 2004-01-03  Paul Eggert  <eggert@twinsun.com>
3677         * doc/autoconf.texi (Limitations of Usual Tools): Mention that cc
3678         -c -o might not work.  From a suggestion by Kevin Ryde.
3679         (C Compiler, Generating Sources, Limitations
3680         of Usual Tools, Limitations of Make, Making testsuite Scripts):
3681         Don't put '-o' after non-options, as POSIX doesn't allow this.
3682         Mention that cc's name might be gcc or c89 or whatever.
3684 2004-01-04  Kevin Ryde  <user42@zip.com.au>
3686         * doc/autoconf.texi: Add various further index entries.
3688 2003-12-29  Paul Eggert  <eggert@twinsun.com>
3690         * bin/autoreconf.in (autoreconf_current_directory):
3691         Fix typo: mkdir without umask arg.
3693 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
3695         * doc/autoconf.texi (Limitations of Make) <Automatic rule rewriting>:
3696         Documents OSF1/Tru64 make behavior.  Replace `VPATH = ../src' by
3697         `VPATH = ../pkg/src' in examples to make the OSF1/Tru64 make
3698         explanation clearer.
3700 2003-12-24  Andreas Schwab  <schwab@suse.de>
3702         * doc/autoconf.texi (Default Includes): Fix misspelling of
3703         AC_INCLUDES_DEFAULT.
3705 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
3707         * configure.ac: Test if sh -n works.
3708         * configure: Regenerate.
3709         * tests/atlocal.in: Store the result here.
3710         * tests/local.at (AT_CHECK_SHELL_SYNTAX): Extracted from
3711         tools.at, looking in atlocal's ac_cv_sh_n_works instead
3712         of explicitly testing.
3713         (AT_CHECK_PERL_SYNTAX): Moved from tools.at.
3714         (AT_CHECK_AUTOCONF): Test for the configure script syntax.
3715         * tests/tools.at (Syntax of the shell scripts): Simplify
3716         using AT_CHECK_SHELL_SYNTAX.
3717         (Syntax of the Perl scripts): Remove definition of
3718         AT_CHECK_PERL_SYNTAX.
3720 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
3722         * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Redirect
3723         stderr to /dev/null.
3724         * bin/autoconf.in: Regenerate.
3725         * bin/wrapper.in: Regenerate.
3727 2003-11-26  Paolo Bonzini  <bonzini@gnu.org>
3729         * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE):
3730         Extracted from AS_SHELL_SANITIZE.
3731         (_AS_SHELL_FN_WORK, AS_INIT_WITH_SHELL_FN): New
3732         macros.
3733         (AS_SHELL_SANITIZE): Move reinvocation code from
3734         _AS_LINENO_WORKS, use it to find out if shell
3735         functions work.
3736         (_AS_LINENO_WORKS): Don't find another shell if $LINENO
3737         does not work.
3738         (AS_INIT): Pass parameter down to AS_SHELL_SANITIZE.
3739         (AS_REQUIRE_SHELL_FN): Test that AS_INIT_WITH_SHELL_FN
3740         was called.
3741         * lib/autotest/general.m4: Use AS_INIT_WITH_SHELL_FN.
3742         * bin/autoconf.in: Regenerate.
3743         * tests/wrapper.in: Regenerate.
3744         * tests/tools.at: Test the syntax of tests/autoconf
3745         and tests/testsuite.
3747 2003-11-24  Akim Demaille  <akim@epita.fr>
3749         * config/announce-gen (&print_locations, &print_signatures)
3750         (&sizes): New.
3751         Use them.
3752         No longer rely on Gnus to inline the list of signatures: compute
3753         them on the fly.
3755 2003-11-24  Akim Demaille  <akim@epita.fr>
3757         * doc/autoconf.texi (Particular Programs): AC_PROG_LEX can
3758         override some files.
3759         (Input): AC_CONFIG_AUX_DIR(aux) is a bad idea on DOS.
3760         From Debian Autoconf 2.58.
3762 2003-11-24  Akim Demaille  <akim@epita.fr>
3764         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote $ac_popdir
3765         uses.
3766         From Debian Autoconf 2.58.
3768 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
3770         * TODO: Remove already done things.  Update the part about finding
3771         tools for the target.
3773 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
3775         * lib/autoconf/headers.m4 (AC_USG, AC_MEMORY_H, AC_DIR_HEADER):
3776         Make wording more consistent.
3777         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
3778         Explain the transition better.
3779         * lib/autoconf/types.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): Explain
3780         the transition better.
3782 2003-11-24  Paolo Bonzini  <bonzini@gnu.org>
3784         * doc/autoconf.texi (Obsoleting Macros): Don't document the third
3785         parameter of AU_DEFUN.
3786         * lib/autoconf/autoupdate.m4 (AU_DEFINE): Remove.
3787         (AU_DEFUN): Remove the third parameter, it was not used.
3788         Use AC_DEFUN directly, not AU_DEFINE.
3789         * lib/autoconf/status.m4 (AC_LINK_FILES): Move the message into
3790         the expanded body, consistently with other macros such as AC_USG.
3792 2003-11-17  Paul Eggert  <eggert@twinsun.com>
3794         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Put at least 14 bytes
3795         into the initial confdefs.h, to work around a bug in NextStep 3.3
3796         patch 3 reported by Eric Sunshine.
3798 2003-11-15  Kevin Ryde  <user42@zip.com.au>
3800         * doc/autoconf.texi (Using System Type): Revise, showing $host rather
3801         than $target since the latter is not usual, add guidelines on when to
3802         use or not use the system type.
3804 2003-11-12  Derek Price  <derek@ximbiot.com>
3806         * doc/autoconf.texi (Limitations of Usual Tools): Fix what looks like a
3807         typo misrepaired by an auto-spellcheck.
3809 2003-11-12  Akim Demaille  <akim@epita.fr>
3811         * bin/autoreconf.in (&parse_args): Don't call automake with
3812         --force-missing unless it actually supports it.
3813         From Debian #219336.
3815 2003-11-12  Akim Demaille  <akim@epita.fr>
3817         * configure.ac: Bump to 2.59a.
3818         Require 2.59.
3820 2003-11-06  Akim Demaille  <akim@epita.fr>
3822         Version 2.59.
3824 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
3826         * lib/autoconf/status.m4 (_AC_SRCPATHS): Fix use of AS_SET_CATFILE
3827         so that ac_abs_builddir, ac_abs_top_builddir, ac_abs_srcdir,
3828         and ac_abs_top_srcdir are absolute paths.
3829         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Remove misleading comment.
3831 2003-11-05  Akim Demaille  <akim@epita.fr>
3833         * configure.ac: Bump to 2.58a.
3835 2003-11-05  Kevin Ryde  <user42@zip.com.au>
3837         * doc/autoconf.texi (Using Autotest): Avoid @strong{Note: ...}, since
3838         it provokes a warning from makeinfo about looking like a cross
3839         reference in info output.
3841         * doc/autoconf.texi (Function Portability): Add notes on signal
3842         handler return type, as per AC_TYPE_SIGNAL.
3844 2003-11-04  Akim Demaille  <akim@epita.fr>
3846         Version 2.58.
3847         * doc/standards.texi: Update from master.
3849         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FREEFORM.
3851 2003-11-04  Akim Demaille  <akim@epita.fr>
3853         AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
3854         computing the absolute path to d1 in the source hierarchy: it may
3855         not exist at all.  So don't cd into it.
3856         From Alexandre Duret-Lutz.
3857         http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
3859         * lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
3860         From Paul Eggert, but named after Perl's IO::Spec->catfile.
3861         * doc/autoconf.texi (Programming in M4sh): Document.
3862         * lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
3864 2003-11-03  Pavel Roskin  <proski@gnu.org>
3866         * doc/autoconf.texi (Generic Structure Checks): Describe
3867         action-if-found and action-if-not-found in AC_CHECK_MEMBERS.
3869 2003-10-31  Akim Demaille  <akim@epita.fr>
3871         * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
3872         (GNU Fortran): New.
3873         * doc/autoconf.texi (Language Choice): Document.
3874         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
3875         the current language is Fortran.
3877 2003-10-31  Akim Demaille  <akim@epita.fr>
3879         * bin/autom4te.in (&freeze): Use a less likely warning separator
3880         than `\n\n', so that `\n\n\n' is valid in warnings.
3881         Reported by Steve Huston.
3883 2003-10-28  Akim Demaille  <akim@epita.fr>
3885         * Makefile.cfg (local_updates, executable-update): Tweak to be
3886         robust to parallel makes.
3887         Suggested by Alexandre Duret-Lutz.
3889 2003-10-27  Akim Demaille  <akim@epita.fr>
3891         * Makefile.cfg (executable-update): New.
3892         (local_updates): Call it.
3894 2003-10-27  Akim Demaille  <akim@epita.fr>
3896         * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
3897         Don't remove core.* as it may remove valid user files.
3898         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
3899         (AC_FUNC_UTIME_NULL): Likewise.
3901 2003-10-23  Akim Demaille  <akim@epita.fr>
3903         Version 2.57g.
3904         * config/config.guess, config/config.sub: Upgrade from masters.
3906 2003-10-23  Akim Demaille  <akim@epita.fr>
3908         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Functions using
3909         AC_COMPILE_IFELSE that use break skip the clean up.  So do it by
3910         hand...
3912 2003-10-23  Akim Demaille  <akim@epita.fr>
3914         * lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_COMPILE_IFELSE):
3915         Don't forget to remove conftest.err.
3917 2003-10-23  Akim Demaille  <akim@epita.fr>
3919         * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
3920         same object file in $LIBOBJS.
3921         Reported by Alexandre Duret-Lutz & Derek Robert Price.
3922         * doc/autoconf.texi (Generic Functions): Adjust.
3924 2003-10-20  Paul Eggert  <eggert@twinsun.com>
3926         * lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE, _AS_TR_CPP_PREPARE):
3927         Use 'eval', so that the resulting configure scripts work even if
3928         the current directory has a weird file name like 'y%s+%pp%;s%@%_%g'.
3930 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
3932         * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
3933         * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
3934         (_AC_LINK_IFELSE): Check the werror flag.
3935         * doc/autoconf.texi (Generic Compiler Characteristics): Document
3936         AC_LANG_WERROR.
3937         * NEWS: Mention it.
3939 2003-10-20  Daniel Jacobowitz  <drow@mvista.com>
3941         * lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Override
3942         _AC_COMPILER_EXEEXT to attempt a link.  If linking fails,
3943         override AC_LINK_IFELSE.
3945 2003-10-15  Paul Eggert  <eggert@twinsun.com>
3947         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug in
3948         pdksh 5.2.14.  Bug reported by Ralf Corsepius.
3949         * doc/autoconf.texi (Shellology): Mention the Korn shell and pdksh.
3950         Mention /usr/dt/bin/dtksh on Solaris.
3951         (Shell Substitutions): Warn about $((...)).
3952         (Parentheses): New section.
3954 2003-10-15  Kevin Ryde  <user42@zip.com.au>
3956         * doc/autoconf.texi (Function Portability): Add @prindex for exit.
3957         Add putenv and unsetenv.  Add sysconf _SC_PAGE_SIZE.
3959 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3961         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Trivial fix for vfork
3962         cross test.
3964 2003-10-11  Steven G. Johnson  <stevenj@alum.mit.edu>
3966         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Use the new official
3967         name for the GNU Fortran 95+ compiler, 'gfortran', not 'g95'.
3969 2003-10-10  Andreas Schwab  <schwab@suse.de>
3971         * bin/autoheader.in: Avoid empty first line in --version and
3972         --help output.
3973         * bin/ifnames.in: Likewise.
3975 2003-10-09  Paul Eggert  <eggert@twinsun.com>
3977         * lib/Autom4te/XFile.pm: Don't assume -j is solo.
3978         Issue a more-informative diagnostic.
3979         Problems reported by Eric Sunshine.
3981 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
3983         * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
3984         -mGLOB_options_string stuff for Intel ifc, which can cause
3985         _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
3986         pattern-matching instead of grep.
3988 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
3990         * doc/autoconf.texi: Document new FC Fortran macros.
3992 2003-10-08  Gary V. Vaughan  <gary@gnu.org>
3994         * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
3995         that future autopoint/aclocal/automake/autoreconf will be able
3996         to trace to find where to install local m4 macros.
3997         * doc/autoconf.texi (Input): Document it.
3998         * NEWS: Updated.
4000 2003-10-06  Gary V. Vaughan  <gary@gnu.org>
4002         * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add
4003         -lcrtbegin.o to list of ignored flags and fix underquoting of
4004         -lcrt[01].o.
4006 2003-10-04  Steven G. Johnson  <stevenj@ab-initio.mit.edu>
4008         * lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Use language-specific
4009         cache variable instead of $G77 to decide whether to include -O2,
4010         since $G77 is specific to Fortran 77.
4012 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
4014         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
4015         free" flag.  Re-order flags tested into rough order of popularity.
4017 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
4019         * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
4020         arguments so that it can be used with syntax identical to
4021         AC_PROG_F77, and so that we can more easily decide to
4022         remove/deprecate the DIALECT optional argument in the future if it
4023         proves troublesome.
4024         (AC_FC_FREEFORM): Exit 77 upon failure to fix test suite for
4025         non-freeform-supporting compilers.  Document freeform flags.
4027 2003-10-03  Akim Demaille  <akim@epita.fr>
4029         * configure.ac: Look for emacs, not macs.
4030         Reported by Eric Sunshine.
4032 2003-10-03  Akim Demaille  <akim@epita.fr>
4034         * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
4035         * bin/autoreconf.in (autoreconf_current_directory): Create the
4036         AUX_DIR if needed, for sake of automake --add-missing etc.
4037         Suggested by Alexandre Duret-Lutz.
4039 2003-10-03  Akim Demaille  <akim@epita.fr>
4041         * configure.ac: Quotation and formatting changes.
4042         (EMACS): Don't set it if it is not recent enough to support
4043         autoconf-mode.el.
4044         From Eric Sunshine.
4046 2003-10-02  Akim Demaille  <akim@epita.fr>
4048         * bin/ifnames.in (&scan_file): Skip C++ comments.
4049         From Jeremy Yallop.
4051 2003-10-01  Pavel Roskin  <proski@gnu.org>
4053         * doc/autoconf.texi (Particular Structure Checks):
4054         Fix misspelling of HAVE_STRUCT_STAT_ST_BLOCKS.
4056 2003-10-01  Akim Demaille  <akim@epita.fr>
4058         Version 2.57f.
4060 2003-09-30  Paul Eggert  <eggert@twinsun.com>
4062         * lib/Autom4te/XFile.pm: Use Errno.
4063         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
4064         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
4066 2003-09-30  Akim Demaille  <akim@epita.fr>
4068         * config/announce-gen (&print_news_deltas): Extracted from...
4069         (&print_changelog_deltas): here.
4070         (&news_file): Rename as...
4071         (@news_file): this.
4073 2003-09-30  Nicolas Joly  <njoly@pasteur.fr>
4075         * lib/autoconf/fortran.m4 (_AC_PROG_FC): Remove files which might
4076         have been created when invoking the compiler.
4077         * tests/fortran.at (GNU Fortran 77): Quote $G77.
4079 2003-09-29  Akim Demaille  <akim@epita.fr>
4081         Version 2.57e.
4083         * config/mkinstalldirs: Upgrade.
4085 2003-09-28  Paul Eggert  <eggert@twinsun.com>
4087         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set DUALCASE=1, for MKS sh.
4088         Problem reported by Lars J. Aas in
4089         <http://mail.gnu.org/archive/html/autoconf/2003-07/msg00042.html>.
4090         (_AS_MKDIR_P_PREPARE): Change "rm -fr ./-p" to the more-conservative
4091         "test -d ./-p && rmdir ./-p".  Suggested by Andreas Schwab in:
4092         http://mail.gnu.org/archive/html/autoconf-patches/2003-09/msg00039.html
4094 2003-09-26  Akim Demaille  <akim@epita.fr>
4096         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
4097         directory for AC_CONFIG_COMMANDS' first argument exists.
4098         This makes valid the invocation of _AC_SRCPATH that follows.
4099         Reported by Eric Sunshine.
4100         * doc/autoconf.texi (Configuration Commands): Adjust.
4102 2003-09-26  Akim Demaille  <akim@epita.fr>
4104         * bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
4105         Reported by Ralf Corsepius.
4107 2003-09-26  Akim Demaille  <akim@epita.fr>
4109         * lib/autoconf/general.m4 (AC_HELP_STRING): Don't overquote the
4110         arguments.
4111         Actually, use AU_ALIAS.
4112         From Bruno Haible.
4114 2003-09-26  Paul Eggert  <eggert@twinsun.com>
4116         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
4117         rm -fr ./-p to remove junk left behind on NextStep and OpenStep.
4118         Problem reported by Eric Sunshine in:
4119         http://mail.gnu.org/archive/html/autoconf-patches/2002-12/msg00014.html
4121 2003-09-26  Akim Demaille  <akim@epita.fr>
4123         The test suite are sometimes assigning timings incorrectly.
4124         Reported by Henk Krus.
4125         Diagnosed by Nicolas Joly.
4127         * lib/autotest/general.m4 (AT_CLEANUP): Rename AT_help as
4128         AT_help_all.
4129         Instead of making AT_help a sequence of assignments to grow
4130         $at_help_all, just make AT_help_all be the growing contents of
4131         $at_help_all, and make a single assignment in...
4132         (AT_INIT): here.
4133         (at_times_skip): Flip the meaning and rename as...
4134         (at_times_p): this.
4135         (AT_INIT): When summarizing the test that ran, remove
4136         $at_times_file after use, and check it is present before trying to
4137         use it.
4139 2003-09-25  Akim Demaille  <akim@epita.fr>
4141         Version 2.57d.
4143         * bin/Makefile.am (edit): Handle '@configure_input@'.
4144         (autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate)
4145         (ifnames): chmod -w.
4146         * tests/wrapper.as (AUTOCONF, AUTOM4TE, ): Point to tests/
4147         executables, not bin/ executables!  Otherwise all the magic needed
4148         to find non installed files is turned off.  This caused a failure
4149         of test 40 and 41 that ran aclocal 1.8 which in turn ran autom4te
4150         as found in its environment (sent by tests/autoreconf): pointing
4151         to bin/autom4te that could not find its files.
4152         * tests/mktests.sh: Force the replacement of generated files, for
4153         the sake of "mv" program that are interactive when overwriting a
4154         -w file.
4155         * config/install-sh: Upgrade from CVS Automake.
4157 2003-09-23  Paul Eggert  <eggert@twinsun.com>
4159         * doc/autoconf.texi (Limitations of Builtins): Document test -h
4160         versus test -L issues.
4162 2003-09-23  Daniel Jacobowitz  <drow@mvista.com> and
4163             Paul Eggert  <eggert@twinsun.com>
4165         Trivial change to support GCC's configuration procedure.
4166         * lib/autoconf/c.m4 (AC_PROG_CPP_WERROR): New macro.
4167         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Don't warn
4168         about inconsistency if the preprocessor is set to give errors for
4169         any warning.
4170         * doc/autoconf.texi (C Compiler Characteristics): Document this.
4172 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
4174         * Makefile.am (autom4te-update, autom4te_files): Fetch Struct.pm
4175         and XFile.pm from Automake.
4176         * lib/Autom4te/XFile.pm: Update from Automake.
4178 2003-09-12  Akim Demaille  <akim@epita.fr>
4180         Version 2.57c.
4182 2003-09-12  Akim Demaille  <akim@epita.fr>
4184         * config/config.guess, config/config.sub, config/missing,
4185         * lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm: Update
4186         from masters.
4188 2003-09-12  Akim Demaille  <akim@epita.fr>
4190         * doc/autoconf.texi (Header Portability): Promote linux/types.h,
4191         not asm/types.h.
4193 2003-09-11  Akim Demaille  <akim@epita.fr>
4195         * doc/autoconf.texi (Header Portability): linux/random.h.
4196         From Peter Hendrickson.
4198 2003-09-10  Akim Demaille  <akim@epita.fr>
4200         * tests/mktests.sh (au_exclude_egrep): Make it harder to be
4201         willing to edit the output files.
4203 2003-09-10  Akim Demaille  <akim@epita.fr>
4205         * tests/fortran.at (GNU Fortran 77): Also exercise AC_FC_SRCEXT
4206         and AC_FC_FREEFORM.
4207         * tests/mktests.sh: Skip AC_FC_SRCEXT.
4208         * lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Likewise.
4210 2003-09-09  Akim Demaille  <akim@epita.fr>
4212         * lib/Autom4te/FileUtils.pm (&update_file): s/cannot not/cannot/g.
4213         Reported by Gary Vaughan.
4214         * bin/autom4te.in (handle_m4): Likewise.
4216 2003-09-09  Akim Demaille  <akim@epita.fr>
4218         * lib/Autom4te/FileUtils.pm (&update_file): Be sure not to leave
4219         trailing files.
4221 2003-09-07  Paul Eggert  <eggert@twinsun.com>
4223         * lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS):
4224         Improve the accuracy of the wording about obsolescence.
4225         From a suggestion by Ian Lance Taylor in
4226         <http://mail.gnu.org/archive/html/autoconf/2003-09/msg00044.html>.
4228 2003-09-05  Paul Eggert  <eggert@twinsun.com>
4230         * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Try -ffree-form too,
4231         for the benefit of g77 3.2.  Fix suggested by Steven G. Johnson.
4233 2003-09-04  Akim Demaille  <akim@epita.fr>
4235         * tests/mktests.sh (ac_exclude_list): Fix the filtering of
4236         AC_FUNC_WAIT3.
4238 2003-09-04  Akim Demaille  <akim@epita.fr>
4240         * bin/autom4te.in: Use &fatal where more appropriate than &error.
4241         (freeze): When exiting, use $exit_code.
4242         * lib/autoconf/fortran.m4: Comment changes.
4244 2003-09-04  Akim Demaille  <akim@epita.fr>
4246         * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC.
4248 2003-09-02  Steven G. Johnson  <stevenj@alum.mit.edu>
4250         Add support for newer Fortran dialects.  The F77 interface is
4251         unchanged, and continues to support Fortran 77.  New FC macros
4252         correspond to all the old F77 macros, with output variables FC,
4253         FCFLAGS, and FCLIBS.  AC_PROG_FC defaults to picking the newest
4254         available dialect, but older dialects can be specified.  There are
4255         new macros AC_FC_SRCEXT to set the source extension, and
4256         AC_FC_FREEFORM to accept free-form source files.
4258         * lib/autoconf/c.m4 (_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++)):
4259         New macros.
4260         (AC_LANG_PROGRAM(C)): Invoke _AC_LANG_PROGRAM_C_FC_HOOKS if defined.
4261         * lib/autoconf/fortran.m4 (AC_LANG(Fortran), _AC_FORTRAN_ASSERT,
4262         _AC_LANG_ABBREV(Fortran), _AC_LANG_PREFIX(Fortran 77),
4263         _AC_LANG_PREFIX(Fortran), _AC_FC, AC_LANG_SOURCE(Fortran),
4264         AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran),
4265         AC_LANG_PREPROC(Fortran), AC_LANG_COMPILER(Fortran),
4266         _AC_FC_DIALECT_YEAR, _AC_F95_FC, _AC_F90_FC, _AC_F77_FC,
4267         _AC_PROG_FC, AC_PROG_FC, _AC_PROG_FC_G, _AC_PROG_FC_C_O,
4268         AC_PROG_FC_C_O, _AC_PROG_FC_V_OUTPUT, _AC_PROG_FC_V,
4269         _AC_FC_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN,
4270         AC_FC_DUMMY_MAIN, _AC_FC_MAIN, AC_FC_MAIN, __AC_FC_NAME_MANGLING,
4271         _AC_FC_WRAPPERS, AC_FC_WRAPPERS, _AC_FC_FUNC, AC_FC_FUNC,
4272         AC_FC_SRCEXT, AC_FC_FREEFORM):
4273         New macros.
4274         (AC_PROG_F77, AC_PROG_F77_C_O, AC_F77_LIBRARY_LDFLAGS,
4275         AC_F77_DUMMY_MAIN, AC_F77_MAIN, _AC_F77_NAME_MANGLING,
4276         AC_F77_NAME_MANGLING, AC_F77_WRAPPERS, AC_F77_FUNC):
4277         Rewrite in terms of the above.
4278         (_AC_PROG_F77_G, _AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V): Remove.
4279         * lib/autoconf/lang.m4 (_AC_LANG_PREFIX): New macro.
4280         * tests/acfortran.at: Test AC_FC_FREEFORM, AC_FC_FUNC,
4281         AC_FC_MAIN, AC_FC_SRCEXT, AC_FC_WRAPPERS, AC_PROG_FC_C_O.
4283 2003-09-02  Paul Eggert  <eggert@twinsun.com>
4285         * doc/autoconf.texi (Limitations of Usual Tools, Limitations of Make):
4286         Document problems with timestamp resolution that 'make', 'cp -p', and
4287         'touch -r' have.
4289 2003-08-27  Akim Demaille  <akim@epita.fr>
4291         * tests/m4sugar.at (cross_warning): Make sure to enable the
4292         output, so that we can track spurious m4sugar output.
4293         * tests/local.at: Require 2.57.
4294         (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
4295         are defaulted by AT_CHECK anyway.
4296         Use AT_CHECK_AUTOM4TE.
4297         * lib/m4sugar/m4sugar.m4: There should be no output at all: add a
4298         missing dnl.
4300 2003-08-27  Akim Demaille  <akim@epita.fr>
4302         * bin/autoheader.in: Issue the "Using auxiliary..." message only
4303         when -Wobsolete is set.
4304         Set it on by default.
4305         Suggested by Klee Dienes.
4307 2003-08-27  Akim Demaille  <akim@epita.fr>
4309         * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
4310         documentation.
4311         From Guido Draheim.
4313 2003-08-26  Akim Demaille  <akim@epita.fr>
4315         * doc/autoconf.texi (Output): Make clear that one can run code
4316         after AC_OUTPUT.
4318 2003-08-25  Akim Demaille  <akim@epita.fr>
4320         * config/announce-gen, GNUmakefile, Makefile.maint: Update from
4321         CVS Bison.
4323 2003-08-25  Alexandre Duret-Lutz  <adl@gnu.org>
4325         * bin/autoreconf.in (parse_args): Do not pass --no-force to
4326         Automake versions prior to 1.8.
4328 2003-08-25  Akim Demaille  <akim@epita.fr>
4330         * doc/autoconf.texi (Header Portability): netinet/if_ether.h.
4331         From Ville Karaila.
4333 2003-08-24  Akim Demaille  <akim@epita.fr>
4335         * configure.ac: Bump to 2.57c.
4337 2003-08-22  Akim Demaille  <akim@epita.fr>
4339         Version 2.57b.
4341         * Makefile.cfg (local-checks-to-skip): New.
4342         * Makefile.maint (local-check): Rename as...
4343         (local-checks-available): this.
4344         (local-check): New.
4346         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
4347         * configure.ac: Require Automake 1.7.6.
4349 2003-08-22  Akim Demaille  <akim@epita.fr>
4351         Output stack traces in warnings.
4353         * lib/m4sugar/m4sugar.m4 (_m4_warn): New.
4354         Replace the former...
4355         (m4_warn): Pass the call stack to _m4_warn.
4356         * bin/autom4te.in: Adjust to output the call stack.
4357         * tests/m4sugar.at (m4@&t@_warn): Adjust.
4359 2003-08-22  Akim Demaille  <akim@epita.fr>
4361         * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
4362         * bin/autom4te.in: Adjust.
4364 2003-08-21  Akim Demaille  <akim@epita.fr>
4366         * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
4367         (&verbose): Remove.
4368         (&getopt): Adjust the note and verb channels, depending upon
4369         --verbose.
4370         * bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
4371         * bin/autoupdate.in: Adjust.
4372         Use &verb, not &verbose.
4374 2003-08-21  Akim Demaille  <akim@epita.fr>
4376         * bin/autoheader.in (&parse_args): Use &parse_warnings and
4377         &parse_WARNINGS.
4378         ($help): Use Autom4te::ChannelDefs::usage.
4379         * bin/autoscan.in: Use Autom4te::ChannelDefs.
4380         * lib/Autom4te/General.pm: Don't export error: you don't own it.
4382 2003-08-21  Akim Demaille  <akim@epita.fr>
4384         First stab at preserving warnings between calls to autom4te,
4385         including when the cache is used.
4387         There are still several issues: (i) there are too many runs of m4
4388         (one for include, one for warnings, and some more), (ii) warnings
4389         spreading on several lines are not handled gracefully, (iii) the
4390         code meant to have the call stack display for errors does not work
4391         (its handling should move from m4 to autom4te).
4393         * bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
4394         Use them.
4395         (@preselect): Add m4_warn.
4396         ($exit_status): Remove, use $exit_code.
4397         ($help): Use Autom4te::ChannelDefs::usage.
4398         (&handle_m4): No longer define the m4_warnings.
4399         At each run, extract and report the warnings.
4400         Always cache the result, including if the exit status is on
4401         failure, since if nothing changes, we should result in the same
4402         failure, hence we can use the cache.
4403         * lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
4404         (_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
4405         Remove.
4406         (m4_warn): Redefine as a do-nothing: it is its invocation that
4407         matters, as warnings are now reported via traces.
4408         * lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
4409         the contents of m4_warn: make it _call_ m4_warn, so that tracing
4410         the latter reveals calls to the former.
4412         Adjust the tests.
4414         * tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
4416 2003-08-21  Akim Demaille  <akim@epita.fr>
4418         * bin/autoreconf.pm (Autom4te::Channels, Autom4te::ChannelDefs):
4419         Use them.
4421 2003-08-21  Akim Demaille  <akim@epita.fr>
4423         * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
4424         forward order.
4425         * lib/Autom4te/ChannelDefs.pm: Doc typos.
4426         (&parse_warnings): Accept a list of warning requests.
4427         (&usage): Return a string, not a side effect.
4428         (cross): New warning category.
4430 2003-08-21  Akim Demaille  <akim@epita.fr>
4432         * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
4433         (&require_configure_ac): Accept an optional directory argument.
4434         ($configure_ac): Remove.
4435         * lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
4436         (&catfile): Remove.
4437         * bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
4438         * bin/autoscan.in: Adjust.
4440 2003-08-20  Akim Demaille  <akim@epita.fr>
4442         * bin/autoheader.in: Remove duplicate 'use Autom4te::FileUtils'.
4443         Reported by Alexandre Duret-Lutz.
4445 2003-08-20  Akim Demaille  <akim@epita.fr>
4447         * bin/autoupdate.in, bin/autoheader.in, bin/autoreconf.in,
4448         * bin/autom4te: Adjust.
4449         In particular, be Autoconf tools are really silent when properly
4450         working, bind the verbosity of the 'note' channel to $verbose.
4451         * lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
4452         (&xsystem, &contents): Remove, since they are exported by...
4453         * lib/Autom4te/FileUtils.pm: this.
4454         More perldoc.
4455         * lib/Autom4te/General.pm (&up_to_date_p): Move to...
4456         * lib/Autom4te/FileUtils.pm: here.
4458 2003-08-20  Akim Demaille  <akim@epita.fr>
4460         * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
4461         * lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
4462         from CVS Automake.
4464 2003-08-20  Akim Demaille  <akim@epita.fr>
4466         * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
4467         (autom4te-update): New.
4468         * Makefile.cfg (update): Bind autom4te-update.
4470 2003-08-19  Derek Price  <derek@ximbiot.com>
4472         * lib/autotest/general.m4: Comment various HELP_* diversions.
4473         (PARSE_ARGS_BEGIN): New section for option parsing related
4474         initialization.
4475         (AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
4476         package specific options and associated help.
4478 2003-08-19  Akim Demaille  <akim@epita.fr>
4480         * config/announce-gen, Makefile.cfg: New.
4481         * Makefile.am: Adjust.
4482         * GNUmakefile, Makefile.maint: Update from CVS Coreutils.
4484 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
4486         * lib/autom4te.in (Automake-preselections): Preselect
4487         AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
4488         and m4_sinclude.
4490 2003-08-19  Alexandre Duret-Lutz  <adl@gnu.org>
4492         * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
4493         (Autoconf-without-aclocal-m4): ... this new language.
4494         * doc/autoconf.texi (autom4te Invocation): Mention
4495         Autoconf-without-aclocal-m4.
4497 2003-08-18  Derek Price  <derek@ximbiot.com>
4499         * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL &
4500         RUN-IF-PASS optional arguments.
4502 2003-08-18  Derek Price  <derek@ximbiot.com>
4504         * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF.
4506 2003-08-16  Derek Price  <derek@ximbiot.com>
4508         * doc/autoconf.texi (Writing testsuite.at): Document defaults for
4509         STDOUT & STDERR arguments.
4511 2003-08-14  Derek Price  <derek@ximbiot.com>
4513         * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
4514         DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
4515         shorter column three.  Add DESCRIPTION to log file content.
4517 2003-08-13  Derek Price  <derek@ximbiot.com>
4519         * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
4520         output.
4522 2003-08-12  Derek Price  <derek@ximbiot.com>
4524         * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
4525         (AT_CHECK_NOESCAPE): Move core functionality to...
4526         (_AT_CHECK): ...this new macro.
4528 2003-08-07  Derek Price  <derek@ximbiot.com>
4530         * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
4531         (AT_CHECK_NOESCAPE): ...to this new macro.
4533 2003-07-31  Paul Eggert  <eggert@twinsun.com>
4535         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Work around a bug
4536         in Bash 2.01.  Problem reported by Brian Gough in
4537         <http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
4539 2003-07-25  John W. Eaton  <jwe@bevo.che.wisc.edu>
4541         * lib/autoconf/fortran.m4 (AC_F77_LIBRARY_LDFLAGS): Also ignore
4542         -lcrt1.o, for OS X.  (trivial change)
4544 2003-07-07  Paul Eggert  <eggert@twinsun.com>
4546         * lib/autoconf/c.m4 (AC_C_INLINE): Wrap the '#define inline ...'
4547         inside '#ifndef __cplusplus'.  Problem reported by
4548         Bob Friesenhahn.
4550 2003-07-06  Bill Clarke  <llib@computer.org>
4552         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): Cast pointer to
4553         'long', not 'int', for benefit of Sun's recent C++ compilers
4554         (trivial change).  See:
4555         http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
4556         (This really should be 'intptr_t', not 'long', but that would
4557         take more work.)
4559 2003-06-25  Akim Demaille  <akim@epita.fr>
4561         * lib/Makefile.am (autom4te.cfg): Make it read only.
4562         Depend on Makefile since it contains substitutions.
4563         From Paolo Bonzini.
4564         * lib/autom4te.in (args): Add local.at? for Autotest args.
4565         This change was made on autom4te.cfg which is generated.
4566         Reported by Raja R. Harinath.
4568 2003-06-25  Akim Demaille  <akim@epita.fr>
4570         * doc/autoconf.texi (Header Portability): sys/mount.h.
4571         From Gareth McCaughan.
4573 2003-06-23  Akim Demaille  <akim@epita.fr>
4575         * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
4576         not all of them.  This fixes 1. the fact that when testing
4577         Autoconf there are many many config.log, 2. the incorrect use of
4578         top_srcdir to find config.log.
4579         Don't mix the detailed output of failed test with the summary of
4580         failures.  Rather, append detailed log afterwards.
4582 2003-06-23  Akim Demaille  <akim@epita.fr>
4584         * tests/local.at (AT_CHECK_CONFIGURE): Adjust to the verbose being
4585         always run: output config.log on $at_group_log.
4587 2003-06-23  Akim Demaille  <akim@epita.fr>
4589         * tests/torture.at (#define header templates): Don't use quotes in
4590         C++ comments as it puzzles Emacs' sh font-lock-mode.
4592 2003-06-23  Akim Demaille  <akim@epita.fr>
4594         * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
4595         * lib/autom4te.cfg (args): Add local.at? for Autotest args.
4596         * tests/atspecific.m4: Rename as...
4597         * tests/local.at: This.
4598         * tests/suite.at: Move the globals into...
4599         * tests/local.at: here.
4600         * tests/Makefile.am: Adjust.
4601         * doc/autoconf.texi (testsuite Scripts): Adjust.
4603 2003-06-21  Kevin Ryde  <user42@zip.com.au>
4605         * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Extend test program to get an
4606         error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
4607         ensuring we add -std1 for full-ANSI.
4609         * doc/autoconf.texi (hdrindex): New macro.
4610         Add index entries for portability of various standard header files.
4612 2003-06-20  Akim Demaille  <akim@epita.fr>
4614         * configure.ac: Bump to 2.57b.
4616 2003-06-20  Akim Demaille  <akim@epita.fr>
4618         Version 2.57a.
4620 2003-06-20  Akim Demaille  <akim@epita.fr>
4622         * bin/autom4te.in: Don't rely on $HOME being defined.
4623         Reported by Marc Espie as PR/233.
4625 2003-06-20  Akim Demaille  <akim@epita.fr>
4627         * lib/autotest/general.m4: Use at_times_file only if used.
4628         From Nicolas Joly.
4630 2003-06-20  Akim Demaille  <akim@epita.fr>
4632         * config/config.guess, config/config.sub, config/elisp-comp,
4633         * config/install-sh, config/mkinstalldirs, doc/standards.texi:
4634         Update from masters.
4636 2003-06-11  Paolo Bonzini  <bonzini@gnu.org>
4638         * doc/autoconf.texi (Writing testsuite.at): Document AT_XFAIL_IF
4639         * lib/autotest/general.m4 (AT_XFAIL_IF): New macro.
4640         (TEST_SCRIPT): New diversion.
4641         (AT_SETUP): Divert output to TEST_SCRIPT and move some code...
4642         (AT_CLEANUP): ...to here.  Undivert TEST_SCRIPT.
4643         (AT_INIT): Support for expected failures.
4645 2003-06-02  Akim Demaille  <akim@epita.fr>
4647         * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
4648         changes.
4649         * lib/Autom4te/General.pm (&backname): Remove, no longer used by
4650         Autoconf nor Automake.
4651         (&contents): New, from Automake.
4652         PODify.
4654 2003-05-28  Paul Eggert  <eggert@twinsun.com>
4656         * NEWS, doc/autoconf.texi (Particular Functions),
4657         lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
4658         is the inverse of localtime.
4660 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
4662         * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
4663         (handle_exec_errors): New function.  Work around $! being
4664         altered by WEXITSTATUS.
4665         (xqx, xsystem): Use handle_exec_errors.
4667 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
4669         * lib/Autom4te/General.pm (END): Rewrite exit code processing.
4670         Do not call `_exit()', simply modify `$?'.
4671         (xsystem): Reset $! before running system, and check it afterward.
4672         * tests/tools.at (autoupdating AC_PREREQ): Expect exit status
4673         63 for version mismatches.
4675 2003-05-23  Akim Demaille  <akim@epita.fr>
4677         * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
4678         Emacs' dangerous whitespace.el behavior (smashing "useless" spaces in
4679         the middle of a line).
4680         * lib/m4sugar/m4sugar.m4: Likewise.
4681         Remove useless spaces in comments.
4683 2003-05-23  Akim Demaille  <akim@epita.fr>
4685         * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
4686         exit 63, so that we (or Automake's "missing") can tell the
4687         difference with a plain failure.
4688         * doc/autoconf.texi (Notices): Adjust.
4690 2003-05-23  Akim Demaille  <akim@epita.fr>
4692         * Makefile.am, bin/Makefile.am, config/Makefile.am,
4693         * doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
4694         White spaces cleanup.
4696 2003-05-22  Jim Meyering  <jim@meyering.net>
4697             Paul Eggert  <eggert@twinsun.com>
4699         * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
4700         Remove `#include <stdlib.h>' from the list; we should never
4701         make confdefs.h include <stdlib.h> or <cstdlib>, because the
4702         resulting namespace pollution would cause other tests to fail.
4703         Configure scripts run with some older versions of g++ and HP's
4704         aCC would fail due to such an #include.  Problems reported by
4705         Matthew Mueller in <http://bugs.debian.org/120704> and by
4706         Keith Bostic in
4707         <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
4708         In the test, use the test declaration before including <stdlib.h>,
4709         as that's closer to how it'll be used.
4711 2003-05-23  Akim Demaille  <akim@epita.fr>
4713         * doc/autoconf.texi (Header Portability): ucred.h.
4714         From Ian Redfern.
4716 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
4718         Overhaul Autotest's logging: generate separate log files
4719         in testsuite.dir/NNN/testsuite.log, and append them to
4720         testsuite.log instead of re-running the test verbosely.
4722         * lib/autotest/general.m4 (AT_INIT): Use a single redirected
4723         file descriptor, write 0 to at_status_file instead of setting
4724         at_status=0, initialize some new variables (at_status_file,
4725         at_group_log, at_suite_log, at_tee_pipe).  Remove the cruft
4726         to rerun the tests, instead append the at_group_log to the
4727         at_suite_log when a test fails.
4728         (AT_SETUP): pipe the test case's output into at_tee_pipe,
4729         with the AS_MESSAGE_LOG_FD redirected to stdout.
4730         (AT_CLEANUP): save the output status in $at_status_file
4731         and restore it, redirect the AS_MESSAGE_LOG_FD back to
4732         its original place.
4733         (AT_CHECK): since tests are run with a redirected stdout,
4734         and used to be re-run in verbose mode, turn some $at_verbose
4735         into echo, and don't redirect the output of testing stdout
4736         and stderr.
4738         * lib/autotest/autoconf.texi (testsuite Scripts): Update
4739         the name of the debugging directory and information about
4740         its contents.
4742 2003-05-22  Paolo Bonzini  <bonzini@gnu.org>
4744         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Actually use the 2nd
4745         parameter.
4747 2003-05-22  Akim Demaille  <akim@epita.fr>
4749         * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
4750         * lib/autoconf/fortran.m4 lib/autoconf/general.m4
4751         * lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
4752         * lib/autoconf/status.m4: Fix and adjust copyright notices.
4754 2003-05-22  Akim Demaille  <akim@epita.fr>
4756         * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
4757         * lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
4758         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
4759         * lib/autoconf/general.m4, lib/autoconf/headers.m4,
4760         * lib/autoconf/lang.m4, lib/autoconf/libs.m4,
4761         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
4762         * lib/autoconf/status.m4, lib/autoconf/types.m4,
4763         * lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
4764         * tests/atspecific.m4, tests/base.at, tests/compile.at,
4765         * tests/foreign.at, tests/m4sh.at, tests/semantics.at,
4766         * tests/tools.at, tests/torture.at:
4767         Whitespace clean up.
4768         Suggested by Jim Meyering.
4770 2003-05-22  Akim Demaille  <akim@epita.fr>
4772         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
4773         ' \t' as '\t ' so that Emacs' whitespace.el keep it.
4774         Reported by Jim Meyering.
4776 2003-05-22  Akim Demaille  <akim@epita.fr>
4778         * doc/autoconf.texi: Replace AC_HELP_STRING AS_HELP_STRING.
4779         Add AC_HELP_STRING  to the obsolete macros section.
4780         Typos.
4781         Use '@.' for sentences that ended in a capital letter.
4782         From Art Haas.
4784 2003-05-22  Akim Demaille  <akim@epita.fr>
4786         * config/config.guess, config/config.sub, config/elisp-comp,
4787         * config/install-sh, config/mdate-sh, config/mkinstalldirs,
4788         * config/texinfo.tex, doc/standards.texi: Update from masters.
4790 2003-05-21  Paolo Bonzini  <bonzini@gnu.org>
4792         * lib/m4sugar/m4sh.m4 (AS_VAR_SET): Escape the RHS before passing
4793         it to eval.
4795 2003-05-21  Akim Demaille  <akim@epita.fr>
4797         * bin/autoupdate.in ($m4): Fix quotation.
4798         Reported by Martin Mokrejs.
4800 2003-05-19  Paul Eggert  <eggert@twinsun.com>
4802         * ChangeLog, ChangeLog.2, THANKS, lib/m4sugar/m4sugar.m4:
4803         Remove non-ASCII characters.
4805 2003-05-18  Paolo Bonzini  <bonzini@gnu.org>
4807         * tests/semantics.at (AC_SEARCH_LIBS): New test.
4808         * tests/semantics.at (AC_CHECK_HEADERS_OLD,
4809         AC_CHECK_HEADERS_NEW): New tests.
4811 2003-05-17  Akim Demaille  <akim@epita.fr>
4813         * lib/autoconf/functions.m4: Use the default includes so that
4814         memcmp be declared before being tested.
4815         Reported by Sander Niemeijer.
4816         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
4817         * doc/autoconf.texi (Default Includes): Document
4818         AC_INCLUDES_DEFAULT.
4820 2003-05-17  Akim Demaille  <akim@epita.fr>
4822         * lib/autoconf/specific.m4: Include signal.h and unistd.h.
4823         * doc/autoconf.texi (Obsolete Macros): Adjust.
4824         Reported by Werner LEMBERG and Debian Bug 190886.
4826 2003-05-16  Akim Demaille  <akim@epita.fr>
4828         * lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): s/FOO/as_foo/ to avoid
4829         user name space clashes.
4830         Reported by Bruno Haible.
4832 2003-05-16  Akim Demaille  <akim@epita.fr>
4834         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
4835         * bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in (BEGIN): Make
4836         them uniform, and more robust to Perl special characters.
4837         Reported by Martin Mokrejs.
4839 2003-05-14  Akim Demaille  <akim@epita.fr>
4841         * tests/foreign.at (Libtool): Skip all Libtools pre 1.4.
4843 2003-05-14  Akim Demaille  <akim@epita.fr>
4845         * doc/autoconf.texi (Header Portability): X11/extensions/scrnsaver.h,
4846         linux/irda.h.
4848 2003-05-12  Akim Demaille  <akim@epita.fr>
4850         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Improve the
4851         message.
4852         From Matthias Andree.
4854 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
4856         * lib/Autom4te/XFile.pm (lock, truncate): Do not pass @_ to flock
4857         and truncate.
4859 2003-05-06  Akim Demaille  <akim@epita.fr>
4861         Don't try to be smart with aclocal 1.8+ because (i) aclocal no
4862         longer updates aclocal.m4 if useless, (ii) if a file m4_included
4863         by aclocal.m4 is changed it might require the importing of another
4864         m4 extension file, i.e., aclocal must be run.
4866         * bin/autoreconf.in (&run_aclocal, $aclocal_supports_force): New.
4867         (&parse_args): Use --force with aclocal if required and supported.
4868         (&autoreconf_current_directory): Use &run_aclocal.
4870 2003-05-06  Akim Demaille  <akim@epita.fr>
4872         Lock autom4te's cache.
4874         * lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
4875         * bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
4876         argument instead of a file name, so that the request file remains
4877         open during the whole autom4te run.
4878         ($icache_file): New.
4879         (&freeze): Lock the $icache_file.
4881 2003-04-29  Derek Price  <derek@ximbiot.com>
4883         * lib/autotest/general.m4 (AT_KEYWORDS): Don't use a comma as the
4884         seperator with m4_append_uniq().  It doesn't work.
4885         (AT_CLEANUP): Add `;' to end of at_help_all.
4886         (AT_INIT): Allow --keywords to be specified more than once.  When
4887         grepping $at_help_all for keywords, use the field and keyword
4888         seperators to ensure a complete keyword match.  Alter at_prev handling
4889         to support the new --keywords behavior.
4891 2003-04-27  Karl Berry  <karl@freefriends.org>
4893         * doc/autoconf.texi: Make the dir entries in the autoconf manual
4894         align better with others.  I also made some of the individual
4895         entries on one line, for brevity and to make it easier for me to
4896         sort my dir-example file in the Texinfo distribution :).
4898 2003-04-12  Jim Meyering  <jim@meyering.net>
4900         * NEWS: Mention the new macro.
4901         * lib/autoconf/c.m4 (AC_C_RESTRICT): New macro.
4902         * doc/autoconf.texi (C Compiler): Describe AC_C_RESTRICT.
4903         * tests/c.at: Test AC_C_RESTRICT.
4904         * tests/mktests.sh (ac_exclude_list): Add exclusion for AC_C_RESTRICT.
4906 2003-04-08  Akim Demaille  <akim@epita.fr>
4908         * bin/ifnames.in: Skip C++ comments.
4909         From Jeremy Yallop.
4911 2003-04-08  Akim Demaille  <akim@epita.fr>
4913         * GNUmakefile (SHELL): Don't assume sh is in /bin/.
4914         From Ilya Zakharevich.
4916 2003-04-08  Akim Demaille  <akim@epita.fr>
4918         * doc/autoconf.texi (Particular Headers): Some about sys/socket.h,
4919         net/if.h, stdlib.h.
4921 2003-04-01  Derek Price  <derek@ximbiot.com>
4923         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Correct syntax error
4924         from Akim's checkin of 2003-03-29.
4926 2003-04-01  Derek Price  <derek@ximbiot.com>
4928         * tests/torture.at (Configuring subdirectories): Add missing
4929         close-quote for Akim's change from 2003-03-28.
4931 2003-04-01  Akim Demaille  <akim@epita.fr>
4933         * doc/autoconf.texi (ac, at, ms): Rename these indexes as...
4934         (AC, AT, MS): these.
4935         (shortindexflag, @acindex, @ahindex, @asindex, @atindex, @msindex):
4936         New.
4937         Use them.
4938         * doc/Makefile.am (CLEANFILES): Adjust.
4939         (TEXI2DVI): Make it --batch.
4941 2003-03-31  Derek Price  <derek@ximbiot.com>
4943         * lib/autotest/general.m4: Revert the checkin from 2003-03-27
4944         which removed the main loop.
4945         Thanks to Akim Demaille.
4947 2003-03-29  Akim Demaille  <akim@epita.fr>
4949         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Skip OS/2's install,
4950         that starts a GUI.
4951         From Ilya Zakharevich.
4953 2003-03-29  Akim Demaille  <akim@epita.fr>
4955         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): The
4956         documentation to read is Autoconf's.
4957         Suggested by Paul Eggert.
4959 2003-03-28  Akim Demaille  <akim@epita.fr>
4961         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Suggest
4962         reading the section "Present But Cannot Be Compiled" when the
4963         header causes problems.
4965 2003-03-28  Akim Demaille  <akim@epita.fr>
4967         * tests/torture.at (Configuring subdirectories): Require aclocal
4968         1.4, otherwise the test fails, as it does support configure.ac.
4969         This fixes the "test 40 failed" bug reports.
4971 2003-03-28  Akim Demaille  <akim@epita.fr>
4973         * doc/autoconf.texi (C Compiler): `#line' portability.
4974         From Paul Eggert and Nelson H. F. Beebe.
4976 2003-03-27  Derek Price  <derek@ximbiot.com>
4978         * lib/autotest/general.m4: Eliminate main loop and reorganize test
4979         layout in order to allow scripting around test groups.
4981 2003-03-27  Derek Price  <derek@ximbiot.com>
4983         * lib/autotest/general.m4 (PARSE_ARGS,PARSE_ARGS_END,HELP,HELP_MODES,
4984         HELP_TUNING,HELP_OTHER,HELP_END,PREPARE_TESTS,TESTS_END): Define and
4985         use new diversions in preparation for accepting new arguments and
4986         allowing scripting around tests.
4987         (OPTIONS,TAIL): Remove these diversions to make way for the ones above.
4989 2003-03-26  Derek Price  <derek@ximbiot.com>
4991         * lib/autoconf/general.m4 (AC_ARG_VAR): Use AS_HELP_STRING instead of
4992         obsolete AC_HELP_STRING.
4993         (AC_HELP_STRING): AU_DEFUN to...
4994         * lib/m4sugar/m4sh.m4 (AS_HELP_STRING): ...here.
4995         * tests/m4sh.at (AS_HELP_STRING): New test.
4997         * tests/acgeneral.at: Regenerated.
4999 2003-03-26  Derek Price  <derek@ximbiot.com>
5001         * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
5002         sense.  Verbosify the diversion definitions comment.
5004 2003-03-26  Derek Price  <derek@ximbiot.com>
5006         * lib/autotest/general.m4 (AT_INIT): Remove redundant call to
5007         AS_PREPARE.
5009 2003-03-21  Eric Siegerman  <eric_97@pobox.com>
5011         * doc/autoconf.texi (Present But Cannot Be Compiled):
5012         Grammar fixes and minor rewording. (trivial change)
5014 2003-03-06  Paul Eggert  <eggert@twinsun.com>
5016         Work around a problem noted by Nelson H. F. Beebe with coreutils
5017         4.5.9: Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08
5018         2002/05/09) rejects '#line 32768 "configure"' because the line
5019         number overflows.
5020         * lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Do not generate
5021         #line directives.
5022         * lib/autoconf/lang.m4 (AC_LANG_SOURCE): Fix comment to match this.
5023         * doc/autoconf.texi (Generating Sources): Document this.
5025 2003-03-01  Richard Dawe  <rich@phekda.freeserve.co.uk>
5027         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
5028         file name for the m4 program, when it has an "exe" file extension.
5029         DJGPP's error messages include the error code in brackets -
5030         remove the error code during normalization.
5032 2003-02-28  Akim Demaille  <akim@epita.fr>
5034         * doc/autoconf.texi (Present But Cannot Be Compiled): New.
5036 2003-02-28  Alexandre Duret-Lutz  <adl@gnu.org>
5038         * doc/autoconf.texi (Limitations of Make): Remove the section
5039         about `$<' in inference rules, it was a bogus interpretation of
5040         an old Automake change.  Discuss NetBSD, FreeBSD, OpenBSD, and
5041         Tru64 make in the "target lookup" section.
5042         (Automake): Automake 1.5+ no longer requires special tools to be
5043         present on the developer's host.
5045 2003-02-26  Richard Dawe  <rich@phekda.freeserve.co.uk>
5047         * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
5048         to a shell that can handle redirection or quoting correctly.
5049         Override SHELL with the shell detected by configure.
5050         Use of $^O suggested by Tim van Holder.
5051         * bin/autom4te.in (BEGIN): Likewise.
5052         * bin/autoreconf.in (BEGIN): Likewise.
5053         * bin/autoscan.in (BEGIN): Likewise.
5054         * bin/autoupdate.in (BEGIN): Likewise.
5055         * bin/ifnames.in (BEGIN): Likewise.
5057         * bin/ifnames.in: Add final newline to help and version messages.
5059         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
5060         to cope with DOS-style absolute paths, when constructing
5061         ${ac_make}.
5063         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
5064         When constructing paths with IFS=:, quote the path. If we're
5065         constructing a DOS-style absolute path, we don't want to split it
5066         on the colon.
5068         * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
5069         in description.
5071 2003-02-25  Pavel Roskin  <proski@gnu.org>
5073         * bin/autoheader.in: Add missing newline when printing
5074         suggestion how change AC_DEFINE call.
5076 2003-02-24  Paul Eggert  <eggert@twinsun.com>
5078         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
5079         2002-09-01 patch by replacing "test -n" with "test -z".
5080         This fixes a bug found by Jeff Painter and reported by Tom Epperly in
5081         <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.
5083         * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
5084         to fix a mismatch between example and discussion.
5086 2003-02-24  Kevin Ryde  <user42@zip.com.au>
5088         * doc/autoconf.texi (Limitations of Builtins): Add notes on printf
5089         format starting with "-".
5091 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
5093         * doc/autoconf.texi (Limitations of Make): `foo=bar make -e'
5094         is not portable inside Makefile.
5096 2003-02-20  Akim Demaille  <akim@epita.fr>
5098         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
5099         compiler says yeah, but preproc says nope, compiler is right.
5100         Conversely, prompt the reader to send a bug report to the
5101         maintainers of the package, not of Autoconf.
5103 2003-02-20  Klee Dienes  <kdienes@apple.com>
5105         * bin/autoreconf.in (autoreconf_current_directory): Properly
5106         handle an empty aclocal.m4.
5108 2003-02-20  Akim Demaille  <akim@epita.fr>
5110         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Quote
5111         $ac_prefix_program.
5112         From Larry Jones.
5114 2002-12-23  Paul Eggert  <eggert@twinsun.com>
5116         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Define $1 to an
5117         innocuous variant befor including <limits.h> or <assert.h>.  This
5118         works around a bug reported by Albert Chin: HP-UX 11i
5119         (and earlier versions) have a <limits.h> that declares
5120         gettimeofday and many other functions.
5122 2002-12-03  Paul Eggert  <eggert@twinsun.com>
5124         Version 2.57.
5126         * NEWS, configure.ac: Update version.
5128         * doc/fdl.texi: Upgrade to FDL version 1.2.
5130         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Use the function f
5131         nontrivially in main's body, so that f's external declaration is
5132         not optimized away in AIX.  This should fix the bug reported by
5133         Martin Frydl in
5134         <http://mail.gnu.org/pipermail/autoconf/2002-November/014508.html>.
5136         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C),
5137         _AC_PROG_PREPROC_WORKS_IFELSE): Use <limits.h> if __STDC__ is
5138         defined, to support freestanding compilers.  This should fix the
5139         bug reported by Momchil Velkov in
5140         <http://mail.gnu.org/pipermail/autoconf/2002-November/014490.html>.
5142         * doc/autoconf.texi (Obsolete Macros): Fix typos (insert empty
5143         arg, AC_DEFINE -> AC_DEFINE_UNQUOTED) in documentation for
5144         obsolete AC_CHECK_TYPE.  The missing empty arg was reported
5145         by Simon Josefsson in
5146         <http://mail.gnu.org/pipermail/autoconf-patches/2002-December/008830.html>.
5148         * Makefile.maint (www-gnu): New macro.
5149         (standards.texi-url_prefix, make-stds.texi-url_prefix): Use it, as
5150         the location has moved.
5152 2002-12-02  Martin Frydl  <martin@systinet.com>
5154         * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
5155         \(.*\) match is too long and there is something more to be checked.
5156         <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>
5158 2002-11-15  Akim Demaille  <akim@epita.fr>
5160         Version 2.56.
5162         * config/install-sh: chmod +x.
5163         From Paul Eggert.
5164         * config/move-if-change: Indenting changes.
5165         * Makefile.am (AUTOMAKE_OPTIONS): Move to...
5166         * configure.ac (AM_INIT_AUTOMAKE): here.
5167         Require 1.7.1.
5169 2002-11-14  Akim Demaille  <akim@epita.fr>
5171         Version 2.55.
5173         * config/config.guess, config/config.sub, config/install-sh:
5174         Update from masters.
5176 2002-11-14  Akim Demaille  <akim@epita.fr>
5178         * Makefile.maint: Sync with Bison, i.e.:
5179         (po-check): Scan .l and .y files instead of the
5180         .c and the .h files that they generate.  This fixes the bug
5181         reported by Tim Van Holder in:
5182         <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
5183         Look for N_ as well as for _.  Try to avoid matching #define for
5184         N_ and _.
5185         From Paul Eggert.
5187 2002-11-14  Akim Demaille  <akim@epita.fr>
5189         * doc/autoconf.texi (C Compiler): Compiling several files at once.
5190         From Paul Eggert and Albert Chin-A-Young.
5192 2002-11-14  Akim Demaille  <akim@epita.fr>
5194         * doc/autoconf.texi (C Compiler): Solitary backslashes.
5195         From Paul Eggert and Albert Chin-A-Young.
5197 2002-11-14  Kevin Ryde  <user42@zip.com.au>
5199         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Initialize f=$1 rather
5200         than assigning in main, to avoid HP cc +O3 optimizing it away.
5202 2002-11-12  Peter Eisentraut  <peter_e@gmx.net>
5204         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
5205         option.  Process --recheck after parsing all options.  Pass -q
5206         option to configure on --recheck.
5207         (AC_OUTPUT): Pass -q from configure to config.status.
5208         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
5209         arguments to record.
5210         * doc/autoconf.texi (config.status Invocation): Document
5211         config.status -q option.
5213 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
5215         * bin/autoscan.in (scan_file): Scan Makefile.am too. Ignore
5216         Makefile.in if Makefile.am exists.
5217         (output): Strip `.am' from Makefiles.  Don't
5218         output AC_CONFIG_FILES if no Makefiles were found.
5220 2002-11-07  Akim Demaille  <akim@epita.fr>
5222         * Makefile.am (cvs_files): Add elisp-comp, mdate-sh.
5223         (local_updates): New.
5224         * Makefile.maint: Update, from CVS Bison.
5225         (local_updates): New.
5227 2002-11-06  Akim Demaille  <akim@epita.fr>
5229         * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY): Wrap the `f'
5230         declaration in extern "C" too.
5231         Reported by Roberto Bagnara.
5233 2002-11-06  Akim Demaille  <akim@epita.fr>
5235         * tests/torture.at (Configuring subdirectories): Don't use grep
5236         -w.
5237         * doc/autoconf.texi (Limitations of Usual Tools): Grep -w.
5238         Reported by Ezra Peisach.
5240 2002-11-05  Akim Demaille  <akim@epita.fr>
5242         * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
5243         Remove.
5244         We _have_ to stop using the old compatibility scheme that tried to
5245         avoid useless backslashes because Libtool 1.4.3 contains a
5246         AC_DEFINE([error_t], [int],
5247         [Define to a type to use for \`error_t' if it is not
5248         otherwise available.])
5249         We _have_ to quote the single quote and backslashes with \.  The
5250         old compatibility scheme saw that ` was backslashed, and therefore
5251         did not quote the single quote.  Hence before this patch, Autoconf
5252         was not compatible with Libtool.
5254 2002-11-04  Paul Eggert  <eggert@twinsun.com>
5256         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Set the following variables,
5257         too: LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY,
5258         LC_NAME, LC_PAPER, LC_TELEPHONE.
5259         * doc/autoconf.texi (Special Shell Variables): Mention those vars.
5261 2002-11-04  Akim Demaille  <akim@epita.fr>
5263         Version 2.54c.
5265         * Makefile.maint (update, cvs-update, po-update, do-po-update):
5266         New.
5267         * config/texinfo.tex: Update.
5269 2002-11-03  Akim Demaille  <akim@epita.fr>
5271         * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
5272         from...
5273         (&autoreconf): here.
5274         ($help, $make, &parse_args, &autoreconf_current_directory):
5275         Support -m/--make.
5276         * doc/autoconf.texi (autoreconf Invocation): Adjust.
5278 2002-10-31  Bruno Haible  <bruno@clisp.org>
5280         * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Change message.
5281         Change name of cache variable to ac_cv_func_malloc_0_nonnull.
5282         (AC_FUNC_MALLOC): Change description of HAVE_MALLOC macro.
5283         (_AC_FUNC_REALLOC_IF): Change message. Change name of cache variable
5284         to ac_cv_func_realloc_0_nonnull.
5285         (AC_FUNC_REALLOC): Change description of HAVE_REALLOC macro.
5287 2002-10-31  Akim Demaille  <akim@epita.fr>
5289         The test suite was no longer checking for trailing envvars and files.
5291         * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
5292         (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
5294 2002-10-31  Akim Demaille  <akim@epita.fr>
5296         * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
5297         `$(MAKE)' instead of '${MAKE}' to emphasize that we refer to the
5298         Make variable, not a shell variable.
5299         Suggested by Bruno Haible.
5301 2002-10-31  Akim Demaille  <akim@epita.fr>
5303         * bin/autom4te.in (load_configuration): Reject #args out of any
5304         language.
5306 2002-10-31  Akim Demaille  <akim@epita.fr>
5308         * lib/autoconf/general.m4 (_AC_MSG_LOG_CONFTEST): New.
5309         (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
5310         (_AC_RUN_IFELSE): Use it.
5311         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT):
5312         (_AC_COMPILER_EXEEXT_DEFAULT): Likewise.
5313         * lib/autoconf/c.m4 (AC_LANG_SOURCE): Don't include confdefs.h,
5314         inline it.
5316 2002-10-30  Akim Demaille  <akim@epita.fr>
5318         * bin/autom4te.in (&parse_args, $help): Support --no-cache.
5319         * doc/autoconf.texi (autom4te Invocation): Adjust.
5320         Suggested by Tim van Holder.
5322 2002-10-29  Paul Eggert  <eggert@twinsun.com>
5324         * doc/autoconf.texi (Particular Functions): AC_FUNC_MALLOC and
5325         AC_FUNC_REALLOC check for compatibility with glibc, not POSIX.
5326         Problem reported by Bruno Haible.
5328 2002-10-29  Akim Demaille  <akim@epita.fr>
5330         * doc/autoconf.texi (Header Templates): Put also in words what the
5331         pictures says to assist free style readers.
5332         (Customizing autom4te): s/--cache=/--cache /.
5334 2002-10-29  Akim Demaille  <akim@epita.fr>
5336         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Include stdlib.h and
5337         sys/wait.h.
5338         sparc_address_test returns void.
5339         Use it with an argument, as prototyped.
5340         From Bruno Haible.
5342 2002-10-29  Akim Demaille  <akim@epita.fr>
5344         * doc/autoconf.texi (Subdirectories): Cygnus dirs have
5345         configure.in, not configure.ac.
5346         Reported by Bruno Haible.
5348 2002-10-29  Akim Demaille  <akim@epita.fr>
5350         * tests/torture.at (Deep Package): New test.
5351         (Configuring subdirectories): Don't use a testSubDir as Autotest
5352         now does it itself.
5354 2002-10-29  Akim Demaille  <akim@epita.fr>
5356         * bin/autoreconf.in (&parse_args, $help): Support --warnings.
5357         * doc/autoconf.texi (Invoking autom4te): Rename as...
5358         (autom4te Invocation): this, for consistency with the other nodes.
5360 2002-10-29  Akim Demaille  <akim@epita.fr>
5362         * lib/autom4te.in (Autoconf): s/automate/autom4te/.
5363         Reported by Ralf Corsepius.
5365 2002-10-29  Akim Demaille  <akim@epita.fr>
5367         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
5368         characters is a back as an `obsolete' warning now.
5369         Reported by Ralf Corsepius.
5371 2002-10-28  Akim Demaille  <akim@epita.fr>
5373         * configure.ac: Bump to 2.54c.
5375 2002-10-28  Akim Demaille  <akim@epita.fr>
5377         Version 2.54b.
5379         * tests/foreign.at (Libtool): Adjust to broken libtoolize.
5381 2002-10-28  Akim Demaille  <akim@epita.fr>
5383         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Be robust to different
5384         m4 executable names, and different GNU M4 version.
5385         Reported by Ezra Peisach and Paul Jarc.
5387 2002-10-27  Akim Demaille  <akim@epita.fr>
5389         * lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Really use
5390         AC_RUN_IFELSE.
5392 2002-10-27  Akim Demaille  <akim@epita.fr>
5394         * doc/autoconf.texi: More AC_MSG_FAILURE promotion.
5395         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING):
5396         Die when a simple Fortran program cannot be compiled.
5397         * lib/autoconf/lang.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY):
5398         Issue a warning if no function is given.
5400 2002-10-27  Akim Demaille  <akim@epita.fr>
5402         * doc/autoconf.texi (Run Time): Document AC_RUN_IFELSE.
5403         Move the documentation of AC_TRY_RUN to...
5404         (Obsolete Macros): here.
5405         Adjust all the old samples still using AC_TRY_RUN to AC_RUN_IFELSE.
5406         (autoconf Invocation): Remove the duplicates with `invoking
5407         autom4te'.
5408         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_RUN.
5409         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
5411 2002-10-27  Akim Demaille  <akim@epita.fr>
5413         * doc/autoconf.texi (Generating Sources): Document AC_LANG_CALL
5414         and AC_LANG_FUNC_LINK_TRY.
5415         (Examining Libraries): Rename as...
5416         (Running the Linker): this.
5417         Document AC_LINK_IFELSE.
5418         Move the documentation of AC_TRY_LINK and AC_TRY_LINK_FUNC to...
5419         (Obsolete Macros): here.
5420         * lib/autoconf/fortran.m4 (_AC_F77_NAME_MANGLING): Don't use
5421         AC_TRY_LINK_FUNC nor AC_TRY_LINK.
5422         * lib/autoconf/libs.m4 (AC_CHECK_LIB, AC_PATH_XTRA): Likewise.
5423         * lib/autoconf/headers.m4 (AC_USG): Likewise.
5425 2002-10-27  Akim Demaille  <akim@epita.fr>
5427         * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP.
5429         More `check config.log' messages.
5431         * lib/autoconf/general.m4 (AC_MSG_FAILURE): New.
5432         * doc/autoconf.texi (Printing Messages): Document it.
5433         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Use it when
5434         appropriate.
5435         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT)
5436         (_AC_COMPILER_EXEEXT_WORKS, _AC_COMPILER_EXEEXT_O)
5437         (_AC_COMPILER_OBJEXT): Likewise.
5438         * lib/autoconf/general.m4 (AC_RUN_IFELSE): Likewise.
5439         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS):
5440         Likewise.
5441         * lib/autoconf/c.m4 (AC_PROG_CPP, AC_PROG_CC, AC_PROG_CXXCPP):
5442         Likewise.
5444         Deprecate macros with unusual interfaces.
5446         * lib/autoconf/general.m4 (AC_TRY_CPP, AC_TRY_LINK)
5447         (AC_TRY_COMPILE, AC_TRY_RUN): AU_DEFUN'ed.
5449         Document the new ones, and proper style.
5451         * doc/autoconf.texi (Generating Sources): New.
5452         Document AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM.
5453         (Examining Declarations): Rename as...
5454         (Running the Preprocessor): this.
5455         Document AC_PREPROC_IFELSE.
5456         (Examining Syntax): Rename as...
5457         (Running the Compiler): this.
5458         (AC_FOO_IFELSE vs AC_TRY_FOO): New section.
5459         (Obsolete Macros): Move the definition of AC_TRY_CPP and
5460         AC_TRY_COMPILE here.
5462 2002-10-27  Akim Demaille  <akim@epita.fr>
5464         Move sections around.
5466         * doc/autoconf.texi (Customizing autom4te): Remove a lost
5467         sentence.
5468         Reported by Burno Haible.
5469         (Language Choice): Now the first section of...
5470         (Writing Tests): this section.
5471         Make the introduction less C-centric.
5472         (Guidelines, Test Functions): Move to...
5473         (Writing Test Programs): this new section.
5474         (Test Programs): Merge into...
5475         (Run Time): this.
5477 2002-10-27  Akim Demaille  <akim@epita.fr>
5479         * lib/freeze.mk ($(AUTOM4TE_CFG)): Add a missing dependency on
5480         autom4te.in that resulted in the need for two `make' runs.
5482 2002-10-27  Akim Demaille  <akim@epita.fr>
5484         * configure.ac: Bump to 2.54b.
5486 2002-10-25  Akim Demaille  <akim@epita.fr>
5488         Version 2.54a.
5490         * Makefile.maint: Update from the Coreutils.
5491         (AMTAR): Remove, obsolete.
5492         (automake_repo): Update to redhat.com.
5493         (cvs_file): New.
5494         Adjust to the fact that ansi2knr is now hosted by Automake.
5495         * Makefile.am (cvs_files): Add install-sh and mkinstalldirs.
5496         * config/config.guess, config/mkinstalldirs, config/texinfo.tex:
5497         Update from masters.
5498         * lib/autoscan/Makefile.am (EXTRA_DIST, nodist_autoscanlib_DATA):
5499         autoscan.pre is not to be installed, and autoscan.list is not to
5500         be shipped.
5501         (CLEANFILES): Add autoscan.list.
5502         (autoscan.list): Disable the cache.
5503         * bin/Makefile.am: Include freeze.mk.
5505 2002-10-25  Akim Demaille  <akim@epita.fr>
5507         * bin/autom4te.in (&load_configuration): Take the file as
5508         argument.
5509         (&parse_args): Handle -C, --cache.
5510         ($help): Adjust.
5511         (MAIN): Load ~/.autom4te.cfg and ./.autom4te.cfg.
5512         * lib/autom4te.in (Autoconf): Pass --cache=autom4te.cache.
5513         * doc/autoconf.texi (Invoking autom4te): Document --cache.
5514         Now a subsection of...
5515         (Using autom4te): This new section.
5516         (Customizing autom4te): New.
5517         (autom4te.cache): Adjust.
5519 2002-10-25  Akim Demaille  <akim@epita.fr>
5521         * doc/autoconf.texi (Generic Headers): More information on how to
5522         use AC_CHECK_HEADERS.
5524 2002-10-25  Akim Demaille  <akim@epita.fr>
5526         * bin/autoconf.as, bin/autoconf.in, bin/autoupdate.in ($help):
5527         Space changes.
5529 2002-10-25  Akim Demaille  <akim@epita.fr>
5531         * bin/autoscan.in (output): Output AC_PREREQ.
5532         (%needed_macros): Add AC_PREREQ so that configure.ac without one
5533         be reported.
5535 2002-10-23  Akim Demaille  <akim@epita.fr>
5537         * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
5538         document _Bool.
5540 2002-10-23  Akim Demaille  <akim@epita.fr>
5542         * bin/autom4te.in (handle_traces): Handle @&t@ in traces.
5543         Reported by Peter Eisentraut.
5545 2002-10-23  Akim Demaille  <akim@epita.fr>
5547         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Also look for the
5548         type _Bool.
5549         Fix a typo.
5550         * doc/autoconf.texi (Particular Headers): Adjust according to Paul
5551         Eggert's recommandations.
5553 2002-10-22  Akim Demaille  <akim@epita.fr>
5555         * lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): New, based on CVS
5556         Bison, by Paul Eggert.
5557         * doc/autoconf.texi (Particular Headers): Document it.
5559 2002-10-22  Aaron M. Ucko  <amu@alum.mit.edu>
5561         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Avoid duplicates in
5562         `$ac_configure_args'.
5564 2002-10-22  Akim Demaille  <akim@epita.fr>
5566         * doc/autoconf.texi: Use AC_CONFIG_HEADERS in examples.
5567         (AC_ST_BLKSIZE, AC_ST_RDEV): Directly point to AC_CHECK_MEMBERS.
5568         From Art Haas.
5570 2002-10-22  Akim Demaille  <akim@epita.fr>
5572         Restore the 2002-10-11  Akim Demaille  <akim@epita.fr> patch:
5574         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5575         (AC_CHECK_HEADER, _AC_CHECK_HEADER_NEW,_AC_CHECK_HEADER_OLD): Restore.
5576         (_AC_CHECK_HEADER_NEW): Rename as...
5577         (AC_CHECK_HEADER): this.
5579 2002-10-22  Akim Demaille  <akim@epita.fr>
5581         * doc/autoconf.texi (Limitations of Usual Tools): Remove incorrect
5582         words about HP-UX cmp: it was actually a user-written cmp.
5584 2002-10-22  Akim Demaille  <akim@epita.fr>
5586         * tests/foreign.at (Libtool): Don't check autoconf's stderr: there
5587         are a few warnings.
5588         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
5589         Quote for Perl '' strings, not "".
5590         * bin/autoheader.in: Invoke autoconf to get '' strings, not ""
5591         strings.
5593 2002-10-22  Akim Demaille  <akim@epita.fr>
5595         * lib/m4sugar/m4sh.m4 (_AS_QUOTE): The warning about quoted
5596         characters is a syntax warning now.
5597         (_AS_QUOTE): Accept $2 as list of characters to quote.
5598         * lib/autoconf/autoheader.m4 (AH_VERBATIM, _AH_VERBATIM_OLD):
5599         Quote for Perl, not sh.
5600         * bin/autoheader.in: When $debug, report the file which is
5601         `do'ne.
5602         * tests/tools.at (autom4te, autoheader): Exercise @bar, not merely
5603         `@', to tickle Perl's lists.
5604         Reported by Carlos Velasco.
5606 2002-10-18  Akim Demaille  <akim@epita.fr>
5608         * bin/autom4te.in (handle_m4): Pass --fatal-warning to m4, so that
5609         missing included files _are_ errors.
5610         Thanks to Alexandre Duret-Lutz.
5611         * tests/tools.at (autom4te cache): Adjust.
5612         * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): New.
5613         (AT_CHECK_M4SUGAR): Use it.
5614         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
5615         Adjust.
5616         * tests/tools.at (autom4te): Now it does exit 1.
5618 2002-10-17  Akim Demaille  <akim@epita.fr>
5620         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Don't use cmp.
5621         Fixes the `AC_ARG_VAR' test failures.
5622         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Don't use cmp.
5623         * lib/freeze.mk (check-forbidden-patterns): New.
5624         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am
5625         * lib/m4sugar/Makefile.am (check-local): Use it to catch `cmp'.
5626         * doc/autoconf.texi (Limitations of Usual Tools): HP-UX' cmp and
5627         /dev/null.
5628         Reported months ago by H. Merijn Brand.
5630 2002-10-17  Akim Demaille  <akim@epita.fr>
5632         * tests/tools.at (autoheader): Put randoms `@' to stress Perl.
5634 2002-10-16  Paul Eggert  <eggert@twinsun.com>
5636         * Makefile.maint (wget_files): Remove ansi2knr.c.
5637         (ansi2knr.c-url_prefix): Remove.
5639 2002-10-16  Akim Demaille  <akim@epita.fr>
5641         Because of caching, some files that no longer exist and are no
5642         longer required can still cause errors.
5643         Reported by Alexandre Duret-Lutz.
5645         * bin/autom4te.in (&parse_args): Do not prepend `--reload-state'
5646         to frozen files in @ARGV, as @ARGV must remain being a list of
5647         files.  Rather, at M4 call sites, use this...
5648         (&files_to_options): New function.
5649         (&freeze): Use &error.
5650         (&up_to_date): If a file that was included according to the cache
5651         is no longer there, then the output is out dated.
5652         (&main): Don't even check whether a file is up to date is anyway
5653         --force is given.
5654         * tests/tools.at (autom4te cache): New.
5656 2002-10-16  Akim Demaille  <akim@epita.fr>
5658         * bin/autoconf.as: Kill dead options.
5659         * bin/autoupdate.in (&parse_args): Kill old options.
5660         * bin/autoreconf.in (&parse_args): Remove dead options.
5661         Factor some code.
5662         (&autoreconf): Report the directories we enter *and leave*, so
5663         that error messages can be easily located, and use GNU Make
5664         format, so that Emacs' compile mode understands us.
5665         * lib/Autom4te/General.pm (&update_file): Use `verbose' to report
5666         if some file was changed instead of `print'.
5667         * bin/autoheader.in: Suggest AC_DEFINE with 3 args when needed.
5668         (&parse_args): Remove the dead options.
5669         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Adjust to the new
5670         autoheader's quiet mode.
5671         (AT_CHECK_AUTOUPDATE): Likewise.
5672         * tests/tools.at (autoupdate): Adjust.
5673         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
5675 2002-10-11  Akim Demaille  <akim@epita.fr>
5677         No longer use CPP to check for the existing of headers: use CC to
5678         check for compilability.
5680         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
5681         (AC_CHECK_HEADER, _AC_CHECK_HEADER_OLD): Remove.
5682         (_AC_CHECK_HEADER_NEW): Rename as...
5683         (AC_CHECK_HEADER): this.
5685         * lib/autotest/general.m4 (AT_INIT): Include the failed test
5686         numbers in the Subject suggestion.
5688 2002-10-11  Akim Demaille  <akim@epita.fr>
5690         * lib/autoconf/specific.m4 (AC_DECL_SYS_SIGLIST): Obsolete.
5691         Suggest using AC_CHECK_DECLS instead.
5693 2002-10-11  Akim Demaille  <akim@epita.fr>
5695         * tests/torture.at (AC_ARG_VAR): Have configure report the value
5696         of `precious'.
5698 2002-10-11  Akim Demaille  <akim@epita.fr>
5700         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use $$ in the
5701         file name to enable parallel executions.
5702         From Sam Varshavchik.
5704 2002-10-08  Akim Demaille  <akim@epita.fr>
5706         * bin/autoreconf.in (&autoreconf): Run autopoint before the first
5707         aclocal invocation, as Gettext macros might not be visible to
5708         aclocal.
5709         Instead of blindly running autopoint, scan configure.ac (not the
5710         traces) for AM_GNU_GETTEXT_VERSION uses, as autopoint does.
5711         Reported by Paul D. Smith.
5713 2002-10-08  Paul Eggert  <eggert@twinsun.com>
5715         Work around problems found when POSIXLY_CORRECT=1 is set.
5716         None of this seems to have anything to do with POSIX, really,
5717         but it's how Perl getopt works.
5718         * bin/autom4te.in (parse_args): Configure GetOpt with
5719         "permute", too.
5720         * doc/autoconf.texi (Invoking autom4te):
5721         --warning -> --warnings.
5722         * lib/autom4te.in: --warning -> --warnings.
5724 2002-09-28  Akim Demaille  <akim@epita.fr>
5726         * doc/autoconf.texi (autom4te.cache): New section.
5728 2002-09-28  Akim Demaille  <akim@epita.fr>
5730         * lib/autom4te.in (Autoscan-preselections, Autoreconf-preselections)
5731         (Automake-preselections): Update.
5732         * bin/autoreconf.in, bin/autoheader.in: Comment changes.
5734 2002-09-28  Akim Demaille  <akim@epita.fr>
5736         * lib/autoscan/autoscan.pre: Move all the remaining rules to...
5737         * lib/autoconf/c.m4, lib/autoconf/functions.m4,
5738         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
5739         * lib/autoconf/specific.m4, lib/autoconf/types.m4: here.
5741 2002-09-28  Akim Demaille  <akim@epita.fr>
5743         * tests/torture.at (Configuring subdirectories): Be robust to
5744         users who use config.site to require for a cache: in this case,
5745         the two last configure runs, using two different sets of
5746         arguments, trigger a legitimate error.
5748 2002-09-28  Akim Demaille  <akim@epita.fr>
5750         * tests/m4sh.at (Functions Support, Functions and return Support):
5751         New.
5753 2002-09-28  Akim Demaille  <akim@epita.fr>
5755         * bin/Makefile.am (ETAGS_SH, ETAGS_PERL): Update: ifnames and
5756         autoheader are Perl programs.
5757         (autoconf, autoheader, autoreconf, autoupdate, ifnames, autoscan)
5758         (autom4te): Specify that the sources are in the $srcdir.
5759         * doc/autoconf.texi (Installation Directory Variables): Adjust.
5761 2002-09-28  Akim Demaille  <akim@epita.fr>
5763         * lib/autoscan/autoscan.pre (st_blksize, st_blocks, st_rdev)
5764         (tm_zone): Move their rules to...
5765         * lib/autoconf/types.m4: here, using AN_ macros.
5766         * lib/autoscan/autoscan.pre (AWK, BISON, INSTALL, LEX, LN, MAKE)
5767         (RANLIB, YACC, awk, bison, byacc, flex, gawk, install, lex, ln)
5768         (make, mawk, nawk, ranlib, yacc): Similarly, move to...
5769         * lib/autoconf/programs.m4: here.
5770         * lib/freeze.mk (ETAGS_FOR_M4, ETAGS_FOR_M4SUGAR)
5771         (ETAGS_FOR_AUTOCONF): New.
5772         Use it.
5774 2002-09-28  Akim Demaille  <akim@epita.fr>
5776         * lib/autoconf/autoscan.m4: New file.
5777         * lib/autoconf/autoconf.m4: Include it.
5778         * lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
5779         that were listed in the original autoscan.list.
5780         * lib/autoconf/headers.m4: Similarly with headers.
5781         * lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
5782         (.m4.m4f): Don't pass --prepend-include, since that's done by
5783         tests/autom4te itself.
5784         * lib/autoscan/Makefile.am: Include freeze.mk.
5785         (autoscan.list): New target --this file is no longer a source.
5786         (autoscan.pre): New file.
5788 2002-09-28  Akim Demaille  <akim@epita.fr>
5790         * bin/autoscan.in (@kinds): Make them singular.
5791         Adjust all uses.
5792         (&init_tables): When --debug, report the list of rules to ease
5793         tracking changes in autoscan.list.
5794         * lib/autoscan/autoscan.list (function): Strip comments, sort.
5796 2002-09-28  Akim Demaille  <akim@epita.fr>
5798         * lib/autoscan/functions, lib/autoscan/headers,
5799         * lib/autoscan/identifiers, lib/autoscan/makevars,
5800         * lib/autoscan/programs: Merge into...
5801         * lib/autoscan/autoscan.list: this.
5802         * bin/autoscan.in (&init_tables): Adjust.
5804 2002-09-28  Akim Demaille  <akim@epita.fr>
5806         * lib/autoscan/functions, lib/autoscan/headers,
5807         * lib/autoscan/identifiers, lib/autoscan/makevars,
5808         * lib/autoscan/programs: Make the `kind' explicit, i.e., each
5809         `functions' line is now prefixed with `function:'.
5810         * bin/autoscan.in (&init_tables): Adjust.
5812 2002-09-28  Akim Demaille  <akim@epita.fr>
5814         From now on, autoscan files must always map a macro name to a
5815         word: there is no `default' macro for autoscan.
5817         * bin/autoscan.in (&init_tables): Reject entries with no macro at
5818         all.
5819         * lib/autoscan/functions, lib/autoscan/headers: Make the macro
5820         explicit.
5822 2002-09-28  Akim Demaille  <akim@epita.fr>
5824         * bin/autoscan.in (%c_keywords): Remove.
5825         (&used): Keep only track of the words we might be interested in.
5826         (&output_kind): It is no longer needed to look for non active
5827         checks.
5829 2002-09-27  Akim Demaille  <akim@epita.fr>
5831         * lib/autoconf/functions.m4 (AC_FUNC_MBRTOWC): New, stolen from
5832         jm_FUNC_MBRTOWC, by Paul Eggert, from the Coreutils 4.5.1.
5833         * lib/autoscan/functions: Adjust.
5834         * doc/autoconf.texi (Particular Functions): Adjust.
5836 2002-09-27  Akim Demaille  <akim@epita.fr>
5838         * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
5839         from /tmp.
5840         Thanks to Bill Moseley and Paul Eggert.
5841         * lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
5842         the tmpdir must be created.
5843         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
5844         dir be in the build tree, instead of $TMPDIR.
5846 2002-09-27  Akim Demaille  <akim@epita.fr>
5848         * bin/autoscan.in: Improve the comments.
5849         (&parse_args): Drop obsolete undocumented options.
5850         (&output_kind): Output warnings.
5851         * lib/autoscan/functions: (dcgettext): Now trigger AM_GNU_GETTEXT.
5852         (getwd): Trigger a warning.
5854 2002-09-26  Akim Demaille  <akim@epita.fr>
5856         * bin/autoreconf.in: Clarify that -s is meaningless without -i.
5857         Reported by Ralf Corsepius.
5858         * doc/autoconf.texi (autoreconf Invocation): Likewise.
5860 2002-09-26  Akim Demaille  <akim@epita.fr>
5862         Single suffix rules and seperated dependencies are not portable.
5864         * doc/autoconf.texi (Installation Directory Variables): Update.
5865         (Limitations of Make): Some about `Single Suffix Rules and
5866         Separated Dependencies'.
5867         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
5868         (ifnames, autoscan, autom4te): Un-factor into several rules.
5870 2002-09-25  Paul Eggert  <eggert@twinsun.com>
5872         * BUGS (Interoperability bugs): New section.  Mention libtool
5873         1.4.2, configure.ac, and AC_CONFIG_AUX_DIR interoperability bug.
5875 2002-09-24  Paul Eggert  <eggert@twinsun.com>
5877         Fix a portability bug reported by Alexandre Duret-Lutz: Solaris 8
5878         make handles suffix-rules differently from GNU make.
5880         * bin/Makefile.am (SUFFIXES, .in): Remove.
5881         (autoconf autoheader autoreconf autoupdate ifnames autoscan autom4te):
5882         Move the body of the old .in rule here.
5884 2002-09-16  Akim Demaille  <akim@epita.fr>
5886         i960 compilers create `b.out' files by default.
5887         Reported by Ralf Corsepius.
5889         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Remove b.out files.
5890         (_AC_COMPILER_EXEEXT_DEFAULT): Adjust to b.out.
5892 2002-09-13  Paul Eggert  <eggert@twinsun.com>
5894         * doc/autoconf.texi (Particular Headers): Remove obsolete
5895         reference to `struct timezone' in the description of
5896         AC_HEADER_TIME.
5898 2002-09-13  Akim Demaille  <akim@epita.fr>
5900         Version 2.54.
5902         * config/config.sub, config/config.guess: Update.
5903         * Makefile.maint: Update from bits of the Coreutils 4.5.1.
5904         * Makefile.am: Adjust.
5906 2002-09-13  Akim Demaille  <akim@epita.fr>
5908         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Suggest
5909         reading config.log when the compiler is rejected.
5910         Suggested by Guido Draheim.
5912 2002-09-13  Akim Demaille  <akim@epita.fr>
5914         * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
5915         (chdir_init) might hang when stat'ing mounted directories.
5916         Reported by Vance Shipley.
5918 2002-09-12  Akim Demaille  <akim@epita.fr>
5920         * bin/autoscan.in (&parse_args): Pass a reference to the lists, not
5921         the lists.
5923 2002-09-12  Akim Demaille  <akim@epita.fr>
5925         * doc/autoconf.texi (Defining Symbols): Present two different
5926         prototypes for AC_DEFINE and AC_DEFINE_UNQUOTED to emphasize the
5927         difference between 1 argument calls, and 2-3 argument calls.
5929 2002-09-12  Peter Eisentraut  <peter_e@gmx.net>
5931         * doc/autoconf.texi: Review grammar and punctuation.
5933 2002-09-11  Paul Eggert  <eggert@twinsun.com>
5935         * doc/autoconf.texi: Fix minor formatting, spelling, and
5936         grammatical typos.
5937         (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but
5938         AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case
5939         is obsolescent.
5941 2002-09-11  Akim Demaille  <akim@epita.fr>
5943         * doc/autoconf.texi (Questions): Rename as...
5944         (FAQ): this.
5945         (Defining Directories): New.
5947 2002-09-09  Akim Demaille  <akim@epita.fr>
5949         * doc/autoconf.texi (Making testsuite Scripts): Update.
5950         Suggested by Nishio Futoshi.
5952 2002-09-09  Koji Arai  <JCA02266@nifty.ne.jp>
5954         * doc/autoconf.texi (Making testsuite Scripts): Use `@@' where a
5955         plain `@' is wanted.
5957 2002-09-09  Akim Demaille  <akim@epita.fr>
5959         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Keep the
5960         `duplicates', since the algorithm was too naive and could keep
5961         `--prefix=1 --prefix=2 --prefix=1' as `--prefix=1 --prefix=2', and
5962         keep `--prefix foo --prefix bar' as `--prefix foo bar'.
5963         Reported by Ralf Corsepius.
5964         * tests/torture.at (Configuring subdirectories): Exercise these
5965         cases.
5967 2002-09-09  Akim Demaille  <akim@epita.fr>
5969         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use $srcdir when
5970         looking for a replacement file.
5971         * lib/autoconf/general.m4 (AC_CHECK_DECLS): Check that the
5972         directory is relative.
5973         * doc/autoconf.texi (Generic Functions): Clarify the replacement
5974         directory definition.
5975         Reported by Andreas Schwab and Jim Meyering.
5977 2002-09-06  Akim Demaille  <akim@epita.fr>
5979         * doc/autoconf.texi (Setting Output Variables): Clarify what
5980         precious variables are.
5981         Suggested by Pontus Skoeld.
5983 2002-09-05  Akim Demaille  <akim@epita.fr>
5985         * bin/Makefile.am (autoconf, autoheader, autoreconf, autoupdate)
5986         (ifnames, autoscan, autom4te): Since we don't only depend on
5987         configure.ac variables (such as VERSION etc.), but also on prefix
5988         and so forth, depend on Makefile, not configure.ac.
5989         Reported by Alexandre Duret-Lutz.
5990         * doc/autoconf.texi (Installation Directory Variables): Adjust.
5992 2002-09-05  Kevin Ryde  <user42@zip.com.au>
5994         * doc/autoconf.texi (Limitations of Make): HP-UX trailing backslashes
5995         doesn't seem to be confined to ia64, just say "some versions".
5997 2002-09-04  Akim Demaille  <akim@epita.fr>
5999         * Makefile.am, doc/Makefile.am: Remove pdf targets, handled by
6000         Automake 1.6c.
6001         * Makefile.am (maintainer-clean-local): Remove.
6002         (MAINTAINERCLEANFILES): Remove COPYING.
6004 2002-09-03  Paul Eggert  <eggert@twinsun.com>
6006         * doc/autoconf.texi (Configuration Commands): Remove obsolete
6007         example for AC_CONFIG_COMMANDS_PRE.  Problem reported by Marcus
6008         Brinkmann.
6010 2002-09-03  Akim Demaille  <akim@epita.fr>
6012         * configure.ac: Bump to 2.53d.
6013         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.6c, i.e., CVS Automake
6014         as of today, on Automake's team suggestion.
6016 2002-09-03  Akim Demaille  <akim@epita.fr>
6018         Version 2.53c.
6020 2002-09-02  Akim Demaille  <akim@epita.fr>
6022         * bin/autom4te.in (parse_args): Don't honor AUTOM4TE_PATH and
6023         SITE_MACRO_DIR.
6024         * configure.ac: Disable SITE_MACRO_DIR.
6026 2002-09-02  Jim Meyering  <meyering@lucent.com>
6028         * doc/autoconf.texi (AC_SYS_POSIX_TERMIOS): Reflect renaming: s/am/ac/,
6029         i.e., change am_cv_sys_posix_termios to ac_cv_sys_posix_termios.
6030         Also, tweak grammar: s/make sure to/be sure to/.
6032 2002-09-02  Paul Eggert  <eggert@twinsun.com>
6034         * doc/autoconf.texi (Limitations of Builtins): Explain why logical
6035         directory names are generally preferable to physical names.
6037 2002-09-02  Akim Demaille  <akim@epita.fr>
6039         * lib/Autom4te/General.pm (&update_file): s/die/error/.
6040         Reported by Raja R. Harinath.
6041         * bin/autoheader.in, bin/autoreconf.in, bin/autoscan.in,
6042         * bin/autoupdate.in: Use error instead of die.
6044 2002-09-01  Paul Eggert  <eggert@twinsun.com>
6046         * tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
6047         ordinary shell concatenation rather than echo+tr+sed command that
6048         runs afoul of a long-line-related sed bug in Solaris 8.
6050         * bin/autoheader.in (parse_args): --warning -> --warnings.
6052         * bin/autoconf.as: Work even if "ls" outputs "FOO not found" to
6053         stdout, as traditional "ls" does.
6054         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT,
6055         _AC_COMPILER_EXEEXT_O): Likewise.
6056         * doc/autoconf.texi (Limitations of Usual Tools): Add "ls".
6058         * bin/autoconf.as: Add --prepend-include option.  This patch was
6059         applied to bin/autoconf.in in the 2002-07-17 patch by Mark D. Roth,
6060         but bin/autoconf.in is generated automatically from bin/autoconf.as.
6062         * bin/autoconf.in, configure: Regenerate.
6064         * doc/autoconf.texi (Special Shell Variables): Mention
6065         ENV, MAIL, MAILPATH, PS1, PS2, PS4.  Index PWD.
6067         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Unset ENV, MAIL,
6068         MAILPATH and set PS1, PS2, PS4 to default values, to work
6069         around bug in pre-3.0 UWIN ksh reported by Bruce Lilly.
6070         For LC_ALL etc, first try to set to "C" as POSIX requires and as
6071         the Autoconf documentation specifies; fall back to "unset" only if
6072         this fails.  Use a shell for-loop for this rather than an m4 loop,
6073         to shorten the output script.
6075 2002-08-30  Paul Eggert  <eggert@twinsun.com>
6077         * doc/autoconf.texi (Special Shell Variables): Mention POSIX
6078         1003.1-2001's requirements for CDPATH.  Give a simpler workaround
6079         for the CDPATH problem.  Document PWD.
6080         (Limitations of Builtins): Document the problem that "cd $foo" and
6081         "ls $foo" may refer to different directories in shells conforming
6082         to POSIX 1003.1-2001.  Use PS1 rather than CDPATH for "unset"
6083         example, since the old example is now out of date.
6085         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Reject FOO if "cd
6086         FOO" and "ls FOO" talk about different directories; this catches
6087         problems when POSIX 1003.1-2001 "cd" fails due to symlink
6088         spaghetti.
6090         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use AS_UNSET instead
6091         of rolling our own unset.
6092         (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since
6093         in practice we needn't worry about CDPATH if unset doesn't work.
6095         * Makefile.in, aclocal.m4, bin/Makefile.in,
6096         config/Makefile.in, doc/Makefile.in, lib/Makefile.in,
6097         lib/Autom4te/Makefile.in, lib/autoconf/Makefile.in,
6098         lib/autoscan/Makefile.in, lib/autotest/Makefile.in,
6099         lib/emacs/Makefile.in, lib/m4sugar/Makefile.in, man/Makefile.in,
6100         tests/Makefile.in: Regenerate with Automake 1.6.3.
6102         * config/config.guess, config/config.sub, config/mkinstalldirs:
6103         Update.
6105         * configure: Regenerate with self.
6107 2002-08-30  Kevin Ryde  <user42@zip.com.au>
6109         * doc/autoconf.texi (Limitations of Usual Tools): Notes on "cc"
6110         default output.
6112 2002-08-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6114         * bin/autom4te.in (Request::load): Correctly test for "do" read
6115         failure.
6117 2002-08-29  Akim Demaille  <akim@epita.fr>
6119         * lib/Autom4te/General.pm (&xqx): New.
6120         (&xsystem): Use WIFEXITED and WEXITSTATUS instead of decoding $? by
6121         hand, which is not portable.
6122         (&error): New.
6123         * bin/autom4te.in: Use them.
6124         Use &error instead of die.
6125         * tests/m4sugar.at (m4_warn, m4_require: circular dependencies):
6126         Adjust.
6128 2002-08-17  Paul Eggert  <eggert@twinsun.com>
6130         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove fc from the
6131         default list of compilers to try, since it was long ago superseded
6132         by the ksh fc builtin.  Suggested by Steven G. Johnson.
6134 2002-07-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
6136         * doc/autoconf.texi (Invoking autom4te): End the option table,
6137         fixing a bug introduced by the previous patch.
6138         (Limitations of Make): Add a 'target lookup' subentry in the
6139         'VPATH' entry.  Rewrite all `make' occurences as `@command{make}'.
6141 2002-07-29  Mark D. Roth  <roth@feep.net>
6143         * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
6144         options and use $AUTOM4TE_PATH.
6145         * doc/autoconf.texi: Remove documentation of autom4te
6146         --include-envvar and --site-macro-subdir options and document
6147         use of $AUTOM4TE_PATH.
6148         * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
6149         arguments from each language section.
6151 2002-07-29  Paul Eggert  <eggert@twinsun.com>
6153         * doc/install.texi: Include copyright symbol in copyright notice.
6155         * Makefile.am (MAKEINFO): Remove; it's a user-specified macro.
6156         Replace with:
6157         (AM_MAKEINFOFLAGS): New macro.
6158         * doc/Makefile.am (MAKEINFO, AM_MAKEINFOFLAGS): Likewise.
6159         * Makefile.am (INSTALL): Use the new macros.
6160         Use -o rather than --output, since "missing" does not grok --output.
6162 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
6164         * doc/autoconf.texi (Limitations of Make): Escaped newlines in
6165         comments do not always work. Never trust the exit status of
6166         `make -k'.
6168 2002-07-24  Kevin Ryde  <user42@zip.com.au>
6170         * doc/autoconf.texi (Limitations of Make, Making testsuite Scripts):
6171         Untabify, since tabs are not enjoyed by texi2dvi and makeinfo.
6173 2002-07-23  Paul Eggert  <eggert@twinsun.com>
6175         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE):
6176         Use PATH="/nonexistent;.", not PATH=".;.", as FreeBSD ksh2002
6177         apparently treats PATH="nonexistent" as if it contained ".".
6178         Bug reported by Stefan `Sec' Zehl.
6180 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
6182         * doc/autoconf.texi (Limitations of Make): Mention the special
6183         handling of the obj/ directory by BSD make.
6185 2002-07-20  Kevin Ryde  <user42@zip.com.au>
6187         * doc/autoconf.texi (Limitations of Make): Add HP-UX IA-64 trailing
6188         backslashes.
6190 2002-07-19  Akim Demaille  <akim@epita.fr>
6192         * doc/autoconf.texi (Function Portability): `exit'.
6193         (Programming in M4sh): Ethymology of M4sh.
6195 2002-07-19  Akim Demaille  <akim@epita.fr>
6197         * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U.
6199 2002-07-18  Akim Demaille  <akim@epita.fr>
6201         Version 2.53b.
6203 2002-07-18  Akim Demaille  <akim@epita.fr>
6205         * config/config.guess, config/config.sub: Update.
6207 2002-07-18  Akim Demaille  <akim@epita.fr>
6209         Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
6210         Automake's parts.
6212         * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
6213         * lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
6214         * tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
6216 2002-07-18  Akim Demaille  <akim@epita.fr>,
6217             Alexandre Duret-Lutz  <duret_g@epita.fr>
6219         * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
6220         _AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
6222 2002-07-17  Russ Allbery  <rra@stanford.edu>
6224         * doc/autoconf.texi (Initializing configure): Clarify the
6225         description of the tarname default.
6227 2002-07-17  Andreas Buening  <andreas.buening@nexgo.de>
6229         * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
6230         ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
6231         latter was not run.
6233 2002-07-17  Akim Demaille  <akim@epita.fr>
6235         * lib/Autom4te/General.pm (find_file): Browse the directories in
6236         the order they are given.
6238 2002-07-17  Akim Demaille  <akim@epita.fr>
6240         * tests/wrapsh.as, tests/wrappl.as: Merge into...
6241         * tests/wrapper.as: this.
6242         * tests/Makefile.am, configure.ac: Adjust.
6244 2002-07-17  Mark D. Roth  <roth@feep.net>
6246         * configure.ac: Add --enable-site-macro-dir option.
6247         * bin/Makefile.am: Expand @SITE_MACRO_DIR@.
6248         * bin/autom4te.in: Add --prepend-include, --include-envvar, and
6249         --site-macro-subdir options.
6250         * bin/autoconf.in: Add --prepend-include option.
6251         * bin/autoheader.in: Add --prepend-include option.
6252         * bin/autoreconf.in: Add --prepend-include option.
6253         * bin/autoscan.in: Add --prepend-include option.
6254         * bin/autoupdate.in: Add --prepend-include option.
6255         * doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
6256         macro directory, remove note that include path directories are
6257         used in reverse order, and document --prepend-include option.
6258         * lib/autom4te.in: Use --prepend-include instead of --include.
6259         * tests/wrapsh.in: Use --prepend-include instead of --include.
6261 2002-07-17  Akim Demaille  <akim@epita.fr>
6263         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
6264         tarnames.
6265         * doc/autoconf.texi (Initializing configure): Adjust.
6267 2002-07-17  Akim Demaille  <akim@epita.fr>
6269         * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
6270         (_AC_FUNC_MALLOC): New.
6271         (AC_FUNC_MALLOC): Use the latter.
6272         Define HAVE_MALLOC to 0 if broken.
6273         * doc/autoconf.texi (Particular Functions): Adjust.
6275 2002-07-16  Akim Demaille  <akim@epita.fr>
6277         * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
6278         * doc/autoconf.texi (C Compiler): Adjust.
6280 2002-07-09  Akim Demaille  <akim@epita.fr>
6282         * doc/autoconf.texi: Properly set the ``header'' part.
6284 2002-07-09  Akim Demaille  <akim@epita.fr>
6286         * doc/autoconf.texi (Systemology): Some about Darwin.
6288 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
6290         * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
6291         Don't use AC_REQUIRE in AU_DEFUN.
6293 2002-07-09  Art Haas  <ahaas@neosoft.com>
6295         * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate.
6297 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
6299         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
6300         bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
6301         lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
6302         so that Emacs setups GNU style for perl-mode and cperl-mode.
6304 2002-06-27  Paul Eggert  <eggert@twinsun.com>
6306         * config/install-sh: Quote $src.  Prefer || to test's -o option,
6307         as per "Limitations of Builtins".
6308         * tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
6309         * tests/semantics.at (AC_C_BIGENDIAN): Likewise.
6311         * tests/mktests.sh: Use grep instead of fgrep, as per
6312         "Limitations of Builtins".
6314 2002-06-15  Paul Eggert  <eggert@twinsun.com>
6316         * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
6317         autom4te_perllibdir): Set to top build dir or src dir as appropriate,
6318         so that we consistently test the just-built programs.
6319         * tests/wrappl.as: Likewise.
6321 2002-06-12  Paul Eggert  <eggert@twinsun.com>
6323         * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
6324         name, so that symlinks to 'autoconf' work properly.  Bug reported
6325         by Bruno Haible.
6326         * bin/autoheader.in (AUTOM4TE): Likewise.
6327         * bin/autoreconf.in (autoconf, autoheader): Likewise.
6328         * bin/autoscan.in (autom4te): Likewise.
6329         * bin/autoupdate.in (autom4te): Likewise.
6331         * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
6332         btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
6333         on Solaris 2.5.1.
6335 2002-06-11  Andreas Schwab  <schwab@suse.de>
6337         * doc/autoconf.texi: Add more dir entries.
6339 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
6341         * bin/autom4te.in ($cache): Don't define using `$me', the name
6342         of the cache should not depend on the name under which autom4te
6343         was installed.
6345 2002-06-07  Akim Demaille  <akim@epita.fr>
6347         * tests/tools.at (autoconf: forbidden tokens, basic)
6348         (autoconf: forbidden tokens, exceptions): Adjust to the change of
6349         words in autom4te.in.
6351 2002-06-07  Peter Eisentraut  <peter_e@gmx.net>
6353         * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
6354         _AC_LANG_PROGRAM_C_F77_HOOKS.
6356 2002-06-07  Akim Demaille  <akim@epita.fr>
6358         * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
6359         rename as...
6360         (AC_REPLACE_FNMATCH): this.
6361         * tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
6362         AC_FUNC_FNMATCH_GNU.
6364 2002-06-07  Akim Demaille  <akim@epita.fr>
6366         * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
6367         Rosetta Stone for Unix.
6369 2002-06-07  Akim Demaille  <akim@epita.fr>
6371         * bin/autom4te.in (warn_forbidden): When rejecting a token,
6372         suggest m4_pattern_allow.
6373         Suggested by Adam J. Richter.
6375 2002-06-07  Akim Demaille  <akim@epita.fr>
6377         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
6378         ac_config_libobj_dir.
6379         (AC_CONFIG_LIBOBJ_DIR): New.
6380         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
6381         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
6382         Use ac_config_libobj_dir to find the replacement files.
6383         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
6384         (AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
6385         (AC_REPLACE_FNMATCH_GNU): these.
6386         (AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
6387         * doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
6388         * tests/mktests.sh (ac_exclude_list): Don't check
6389         AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
6391 2002-06-06  Paul Eggert  <eggert@twinsun.com>
6393         * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
6394         if ln doesn't work.
6395         * NEWS: Likewise.
6396         * doc/autoconf.texi (Configuration Links): Likewise.
6397         (Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
6399 2002-06-05  Paul Eggert  <eggert@twinsun.com>
6401         * config/config.guess, config/config.sub, config/texinfo.tex:
6402         Update from masters.
6404 2002-05-29  Paul Eggert  <eggert@twinsun.com>
6406         * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
6407         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
6408         * lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
6409         Likewise.
6410         * lib/autoconf/Makefile.am (check-local): Likewise.
6411         * lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
6412         * lib/autoconf/types.m4 (commentary only): Likewise.
6413         * lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
6414         * lib/autotest/Makefile.am (check-local): Likewise.
6415         * lib/m4sugar/Makefile.am (check-local): Likewise.
6416         * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
6417         * tests/mktests.sh (egrep): New var; use it instead of plain egrep.
6419         * lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
6420         * doc/autoconf.texi (Particular Programs): Document them.
6421         (Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
6422         * NEWS: Likewise.
6424 2002-05-27  Paul Eggert  <eggert@twinsun.com>
6426         * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
6427         * NEWS, doc/autoconf.texi (Particular Types): Document it.
6428         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
6429         instead of AC_MBSTATE_T, which never existed.
6431 2002-05-23  Akim Demaille  <akim@epita.fr>
6433         * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
6434         version of Autoconf that is discussed.
6436 2002-05-22  Paul Eggert  <eggert@twinsun.com>
6438         * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
6439         from the default list of compilers to try.  Suggested by
6440         Kate Hedstrom.
6441         * NEWS: Document the above.
6442         * doc/autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
6444 2002-05-17  Paul Eggert  <eggert@twinsun.com>
6446         * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
6447         the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
6448         This improves on an earlier suggestion by H. Peter Anvin.
6450 2002-05-16  Paul Eggert  <eggert@twinsun.com>
6452         AC_FUNC_FNMATCH now tests only for POSIX compatibility.
6453         AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
6454         Both macros now accept an optional source-dir arg.
6455         New macro AC_GNU_SOURCE to define _GNU_SOURCE.
6457         * NEWS: Document this.
6458         * doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.
6460         * lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
6461         (AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
6462         not for GNU extensions; this undoes part of the 2000-11-03 change,
6463         reverting to 2.13-compatible behavior.
6464         Add new optional argument DIR.
6465         (AC_FUNC_FNMATCH_GNU): New macro.
6467         * lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
6469 2002-05-08  Paul Eggert  <eggert@twinsun.com>
6471         * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
6472         Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
6473         and it causes a 'test' syntax error if it fails.
6474         Bug reported by Stephen Gildea.
6476         * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
6477         If prototypes are supported, use them to check this at compile-time,
6478         instead of trying to check it at run-time.  If we must do a run-time
6479         check, assume that setvbuf is standard when cross-compiling, as
6480         nonstandard setvbuf occurs only on ancient and unlikely hosts.
6481         Bug reported by Paul D. Smith.
6483         * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
6484         argument specifying location of getloadavg.c.  This removes a
6485         FIXME.  This idea was taken from Jim Meyering's implementation in
6486         textutils.
6487         * doc/autoconf.texi (Particular Functions): Document this.
6488         Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
6489         that's what the code does; this fixes a bug reported by
6490         Paul D. Smith.
6492 2002-05-03  Akim Demaille  <akim@epita.fr>
6494         * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
6495         autopoint instead of gettextize.
6496         ($uses_alocal): Rename as...
6497         ($uses_aclocal): this.
6498         * doc/autoconf.texi (autoreconf Invocation): Adjust.
6499         Suggested by Bruno Haible.
6501 2002-05-03  Akim Demaille  <akim@epita.fr>
6503         * lib/m4sugar/m4sugar.m4 (m4_map_sep): New.
6505 2002-04-29  Paul Eggert  <eggert@twinsun.com>
6507         * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
6508         files to be 1 second older; just set them to be the same time.
6509         Also, sleep 1 second after the first aclocal, to work around
6510         problems with sub-second time stamps on the input files.
6512 2002-04-29  Thien-Thi Nguyen  <ttn@gnu.org>
6514         * doc/autoconf.texi: Mention "set -e -x" lossage
6515         under node "Limitations of Builtins".
6517 2002-04-29  Akim Demaille  <akim@epita.fr>
6519         * doc/install.texi: Better wording for setting variables when
6520         running configure.
6521         From Christian Cornelssen.
6523 2002-04-29  Akim Demaille  <akim@epita.fr>
6525         * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
6526         of lack of $LINENO support, then the test will compare the $LINENO
6527         in testsuite vs. the lineno in the test file.  This is wrong, of
6528         course.
6529         Be sure to protect it.
6530         Reported by Patrick Welche.
6532 2002-04-25  Akim Demaille  <akim@epita.fr>
6534         * doc/autoconf.texi (Obsolete Macros): Typo.
6535         Reported by Vladimir Volovich.
6537 2002-04-25  Akim Demaille  <akim@epita.fr>
6539         * bin/autoreconf.in (autoreconf): Don't let aclocal.m4 be older
6540         than some of the input files, hence, on the second run of aclocal,
6541         if some of its input are younger, make them older.
6542         Suggested by Paul Eggert.
6544 2002-04-25  Akim Demaille  <akim@epita.fr>
6546         * doc/autoconf.texi (Limitations of Usual Tools): sed and `!'.
6547         Thanks to Paul Eggert.
6549 2002-04-25  Akim Demaille  <akim@epita.fr>
6551         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Let ac_subst_files
6552         and ac_subst_vars be sh variables containing the list of
6553         AC_SUBST_FILES'ed and AC_SUBST'ed identifiers.  Output them in the
6554         DEFAULT diversion.
6555         (_AC_INIT_PREPARE): Use them to log them.
6556         (_AC_SUBST, _AC_SUBST_SED_PROGRAM): Remove.
6557         (AC_SUBST, AC_SUBST_FILE): Instead of buliding the
6558         _AC_SUBST_SED_PROGRAM, store the list of output files/variables in
6559         _AC_SUBST_FILES and _AC_SUBST_VARS.
6560         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Adjust.
6562 2002-04-24  Akim Demaille  <akim@epita.fr>
6564         * bin/autoreconf.in (autoreconf): Run automake after autoconf and
6565         autoheader, so that automake does not complain about a missing
6566         config.h.in that was to be created.
6568 2002-04-23  Akim Demaille  <akim@epita.fr>
6570         * bin/autoheader.in (parse_args): --warning takes an argument.
6571         Fixes PR/220.
6573 2002-04-22  Peter Eisentraut  <peter_e@gmx.net>
6575         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Remove gmon.out
6576         and bb.out when cleaning up.
6578 2002-04-22  Akim Demaille  <akim@epita.fr>
6580         Version 2.53a.
6582 2002-04-22  Akim Demaille  <akim@epita.fr>
6584         * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
6586 2002-04-22  Akim Demaille  <akim@epita.fr>
6588         * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
6589         comma.
6590         Reported by Gregory Giannoni.
6592 2002-04-22  Akim Demaille  <akim@epita.fr>
6594         * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
6595         Fixes false failures on Darwin.
6597 2002-04-21  Paul Eggert  <eggert@twinsun.com>
6599         * TODO, bin/autoupdate.in, doc/autoconf.texi,
6600         lib/autoconf/general.m4, lib/autoconf/libs.m4,
6601         lib/autoconf/status.m4, lib/m4sugar/m4sugar.m4, tests/m4sh.at,
6602         tests/tools.at: Minor spelling and grammar fixes.
6604 2002-04-20  Paul Eggert  <eggert@twinsun.com>
6606         * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
6607         ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
6608         * lib/autotest/general.m4 (AT_INIT): Likewise.
6609         * tests/atgeneral.m4 (AT_INIT): Likewise.
6611 2002-04-19  Paul Eggert  <eggert@twinsun.com>
6613         * NEWS, TODO, bin/autom4te.in, bin/autoreconf.in, bin/autoupdate.in,
6614         doc/autoconf.texi, lib/freeze.mk, lib/Autom4te/Struct.pm,
6615         lib/autoconf/autoheader.m4, lib/autoconf/c.m4,
6616         lib/autoconf/functions.m4, lib/autoconf/general.m4,
6617         lib/autoconf/lang.m4, lib/autoconf/libs.m4, lib/autoscan/identifiers,
6618         lib/autotest/general.m4, lib/m4sugar/m4sh.m4, tests/atgeneral.m4,
6619         tests/atspecific.m4, tests/semantics.at, tests/torture.at:
6620         Minor spelling and grammar fixes.
6622         * doc/autoconf.texi: Follow the outline suggested in the GNU
6623         Sample Texts sections of the Texinfo 4.2 manual.  Most
6624         importantly, this makes sure that the copyright notices appear in
6625         all output formats.  You probably need Texinfo 4.2 to generate
6626         the manual now.
6628         Fix some bugs when using "$@" when there might be zero positional
6629         arguments in cases where this matters.
6631         * bin/autoconf.as: Rewrite so that the problem does not come up.
6632         * lib/autoconf/programs.m4 (AC_CHECK_PROG): Likewise.
6633         * lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
6634         * lib/autotest/general.m4 (AT_INIT): Likewise.
6636         * bin/autoheader.in: Use 'case' statement to work around problem.
6637         * bin/auto4mte.in: Likewise.
6638         * bin/autoreconf.in: Likewise.
6639         * bin/autoscan.in: Likewise.
6640         * bin/autoupdate.in: Likewise.
6641         * bin/ifnames.in: Likewise.
6643         * doc/autoconf.texi (Shell Substitutions): Document the problem.
6645         * lib/autotest/general.m4 (AT_INIT):
6646         Use Zsh alias to work around problem.
6647         * tests/atgeneral.m4 (AT_INIT): Likewise.
6649         * tests/c.at: We can't have zero arguments, so remove workaround
6650         that is not portable to Zsh.
6652 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
6654         * bin/autoupdate.in (handle_autoconf_macros): Honor AU_DEFUNs
6655         from aclocal.m4 too.
6657 2002-04-12  Akim Demaille  <akim@epita.fr>
6659         * tests/wrappl.as: New, M4sh precursor of wrappl.in.
6661 2002-04-10  Akim Demaille  <akim@epita.fr>
6663         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
6664         workaround for ${1+"$@"}.
6665         * doc/autoconf.texi (Shell Substitutions): Explain it.
6666         From Oliver Kiddle and Peter Stephenson.
6668         Have M4sh perform minimal shell sanitizing.
6670         * lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
6671         part into...
6672         (_AS_PREPARE): this new macro.
6673         (AS_PREPARE): New.
6674         (AS_INIT): Invoke AS_SHELL_SANITIZE.
6675         * tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
6677         Adjust Autoconf and Autotest.
6679         * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
6680         AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
6681         * lib/autotest/general.m4 (AT_INIT): Likewise.
6682         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
6683         Invoke _AS_PREPARE (not AS_PREPARE) in addition to
6684         AS_SHELL_SANITIZE.
6686         Use this M4sh to generate Autoconf's shell scripts.
6688         * tests/wrapsh.as: New, precursor of wrapsh.in.
6689         * tests/Makefile.am: Include lib/freeze.mk to get the dependencies
6690         on Autotest and M4sh.
6691         ($(TESTSUITE)): Use $(autotest_m4f_dependencies).
6692         (wrapsh.in): New target.
6693         * bin/autoconf.as: New, precursor of autoconf.in.
6694         (autoconf.in): New target.
6696 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
6698         * doc/autoconf.texi (Limitations of Make): Mention the issue
6699         with indented comments in rules.
6701 2002-04-09  Andreas Schwab  <schwab@suse.de>
6703         * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
6704         ac_top_builddir when setting ac_abs_top_builddir.
6706 2002-04-06  Kevin Ryde  <user42@zip.com.au>
6708         * doc/autoconf.texi (Systemology): Add link to Unix V7 online docs.
6709         (Portable Shell): Cross reference to Systemology.
6711 2002-04-05  Akim Demaille  <akim@epita.fr>
6713         * bin/autoreconf.in (autoreconf): Be sure to accumulate the
6714         directories when descending in a SUBDIRS.
6715         Reported by Ezra Peisach.
6717 2002-04-04  Andreas Schwab  <schwab@suse.de>
6719         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Only simplify if path
6720         contains no literal separators.
6722 2002-04-03  Akim Demaille  <akim@epita.fr>
6724         * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
6725         (_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
6726         Use dnl, not the KILL diversion.
6727         Extracted from...
6728         (AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
6729         (AC_CONFIG_LINKS): here.
6730         Adjust.
6731         Don't use the KILL diversion, as it kills spurious output, which
6732         results in failures being hidden.
6733         Use m4_defn where appropriate.
6734         (AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
6735         after the second argument.
6736         Use m4_defn.
6737         * lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
6738         syntax, as it is provided by M4sugar.
6739         * tests/torture.at (Multiple AC_CONFIG_FILES): New.
6741 2002-04-03  Andreas Schwab  <schwab@suse.de>
6743         * lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
6744         expanded if $# <= 2.
6746         * bin/autoreconf.in (autoreconf): Run automake after rerunning
6747         aclocal.
6749 2002-04-03  Akim Demaille  <akim@epita.fr>
6751         * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
6752         (_AC_COMPILER_EXEEXT_REJECT): New.
6753         Also recognize *.bb and *.bbg as compilation byproducts.
6754         (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
6755         (_AC_COMPILER_OBJEXT): Use them.
6756         Fixes Debian #138666.
6758 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
6760         Integrate AC_PROG_CC_STDC into AC_PROG_CC.
6762         * lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
6763         AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
6764         (AC_PROG_CC): Call _AC_PROG_CC_STDC.
6765         (AC_C_INLINE): Do not require AC_PROG_CC_STDC.
6766         (AC_C_CONST): Same.
6767         (AC_C_INLINE): Same.
6768         (AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
6769         * doc/autoconf.texi, NEWS: Document.
6770         * tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
6771         AC_C_CROSS.
6773 2002-04-02  Akim Demaille  <akim@epita.fr>
6775         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Invoke
6776         _AS_MKDIR_P_PREPARE.
6778 2002-03-28  Kevin Ryde  <user42@zip.com.au>
6780         * lib/autoconf/c.m4 (AC_C_INLINE): Test with a typedef return value,
6781         to avoid versions of HP C which don't allow that.
6783 2002-03-27  Paul Eggert  <eggert@twinsun.com>
6785         * lib/m4sugar/m4sh.m4 (_AS_BASENAME_PREPARE): New macro.
6786         (AS_SHELL_SANITIZE): Invoke it.
6787         (AS_BASENAME): AS_REQUIRE it, and use $as_basename.
6789 2002-03-26  Akim Demaille  <akim@epita.fr>
6791         * doc/autoconf.texi (Portable Shell): Add pointers to FAQs.
6793 2002-03-26  Akim Demaille  <akim@epita.fr>
6795         * doc/autoconf.texi (Introduction): The GNATS base moved.
6797 2002-03-25  Paul Eggert  <eggert@twinsun.com>
6799         * tests/m4sh.at: Don't rely on "PATH=test:$PATH test-1" working
6800         as POSIX requires, as it doesn't work with Zsh.
6801         * doc/autoconf.texi (Assignments): Document the problem.
6803 2002-03-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
6805         * doc/autoconf.texi (Limitations of Make): Mention more issue
6806         about VPATH, overriding of macros in sub-makes, and handling of
6807         SHELL.
6809 2002-03-21  Paul Eggert  <eggert@twinsun.com>
6811         * doc/autoconf.texi (Here-Documents): Mention Solaris 8 dtksh
6812         problem with here-document buffer boundaries.
6814         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Unset ENV and BASH_ENV
6815         when reinvoking the shell, to work around problems with installers
6816         who put strange things like "cd" commands in their environments.
6818 2002-03-19  Akim Demaille  <akim@epita.fr>
6820         * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
6821         From Aaron Ucko.
6823 2002-03-19  Akim Demaille  <akim@epita.fr>
6825         * bin/autoscan.in (scan_file): Specify the location in `&used'
6826         invocations.
6827         From Nicolas Joly.
6829 2002-03-19  Akim Demaille  <akim@epita.fr>
6831         * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
6832         From Nishio Futoshi.
6834 2002-03-19  Akim Demaille  <akim@epita.fr>
6836         * lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.
6838 2002-03-18  Paul Eggert  <eggert@twinsun.com>
6840         * doc/autoconf.texi (Programming in M4sh): Add AS_MKDIR_P.
6841         (Limitations of Usual Tools): Add mkdir section.
6843         * lib/m4sugar/m4sh.m4 (_AS_MKDIR_P_PREPARE): New macro.
6844         (AS_MKDIR_P): Require it.  Use mkdir -p if available, falling
6845         back on AS_DIRNAME to compute prefixes otherwise; this is
6846         roughly what mkinstalldirs does.  That way, we need not have
6847         our own filename disassembler.  The old disassembler did not
6848         work with Solaris 8 dtksh, which is ksh Version M-12/28/93d.
6850         * lib/autotest/general.m4 (AT_INIT, AT_CLEANUP):
6851         Create at_test_all by a series of assignments,
6852         not by a single assignment of a long string.  The latter causes ksh
6853         version 11/16/88g to silently misbehave on OpenServer 5.0.6a,
6854         presumably because of a buffer overrun.
6856 2002-03-14  Paul Eggert  <eggert@twinsun.com>
6858         * lib/autotest/general.m4 (at_times_skip):
6859         Renamed from at_times.  Now a boolean.
6860         ksh93 Version M-12/28/93d doesn't like 'x=times; $x'; it
6861         says 'times: not found'.
6863 2002-03-14  Akim Demaille  <akim@epita.fr>
6865         * bin/autoreconf.in (&study_gettextize): New.
6866         (&autoreconf): Handle newest gettextize.
6867         Rerun aclocal if needed.
6868         Suggested by Andreas Schwab.
6870 2002-03-13  Akim Demaille  <akim@epita.fr>
6872         * doc/autoconf.texi (Special Shell Variables): More about IFS.
6874 2002-03-13  Akim Demaille  <akim@epita.fr>
6876         * doc/autoconf.texi (Header Portability): New.
6877         Add information about stdint.h and inttypes.h from Paul Eggert.
6879 2002-03-13  Akim Demaille  <akim@epita.fr>
6881         * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
6882         -p'.
6883         From Bob Proulx.
6885 2002-03-12  Akim Demaille  <akim@epita.fr>
6887         * lib/m4sugar/m4sh.m4 (AS_BASENAME_EXPR): AS_REQUIRE, not
6888         m4_require.
6890 2002-03-11  Andreas Schwab  <schwab@suse.de>
6892         * configure.ac: Explicitly check for EMACS since AM_PATH_LISPDIR
6893         does not do it if --with-lispdir is given.
6895 2002-03-08  Akim Demaille  <akim@epita.fr>
6897         Version 2.53.
6899 2002-03-08  Akim Demaille  <akim@epita.fr>
6901         * doc/autoconf.texi (Subdirectories): Clarify that the
6902         subdirectory should exist.
6904 2002-03-08  Akim Demaille  <akim@epita.fr>
6906         * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
6908 2002-03-08  Akim Demaille  <akim@epita.fr>
6910         * bin/autom4te.in (&handle_m4): Do not foreach with `$_' as it
6911         aliases the actual variables, and modifications of the former
6912         affect the latter.
6914 2002-03-08  Akim Demaille  <akim@epita.fr>
6916         * bin/autom4te.in (&handle_m4): Protect us from corrupted file
6917         because of C-c: have m4 output in tmp files, then mv them.
6919 2002-03-08  Akim Demaille  <akim@epita.fr>
6921         * bin/autoconf.in, bin/autoheader.in, bin/autom4te.in,
6922         * bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
6923         * bin/ifnames.in: Copyright update.
6925 2002-03-08  Akim Demaille  <akim@epita.fr>
6927         * doc/autoconf.texi (Invoking autom4te): New.
6929 2002-03-05  Akim Demaille  <akim@epita.fr>
6931         * doc/autoconf.texi (Specifying Names): Clarification suggested by
6932         Kevin Ryde.
6934 2002-03-05  Akim Demaille  <akim@epita.fr>
6936         Version 2.52i.
6938 2002-03-04  Akim Demaille  <akim@epita.fr>
6940         * doc/autoconf.texi (AC_LIBOBJ vs. LIBOBJS): New.
6941         * lib/autoconf/general.m4 (AC_INIT): More informative error
6942         message for LIBOBJ.
6944 2002-03-04  Akim Demaille  <akim@epita.fr>
6946         * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
6947         parallel builds.
6949 2002-03-04  Akim Demaille  <akim@epita.fr>
6951         * doc/autoconf.texi (Transforming Names): Equality between target
6952         and host is irrelevant.
6953         (Specifying Names, Canonicalizing): Remove all references to the
6954         backward compatibility hooks.  Rather, collect them all into...
6955         (Hosts and Cross-Compilation): this new section.
6956         * doc/install.texi (System Type): Ditto.
6957         * lib/autoconf/general.m4 (AC_CANONICAL_HOST): Explicitly state
6958         that `--host' implies cross-compilation.
6960 2002-03-04  Akim Demaille  <akim@epita.fr>
6962         * doc/autoconf.texi (Evaluation Macros): New.
6963         * lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
6964         useless.
6965         (_m4_foreach): Define the variant with immediate evaluation so
6966         that it contains exactly the items, not an expression which
6967         evaluation is the current item.
6968         (m4_re_string, m4_re_word): Don't over quote them.
6970 2002-03-04  Akim Demaille  <akim@epita.fr>
6972         Instead of having stacking `shift's evaluated at the end, let
6973         `foreach' loops immediately evaluate them.
6975         * lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
6976         $*.  This is the n-th time I change my mind, but hopefully this is
6977         the last...
6978         (m4_lquote): New.
6979         (m4_text_wrap): Use m4_foreach, which is finally correct _and_
6980         efficient.
6981         (m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
6982         it was only a hack for m4_text_wrap.
6983         (m4_car2): Remove, replaced by...
6984         (m4_cdr): New.
6985         (_m4_foreach): Adjust.
6986         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
6987         m4_bpatsubst for clarification.
6989 2002-03-04  Akim Demaille  <akim@epita.fr>
6991         * doc/autoconf.texi (Changequote is Evil): New.
6993 2002-03-03  Kevin Ryde  <user42@zip.com.au>
6995         * doc/autoconf.texi (Portable Shell): Mention 32-byte #! length limit
6996         on old systems like SunOS.
6998 2002-03-01  Peter Eisentraut  <peter_e@gmx.net>
7000         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
7001         lib/autoconf/functions.m4, lib/autoconf/general.m4,
7002         lib/autoconf/headers.m4, lib/autoconf/lang.m4,
7003         lib/autoconf/programs.m4, lib/autoconf/status.m4: Improve spelling
7004         of messages.
7006 2002-02-28  Akim Demaille  <akim@epita.fr>
7008         * lib/autotest/general.m4 (AT_INIT): Suggest a title to the
7009         message to be sent.
7011 2002-02-28  Kevin Ryde  <user42@zip.com.au>
7013         * doc/autoconf.texi (Function Portability): Add va_copy and va_list.
7015 2002-02-25  Akim Demaille  <akim@epita.fr>
7017         * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
7018         From Akinori Musha.
7020 2002-02-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
7022         * lib/Autom4te/XFile.pm (getline, getlines): New functions,
7023         translate \r\n to \n.
7025 2002-02-07  Akim Demaille  <akim@epita.fr>
7027         Version 2.52h.
7029 2002-02-07  Akim Demaille  <akim@epita.fr>
7031         Fix Autoconf PR/209.
7032         Also reported by Frank Denis.
7034         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
7036 2002-02-07  Akim Demaille  <akim@epita.fr>
7038         Fix Autoconf PR/207:
7039         AC_PREFIX_PROGRAM fails with dashed program names
7041         * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
7042         variable when looking for the prefix program.
7043         Now it also works for shell variables.
7045 2002-02-07  Akim Demaille  <akim@epita.fr>
7047         * doc/autoconf.texi (Limitations of Builtins): More about
7048         case/esac.
7050 2002-02-06  Akim Demaille  <akim@epita.fr>
7052         * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
7053         case/esac, some shells don't support it.
7054         Reported by Zack Weinberg.
7055         * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
7057 2002-02-06  Akim Demaille  <akim@epita.fr>
7059         * lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
7060         sure not to introduce newlines in at_groups.
7061         * lib/autotest/Makefile.am (autotest.m4f): Typo.
7063 2002-02-06  Akim Demaille  <akim@epita.fr>
7065         * tests/torture.at (Configuring subdirectories): Skip if aclocal
7066         is not available.
7068 2002-02-05  Paul Eggert  <eggert@twinsun.com>
7070         * doc/autoconf.texi (Specific Compiler Characteristics):
7071         Describe HP-UX cc bug workaround more accurately.
7072         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
7073         not unsigned long.
7074         * tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
7075         cross-compilers, too.  This undoes some of the most recent change
7076         to this file.
7078 2002-02-05  Akim Demaille  <akim@epita.fr>
7080         * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
7081         to make sure they are up to date when `check' is run.
7083 2002-02-05  Akim Demaille  <akim@epita.fr>
7085         * doc/autoconf.texi (Making testsuite Scripts): Document
7086         package.m4.
7088 2002-02-05  Akim Demaille  <akim@epita.fr>
7090         * lib/freeze.mk: New.
7092 2002-02-05  Akim Demaille  <akim@epita.fr>
7094         Implement `autom4te --freeze'.
7096         * bin/autom4te.in (&freeze): New.
7097         * lib/autoconf/autoconf.m4, lib/autotest/general.m4,
7098         * lib/m4sugar/m4sh.m4: Don't include files given by autom4te.
7100 2002-02-05  Akim Demaille  <akim@epita.fr>
7102         * bin/autom4te.in (&parse_args): Implement `frozen files are
7103         optional are the sum of the previous files on the command line'.
7104         Also, pass `--reload-state=' on them, so...
7105         (handle_m4): don't.
7106         * lib/autom4te.in (Autotest, Autoconf): Rely on M4sh.
7107         (M4sh): Rely on M4sugar.
7108         (Autotest, M4sh, M4sugar): Use frozen files.
7110 2002-01-31  Akim Demaille  <akim@epita.fr>
7112         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Accept $4.
7113         * doc/autoconf.texi (Initializing configure): Adjust.
7115 2002-01-30  Akim Demaille  <akim@epita.fr>
7117         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Map non
7118         alphanumeric to `-' instead of `_'.
7120 2002-01-30  Akim Demaille  <akim@epita.fr>
7122         * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
7123         for plain code, the other for cross-compilation code.  The latter
7124         is now run with GCC only.
7125         * doc/autoconf.texi (Compilers and Preprocessors): New.
7127 2002-01-30  Akim Demaille  <akim@epita.fr>
7129         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Support pre-defined
7130         values.
7131         * doc/autoconf.texi (Initializing configure): Explain how to
7132         change AC_INIT default values.
7134 2002-01-29  Akim Demaille  <akim@epita.fr>
7136         * tests/torture.at (Configuring subdirectories): Use configure.in,
7137         so that aclocal 1.4 works.
7138         Reported by Alexandre Duret-Lutz and Larry Schmitt.
7140 2002-01-28  Akim Demaille  <akim@epita.fr>
7142         * doc/autoconf.texi (Writing testsuite.at): AT_CLEANUP no longer
7143         needs an argument.
7145 2002-01-28  Akim Demaille  <akim@epita.fr>
7147         * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
7148         AUTOTEST_PATH *after* it was set.
7149         Don't put `.' in the PATH: the user should be precise and `./' if
7150         needed.  In addition, given that the test suite does some `cd', if
7151         `.' is in the path, the `tested programs' sections will report
7152         programs found in the test suite's directory, while during the
7153         tests (performed in their own directory), these programs are no
7154         longer visible.  In other words, the results is confusing and
7155         useless.
7156         * tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
7158 2002-01-24  Akim Demaille  <akim@epita.fr>
7160         Version 2.52g.
7162 2002-01-24  Akim Demaille  <akim@epita.fr>
7164         * bin/autoheader.in, bin/autoconf.in, bin/autoscan.in,
7165         * doc/autoconf.texi: Finally add Akim as an author.
7167 2002-01-24  Akim Demaille  <akim@epita.fr>
7169         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
7170         (_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
7171         Bourne. Use /bin/sh.
7172         From Andreas Buening.
7174 2002-01-24  Akim Demaille  <akim@epita.fr>
7176         * config/config.guess, config/config.sub, config/texinfo.tex:
7177         Update from masters.
7179 2002-01-24  Akim Demaille  <akim@epita.fr>
7181         * Makefile.am (AUTOMAKE_OPTIONS): 1.5b.
7182         * config/auxdir.m4, config/cond.m4, config/depend.m4,
7183         * config/init.m4, config/install-sh.m4, config/lispdir.m4,
7184         * config/missing.m4, config/sanity.m4, config/select.m4,
7185         * config/strip.m4: Remove, to ease sync'ing with any version of
7186         Automake.
7188 2002-01-24  Akim Demaille  <akim@epita.fr>
7190         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
7191         (_AC_INIT_PREPARE): Support -n as --no-create, as documented.
7192         Reported by Geir Ove Myhr.
7194 2002-01-21  Akim Demaille  <akim@epita.fr>
7196         * lib/autoconf/functions.m4 (AC_FUNC_MMAP): #Undef malloc.
7198 2002-01-21  Akim Demaille  <akim@epita.fr>
7200         * lib/Autom4te/General.pm (getopt): Use a more GNUish error
7201         message on invalid options.
7202         * bin/autom4te.in (parse_args): Don't use
7203         Autoconf::General::getopt with non valid options.
7205 2002-01-17  Jim Meyering  <meyering@lucent.com>
7207         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Initialize
7208         $ac_cv_exeext so we don't use an old, invalid, cached value.
7210 2002-01-11  Akim Demaille  <akim@epita.fr>
7212         * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
7213         Meyering.
7214         * doc/autoconf.texi (Function Portability): Document the strnlen
7215         limitation.
7216         (Particular Functions): Document AC_FUNC_STRNLEN.
7217         * lib/autoscan/functions: Adjust.
7219 2002-01-06  Akim Demaille  <akim@epita.fr>
7221         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
7222         package.m4, since is really depends upon configure.ac, not
7223         configure.
7224         * doc/autoconf.texi (testsuite Scripts): Adjust.
7225         * tests/Makefile.am (package.m4): New.
7226         EXTRA_DIST it since its a source.
7228 2002-01-06  Akim Demaille  <akim@epita.fr>
7230         * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
7231         of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
7232         and PACKAGE_BUGREPORT from here...
7233         (_AC_INIT_DEFAULTS): to here, since it is unrelated to the
7234         arguments.
7235         (_AC_INIT_PREPARE): AC_DEFINE these symbols.
7236         * lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
7237         (AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
7238         * tests/tools.at (autoheader): Adjust.
7239         * tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
7241 2002-01-06  Akim Demaille  <akim@epita.fr>
7243         * bin/autoscan.in (scan_file): Use `&used'.
7245 2002-01-03  Akim Demaille  <akim@epita.fr>
7247         * doc/autoconf.texi (Output): Improved wording regarding use of
7248         AC_OUTPUT.
7249         From Olly Betts.
7251 2001-12-18  Kevin Ryde  <user42@zip.com.au>
7253         * doc/autoconf.texi (Function Portability): Add notes on sscanf
7254         sometimes needing writable input.
7256 2001-12-17  Jim Meyering  <meyering@lucent.com>
7258         * doc/autoconf.texi (New Macros): Tweak wording.
7260 2001-12-14  Akim Demaille  <akim@epita.fr>
7262         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
7263         trailing files, don't apply `-rf' to files which might not be
7264         created by configure (core, core.*, and *.core), but just `rm -f'.
7265         Suggested by Jonathan Kamens.
7267 2001-12-14  Aaron M. Ucko  <amu@alum.mit.edu>
7269         * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'.
7271 2001-12-14  Akim Demaille  <akim@epita.fr>
7273         * Makefile.am (MAINTAINERCLEANFILES): Remove configure.
7275 2001-12-13  Peter Eisentraut  <peter_e@gmx.net>
7277         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
7278         abs_builddir, top_buildpath to abs_top_builddir, srcpath to
7279         abs_srcdir, top_srcpath to abs_top_srcdir.
7280         (_AC_OUTPUT_FILES): Adjust.
7281         * NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
7282         * tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
7283         * tests/wrappl.in, tests/wrapsh.in: Adjust.
7285 2001-12-12  Steven G. Johnson  <stevenj@alum.mit.edu>
7287         * lib/autoconf/fortran.m4 (_AC_PROG_F77_V_OUTPUT): Fix failed
7288         C/Fortran linking on HP/UX, by extracting the Fortran library
7289         search path from the LPATH line in the $F77 -v output.
7291 2001-12-12  Kevin Ryde  <user42@zip.com.au>
7293         * doc/autoconf.texi (File Descriptors): Use a clearer layout for the
7294         forbidden file descriptors table.
7296 2001-11-26  Akim Demaille  <akim@epita.fr>
7298         * bin/autoscan.in (%c_keywords): Build it at top level.
7299         Map to 1 in order to simplify its uses.
7301 2001-11-26  Akim Demaille  <akim@epita.fr>
7303         * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
7304         Remove $filepath, useless.
7305         (&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
7306         variables, they are really part of the tokens.
7307         Split the input line on spaces and then look for tokens.
7308         Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
7309         because of `lex$U.$(OBJEXT)'.
7310         (&scan_files): Use "@list" instead of join.
7311         * doc/Makefile.am (CLEANFILES): Add *.fns.
7313 2001-11-26  Akim Demaille  <akim@epita.fr>
7315         * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
7316         Remove, replaced by...
7317         * tests/wrappl.in: Be common for all the Perl executables.
7318         In particular autoscan and autoheader want -I.
7319         * configure.ac: Adjust.
7320         * lib/autoscan/headers: errno.h is portable.
7322 2001-11-26  Akim Demaille  <akim@epita.fr>
7324         * bin/autoscan.in (used): New.
7325         Use it.
7327 2001-11-26  Akim Demaille  <akim@epita.fr>
7329         * bin/autoscan.in (&scan_c_file): Better parsing of CPP
7330         directives.
7331         (&scan_sh_file): Remove a duplicate pattern.
7332         (&check_configure_ac): Use long options.
7333         * lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
7335 2001-11-26  Akim Demaille  <akim@epita.fr>
7337         * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
7338         Before, having a line containing the opening of a multi line
7339         comment made the whole line be ignored.
7341 2001-11-26  Akim Demaille  <akim@epita.fr>
7343         * doc/autoconf.texi (Using an Autotest Test Suite): New.
7344         (testsuite Scripts): Be one of its subsection.
7345         (Autotest Logs): New.
7347 2001-11-26  Akim Demaille  <akim@epita.fr>
7349         Test groups are now run two directories deeper.
7351         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
7352         top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
7353         at_top_builddir.
7354         * lib/autotest/general.m4 (AT_INIT): Compute srcdir,
7355         top_srcdir, builddir and top_builddir.
7356         Use `at_*dir' relatively to the directory containing the
7357         suite, use `*dir' when relatively to the current group dir.
7359 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
7361         * doc/autoconf.texi, TODO, lib/autoconf/fortran.m4,
7362         lib/autoconf/functions.m4, lib/autoconf/headers.m4,
7363         tests/atgeneral.m4, tests/tools.at, tests/atspecific.m4: Fix
7364         spelling errors.
7366 2001-11-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
7368         * doc/autoconf.texi (Using System Type): Add an example of `case
7369         $host' usage so people quit using `case $target' everywhere.
7371 2001-11-22  Akim Demaille  <akim@epita.fr>
7373         * doc/autoconf.texi (Installation Directory Variables): Englishoes
7374         spotted by Jim Meyering.
7376 2001-11-16  Paul Eggert  <eggert@twinsun.com>
7378         This patch implements a `long double' suggestion by Oliver Kiddle.
7380         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
7381         static, to catch errors if the value isn't known at compile-time
7382         and the compiler supports dynamic arrays.  Change its name from
7383         `_array_' to `test_array' to avoid potential name clashes.
7384         (AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
7385         test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
7386         better than double.  Catch a bug in GCC 2.95.2 x86.
7387         * doc/autoconf.texi (C Compiler): Document the above.
7388         * NEWS: Likewise.
7390 2001-11-13  Akim Demaille  <akim@epita.fr>
7392         * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
7393         hand.
7394         * tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
7396 2001-11-13  Akim Demaille  <akim@epita.fr>
7398         * lib/autotest/general.m4 (AT_INIT): After having run the test
7399         group, go back to the initial directory, not to at_suite_dir.
7401 2001-11-13  Akim Demaille  <akim@epita.fr>
7403         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
7404         (AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
7405         (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
7406         option.
7407         (AT_CHECK_CONFIGURE): Use absolute paths.
7408         (_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
7409         The problem is still the old one: there is no means in M4 (that I
7410         know about) to create a defining macro, because there is no means
7411         to create `$1' etc., therefore, the defining macro ``swallows''
7412         all the arguments meant to the defined macro.
7414 2001-11-13  Akim Demaille  <akim@epita.fr>
7416         * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
7417         (AT_CONFIGURE_AC): Output the definition of AC_STATE_SAVE in
7418         configure.ac.
7419         * tests/aclocal.m4: Remove, as it is no longer used.
7421 2001-11-13  Akim Demaille  <akim@epita.fr>
7423         * lib/autotest/general.m4: Change `tests?' into `groups?' in
7424         variable names when referring to a single test group, or to
7425         `suite' when referring to the whole test suite.
7426         `at_last_test' is removed: m4 compute at_format itself.
7427         (at_stdout, at_stder1, at_stderr): New variables.
7428         (AT_CHECK): Use them.
7430 2001-11-13  Akim Demaille  <akim@epita.fr>
7432         * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
7433         in PATH.
7434         Create `testsuite.dir/003/run' instead of `testsuite.003'.
7435         Do it as soon as a test fails, don't wait till the end of the test
7436         suite.
7437         Don't remove $as_me.[0-9]*, since these files no longer exist.
7439 2001-11-13  Akim Demaille  <akim@epita.fr>
7441         * tests/tools.at: Use absolute paths, since we are no longer run
7442         in place.
7444 2001-11-13  Akim Demaille  <akim@epita.fr>
7446         Now that tests are running in their own private dir, there is no
7447         need to list the files to remove at the end of tests groups.
7449         * lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
7450         (AT_data_files, at_data_files): Remove.
7451         (AT_CLEANUP, AT_DATA): Simplify.
7452         (AT_INIT): Adjust.
7453         Remove the group dir if !debug && !failed.
7454         * tests/atspecific.m4: Adjust.
7456 2001-11-13  Akim Demaille  <akim@epita.fr>
7458         Start a new layout for Autotest: `testsuite' creates
7459         `testsuite.dir' in which the at-check-line etc. files are to be
7460         found, and `testsuite.dir/003' where the test group 3 is run.
7462         * lib/autotest/general.m4 (AT_INIT): at_tests_dir,
7463         at_check_line_file, at_format, at_test_normalized, at_group_dir
7464         are new variables.
7465         Create the directories.
7466         Use absolute paths for at- files.
7467         (AT_CHECK): Adjust.
7469 2001-11-11  Michael Matz  <matz@kde.org>
7471         * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
7472         (m4_car2): New.
7473         (m4_car): Properly quote arguments.
7475 2001-11-13  Akim Demaille  <akim@epita.fr>
7477         * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
7478         with stricter rules on LIBOBJS.
7480 2001-11-12  Paul Eggert  <eggert@twinsun.com>
7482         * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
7483         * doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
7484         __PROTOTYPES too.
7486 2001-11-12  Akim Demaille  <akim@epita.fr>
7488         * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS.
7490 2001-11-12  Akim Demaille  <akim@epita.fr>
7492         * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
7493         * lib/autoconf/functions.m4, lib/autoconf/general.m4,
7494         * lib/autoconf/headers.m4, lib/autoconf/libs.m4,
7495         * lib/autoconf/programs.m4, lib/autoconf/specific.m4,
7496         * lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
7497         specify to what the macro should be defined (typically to 1).
7499 2001-11-12  Akim Demaille  <akim@epita.fr>
7501         * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
7502         From Jim Meyering.
7504 2001-11-12  Akim Demaille  <akim@epita.fr>
7506         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
7507         AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
7508         definition used by Automake where LEX is +/- "${missing} lex" and
7509         `missing' itself contains variables.
7511 2001-11-12  Akim Demaille  <akim@epita.fr>
7513         * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
7514         Now that M4sh pushes BODY, the comments were output at the end of
7515         the test suites.
7517 2001-11-08  Akim Demaille  <akim@epita.fr>
7519         * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
7520         that we can trace macros from aclocal.m4.
7521         Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
7522         obsoleted, and redirect to the former anyway.
7523         Reported by Ralf Corsepius.
7525 2001-11-08  Akim Demaille  <akim@epita.fr>
7527         * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
7528         processed only if present.
7529         * tests/torture.at (Configuring subdirectories): Use autoreconf
7530         instead of successive calls to autoconf.
7531         Add a nonexistent subdirectory to exercise the patch above.
7532         Reported by Ralf Corsepius.
7534 2001-11-08  Kevin Ryde  <user42@zip.com.au>
7536         * doc/autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
7537         doesn't accept .S files.
7539 2001-11-07  Akim Demaille  <akim@epita.fr>
7541         * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
7542         * lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
7543         (_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
7544         * bin/autom4te.in (warn_forbidden): New.
7545         (handle_output): Use it.
7546         Read m4_pattern_forbid with messages.
7548 2001-11-05  Akim Demaille  <akim@epita.fr>
7550         * bin/autom4te.in (--normalize): Remove.
7551         * lib/autom4te.in: Adjust.
7553 2001-11-05  Akim Demaille  <akim@epita.fr>
7555         * tests/Makefile.am (testsuite): Rename this target as...
7556         ($(TESTSUITE)): this.
7557         From Nicolas Joly.
7559 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
7561         * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
7562         the --prefix option, also remove it's argument.
7564 2001-11-05  Akim Demaille  <akim@epita.fr>
7566         * doc/autoconf.texi (testsuite Invocation): Update.
7567         (Writing testsuite.at): Update.
7569 2001-11-03  Akim Demaille  <akim@epita.fr>
7571         * doc/autoconf.texi: s/@code/@command/ where appropriate.
7573 2001-11-03  Akim Demaille  <akim@epita.fr>
7575         * lib/Autom4te/General.pm: (&catfile, &canonfile)
7576         (&file_name_is_absolute): New, wrappers around routines from
7577         File::Spec.
7578         Use and export them.
7579         (&find_configure_ac): Optionally take a directory where to look at.
7580         * bin/autoreconf.in (&parse_args): Trim the configure.ac part of
7581         the arguments.
7582         Default @ARGV to `.', not find_configure_ac.
7583         (&autoreconf): Argument is a directory.
7584         Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
7585         * doc/autoconf.texi (autoreconf Invocation): Update.
7587 2001-11-03  Akim Demaille  <akim@epita.fr>
7589         * lib/Autom4te/General.pm (@export_vars, @export_subs)
7590         (@export_forward_subs): New.
7591         Add basename, dirname, and fileparse.
7592         (@EXPORT): Adjust.
7593         * bin/autoreconf.in (&autoreconf): Fix call to fileparse.
7594         Don't look for aclocal flags if we already know aclocal is not
7595         used.
7596         Move aclocal.m4t only if it exists.
7597         Reported by Ezra Peisach.
7599 2001-11-03  Akim Demaille  <akim@epita.fr>
7601         * bin/autoreconf.in (&parse_args): Work only on the configure.ac
7602         passed on command line, defaulting to ./configure.ac if present.
7603         (&maybe_autoreconf, File::Find): Remove, unused.
7604         (&autoreconf): If autoconf is not used, don't try to trace.
7606 2001-11-02  Akim Demaille  <akim@epita.fr>
7608         * configure.ac: Bump to 2.52g.
7610 2001-11-02  Akim Demaille  <akim@epita.fr>
7612         Version 2.52f.
7614 2001-11-02  Akim Demaille  <akim@epita.fr>
7616         * config/config.guess, config/config.sub, doc/standards.texi:
7617         * config/lispdir.m4: Update from masters.
7618         * configure.ac: Bump to 2.52f.
7620 2001-11-02  Akim Demaille  <akim@epita.fr>
7622         * bin/autoreconf.in (&autoreconf): Set `$aclocal_flags' to ''.
7623         Don't run aclocal when aclocal.m4 is not from aclocal.
7624         From Ezra Peisach.
7625         Don't run libtoolize and gettextize if --install is not given.
7627 2001-11-01  Paul Eggert  <eggert@twinsun.com>
7629         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to
7630         be invoked before _AS_LINENO_PREPARE.
7631         (_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather
7632         than character ranges.
7634         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix NLS before
7635         invoking AS_BASENAME.  Set the locale variables to 'C' if
7636         possible, as POSIX requires this to get the traditional
7637         behavior.
7638         * doc/autoconf.texi (Special Shell Variables): Describe the above.
7640 2001-10-31  Paul Eggert  <eggert@twinsun.com>
7642         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Do not surround body
7643         with {}, as that triggers a bug in Bash 2.05.
7645         (_AS_LINENO_PREPARE): Use Sed rather than
7646         Awk.  Fix the sed prepass to work even if there are multiple
7647         instances of $LINENO on the same line.  Do not substitute for
7648         other variables like $LINENOT.  Do not check file dates; such a
7649         check is unreliable on sufficiently fast machines, and removing
7650         the check makes the code simpler and more reliable.  Check for
7651         output and chmod failures.
7653         * doc/autoconf.texi (Special Shell Variables): Document
7654         the above.
7656 2001-10-31  Akim Demaille  <akim@epita.fr>
7658         * tests/Makefile.am (atconfig): Remove this target, Automake
7659         handles it now.
7661 2001-10-31  Akim Demaille  <akim@epita.fr>
7663         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Do not
7664         AC_CONFIG_FILES(atlocal) as it means a file atlocal.in *must* be
7665         provided, while it is optional.
7666         * configure.ac: Adjust.
7668 2001-10-26  Paul Eggert  <eggert@twinsun.com>
7670         * NEWS, README, configure.ac, lib/Autom4te/General.pm,
7671           lib/Autom4te/Struct.pm:
7672         Require Perl 5.005_03 instead of just 5.005, as some tests fail
7673         with 5.005_02.
7675         * doc/autoconf.texi (Special Shell Variables): Document some
7676         more LINENO gotchas, particularly with respect to the Awk+Sed hack.
7678         * lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): New macro.
7679         (_AS_LINENO_PREPARE): Use it instead of shell eval, since
7680         eval $LINENO is not portable in practice.
7682 2001-10-24  Akim Demaille  <akim@epita.fr>
7684         * lib/Autom4te/General.pm (backname): New.
7686 2001-10-24  Akim Demaille  <akim@epita.fr>
7688         * m4/: Remove, merged into...
7689         * config/: here.
7691 2001-10-23  Tim Van Holder  <tim.van.holder@pandora.be>
7693         * doc/autoconf.texi (Shellology): Mention the problems with bash
7694         2.05's use of ANSI quoting in its `set' builtin.
7696 2001-10-22  Paul Eggert  <eggert@twinsun.com>
7698         * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R):
7699         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
7700         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
7701         POSIX decided to standardize on the int flavor of strerror_r.
7702         Always do char* test, as there's no reason not to.
7703         Assign to a char* var, to catch strerror_r that returns int*.
7705         * doc/autoconf.texi (Particular Functions):
7706         Document the above changes.  Also, document the fact that
7707         AC_FUNC_STRERROR_R defines HAVE_DECL_STRERROR_R.
7709         * NEWS: Mention HAVE_WORKING_STRERROR_R -> STRERROR_R_CHAR_P.
7711 2001-10-20  Akim Demaille  <akim@epita.fr>
7713         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): The name of
7714         the executable was missing from the log.
7716 2001-10-20  Akim Demaille  <akim@epita.fr>
7718         * lib/Autom4te/General.pm (&update_file): If destination is
7719         unchanged, remove the source.
7720         (&up_to_date_p): Don't be verbose, be debug.
7721         * bin/autoreconf.in: No longer support --m4dir.
7722         (&autoreconf): Display the full path of the configure.ac we are
7723         studying.
7724         Trace it only once.
7725         Be sure to honor --force with gettextize.
7726         Always run aclocal.
7727         * doc/autoconf.texi: Adjust.
7729 2001-10-20  Akim Demaille  <akim@epita.fr>
7731         * bin/autoheader.in ($localdir, $m4, $SIMPLE_BACKUP_SUFFIX):
7732         Remove, dead.
7733         * bin/autoreconf.in (&autoreconf): Do not run gettextize when
7734         `intl' is already present, as it refuses unless --force.
7735         (&parse_args): Use -I, --include instead of the old Autoconf
7736         options.
7737         ($localdir, $autoconf_dir): Remove.
7738         (@include): New.
7739         (&maybe_autoreconf): New, to preserve $_ for File::Find.
7741 2001-10-19  Jens Petersen  <petersen@redhat.com>
7743         * lib/autoconf/programs.m4 (AC_PROG_AWK): Prefer gawk to mawk.
7744         * doc/autoconf.texi (Particular Programs): Likewise.
7746 2001-10-19  Akim Demaille  <akim@epita.fr>
7748         * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
7749         file in @configure_input@.
7750         Don't mention `automatically' in addition to `generated'.
7751         * tests/torture.at (#define header templates): Adjust.
7753 2001-10-19  Akim Demaille  <akim@epita.fr>
7755         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: In a
7756         comment, explain how to install automatic mode selection.
7757         From Russ Allbery.
7759 2001-10-19  Ezra Peisach  <epeisach@zif.mit.edu>
7761         * bin/autoreconf.in (autoreconf): Display the path to the
7762         configure.ac being studied.
7764 2001-10-18  Paul Eggert  <eggert@twinsun.com>
7766         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast sizeof to unsigned
7767         long, to work around a bug in the HP C compiler version HP92453-01
7768         B.11.11.23709.GP.
7770         * lib/m4sugar/m4sh.m4 (AS_DIRNAME): Use 'dirname' if that works.
7771         (AS_BASENAME_EXPR): New macro.
7772         (AS_BASENAME_SED): Do not assume GNU sed semantics.
7773         (AS_BASENAME): Use 'basename' if that works; then try 'expr';
7774         and fall back on 'sed' only if the other two fail.  This makes
7775         AS_BASENAME act more like AS_DIRNAME.
7776         (as_me): Shell-quote the argument of AS_BASENAME, in case $0
7777         contains white space.
7778         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR):
7779         Use AS_DIRNAME, since I think it's now DOS-friendly.
7780         * tests/m4sh.at (DIRNAME_TEST): New arg $3.
7781         Allow "dirname //FOO" to return either / or //, as POSIX allows
7782         either behavior.
7784 2001-10-10  Akim Demaille  <akim@epita.fr>
7786         * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Recognize
7787         `a_out.exe' for OpenVMS 7.1, DEC C 5.5 compiler, via GNV.
7788         From Eric Sharkey.
7790 2001-10-10  Akim Demaille  <akim@epita.fr>
7792         * lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): m4_defun, not
7793         m4_define, since...
7794         (_AS_ECHO_N): AS_REQUIREs it.
7796 2001-10-10  Akim Demaille  <akim@epita.fr>
7798         * lib/autoconf/general.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS)
7799         (AC_INCLUDES_DEFAULT): Move to...
7800         * lib/autoconf/headers.m4: here.
7801         * lib/autoconf/types.m4: Comment changes.
7802         * doc/autoconf.texi: Specify where the default includes are used
7803         in the macro prototypes.
7805 2001-10-09  Akim Demaille  <akim@epita.fr>
7807         * lib/autoconf/autoconf.m4 (m4_patsubst, m4_regexp): New
7808         transition code.
7810 2001-10-08  Akim Demaille  <akim@epita.fr>
7812         * bin/autoreconf.in (&autoreconf): Remove debugging code.
7813         (&parse_args): Pass verbosity/debugging options to subtools when
7814         --debug, not when --verbose.
7815         * lib/autom4te.in (Autoreconf-preselections): New.
7816         (Autoconf): Use it.
7818 2001-10-08  Akim Demaille  <akim@epita.fr>
7820         * bin/autoreconf.in (autoreconf): Run libtoolize when appropriate.
7822 2001-10-08  Akim Demaille  <akim@epita.fr>
7824         * doc/autoconf.texi (autoreconf Invocation): Adjust.
7825         * bin/autoreconf.in (autoreconf): Run gettextize when appropriate.
7827 2001-10-08  Akim Demaille  <akim@epita.fr>
7829         * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
7830         (Syntax of the shell scripts): Don't.
7831         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
7832         bother with $force since...
7833         * lib/Autom4te/General.pm: does.
7835 2001-10-08  Akim Demaille  <akim@epita.fr>
7837         * bin/autoreconf.in: Rewrite in Perl.
7838         * configure.ac: Adjust.
7839         * lib/Autom4te/General.pm (&up_to_date_p): New.
7840         * bin/autom4te.in (&up_to_date_p): Use it.
7841         Rename as...
7842         (&up_to_date): this.
7844 2001-10-08  Akim Demaille  <akim@epita.fr>
7846         * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
7847         (m4_list_cmp): Use $0 to reinvoke yourself.
7848         (m4_patsubsts): New.
7849         (m4_strip, m4_version_unletter): Use it.
7850         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
7852 2001-10-08  Akim Demaille  <akim@epita.fr>
7854         * lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
7855         * lib/autoconf/libs.m4, lib/autoconf/status.m4,
7856         * lib/autoconf/types.m4, lib/autotest/general.m4,
7857         * lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
7858         * tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
7859         m4_bregexp, m4_bpatsubst, and m4_bmatch.
7860         * doc/autoconf.texi (Redefined M4 Macros): Adjust.
7862 2001-10-08  Akim Demaille  <akim@epita.fr>
7864         * lib/m4sugar/m4sh.m4: Use AS_REQUIRE.
7866 2001-10-08  Akim Demaille  <akim@epita.fr>
7868         * lib/m4sugar/m4sh.m4 (AS_DIRNAME_EXPR): Use AS_REQUIRE.
7869         * tests/tools.at (AT_DATA_FORBIDDEN): Rename/move/duplicate to...
7870         * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): here.
7871         * tests/tools.at, tests/m4sh.at: Use it.
7872         * tests/m4sh.at: Don't rely on Autoconf macros.
7873         (DIRNAME_TEST): Also exercise the expr variant.
7874         * tests/m4sugar.at, tests/atspecific.m4 (AT_CHECK_M4SUGAR): The
7875         preferred M4sugar extension is now `.4s'.
7876         * tests/README: Remove.
7878 2001-10-08  Akim Demaille  <akim@epita.fr>
7880         * lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
7881         (m4_provide_if): this.
7882         * lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
7883         * lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
7884         (AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
7885         M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.
7887 2001-10-08  Akim Demaille  <akim@epita.fr>
7889         Use `add-log-current-defun-function' for ChangeLog creation.
7890         Suggested by Tom Tromey.
7892         * lib/emacs/autotest-mode.el (autotest-mode-map): New.
7893         (autotest-mode): Adjust.
7894         * lib/emacs/autoconf-mode.el (autoconf-mode-map): Modernize, map
7895         'comment-region onto `C-c ;'.
7896         Comments are `#', not `dnl'.
7897         (autoconf-current-defun): New.
7898         (autoconf-font-lock-keywords): Recognize `m4_defun'.
7900 2001-10-08  Akim Demaille  <akim@epita.fr>
7902         * lib/autoconf/general.m4 (_m4_divert(BODY)): Move to...
7903         * lib/m4sugar/m4sh.m4: here.
7904         (AS_INIT): Push the BODY diversion, set the #! /bin/sh line.
7905         * lib/autoconf/general.m4 (AC_PLAIN_SCRIPT) : Remove.
7906         (AT_INIT): Replace AC_PLAIN_SCRIPT with AS_INIT invocation,
7907         include handle the m4_pattern_*, no longer push the
7908         BODY diversion nor set the /bin/sh line, AS_INIT does it.
7909         * lib/autotest/general.m4 (AT_INIT): Likewise.
7910         * tests/base.at: Adjust the tests to use AS_INIT.
7911         * tests/tools.at (AT_DATA_FORBIDDEN): New.
7912         (autoconf: forbidden tokens): Adjust to work on M4sh instead of
7913         Autoconf.
7915 2001-10-07  Paul Eggert  <eggert@twinsun.com>
7917         * doc/autoconf.texi (config.status Invocation):
7918         CONFIG_SHELL defaults to a shell that supports LINENO if available.
7920         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): If the current
7921         shell does not support LINENO, and if CONFIG_SHELL is unset or
7922         empty, and if we can find a shell that does support LINENO,
7923         then set CONFIG_SHELL to that shell and then re-execute
7924         ourselves with CONFIG_SHELL.
7926 2001-10-05  Paul Eggert  <eggert@twinsun.com>
7928         * tests/Makefile.am (clean-local): Don't invoke $(TESTSUITE) if it
7929         doesn't exist.  Remove *.tmp, as a .tmp file is created during the
7930         build of $(TESTSUITE).
7932 2001-10-05  Akim Demaille  <akim@epita.fr>
7934         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
7935         iff we are a bareword.
7936         Reported by Raja R Harinath.
7938 2001-10-05  Akim Demaille  <akim@epita.fr>
7940         * tests/m4sh.at (LINENO): New.
7941         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Be sure to set
7942         PATH_SEPARATOR before using it.
7943         Fix the absolute path case/esac pattern.
7944         Provide $0 as fallback for as_myself.
7945         Reported by Raja R Harinath.
7947 2001-10-05  Akim Demaille  <akim@epita.fr>
7949         * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
7950         * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
7952 2001-10-05  Akim Demaille  <akim@epita.fr>
7954         * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
7955         (AS_SHELL_SANITIZE): here.  Use it.
7956         (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
7957         From Paul Eggert.
7959 2001-10-04  Akim Demaille  <akim@epita.fr>
7961         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
7962         combination of Awk and sed to replace $LINENO.
7964 2001-10-02  Paul Eggert  <eggert@twinsun.com>
7966         * doc/autoconf.texi (Limitations of Builtins): You can't use
7967         "source"; it's not portable.  Remove confusing and
7968         somewhat-incorrect example involving "." and "/".
7970         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): "source" -> ".", for
7971         compatibility with POSIX shells.
7973 2001-10-02  Akim Demaille  <akim@epita.fr>
7975         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Just source 40.lineno
7976         instead of exec'ing to preserve $0 and $@.
7978 2001-10-01  Akim Demaille  <akim@epita.fr>
7980         * tests/testsuite (AT_INIT) <at_pass_list>: New.
7981         Don't run twice the same test.
7983 2001-10-01  Akim Demaille  <akim@epita.fr>
7985         * lib/autotest/general.m4 (AT_INIT) <--help>: Catch up with reality.
7986         No longer output the list of tests.
7987         <--list>: New option.
7988         <--full-help>: Remove.
7989         Complete the short/long options duality.
7990         Various small adjustments.
7992 2001-10-01  Akim Demaille  <akim@epita.fr>
7994         * doc/autoconf.texi: Use @kbd for user input.
7995         Always use `$' as shell prompt.
7997 2001-09-30  Paul Eggert  <eggert@twinsun.com>
7999         * lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS):
8000         Don't use nested parenthesization.  This patch was originally
8001         suggested to bug-autoconf by Philippe De Muyter on 2000-05-28,
8002         but somehow it didn't get incorporated then.
8003         * doc/autoconf.texi (Limitations of Usual Tools):
8004         Clarify remark about sed and nested parenthesization.
8006         * lib/autoconf/types.m4 (AC_CHECK_SIZEOF):
8007         Report an error if the size cannot be determined even though
8008         the type exists.
8009         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
8010         Check for `expr' arithmetic overflow, and for compilation failure,
8011         and invoke a new argument $4 if either is discovered.
8012         This makes _AC_COMPUTE_INT_COMPILE more like _AC_COMPUTE_INT_RUN.
8013         (_AC_COMPUTE_INT): Pass IF-FAILS arg to _AC_COMPUTE_INT_COMPILE.
8015 2001-09-28  Akim Demaille  <akim@epita.fr>
8017         * lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el: New.
8018         * m4/lispdir.m4: New.
8019         * aclocal.m4, configure.ac: Adjust.
8021 2001-09-28  Akim Demaille  <akim@epita.fr>
8023         * lib/autotest/general.m4 (AT_VICTIMS): Rename as...
8024         (AT_TESTED): this.
8025         (AT_INIT): More the wrapped section to where it will be expanded.
8026         Output `AT_tested' only when existing.
8027         Catch unexpanded PACKAGE_STRING and PACKAGE_BUGREPORT.
8029 2001-09-27  Akim Demaille  <akim@epita.fr>
8031         Fix the passing of $? to ACTION-IF-FAILED in AC_TRY_RUN, that
8032         generates too many bug reports.
8034         * lib/autoconf/general.m4 (_AC_RUN_IFELSE): Pass the right exit
8035         status when executing the ACTION-IF-FALSE.
8036         * tests/base.at (AC_TRY_*): Rename as...
8037         (AC_TRY_COMMAND): this.
8038         (AC_RUN_IFELSE): New.
8039         * tests/compile.at (Extensions, C keywords)
8040         (AC_PROG_CPP requires AC_PROG_CC, GNU Fortran 77)
8041         (Broken/missing compilers, AC_PROG_CPP with warnings)
8042         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC): Move to...
8043         * tests/c.at (Extensions, C keywords)
8044         (Broken/missing compilers, AC_PROG_CPP with warnings)
8045         (AC_PROG_CPP without warnings, AC_PROG_CPP via CC)
8046         (AC_PROG_CPP requires AC_PROG_CC): here and...
8047         * tests/fortran.at (GNU Fortran 77): there.
8048         * doc/autoconf.texi (autoconf Invocation): Fix the example:
8049         AC_TRY_RUN is about compilation, not shell commands.
8050         (Test Programs): AC_TRY_RUN works as used to be advertised.
8052 2001-09-27  Akim Demaille  <akim@epita.fr>
8054         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix bugs spotted by
8055         Raja R Harinath:
8056         Be sure to detect when $LINENO always returns the same value.
8057         Look for the original script, basename($0) is certainly not
8058         enough.
8059         Pass the CLI arguments to `$as_me.lineno'.
8061 2001-09-25  Akim Demaille  <akim@epita.fr>
8063         * lib/autotest/general.m4 (AT_INIT): Dump the whole config.log.
8064         Be sure the close and reopen the LOG fd before and after using tee
8065         to extend the log.
8066         <at_tests_pattern>: Adjust to the new format of at_help_all.
8068 2001-09-23  Akim Demaille  <akim@epita.fr>
8070         * bin/autom4te.in (parse_args): There can be several invocations
8071         of --language now.
8073 2001-09-23  Akim Demaille  <akim@epita.fr>
8075         * doc/autoconf.texi (Top): Wrap in @ifnottex.
8077 2001-09-23  Akim Demaille  <akim@epita.fr>
8079         * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
8080         ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
8081         (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
8082         builddir, buildpath, top_builddir, and top_buildpath.
8083         (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
8084         the current directory.
8085         * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
8086         variables *before* changing the current directory.
8087         Skip nonexistent dirs.
8088         * doc/autoconf.texi (Preset Output Variables): Document these
8089         variables.
8091         * lib/autotest/general.m4: Do not reset AT_victims.
8092         Don't compute at_srcdir nor at_top_srcdir.
8094         * tests/tools.at: Hence use top_srcdir.
8096         * tests/Makefile.am, tests/autoconf, tests/autoheader,
8097         * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
8098         Remove.
8099         * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
8100         * tests/wrapsh.in, tests/autoupdate.in: New.
8101         * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
8102         * configure.ac: Build the position independent wrappers.
8104         * man/Makefile.am: Now that test wrappers are position
8105         independent, use them and drop dark envvar magic.
8107 2001-09-23  Akim Demaille  <akim@epita.fr>
8109         * doc/autoconf.texi (Common Shell Constructs): Rename as...
8110         (Programming in M4sh): this.
8111         Promote to @section.
8113 2001-09-23  Akim Demaille  <akim@epita.fr>
8115         * lib/autotest/general.m4 (AT_INIT): Dump config.log last.
8116         Pass $at_debug_args to the rerun test suite.
8117         * lib/m4sugar/Makefile.am (DISTCLEANFILES): New.
8118         * bin/Makefile.am (ETAGS_SH): Don't use characters ranges.
8119         From Paul Eggert.
8121 2001-09-23  Akim Demaille  <akim@epita.fr>
8123         * bin/autom4te.in (@my_warning): Remove, handled by `autom4te.cfg'.
8125 2001-09-23  Akim Demaille  <akim@epita.fr>
8127         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix shell
8128         over-escaping.
8130 2001-09-23  Akim Demaille  <akim@epita.fr>
8132         * lib/Autom4te/General.pm (&debug): New.
8133         * bin/autom4te.in ($language): Move to...
8134         (parse_args): here.
8135         Handle --language in languages.
8136         * lib/autom4te.in (Automake-selections, Autoheader-selections)
8137         (Autoscan-selections): New.
8138         (Autoconf): Adjust.
8140 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
8142         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/init.m4,
8143         * m4/install-sh.m4, m4/missing.m4, m4/sanity.m4, m4/strip.m4: Updated
8144         to match current versions from CVS Automake.
8146 2001-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
8148         * doc/autoconf.texi (Special Shell Variables): Add pdksh output
8149         for $LINENO.
8151 2001-09-22  Akim Demaille  <akim@epita.fr>
8153         * lib/autoconf/autotest.m4: Create `package.m4'.
8154         * tests/Makefile.am (package.m4): Remove.
8156 2001-09-22  Akim Demaille  <akim@epita.fr>
8158         Rely on `$LINENO' when possible instead of `__oline__'.
8160         * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Provide some form of
8161         `$LINENO' support replacement when not supported.
8162         (_AS_CR_PREPARE, _AS_TR_CPP_PREPARE, _AS_TR_SH_PREPARE): Invoke
8163         them explicitly to be sure they are not output before this section
8164         (via m4_require).  Cosmetic only.
8165         * lib/autoconf/c.m4, lib/autoconf/general.m4,
8166         * lib/autoconf/programs.m4: Replace all the occurrences of
8167         `__oline__' with `$LINENO'.
8168         * doc/autoconf.texi (Special Shell Variables): Document LINENO.
8170 2001-09-21  Tim Van Holder  <tim.van.holder@pandora.be>
8172         * lib/autoconf/functions.m4 (_AC_FUNC_FORK): Replaceded an 8-bit
8173         character (u: -> ue) in a code comment.
8174         (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Only run 'ln -s' if we know
8175         it works.
8177 2001-09-21  Akim Demaille  <akim@epita.fr>
8179         * Makefile.maint (AUTOM4TE): Neutralize autom4te.
8180         Suggested by Jim Meyering.
8182 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8184         * lib/autoconf/programs.m4: Use extensions listed in
8185         $ac_executable_extensions when looking for programs.
8187 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8189         * lib/autoconf/general.m4: Fix a small Englisho.
8190         * lib/autoconf/status.m4: Fix a small typo.  Handle DOS paths when
8191         setting up ac_dir_suffix and ac_top_builddir.
8192         * lib/m4sugar/m4sh.m4: Default CDPATH to $PATH_SEPARATOR, not ':'.
8194 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8196         * doc/autoconf.texi (File System Conventions): Clarify the use of
8197         PATH_SEPARATOR.
8198         (Special Shell Variables[PATH_SEPARATOR]): Ditto.
8199         (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
8200         be used instead of ':'.
8201         * lib/autotest/general.m4: Replace occurrences of ':' in
8202         AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
8204 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8206         * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
8207         arguments.  Fixed a typo.
8209 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8211         * man/Makefile.am (.x.1): Use @PATH_SEPARATOR@, not ':' to set up
8212         $PATH.  Also set AUTOM4TE_CFG, so we can process autom4te properly.
8214 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8216         * bin/autoscan.in: Add 'exec-perl-if-not-run-by-perl'.
8217         * bin/autoupdate.in: Ditto.
8218         * bin/autoheader.in: Reworded a few comments.
8219         * bin/autoconf.in: Reworded help text for a few options.
8220         * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
8221         * bin/autoscan.in, bin/autoupdate.in: Ditto.
8223 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
8225         * lib/Autom4te/XFile.pm (open): Simplified the error message (we
8226         already have $file).  Set output files to binary mode (helps avoid
8227         CR issues on DOSish systems).
8229 2001-09-19  Akim Demaille  <akim@epita.fr>
8231         * lib/autotest/general.m4: Englishoes.
8232         From Tim Van Holder and Alexey Mahotkin.
8234 2001-09-18  Paul Eggert  <eggert@twinsun.com>
8236         * doc/autoconf.texi (Common Shell Constructs): New node,
8237         documenting AS_DIRNAME.
8238         (Limitations of Usual Tools): Refer to it when discussing dirname.
8239         Also, update discussion of POSIX standard to reflect latest draft.
8241         * lib/autoconf/c.m4:
8242         (AC_LANG_INT_SAVE(C)): Also support negative values, down to LONG_MIN.
8244         * lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE):
8245         Do not pass a first argument with leading '-'
8246         to expr, by parenthesizing initial integers that might be negative.
8248         * doc/autoconf.texi (Particular Functions): AC_FUNC_GETPGRP
8249         now merely checks whether it is an error to pass an argument
8250         to getpgrp.
8252         * lib/autoconf/functions.m4 (_AC_FUNC_GETPGRP_TEST): Remove.
8253         (AC_FUNC_GETPGRP): Don't bother with a runtime test.  Just check
8254         whether it is a (compile-time) error to pass an argument to
8255         getpgrp.  This simpler test supports the revised documentation,
8256         and is all that AC_FUNC_GETPGRP's users really need.
8258 2001-09-18  Akim Demaille  <akim@epita.fr>
8260         * doc/autoconf.texi (Limitations of Make) <$<>: New.
8262 2001-09-18  Akim Demaille  <akim@epita.fr>
8264         * doc/autoconf.texi (Limitations of Usual Tools) <find>: More about
8265         `{}'.
8266         * lib/autotest/general.m4 (AT_INIT): Adjust.
8268 2001-09-18  Paul Wagland  <paul@wagland.net>
8270         * tests/m4sh.at: Ensure that AS_DIRNAME handles '/', '//' and '///'
8271         correctly.
8272         Add test for AS_BASENAME.
8273         * lib/m4sugar/m4sh.m4: Fix AS_BASENAME so that it passes the previous
8274         added test. It now correctly handles /1/2/3/, returning '3' not ''.
8275         Added AS_BASENAME_SED to make the interface the same as AS_DIRNAME.
8276         * tests/base.at: Fixed the expected responses. The old ones were
8277         one line out...
8278         * lib/autoconf/general.m4: Fixed AC_PREFIX_PROGRAM, it now behaves as
8279         the documentation claims it should (and how it behaved in 2.13).
8281 2001-09-18  Akim Demaille  <akim@epita.fr>
8283         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
8284         the AC_CONFIG_COMMANDS invocation.
8285         This also solves the name clash problems.
8286         Don't set the package's ID.
8287         * lib/m4sugar/Makefile.am (version.m4): Revamp.
8288         No longer to be shipped.
8289         (version.in): Remove.
8290         * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
8291         * lib/autoconf/status.m4: Adjust.
8292         Use `m4_PACKAGE_STRING'.
8293         * lib/autotest/general.m4 (AT_INIT): N-th signature change: now
8294         the only optional argument is the name of the test suite.
8295         Expect `package.m4' to define the package signature.
8296         * lib/autom4te.in (Autotest): Add `package.m4?'.
8297         * tests/Makefile.am (package.m4): New.
8298         * tests/suite.at: ifnames is a victim.
8300 2001-09-18  Akim Demaille  <akim@epita.fr>
8302         * lib/autom4te.in (Autoconf): Preselect AM_CONDITIONAL,
8303         AC_LIBSOURCE, AC_CONFIG_FILES.
8304         * lib/autotest/general.m4 (AT_INIT): Don't abort when a tested
8305         program version string doesn't match the package's.
8306         * lib/autoconf/general.m4 (AC_CACHE_VAL): Reestablish the space
8307         after `(cached)'.
8309 2001-09-17  Paul Eggert  <eggert@twinsun.com>
8311         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
8312         Allow expression to return any value that can fit into unsigned long
8313         (not int, as before).  Check for output errors.
8315 2001-09-17  Bruno Haible  <haible@ilog.fr>
8317         * lib/autoconf/c.m4: (AC_LANG_INT_SAVE(C)):
8318         Always include <stdio.h> and <stdlib.h>. Evaluate
8319         the expression in an extra function before these includes. Call
8320         fprintf "%d" only after ensuring the argument is of type 'int'.
8321         Reported by Wayne Chapeskie <waynec@spinnaker.com>.
8323 2001-09-17  Paul Eggert  <eggert@twinsun.com>
8325         Fix bug reported by Paul Townsend on AIX 4.3.3.0 with CFLAGS=-O4
8326         or CFLAGS=-O5.  In that case, the linker has a relaxed view of
8327         fatal errors, and AC_CHECK_LIB causes it to include libraries even
8328         when they don't exist.
8330         * lib/autoconf/headers.m4 (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS,
8331         not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't
8332         need it.
8334         * lib/autoconf/specific.m4 (AC_ISC_POSIX): Replace the old, crufty
8335         version with the version used by fileutils 4.1, except use
8336         AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -lcposix if
8337         we don't need it.
8339         * doc/autoconf.texi (AC_ISC_POSIX): Describe new behavior.
8341 2001-09-13  Akim Demaille  <akim@epita.fr>
8343         * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
8344         _first_.
8345         Reported by Gerrit P. Haase.
8347 2001-09-13  Akim Demaille  <akim@epita.fr>
8349         * lib/autotest/general.m4 (AT_INIT): Reset `AT_victims' so that
8350         m4_defn'ing is valid.
8352 2001-09-13  Akim Demaille  <akim@epita.fr>
8354         * lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
8355         * lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
8356         Use it.
8358 2001-09-13  Akim Demaille  <akim@epita.fr>
8360         * lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
8361         m4_match.
8362         (m4_re_escape): New.
8363         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
8364         * lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
8365         * lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
8366         Likewise.
8367         * lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
8368         (_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
8369         * lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
8370         AT_tests_all for consistency.
8371         Set at_victims.
8372         (AT_VICTIMS): Similar to AT_KEYWORDS.
8373         (_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.
8375 2001-09-13  Akim Demaille  <akim@epita.fr>
8377         * lib/autotest/general.m4 (AT_INIT): Fix stupid bugs.
8379 2001-09-13  Akim Demaille  <akim@epita.fr>
8381         * lib/autotest/general.m4 (AT_INIT): Create and remove
8382         `$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
8383         test suites can cohabit.
8385 2001-09-13  Akim Demaille  <akim@epita.fr>
8387         * tests/mktests.sh: Don't output banners for empty test files.
8389 2001-09-13  Akim Demaille  <akim@epita.fr>
8391         Test suites can be run independently of configure.
8393         * lib/m4sugar/m4sh.m4 (_AS_ECHO, _AS_ECHO_N_PREPARE): New.
8394         * lib/autoconf/programs.m4 (_AC_PROG_ECHO): Remove.
8395         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust: AC_SUBST
8396         ECHO_N etc.
8397         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't ask for at_n
8398         and at_c.
8399         * lib/autotest/general.m4: Use ECHO_*.
8401 2001-09-13  Akim Demaille  <akim@epita.fr>
8403         * bin/ifnames.in: Rewrite in Perl.
8404         * configure.ac: Don't look for AWK.
8405         * tests/tools.at (AWK portability): Remove.
8406         (Syntax of the shell scripts): Don't check ifnames.
8407         (AT_CHECK_PERL_SYNTAX): New.
8408         (Syntax of the Perl scripts): Check ifnames.
8409         * tests/ifnames: New.
8411 2001-09-13  Akim Demaille  <akim@epita.fr>
8413         * lib/autotest/general.m4 (AT_INIT): Let --keywords also match
8414         test group titles.
8415         * tests/atspecific.m4 (AT_CHECK_AU_MACRO): AT_KEYWORDS(autoupdate).
8416         Remove all the other keywords.
8418 2001-09-10  Akim Demaille  <akim@epita.fr>
8420         * lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
8421         SETUP: no longer used.
8422         Support -k, --keywords.
8423         <at_help>: Be `no', `short', or `long'.
8424         <at_help_all>: New variable.
8425         (AT_KEYWORDS): New.
8426         (AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
8427         (_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
8428         (_AT_CLEANUP_FILE_IF): Simplify the regexp.
8429         (AT_SETUP): Reset AT_line, AT_keywords, AT_description.
8430         No longer fill the HELP diversion.
8431         (AT_CLEANUP): Use them.
8432         * lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
8433         (m4_list_append): Remove.
8435         Spread a few keywords in the Autoconf test suite.
8437 2001-09-10  Akim Demaille  <akim@epita.fr>
8439         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't pass
8440         PATH_SEPARATOR, let M4sh compute it.
8441         * lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): New.
8442         * lib/autoconf/programs.m4 (AC_SHELL_PATH_WALK): Use PATH_SEPARATOR.
8443         Move to...
8444         * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Here.
8445         Simplify when the path is not a literal.
8446         (AS_UNAME): Use it to report PATH.
8447         * lib/autoconf/general.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Remove.
8448         (_AC_INIT_DEFAULTS): AC_SUBST PATH_SEPARATOR.
8449         * lib/autoconf/programs.m4 (AC_PROG_INSTALL): Use _AS_PATH_WALK.
8450         * lib/autotest/general.m4 (AT_INIT): Use _AS_PATH_WALK to
8451         normalize the path, and to look for victims.
8452         * tests/semantics.at (AC_PATH_PROG & AC_PATH_PROGS)
8453         (AC_CHECK_PROG & AC_CHECK_PROGS): Use PATH_SEPARATOR.
8455 2001-09-07  Akim Demaille  <akim@epita.fr>
8457         * bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
8458         doesn't neutralize SIGINT, making autoconf etc. non interruptible.
8459         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
8460         related variables into `at_package_*'.
8461         * lib/autotest/general.m4 (AT_VICTIMS): New.
8462         (AT_INIT): Adjust for stand-alone/embedded test suites.
8463         (AS_MESSAGE_LOG_FD): Define and use it.
8464         * tests/suite.at (AT_VICTIMS): Use it.
8465         * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
8466         at_version.
8468 2001-09-07  Akim Demaille  <akim@epita.fr>
8470         Move toward possibly stand-alone test suites.
8472         * lib/autotest/general.m4: Stop displaying srcdir everywhere as,
8473         in addition, it introduces useless differences in logs.
8474         (AT_INIT): Let atconfig and atlocal be both optional.
8475         Adjust PATH computation.
8476         * lib/m4sugar/m4sh.m4 (AS_UNAME): More readable display of PATH.
8478 2001-09-07  Akim Demaille  <akim@epita.fr>
8480         * lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
8481         m4sugar/version.m4.
8483 2001-09-05  Akim Demaille  <akim@epita.fr>
8485         * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
8486         to avoid GCC warnings.
8487         From Uwe Seimet.
8489 2001-09-05  Akim Demaille  <akim@epita.fr>
8491         * bin/autom4te.in: --language is -l, not -s.
8493 2001-09-05  Akim Demaille  <akim@epita.fr>
8495         Be ready to handle filenames as stupid as `dnl.at', for if even
8496         the maintainer is dumb enough to do that...
8498         * lib/autotest/general.m4 (AT_SETUP, AT_LINE): Demonstrates your
8499         excellence in M4 quotation: consider `__file__' is active.
8501         And BTW, when invoking m4, pass the --include in the right order:
8502         the wrong one.
8504         * bin/autom4te.in, bin/autoupdate.in: Use reverse when kingtal to
8505         4m.
8507 2001-09-05  Akim Demaille  <akim@epita.fr>
8509         * lib/Autom4te/XFile.pm: New lib file.
8510         * bin/autoupdate.in, bin/autoscan.pl, bin/autom4te.in,
8511         * bin/autoheader.in: Use it.
8513 2001-09-05  Akim Demaille  <akim@epita.fr>
8515         * bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
8516         defined.
8518 2001-09-05  Akim Demaille  <akim@epita.fr>
8520         * lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
8521         * bin/autoheader.in, bin/autoupdate.in (&parse_args): Adjust.
8523         * bin/autoscan.in: Use `getopt' and `find_files' etc.
8524         Add -I, --include support.
8525         * doc/autoconf.texi (autoscan Invocation): Adjust.
8527 2001-09-05  Akim Demaille  <akim@epita.fr>
8529         CVS GNU M4 doesn't like `undefine(undefined)'.
8531         * bin/autoupdate.in (&handle_m4_macros, &handle_autoconf_macros):
8532         New, extracted from main.
8533         Use IO::File wherever possible.
8534         (input.m4): Be constant, use -I instead of hard coding $tmp.
8535         Therefore be a quoted heredoc.
8536         Don't invoke `_au_disable', since ac was not loaded, but just
8537         `unm4.m4'.
8539 2001-08-31  Akim Demaille  <akim@epita.fr>
8541         Version 2.52d.
8543 2001-08-31  Akim Demaille  <akim@epita.fr>
8545         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the
8546         previous patch.
8547         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Can create `config.hin~'.
8549 2001-08-31  Akim Demaille  <akim@epita.fr>
8551         * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): DU 5.0 has
8552         serious problems handling heredocs in heredocs.
8553         Reported by Nicolas Joly.
8555 2001-08-31  Akim Demaille  <akim@epita.fr>
8557         * doc/autoconf.texi: Don't promote non `m4_*' M4 macros.
8558         (Making testsuite Scripts): Update.
8560 2001-08-31  Akim Demaille  <akim@epita.fr>
8562         * lib/Makefile.am (CLEANFILES): Add autom4te.cfg.
8564 2001-08-31  Akim Demaille  <akim@epita.fr>
8566         * doc/autoconf.texi (Quadrigraphs): Document `@&t@'.
8567         (testsuite Scripts): There is no such thing as `atconfig.in'.
8568         And actually one diagram is missing: test suite runtime.
8570 2001-08-31  Akim Demaille  <akim@epita.fr>
8572         * lib/Autom4te/General.pm (&find_file): Browse the includes in the
8573         inverse order.
8575 2001-08-31  Akim Demaille  <akim@epita.fr>
8577         * bin/autoupdate.in (@include): `installcheck' revealed the path
8578         to m4sugar was lacking!
8580 2001-08-31  Akim Demaille  <akim@epita.fr>
8582         * man/Makefile.am (.x.1): We really have to pass
8583         autom4te_perllibdir.
8585 2001-08-31  Akim Demaille  <akim@epita.fr>
8587         * lib/autotest/general.m4 (AT_INIT): Don't pass all the args to
8588         debug scripts, in particular passing explicitly listed tests to
8589         run is stupid.
8591 2001-08-31  Akim Demaille  <akim@epita.fr>
8593         * bin/autom4te.in (&parse_args): Strip `.' from `@include'.
8594         * bin/autoupdate.in: Use --include, -I, and --force, -f, too.
8595         Use directly autom4te, not autoconf.
8596         * tests/autoupdate: $top_srcdir/lib is needed too for melt files.
8598 2001-08-31  Akim Demaille  <akim@epita.fr>
8600         * tests/semantics.at (AC_C_BIGENDIAN): Missing eol.
8601         * bin/autoheader.in (%symbol): Strip arguments of macros.
8603 2001-08-31  Akim Demaille  <akim@epita.fr>
8605         * doc/autoconf.texi: Catch up -I, --include changes.
8607 2001-08-31  Akim Demaille  <akim@epita.fr>
8609         * bin/autom4te.in (&parse_args): Die on unknown languages.
8610         * bin/autoheader.in: Run directly autom4te --mode=autoconf, no
8611         need for autoconf.
8612         Promote --include over --macrodir and other obsolete options.
8614 2001-08-31  Akim Demaille  <akim@epita.fr>
8616         * lib/Autom4te/General.pm ($version, $help, &getopt): New.
8617         * bin/autoupdate.in, bin/autoheader.in, bin/autom4te.in: Use them.
8618         * bin/autom4te.in ($autoconf): Pass --force.
8619         `print $out' doesn't print `$_' but `$out'.
8620         * tests/tools.at (Syntax of the Perl scripts): Pass the lib dir.
8621         (autoheader): Pass --force since the test suite goes too fast for
8622         the time stamps.
8623         Adjust to the new autoheader messages.
8625 2001-08-31  Akim Demaille  <akim@epita.fr>
8627         * bin/autoheader.in: Handle the acconfig.h etc. junk files.
8628         Check the completeness of the #template.
8629         * lib/Autom4te/General.pm (&update_file): s/remove/unlink/.
8630         * tests/semantics.at (AC_C_BIGENDIAN): Adjust AT_CHECK_AUTOHEADER
8631         invocation.
8633 2001-08-31  Akim Demaille  <akim@epita.fr>
8635         * lib/Autom4te/General.pm (&find_file, &update_file): New.
8636         * bin/autoupdate.in, bin/autoheader.in: Adjust.
8637         Drop AC_MACRODIR dead for real.
8638         * tests/atspecific.m4 (AT_CHECK_AUTOHEADER): Now autoheader says
8639         `autoheader: `config.hin' is created'.
8640         * tests/tools.at (Syntax of the Perl scripts): Check autoheader.
8642 2001-08-31  Akim Demaille  <akim@epita.fr>
8644         * bin/autoheader.in: Rewrite in Perl.
8645         * tests/autoheader: Adjust.
8647 2001-08-31  Akim Demaille  <akim@epita.fr>
8649         * bin/autoconf.in (--include, -I): New option.
8650         Map --localdir, --autoconf-dir onto it.
8651         Forward autom4te's options instead of interpreting them.
8652         * bin/autoconf.in, bin/autoheader.in (AC_MACRODIR, autoconf_dir):
8653         There is no such envvar since the inception of autom4te.cfg.
8654         * bin/autom4te.in (&parse_args): Uniquify `@include'.
8655         * bin/autoupdate.in: Adjust, and perform more control.
8656         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Adjust.
8657         * tests/autoconf: Dittowise.
8659 2001-08-31  Akim Demaille  <akim@epita.fr>
8661         * bin/autoconf.in: Don't bother with `acsite.m4' and `aclocal.m4'.
8662         * bin/autom4te.in (&find_file): Support `FILE?' standing for
8663         optionally `FILE'.
8664         Use -e, not -f, since /dev/null for instance is OK.
8665         (&parse_args): Adjust.
8666         * lib/autom4te.in (Autoconf): Add `acsite.m4?' and `aclocal.m4?'.
8668 2001-08-31  Akim Demaille  <akim@epita.fr>
8670         * configure.ac: Also find tested executables in bin.
8671         * bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
8672         * bin/autoscan.in, autoupdate.in: Use exclusively the name of the
8673         installed peer executables, only PATH is allowed to resolve it.
8674         Pass `autoconf_dir' via options, not via invisible envvars.
8675         * lib/Autom4te/General.pm (&find_peer): Remove.
8676         * lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
8677         `abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
8678         * man/Makefile.am: Let help2man rely on PATH instead of trying to
8679         find the executables for it.
8680         * tests/Makefile.am: Major cleanup.  Too lazy to document...
8681         * tests/atlocal.in: Remove all the obscure envvar manipulations.
8682         We only need PERL.
8683         * tests/atspecific.m4, tests/tools.at: Passing --localdir is
8684         indeed related to running the test suite, while passing
8685         --autoconf-dir and others is related to running non installed
8686         Autoconf executables.  So don't do that, leave it to...
8687         * tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
8688         * tests/autoscan: New.
8689         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
8690         refer to library files: rely on --language.
8692 2001-08-29  Akim Demaille  <akim@epita.fr>
8694         * bin/autom4te.in, lib/autom4te.in, bin/autoconf.in:
8695         s/--set/--language/.
8697 2001-08-29  Akim Demaille  <akim@epita.fr>
8699         * doc/autoconf.texi: Strip the @nodes.
8700         Suggested by Paul Eggert.
8701         (Initializing configure): Typo.
8703 2001-08-29  Akim Demaille  <akim@epita.fr>
8705         * bin/autom4te.in (&handle_output): s/@__@/@&t@/.
8706         Suggested by Paul Eggert.
8708 2001-08-29  Akim Demaille  <akim@epita.fr>
8710         * Makefile.maint (do-po-update): Wget refuses to overwrite files:
8711         download in a tmp dir.
8713 2001-08-29  Akim Demaille  <akim@epita.fr>
8715         * lib/autotest/general.m4: s/AT-devnull/devnull/ since there are
8716         case insensitive OSes out there :(
8717         From Tim Van Holder.
8719 2001-08-29  Akim Demaille  <akim@epita.fr>
8721         * lib/autom4te.in: New.
8722         * lib/Makefile.am (edit, autom4te.cfg): New.
8723         * bin/autom4te.in (BEGIN): Simplify.
8724         Rely on `AC_MACRODIR' in addition of `autom4te_perllibdir'.
8725         (&load_configuration): New.  Use it.
8726         (&parse_args): Support --mode, --set, and --melt.
8727         * bin/autoconf.in: Simplify and adjust.
8728         * tests/Makefile.am (AUTOMAKE): Use --set.
8729         * tests/atlocal.in: Adjust.
8730         * BUGS: distcheck and check are weak.
8732 2001-08-29  Akim Demaille  <akim@epita.fr>
8734         * lib/autotest/general.m4: Use
8735                 foo=`(command) 2>/dev/null`
8736         not
8737                 foo=`command` 2>/dev/null
8738         (at-devnull): Rename as...
8739         (AT-devnull): this.
8740         (--clean): Remove AT-* files too.
8741         * doc/autoconf.texi (Limitations of Usual Tools): Document `date'.
8742         Reported by Nicolas Joly.
8744 2001-08-28  Akim Demaille  <akim@epita.fr>
8746         * lib/autoconf/general.m4 (_AC_INIT_PREPARE): Don't use single
8747         quotes inside single quotes.
8748         Reported by Nicolas Joly.
8750 2001-08-28  Kevin Ryde  <user42@zip.com.au>
8752         * doc/autoconf.texi (Function Portability): Mention C right shifts.
8754 2001-08-27  Tim Van Holder  <tim.van.holder@pandora.be>
8756         * lib/autotest/general.m4: Reword some messages.
8757         (AT_INIT): Check for the `times' builtin before using it.
8758         Support test ranges as arguments to the testsuite.
8759         Have -e imply -d as the help text suggested.
8761 2001-08-27  Akim Demaille  <akim@epita.fr>
8763         * Makefile.maint: Formatting changes.
8764         (do-po-update, po-update, cvs-update, update): New targets.
8765         (AMTAR): Remove.
8767 2001-08-27  Akim Demaille  <akim@epita.fr>
8769         * lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
8770         <at_cmd_line>: New.
8771         Pass it to debug-*.sh scripts.
8772         <AUTOTEST_PATH>: May contain absolute dir names.
8774 2001-08-27  Akim Demaille  <akim@epita.fr>
8776         * lib/autotest/general.m4 (AT_INIT): Log the command line.
8777         Support `VAR=VAL' as arguments.
8778         Compute PATH _after_ the options processing, so that AUTOTEST_PATH
8779         may be set via the command line.
8781 2001-08-27  Akim Demaille  <akim@epita.fr>
8783         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): $2 defaults to $1.
8784         * lib/autotest/autotest.m4 (AT_INIT): Expand AUTOTEST_PATH into
8785         first the build dirs, then the src dirs.
8786         * configure.ac (AC_CONFIG_TESTDIR): Adjust.
8788 2001-08-27  Akim Demaille  <akim@epita.fr>
8790         * lib/autotest/general.m4 (AT_INIT): Output the definition of
8791         at_data_files earlier.
8792         (--clean, -c): New option.
8793         * tests/Makefile.am: Use this option.
8795 2001-08-27  Akim Demaille  <akim@epita.fr>
8797         * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename `ac_dots' as
8798         `ac_top_builddir' to mimic Automake's vocabulary, which much more
8799         readable.
8800         Adjust callers.
8801         * doc/autoconf.texi (Configuration Actions): Document the vars
8802         available in commands.
8803         Emphasize the risks of collisions in init-cmds.
8805 2001-08-27  Akim Demaille  <akim@epita.fr>
8807         * doc/autoconf.texi (Input) <AC_INIT>: Move to..
8808         (Initializing configure): this new node.
8810 2001-08-27  Akim Demaille  <akim@epita.fr>
8812         * Makefile.am (EXTRA_DIST): INSTALL.txt is a dead hack.
8814 2001-08-27  Akim Demaille  <akim@epita.fr>
8816         * m4/atconfig.m4 (AT_CONFIG): Remove, replaced by...
8817         * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): this.
8818         New file.
8819         * m4/Makefile.am (EXTRA_DIST): Oops, adjust...
8821 2001-08-27  Akim Demaille  <akim@epita.fr>
8823         * lib/autoconf/general.m4 (AU_DEFINE, AU_DEFUN, AU_ALIAS): Move
8824         to...
8825         * lib/autoconf/autoheader.m4: this new file.
8826         * lib/autoconf/general.m4 (AH_OUTPUT, AH_VERBATIM)
8827         (_AH_VERBATIM_OLD, AH_TEMPLATE, _AH_TEMPLATE_OLD, AH_TOP, AH_BOTTOM):
8828         Move to...
8829         * lib/autoconf/autoupdate.m4: this new file.
8831 2001-08-27  Akim Demaille  <akim@epita.fr>
8833         * lib/autoconf/status.m4 (_AC_SRCPATHS): New.
8834         (_AC_OUTPUT_LINKS, _AC_OUTPUT_FILES, _AC_OUTPUT_SUBDIRS): Use it.
8835         Standardize the var names (ac_sub_srcdir -> ac_srcdir, ac_subdir
8836         -> ac_dir).
8837         (_AC_OUTPUT_HEADERS): AS_DIRNAME always return a dir name.
8838         * lib/autoconf/general.m4 (_AC_INIT_HELP): Ditto.
8840 2001-08-27  Akim Demaille  <akim@epita.fr>
8842         * lib/autoconf/autoconf.m4 (AC_CONFIG_COMMANDS)
8843         (AC_CONFIG_COMMANDS_POST, AC_CONFIG_COMMANDS_PRE, AC_CONFIG_FILES)
8844         (AC_CONFIG_HEADER, AC_CONFIG_HEADERS, AC_CONFIG_IF_MEMBER)
8845         (AC_CONFIG_LINKS, AC_CONFIG_SUBDIRS, AC_FILE_DEPENDENCY_TRACE)
8846         (AC_LINK_FILES, AC_LIST_COMMANDS, AC_LIST_COMMANDS_COMMANDS)
8847         (AC_LIST_FILES, AC_LIST_FILES_COMMANDS, AC_LIST_HEADERS)
8848         (AC_LIST_HEADERS_COMMANDS, AC_LIST_LINKS, AC_LIST_LINKS_COMMANDS)
8849         (AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_OUTPUT_COMMANDS_POST)
8850         (AC_OUTPUT_COMMANDS_PRE, AC_OUTPUT_MAKE_DEFS)
8851         (_AC_CONFIG_COMMANDS_INIT, _AC_CONFIG_DEPENDENCIES)
8852         (_AC_CONFIG_DEPENDENCY, _AC_CONFIG_UNIQUE, _AC_LINK_FILES_CNT)
8853         (_AC_LIST_SUBDIRS, _AC_OUTPUT_COMMANDS, _AC_OUTPUT_COMMANDS_CNT)
8854         (_AC_OUTPUT_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS)
8855         (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_OUTPUT_LINKS)
8856         (_AC_OUTPUT_SUBDIRS): Move to...
8857         * lib/autoconf/status.m4: this new file.
8858         * lib/autoconf/general.m4, lib/autoconf/Makefile.am: Adjust.
8859         * tests/Makefile.am, tests/suite.at: Adjust.
8861 2001-08-27  Akim Demaille  <akim@epita.fr>
8863         Automake 1.5.
8865         * Makefile.am (AUTOMAKE_OPTIONS): Add 1.5 and dist-bzip2.
8866         (AMTAR): Help automake define it.
8867         (INSTALL, install-data-hook): The INSTALL.txt trick is no longer
8868         needed, 1.5 can have a macro and a target with the same name.
8869         * m4/auxdir.m4, m4/cond.m4, m4/depend.m4, m4/install-sh.m4,
8870         * m4/strip.m4: New.
8871         * m4/init.m4, m4/sanity.m4: Update.
8872         * doc/Makefile.am (CLEANFILES): 1.5 knows the texi2dvi files.
8873         * lib/autoconf/Makefile.am, lib/autotest/Makefile.am,
8874         * lib/m4sugar/Makefile.am, lib/autoscan/Makefile.am,
8875         * lib/Autom4te/Makefile.am, man/Makefile.am: Use dist/nodist.
8877 2001-08-27  Akim Demaille  <akim@epita.fr>
8879         Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
8881         * lib/autoconf/version.in: Remove.
8882         * lib/m4sugar/version.in: New.
8883         * lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
8884         Adjust callers.
8885         * bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
8886         the name of the directory they're in, instead of the filename,
8887         since version.m4 is now in m4sugar, but m4_acversion must not be
8888         classified as an Autoconf macro.
8889         ($input_m4): Don't qualify the path to m4sugar.
8890         Rather, pass autoconf_dir to m4.
8891         * tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
8892         * tests/suite.at: Require 2.52c.
8894 2001-08-27  Akim Demaille  <akim@epita.fr>
8896         testsuite.log should include config.log.
8898         * lib/autotest/autotest.m4: New.
8899         * lib/autotest/general.m4, tests/atspecific.m4: Adjust.
8900         * tests/suite.at : Adjust.
8901         (AT_INIT): Log config.log.
8902         * lib/m4sugar/m4sugar.m4 (m4_text_box): New.
8903         * lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
8904         * lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
8905         (_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
8906         of config.log on traps.
8907         (_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
8908         Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
8909         for config.status'.
8910         Open the log as soon as possible.
8911         Use the same log introduction as configure's.
8913 2001-08-22  Paul Eggert  <eggert@twinsun.com>
8915         * doc/autoconf.texi (Indices): New node.
8916         Move indices out of the top level menu and into this submenu.
8918 2001-08-22  Akim Demaille  <akim@epita.fr>
8920         * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
8921         AC_TRY_COMMAND.
8922         (AC_DECL_YYTEXT): Fix the previous patch: it points to AC_PROG_LEX.
8924 2001-08-22  Akim Demaille  <akim@epita.fr>
8926         * lib/autoconf/general.m4 (AC_SHELL_PATH_WALK, AC_CHECK_PROG)
8927         (AC_CHECK_PROGS, AC_PATH_PROG, AC_PATH_PROGS, AC_CHECK_TOOL_PREFIX)
8928         (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS): Move to...
8929         * lib/autoconf/programs.m4: here.
8930         * lib/autoconf/specific.m4 (_AC_PROG_ECHO, AC_PROG_MAKE_SET)
8931         (AC_PROG_RANLIB, AC_PROG_YACC, AC_PROG_LEX, _AC_DECL_YYTEXT)
8932         (AC_PROG_INSTALL, AC_PROG_LN_S, AC_RSH): Move to...
8933         * lib/autoconf/programs.m4: here.
8934         (_AC_DECL_YYTEXT): Rename as...
8935         (_AC_PROG_LEX_YYTEXT_DECL): this.
8936         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am
8937         * tests/Makefile.am, tests/suite.am: Adjust.
8939 2001-08-22  Akim Demaille  <akim@epita.fr>
8941         * lib/autoconf/general.m4 (AC_LIST_MEMBER_OF, AC_LINKER_OPTION):
8942         Move to...
8943         * lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF, _AC_LINKER_OPTION):
8944         here.
8945         * lib/autoconf/general.m4 (AC_TRY_LINK_FUNC): Move to...
8946         * lib/autoconf/functions.m4: here.
8947         * lib/autoconf/general.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB)
8948         (AH_CHECK_LIB): Move to...
8949         * lib/autoconf/libs: this new file.
8950         * lib/autoconf/specific.m4 (_AC_PATH_X_XMKMF, _AC_PATH_X_DIRECT)
8951         (_AC_PATH_X, AC_PATH_X, AC_PATH_XTRA): Move to...
8952         * lib/autoconf/libs.m4: here.
8953         * lib/autoconf/autoconf.m4, lib/autoconf/Makefile.am: Adjust.
8955 2001-08-22  Akim Demaille  <akim@epita.fr>
8957         * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
8958         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
8959         (AC_SITE_LOAD): Better logging of config.site.
8961 2001-08-20  Akim Demaille  <akim@epita.fr>
8963         * configure.ac (AT_CONFIG): Fix the path.
8964         * m4/atconfig.m4 (AT_CONFIG): Don't use EOF but ATEOF so that 2.52
8965         can be used.
8967 2001-08-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
8969         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prepare the cross-compile
8970         program with AC_LANG_PROGRAM before feeding it to
8971         AC_COMPILE_IFELSE.  Cleanup grep usage.
8973 2001-08-20  Akim Demaille  <akim@epita.fr>
8975         * ChangeLog, ChangeLog.0, ChangeLog.1, ChangeLog.2, AUTHORS, BUGS,
8976         * NEWS, README, README-alpha, TODO, tests/README: This package is
8977         `Autoconf', not `autoconf' (the executable).
8979 2001-08-20  Akim Demaille  <akim@epita.fr>
8981         Info readers seem to need `Index' in the index node title :(
8983         * doc/autoconf.texi: Reverse the 2001-08-15 change which
8984         simplified index node names.
8986 2001-08-20  Akim Demaille  <akim@epita.fr>
8988         * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Warn if the
8989         arguments are not literals.
8990         * doc/autoconf.texi (Input) <AC_INIT>: Arguments must be literals.
8991         Specify the output variables, and macros defined.
8993 2001-08-20  Akim Demaille  <akim@epita.fr>
8995         * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
8996         (Examining Syntax) <AC_TRY_COMPILE>
8997         (Examining Libraries) <AC_TRY_LINK>
8998         (Test Programs) <AC_TRY_RUN>: These macros double quote some of
8999         their arguments.
9000         Reported by Werner Lemberg.
9002 2001-08-20  Akim Demaille  <akim@epita.fr>
9004         * lib/autotest/general.m4 (AT_INIT): Compute top_builddir,
9005         top_srcdir and srcdir from at_topbuild_2_topsrc and at_testdir.
9006         Load atlocal late enough to dump it in the log.
9007         * m4/atconfig.m4 (AT_CONFIG): Pass them to atconfig.
9009 2001-08-20  Akim Demaille  <akim@epita.fr>
9011         * tests/torture.at (Configuring subdirectories): New test.
9012         * lib/autoconf/general.m4 (_AC_INIT_SRCDIR): Say what you are
9013         looking for.
9014         * m4/atconfig.m4: Be sure the let $[0] be expandable.
9015         (top_srcdir): Fix its computation.
9017 2001-08-20  Akim Demaille  <akim@epita.fr>
9019         * lib/autoconf/general.m4 (_AC_OUTPUT_COMMANDS): Say what you do.
9020         * m4/atconfig.m4 (AT_CONFIG): $1 is now the directory where the
9021         test suite lives.
9022         Create `atconfig' automagically.
9023         Configure atlocal.in if present.
9024         * tests/atconfig.in: Remove.
9025         * tests/atlocal.in: New.
9026         * tests/Makefile.am: Adjust.
9028 2001-08-20  Akim Demaille  <akim@epita.fr>
9030         Huh!?!?!  There are still some user EOF tags used, which prevents
9031         their use in AC_CONFIG_COMMANDS for instance...
9033         * lib/autoconf/general.m4, lib/autoconf/specific.m4,
9034         * lib/autotest/general.m4: Rename the EOF tags as `_ACEOF',
9035         `_CSEOF', or `_ATEOF', as appropriate.
9036         * lib/m4sugar/Makefile.am, lib/autoconf/Makefile.am,
9037         * lib/autotest/Makefile.am (check-local): Enforce this constraint.
9039 2001-08-20  Akim Demaille  <akim@epita.fr>
9041         * tests/base.at, tests/m4sh.at, tests/m4sugar.at,
9042         * tests/semantics.at, tests/tools.at, tests/torture.at:
9043         s/^AT_DATA\(([^][]+),/AT_DATA([$1],/.
9045 2001-08-20  Akim Demaille  <akim@epita.fr>
9047         Autotest invokes M4sh's initialization.
9049         * lib/autotest/general.m4: Adjust the diversion names.
9050         (AT_INIT): Run AS_INIT.
9051         Use the BINSH diversion to invoke /bin/sh.
9052         * tests/base.at, tests/m4sh.at, tests/m4sugar.at, tests/tools.at:
9053         * tests/torture.at: Respect M4sugar and M4sh macro name spaces.
9055 2001-08-20  Akim Demaille  <akim@epita.fr>
9057         Let M4sh have its own diversions.
9059         * lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
9060         (_m4_divert(NOTICE)): Rename as...
9061         * lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
9062         (_m4_divert(HEADER-COMMENT)): these.
9063         (_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
9064         (_m4_divert(NOTICE)): New, for Libtool.
9065         * lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
9066         long ago with `_m4_divert(GROW)'.
9067         (AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.
9069 2001-08-20  Akim Demaille  <akim@epita.fr>
9071         * tests/base.at, tests/compile.at, tests/foreign.at,
9072         * tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
9073         * tests/semantics.at, tests/suite.at, tests/tools.at,
9074         * tests/torture.at: Ask Autotest mode, not Autoconf mode.
9076 2001-08-20  Akim Demaille  <akim@epita.fr>
9078         * bin/autom4te.in (handle_output): Handle @__@.
9080 2001-08-20  Akim Demaille  <akim@epita.fr>
9082         * lib/autoconf/autoconf.m4, lib/autoconf/oldnames.m4,
9083         * lib/autotest/general.m4: Adjust the license.
9085 2001-08-17  Paul Eggert  <eggert@twinsun.com>
9087         * doc/autoconf.texi (Function Portability): Mention snprintf,
9088         following up on a suggestion by Kevin Ryde.
9090 2001-08-17  Akim Demaille  <akim@epita.fr>
9092         * doc/install.texi, doc/autoconf.texi: Use `autoconf', not
9093         `autoconf_manual', as texinfo.tex 2001-06-21.10 chokes on it.
9095 2001-08-17  Akim Demaille  <akim@epita.fr>
9097         * lib/autotest/general.m4 (AT_INIT): Refer to `$as_me.log', not
9098         `$0.log' as for projects where testsuite is in src, we'd have
9099         testsuite.log created in src.
9101 2001-08-17  Akim Demaille  <akim@epita.fr>
9103         * bin/autom4te.in (&parse_args): Recognize --normalize.
9105 2001-08-17  Akim Demaille  <akim@epita.fr>
9107         Start implementing the AC_CHECK_HEADER transition scheme.
9109         * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
9110         (_AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_MONGREL): New.
9111         (AC_CHECK_HEADER): Use them.
9113 2001-08-17  Akim Demaille  <akim@epita.fr>
9115         * doc/autoconf.texi: Work around Texinfo buglets.
9116         (Transformation Rules): One example is enough, users are expected
9117         to have their brains on. And BTW, use DESTDIR.
9118         (dvar): New macro.  Use it.
9120 2001-08-17  Akim Demaille  <akim@epita.fr>
9122         * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
9123         * lib/autotest/general.m4 (AT_INIT): Use the relative dir when
9124         looking for ChangeLogs.
9126 2001-08-17  Akim Demaille  <akim@epita.fr>
9128         * bin/autom4te.in: --normalize is a new option.
9129         * bin/autoconf.in: Use it.
9131 2001-08-17  Akim Demaille  <akim@epita.fr>
9133         * bin/Makefile.am, lib/Autom4te/Makefile.am, lib/autoconf/Makefile.am
9134         * lib/autotest/Makefile.am, lib/m4sugar/Makefile.am: Add TAGS support.
9136 2001-08-16  Paul Eggert  <eggert@twinsun.com>
9138         * doc/autoconf.texi, doc/install.texi: Put copyright notice at
9139         start, not at end.
9141 2001-08-15  Akim Demaille  <akim@epita.fr>
9143         * doc/Makefile.am (fu): New index, can't use fn because of defmac.
9144         Use it.
9146 2001-08-15  Akim Demaille  <akim@epita.fr>
9148         * doc/autoconf.texi (pr): New index.
9149         (prindex, findex): Use, merge, and output them.
9150         (Environment Variable Index, Output Variable Index)
9151         (Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
9152         (Autotest Macro Index): Rename as...
9153         (Environment Variables, Output Variables,Preprocessor Symbols)
9154         (Autoconf Macros, M4 Macros, Autotest Macros): these.
9155         * doc/install.texi: Use @command.
9156         (Environment Variables): Rename as...
9157         (Defining Variables): this.
9159 2001-08-15  Akim Demaille  <akim@epita.fr>
9161         * doc/autoconf.texi (Function Portability): sprintf's return
9162         value.
9163         From Kevin Ryde.
9165 2001-08-15  Akim Demaille  <akim@epita.fr>
9167         * Makefile.maint (CVS): New.
9168         (local-check): Run changelog-check. last.
9169         (alpha): Don't depend upon local-check, since...
9170         (cvs-dist): depends upon it.
9172 2001-08-15  Tim Van Holder  <tim.van.holder@pandora.be>
9174         * tests/Makefile.am: Use a clean-local rule to remove
9175         autom4te.cache (it's a directory, not a file.
9176         * Makefile.am: Ditto (but maintainer-clean-local).
9178 2001-08-15  Akim Demaille  <akim@epita.fr>
9180         * bin/autom4te.in (@m4_warning): New.
9181         (&handle_m4): Use it.
9182         * tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
9183         warnings are issued at each run.
9184         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
9185         is in the src tree.
9187 2001-08-15  Akim Demaille  <akim@epita.fr>
9189         * tests/atspecific.m4 (AT_CHECK_AUTOUPDATE): Perl is now required:
9190         don't waste time running `autoupdate --version' works.
9191         * tests/tools.at (autoupdating AC_PREREQ): Likewise.
9193 2001-08-13  Akim Demaille  <akim@epita.fr>
9195         * doc/autoconf.texi (ma): Rename this index as...
9196         (ac): this.
9198 2001-08-13  Akim Demaille  <akim@epita.fr>
9200         * Makefile.am: Remove dead code and dead comments.
9201         (pdf, html): New targets.
9202         * doc/autoconf.texi (Using Autotest): New chapter.
9203         * doc/Makefile.am (pdf): New targets.
9204         (CLEANFILES): Adjust.
9206 2001-08-13  Akim Demaille  <akim@epita.fr>
9208         * lib/autotest/general.m4 (AT_INIT): Log the start/stop dates and
9209         duration of the test suite.
9211 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
9213         * tests/semantics.at (AC_C_BIGENDIAN): Explicitelly save and load
9214         endianness for comparison instead of relying on AT_CHECK_ENV.
9216 2001-08-11  Paul Eggert  <eggert@twinsun.com>
9218         * doc/autoconf.texi, doc/install.texi: Add a copyright notice
9219         to the INSTALL file.
9221 2001-08-11  Paul Eggert  <eggert@twinsun.com>
9223         * NEWS: The autoconf manual now is distributed under the terms
9224         of the GNU Free Documentation License.
9226         * doc/autoconf.texi: Switch from old style copyright notice to FDL.
9227         Add an appendix "Copying This Manual" for the FDL.
9229         * doc/fdl.texi: New file, from
9230         <http://www.gnu.org/licenses/fdl.texi>.
9232         * doc/Makefile.am (autoconf_TEXINFOS): Add fdl.texi.
9234 2001-08-10  Paul Eggert  <eggert@twinsun.com>
9236         * AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
9237         ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
9238         README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
9239         m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
9240         m4/sanity.m4, tests/README, tests/aclocal.m4,
9241         tests/atspecific.m4, tests/base.at, tests/compile.at,
9242         tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
9243         tests/semantics.at, tests/suite.at, tests/tools.at,
9244         tests/torture.at: Add copyright notice.
9246         * tests/mktests.sh: Update year in copyright notice.
9248 2001-08-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
9250         * tests/semantics.at (AC_C_BIGENDIAN): New test.
9252 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
9254         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Handle ACTION-IF-TRUE,
9255         ACTION-IF-FALSE, and ACTION-IF-UNKNOWN.
9256         * doc/autoconf.texi (C Compiler Characteristics): Update
9257         documentation for AC_C_BIGENDIAN.
9259 2001-08-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
9261         * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
9262         magic values from an object file when cross-compiling.
9263         Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
9265 2001-08-10  Akim Demaille  <akim@epita.fr>
9267         * bin/autom4te.in (&handle_output): Don't use `grep' with side
9268         effects.
9269         Suggested by Russ Allbery.
9271 2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
9273         * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
9274         current $prefix to the sub-configures.
9276 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
9278         * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
9279         extension (needed on BeOS).  Reported by Guido van Rossum.
9281 2001-08-09  Akim Demaille  <akim@epita.fr>
9283         * bin/autom4te.in ($icache): Load it only if older than autom4te.
9285 2001-08-07  Akim Demaille  <akim@epita.fr>
9287         * lib/autotest/general.m4 (AT_INIT): All the `at-*' are to be
9288         removed.
9289         (at-setup-line): Huh?  Be a variable `at_setup_line', not a file.
9290         No need to remove the files before and after the each test, before
9291         each test and at the end of the suite is enough.
9292         Display only the children `times', not the shell's.
9293         If the test failed or was skipped, at-times is not available.
9295 2001-08-07  Akim Demaille  <akim@epita.fr>
9297         Always produce testsuite.log, including when there are no
9298         failures.  This helps getting information on skipped tests, and
9299         duration of the tests.  Err, implement the latter btw.
9301         * lib/autotest/general.m4 (AT_INIT): Set up fd 6 for the log.
9302         Dump information on the first run of each test.
9303         (AT_CLEANUP): Create `at-times' containing the duration of the
9304         test group.
9306 2001-08-07  Akim Demaille  <akim@epita.fr>
9308         The use of `dumpstat' revealed that `len' was used although it
9309         should not.  m4_text_wrap was using it, but in the Autoconf world
9310         where it is legal.  Hence (i) test M4sh in its own world, not
9311         Autoconf's, and (ii), ahem, fix the bug :)
9313         * lib/autotest/general.m4: Be sure the set good quotes, as tracing
9314         does not like `' instead of [].
9315         (AT_INIT): Forbid `^_?AT_'.
9316         And don't output such tokens.
9317         * tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
9318         `script.as', and `autom4te.cache'.
9319         Remove `empty' and `macro' which are no longer used.
9320         * tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
9321         * tests/m4sugar.at: Use it.
9322         * lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
9324 2001-08-07  Akim Demaille  <akim@epita.fr>
9326         * bin/autoconf.in, bin/autoheader.in: --force, -f is a new option.
9328 2001-08-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
9330         * bin/autom4te.in (handle_output): Typo in quadrigraph substitution.
9332 2001-08-04  Akim Demaille  <akim@epita.fr>
9334         * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE)
9335         (AC_FUNC_FSEEKO, AC_FUNC_OBSTACK): Use AC_LANG_IFELSE, not
9336         AC_TRY_LINK.
9337         * lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Likewise.
9338         * lib/autoconf/fortran.m4 (_AC_LANG_PROGRAM_C_F77_HOOKS)
9339         (AC_F77_MAIN): Likewise.
9341 2001-08-04  Akim Demaille  <akim@epita.fr>
9343         Don't rely on M4sugar outputting the patterns in files, since we
9344         might process the output _without_ running m4, hence without these
9345         files.
9347         * lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
9348         * bin/autom4te.in (@Request::includes): Remove, unused.
9349         (@Request::source): Rename as...
9350         (@Request::input): this.
9351         (@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
9352         (&handle_output): Fetch the patterns from the traces.
9353         `$forbidden' and `$allowed' are constant: use m//o.
9354         (&handle_m4): M4sugar no longer wants `m4_tmpdir'.
9355         (m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.
9357 2001-08-04  Akim Demaille  <akim@epita.fr>
9359         `autoconf && autoheader' is sped up.  Now, speed up `autoheader &&
9360         autoconf', i.e., in addition to caching traces, cache the output.
9362         * bin/autom4te.in (Request::cache): Rename as...
9363         (Request::id): this.
9364         ($cache, $icache, $tcache, $ocache): New.
9365         (&handle_m4): Save M4 output in the cache instead of $tmp.
9366         (&handle_output): Adjust.
9367         (&up_to_date_p): Check that the output cache is up to date too.
9368         (top level): Run `&handle_m4' iff force or the cache is invalid.
9369         Run `&handle_output' if the output cache is more recent.
9371 2001-08-04  Akim Demaille  <akim@epita.fr>
9373         * bin/autom4te.in ($force): New.
9374         (&parse_args, &print_usage): -f, --force is a new option.
9375         (&handle_output): CPP directives might have spaces after `#'.
9376         (&parse_args): The first file only can be frozen.
9378 2001-08-04  Akim Demaille  <akim@epita.fr>
9380         Don't let autom4te compute the `include' traces several times:
9381         first check that the trace cache file is up to date, and then
9382         compare its timestamp with that of the output.
9384         * bin/autom4te.in, bin/autoupdate.in, bin/autoscan.in: Normalize
9385         the preamble.  Don't require 5.005 as Autom4te::General does it,
9386         and better yet (use `use', not `require'!).
9387         * lib/Autom4te/Struct.pm: Rename the last occurrences of
9388         Class::Struct as Autom4te::Struct.
9389         * lib/Autom4te/General.pm (File::stat): Use it.
9390         (&mtime): New, export it.
9391         * bin/autom4te.in: Use it.
9392         Declare `$req' is invalid if it is outdated.
9393         Don't declare it valid before saving it if something went wrong.
9395 2001-08-04  Akim Demaille  <akim@epita.fr>
9397         Autom4te shall not encode Autoconf data, and preselecting traces
9398         must be proposed to the users.
9400         * bin/autom4te.in (@required_trace): Remove.
9401         (@preselect): New.
9402         (&parse_args, &print_usage): -p, --preselect is a new option.
9403         (&up_to_date_p): Adjust.
9404         * bin/autoconf.in: Preselect some Autoconf macros.
9406 2001-08-04  Akim Demaille  <akim@epita.fr>
9408         * tests/tools.at (autoconf --trace: user macros): Check traces on
9409         macros invoked without arguments, and macros invoked with multiple
9410         lines arguments.
9412 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
9414         * bin/autom4te.in (handle_traces): Fix rewriting of traces without
9415         arguments.
9417 2001-08-03  Akim Demaille  <akim@epita.fr>
9419         * bin/autoconf.in ($@): Work around the usual sh bug.
9420         From Nicolas Joly.
9422 2001-08-03  Akim Demaille  <akim@epita.fr>
9424         Clean up the handling of the M4 builtins tracing exception.
9426         * bin/autom4te.in (Request::request): Don't complete M4 builtins
9427         trace requests.
9428         (@m4_builtins): Rename as...
9429         (@m4_builtin): this.
9430         (%m4_builtin_alternate_name): New.
9431         (&parse_args): Complete the trace requests with alternate names.
9432         (&handle_traces): Hence no longer do it here.
9433         (&trace_requests): Remove, unused.
9435 2001-08-03  Akim Demaille  <akim@epita.fr>
9437         * doc/autoconf.texi (Redefined M4 Macros): Document m4_exit,
9438         m4_if, and m4_wrap.
9440 2001-08-03  Akim Demaille  <akim@epita.fr>
9442         * lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
9443         (m4_divert_pop): Dump the whole diversion stack when a diversion
9444         mismatch happens.
9445         * bin/autom4te.in (&handle_output): Remember of the first
9446         occurrence of a possibly undefined macro, not the last.
9447         Complain about the possibly undefined macros in the same order as
9448         the appear in the output.
9449         * lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
9450         * tests/tools.at (autoconf: forbidden tokens, basic)
9451         (autoconf: forbidden tokens, exceptions): No longer sort
9452         autoconf's stderr, as it is now deterministic.
9453         Check that `dnl' is caught.
9455 2001-08-01  Akim Demaille  <akim@epita.fr>
9457         * configure.ac: Bump to 2.52c.
9459 2001-08-01  Akim Demaille  <akim@epita.fr>
9461         Version 2.52b.
9463         * lib/Autom4te/Makefile.am (perllibdir): s/Autoconf/Autom4te/.
9465 2001-08-01  Akim Demaille  <akim@epita.fr>
9467         Version 2.52a.
9469 2001-08-01  Akim Demaille  <akim@epita.fr>
9471         * lib/Autom4te/General.pm: Use `carp' and `croak', not `warn' and
9472         `die'.
9473         (&END): New.
9474         * bin/autoconf.in, bin/autom4te.in, bin/autoupdate.in: Remove your
9475         `END', as `Autom4te::General::END' will be triggered.
9476         * bin/autoupdate.in, bin/autoscan.in: Improve error messages accuracy.
9477         * bin/autoupdate.in (File::Compare, File::Copy): Use them instead of
9478         system to run `mv', `rm', and `cmp'.
9480 2001-08-01  Akim Demaille  <akim@epita.fr>
9482         * lib/Autom4te/General.pm (&unique): New.
9483         * bin/autoscan.in (&output): Use it to issue trace requests once.
9485 2001-08-01  Akim Demaille  <akim@epita.fr>
9487         * lib/Autom4te/General.pm: New.
9488         * bin/autom4te.in (Autom4te::General): Use it.
9489         ($me, $tmp, $verbose, $debug, &mktmpdir, &verbose, &xsystem)
9490         (&find_configure_ac, &find_slave): Remove.
9491         * bin/autoscan.in: Likewise.
9492         * bin/autoupdate.in: Likewise.
9494 2001-08-01  Akim Demaille  <akim@epita.fr>
9496         * autoconf.in, autom4te.in, autoscan.in, ifnames.in,
9497         * autoheader.in, autoreconf.in, autoupdate.in: Move to...
9498         * bin: here, new directory.
9499         * lib/Autoconf: Rename as...
9500         * lib/Autom4te: this, to please case insensitive junkie OSes.
9502 2001-08-01  Akim Demaille  <akim@epita.fr>
9504         * autom4te.in ($m4): Handle the --nesting-limit.
9505         * autoconf.in (M4): Remove.
9507 2001-08-01  Akim Demaille  <akim@epita.fr>
9509         * autoconf.in ($AWK): Remove, no longer used.
9510         * test/tools.at: Use AT_CHECK_AUTOCONF.
9511         (AWK portability): Remove, for autoconf no longer uses AWK.
9512         (Syntax of the Perl scripts): New.
9513         * configure.ac: autoconf no longer needs an AWK with a good
9514         regexp engine.
9515         Use a static test on AC_PACKAGE_VERSION.
9516         * autom4te.in (&up_to_date_p): Output depends on the arguments.
9517         * lib/autoconf/Makefile.am: Ship version.m4, maintainer file.
9518         * tests/atconfig.in (PERL): New.
9520 2001-08-01  Akim Demaille  <akim@epita.fr>
9522         * lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
9523         (AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
9524         (AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
9525         (AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
9526         (AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
9527         (AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
9528         (AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
9529         (AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
9530         (AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
9531         (AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
9532         (AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
9533         (AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
9534         (AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
9535         * lib/autoconf/c.m4: here, new file.
9537         * lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
9538         (_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
9539         (AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
9540         (AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
9541         (ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
9542         (_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
9543         (AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
9544         (_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
9545         (AC_F77_FUNC): Move to...
9546         * lib/autoconf/fortran.m4: here, new file.
9548 2001-08-01  Akim Demaille  <akim@epita.fr>
9550         * acfunctions.m4: Rename as...
9551         * lib/autoconf/functions.m4: this.
9552         * acgeneral.m4: Rename as...
9553         * lib/autoconf/general.m4: this.
9554         * acheaders.m4: Rename as...
9555         * lib/autoconf/headers.m4: this.
9556         * aclang.m4: Rename as...
9557         * lib/autoconf/lang.m4: this.
9558         * acoldnames.m4: Rename as...
9559         * lib/autoconf/oldnames.m4: this.
9560         * acspecific.m4: Rename as...
9561         * lib/autoconf/specific.m4: this.
9562         * actypes.m4: Rename as...
9563         * lib/autoconf/types.m4: this.
9564         * autoconf.m4: Rename as...
9565         * lib/autoconf/autoconf.m4: this.
9567         * m4sugar.m4: Rename as...
9568         * lib/m4sugar/m4sugar.m4: this.
9569         * m4sh.m4: Rename as...
9570         * lib/m4sugar/m4sh.m4: this.
9572         * tests/atgeneral.m4: Rename as...
9573         * lib/autotest/general.m4: this.
9575         * acfunctions: Rename as...
9576         * lib/autoscan/functions: this.
9577         * acheaders: Rename as...
9578         * lib/autoscan/headers: this.
9579         * acidentifiers: Rename as...
9580         * lib/autoscan/identifiers: this.
9581         * aclibraries: Rename as...
9582         * lib/autoscan/libraries: this.
9583         * acmakevars: Rename as...
9584         * lib/autoscan/makevars: this.
9585         * acprograms: Rename as...
9586         * lib/autoscan/programs: this.
9588 2001-08-01  Akim Demaille  <akim@epita.fr>
9590         * doc/autoconf.texi: Moving/deleting open files is not portable.
9591         Portability issues for `.' (source), and more information about sed.
9593 2001-07-25  Steven G. Johnson  <stevenj@alum.mit.edu>
9595         * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Ignore -libmil (on Solaris),
9596         which has a special meaning and is not a reference to libibmil.a.
9597         Reported by Matteo Frigo.
9599 2001-07-25  Pavel Roskin  <proski@gnu.org>
9601         * autom4te.in (mktmpdir): Strip trailing newline from mktemp
9602         output.
9604 2001-07-25  Akim Demaille  <akim@epita.fr>
9606         * autoconf.in: Try to define the variables before using them.
9607         * autom4te.in ($perllibdir): Use `$autom4te_perllibdir' as envvar
9608         instead of `$perllibdir'.
9609         * tests/atconfig.in ($autom4te_perllibdir): Export it.
9611 2001-07-25  Akim Demaille  <akim@epita.fr>
9613         * autoconf.in (ac_LF_and_DOT): Remove, unused.
9615 2001-07-24  Akim Demaille  <akim@epita.fr>
9617         Let autoconf use autom4te for traces.
9619         * autoconf.in ($task, task trace): Remove, merely pass --trace to
9620         autom4te.
9621         * autoheader.in: Don't pass `-' to autoconf, rather, a tmp file.
9622         (Because I found no way for autom4te to accept `-').
9623         * autom4te.in (&Request::request): Beware of M4 builtins.
9624         (END): Don't try to remove the content of an empty dir.
9625         (&parse_args): Default is `$f:$l:$n:$%', not `$f:$l:$n:$*'.
9626         (&handle_output): Set a default value to `$forbidden'.
9627         * autoupdate.in (&verbose, &xsystem): New, from autom4te.in.
9628         ($autoconf): Pass --debug and --verbose.
9629         * tests/atspecific.m4 (AT_CHECK_AUTOCONF): Clean up autom4te's
9630         cache.
9632 2001-07-24  Akim Demaille  <akim@epita.fr>
9634         Let autoconf use autom4te to create configure.
9636         * autoconf.in ($automate): New var.
9637         (task script): Use autom4te.
9638         * autom4te.in (File::Spec): Use it.
9639         (&find_file): New.
9640         (&parse_args): --warning is -W, not -w.
9641         Find the top level files.
9642         (&handle_m4): Pass the warnings flags.
9643         Don't report verbosely m4's failures, unless requested.
9644         (&handle_output): Don't complain for forbidden tokens in comments.
9645         Be sure to report all the forbidden tokens within a single line.
9646         (&trace_format_to_m4): Preserve `$_'.
9647         (&handle_traces): Sort the output macros.
9648         (&up_to_date_p): Find the files before trying to get its time stamp.
9650 2001-07-24  Akim Demaille  <akim@epita.fr>
9652         * Makefile.am: Ship, build and install Autom4te.
9653         (SUBDIRS): Add lib.
9654         * lib/Autoconf/Struct.pm: New, from Automake 1.5.
9655         * configure.in: Require Perl.
9656         * man/autom4te.in: New.
9658 2001-07-19  Paul Eggert  <eggert@twinsun.com>
9660         * doc/autoconf.texi (Cache Checkpointing): Use AC_MSG_ERROR in
9661         example, rather than (exit 1); exit (which isn't portable).
9663 2001-07-18  Akim Demaille  <akim@epita.fr>
9665         Version 2.52.
9667 2001-07-18  Akim Demaille  <akim@epita.fr>
9669         The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
9670         was run, while they are needed also when it is expanded.
9671         Reported by Nicolas Joly.
9673         * aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
9674         (AC_LANG_PROGRAM(C)): Use it instead of depending upon
9675         AC_F77_DUMMY_MAIN being expanded.
9677 2001-07-18  Akim Demaille  <akim@epita.fr>
9679         * configure.in: Bump to 2.51a.
9681 2001-07-17  Akim Demaille  <akim@epita.fr>
9683         Version 2.51.
9685 2001-07-17  Akim Demaille  <akim@epita.fr>
9687         * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
9688         Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
9690 2001-07-17  Akim Demaille  <akim@epita.fr>
9692         The runtime test for AC_FUNC_GETPGRP fails when prototypes are
9693         used.  Well, then use the prototypes when you can, and runtime as
9694         a last resort.
9695         Reported by Artur Frysiak
9697         * acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
9698         (AC_FUNC_GETPGRP): Use it.
9699         First try to compile with 0-ary or 1-ary calls.
9701 2001-07-17  Akim Demaille  <akim@epita.fr>
9703         * actypes.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P): `foo_t' is a
9704         replacement type.
9705         From Paul Eggert.
9707 2001-07-17  Akim Demaille  <akim@epita.fr>
9709         * Makefile.maint: Sync. with cppi 1.10.
9711 2001-07-17  Akim Demaille  <akim@epita.fr>
9713         * aclang.m4 (AC_LANG_PROGRAM(C)): Output F77_DUMMY_MAIN only when
9714         AC_F77_DUMMY_MAIN has been run.
9715         From Pavel Roskin and Steven G. Johnson.
9717 2001-07-17  Akim Demaille  <akim@epita.fr>
9719         * configure.in: Rename as...
9720         * configure.ac: this.
9722 2001-07-17  Akim Demaille  <akim@epita.fr>
9724         * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
9725         rules.
9726         From Marc Espie.
9727         * Makefile.maint (release-archive-dir): Rename as...
9728         (release_archive_dir): this, so that it can be specialized in
9729         Makefile.
9731 2001-07-14  Akim Demaille  <akim@epita.fr>
9733         * configure.in: Bump to 2.50d.
9735 2001-07-14  Akim Demaille  <akim@epita.fr>
9737         Version 2.50c.
9738         * Makefile.maint (alpha): Typo.
9740 2001-07-14  Akim Demaille  <akim@epita.fr>
9742         * doc/autoconf.texi (Limitations of Make): Macro names and underscore.
9744 2001-07-14  Akim Demaille  <akim@epita.fr>
9746         * config/config.guess, config/config.sub, config/texinfo.tex
9747         * doc/standards.texi, doc/make-stds.texi: Update.
9749 2001-07-14  Akim Demaille  <akim@epita.fr>
9751         * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
9753 2001-07-14  Akim Demaille  <akim@epita.fr>
9755         * Makefile.maint (maintainer-check): Rename as...
9756         (maintainer-distcheck): this.
9757         (changelog-check, static-check): New.
9758         Use them.
9760 2001-07-14  Kevin Ryde  <user42@zip.com.au>
9762         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
9763         for CXX is g++, not gcc.
9765 2001-07-14  Akim Demaille  <akim@epita.fr>
9767         * doc/autoconf.texi (Files): New subsection.
9769 2001-07-14  Akim Demaille  <akim@epita.fr>
9771         * doc/autoconf.texi (C Compiler, Fortran 77 Compiler): Be subsections
9772         of...
9773         (Generic Compiler Characteristics): this.
9774         (C++ Compiler): New subsection.
9776 2001-07-14  Akim Demaille  <akim@epita.fr>
9778         * autoscan.in: Use IO::File.
9779         Adjust all the routines to use it.
9780         ($log): New file (autoscan.log).
9781         (output): Dump detailed logs into $log, and a shortened version to
9782         stderr.
9783         (&scan_makefile): Refine the regexp catching tokens in the code.
9784         * doc/autoconf.texi (autoscan Invocation): Document `autoscan.log'
9785         and the `configure.ac' checking feature.
9787 2001-07-12  Akim Demaille  <akim@epita.fr>
9789         For some AWK, such as on HPUX 11, `xfoo' does not match `foo|^bar'.
9790         Reported by Michael Elizabeth Chastain.
9792         * autoconf.in: Refuse such AWK.
9793         * configure.in: Likewise.
9794         * Makefile.am (acversion.m4): Do not use move-if-change this file
9795         has dependencies.
9796         * doc/autoconf.texi (Fortran 77 Compiler): Some typos.
9798 2001-07-10  Jens Petersen  <petersen@redhat.com>
9800         * autoscan.in (&scan_makefile): Improve programs regexp to parse
9801         things like "g++", "file.c" and "some-conf" as tokens.
9802         (&scan_file): Match C++ files extensions.
9803         If the filename extension is C++ then ask for c++.
9805 2001-07-05  Steven G. Johnson  <stevenj@alum.mit.edu>
9807         * aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
9808         AC_TRY_LINK_FUNC, to check whether defining a dummy
9809         main-like routine is needed for linking with F77 libs.
9811 2001-07-05  Pavel Roskin  <proski@gnu.org>
9813         * aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
9814         after using break.
9815         (_AC_PROG_F77_V_OUTPUT): Remove conftest*, not conftest.* after
9816         linking.
9818 2001-07-05  Akim Demaille  <akim@epita.fr>
9820         * Makefile.am (move_if_change): New.  Use it instead of `mv'.
9821         (acversion.m4): Name it `$(srcdir)/acversion.m4' to ease broken
9822         Makes' lives.
9823         Reported by Nicolas Joly.
9825 2001-07-04  Akim Demaille  <akim@epita.fr>
9827         * acgeneral.m4 (_AC_RUN_IFELSE): Remove conftest.o when cleaning
9828         up.
9829         * acfunctions.m4 (AC_FUNC_WAIT3): Use `break' to silent some
9830         warnings from compilers.
9831         * aclang.m4 (_AC_LANG_COMPILER_GNU): Log the version information
9832         for all the compilers, not only GNU.  Hence move from here...
9833         (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): to here.
9835 2001-07-04  Akim Demaille  <akim@epita.fr>
9837         * acfunctions.m4 (AC_FUNC_STRTOD, AC_FUNC_STRERROR_R)
9838         (AC_FUNC_STRCOLL, AC_FUNC_WAIT3): Use AC_RUN_IFELSE and
9839         AC_COMPILE_IFELSE.
9841 2001-07-04  Akim Demaille  <akim@epita.fr>
9843         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Actually apply
9844         the ``strings.h'' change claimed below.
9846 2001-07-04  Akim Demaille  <akim@epita.fr>
9848         * aclang.m4 (_AC_LANG_COMPILER_GNU): s/-dumpspecs/-v/.
9850 2001-07-04  Akim Demaille  <akim@epita.fr>
9852         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
9853         strings.h if usable with string.h.
9854         Suggested by Paul Eggert.
9856 2001-07-04  Akim Demaille  <akim@epita.fr>
9858         * autoscan.in (&scan_file): Skip FILE if there is FILE.in.
9859         From Jens Petersen.
9861 2001-07-03  Akim Demaille  <akim@epita.fr>
9863         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Specify CONFIG_FILES
9864         etc. in the log.
9866 2001-07-03  Akim Demaille  <akim@epita.fr>
9868         * acheaders.m4 (AC_CHECK_HEADER): When INCLUDES are set, use the
9869         compiler, not the preprocessor.
9870         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): No longer use
9871         dedicated code to check for inttypes.h, as AC_CHECK_HEADERS does
9872         the right thing.
9873         * Makefile.am (.m4.m4f): Emphasize M4 error messages and fail
9874         earlier if there are.
9876 2001-07-03  Akim Demaille  <akim@epita.fr>
9878         * autoscan.in ($initfile): Remove.
9879         (&find_file): Rename as...
9880         (&scan_file): this.
9881         Immediately scan the current file, instead of gathering them, and
9882         later having them handled by &scan_files.
9883         (&scan_files): Merely invoke Find::File.
9884         Adjust.
9886 2001-07-02  Akim Demaille  <akim@epita.fr>
9888         * autoscan.in: Formatting changes, matching the invocation order.
9889         (File::Find): Use it instead of Perl 4's `find.pl'.
9890         (&wanted): Rename as...
9891         (&find_file): this.
9893 2001-07-01  Pavel Roskin  <proski@gnu.org>
9895         * aclang.m4 (AC_F77_DUMMY_MAIN): Remove conftest* after using
9896         break in the argument to AC_TRY_LINK_FUNC.
9897         (AC_F77_MAIN): Remove conftest* after using break in the
9898         argument to AC_TRY_LINK.
9900 2001-07-01  Steven G. Johnson  <stevenj@alum.mit.edu>
9902         Add alternate 'main' routine detection for linking C/C++ with Fortran,
9903         fixing link failures for e.g. AC_F77_WRAPPERS on NetBSD.
9905         * aclang.m4 (AC_F77_DUMMY_MAIN): New macro to detect whether a
9906         dummy alternate main is required even if the user provides her own
9907         'main'.
9908         (AC_F77_MAIN): New macro to detect whether it is possible to
9909         provide an alternate 'main' function name, using the 'main' from
9910         the Fortran libraries.
9911         (AC_LANG_PROGRAM(C)): Use F77_DUMMY_MAIN, if it is defined, so that
9912         cross-language link tests can be performed successfully.
9913         (_AC_F77_NAME_MANGLING): Require AC_F77_DUMMY_MAIN.  Also put $FLIBS
9914         after $LIBS, for consistency; this should be the general rule since
9915         the user may want to link to Fortran libraries that require $FLIBS.
9916         * doc/autoconf.texi: Document AC_F77_DUMMY_MAIN and AC_F77_MAIN.
9918 2001-06-29  Pavel Roskin  <proski@gnu.org>
9920         * atgeneral.m4 (AT_CHECK): Add a newline to the end of
9921         at-stdout and at-stderr instead of removing the newline
9922         from the echo output, which is not guaranteed to work.
9924 2001-06-28  Jens Petersen  <petersen@redhat.com>
9926         * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
9927         confdefs.h when non-zero.
9929 2001-06-28  Akim Demaille  <akim@epita.fr>
9931         * configure.in: Bump to 2.50c.
9933 2001-06-26  Akim Demaille  <akim@epita.fr>
9935         Version 2.50b.
9937 2001-06-26  Akim Demaille  <akim@epita.fr>
9939         Version 2.50a.
9941 2001-06-25  Pavel Roskin  <proski@gnu.org>
9943         * tests/atspecific.m4 (AT_CHECK_MACRO): Accept one more
9944         argument, AUTOCONF-FLAGS.
9945         * tests/mktests.sh (update_exclude_list): Add
9946         AC_SYS_RESTARTABLE_SYSCALLS and AC_FUNC_WAIT3.
9947         * tests/semantics.at: Test AC_SYS_RESTARTABLE_SYSCALLS and
9948         AC_FUNC_WAIT3 with "-W no-obsolete".
9950 2001-06-25  Akim Demaille  <akim@epita.fr>
9952         * tests/foreign.at (libtool): Fix the `libtoolize --version' decoding.
9954 2001-06-25  Akim Demaille  <akim@epita.fr>
9956         * autoscan.in (%macro): Now maps from word to list of macros.
9957         (&init_tables): Die when a word which is already handled by
9958         explicit macros is mapped to the default macro.
9959         (&print_unique): Remove, inlined in...
9960         (&output_kind): here.
9961         (File::Basename): Use it.
9962         (&output): Sort the CONFIG_FILES.
9963         * acheaders: Normalize.
9964         * acfunctions: Likewise.
9966 2001-06-25  Akim Demaille  <akim@epita.fr>
9968         * aclang.m4 (_AC_LANG_COMPILER_GNU): If GNU, dump the compiler
9969         characteristics in the logs.
9970         Suggested by Mo DeJong.
9972 2001-06-24  Akim Demaille  <akim@epita.fr>
9974         * acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH)
9975         (AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Reactivated.
9976         * doc/autoconf.texi (Autoconf 2.13): New section.
9978 2001-06-24  Akim Demaille  <akim@epita.fr>
9980         * autoconf.in (Task traces): Separate the error messages from the
9981         traces to improve robustness.
9983 2001-06-23  Akim Demaille  <akim@epita.fr>
9985         * tests/torture.at (AC_ARG_VAR): Make it a single test instead of
9986         three as failures are unlikely, and speed matters.
9988 2001-06-23  Akim Demaille  <akim@epita.fr>
9990         * doc/autoconf.texi (Redefined M4 Macros): New.
9992 2001-06-23  Akim Demaille  <akim@epita.fr>
9994         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Consider
9995         inttypes.h is missing if it conflicts with sys/types.h, as on IRIX
9996         5.3.
9998 2001-06-23  Paolo Bonzini  <bonzini@gnu.org>
10000         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Defer parsing of
10001         config.status targets to after the evaluation of the INIT-CMDS.
10002         Double quote config.status targets (used to be single quoted).
10004 2001-06-23  Akim Demaille  <akim@epita.fr>
10006         * tests/torture.at (CONFIG_FILES, HEADERS, LINKS and COMMANDS):
10007         Check the content of the created file.
10008         Check the ./config.status command line invocation.
10010 2001-06-23  Akim Demaille  <akim@epita.fr>
10012         * tests/foreign.at (Libtool): Reject prehistoric versions.
10014 2001-06-23  Akim Demaille  <akim@epita.fr>
10016         * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Try to be robust to
10017         preexisting files matching a.*.
10019 2001-06-23  Akim Demaille  <akim@epita.fr>
10021         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Output error messages on
10022         stderr.
10023         * doc/autoconf.texi (AC_ARG_VAR): Update.
10025 2001-06-21  Akim Demaille  <akim@epita.fr>
10027         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Die instead of warning when
10028         precious variables have changed.
10029         * tests/torture.at (AC_ARG_VAR): Adjust.
10031 2001-06-21  Akim Demaille  <akim@epita.fr>
10033         ./configure --program-suffix=foo produces `transform=s,$$,foo,;',
10034         but some sed choke on multiple `;', and other tools (e.g.,
10035         Automake), include the separator themselves.
10037         * acgeneral.m4 (AC_ARG_VAR): Be sure not to leave extra `;'.
10039 2001-06-19  Tim Van Holder  <tim.van.holder@pandora.be>
10041         * doc/autoconf.texi (Functions Portability): Rename as...
10042         (Function Portability): this.
10043         (Function Portability): Document potential problems with unlink().
10045 2001-06-19  Paul Eggert  <eggert@twinsun.com>
10047         * NEWS, doc/autoconf.texi: Document quadrigraphs.
10049 2001-06-18  Akim Demaille  <akim@epita.fr>
10051         * acfunctions.m4 (AC_FUNC_FORK): Fix typos.
10053 2001-06-18  Ruediger Kuhlmann  <info@ruediger-kuhlmann.de>
10055         * acfunctions.m4: (AC_FUNC_VFORK) rename as...
10056         (_AC_FUNC_VFORK): this.
10057         Remove AC_DEFINEs and don't guess cross-compilation values.
10058         (_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
10059         (AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
10060         define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
10061         vfork doesn't work.
10062         Guess values if cross-compiling, but warn.
10063         * acfunctions: Add AC_FUNC_FORK.
10064         * doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
10065         and vfork appropriately.
10067 2001-06-18  Akim Demaille  <akim@epita.fr>
10069         * doc/autoconf.texi (Functions Portability): New section.
10071 2001-06-18  Akim Demaille  <akim@epita.fr>
10073         * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
10074         in $M4.
10075         Suggested by Andreas Schwab.
10077 2001-06-18  Akim Demaille  <akim@epita.fr>
10079         * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
10080         (AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK)
10081         (AC_FUNC_MMAP, AC_FUNC_SELECT_ARGTYPES, _AC_FUNC_STAT)
10082         (AC_FUNC_UTIME_NULL): Use AC_INCLUDES_DEFAULT.
10083         Don't use AC_TRY_RUN, which double quotes, prefer AC_RUN_IFELSE,
10084         and either AC_LANG_SOURCE or AC_LANG_PROGRAM.
10085         (AC_FUNC_CLOSEDIR_VOID): Protect C++ from `int closedir ();' (or
10086         the converse).
10088 2001-06-18  Akim Demaille  <akim@epita.fr>
10090         * doc/autoconf.texi (ms): New index.
10091         (Macro Index): Rename as...
10092         (Autoconf Macro Index): this.
10093         (M4 Macro Index): New appendix.
10094         (Programming in M4): New chapter.
10095         Define M4sugar, M4sh, m4_pattern_forbid, and m4_pattern_allow.
10096         (Quoting): Rename as...
10097         (M$ Quotation): this.
10098         Be part of `Programming in M4).
10100 2001-06-18  Nicolas Joly  <njoly@pasteur.fr>
10102         * tests/torture.at (AC_ARG_VAR): Set variables and export them
10103         in separate statements for compatibility with Tru64 v5.1.
10105 2001-06-17  Akim Demaille  <akim@epita.fr>
10107         * acgeneral.m4 (_AC_ARG_VAR_VALIDATE): Be sure to cache the
10108         current values of the precious variables, not the previously
10109         cached values.
10110         Pass precious variables which are set to config.status.
10111         * doc/autoconf.texi (Setting Output Variables): Document AC_ARG_VAR.
10112         * tests/torture.at (AC_ARG_VAR): New.
10114 2001-06-15  Paul Eggert  <eggert@twinsun.com>
10116         * doc/autoconf.texi: Move AC_FUNC_WAIT3 and
10117         AC_SYS_RESTARTABLE_SYSCALLS to the obsolete section,
10118         and explain why and how to replace them.
10119         * acfunctions.m4 (AC_FUNC_WAIT3): Warn as obsolete.
10120         * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
10122 2001-06-15  Akim Demaille  <akim@epita.fr>
10124         `build_alias', `host_alias', and `target_alias' are not AC_SUBST'd.
10125         Reported by Bruno Haible.
10127         * acgeneral.m4 (AC_ARG_VAR): Move the AC_SUBST, from here...
10128          (_AC_ARG_VAR_PRECIOUS): to here.
10130 2001-06-15  Pavel Roskin  <proski@gnu.org>
10132         * acheaders.m4 (_AC_CHECK_HEADER_DIRENT): Instead of defining
10133         an unused pointer use cast to this type and `if' statement to
10134         avoid warnings from the compiler.
10135         (AC_HEADER_TIME): Likewise.
10136         * actypes.m4 (AC_CHECK_MEMBER): s/foo/ac_aggr/. Use the member
10137         in `if' statement to avoid warnings from the compiler. Declare
10138         ac_aggr static to avoid the need to initialize it.
10140 2001-06-14  Akim Demaille  <akim@epita.fr>
10142         * doc/autoconf.texi (Portable Shell): Move to follow `Writing
10143         Macros'.
10145 2001-06-13  Akim Demaille  <akim@epita.fr>
10147         * m4/missing.m4, config/missing: Updated to Automake 1.4g's.
10148         Suggested by Alexander Mai.
10150 2001-06-13  Akim Demaille  <akim@epita.fr>
10152         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Guard
10153         sys/types.h and sys/stat.h, and check for them.
10155 2001-06-13  Akim Demaille  <akim@epita.fr>
10157         * acheaders.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS): Support $4 =
10158         INCLUDES.
10160 2001-06-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10162         * acspecific.m4 (AC_PATH_XTRA): Check if linking against libX11
10163         succeeds and only try adding libdnet upon a failure.
10165 2001-06-12  Akim Demaille  <akim@epita.fr>
10167         * autoscan.in (&output_kind): Output the comment only if it exists.
10168         (%kind_comment): Add entry for `programs'.
10169         (&output_programs): Use &output_kind.
10170         (&output_functions, &output_identifiers, &output_headers)
10171         (&output_programs): Inline, and remove.
10173 2001-06-12  Akim Demaille  <akim@epita.fr>
10175         * autoscan.in (%kind_comment): New.
10176         (output_kind): New.
10177         (output_functions, output_identifiers, output_headers): Use it.
10179 2001-06-12  Akim Demaille  <akim@epita.fr>
10181         * autoscan.in (&print_unique): Take `$kind' and `$word' as
10182         arguments, to factor indirections into `%macro' and `%used'.
10183         (%generic_macro): Fix a typo.
10185 2001-06-12  Akim Demaille  <akim@epita.fr>
10187         * aclibraries: New.
10188         * autoscan.in (@kinds): Add `libraries'.
10189         Use `@kinds' instead of hard coded lists.
10190         (%programs, %headers, %identifiers, %makevars, %libraries, %functions):
10191         Remove, replaced by...
10192         (%used): this.
10194 2001-06-12  Akim Demaille  <akim@epita.fr>
10196         * autoscan.in (%functions_macros %headers_macros)
10197         (%identifiers_macros %programs_macros %makevars_macros): Remove,
10198         replaced by...
10199         (%macro): New.
10201 2001-06-11  Raja R Harinath  <harinath@cs.umn.edu>
10203         * aclang.m4 (AC_NO_EXECUTABLES): Override
10204         _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.
10206 2001-06-11  Akim Demaille  <akim@epita.fr>
10208         * aclang.m4 (AC_NO_EXECUTABLES): Define the macros with their
10209         trailing new line.
10210         Reported by Andreas Schwab.
10212 2001-06-11  Akim Demaille  <akim@epita.fr>
10214         * Makefile.am, Makefile.maint: Typos.
10216 2001-06-09  Akim Demaille  <akim@epita.fr>
10218         * doc/autoconf.texi (Here-Documents): New section, gathering
10219         documentation about here-documents.
10220         Use `href', not `uref', and other changes.
10222 2001-06-09  Akim Demaille  <akim@epita.fr>
10224         * doc/autoconf.texi (Portable Shell Programming): Promoted as a
10225         chapter.
10227 2001-06-09  Akim Demaille  <akim@epita.fr>
10229         * doc/autoconf.texi (Limitations of Builtins): Complete the
10230         description of the here-docs penalties with Alexandre Oliva's
10231         explanations.
10233 2001-06-01  Paul Eggert  <eggert@twinsun.com>
10235         * doc/autoconf.texi: Talk about here documents and speedups.
10236         Do not use "echo" on arbitrary strings.
10237         Spell "here-documents" consistently with the standard.
10239 2001-06-09  Akim Demaille  <akim@epita.fr>
10241         * doc/autoconf.texi (Concept Index): Introduce it.
10242         Regenerate the menus.
10244 2001-06-09  Akim Demaille  <akim@epita.fr>
10246         * Makefile.maint, GNUmakefile: New, from Jim Meyering.
10247         * config/prev-version.txt: New.
10248         * config/move-if-change: New, for GNU libc.
10250 2001-06-06  Pavel Roskin  <proski@gnu.org>
10252         * tests/atgeneral.m4 (AT_INIT): Remove "/bin/sh" after $SHELL.
10254 2001-06-06  Akim Demaille  <akim@epita.fr>
10256         * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
10257         properly when $1 is not a literal.
10258         Fixes PR Autoconf/187, reported by Bram Moolenaar.
10260 2001-06-06  Akim Demaille  <akim@epita.fr>
10262         Invoking AC_COPYRIGHT before AC_INIT fails.
10264         * Makefile.am (.m4.m4f): Pass --fatal-warnings to m4.
10265         * acgeneral.m4 (_m4_divert(VERSION_FSF))
10266         (_m4_divert(VERSION_USER)): New.
10267         (AC_COPYRIGHT): $2 is the diversion to use.
10268         (_AC_INIT_COPYRIGHT): Use the FSF diversion.
10269         (AC_INIT): Remove dead comments as now it's commutative.
10271 2001-06-06  Akim Demaille  <akim@epita.fr>
10273         * tests/semantics.at (AC_CHECK_LIB): Strengthen to reflect
10274         PR autoconf/187.
10276 2001-06-05  Akim Demaille  <akim@epita.fr>
10278         * acgeneral.m4 (_AC_INIT_PARSE_ARGS): `prefix' and `exec_prefix'
10279         can be empty.
10280         `*dir' variables cannot be NONE.
10281         Reported by Mark Kettenis.
10283 2001-06-05  Paul Eggert  <eggert@twinsun.com>
10285         * doc/autoconf.texi: Fix references to Solaris and SunOS versions.
10287 2001-06-04  Akim Demaille  <akim@epita.fr>
10289         * acgeneral.m4 (AC_VAR_SET, AC_VAR_GET, AC_VAR_TEST_SET)
10290         (AC_VAR_SET_IFELSE, AC_VAR_PUSHDEF and AC_VAR_POPDEF, AC_TR_CPP)
10291         (AC_TR_SH): Move as...
10292         * m4sh.m4 (AS_VAR_SET, AS_VAR_GET, AS_VAR_TEST_SET)
10293         (AS_VAR_SET_IF, AC_VAR_PUSHDEF, AS_VAR_POPDEF, AS_TR_CPP)
10294         (AS_TR_SH): these.
10295         (_AS_TR_PREPARE, _AS_CR_PREPARE, _AS_TR_CPP_PREPARE)
10296         (_AS_TR_SH_PREPARE): New.
10297         (AS_SHELL_SANITIZE): Invoke _AS_TR_PREPARE.
10298         * tests/aclocal.m4 (AC_STATE_SAVE): `as_' vars can be modified.
10300 2001-06-02  Akim Demaille  <akim@epita.fr>
10302         * Makefile.am (.m4.m4f): Pass the options first.
10303         Fixes PR autoconf/182.
10305 2001-06-02  Nathan Sidwell  <nathan@codesourcery.com>
10307         GNU getopt, when POSIXLY_CORRECT does not permute options and
10308         arguments.  So pass the options first.
10309         Fixes PR autoconf/184.
10311         * autoconf.sh (m4_prefiles, m4f_prefiles): New variables.
10312         (run_m4): Remove files.
10313         (run_m4f): Remove.
10314         Update remainder of script to use them.
10315         (for warning in): Do not use a literal comma as it will not be
10316         split by IFS.
10318 2001-06-02  Christian Marquardt  <marq@gfz-potsdam.de>
10320         * aclang.m4 (AC_PROG_F77): Add Fujitsu's "frt" to the list of
10321         Fortran compilers to check.
10322         (_AC_PROG_F77_V): Add '-###' as a possible option to print
10323         information on library and object files.
10324         (AC_PROG_CXX): Add Fujitsu's "FCC" to the list of C++ compilers
10325         to check.
10327 2001-06-02  Akim Demaille  <akim@epita.fr>
10329         * autom4te.in (Request::@request): Declare with `vars', not `my',
10330         as it prevents updates via `do FILENAME'.
10332 2001-06-02  Akim Demaille  <akim@epita.fr>
10334         * configure.in (standards_texi): Remove, dead code.
10336 2001-06-02  Akim Demaille  <akim@epita.fr>
10338         * autom4te.in: New.
10340 2001-06-02  Pavel Roskin  <proski@gnu.org>
10342         * acgeneral.m4 (_AC_INIT_PREPARE): Don't rely on $? in the traps
10343         for signals other than 0 - exit with code 1.
10344         * m4sh.m4 (AS_TMPDIR): Likewise.
10345         * autoconf.in: Likewise. Also don't rely on exit == exit $?.
10346         * autoheader.in: Likewise.
10347         * autoreconf.in: Likewise.
10348         * tests/torture.at (Signal handling): New test for the above.
10350 2001-06-01  Akim Demaille  <akim@epita.fr>
10352         * m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
10353         message.
10355 2001-05-31  Akim Demaille  <akim@epita.fr>
10357         * acfunctions, acheaders, acidentifiers, acmakevars, acprograms:
10358         Add copyright and comments.
10359         * acheaders: Add stdint.h.
10360         Suggested by Paul Eggert.
10362 2001-05-31  Akim Demaille  <akim@epita.fr>
10364         * atgeneral.m4 (AT_INIT): Use $SHELL.
10365         * atspecific.m4 (AT_CHECK_DEFINES): Skip HAVE_STDINT_H.
10367 2001-05-31  Akim Demaille  <akim@epita.fr>
10369         * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
10370         stdint.h.
10371         From Paul Eggert and Lars Hecking.
10373 2001-05-31  Akim Demaille  <akim@epita.fr>
10375         * tests/base.at: Adjust line numbers in error messages.
10377 2001-05-31  Akim Demaille  <akim@epita.fr>
10379         * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
10380         to emit the bangshe line.
10381         Reported by David Carter.
10383 2001-05-30  Steven G. Johnson  <stevenj@alum.mit.edu>
10385         * aclang.m4 (AC_PROG_F77): Add Compaq's "fort" to the list of
10386         Fortran (95) compilers to check.
10388 2001-05-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
10390         * doc/autoconf.texi (Introduction, Pointers): Update the Autoconf
10391         Macro Archive URL.
10393 2001-05-23  Pavel Roskin  <proski@gnu.org>
10395         * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
10396         _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
10397         (AC_PROG_CXXCPP): Likewise.
10399 2001-05-22  Akim Demaille  <akim@epita.fr>
10401         * config: New directory.
10402         * configure.in: AC_CONFIG_AUX_DIR it.
10403         * tests/atspecific.m4 (AT_CONFIGURE_AC): Adjust.
10405 2001-05-22  Akim Demaille  <akim@epita.fr>
10407         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in,
10408         * autoupdate.in: Specify the Emacs mode.
10409         * acversion.m4.in: Rename as...
10410         * acversion.m4: this.
10411         * tests/Makefile.am (CLEANFILES): More garbage.
10413 2001-05-22  Akim Demaille  <akim@epita.fr>
10415         * autoconf.sh, autoreconf.sh, autoheader.sh, autoscan.pl, ifnames.sh:
10416         Rename as...
10417         * autoconf.in, autoreconf.in, autoheader.in, autoscan.in, ifnames.in:
10418         these.
10420 2001-05-21  Akim Demaille  <akim@epita.fr>
10422         * configure.in: Bump to 2.50a.
10424 -----
10426 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10428 This file is part of GNU Autoconf.
10430 GNU Autoconf is free software; you can redistribute it and/or modify
10431 it under the terms of the GNU General Public License as published by
10432 the Free Software Foundation; either version 2, or (at your option)
10433 any later version.
10435 GNU Autoconf is distributed in the hope that it will be useful,
10436 but WITHOUT ANY WARRANTY; without even the implied warranty of
10437 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10438 GNU General Public License for more details.
10440 You should have received a copy of the GNU General Public License
10441 along with autoconf; see the file COPYING.  If not, write to
10442 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
10443 Boston, MA 02110-1301, USA.