Merge branch 'maint'
[platform/upstream/automake.git] / ChangeLog
1 2011-10-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
2
3         deps: partially revert commit `v1.11-512-geeee551'
4         This change partly reverts commit "Create subdirs for generated
5         sources even when not dep tracking", of 2011-04-02.
6         That commit had caused the bugs #8485 and #8526.  Since we are
7         nearing the bug-fixing automake release 1.11.2, the safest policy
8         at the moment is to just revert the problematic hunks: an older,
9         known bug is better than a regression.
10         * automake.in (handle_single_transform): Don't add a dirstamp
11         dependency, even when $object is derived and lands in a subdir.
12         * tests/Makefile.am (XFAIL_TESTS): Add lex-subobj-nodep.test,
13         remove yacc-dist-nobuild-subdir.test.
14
15 2011-10-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
16
17         dejagnu: allow the package developer to extend site.exp
18         Fixes automake bug#7873.
19         * lib/am/dejagnu.am (site.exp): Depend from the files listed in
20         $(EXTRA_DEJAGNU_SITE_CONFIG), if any.  Append their contents to
21         the generated site.exp (still preserving user edits).
22         * doc/automake.texi (Dejagnu Tests): Update.
23         * tests/dejagnu-siteexp-append.test: New test.
24         * tests/dejagnu-siteexp-extend.test: Likewise.
25         * tests/dejagnu-siteexp-useredit.test: Likewise.
26         * tests/Makefile.am (TESTS): Update.
27         * NEWS: Update.
28         Suggestion by Rainer Orth.
29
30 2011-10-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
31
32         dejagnu: ensure 'srcdir' is defined as a relative directory
33         This change fixes automake bug#7833.
34         * lib/am/dejagnu.am (check-DEJAGNU): Prefer using plain $(srcdir)
35         over calculating and using the absolute path of $(srcdir).
36         * tests/dejagnu-relative-srcdir.test: New test.
37         * tests/dejagnu-absolute-builddir.test: Likewise.
38         * tests/Makefile.am (TESTS): Update.
39         Report by Ian Lance Taylor.  Suggestions by Ralf Wildenhues.
40
41 2010-12-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42
43         Fix testsuite failure of check12.test without DejaGNU.
44         * tests/check12.test: Require runtest.
45
46 2010-12-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
47
48         Extend and improve tests on DejaGnu support.
49         * tests/dejagnu.test: Do not create useless dummy test script.
50         Add trailing `:' command.  In heading comments, add reference
51         to ...
52         * tests/check12.test: ... this new "semantic" test, covering
53         concurrent use of dejagnu tests, simple tests and `check-local'
54         target.
55         * tests/dejagnu2.test: Make test more reliable, by avoid weak
56         grepping of make output.  Prefer `cat' over `echo' to append
57         to configure.in.  Quote literal dots in grep regexps.  Prefer
58         `grep -c ...' over `grep ... | wc -l'.  Make grepping of
59         automake stderr slightly stricter.  Add trailing `:' command.
60         * tests/dejagnu3.test: Prefer `cat' over `echo' to append to
61         configure.in.  Check stderr of expected-to-fail "make" call.
62         Remove extra blank lines from Makefile.am.
63         * tests/dejagnu4.test: Prefer `cat' over `echo' to append to
64         configure.in.  Prefer `mv -f' over plain `mv' when the target
65         file already exists.  Avoid extra mkdir calls by creating more
66         directories at once.  Better use of blank lines.  Check that
67         the `*.log' and `*.sum' files are created by runtest also when
68         "make check" fails.
69         * tests/dejagnu7.test: Prefer `cat' over `echo' to append to
70         configure.in.  Better use of blank lines.  Add a trailing `:'
71         command.
72         * tests/dejagnu6.test: Likewise, and give the dejagnu test a
73         more descriptive name.
74         * tests/dejagnu5.test: Likewise.  Also, simply define package
75         name to `$me' rather than using a non-obvious sed script to
76         extract it from `AC_INIT', and write the Makefile.am with only
77         one command.
78         * tests/Makefile.am (TESTS): Updated.
79
80 2011-10-21  Peter Rosin  <peda@lysator.liu.se>
81
82         * THANKS: Fix whitespace issue.
83
84 2011-10-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
85
86         tests: fix spurious failures due to missing 'yywrap()' function
87
88         The AC_PROG_LEX Autoconf macro does not diagnose a failure to find
89         the "lex library" expected to provide a `yywrap' function (function
90         which is required to link most lex-generated programs).  On the
91         contrary, when all the link attempts (i.e., with `-ll' and `-lfl')
92         fail, configure declares that no lex library is needed, and simply
93         proceeds with the configuration process -- only for the build to
94         possibly fail later, at make time.
95
96         This behaviour is intended; the Autoconf manual reads:
97          ``You are encouraged to use Flex in your sources, since it is
98            both more pleasant to use than plain Lex and the C source it
99            produces is portable.  In order to ensure portability, however,
100            you must either provide a function `yywrap' or, if you don't use
101            it (e.g., your scanner has no `#include'-like feature), simply
102            include a `%noyywrap' statement in the scanner's source.''
103
104         This AC_PROG_LEX behaviour is causing some spurious failures of
105         the Automake testsuite in environments which lack a proper library
106         providing `yywrap' (this happens for example on Fedora-based
107         systems).   The proper workaround is to simply provide a fall-back
108         implementation of `yywrap' in our lexers.
109
110         See also partially-overlapping commit `v1.11-871-geb147a1' (from
111         the 'testsuite-work' branch), which was motivated by similar
112         spurious failures experienced when cross-compiling.
113
114         Reported by Jim Meyering:
115         <http://lists.gnu.org/archive/html/automake-patches/2011-10/msg00092.html>
116
117         * tests/cond35.test: Provide a dummy `yywrap' function.
118         * tests/lex3.test: Likewise.
119         * tests/lexvpath.test: Likewise.
120         * tests/silent-lex-generic.test: Likewise.
121         * tests/silent-lex-gcc.test: Likewise.
122
123 2011-10-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
124
125         tests: fix spurious failure with FreeBSD make and Yacc in VPATH
126         * tests/subpkg.test: Some cosmetic adjustments.  Move the tests
127         checking that $(YLWRAP) is defined and installed properly when
128         ylwrap is in a default auxdir found in a parent package ...
129         * tests/subpkg-yacc.test: ... into this new test, which carefully
130         avoids to trigger the known bug#7884 (combo FreeBSD make plus Yacc
131         plus VPATH build).
132         * tests/Makefile.am (TESTS): Update.
133
134 2011-10-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
135
136         tests: avoid spurious failure in 'parallel-tests3.test'
137         This fixes automake bug#8788.
138         * tests/parallel-tests3.test: To ensure that the serial run of
139         the dummy testsuite is still ongoing when the parallel run has
140         terminated, use `kill -0', not a bare `kill'.  This will prevent
141         a testsuite crash on NetBSD 5.1, and a testsuite hang on FreeBSD
142         8.2.  Also, since we are at it, try harder to avoid possible
143         hangs of the script in other unusual situations.
144
145 2011-10-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
146
147         tests: fix spurious failures with "chatty" make implementations
148         * tests/distcheck-missing-m4.test: On failure, some make
149         implementations (such as Solaris make) print the whole failed
150         recipe on standard output.  This was causing a spurious failure
151         in the checks grepping the output from make.  Work around this.
152         * tests/distcheck-outdated-m4.test: Likewise.
153
154 2011-10-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
155
156         tests: fix spurious failure on fast machines
157         * tests/aclocal-path-precedence.test: Also remove the `configure'
158         script between different test runs, to ensure it is always remade
159         by autoconf.  Add proper explicative comments.
160
161 2011-10-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
162
163         tests: avoid spurious failure of 'uninstall-fail.test' on Solaris
164         * tests/uninstall-fail.test: All the Solaris 10 shells (/bin/sh,
165         /bin/ksh, and /usr/xpg4/bin/sh), upon failing to chdir to a
166         directory with the `cd' builtin, print a message like:
167           "sh: /root: permission denied"
168         which doesn't report the `cd' builtin anywhere.  Relax the grepping
169         of the error message accordingly.
170
171 2011-10-20  Jim Meyering  <meyering@redhat.com>
172
173         tests: fix aclocal-print-acdir.test
174         * tests/aclocal-print-acdir.test: Adjust to pass.
175
176 2011-10-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
177
178         tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin
179         * tests/uninstall-fail.test: Be sure to really skip this test
180         on systems that allows files to be removed from unwritable
181         directories.  Motivated by a spurious failure on Cygwin 1.5.
182
183 2011-10-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
184
185         tests: fix spurious failure with autoconf 2.62
186         * tests/aclocal-path-precedence.test: Rewrite configure.in,
187         rather than appending to it, to avoid spurious failures (at
188         least with autoconf 2.62) due to repeated calls to AC_INIT.
189         Also, add package name and version arguments to AC_INIT, to
190         avoid spurious errors from automake.
191
192 2011-10-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
193
194         docs: avoid using colon character inside arguments of @pxref
195         Fixes automake bug#9753
196         * doc/automake.texi (VPATH Builds): Avoid using colon character
197         `:' inside arguments of @pxref, as this can cause problems in
198         the generated `.info' files, and such an usage will be explicitly
199         forbidden by future texinfo documentation.
200         * THANKS: Update.
201         Reported by Дилян Палаузов.
202
203 2011-10-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
204
205         refactor: improve signature of 'check_directory' sub in automake
206         * automake.in (check_directory): Take the relative directory
207         the directory to be checked is expected to be found into as
208         an optional parameter, rather than reading it from the global
209         variable `$relative_dir'.
210         (scan_autoconf_traces, check_directories_in_var): Adjust.
211
212 2011-10-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
213
214         parallel-tests: warn on conditional TEST_EXTENSIONS definition
215         Before this change, automake would have still bailed out, but
216         with a confusing error message (about an invalid redefinition
217         of TEST_EXTENSIONS).
218         * automake.in (handle_tests): Warn explicitly if TEST_EXTENSIONS
219         has conditional contents.
220         * tests/test-extensions-con.test: New test.
221         * tests/Makefile.am (TESTS): Add it.
222         * NEWS: Update.
223
224 2011-10-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
225
226         parallel-tests: don't allow @substitutions@ in TEST_EXTENSIONS
227         Even after the last commit `v1.11-476-g90bea64', the checks
228         performed by automake on entries in $(TEST_EXTENSIONS) tried to
229         allow for @substitited@ stuff.  This however ends up allowing
230         quite brittle setups, which, most importantly, are of no real
231         practical usefulness anyway.  So it's better to just disallow
232         @substitutions@ in TEST_EXTENSIONS altogether, offering a clear
233         error message, instead of risking weird bugs and unexpected
234         behaviors in the generated Makefile.in.
235         * automake.in ($TEST_EXTENSION_PATTERN): Turned from a regular
236         expression ...
237         (is_valid_test_extension): ... into this subroutine.  Don't allow
238         generic @substitutions@ anymore (possibly making an exception for
239         `@EXEEXT@' under the proper circumstances).
240         * tests/test-extensions.test: Adjust and extend.
241
242 2011-10-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
243
244         tests: fix spurious failure in 'insthook.test'
245         * tests/insthook.test (Makefile.am): Add a proper `uninstall-hook'
246         target to remove the symlink created by the `install-exec-hook'
247         target; this prevents "make distcheck" from failing spuriously.
248         Since we are at it, delete an extra blank line, and add a trailing
249         `:' command.
250
251 2011-10-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
252
253         maintcheck: fix spurious failure
254         * lib/am/distdir.am: Use `$(infodir)', not `${infodir}', to avoid
255         complaints from the `sc_no_brace_variable_expansions' maintainer
256         check.
257
258 2011-10-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
259
260         fix: make a test script executable
261         * tests/nobase-nodist.test: Make executable.
262
263 2011-10-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
264
265         coverage: expose automake bug#9651
266         * tests/dist-auxfile.test: New test, xfailing.
267         * tests/dist-auxfile-2.test: Likewise.
268         * tests/Makefile.am (TESTS, XFAIL_TESTS): Add them.
269
270 2011-10-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
271
272         parallel-tests: automake error our on invalid TEST_EXTENSIONS
273         This change fixes automake bug#9400.
274         * automake.in (handle_tests): Bail out if a suffix specified in
275         TEST_EXTENSIONS would produce an invalid `xxx_LOG_COMPILER'
276         variable or an invalid suffix rule.  Before this change, automake
277         would have issued a confusing error messages (about invalid or
278         non-POSIX variables being defined), and in some situations would
279         have even produced a broken `Makefile.in' file.
280         ($TEST_EXTENSION_PATTERN): New helper variable.
281         * doc/automake.texi (Simple Tests using parallel-tests): Document
282         the limitations on TEST_EXTENSIONS explicitly.
283         * NEWS: Update.
284         * tests/test-extensions.test: New test.
285         * tests/Makefile.am (TESTS): Update.
286
287 2011-09-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
288
289         docs: don't suggest installing `.m4' files in hard-coded location
290         This change fixes automake bug#7988.
291         * doc/automake.texi (aclocal Options): State that the use of
292         the `--print-ac-dir' option to determine the directory where
293         third-party packages can install their `.m4' files is discouraged
294         now.
295         (Extending aclocal): Suggest telling the user about ACLOCAL_PATH.
296         * THANKS: Update.
297         Report by Peter Johansson.
298
299 2011-09-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
300
301         distuninstallcheck: fail also when only one file is left installed
302         This change fixes automake bug#9579.
303         * lib/am/distdir.am (distuninstallcheck): Be stricter in ignoring
304         a potential `dir' file created by install-info and left installed.
305         Also, be more careful about "this can't happen" kind of errors.
306         (am__distuninstallcheck_listfiles): New internal helper macro.
307         * tests/distcheck-pr9579.test: New test.
308         * tests/distcheck-override-infodir.test: Likewise.
309         * tests/Makefile.am (TESTS): Add them.
310         * NEWS, THANKS: Update.
311         Report by Nick Bowler.
312
313 2011-09-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
314
315         maintcheck: fix usage of `cd' instead of `$(am__cd)'
316         * lib/am/inst-vars.am (am__uninstall_files_from_dir): Use
317         `$(am__cd)', not plain `cd'.
318
319 2011-09-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
320
321         uninstall: "make uninstall" before "make install" works
322         This change fixes automake bug#9578.
323         * lib/am/inst-vars.am (am__uninstall_files_from_dir): New internal
324         macro, that defines a shell code fragment to uninstall files from
325         a given directory.
326         * lib/am/data.am (uninstall-%DIR%%PRIMARY%): Use it, to reduce code
327         duplication and improve consistency and correctness.
328         * lib/am/libs.am (uninstall-%DIR%LIBRARIES): Likewise.
329         * lib/am/lisp.am (uninstall-%DIR%LISP): Likewise.
330         * lib/am/mans.am (uninstall-man%SECTION%): Likewise.
331         * lib/am/python.am (uninstall-%DIR%LIBRARIES): Likewise.
332         * lib/am/scripts.am (uninstall-%DIR%SCRIPTS): Likewise.
333         * tests/uninstall-pr9578.test: New test.
334         * tests/uninstall-fail.test: New test.
335         * tests/Makefile.am (TESTS): Add them.
336         * NEWS, THANKS: Update.
337         Report by Nick Bowler.
338
339 2011-09-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
340
341         tests: fix tests on aclocal search path precedences
342         * tests/aclocal-path-precedence.test: Call `$ACLOCAL' with the
343         proper overridden system acdir.
344
345 2011-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
346
347         docs: remove mention of deprecated option `--acdir'
348         * doc/automake.texi (aclocal Options): Remove mention of
349         deprecated `--acdir' option.
350
351 2011-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
352
353         * NEWS: Cleanup after botched merges.
354
355 2011-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
356
357         * NEWS: Fix typo.
358
359 2011-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
360
361         docs: document planned precedence changes in aclocal search path
362         * doc/automake.texi (Macro Search Path): Explicitly state that the
363         lookup order for extra directories of `.m4' files will be changed
364         in the next major release.
365         * NEWS: Likewise.
366
367 2011-09-19  Paolo Bonzini  <bonzini@gnu.org>
368             Stefano Lattarini  <stefano.lattarini@gmail.com>
369
370         aclocal: handle ACLOCAL_PATH environment variable
371         * aclocal.in (parse_ACLOCAL_PATH): New function, parse ACLOCAL_PATH
372         as a colon-separated list of directories to be included in the
373         search path.
374         * doc/automake.texi (Macro Search Path): Document new behavior and
375         the precedence rules for various elements of the search path.
376         * tests/aclocal-path.test: New test.
377         * tests/aclocal-path-install.test: Likewise.
378         * tests/aclocal-path-install-serial.test: Likewise.
379         * tests/aclocal-path-precedence.test: Likewise.
380         * tests/aclocal-path-nonexistent.test: Likewise.
381         * tests/Makefile.am (TESTS): Add them.
382         * NEWS: Update.
383         * tests/distcheck-missing-m4.test: Extend by also checking
384         interactions with ACLOCAL_PATH.
385         * tests/distcheck-outdated-m4.test: Likewise, and fix a couple
386         of botched comments since we are at it.
387
388 2011-09-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
389
390         tests: fix spurious failure in 'primary-prefix-valid-couples.test'
391         * tests/primary-prefix-valid-couples.test: After commit
392         v1.11-464-gc9dfc36, `java_JAVA' is not a valid prefix/primary
393         combination by default anymore: one has to explicitly define
394         $(javadir) to make it so.  So just drop `java_JAVA' from our
395         Makefile.am  Also, since we are at it, ...
396         (configure.in): ... remove AM_PROG_GCJ from here, as it's not
397         really required.
398
399 2011-09-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
400
401         docs: deprecate JAVA primary
402         * doc/automake.texi (Java): Deprecate the JAVA primary, stating
403         that it will become obsolete in automake 1.12 and probably removed
404         altogether in automake 1.13.  Reflect this in the section title,
405         by appending the string "(deprecated feature)".
406         (@menu, @detailmenu): Update.
407         (Java Support with gcj): The cross-referenced support for bytecode
408         compilation with the JAVA primary is rudimentary and deprecated.
409         State that explicitly.
410
411 2011-09-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
412
413         docs: clearer distinction between `.java' with javac and with gcj
414         * doc/automake.texi (Java support): Rename this node ...
415         (Java support with gcj): ... to this, and change its title from
416         "Compiling Java sources" to "Compiling Java sources using gcj".
417         (@detailmenu, @menu, @cindex): Update and make more precise.
418         (Java): Change the title of this node from simply "Java" to
419         "Java bytecode compilation".
420         (@detailmenu, @menu, @cindex): Update and make more precise.
421
422 2011-09-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
423
424         java: complain if java_JAVA is used but $(javadir) is undefined
425         Fixes automake bug#8461.
426         * automake.in (handle_java): Remove inappropriate "java" argument
427         from the calls to `&am_install_var' and `&am_primary_prefixes'.
428         * tests/instdir-java.test (Makefile.am): Define `$(javadir)'.
429         * tests/javadir-undefined.test: New test.
430         * tests/Makefile.am (TESTS): Add it.
431         * NEWS: Update.
432
433 2011-09-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
434
435         automake: remove special handling of `ANSI2KNR' make variable
436         * automake.in (define_configure_variable): Remove special-cased
437         handling of `ANSI2KNR' variable.  Related minor simplifications.
438
439 2011-09-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
440
441         cosmetics: fix various typos and grammaros
442         * NEWS: Fix typos.
443         * tests/py-compile-basic.test: Likewise.
444         * tests/py-compile-basedir.test: Fix botched wording in comments.
445         * tests/py-compile-option-terminate.test: Fix typo and incomplete
446         comment.
447         Suggestions by Peter Rosin.
448
449 2011-09-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
450
451         coverage: test interactions of `nobase_' and `nodist_'
452         * tests/nobase-nodist.test: New test.
453         * tests/Makefile.am (TESTS): Add it.
454
455 2011-09-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
456
457         java: fix various blunders in test 'java-mix.test'
458         * tests/java-mix.test: Add missing call to `set -e'.  Fix inverted
459         semantics (`.java' files are expected *not* to be distributed by
460         default, not the other way round).  Fix various typos in the name
461         of the `.java' files.  Correct other minor blunders.  Improve some
462         comments.
463
464 2011-09-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
465
466         tests: fix spurious failure on fast machines
467         * tests/aclocal-acdir.test: Avoid spurious failures due to caching
468         issues, by cleaning the autom4te cache between all the aclocal
469         invocations, and by always calling autoconf with the `--force'
470         flag.
471
472 2011-09-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
473
474         aclocal: better URL reference in error message
475         * aclocal.in (scan_file): In the error message about underquoted
476         definitions, reference the automake page at `www.gnu.org', not
477         at `sources.redhat.com'.
478
479 2011-09-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
480
481         coverage: distcheck-hook to catch missing/outdated *.m4 files
482         Related to automake bug#9037.
483         * tests/distcheck-missing-m4.test: New test.
484         * tests/distcheck-outdated-m4.test: Likewise.
485         * tests/distcheck-hook-m4.am: New data file, used by the new
486         tests.
487         * tests/Makefile.am (distcheck-m4-missing.log,
488         distcheck-m4-outdated.log): Depend on it.
489         (EXTRA_DIST): Distribute it.
490         (TESTS): Add the new tests.
491
492 2011-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
493
494         aclocal: more granularity in acdir overriding
495         Before this change, using the `--acdir' option caused aclocal to
496         redefine both the directory of automake-provided m4 macros and the
497         directory of third-party system-wide m4 macros.  With this change,
498         we deprecate the `--acdir' aclocal option, and introduce two new
499         options `--automake-acdir' and `--system-acdir', to allow for more
500         granularity.
501         * aclocal.in (@automake_includes, @system_includes,
502         @user_includes): Fix and extend comments.
503         (usage): Update.
504         (handle_acdir_option): New function.
505         (parse_arguments): Recognize new options `--system-acdir' and
506         `automake-acdir', and handle `--acdir' using the new function
507         above.  Simplify logic by assuming that the directory of
508         third-party system-wide m4 files always exists.
509         * tests/aclocal.in: Update to use the new options, instead of
510         the deprecated. `--acdir'.
511         * m4/dirlist: Move ...
512         * m4/acdir/dirlist: ... here.
513         * m4/Makefile.am (EXTRA_DIST): Update.
514         (m4datadir): Rename ...
515         (automake_acdir): ... to this.  Accordingly, ...
516         (dist_m4data_DATA): ... rename this ...
517         (dist_automake_ac_DATA): ... to this.
518         (system_acdir): New, directory.
519         (dist_system_ac_DATA): New, defined to an empty value; this will
520         ensure that the $(system_acdir) directory will be created by
521         "make install".
522         * tests/aclocal.test: Remove check about the `--print-ac-dir'
523         option of aclocal, it has been moved into ...
524         * tests/aclocal-print-acdir.test: ... this new test, and quite
525         extended.
526         * tests/aclocal-acdir.test: New test.
527         * tests/Makefile.am (TESTS): Add the new tests.
528         * NEWS, bootstrap: Update.
529         * doc/automake.texi (aclocal Options, Macro Search Path): Update.
530
531 2011-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
532
533         tests: fix spurious failures due to ignored signals
534         * tests/defs (is_blocked_signal): New function.
535         * tests/parallel-tests-interrupt.test: Do not try to use/trap
536         signals that are ignored by the parent shell: they will be
537         ignored by all the child processes too.
538         * tests/self-check-exit.test: Likewise.
539         * tests/self-check-cleanup.test: Likewise, and do few minor
540         improvements and extensions since we are at it.
541
542 2011-09-05  Peter Rosin  <peda@lysator.liu.se>
543
544         * tests/amhello-binpkg.test: Add missing $EXEEXT usage.
545
546 2011-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
547
548         fix: list test 'vala-vpath.test' in XFAIL_TESTS
549         * tests/Makefile.am (XFAIL_TESTS): Update.
550
551 2011-09-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
552
553         tests: simplify wrapper for aclocal
554         * tests/aclocal.in: Remove use of $ACLOCAL_TESTSUITE_FLAGS and
555         extra `-I' flags; they are not really required, since the file
556         `m4/amversion.m4' is generated in the srcdir anyway.
557         * tests/acloca10.test: Remove use of $ACLOCAL_TESTSUITE_FLAGS.
558         * tests/acloca18.test: Likewise.
559         * tests/defs.in: Don't nullify $ACLOCAL_TESTSUITE_FLAGS, and do
560         not export it.
561
562 2011-09-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
563
564         automake: fix regression due to de-ansification support removal
565         The last change `v1.11-947-g136b489' removed code that automake
566         was using to decide whether binary objects were built by the
567         generated Makefile.in, so that it could avoid to emit unneeded
568         code when this was not the case.  Re-introduce such code in a
569         less-obfuscated form, and add a test to ensure we don't regress
570         again.
571         * automake.in ($must_handle_compiled_objects): New global
572         variable, telling whether the generated Makefile has to build
573         compiled objects.
574         (initialize_per_input): Reset it.
575         (handle_programs, handle_libraries, handle_ltlibraries): Set
576         it to a true value when required.
577         (handle_compile): Don't generate any code if the variable
578         `$must_handle_compiled_objects' is not set to a true value.
579         * tests/no-extra-makefile-code.test: New test.
580         * tests/Makefile.am (TESTS): Add it.
581
582 2011-08-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
583
584         automake: cleanups after de-ansification support removal (2)
585         * automake.in ($get_object_extension_was_run): Remove, it's not
586         really needed anymore.
587         (&get_object_extension): Remove, it's a no-op now.
588         All callers adjusted.
589
590 2011-08-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
591
592         automake: cleanups after de-ansification support removal (1)
593         * automake.in (lang_c_rewrite, handle_single_transform): Rename 
594         variable `$nonansi_obj' to `$obj'.
595
596 2011-08-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
597
598         ansi: remove obsolete code/files for de-ANSI-fication support
599         * lib/ansi2knr.1, lib/ansi2knr.c: Deleted.
600         * lib/Makefile.am (dist_pkgvdata_DATA): Do not list them anymore.
601         * lib/am/ansi2knr.am: Delete.
602         * lib/am/Makefile.am (dist_am_DATA): Do not list it anymore.
603         * lib/Automake/Variable.pm (%_am_macro_for_var): Remove entries for
604         `ANSI2KNR' and `U'.
605         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Don't care anymore
606         about possible definition of the `$U' variable.
607         * automake.in (@common_files): Drop `ansi2knr.1' and `ansi2knr.c'.
608         (struct): Remove scalar field `ansi'.
609         All callers adjusted.
610         (&lang_c_finish, %de_ansi_files): Remove, they're not required
611         anymore.
612         All callers adjusted.
613         ($get_object_extension_was_run): Fix typo in comment.
614         (&get_object_extension): Drop code dealing with de-ansification;
615         this function basically a no-op now, but is required to properly
616         initialize `$get_object_extension_was_run' variable.
617         (&handle_languages, &handle_compile, &lang_c_rewrite): Drop code
618         dealing with de-ansification.
619
620 2011-08-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
621
622         ansi: reject attempts to use automatic de-ANSI-fication support
623         * tests/protos.m4 (AM_C_PROTOTYPES): Error out whenever called.
624         * lib/Automake/Options.pm (_process_option_list ): Error out
625         with a proper error message when the `ansi2knr' option is used.
626         Related updates to comments.
627         * tests/depacl2.test: Update.
628         * tests/ansi2knr-no-more.test: New test.
629         * tests/Makefile.am (TESTS): Add it.
630         * NEWS: Update.
631
632 2011-08-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
633
634         tests: remove tests about obsolete de-ANSI-fication support
635         * tests/ansi.test: Delete.
636         * tests/ansi10.test: Likewise.
637         * tests/ansi2.test: Likewise.
638         * tests/ansi2knr-deprecation.test: Likewise.
639         * tests/ansi3.test: Likewise.
640         * tests/ansi3b.test: Likewise.
641         * tests/ansi4.test: Likewise.
642         * tests/ansi5.test: Likewise.
643         * tests/ansi6.test: Likewise.
644         * tests/ansi7.test: Likewise.
645         * tests/ansi8.test: Likewise.
646         * tests/ansi9.test: Likewise.
647         * tests/cxxansi.test: Likewise.
648         * tests/libobj8.test: Likewise.
649         * tests/subobj3.test: Likewise.
650         * tests/Makefile.am (TESTS): Update.
651
652 2011-08-28  Stefano Lattarini  <stefano.lattarini@gmail.com>
653
654         docs: remove description of de-ANSI-fication support from manual
655         * doc/automake.texi (Auxiliary Programs): Remove mention of
656         `ansi2knr.c' and `ansi2knr.1'.
657         (Obsolete Macros): Remove mention of `AM_C_PROTOTYPES'.  Do not
658         index it nor variables `ANSI2KNR' and `U' anymore.
659         (List of Automake options): Remove mention of `ansi2knr' option,
660         and obsolete entries for concept and option indexes.
661         (Optional): Remove entry about `AM_C_PROTOTYPES'.
662         (@c LocalWords): Remove `ansi' and `knr'.
663         (@menu, @detailmenu): Remove entries about de-ANSI-fication
664         support.
665
666 2011-09-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
667
668         coverage: vala support failing for VPATH from-scratch builds
669         * tests/vala-vpath.test: New test, xfailing.
670         * tests/Makefile.am (TESTS): Update.
671         * THANKS: Update.
672         From a report by Zbigniew Jędrzejewski-Szmek.
673         Related to automake bug#8753.
674
675 2011-09-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
676
677         docs: report few more automake parsing limitations
678         Partly motivated by automake bug#8360.
679         * doc/automake.texi (General Operation): Report few more automake
680         limitations w.r.t. parsing of unusual makefile constructs.  Related
681         minor reorderings.
682         * tests/doc-parsing-buglets-colneq-subst.test: New test.
683         * tests/doc-parsing-buglets-tabs.test: Likewise.
684         * tests/Makefile.am (TESTS): Update.
685
686 2011-08-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
687
688         tests: list "forgotten" test script in TESTS
689         * tests/Makefile.am (TESTS): Also list ...
690         * tests/java-empty-classpath.test: ... this test.  Since we are
691         at it, remove trailing whitespace from a couple of lines.
692
693 2011-08-25  Eric Blake  <eblake@redhat.com>
694
695         ylwrap: fix unusual indentation whitespace
696         * lib/ylwrap: Convert tabs to spaces.
697         Reported by Karl Berry.
698
699 2011-08-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
700
701         * THANKS (Daniel Richard G.): Update e-mail address.
702
703 2011-08-16  Daniel Richard G. <skunk@iskunk.org>  (tiny change)
704             Stefano Lattarini  <stefano.lattarini@gmail.com>
705
706         java: avoid compilation errors when CLASSPATH is empty
707         * lib/am/java.am (CLASSPATH_ENV): When redefining `$CLASSPATH',
708         do not append an empty component in case the previous value of
709         CLASSPATH is empty or unset.
710         * tests/java-empty-classpath.test: New test.
711         * tests/Makefile.am (TESTS): Update.
712         Fixes automake bug#9306.
713
714 2011-08-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
715
716         parallel-tests: no more spurious successes for FreeBSD make
717         Work around a bug of FreeBSD make bug that was causing the
718         automake-generated "check" target to complete with success
719         even if some tests failed; this happened only when FreeBSD
720         make was run in concurrent mode (as in, e.g., "make -j2
721         check").  The bug is not present in NetBSD make.
722         This change fixes automake bug#9245:
723          <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9245>
724         See also FreeBSD PR bin/159730:
725          <http://www.freebsd.org/cgi/query-pr.cgi?pr=159730>
726         * lib/am/check.am [%?PARALLEL_TESTS%] $(TEST_SUITE_LOG): Use a
727         more "safe" (and apparently redundant) idiom to exit with error,
728         so that the non-zero exit status is picked up also by FreeBSD
729         make when it's running in concurrent mode.
730         * NEWS: Update.
731         * tests/check-concurrency-bug9245.test: New test.
732         * tests/Makefile.am (TESTS): Update.
733
734 2011-08-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
735
736         hacking: we now require autoconf 2.68
737         * HACKING ("Working in git"): Use autoconf and autom4te 2.68,
738         not 2.67, in the examples.
739
740 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
741
742         coverage: possible infinite recursion in the test harness
743         Motivated by a regression in the 'test-protocols' branch.
744         * tests/parallel-tests-fork-bomb.test: New test, checking that
745         if $(TEST_SUITE_LOG) is in $(TEST_LOGS), we obtain a diagnosed
746         error rather than a make hang or a fork bomb.
747         * tests/Makefile.am (TESTS): Update.
748
749 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
750
751         test defs: yet more environment cleanup
752         * tests/defs: Also unset the TEST_SUITE_LOG variable.
753
754 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
755
756         tests: fix various blunders in 'suffix-chain.test'
757         * tests/suffix-chain.test: Fix various blunders that were causing
758         this test to fail spuriously: append to `configure.in', not to
759         `configure.ac'; add a `;' character after the `return' statement
760         in an input file; use tabs, not spaces, to indent Makefile recipes;
761         and use more uncommon suffixes that don't trigger built-in recipes
762         with FreeBSD make.
763
764 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
765
766         tests: don't let a known Solaris make bug poison too many tests
767         See automake bug#7670 and bug#7824.
768         * tests/defs (make_can_chain_suffix_rules): New function, tell
769         whether the make implementation in use can chain suffix rules
770         automatically or not.
771         * tests/suffix3.test: Use it to avoid issuing calls to make that
772         are unportable to make implementations that are not smart enough
773         to chain suffix rules automatically.
774         * tests/suffix8.test: Use it to avoid issuing calls to make that
775         * tests/suffix10.test: Use it to avoid issuing calls to make that
776         * tests/suffix11.test: Use it to avoid issuing calls to make that
777         * tests/suffix-chain.test: New test, exposes the limitation that
778         we have papered over in the tests above.
779
780 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
781
782         gitignore: more use of anchors
783         * .gitignore: Anchor files that are intended to be ignored only
784         if found in the same directory of the `.gitignore' file, not also
785         in its subdirectories.
786         * doc/.gitignore, doc/amhello/.gitignore, lib/Automake/.gitignore,
787         lib/Automake/tests/.gitignore, tests/.gitignore: Likewise.  Also,
788         where needed, add new entries that were once implied by the
789         non-anchored entries in the upper-level `.gitignore' files.
790
791 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
792
793         testsuite: avoid spurious failure of self checks on Solaris
794         This is just a quick workaround to prevent having too much noise
795         in the testsuite; more proper fixes have been committed into the
796         'testsuite-work' branch.
797         * tests/self-check-dir.test: Relax a test to avoid unimportant
798         failure on Solaris 10.
799         * tests/self-check-exit.test: Likewise.
800
801 2011-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
802
803         test defs: more environment cleanup
804         * tests/defs: Also unset variables AM_COLOR_TESTS and
805         AM_TESTS_ENVIRONMENT.
806
807 2011-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
808
809         tests: fix spurious failure with Solaris make
810         * tests/distcheck-configure-flags-am.test: Avoid using `+=' too
811         liberally with AM_DISTCHECK_CONFIGURE_FLAGS, since the line breaks
812         so introduced, in conjunction with single quotes, might confuse
813         Solaris make.
814
815 2011-08-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
816
817         maintcheck: fix maintainer-check failures, both real and spurious
818         * tests/amhello-binpkg.test: Use "$MAKE", not bare "make".
819         * Makefile.am (sc_perl_local): Also allow perl special variable
820         `$~' to be localized.  And be slightly laxer in the regexp, to
821         allow for usages like "local $_ = $foo;".
822         (sc_tests_overriding_macros_on_cmdline): Also allow for command
823         line overriding of the `DISABLE_HARD_ERRORS' make variable.  Try
824         to avoid false positives for usages like "$MAKE || st=$?".
825
826 2011-08-03  Bruno Haible  <bruno@clisp.org>
827
828         docs: how to use '-I' option in AM_CPPFLAGS for best VPATH support
829         * doc/automake.texi (Program Variables): Recommend -I options to
830         both the build directory and the source directory when needed.
831
832 2011-07-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
833
834         tests: relax a test on amhello examples to cater to Solaris tar
835         * tests/amhello-binpkg.test: When the tar implementation in use
836         is not GNU tar, relax the tests on tar output, to avoid spurious
837         failures.  For example, "tar cvf ..." with GNU tar can output
838         lines like "./usr/bin/hello" on the standard output, while with
839         Solaris tar it can output lines like "a ./usr/bin/hello 8K" on
840         standard output, and with Heirloom tar it can output lines like
841         "a ./usr/bin/hello 15 tape blocks" on standard error.
842
843 2011-07-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
844
845         test defs: function 'is_newest' now works also with directories
846         * tests/defs (is_newest): Call `find' with the `-prune' option,
847         so that it won't descend in the directories (which could cause
848         spurious results).
849         * tests/self-check-is_newest: Extend accordingly.
850         From a report by Jim Meyering, see automake bug#9147.
851
852 2011-07-15  Benoit Sigoure  <tsunanet@gmail.com>
853
854         docs: add references between the 2 sections on java support
855         * doc/automake.texi (Java Support, Java): Add cross-references.
856
857 2011-07-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
858
859         Sync auxiliary files from upstream.
860         * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub,
861         lib/texinfo.tex: Sync from upstream.
862
863 2011-07-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
864
865         tests: fix weakness in 'tests-environment-backcompat.test'
866         * tests/tests-environment-backcompat.test: Do not override the
867         content of xfailing test `baz.test' with a "weaker" version that
868         fails unconditionally: the test must fail only when the 'strict'
869         pragma is in use, in order not to reduce coverage.
870
871 2011-07-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
872
873         docs, tests: synchronize examples on silent-rules from config.site
874         * doc/automake.texi (Automake silent-rules Option): Reference test
875         'silent-configsite.test' in comments.
876
877 2011-07-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
878
879         tests: portability fixes in tests on amhello examples
880         * tests/amhello-binpkg.test: Don't use "tar xzf too.tag.gz" to
881         extract a gzip-compressed tarball, that's unportable to some
882         tar implementations; use the "gzip -dc fo.tar.gz | tar xf -"
883         idiom instead.
884         * tests/amhello-cflags.test: Likewise.
885         * tests/amhello-cross-compile.test: Likewise.
886         Suggestion from Ralf Wildenhues.
887
888 2011-07-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
889
890         remake: add test ensuring that slower remakes don't hang
891         * tests/remake-subdir-long-time.test: New test.
892         * tests/Makefile.am (TESTS): Update.
893         Suggestion by Ralf Wildenhues.
894
895 2011-07-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
896
897         remake: fix outdated comment in configure.am
898         * lib/am/configure.am: Fix comment falsified by changes in
899         commit `v1.11-366-gbee9871'.
900         Suggestion by Ralf Wildenhues.
901
902 2011-07-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
903
904         docs, tests: synchronize examples from docs to tests
905         * tests/README (Writing test cases): Give suggestions on how to
906         keep test cases and examples in the documentation synchronized.
907         * doc/automake.texi: Improve or fix existing testcase-referencing
908         comments, and add many new ones.
909         * HACKING (Administrivia): Suggest to test complex examples and
910         idioms from the manual.
911         * tests/specflg8.test: Improve synchronization with the example
912         in the manual.
913         * tests/output11.test:Likewise.
914         * tests/txinfo21.test:Likewise.
915         * tests/interp.test: Likewise.
916         * tests/amhello-cflags.test: New test.
917         * tests/amhello-cross-compile.test: Likewise.
918         * tests/amhello-binpkg.test: Likewise.
919         * tests/tests-environment-backcompat.test: Likewise.
920         * tests/parallel-tests-log-compiler-example.test: Likewise.
921         * tests/Makefile.am (TESTS): Update.
922
923 2011-06-30   Stefano Lattarini  <stefano.lattarini@gmail.com>
924
925         coverage: new test on parallel-tests TESTS runtime overriding
926         * tests/parallel-tests-cmdline-override.test: New test, check that
927         we can use indirections when overriding TESTS and TEST_LOGS from
928         the command line.
929         * tests/Makefile.am (TESTS): Update.
930
931 2011-06-29   Stefano Lattarini  <stefano.lattarini@gmail.com>
932
933         docs: explain why AM_TESTS_ENVIRONMENT must be semicolon-terminated
934         * doc/automake.texi (Simple Tests using parallel-tests): Ditto, and
935         related adjustments.
936         Suggestion by Ralf Wildenhues.
937
938 2011-06-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
939
940         docs: fix unportable example of AM_TESTS_ENVIRONMENT usage
941         * doc/automake.texi (Simple Tests using parallel-tests): The
942         old example on AM_TESTS_ENVIRONMENT relied on unportable shell
943         features, and in particular didn't work with various Korn
944         Shells (see also commit `v1.11-925-g29ca903').  Give another
945         example, simpler this time, but still inspired to real-world
946         usage (the GNU coreutils testsuite).
947
948 2011-06-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
949
950         docs: avoid a footnote, some related rewordings and improvements
951         * doc/automake.texi (Dist): Reword the part about automatically
952         distributed files to avoid a footnote.  Since we are at it, extend
953         a bit, and add an example and a reference to a relevant test case.
954
955 2011-06-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
956
957         docs: minor cosmetic fixes
958         * doc/automake.texi: Break few overly long lines, throughout the
959         file.
960         ("Simple Tests"): Move @vindex for XFAIL_TESTS to the correct
961         position, i.e., before and not after the paragraph where it is
962         introduced.
963         ("Options" @item ansi2knr): Use @pxref instead of @xref.  This
964         fixes a texinfo warning.
965         ("Other things Automake recognizes" @item AM_C_PROTOTYPES): Use
966         @pxref instead of @ref.
967
968 2011-06-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
969
970         help: improve text about automatically-distributed files
971         This change fixes automake bug#7819.
972         * automake.in (usage): Distinguish between files that are always
973         automatically distributed when found, and those which are only
974         "under certain conditions".
975         * doc/automake.texi (Basics of Distribution): Update accordingly.
976         * tests/autodist-subdir.test: Update.
977         * tests/autodist-no-duplicate.test: Likewise.
978         * tests/autodist.test: Likewise.
979         (configure.in): Remove useless call to AM_MAINTAINER_MODE.
980
981 2011-06-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
982
983         refactor: split 'usage' subroutine in automake
984         This change is related to automake bug#7819.
985         * automake.in (print_autodist_files): New subroutine,
986         extracted from ...
987         (usage): ... this, which now uses it.
988         * tests/autodist-no-duplicate.test: New test.
989         * tests/Makefile.am (TESTS): Update.
990
991 2011-06-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
992
993         tests: fix bug in 'autodist.test'
994         * tests/autodist.test: Avoid spurious failure due to no
995         `defs-static' file being found in the parent directory.
996
997 2011-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
998
999         maintcheck: extend 'sc_tests_plain_*' checks
1000         * Makefile.am (sc_tests_plain_autom4te): New check.
1001         (sc_tests_plain_autoreconf): Likewise.
1002         (sc_tests_plain_autoheader): Likewise.
1003         (syntax_check_rules): Update.
1004
1005 2011-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1006
1007         tests: interactions between TESTS_ENVIRONMENT and LOG_COMPILER
1008         * tests/tests-environment-and-log-compiler.test: New test,
1009         checking that we can use variables and functions set by
1010         TESTS_ENVIRONMENT and AM_TESTS_ENVIRONMENT in LOG_COMPILER
1011         and LOG_FLAGS (for tests both with and without registered
1012         extensions).
1013         * tests/Makefile.am (TESTS): Update.
1014
1015 2011-06-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1016
1017         maintcheck: avoid few spurious failures
1018         * Makefile.am (sc_tests_plain_aclocal, sc_tests_plain_perl,
1019         sc_tests_plain_autoconf, sc_tests_plain_automake,
1020         sc_tests_plain_autoupate): Be stricter in matching an erroneous
1021         literal command, i.e., `aclocal', `automake', `perl', etc.
1022
1023 2011-06-20  Bert Wesarg <bert.wesarg@googlemail.com>  (tiny change)
1024
1025         check: don't use multi-line coloring for the report
1026         "less -R" can't handle multi-line coloring as it is done for the
1027         check reports of the serial and parallel testsuite, because of
1028         performance reasons.  Thus, color each line of the check report
1029         by its own.
1030         * lib/am/check.am (am__text_box): Accept colors for lines, and
1031         color each line by its own.
1032         [%?PARALLEL_TESTS%] $(TEST_SUITE_LOG): Let am__text_box handle
1033         the line coloring.
1034         [!%?PARALLEL_TESTS%] $(check-TESTS): Color each report line by
1035         its own.
1036         * THANKS: Update.
1037
1038 2011-06-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1039
1040         docs: AM_DISTCHECK_CONFIGURE_FLAGS is for corner cases
1041         * doc/automake.texi (Checking the Distribution): Explain that the
1042         developers should take care of making their code buildable without
1043         requiring any special configure options, so that in general
1044         AM_DISTCHECK_CONFIGURE_FLAGS shouldn't be used.  Give an example
1045         of where its use is legitimate.
1046         Suggestions from Ralf Wildenhues and Eric Blake.
1047
1048 2011-06-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1049
1050         ansi2knr: deprecate, it will go away in the next major release
1051         * doc/automake.texi: Loudly and repeatedly state that the old
1052         de-ANSI-fication features are now deprecated and will be removed
1053         in the next major Automake release.  Other related adjustments.
1054         * lib/Automake/Options.pm (_process_option_list ): Give a warning
1055         in the `obsolete' category when the `ansi2knr' option is used.
1056         * m4/protos.m4 (AM_C_PROTOTYPES): Deprecate this macro: a warning
1057         in the `obsolete' category will be emitted it if is used.
1058         * tests/ansi2knr-deprecation.test: New test.
1059         * tests/Makefile.am (TESTS): Update.
1060         * tests/ansi.test: Adjust, by calling autoconf and/or automake
1061         with the `-Wno-obsolete' flag.
1062         * tests/ansi10.test: Likewise.
1063         * tests/ansi2.test: Likewise.
1064         * tests/ansi3.test: Likewise.
1065         * tests/ansi3b.test: Likewise.
1066         * tests/ansi4.test: Likewise.
1067         * tests/ansi5.test: Likewise.
1068         * tests/ansi6.test: Likewise.
1069         * tests/ansi7.test: Likewise.
1070         * tests/ansi8.test: Likewise.
1071         * tests/ansi9.test: Likewise.
1072         * tests/cxxansi.test: Likewise.
1073         * tests/libobj8.test: Likewise.
1074         * NEWS: Update about the future planned backward-incompatibility
1075         due to the removal of de-ANSI-fication feature.
1076
1077 2011-06-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1078
1079         docs: primary/prefix combination "pkglib_PROGRAMS" is now invalid
1080         * doc/automake.texi (Program Sources): pkglib_PROGRAMS is not a
1081         valid combination anymore, so don't document it.  Inconsistency
1082         introduced in commit `v1.11-373-g9ca6326'.
1083
1084 2011-06-19  Jim Meyering  <meyering@redhat.com>
1085
1086         docs: replace obsolete @vindex entry with a useful one
1087         * doc/automake.texi (Program Sources): Do not index obsolete
1088         pkglib_PROGRAMS here.  Do index pkglibexec_PROGRAMS.
1089
1090 2011-06-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1091
1092         tests: more checks on portable fd redirection in TESTS_ENVIRONMENT
1093         * tests/tests-environment-fd-redirect.test: Extend by also using
1094         a perl script among the tests.  Run the test shell script with
1095         the `errexit' flag active.  Export `VERBOSE' to yes when running
1096         "make check", to give more debugging information in case of
1097         failures.  Look for a Korn Shell also in `/usr/bin', not on only
1098         in `/bin'.
1099
1100 2011-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1101
1102         tests: optimize tests on primary/prefix mismatch for speed
1103         * tests/primary-prefix-invalid-couples.test: Partial rewrite, in
1104         order to use just a single automake invocation rather than one
1105         invocation for each invalid primary/prefix couple.  This improves
1106         the test script execution time by an order of magnitude.
1107         Since we are at it, throw in some other improvements to avoid
1108         unrelated automake warnings and failures that could potentially
1109         cause false positives w.r.t. the automake exit status.
1110
1111 2011-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1112
1113         news: update w.r.t. introduction of AM_DISTCHECK_CONFIGURE_FLAGS
1114         * NEWS (Miscellaneous changes): Update.
1115
1116 2011-06-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1117
1118         maintcheck: DISTCHECK_CONFIGURE_FLAGS can be defined on make cmdline
1119         * Makefile.am (sc_tests_overriding_macros_on_cmdline): It's now
1120         acceptable that the test scripts override DISTCHECK_CONFIGURE_FLAGS
1121         on the make command line.  Update comments accordingly.  Since we
1122         are at it, make the relevant grepping rules slightly tighter.
1123
1124 2011-06-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1125
1126         distcheck: add support for AM_DISTCHECK_CONFIGURE_FLAGS
1127         * doc/automake.texi (Checking the Distribution): Suggest to use
1128         AM_DISTCHECK_CONFIGURE_FLAGS, not DISTCHECK_CONFIGURE_FLAGS, to
1129         define (in the top-level Makefile.am) extra flags to be passed
1130         to configure at "make distcheck" time; DISTCHECK_CONFIGURE_FLAGS
1131         should be reserved for the user.  Add proper `@vindex' directive.
1132         Document that AM_DISTCHECK_CONFIGURE_FLAGS is not honoured in a
1133         subpackage Makefile.am, but the flags in it are passed down to
1134         the configure script of the subpackage.
1135         * lib/am/distdir.am (distcheck): Also pass the flags in
1136         $(AM_DISTCHECK_CONFIGURE_FLAGS) to the configure invocation.
1137         Update comments.
1138         * tests/defs.in.test (AM_DISTCHECK_CONFIGURE_FLAGS,
1139         DISTCHECK_CONFIGURE_FLAGS): Unset in case they are exported in
1140         the environment, they might improperly influence our testsuite.
1141         * tests/distcheck-configure-flags.test: New test.
1142         * tests/distcheck-configure-flags-am.test: Likewise.
1143         * tests/distcheck-configure-flags-subpkg.test: Likewise.
1144         * distcheck-hook.test: Likewise.
1145         * distcheck-hook2.test: Likewise.
1146         * tests/Makefile.am (TESTS): Update.
1147         Closes automake bug#8784.
1148
1149 2010-06-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
1150
1151         docs: better documentation for silent make rules
1152         * doc/automake.texi (Options): Detailed description of the
1153         automake option `silent-rules' moved from here ...
1154         (Silent Make): ... into this new chapter, expanded, improved,
1155         and subdivided into ...
1156         (Make verbosity, Tricks For Silencing Make,
1157         Automake silent-rules Option): ... these new sections.
1158         (@menu, @detailmenu): Update.
1159         * tests/silent-configsite.test: New test, checking that the
1160         user can control default mode of silent-rules from config.site,
1161         as is documented in the manual.
1162         * tests/Makefile.am (TESTS): Updated.
1163
1164 2011-06-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
1165
1166         Warnings about primary/prefix mismatch fixed and extended.
1167         * automake.in (%standard_prefix): Add `doc' and `locale'.
1168         Rename `pkgdatadir' to `pkgdata'.  Similarly for`pkglibdir',
1169         `pkgincludedir' and `pkglibexecdir'.
1170         (handle_programs): List `pkglibexec', not `pkglib', among the
1171         prefixes valid for the `PROGRAMS' primary.
1172         (handle_data): List also `doc' among the prefixes valid for
1173         the `DATA' primary.  This is required by automake's own build
1174         system.
1175         * tests/dirforbid.test: Test removed, superseded by ...
1176         * tests/primary-prefix-invalid-couples.test: ... this new test.
1177         * tests/primary-prefix-valid-couples.test: New test.
1178         * tests/primary-prefix-couples-documented-valid.test: Likewise.
1179         * tests/primary-prefix-couples-force-valid.test: Likewise.
1180         * tests/java3.test: Adjusted, and extended a bit.
1181         * tests/Makefile.am (TESTS): Updated.
1182         * NEWS: Updated.
1183         From a report by Eric Blake.
1184
1185 2011-06-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1186
1187         tests: check portable fd redirection in TESTS_ENVIRONMENT
1188         * tests/tests-environment-fd-redirect.test: New test.
1189         * tests/Makefile.am (TESTS): Update.
1190         Motivated by coreutils bug#8846:
1191          <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8846>
1192         See also following CC:ed thread on bug-autoconf list:
1193          <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00002.html>
1194
1195 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1196
1197         test defs: new function 'fatal_', for hard errors
1198         Before this patch, the only way offered by tests/defs to
1199         properly signal a hard error was the `framework_failure_'
1200         function.  But the error message issued by that function,
1201         as its name would suggest, refers to a set-up failure in the
1202         testsuite, while hard errors can obviously also be due to
1203         other reasons.  The best way to fix this inconsistency is to
1204         introduce a new function with a more general error message.
1205         Inspired by a recent similar change to Gnulib's tests/init.sh.
1206         * tests/defs.in (fatal_): New function.
1207         * tests/README (Section "Writing test cases" subsection "Do"):
1208         Suggest the use of `fatal_', not of `framework_failure_', for
1209         generic hard errors.  The latter should be reserved for "real"
1210         set-up failures.
1211
1212 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1213
1214         py-compile: '--' and non-option arguments terminate the option list
1215         * lib/py-compile: Any non-option argument, or the special `--'
1216         argument, now explicitly terminates the list of options.
1217         * tests/py-compile-option-terminate.test: New test.
1218         * tests/Makefile.am (TESTS): Update.
1219         * NEWS: Update.
1220
1221 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1222
1223         py-compile: complain on unrecognized options
1224         * lib/py-compile: Complain on unrecognized options.  Don't be too
1225         lax in matching `--help' and `--version' options.
1226         * tests/py-compile-usage.test: Extend accordingly.
1227         * NEWS: Update.
1228
1229 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1230
1231         py-compile: normalize error and help messages
1232         * lib/py-compile: Now error messages do not begin with a capital
1233         letter, nor end with a period, as per GNU standards.  Prepend the
1234         error messages with the name of the script, not with its path.
1235         When an invalid usage is recognized, always display the customary
1236         message "Try `py-compile --help' ..." on a line of its own.
1237         ($me): New variable, containing the name of the
1238         program, i.e., `py-compile'.  Use it throughout.
1239         (usage_error): New function, used to display error messages about
1240         invalid usage.
1241         * tests/py-compile-usage.test: Extend and tighten accordingly.
1242
1243 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1244
1245         python tests: add "unit tests" on py-compile
1246         * tests/py-compile-basic.test: New test.
1247         * tests/py-compile-basic2.test: New test.
1248         * tests/py-compile-basedir.test: Likewise.
1249         * tests/py-compile-destdir.test: Likewise.
1250         * tests/py-compile-env.test: Likewise.
1251         * tests/py-compile-usage.test: Likewise.
1252         * tests/Makefile.am (TESTS): Update.
1253         Tested with python 2.0.1, 2.4.6, 2.6.6, 2.7.1, and 3.1.3.
1254
1255 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1256
1257         py-compile: the '--destdir' option now accepts a blank argument
1258         * lib/py-compile (Option parsing): Do not count an empty argument
1259         to `--destdir' or `--basedir' as a missing argument.
1260         * lib/python.am: Simplify accordingly, passing the `--destdir'
1261         option to py-compile unconditionally, even if `$(DESTDIR)' is
1262         empty.
1263         * NEWS: Update.
1264
1265 2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1266
1267         python: run the 'py-compile' script with $(SHELL)
1268         * lib/python.am (install-%DIR%PYTHON): Run each instance of
1269         py-compile using $(SHELL).  Since we are at it, break overly
1270         long lines.
1271         (am__py_compile): New variable, to reduce code duplication.
1272
1273 2011-06-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
1274
1275         tests: fix typo-related error in auxdir2.test
1276         * tests/auxdir2.test (configure.in):  Close m4 quoting in the
1277         argument to AC_CONFIG_AUX_DIR.  Without this, aclocal fails with
1278         "ERROR: end of file in string".  This problem hasn't been exposed
1279         by the testsuite before because this test is in XFAIL_TESTS, so
1280         its failure went unnoticed, even if it was due to a wrong cause.
1281         Bug introduced in commit v1.11-249-g49ac3de.
1282
1283 2011-06-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1284
1285         maintcheck: fix some more failures
1286         * tests/instdir-ltlib.test: Use creative quoting to avoid
1287         spuriously triggering the `sc_rm_minus_f' maintainer check.
1288         * tests/instdir-prog.test: Likewise.
1289         * tests/instspc-data.test: Use creative quoting to avoid
1290         spuriously triggering the `sc_tests_Exit_not_exit' maintainer
1291         check.
1292
1293 2011-06-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1294
1295         maintcheck: fix some failures, extend some checks
1296         * Makefile.am (sc_diff_automake_in_automake): Update, as we
1297         now expect 9 lines, not 8, to be changed from `automake.in'
1298         to `automake'.
1299         (sc_diff_aclocal_in_aclocal): New maintainer check, similar to
1300         the above, and checking that only 10 lines are changed from
1301         `aclocal.in' to `aclocal'.
1302         (syntax_check_rules): Update.
1303         (sc_tests_Exit_not_exit): Exempt self tests `self-check-*.test'
1304         from this check, as they can legitimately use the bare `exit'
1305         builtin in various places.
1306         * doc/automake.texi (Python): Remove stray `@' from the end of
1307         a line.  Typo introduced in commit `v1.11-312-g5bf7af6'.
1308         * tests/depcomp8a.test: Pass DISTCHECK_CONFIGURE_FLAGS to make
1309         from the environment rather than from the command line, to
1310         pacify the `sc_tests_overriding_macros_on_cmdline' maintainer
1311         check.
1312         * tests/depcomp8b.test: Likewise.
1313
1314 2011-05-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
1315
1316         remake: behave better with non-GNU make in subdirectories
1317         Currently, with every decent make program, it is possible to
1318         rebuild out-of-date autotools-generated files with a simple
1319         "make Makefile" -- but for this to work reliably with non-GNU
1320         make implementations, the command must be issued from the
1321         top-level directory.  This patch removes such limitation.
1322         * lib/am/configure.am (am--refresh): Depend on `%MAKEFILE%'.
1323         * tests/remake-subdir.test: New test.
1324         * tests/remake-subdir2.test: Likewise.
1325         * tests/remake-subdir-gnu.test: Likewise.
1326         * tests/remake-subdir-from-subdir.test: Likewise.
1327         * tests/Makefile.am (TESTS): Update.
1328
1329 2011-05-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
1330
1331         automake, aclocal: honour configure-time AUTOCONF and AUTOM4TE
1332         Currently, the Automake's own configure script allow definition
1333         of AUTOCONF and AUTOM4TE, expected to point respectively to an
1334         autoconf and autom4te programs.  But while these definitions are
1335         honoured in the Automake's build systems and test suite, they
1336         were *not* honoured in the generated `automake' and `aclocal'
1337         scripts.  This behaviour, apart from being wrong in that it does
1338         not allow the user enough freedom in choosing his tools, also
1339         caused inconsistencies in the test suite, brining to spurious
1340         failures.
1341         Problem reported by Graham Reitz on the automake list; see thread:
1342         <http://lists.gnu.org/archive/html/automake/2011-05/msg00022.html>
1343         * automake.in ($traces): Use `@am_AUTOCONF', not simply `autoconf'.
1344         * aclocal.in ($traces): Use `@am_AUTOM4TE', not simply `autom4te'.
1345         * Makefile.am (do_subst): Substitute also `@am_AUTOCONF' and
1346         `@am_AUTOM4TE'.
1347         * NEWS: Update.
1348         * THANKS: Update.
1349
1350 2011-05-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
1351
1352         build: the user can override AUTOM4TE, AUTORECONF and AUTOUPDATE too
1353         Our build system allows the user to override AUTOCONF and AUTOHEADER
1354         at configure time, and honours these overrides in our testsuite.
1355         But it didn't do the same with AUTOM4TE, AUTORECONF and AUTOUPDATE.
1356         This change fixes that inconsistency.
1357         * configure.ac (am_AUTOM4TE, am_AUTOUPDATE, am_AUTORECONF): New
1358         AC_SUBSTitutions.  Update comments.
1359         * tests/defs.in ($AUTOUPDATE): Default to `@am_AUTOUPDATE@' now.
1360         ($AUTOM4TE): New variable, defaulting to `@am_AUTOM4TE@'.
1361         ($AUTORECONF): New variable, defaulting to `@am_AUTORECONF@'.
1362         * doc/Makefile.am ($(srcdir)/amhello-1.0.tar.gz): Update.
1363
1364 2011-05-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1365
1366         parallel-tests: stricter checks on DISABLE_HARD_ERRORS support
1367         * tests/parallel-tests-harderror.test: New test, doing more
1368         in-depth checks on DISABLE_HARD_ERRORS.
1369         * tests/parallel-tests.test: Remove tests on DISABLE_HARD_ERRORS,
1370         now redundant.
1371         * tests/Makefile.am (TESTS): Update.
1372
1373 2011-05-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1374             Stefano Lattarini  <stefano.lattarini@gmail.com>
1375
1376         tests/README: fix example about `make -e' usage
1377         * tests/README (Section "Writing test cases" subsection "Do"): When
1378         some variable is never initialized in the Makefile, `-e' is not
1379         necessary in order to override it.  DESTDIR is such a variable: we
1380         ensure that we do not ever initialize it.  And as such, it is quite
1381         portable to use:
1382           $ make DESTDIR=/foo/bar install
1383         and in fact, quite widely used.
1384         So our example about when `make -e' is required, which references
1385         the `DESTDIR' variable, is poorly chosen, if not downright wrong.
1386         Rewrite it to use `prefix' as the overridden variable instead.
1387
1388 2011-05-27  Stefano Lattarini  <stefano.lattarini@gmail.com>
1389
1390         testsuite: each test case depends on `defs-static'
1391         * tests/Makefile.am ($(TEST_LOGS)): Depends on `defs-static' too.
1392         Simplify comments.
1393
1394 2011-05-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1395
1396         testsuite: avoid re-running few tests with 'parallel-tests' option
1397         Some tests in our testsuite use the 'simple-tests' driver only
1398         marginally, or simply as a mean to conveniently check unrelated
1399         invariants.  It makes little sense to force these tests to also
1400         run with the 'parallel-tests' Automake option active, as doing so
1401         offers no real gain in coverage, while often causing a measurable
1402         overhead in execution time (for an already too-slow testsuite).
1403         * tests/pr401.test (parallel_tests): Define to "no", to prevent
1404         the generation of a sibling test script using the 'parallel-tests'
1405         driver.
1406         * tests/pr401b.test: Likewise.
1407         * tests/pr401c.test: Likewise.
1408         * tests/java-flat.test: Likewise, and properly update heading
1409         comments.
1410         * tests/java-nested.test: Likewise, but defining `parallel_tests'
1411         to "yes" instead, for improved coverage in conjunction with the
1412         sister test `java-flat.test'.
1413
1414 2011-05-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1415
1416         testsuite: allow tests to avoid the use of 'parallel-tests' option
1417         * tests/gen-parallel-tests: Do not generate "siblings" for tests
1418         that explicitly define the `parallel_tests', whether to "yes" or
1419         to any other value.  Extend heading comments to give a rationale
1420         for this behaviour.
1421         * tests/README: Update.
1422
1423 2011-05-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1424
1425         tests/README: update obsoleted advice
1426         * tests/README (Section "Writing test cases" subsection "Do"):
1427         Do not suggest to use the `*-p.test' pattern for the names of
1428         hand-written tests which use the `parallel-tests' Automake option.
1429         Not only is this not respected by the existing tests, but it is
1430         more likely to cause conflicts with auto-generated tests.
1431         So, suggest to *avoid* using the `*-p.test' pattern in names
1432         of hand-written tests instead.
1433         (Section "Writing test cases" subsection "Do not"):  When
1434         suggesting not to override Makefile variables using command
1435         line arguments, do not use the badly outdated variables `U'
1436         and 'ANSI2KNR' in the example; instead, use the more common
1437         and typical `DESTDIR'.
1438
1439 2011-05-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1440
1441         test defs: rename requirement 'non-cross' -> 'native'
1442         * tests/defs.in (non-cross): Rename requirement ...
1443         (native): ... to this, which is clearer and fits the
1444         existing lingo better.
1445         Suggestion by Ralf Wildenhues.
1446
1447 2011-05-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1448
1449         testsuite: be more cross-compile friendly
1450         * tests/defs.in (cross_compiling): New subroutine.
1451         (am__tool_prefix): New internal variable.
1452         (gcc, g++, gcj): Force the use of the correct "tool prefix"
1453         when cross compiling.
1454         (gfortran, g77, non-cross): New requirements.
1455
1456 2011-05-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1457
1458         tests: fix portability issues in 'repeated-options.test'
1459         * tests/repeated-options.test: Do not assume that object files
1460         have `.o' suffix and executables have no default suffix; instead,
1461         use `$(OBJEXT)' and `$(EXEEXT)'.
1462
1463 2011-05-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
1464
1465         check: document and test $(TEST_SUITE_LOG) overriding
1466         * doc/automake.texi (Simple Tests using parallel-tests): Explain
1467         how and why TEST_SUITE_LOG can be overridden at runtime.
1468         * tests/parallel-tests-log-override-1.test: New test, check that
1469         the newly documented idiom and similar usages are truly supported.
1470         * tests/parallel-tests-log-override-2.test: Likewise.
1471         * tests/parallel-tests-log-override-recheck.test: Likewise.
1472         * tests/Makefile.am (TESTS): Update.
1473
1474 2011-05-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1475
1476         tests: fix spurious failure of txinfo21.test on FreeBSD
1477         * tests/txinfo21.test: Use the `is_newest' subroutine instead of
1478         the `ls -t' hack to to determine whether a file has been updated.
1479         This is required because at least FreeBSD `ls' do not sort files
1480         with the same timestamp in alphabetical order when using the `-t'
1481         option.
1482
1483 2011-05-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1484
1485         tests: fix spurious failure of extradep.test on FreeBSD
1486         * tests/extradep.test: When using `ls -t' to determine whether a
1487         file has been updated, make sure to use as reference a file whose
1488         timestamp is expected to be *strictly* older that that of the file
1489         being checked.  This is required because at least FreeBSD `ls' do
1490         not sort files with the same timestamp in alphabetical order when
1491         using the `-t' option.
1492         * tests/extradep2.test: Likewise.
1493
1494 2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1495
1496         tests defs: use `skip_' for skipping java-related tests
1497         * tests/defs.in (java, javac): Use `skip_' to signal test
1498         skipping.
1499
1500 2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1501
1502         tests defs: allow requirements for compilers (mostly dummy)
1503         Most of the new requirements that are now accepted in `$required'
1504         as consequence of this patch are still dummy.  They are planned
1505         to be implemented only in master (or in some derived branch), but
1506         having them here (even just as no-op) will allow for an easier
1507         integration/backporting of potential new testcases.
1508         * tests/defs.in (cc, c++, fortran, fortran77): New requirements,
1509         still dummy.
1510         (flex): New requirement, picking LEX for configure.
1511         (lex): New requirement, alias for `flex'.  A more appropriate
1512         implementation, looking for a generic `lex' program, will follow
1513         in the future.
1514
1515 2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
1516
1517         tests: add forgotten test scripts to $(TESTS)
1518         * tests/Makefile.am (TESTS): Added test scripts  man[678].test,
1519         which have been present on the filesystem and in the repository,
1520         but which had erroneously been left out from $(TESTS).
1521
1522 2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
1523
1524         tests: ensure verbose printing of captured make output
1525         * tests/libtool7.test: Ensure verbose printing of captured
1526         make output.
1527         * tests/libtool9.test: Likewise.
1528
1529 2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
1530
1531         tests: fix spurious failure in 'color2.test'
1532         * tests/color2.test: If $MAKE contains command-line arguments (as
1533         in e.g., "make -j2"), expect's directive "spawn $env(MAKE)" fails
1534         spuriously, because it tries to run "$MAKE" as a single command.
1535         Fix this with proper uses of the TCL `eval' builtin.
1536
1537 2011-05-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
1538
1539         tests: fix self check spurious failure with older bash versions
1540         * tests/self-check-cleanup.test: Add trailing `:' to the test code
1541         passed to $SHELL, otherwise older versions of bash (at least 2.05
1542         and 3.2.39) fail to correctly remove the temporary directory in
1543         the exit trap.
1544
1545 2011-04-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
1546
1547         testsuite: more environment sanitization
1548         * tests/defs: Move the checks verifying that the variables `me',
1549         `parallel_tests' and `required' aren't set in the environment ...
1550         * tests/defs-static.in: ... in here, with some optimizations to
1551         avoid useless forks.  Also, do the same checks for the variables
1552         `original_AUTOMAKE' and `original_ACLOCAL' too.
1553         * tests/self-check-env-sanitize.test: Update.
1554         * tests/Makefile.am (TESTS_ENVIRONMENT): Unset also variables
1555         `original_AUTOMAKE' and `original_ACLOCAL'.
1556
1557 2011-04-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
1558
1559         tests: fix spurious failure (non-renamed AM_TESTS_SETUP usage)
1560         * tests/parallel-tests-reset-term.test: Use AM_TESTS_ENVIRONMENT
1561         instead of AM_TESTS_SETUP (which has been removed in commit
1562         v1.11-349-g12f48fa).
1563         Fix spurious failure introduced by merge `v1.11-781-gfeed175'.
1564
1565 2011-04-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
1566
1567         tests: fix spurious failure in a test on TESTS (VPATH-related)
1568         * tests/check-tests-in-builddir.test: When not using the
1569         parallel-tests option, do not check that VPATH components are
1570         not present in the displayed test name, since the simple-tests
1571         driver do not try to strip them.
1572
1573 2011-04-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
1574
1575         tests: fix spurious failure in self-check-env-sanitize.test
1576         * tests/self-check-env-sanitize.test: Open file descriptor `5'
1577         to stdout.
1578         Fix spurious failure introduced by merge `v1.11-788-g3b0c8d5'.
1579
1580 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1581
1582         test: self check subroutines for skipping/failing of tests
1583         * tests/self-check-report.test: New test.
1584         * tests/Makefile.am (TESTS): Update.
1585
1586 2011-04-23  Jim Meyering  <meyering@redhat.com>
1587             Stefano Lattarini  <stefano.lattarini@gmail.com>
1588
1589         test defs: new subroutines for test skipping/failing
1590         * tests/defs.in (Exit): Move definition of this function earlier.
1591         (warn_, skip_, fail_, framework_failure_): New functions, inspired
1592         to the homonyms in gnulib's tests/init.sh.
1593         ($stderr_fileno_): New global variable, used by the new functions
1594         above.
1595         * tests/README: Updated.
1596         From a suggestion by Ralf Wildenhues.
1597
1598 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1599
1600         tests: fix typo (copy & paste blunder) in heading comment
1601         * tests/maintclean-vpath.test: Correctly refer to the sister test
1602         as `maintclean.test', not as `maintclean-vpath.test'.
1603
1604 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1605
1606         tests: remove redundant test `mclean.test'
1607         * tests/mclean.test: Remove, it's a weak grepping test completely
1608         superseded by the much more complete `maintclean.test'.
1609         * tests/Makefile.am (TESTS): Update.
1610
1611 2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
1612
1613         java tests: use $PATH_SEPARATOR where appropriate
1614         * tests/java-compile-run-nested.test: Use `$PATH_SEPARATOR', not
1615         `:', to separate entries of extended PATH and CLASSPATH variables.
1616         * tests/java-compile-run-flat.test: Likewise.
1617
1618 2011-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1619
1620         java coverage: test JAVACFLAGS and AM_JAVACFLAGS
1621         * tests/javaflags.test: New test.
1622         * tests/Makefile.am (TESTS): Update.
1623
1624 2011-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1625
1626         java coverage: test rebuild rules for java
1627         * tests/java-rebuild.test: New test.
1628         * tests/Makefile.am (TESTS): Update.
1629
1630 2011-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1631
1632         java coverage: try to build and run a java program
1633         * tests/java-compile-run-flat.test: New test, try to build and run
1634         a "UNIX-style" java program (complete with wrapper shell script
1635         and the like) with a "flat" source-tree setup (i.e., everything in
1636         the top-level directory).
1637         * tests/java-compile-nested.test: Likewise, but using a more
1638         typical "nested" source-tree setup.
1639         * tests/Makefile.am (TESTS): Update.
1640
1641 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1642
1643         test defs: new requirement for the default java interpreter
1644         * tests/defs.in (for tool in $required): New requirement 'java'.
1645
1646 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1647
1648         java tests: tweak and make stricter a couple of tests
1649         * tests/javasubst.test: Use proper m4 quoting.  Add trailing `:'
1650         command.  Enable `errexit' shell flag, and related changes.
1651         Prefer cat + here-doc over echo to append to configure.in.
1652         Make grepping of Makefile.in stricter.  Add debugging output.
1653         Improve heading comments.
1654         * tests/javaprim.test: Likewise.
1655
1656 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1657
1658         java coverage: add test on uninstall with JAVA primary
1659         * tests/java-uninstall.test: New test.
1660         * tests/Makefile.am (TESTS): Update.
1661
1662 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1663
1664         java tests: require java compiler more properly
1665         * tests/java-extra.test: Use "required=javac" instead of ad-hoc
1666         configure check.
1667         * tests/java-noinst.test: Likewise.
1668
1669 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1670
1671         java: allow both JAVA and nobase_JAVA in the same Makefile.am
1672         * automake.in (handle_java): Also strip `nobase_' from the given
1673         prefix, when needed.
1674         * tests/java-clean.test: Update and extend.
1675         * tests/java-compile-install.test: Likewise.
1676         * tests/java-no-duplicate.test: Likewise.
1677         * tests/java-sources.test: Likewise.
1678         * tests/java-noinst.test: Likewise.
1679         * tests/java-mix-dist-nodist.test: Renamed to ...
1680         * tests/java-mix.test: ... this, and extended.
1681         * tests/java-nobase.test: New test, still xfailing due to
1682         unrelated issues.
1683         * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
1684
1685 2011-04-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1686
1687         testsuite: more environment sanitization
1688         * tests/defs.in: Sanity check: abort if any of `parallel_tests'
1689         or `required' is in the environment.
1690         ($sed_unindent_prog): Initialize to empty, to avoid interferences
1691         from the environment.
1692         * tests/self-check-me-in-env.test: Renamed to ...
1693         * tests/self-check-env-sanitize.test: ... this, and extended.
1694         * tests/Makefile.am (TESTS): Update.
1695         (TESTS_ENVIRONMENT): Unset variables `parallel_tests' and
1696         `required'.  Adjust comments.
1697
1698 2011-04-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1699
1700         tests: in self-checks, use $SHELL, not /bin/sh
1701         * tests/self-check-me-in-env.test: Include `./defs-static' to get
1702         the definition of `$SHELL'.  Use `$SHELL' instead of `/bin/sh' to
1703         execute the tests.
1704
1705 2011-04-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1706
1707         tests: prefer AM_TESTS_ENVIRONMENT to TESTS_ENVIRONMENT
1708         * tests/Makefile.am (TESTS_ENVIRONMENT): Renamed to ...
1709         (AM_TESTS_ENVIRONMENT): ... this.
1710
1711 2011-04-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1712
1713         tests: don't allow `$me' to be overridden from the environment
1714         * tests/defs.in: Sanity check: abort if $me is in the environment.
1715         * tests/self-check-me-in-env.test: New test.
1716         * tests/Makefile.am (TESTS_ENVIRONMENT): Unset variable `me'.
1717         (TESTS): Update.
1718         Suggestion by Ralf Wildenhues.
1719
1720 2011-04-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1721
1722         check: rename AM_TESTS_SETUP -> AM_TESTS_ENVIRONMENT
1723         The AM_TESTS_SETUP naming was not a good one after all.  It may
1724         be technically more correct than AM_TESTS_ENVIRONMENT, but the
1725         latter is a better one simply because it is easier to remember,
1726         and even if you've never heard of it and only know the semantics
1727         of TESTS_ENVIRONMENT, you can have a straightforward way to
1728         figure out how AM_TESTS_ENVIRONMENT would work.
1729         * tests/check.am (am__check_pre): Update.
1730         * doc/automake.in (Simple Tests using parallel-tests): Update.
1731         * tests/parallel-tests-am_tests_setup.test: Renamed ...
1732         * tests/parallel-tests-am_tests_environment.test: ... to this,
1733         and updated.
1734         * tests/Makefile.am (TESTS): Update.
1735         Suggestion and motivation by Ralf Wildenhues.
1736
1737 2011-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1738
1739         test defs: allow overriding of `$me'
1740         * tests/defs.in ($me): Allow overriding by the including test
1741         script.  Add some explicative comments.
1742
1743 2011-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1744
1745         coverage: more tests on the parallel-tests driver
1746         * tests/parallel-tests-interrupt.test: New test.
1747         * tests/parallel-tests-reset-term.test: Likewise.
1748         * tests/Makefile.am (TESTS): Update.
1749
1750 2011-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1751
1752         check: new developer-reserved AM_TESTS_SETUP variable
1753         For reference, see the discussion at:
1754         <http://lists.gnu.org/archive/html/automake-patches/2011-01/msg00213.html>
1755         * lib/am/check.am [%?PARALLEL_TESTS%] (am__check_pre): Pass also
1756         $(AM_TESTS_SETUP).  Comments updated, and some typos fixed.
1757         * doc/automake.texi (Simple Tests using parallel-tests): Document
1758         AM_TESTS_SETUP.  Reorder some of the existing documentation a bit.
1759         * tests/parallel-tests-am_tests_setup.test: New test.
1760         From a suggestion by Ralf Wildenhues.
1761
1762 2011-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1763
1764         depcomp tests: don't reject slower dependency extractors
1765         * tests/depcomp8b.test: Add the `--enable-dependency-tracking'
1766         option to `configure' invocations, so that slower dependency
1767         extractors are not rejected.
1768         * tests/depcomp8a.test: Likewise.  Also ...
1769         (foo.c): ... since we are at it, fix spacing to be consistent
1770         with GNU coding standards.
1771
1772 2011-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1773
1774         m4: add missing serial numbers to a few files
1775         Fixes automake bug#8483.
1776         * m4/amversion.in: Add serial number.
1777         * m4/auxdir.m4: Likewise.
1778         * m4/gcj.m4: Likewise.
1779         * m4/install-sh.m4: Likewise.
1780         * m4/mkdirp.m4: Likewise.
1781         * m4/python.m4: Likewise.
1782         * m4/runlog.m4: Likewise.
1783         * m4/strip.m4: Likewise.
1784         * m4/upc.m4: Likewise.
1785
1786 2011-04-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1787
1788         tests: fix few bugs in self checks
1789         Related to automake bug#8508.
1790         * tests/self-check-cleanup.test: Be laxer when grepping output
1791         from `ls -l', to account for ACLs and SELinux-only files.
1792         * tests/self-check-dir.test: Source `defs-static' to read in the
1793         correct definition for $SHELL.
1794         * tests/self-check-me.test: Likewise, and extend a bit.
1795         Report from Jim Meyering.
1796
1797 2011-04-16  Jim Meyering  <meyering@redhat.com>
1798
1799         depcomp: correct invalid sed invocation
1800         * lib/depcomp: Insert missing -e before '/:$/d'.
1801         Otherwise, that use of sed would treat '/:$/d' as a file name.
1802
1803 2011-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1804
1805         maintainer check: quote literal `$' in Makefile rule
1806         * Makefile.am (sc_tests_PATH_SEPARATOR): Escape literal `$'
1807         character in double-quoted string.  Fix a bug in which the rule
1808         emitted an erroneously empty substring in its error message.
1809
1810 2011-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1811
1812         tests: fix typo in python5b.test
1813         * tests/python5b.test: Remove extra `:' from $PATH redefinition.
1814
1815 2011-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1816
1817         tests: remove redundant settings of `errexit' shell flag
1818         * tests/autodist-acconfig.test: Do not set the `errexit'
1819         shell flag, as it is already set by `tests/defs'.
1820         * tests/autodist-acconfig-no-subdir.test: Likewise.
1821         * tests/autodist-aclocal-m4.test: Likewise.
1822         * tests/autodist-config-headers.test: Likewise.
1823         * tests/autodist-configure-no-subdir.test: Likewise.
1824         * tests/autodist-stamp-vti.test: Likewise.
1825         * tests/autodist-subdir.test: Likewise.
1826         * tests/autodist.test: Likewise.
1827         * tests/check-exported-srcdir.test: Likewise.
1828         * tests/check-tests-in-builddir.test: Likewise.
1829         * tests/check-tests_environment.test: Likewise.
1830         * tests/help-python.test: Likewise.
1831         * tests/java-check.test: Likewise.
1832         * tests/java-extra.test: Likewise.
1833         * tests/java-noinst.test: Likewise.
1834         * tests/lex-subobj-nodep.test: Likewise.
1835         * tests/ltinit.test: Likewise.
1836         * tests/m4-inclusion.test: Likewise.
1837         * tests/maintclean-vpath.test: Likewise.
1838         * tests/parallel-tests-subdir.test: Likewise.
1839         * tests/pr8365-remake-timing.test: Likewise.
1840         * tests/python-dist.test: Likewise.
1841         * tests/python-vars.test: Likewise.
1842         * tests/python-virtualenv.test: Likewise.
1843         * tests/python5b.test: Likewise.
1844         * tests/specflg-dummy.test: Likewise.
1845         * tests/yacc-dist-nobuild-subdir.test: Likewise.
1846         
1847 2011-04-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1848
1849         coverage: test for automake bug#8485 (known regression)
1850         * tests/yacc-dist-nobuild-subdir.test: New test.
1851         * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
1852
1853 2011-04-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1854
1855         test defs: define default $distdir (help reducing duplication)
1856         * tests/defs ($distdir): New variable, might be used in
1857         testcases checking distribution-related features.
1858         * tests/pr9.test: Use it.
1859         * tests/subdir9.test: Likewise.
1860         * tests/lex3.test: Likewise.
1861         * tests/lexvpath.test: Likewise.
1862         * tests/remake-moved-m4-file.test: Likewise.
1863         * tests/remake-renamed-m4-file.test: Likewise.
1864         * tests/remake-renamed-m4-macro-and-file.test: Likewise.
1865         * tests/yacc-basic.test: Likewise.
1866         * tests/yacc-d-basic.test: Likewise.
1867         * tests/yacc-d-vpath.test: Likewise.
1868         * tests/yacc-dist-nobuild.test: Likewise.
1869         * tests/vtexi3.test: Add comment explaining why we redefine
1870         $distdir in this test.
1871
1872 2011-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
1873
1874         depcomp: fix bugs in tests and in the depcomp script
1875         * lib/depcomp (gcc): Remove duplicated `-e' from sed invocation.
1876         * tests/depcomp10.test: Make it executable.  Fix a blunder that
1877         has left part of an intended comment not prefixed by `#', thus
1878         causing shell syntax errors.  In this same comment, break a
1879         too-long reported error message on multiple lines, for clarity.
1880         Add reference to the relevant bug report.  Add a comment which
1881         explains why the test result 'skipped' if the first "make" call
1882         fails.  Add other useful comments.
1883         * tests/depcomp9.test: Slightly improve comments.
1884
1885 2011-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1886
1887         Fix hp depmode for VPATH builds with GNU make.
1888         * lib/depcomp: Be sure to remove VPATH-prefixed object from
1889         dependency output when creating stub rule.
1890         * tests/depcomp10.test: New test.
1891         * tests/Makefile.am (TESTS): Update.
1892         * NEWS: Update.
1893         Report by Bruno Haible.
1894
1895 2011-04-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1896
1897         java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am
1898         Fixes automake bug#8434.
1899         * automake.in (handle_java): Strip `dist_' and `nodist_' from
1900         the given prefix.  Define a new internal Makefile variable
1901         `am__java_sources'.  Related adjustments.
1902         * lib/am/java.am (JAVAC, JAVAROOT, CLASSPATH_ENV): Define only the
1903         first time this am file is processed.
1904         (class%DIR%.stamp): Stamp file renamed ...
1905         (class%NDIR%.stamp): ... to this, so that the `dist_' and `nodist_'
1906         prefixes are stripped from the name of the stampfile.  Adjust
1907         declaration of dependencies by using the new automake-generated
1908         internal variable `$(am__java_sources)'.  In the rule, use `$@'
1909         as the name of the target, rather than hard-coding it.
1910         * tests/java.test: Update and extend.
1911         * tests/java-no-duplicate.test: New test.
1912         * tests/java-mix-dist-nodist.test: Likewise.
1913         * tests/java-compile-and-install.test: Likewise.
1914         * tests/java-clean.test: Likewise.
1915         * tests/java-sources.test: Likewise.
1916         * tests/Makefile.am (TESTS): Update.
1917
1918 2011-04-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
1919
1920         coverage: more on java support EXTRA_ and noinst_ prefixes
1921         * tests/java-extra.test: New test, checking support for the
1922         prefix `EXTRA_' with the JAVA primary.
1923         * tests/java-noinst.test: New test, checking support for the
1924         prefix `noinst_' with the JAVA primary.
1925         * tests/Makefile.am (TESTS): Update.
1926
1927 2011-04-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1928
1929         test defs: fix 'javac' requirement for older JDK versions
1930         The Java compiler from JDK 1.5 (and presumably earlier versions)
1931         cannot handle the `-version' option by itself; and while it does
1932         print the version number, it then errors out with an usage error:
1933           $ javac -version
1934           javac 1.5.0_22
1935           javac: no source files
1936           Usage: javac <options> <source files>
1937           ...
1938         Luckily, adding the `-help' option to the `javac' invocation
1939         seems to fix this problem.
1940         * tests/defs.in (javac): Pass also the `-help' option to the
1941         `javac' program.  Add a comment explaining why it is needed.
1942         Report from Ralf Wildenhues.
1943
1944 2011-04-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1945
1946         test defs: new requirement for the default java compiler
1947         * tests/defs.in (for tool in $required): New requirement 'javac'.
1948         * tests/java.test: Use it instead of ad-hoc configure check.
1949         * tests/java-check.test: Likewise.
1950         * tests/java-extra.test: Likewise.
1951         * tests/java-noinst.test: Likewise.
1952         * tests/instfail-java.test: Likewise.
1953         * tests/instdir-java.test: Likewise.
1954
1955 2011-04-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
1956
1957         java: check_JAVA does not cause compilation by "make all" anymore
1958         Fixes automake bug#8234.
1959         * automake.in (handle_java): Make stamp of class files built from
1960         java sources in $(check_JAVA) a dependency of `check' target, not
1961         `all' target.
1962         * tests/java-check.test: New test.
1963         * tests/Makefile.am (TESTS): Update.
1964         * NEWS: Update.
1965         * THANKS: Update.
1966         Report from Petteri Räty.
1967
1968 2011-04-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
1969             Bruno Haible  <bruno@clisp.org>
1970
1971         coverage: add tests on remake rules in more complex situations
1972         * tests/defs (using_gmake): New function.
1973         (for tool in $required): Use it when $tool is 'GNUmake'.
1974         * tests/remake-moved-m4-file.test: New test.
1975         * tests/remake-deleted-m4-file.test: Likewise.
1976         * tests/remake-renamed-m4-file.test: Likewise.
1977         * tests/remake-renamed-m4-macro-and-file.test: Likewise.
1978         * tests/remake-renamed-m4-macro.test: Likewise.
1979         * tests/remake-add-acsubst-gnulib.test: Likewise.
1980         * tests/remake-add-header-gnulib.test: Likewise.
1981         * tests/remake-remove-header-gnulib.test: Likewise.
1982         * tests/Makefile.am (TESTS): Update.
1983
1984 2011-04-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
1985
1986         typofix in 'tests/defs'
1987         * tests/defs: Fix typo (`itslef' instead of `itself') in
1988         comments.
1989
1990 2011-04-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1991
1992         Clarify regex code in depcomp.
1993         * lib/depcomp: Add comment why we don't need regex-escaping here.
1994         Suggested by Stefano Lattarini.
1995
1996 2011-04-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1997
1998         Fix makedepend depmode for VPATH builds.
1999         * lib/depcomp [makedepend]: Remove any VPATH prefix from the
2000         object file name, so a rebuild doesn't attempt to update the
2001         .Po files in the source tree.
2002         * tests/depcomp9.test: New test.
2003         * tests/Makefile.am (TESTS): Update.
2004         * NEWS: Update.
2005
2006 2011-04-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2007
2008         tests: fix timestamp-related failures
2009         Fixes automake bug#8365.
2010         * tests/aclocal6.test: Sleep before modifying m4 files that should
2011         trigger remake rules.  Remove incorrect/obsoleted comments.
2012         * tests/subdir5.test: Likewise, and extend a bit.
2013         * tests/subdir8.test: Likewise.
2014         * tests/pr8365-remake-timing.test: New xfailing test.
2015         * tests/Makefile.am (TESTS): Update.
2016         Report from Sam Steingold.
2017
2018 2011-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2019
2020         Create subdirs for generated sources even when not dep tracking.
2021         * automake.in (handle_single_transform): If $object is derived
2022         and lands in subdir, be sure to output a dirstamp dependency.
2023         * tests/yacc5.test: Avoid falsely matching the dirstamp
2024         dependency when grepping for a rule.
2025         * tests/lex-subobj-nodep.test: New test.
2026         * tests/Makefile.am (TESTS): Update.
2027         * THANKS: Update.
2028         Report by Ignacy Gawedzki.
2029
2030         Fix locale issue in check-exported-srcdir.test.
2031         * tests/check-exported-srcdir.test: Reformulate glob to not fail
2032         in a locale that ignores or interleaves character case.
2033
2034 2011-04-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
2035
2036         docs: better visibility for aclocal in the index
2037         * doc/automake.texi (@menu): Rename title for entry 'configure'
2038         from "Scanning configure.ac or configure.in" to the more precise
2039         "Scanning configure.ac, using aclocal".
2040         (@detailmenu): Adjust.
2041         (@node configure): Adjust, and extend @cindex calls accordingly.
2042         * THANKS: Update.
2043         From a report by Maynard Johnson.
2044
2045 2011-03-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
2046
2047         tests: improve tests on "maintainer-clean" target
2048         * tests/aclocal6.test: Move checks related to "maintainer-clean"
2049         functionalities into ...
2050         * tests/maintclean-vpath.test: ... this new test.
2051         * tests/maintclean.test: Update heading comments.  Extend to also
2052         test subdirs.  Remove useless disabling of YACC.  Fix m4 quoting
2053         in configure.in.  Add a trailing `:' command.  Remove extra blank
2054         lines.
2055         * tests/Makefile.am (TESTS): Update.
2056
2057 2011-03-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2058
2059         tests: fix unindent to use printf not echo for script.
2060         * tests/defs.in: Use printf rather than echo, as the latter may
2061         interpret the backslashes in the sed script.  Fixes test
2062         failures with dash as /bin/sh.
2063
2064 2011-03-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
2065             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2066
2067         maintcheck: look for problematic names of testcases
2068         The configure.in stub created by default by `tests/defs' obtains
2069         the first argument of AC_INIT from the test name, and this can
2070         cause some supported autoconf versions to fail with a spurious
2071         error if that test name contains the name of an m4 or m4sugar
2072         builtin or macro (e.g., `defn' or `m4_undefine').
2073         See for example the bug fixed by commit v1.11-287-g1325a8a.
2074         This change add a maintainer check that warns about test names
2075         which are possibly problematic in this regard.
2076         * Makefile.am (sc_test_names): New maintainer-check target.
2077         (syntax_check_rules): Add it.
2078         (m4_builtins): New helper variable.
2079         (TESTS): Updated according to the following renamings.
2080         * tests/include.test: Renamed ...
2081         * tests/hdr-vars-defined-once.test: ... to this.
2082         * tests/sinclude.test: Renamed ...
2083         * tests/m4-inclusion.test: ... to this, and simplified
2084         accordingly.
2085         * tests/include2.test: Renamed ...
2086         * tests/dist-included-parent-dir.test: ... to this, for
2087         consistency.
2088
2089 2011-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
2090
2091         tests: fix bug in alloca*.test
2092         * tests/alloca.test: Make grepping of automake stderr stricter,
2093         add a trailing `:' command; also, add AC_PROG_CC to configure.in,
2094         and create a dummy alloca.c file, to ensure that we fail for the
2095         proper reason.
2096         * tests/alloca2.test: Likewise.  Also, look for LT_INIT, not
2097         AC_PROG_LIBTOOL, in the error message (bug introduced with commit
2098         v1.11-315-gd51e7b7 "libtool: suggest LT_INIT if LTLIBRARIES
2099         primary is used").
2100         From a report by Patrick Welche.
2101
2102 2011-03-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
2103
2104         cosmetics: better use of m4 quoting and m4sugar macros
2105         * m4/dmalloc.m4: Better use of m4 quoting.  Bump serial number.
2106         * m4/gcj.m4: Likewise.
2107         * m4/init.m4: Likewise.
2108         * m4/install-sh.m4: Likewise.
2109         * m4/lex.m4: Likewise.
2110         * m4/multi.m4: Likewise.
2111         * m4/option.m4: Likewise.
2112         * m4/python.m4: Likewise.
2113         * m4/sanity.m4: Likewise.
2114         * m4/cond.m4: Likewise.  Also, prefer the m4sugar macro 'm4_if'
2115         over the plain m4 macro 'ifelse'.
2116         * m4/depend.m4: Likewise.
2117
2118 2011-03-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
2119
2120         tests: add test about deprecated use of AC_INIT
2121         * tests/deprecated-acinit.test: New test, check that automake
2122         and autoconf complain about an old-style AC_INIT call used with
2123         a new-style AM_AUTOMAKE_INIT call.
2124         * tests/Makefile.am (TESTS): Update.
2125
2126 2011-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
2127
2128         tests: fix bug (comments-in-var-defn.test + autoconf 2.62)
2129         * tests/comments-in-var-defn.test: The configure.in stub created
2130         by default, which has the AC_INIT first argument obtained by the
2131         test name, causes autoconf 2.62 to fail with a spurious error
2132         message like: "configure.in:1: error: defn: undefined macro:".
2133         Thus, to prevent this, the test is renamed to ...
2134         * tests/comments-in-var-def.test: ... this.
2135         * tests/Makefile.am (TESTS): Updated.
2136
2137 2011-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
2138
2139         cosmetics: convert encoding from ISO-8859 to UTF-8
2140         * ChangeLog.03: Convert encoding to UTF-8.
2141         * ChangeLog.96: Likewise.
2142         * ChangeLog.98: Likewise.
2143         * NEWS: Likewise.
2144         * TODO: Likewise.
2145
2146 2011-03-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
2147
2148         tests: extend checks on the 'unindent' shell function
2149         * tests/self-check-unindent.test: Also check that multiple
2150         instances of 'unindent' can run in parallel (this was not
2151         the case when that function used temporary files).
2152
2153 2011-03-01  Peter Rosin  <peda@lysator.liu.se>
2154
2155         test defs: unindent without temporary file
2156         * tests/defs.in (commented_sed_unindent_prog): Commented Sed program
2157         that strips the "proper" amount of leading whitespace.
2158         (unindent): Lazily strip comments from the above program and use it
2159         to unindent without using a temporary file.
2160
2161 2011-02-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2162
2163         libtool: suggest LT_INIT if LTLIBRARIES primary is used
2164         When the LTLIBRARIES primary was used, but $(LIBTOOL) wasn't
2165         defined, automake suggested to add a call to AC_PROG_LIBTOOL
2166         in configure.ac.  But that macro is deprecated since Libtool
2167         version 1.9b (2004-08-29), in favor of the newer LT_INIT.  So
2168         suggest the use of this latter macro instead.
2169         * lib/Automake/Variable.pm (%_am_macro_for_var): Pair 'LIBTOOL'
2170         with 'LT_INIT', not with 'AC_PROG_LIBTOOL'.
2171         * tests/libtool4.test: Adjust and extend.  Also, add a call to
2172         macro AC_PROG_CC in configure.in, to help ensuring that automake
2173         does not fail for the wrong reasons.
2174         * tests/ltinit.test: New test, ensure that automake's libtool
2175         support works with LT_INIT-based interface.
2176         Thanks to Jack Kelly for the suggestion.
2177
2178 2011-02-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
2179
2180         tests: add testcases sanity-checking the testsuite
2181         Helper subroutines, variables and other pieces of code defined
2182         in the `tests/defs' and used by many testcases are non-obvious,
2183         and tricky to get to work portably; but until now, they weren't
2184         tested at all in a clear and self-contained way.
2185         This change should remedy to the situation.
2186         * tests/self-check-cleanup.test: New test, check removal of
2187         temporary test working directory by `./defs'.
2188         * tests/self-check-dir.test: New test, check that tests using
2189         `./defs' create a proper temporary directory, and run in it.
2190         * tests/self-check-exit.test: New test, check that, in case of
2191         failing commands, the correct exit status is passed to the exit
2192         trap installed by the `./defs' script.
2193         * tests/self-check-is_newest.test: New test, checking the
2194         `is_newest' subroutine.
2195         * tests/self-check-me.test: New test, checking that $me gets
2196         defined automatically by `tests/defs' if not set, and that it
2197         can be overridden from either the shell or the environment.
2198         * tests/self-check-sanity.test: New test, check that the sanity
2199         checks performed by the `tests/defs' script works correctly.
2200         * tests/self-check-unindent.test: New test, checking the
2201         `unindent' subroutine.
2202         * tests/Makefile.am (TESTS): Update.
2203
2204 2011-02-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
2205
2206         tests: tempdirs with restrictive permissions are cleaned correctly
2207         Before this change, the removal of a temporary test directory
2208         containing subdirectories with restrictive permissions (such as
2209         'r--r--r--') could fail.
2210         * tests/defs: Ensure that all the subdirectories of a temporary
2211         test directory have the 'read', 'write' and 'execute' bits set,
2212         before trying to remove it with `rm -rf'.
2213         * tests/Makefile.am (clean-local-check): Likewise.
2214
2215 2011-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2216             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2217
2218         test defs: add subroutine for input unindenting
2219         * tests/defs.in (unindent): New subroutine.
2220         * tests/instspc-tests.sh: Use it.
2221
2222 2011-02-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2223
2224         python: report the 'PYTHON' influential environment variable
2225         * m4/python.m4 (AM_PATH_PYTHON): Call AC_ARG_VAR on PYTHON.
2226         * doc/automake.texi (Python): Update and extend.
2227         * tests/help-python.test: New test.
2228         * tests/Makefile.am (TESTS): Update.
2229         * THANKS (Jack Kelly): Update e-mail address.
2230         Suggestion by Jack Kelly.
2231
2232 2011-02-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
2233
2234         tests defs: clear TESTS_ENVIRONMENT variable
2235         * tests/defs.in (TESTS_ENVIRONMENT): Unset it, so that values
2236         from environment won't interfere with the testcases.
2237         Suggestion by Ralf Wildenhues.
2238
2239 2011-02-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2240
2241         tests: `instspc-*.test': do not create useless source file
2242         * tests/instspc-tests.sh (create_input_data): Do not create
2243         unused source file `source2.c'.
2244
2245 2011-02-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2246
2247         tests: optimize `instspc-*.test' for speed
2248         After the split of `instspc.test' into various generated tests,
2249         the running time of the testsuite has noticeably increased, since
2250         all these new generated tests must run aclocal, autoconf and
2251         automake, whereas previously they were run only once (at the
2252         beginning of `instspc.test').  But luckily, since the new tests
2253         share the same input files for the autotools, this situation can
2254         be easily worked around (at the expenses of a slight increase of
2255         complexity for the testsuite scaffolding).
2256         * tests/instspc-data.test: New helper test, properly calling
2257         the `instspc-tests.sh' script to generate input data for the
2258         others `instspc-*.test' tests.
2259         * tests/Makefile.am (TESTS): Add `instspc-data.test'.
2260         ($(instspc_tests:.test=.log)): Depend on its log file.
2261         (instspc-data.log): Depend on `instspc-tests.sh'.
2262         * tests/instspc-tests.sh: Recognize new action `generate-data',
2263         and use it to create hand-written and autotools-generated static
2264         files shared by all the `instspc-*.test' tests.
2265         When sourced by the `instspc-*.test' tests, use those previously
2266         created files instead of recreating them from scratch.
2267         (unindent, create_input_data): New subroutines.
2268         Some other related changes and refactorings.
2269         From a suggestion by Ralf Wildenhues.
2270
2271 2011-02-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
2272
2273         python: fix spurious failure in tests
2274         * tests/python-vars.test: Ignore cached values from config.site
2275         by exporting CONFIG_SITE=/dev/null.  Be laxer in matching the
2276         expected values of output variables `pythondir' and `pyexecdir',
2277         since they can change quite unpredictably among different python
2278         installations.  Also, avoid "hyping" debugging output, thus
2279         offering smaller trace output and more informative diff.
2280         Report and suggestions by Ralf Wildenhues.
2281         * tests/python-virtualenv.test: Require python, since we call it
2282         even after the virtualenv has been deactivated.  Ignore cached
2283         values from config.site by exporting CONFIG_SITE=/dev/null.
2284
2285 2011-02-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2286
2287         tests: tweak few tests on simple and parallel test drivers
2288         * tests/check-exported-srcdir.test: Improve heading comments.
2289         * tests/check-tests-in-builddir.test: Likewise.  Also, unset the
2290         `FOO_EXIT_STATUS' variable, so that any pre-existing value in the
2291         environment won't risk to interfere with the test.
2292         Suggestions by Ralf Wildenhues.
2293
2294 2011-02-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2295
2296         python: extend and improve tests, fix minor glitches
2297         * m4/python.m4 (AM_PATH_PYTHON): Ensure the "checking ..." messages
2298         from configure are always complete, even in case of failure.  Tiny
2299         cosmetic improvement in info/error messages.
2300         * tests/python.test: Also check that automake complains if the
2301         PYTHON primary is used but the `py-compile' script is not present.
2302         Make grepping of generated Makefile.in laxer w.r.t. whitespace.
2303         Add trailing `:' command.
2304         * tests/python2.test: Remove repeated calls aclocal: they are
2305         useless because configure.in is never modified.  Make grepping
2306         of automake stderr more comprehensive.  Remove the pre-existing
2307         `py-compile' file before trying to install it with `--add-missing'.
2308         Add trailing `:' command.
2309         * tests/python3.test: Add trailing `:' command.
2310         * tests/python11.test: Likewise.
2311         * tests/python4.test: Likewise.  Also, try to pass PYTHON config
2312         variable to configure from the environment, rather than only from
2313         the command line.
2314         * tests/python5.test: Ensure that the "checking ..." messages from
2315         configure are always complete.  Use proper m4 quoting.  Add a
2316         trailing `:' command.
2317         * tests/python6.test: Simplify test logic, by checking for files
2318         created by configure rather then grepping its output.
2319         * tests/python7.test: Likewise.
2320         * tests/python8.test: Also check that `$PYTHON' is meaningfully
2321         set in the ACTION-IF-TRUE argument of AM_PATH_PYTHON.
2322         * tests/python9.test: Likewise.
2323         * tests/python10.test: Add trailing `:' command.
2324         (Makefile.am): Declare `disttest' target as `.PHONY', and add
2325         an `ls -l' to its recipe, for debugging.
2326         * tests/nobase-python.test: In testing "make uninstall" and
2327         "make install" results, prefer idioms that make verbose logs
2328         more helpful.  Remove a couple of lines of dead code.  Add a
2329         trailing `:' command.
2330         * tests/python5b.test: New test, checking that configure performs
2331         the check on the python version even when the choice of the python
2332         interpreter is forced by the user.
2333         * tests/python-dist.test: New test, checking the distribution of
2334         *_PYTHON files.
2335         * tests/python-vars.test: New test, checking that AM_PATH_PYTHON
2336         correctly set all the output variables advertised in the manual.
2337         * tests/python-virtualenv.test: New test, checking that python
2338         support offered by automake works well with "virtual python
2339         environments" created by the `virtualenv' program.
2340         * tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
2341         checks made slightly stricter.
2342         * tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
2343         * tests/instdir-ltlib.test: Likewise.
2344         * tests/Makefile.am (TESTS): Update.
2345
2346 2011-02-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
2347
2348         coverage: more tests on simple and parallel test drivers
2349         * tests/parallel-tests-subdir.test: New test.
2350         * tests/check-exported-srcdir.test: Likewise.
2351         * tests/check-tests-in-builddir.test: Likewise.
2352         * tests/check-tests_environment.test: Likewise.
2353         * tests/Makefile.am (TESTS): Update.
2354
2355 2011-01-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
2356
2357         tests: fix spurious failures in lflags*.test
2358         * tests/lflags.test: Remove 'LEX' from the environment, so
2359         that it won't be erroneously picked up by `make -e'.
2360         * tests/lflags2.test: Likewise.
2361
2362 2011-01-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
2363
2364         docs: color-tests issues with parallel make
2365         * doc/automake.texi (Simple Tests): Document that automatic
2366         recognition of a capable terminal attached to stdout can fail
2367         with some make implementation when running in parallel mode,
2368         thus causing colored test output not to be automatically
2369         activated when it should.
2370
2371 2011-01-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2372
2373         coverage: test semantics of "dummy" per-target flags
2374         * tests/specflg-dummy.test: New test, ensuring that even "dummy"
2375         per-target flags triggers the use of renamed objects.
2376         * tests/Makefile.am (TESTS): Update.
2377         Suggestion by Ralf Wildenhues.
2378
2379 2011-01-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2380
2381         tests defs: sanitize IFS
2382         * tests/defs ($IFS): Define to <space>, <tab>, <newline>.
2383         ($sp): New variable, holding a single whitespace character.
2384         ($tab): New variable, holding a tabulation character.
2385         ($nl): New variable, holding a newline character.
2386
2387 2011-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2388
2389         tests: avoid instspc* failures due to make's whitespace trimming
2390         * tests/instspc-tests.sh: Prepend './' when passing the test
2391         characters, to avoid leading whitespace characters to be trimmed
2392         from macros set from environment variables.  Fixes testsuite
2393         failures with HP-UX and Tru64/OSF make.
2394
2395 2011-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2396
2397         tests: fix VPATH auto-expansion workarounds.
2398         * tests/suffix10.test, tests/suffix11.test, tests/suffix12.test,
2399         tests/suffix3.test, tests/suffix5.test, tests/suffix8.test:
2400         Ensure $< is not surrounded by white space, to prevent Solaris
2401         make from applying automatic VPATH text expansion.
2402
2403         tests: fix VPATH auto-expansion workarounds.
2404         * tests/parallel-tests8.test, tests/suffix13.test:
2405         Ensure $< is not surrounded by white space, to prevent Solaris
2406         make from applying automatic VPATH text expansion.
2407
2408 2011-01-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
2409
2410         tests: fix spurious failures in yflags*.test
2411         * tests/yflags.test: Remove 'YACC' from the environment, so
2412         that it won't be erroneously picked up by `make -e'.
2413         * tests/yflags2.test: Likewise.
2414
2415 2011-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2416
2417         tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R.
2418         * tests/fn99.test, tests/fn99subdir.test: Skip if an initial
2419         `cp -R' of the subdir tree already fails; AIX 5.3 cp messes
2420         up its internal memory when copying this tree.
2421
2422 2011-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2423             Stefano Lattarini  <stefano.lattarini@gmail.com>
2424
2425         Add comment to check-TESTS rule working around make 3.80 bug.
2426         * lib/am/check.am (check-TESTS): Update comment.
2427
2428 2011-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2429
2430         tests: less strict double-colon spy.test again.
2431         * tests/spy.test: We know BSD make doesn't invoke more than one
2432         double-colon rule, so no need to expose that failure.
2433
2434 2011-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2435
2436         install-sh: avoid Tru64 sh `test' operator precedence issues.
2437         * lib/install-sh: Protect file names and directory components
2438         that consist of `=', `(', `)', or `!'.  Move protection as early
2439         as possible, to avoid errors such as with Tru64 sh `test -z ='.
2440         * tests/instsh2.test: Extend test to cover more possibilities.
2441         Fixes 1.12 instspc-equal-install.test failure on Tru64/OSF 5.1.
2442
2443 2011-01-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
2444             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2445
2446         docs: automake testsuite doesn't use TESTS_ENVIRONMENT anymore
2447         * doc/automake.texi (Simple Tests): Do not claim Automake uses
2448         TESTS_ENVIRONMENT for the perl driver.  Instead, point to the
2449         parallel-tests driver.
2450
2451 2011-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2452
2453         tests: check for presence of cscope with redirected input.
2454         * tests/defs: Add required test for cscope.
2455         Fixes cscope3.test hang with Sun C 5.9 cscope.
2456
2457         tests: avoid false failure in cygnus-dependency-tracking.test.
2458         * tests/cygnus-dependency-tracking.test: Be less restrictive
2459         when grepping the compiler error message, GCC 3.4.6 on FreeBSD
2460         does not mention an undefined symbol.
2461
2462 2011-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2463
2464         tests: revert not turning off errexit in instspc-test.sh
2465         * tests/instspc-tests.sh: Turn off errexit while sourcing defs,
2466         the scripts might still not be clean.
2467
2468 2011-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2469
2470         tests: work around Tru64 sh -e issues for instspc*.test.
2471         Apparently, Tru64 sh does not like turning off errexit mode,
2472         and gets confused.
2473         * tests/defs: Document 'errexit' cleanliness requirement.
2474         * tests/defs-static.in: Likewise.  Avoid error from command
2475         substitution to abort instspc*.test with Tru64/OSF 5.1 sh.
2476         * tests/instspc-tests.sh: Drop now-unneeded temporary errexit
2477         dropping.  Add strategic '|| Exit' to let tests work on Tru64.
2478
2479 2011-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2480
2481         Allow _AM_DEPENDENCIES to be used later in configure.
2482         * m4/depend.m4 (_AM_DEPENDENCIES): Remove a previously existing
2483         conftest.dir before recreating it.
2484         Fixes bug#7864.
2485         Report by Eric Blake, from report by Scott McCreary against M4.
2486
2487 2011-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2488
2489         tests: avoid failure on w32 file systems.
2490         * tests/parallel-tests-unreadable-log.test: SKIP if file cannot
2491         be turned unreadable.
2492
2493 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2494
2495         tests: allow double-colon spy.test to work with HP-UX make.
2496         * tests/spy.test: Fix comment typos.  Ensure prerequisites we
2497         do not want to depend on are strictly older than the target.
2498         Also test with a target out of date wrt. more than one rule.
2499
2500 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2501
2502         Avoid local $_ perl variable, for Perl before 5.9.1.
2503         * lib/Automake/Options.pm (_process_option_list): Do not
2504         lexically localize $_.  Fixes bootstrap on AIX 5.1.
2505         Bug introduced in commit `v1.11-622-gf90a06c'.
2506
2507 2011-01-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2508
2509         tests: remove useless requirements from cond36.test
2510         * tests/cond36.test ($required): Remove.
2511         Since we are at it, add a trailing `:' command.
2512
2513 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2514
2515         tests: avoid failing command substitution in errexit mode.
2516         * tests/vartypo2.test, tests/vartypos.test: Rewrite to not use
2517         a command substitution with a nonzero exit status, that causes
2518         IRIX and Tru64/OSF sh to fail the whole test.
2519
2520 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2521             Stefano Lattarini  <stefano.lattarini@gmail.com>
2522
2523         parallel-tests: work around Tru64/OSF 5.1 sh read bugs.
2524         * lib/am/check.am ($(TEST_SUITE_LOG), recheck, recheck-html):
2525         Test file readability before redirecting input from it, to avoid
2526         exiting Tru64/OSF 5.1 sh which treats read as special builtin.
2527         * tests/parallel-tests-unreadable-log.test: New test.
2528         * tests/Makefile.am (TESTS): Update.
2529         * NEWS: Update.
2530
2531 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2532
2533         * NEWS, README: Update copyright years.
2534
2535 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2536
2537         tests: hard error in case of internal failures or signal caught
2538         * tests/defs: Exit with status 99 (hard error) rather than
2539         1 (failure) on unexpected/internal errors, or when a signal
2540         is caught by the client script.
2541
2542         Tests defs: don't let useless variables leak in test scripts.
2543         * tests/defs ($priv_check_temp, $overwrite_status, $ro_dir_temp,
2544         $create_status, $r2h, $libtool_found, $gettext_found, $aclocaldir,
2545         $extra_includes): Unset once they've served their purpose.
2546
2547 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2548
2549         Fix parallel-tests.test failure with HP-UX make.
2550         * tests/parallel-tests.test: Sleep inside inner tests, so logs
2551         are newer than logs of tests they depend on, for HP-UX make.
2552
2553 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2554
2555         docs: ensure example are separated with empty lines in the input
2556         * doc/automake.texi (Extending aclocal, Emacs Lisp, Rebuilding)
2557         (API Versioning, Renamed Objects, Multiple Outputs): Add empty
2558         lines before `@example' and after `@end example' lines, so info
2559         output is rendered correctly, and a following @noindent honored.
2560         Report by Stefano Lattarini.
2561
2562 2011-01-15  Jim Meyering <meyering@redhat.com>
2563
2564         tests: fix comment typo
2565         * tests/substref.test: Fix grammar in a comment.
2566
2567 2011-01-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2568
2569         tests: fix spurious failures in two texinfo tests
2570         * tests/txinfo.test ($required): Add 'makeinfo'.
2571         * tests/txinfo8.test: Create a dummy 'textutils.info' file, so
2572         that make won't try to run makeinfo (which could be unavailable)
2573         to build it.
2574         Found by NixOS Hydra, reported by Ralf Wildenhues.
2575
2576 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2577
2578         Update docs w.r.t. warning and strictness options.
2579         * doc/automake.texi (Strictness): Document that some warnings are
2580         turned off by default in `foreign' strictness.
2581         (Options): Divide into new sections "Options generalities" and
2582         "List of Automake options".  Fix typo (colon instead of full
2583         stop).  Document option precedence (AUTOMAKE_OPTIONS wins over
2584         AM_INIT_AUTOMAKE which wins over command line).  Also document
2585         interactions between options specifying strictness and those
2586         specifying warnings.
2587
2588         More tests on warnings/strictness precedence.
2589         * tests/warning-groups-win-over-strictness.test: New test, similar
2590         to `warnings-win-over-strictness.test', but checking the explicit
2591         catch-all warning flags (like `-Wall' and `-Wnone').
2592         * tests/Makefile.am (TESTS): Update.
2593
2594         Update NEWS about the warnings-over-strictness precedence.
2595         * NEWS: Automake explicit warning levels always take precedence
2596         over the implicit warning levels implied by Automake strictness.
2597
2598         For PR automake/547:
2599         Warnings win over strictness in AUTOMAKE_OPTIONS.
2600         Ensure that, for what concerns the options specified in
2601         AUTOMAKE_OPTIONS, explicitly-defined warnings always take
2602         precedence over implicit strictness-implied warnings.
2603         This finally fixes Automake bug#7669 a.k.a. PR/547.
2604         * automake.in (handle_options): Call 'process_option_list'
2605         only once per set of options.
2606         * lib/Automake/Options.pm (process_global_option_list,
2607         process_option_list): Add sanity checks.
2608         ($_options_processed, $_global_options_processed): New
2609         internal variables, used by the sanity checks above.
2610         * tests/warnings-win-over-strictness.test: Extend.
2611
2612         For PR automake/547:
2613         Change signature of 'Automake::Options::_process_option_list()'.
2614         This only modifies internal details in the automake implementation,
2615         bearing no externally visible effect, but preparing the way for the
2616         final fix of Automake bug#7669 a.k.a. PR/547.
2617         * lib/Automake/Options.pm (_process_option_list): Accept as
2618         arguments a list of hash references with keys 'option' and 'where',
2619         where 'option' is an option as might occur in AUTOMAKE_OPTIONS or
2620         AM_INIT_AUTOMAKE, and 'where' is the location where it occurred.
2621         (process_option_list, process_global_option_list): Updated.
2622         * automake.in (handle_options, scan_autoconf_traces): Update.
2623
2624         Add more tests about AUTOMAKE_OPTIONS.
2625         In view of soon-to-follow refactorings (still in the pursuit of a
2626         fix for Automake bug#7669 a.k.a. PR/547), add some more tests on
2627         AUTOMAKE_OPTIONS support, to prevent obvious regressions.
2628         * tests/amopts-variable-expansion.test: New test.
2629         * tests/amopts-location.test: Likewise.
2630         * tests/Makefile.am (TESTS): Update.
2631
2632         For PR automake/547:
2633         Warnings win over strictness in AM_INIT_AUTOMAKE.
2634         This change ensures that, for what concerns the options specified
2635         in AM_INIT_AUTOMAKE,  explicitly-defined warnings always take
2636         precedence over implicit strictness-implied warnings.  Related to
2637         Automake bug#7669 a.k.a. PR/547.
2638         * lib/Automake/Options.pm (_process_option_list): Parse explicit
2639         warnings only after the strictness level has been set.  Fix POD
2640         documentation.
2641         * tests/warnings-win-over-strictness.test: Extend.
2642
2643         For PR automake/547:
2644         Warnings win over strictness on command line.
2645         Ensure that, on the command line at least, explicitly defined
2646         warnings always take precedence over implicit strictness-implied
2647         warnings.  Related to Automake bug#7669 a.k.a. PR/547.
2648         * automake.in (parse_arguments): Parse warnings only after the
2649         strictness level has been processed.
2650         * tests/gnuwarn.test: Update, plus miscellaneous improvements.
2651         * tests/warnings-win-over-strictness.test: New test.
2652         * tests/Makefile.am (TESTS): Update.
2653
2654         More tests on warnings and strictness.
2655         * tests/warnings-strictness-interactions.test: New test.
2656         * tests/warnings-unknown.test: Likewise.
2657         * tests/Makefile.am (TESTS): Update.
2658
2659         New test on silent-rules mode and portability warnings.
2660         * tests/silent-nowarn.test: New test.
2661         * tests/Makefile.am (TESTS): Update.
2662
2663         Add new tests on strictness and warnings precedence and overriding.
2664         * tests/strictness-override.test: New test.
2665         * tests/strictness-precedence.test: New test.
2666         * tests/warnings-override.test: New test.
2667         * tests/warnings-precedence.test: New test.
2668         * tests/Makefile.am (TESTS): Update.
2669
2670 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2671
2672         Fix remake rule-induced test failures with HP-UX make.
2673         * tests/remake1a.test: Require GNU make.
2674
2675 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2676
2677         Fix remake rule-induced test failures with HP-UX make.
2678         * tests/colon6.test: Update timestamp of subdir Makefile, so we
2679         do not spuriously invoke the nonexistent toplevel am--refresh
2680         rule.
2681
2682         tests: fix typos in colon6.test
2683         * tests/colon6.test: Fix typos.
2684
2685 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2686             Stefano Lattarini  <stefano.lattarini@gmail.com>
2687
2688         tests: explain MSYS setup failure issue, improve test.
2689         * tests/defs: Add comment and failure message, improve fail
2690         logic.
2691
2692 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2693
2694         Fix libobj2.test failure with non-GNU make: define $(AR).
2695         * tests/libobj2.test: Ensure $(AR) is suitably defined.
2696
2697 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2698
2699         tests: avoid spurious failures due to fork failure in test setup
2700         * tests/defs: Ensure $me is always nonempty, to avoid spurious
2701         failures on MinGW/MSYS in case the preceding sed command could
2702         not be spawned.
2703
2704         Avoid configure warnings from wait about reused PIDs.
2705         * m4/sanity.m4 (AM_SANITY_CHECK): Hide wait stderr output.
2706         Fixes spurious failure of depcomp2.test.
2707
2708 2011-01-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2709
2710         Avoid testsuite failures due to Autoconf Fortran change.
2711         Autoconf v2.68-21-g727ce95 causes AC_F77_LIBRARY_LDFLAGS to
2712         require computing the canonical host name.  Ensure config.guess
2713         and config.sub files are present for respective checks.
2714         * tests/compile_f_c_cxx.test: Add stub files.
2715         * tests/flibs.test: Likewise.
2716         * tests/fort4.test: Use $AUTOMAKE -a for installing files.
2717
2718 2011-01-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2719
2720         docs: clustered '-d' not recognized in YFLAGS
2721         This change fixes automake bug#7828.
2722         * doc/automake.texi (Yacc and Lex): Document that automake
2723         recognizes '-d' in AM_YFLAGS only if it's not clustered with
2724         other options.
2725         From a report by Юрий Пухальский.
2726
2727 2011-01-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
2728
2729         tests: add checks on automatically-distributed files
2730         Related to automake bug#7819.
2731         * tests/autodist.test: New test.
2732         * tests/autodist-subdir.test: Likewise.
2733         * tests/autodist-acconfig.test: Likewise.
2734         * tests/autodist-acconfig-no-subdir.test: Likewise.
2735         * tests/autodist-aclocal-m4.test: Likewise.
2736         * tests/autodist-config-headers.test: Likewise.
2737         * tests/autodist-configure-no-subdir.test: Likewise.
2738         * tests/autodist-stamp-vti.test: Likewise.
2739         * tests/Makefile.am (TESTS): Update.
2740
2741 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2742
2743         tests: do not force yacc-requiring tests to use bison
2744         * tests/defs.in: New required entry 'yacc'.  Remove old
2745         required entry 'bison'.
2746         * tests/cond35.test ($required): Require yacc, not bison.
2747         * tests/cond36.test: Likewise.
2748         * tests/pr204.test: Likewise.
2749         * tests/silent-many-gcc.test: Likewise.
2750         * tests/silent-many-generic.test: Likewise.
2751         * tests/silent-yacc-gcc.test: Likewise.
2752         * tests/silent-yacc-generic.test: Likewise.
2753         * tests/subpkg.test: Likewise.
2754         * tests/suffix10.test: Likewise.
2755         * tests/yacc-basic.test: Likewise.
2756         * tests/yacc-clean.test: Likewise.
2757         * tests/yacc-d-basic.test: Likewise.
2758         * tests/yacc-d-vpath.test: Likewise.
2759         * tests/yacc-dist-nobuild.test: Likewise.
2760         * tests/yacc-nodist.test: Likewise.
2761         * tests/yacc4.test: Likewise.
2762         * tests/yacc6.test: Likewise.
2763         * tests/yacc7.test: Likewise.
2764         * tests/yacc8.test: Likewise.
2765         * tests/yaccdry.test: Likewise.
2766         * tests/yaccvpath.test: Likewise.
2767
2768 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2769
2770         tests: more consistent checks about invalid options
2771         * tests/aclocal.test: Grepping of automake stderr for messages
2772         reporting invalid options made stricter.
2773         * tests/no-outdir-option.test: Likewise.  Also, create a dummy
2774         `Makefile.am', to ensure that the automake failures are really
2775         caused only by unrecognized options.
2776         * tests/automake.test: Added trailing `:' command.  Removed
2777         redundant checks on `--help' and `--version' option (already
2778         performed in the test `help*.test').
2779
2780 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2781
2782         tests: enable 'errexit' shell flag by default.
2783         * tests/defs: Enable `errexit' shell flag (near the end).
2784         Removed redundant comment about the enabling of shell traces.
2785         * tests/README (Writing test cases): Update, and use nicer
2786         formatting in a couple of places.
2787         * All tests: Adjusted by removing now-redundant calls to
2788         'set -e'.
2789
2790 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2791
2792         tests: work around a texi+cygnus bug causing a spurious XFAIL
2793         * tests/txinfo5b.test: New test, like txinfo5.test but calling
2794         automake with the `-Wno-override' option to work around a bug
2795         in the texinfo + cygnus interaction.
2796         * tests/txinfo5.test: Update heading comments.
2797         * tests/Makefile.am (TEST): Updated.
2798
2799 2011-01-09  Dave Hart  <davehart@gmail.com>  (tiny change)
2800
2801         Fix another typo in Rule.pm comment.
2802         * lib/Automake/Rule.pm: Fix typo.
2803
2804 2011-01-09  Peter Rosin  <peda@lysator.liu.se>
2805
2806         Fix another typo in Rule.pm comment.
2807         * lib/Automake/Rule.pm: Fix typo.
2808
2809 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2810
2811         tests: texinfo unrecognized extensions
2812         * tests/txinfo-unrecognized-extension.test: New test.
2813         * tests/Makefile.am (TESTS): Update.
2814
2815         Improve, extend and tweak tests on Texinfo support.
2816         * tests/instdir-texi.test: Add a call to `ls -l' after that to
2817         `make', for debugging.  When looking for required tools, do not
2818         redirect the output of "$tool --help" to /dev/null, and do not
2819         uselessly run it in a subshell.
2820         * tests/txinfo.test: Rewritten to run autoconf, ./configure and
2821         make.  All checks moved into Makefile.am.
2822         * tests/txinfo8.test: Likewise, and modernize the generated
2823         configure.in.
2824         * tests/txinfo2.test: Moved checks into Makefile.am, and other
2825         minor improvements.
2826         * tests/txinfo5.test: Enable `errexit' shell flag, and related
2827         changes.  Add trailing `:' command.
2828         * tests/txinfo6.test: Likewise, and make grepping of generated
2829         Makefile.in stricter.
2830         * tests/txinfo7.test: Enable `errexit' shell flag, and related
2831         changes.  Add trailing `:' command.  Do not add unnecessary stuff
2832         to Makefile.am.
2833         * tests/txinfo9.test: Verify that more targets which are expected
2834         to be generated only once really are.  Make grepping less strict,
2835         to avoid exposing too much internal details.  More minor changes.
2836         * tests/txinfo16.test: Add trailing `:'.  Prefer cat over echo
2837         for appending to configure.in.  Updated/fixed heading comments.
2838         * tests/txinfo23.test: Likewise, and extended a little by making
2839         it check that no info file is created in the $(srcdir).
2840         * tests/txinfo24.test: Likewise.
2841         * tests/txinfo25.test: Likewise.
2842         * tests/txinfo18.test: Add trailing `:'.  Prefer cat over echo
2843         for appending to configure.in.  Also, check that index files are
2844         cleaned also by "make clean", not only by "make distclean".
2845         * tests/txinfo22.test: Prefer `$me' over hard-coded test name,
2846         and added trailing `:' command.  This testcase also used to check
2847         that automake ignores in-line comments when using variables, but
2848         preserves them in the output; these checks (added in commit
2849         "Release-1-7f-4-g9177ef8") do not really pertain to this test,
2850         so they have been moved ...
2851         * tests/comments-in-var-defn.test: ... into this new test.
2852         * tests/txinfo4.test: Escape literal dots in grep regexps.  Add
2853         trailing `:' command.
2854         * tests/txinfo29.test: Likewise.  Relax grepping of generated
2855         Makefile.in w.r.t. whitespaces.  Prefer `cat' over `echo' to
2856         append to configure.in.
2857         * tests/txinfo3.test: Likewise.
2858         * tests/vtexi.test: Improve grepping of Makefile.in (sometimes
2859         make it stricter, sometimes laxer).  Move `set -e' setting just
2860         after the inclusion of ./defs.  De-uglify a sed command.  Other
2861         minor cosmetic improvements.
2862         * tests/vtexi2.test: Make grepping of Makefile.in stricter.  Add
2863         trailing `:' command.
2864         * tests/vtexi3.test: New test on version.texi support.
2865         * tests/vtexi4.test: Likewise.
2866         * tests/Makefile.am (TESTS): Updated.
2867
2868 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2869
2870         tests: fix spurious failure in 'tests/yflags-conditional.test'
2871         * tests/yflags-conditional.test: Filter out message "warnings are
2872         treated as errors" from automake stderr, to avoid a false positive
2873         when grepping for extraneous warning messages.
2874
2875 2011-01-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
2876
2877         yacc: warn about conditional content in *YFLAGS variables
2878         This change fixes automake bug#7804.
2879         * automake.in (lang_yacc_target_hook): Warn if any of the relevant
2880         *YFLAGS variables has conditional contents (not only a conditional
2881         definition).  Related refactoring.
2882         * NEWS: Updated.
2883         * tests/yflags-conditional.test: Updated and extended.
2884         * tests/yflags-conditional-force.test: New test.
2885         * tests/Makefile.am (TESTS): Updated.
2886
2887 2011-01-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2888
2889         yacc: support variable expansions in *YFLAGS definition.
2890         This change fixes automake bug#7800.
2891         * automake.in (lang_yacc_target_hook): Use 'value_as_list_recursive'
2892         instead of 'variable_value' to get the value of *YFLAGS variables.
2893         Related changes.
2894         ($DASH_D_PATTERN): Removed.
2895         * tests/Makefile.am (XFAIL_TESTS): Remove yflags-var-expand.test.
2896         * tests/yacc-clean.test: Remove workaround for now-fixed bug.
2897         * NEWS: Update.
2898
2899 2011-01-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2900
2901         yacc: more tests on *YFLAGS support
2902         * tests/yflags-var-expand.test: New test, still xfailing.  It
2903         exposes automake bug#7800 -- "automake fails to honor `-d' in
2904         AM_YFLAGS when variable expansions are involved".
2905         * tests/yflags-d-false-positive.test: New test, checking that
2906         automake do not spuriously see `-d' in *YFLAGS when that isn't
2907         really there.
2908         * tests/yflags-force-override.test: New test, checking that
2909         automake can cope with definition of the YFLAGS variable in
2910         Makefile.am (even if that is an extremely bad practice, as that
2911         variable is user-reserved).
2912         * tests/yflags-cmdline-override.test: New test, checking that
2913         automake can cope with user-redefinition of YFLAGS at configure
2914         time and/or at make time.
2915         * tests/yflags-conditional.test: New test, checks that automake
2916         warns on conditionally-defined *YFLAGS variables.
2917         * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
2918
2919 2011-01-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2920
2921         yacc: extend and improve tests
2922         * tests/yacc-basic.test: Also check that the intermediate C file
2923         is mentioned in the generated Makefile.in, and that it is created
2924         by the first make invocation.
2925         * tests/yacc3.test: Test removed, superseded by ...
2926         * tests/yacc-d-basic.test: ... this new test.
2927         * tests/yacc2.test: Add reference to that new test in the heading
2928         comments.
2929         * tests/yacc-d-vpath.test: New test.
2930         * tests/yaccvpath.test: Updated heading comments.  Do not require
2931         gcc anymore, as any working C compiler should be enough.  Remove
2932         redundant comments.
2933         * tests/yacc-nodist.test: New test.
2934         * tests/yacc-dist-nobuild.test: New test.
2935         * tests/Makefile.am (TESTS): Update.
2936
2937 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2938
2939         Extend, fix and improve tests on Lex and Yacc support.
2940         * tests/lexcpp.test: New test script, on support for Lex + C++.
2941         * tests/lexvpath.test: New test script, test build and rebuild
2942         rules for lexers in VPATH setup.
2943         * tests/yacc-basic.test: New test script, run simple "semantic"
2944         checks on basic Yacc support (similarly to what lex3.test does
2945         for Lex support).
2946         * tests/lex.test: Don't create useless dummy source file joe.l.
2947         Remove extra blank lines.
2948         * tests/lex4.test: Add trailing `:' command.  Do not create dummy
2949         useless lex source file.
2950         * tests/lex2.test: Likewise.  Call automake with the `-a' option,
2951         so that it doesn't fail for the absence of `ylwrap' script.  Make
2952         grepping of automake stderr stricter.
2953         * tests/yacc7.test: Add trailing `:' command.  Enable `errexit'
2954         shell flag earlier (just after having sourced ./defs).
2955         * tests/yacc4.test: Likewise.  Also ...
2956         (configure.in): Use pre-populated skeleton set up by ./defs,
2957         instead of writing one from scratch.
2958         Other minor cosmetic changes.
2959         * tests/yacc5.test: Likewise.
2960         * tests/yaccvpath.test: Likewise. Also ...
2961         ($distdir): New variable.
2962         Use it throughout.
2963         * tests/lex5.test: Likewise.
2964         * tests/lex3.test: Likewise.  Check the distdir, rather than
2965         grepping the distribution tarball.  Extend the test on the
2966         created binary, and be sure to avoid hangs.  Add some comments.
2967         * tests/yacc.test: Use stricter grepping.  Add trailing `:'.
2968         * tests/yacc6.test: Likewise.
2969         * tests/yacc3.test: Likewise.  Do not create the unused file
2970         `Makefile.sed'.  Remove useless rules from Makefile.am.  Other
2971         minor cosmetic changes.
2972         * tests/yacc2.test: Make grepping of generated `Makefile.in' and
2973         of automake error messages stricter.  Do not redirect output of
2974         grep to /dev/null.  Move call to aclocal earlier.  Reduce the
2975         number of empty blank lines.  Fix a typo in comments.
2976         * tests/yacc8.test: Fixed bugs that reduced the completeness of
2977         the tests.  Added trailing `:' command.
2978         (configure.in): Use pre-populated skeleton set up by ./defs,
2979         instead of writing one from scratch.
2980         * tests/yaccpp.test: Test also extensions `.y++', `.ypp', and
2981         `.yxx', rather than only `.yy'.
2982         * tests/Makefile.am (TESTS): Update.
2983
2984 2011-01-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2985
2986         cosmetics: remove trailing whitespaces
2987         * doc/automake.texi: Remove trailing whitespaces.
2988         * tests/cond13.test: Likewise.
2989         * tests/cond14.test: Likewise.
2990         * tests/fort4.test: Likewise.
2991         * tests/fort5.test: Likewise.
2992         * tests/libobj17.test: Likewise.
2993         * tests/suffix7.test: Likewise.
2994         * tests/vtexi2.test: Likewise.
2995
2996         automake: minor fixes in comments
2997         * automake.in: Some minor fixes and enhancements in comments.
2998
2999 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3000
3001         Add test coverage for deleted header files.
3002         * tests/depcomp6.test, tests/depcomp7.test: Update tests to
3003         also check for the deleted header bug.  If no dependency
3004         tracking mechanism could be found, SKIP rather than exit
3005         successfully.  Use GNU style spacing and ANSI C prototypes.
3006
3007         Fix typos in Rule.pm comments.
3008         * lib/Automake/Rule.pm: Fix typos in comments.
3009
3010         docs: split 'amhello Explained' node.
3011         * doc/automake.texi (amhello Explained): Split node ...
3012         (amhello's configure.ac Setup Explained)
3013         (amhello's Makefile.am Setup Explained) : ... into these two.
3014         (Top, Hello World): Adjust, and add @anchor for stable URL links.
3015         Suggestion by Karl Berry in automake bug#7766.
3016
3017 2011-01-08  Karl Berry  <karl@freefriends.org>
3018             Eric Blake  <eblake@redhat.com>
3019
3020         docs: reference defining directories in amhello node.
3021         * doc/automake.texi (amhello Explained): Point to Autoconf
3022         manual for how to convert directory values into macros.
3023         (Optional): Fix grammar nit.
3024
3025 2011-01-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3026
3027         yacc: "make clean" removes .c and .h files from non-distributed .y
3028         Previously, while automake did *not* distribute C source and header
3029         files derived from non-distributed Yacc sources, it still caused
3030         them to be removed only by "make maintainer-clean" only, and not by
3031         simply "make clean" or "make distclean".
3032         This caused "make distcheck" to fail, unless the developer put
3033         those generated .c and .h files in CLEANFILES or in DISTCLEANFILES
3034         by hand.
3035         This change fixes this issue, by making non-distributed `.c' and
3036         `.h' files generated by non-distributed Yacc sources cleaned by
3037         "make clean".
3038         * tests/automake.in (lang_yacc_target_hook): Make C source and
3039         header files derived from non-distributed Yacc files cleaned by
3040         "make clean", not only by "make maintainer-clean".
3041         * tests/yacc-clean.test: New test.
3042         * tests/Makefile.am (TESTS): Update.
3043         * NEWS: Update.
3044
3045 2011-01-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3046
3047         * NEWS: Fix typo (forgotten word).
3048
3049 2011-01-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3050             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3051
3052         docs: how to work around checks on invalid primary/directory couples
3053         * doc/automake.texi (Uniform): Document the blessed idiom which can
3054         be used to work around automake checks on invalid primary/directory
3055         couples (such as `lib_PROGRAMS' or `doc_LIBRARIES').
3056
3057 2010-01-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
3058
3059         Tests: normalize use of the 'errexit' shell flag.
3060         * tests/maken3.test (check_targets): Remove redundant call to
3061         'set -e'.
3062         * tests/maken4.test: Likewise.
3063         * tests/ansi5.test: Call 'set -e' just after './defs' has been
3064         sourced.
3065         * tests/ansi6.test: Likewise.
3066         * tests/ansi7.test: Likewise.
3067         * tests/cond16.test: Likewise.
3068         * tests/cond17.test: Likewise.
3069         * tests/cond18.test: Likewise.
3070         * tests/cond19.test: Likewise.
3071         * tests/cond20.test: Likewise.
3072         * tests/cond21.test: Likewise.
3073         * tests/instdat2.test: Likewise.
3074         * tests/instdir-texi.test: Likewise.
3075         * tests/parallel-tests3.test: Likewise.
3076         * tests/remake1a.test: Likewise.
3077         * tests/ccnoco.test: Likewise, and add trailing `:' command.
3078         * tests/comment4.test: Likewise.
3079         * tests/gcj4.test: Likewise.
3080         * tests/nodist2.test: Likewise.
3081         * tests/nodist3.test: Enable 'errexit' shell flag (this should
3082         have been done in commit v1.11-248-g317e17b, but the relevant
3083         hunk has been forgotten somehow).
3084         * tests/output.test: Likewise.
3085         * tests/gnits2.test: Likewise, and display captured stderr to
3086         script's stderr, not to script's stdout.
3087         * tests/gnits3.test: Likewise.  Also, prefer 'cat' over 'echo'
3088         to append to Makefile.am, and really check that the exit status
3089         of "make installcheck" indicates failure.
3090
3091 2011-01-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3092
3093         Sync auxiliary files from upstream.
3094         * lib/config.guess, lib/config.sub, lib/texinfo.tex:
3095         Sync from upstream.
3096
3097         Avoid caching bug in cygnus mode test.
3098         * tests/cygnus-requires-maintainer-mode.test: Remove
3099         autom4te.cache directory before rerunning aclocal, to
3100         remove trace caches.
3101
3102         Fix maintainer-check regression.
3103         * tests/subobj11a.test: Pass DISTCHECK_CONFIGURE_FLAGS in the
3104         environment.
3105
3106         Bump copyright years.
3107         * aclocal.in (write_aclocal, version): Bump copyright years.
3108         * automake.in (gen_copyright, version): Likewise.
3109         * doc/automake.texi: Likewise.
3110
3111 2010-12-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3112
3113         * NEWS: Add missing blank line between two entries.
3114
3115 2010-12-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3116
3117         Improve and extend tests `suffix*.test'.
3118         * tests/suffix.test: Check that suffix rules for C compilation are
3119         only included once.  Try also with a static library.
3120         * tests/suffix2.test: Add a new grep to help potential debugging.
3121         Do not run automake with the `--add-missing' options, since we
3122         already create all the needed auxiliary files.  Try also *without*
3123         the `no-dependencies' automake option.
3124         * tests/suffix4.test: Make grepping of Makefile.in stricter.
3125         * tests/suffix3.test: Rewritten to run also autoconf, ./configure
3126         and make.
3127         * tests/suffix5.test: Likewise.
3128         * tests/suffix6.test: Fix botched recipe indentation (eight spaces
3129         were used instead of a tabulation character).  Extend to check
3130         that `.obj' is handled like `.$(OBJEXT)' (as is done for `.o').
3131         Improved parsing & grepping of generated Makefile.in.  Other minor
3132         fixes and improvements.
3133         * tests/suffix10.test: Move some checks in Makefile.am.  Also run
3134         "make all".
3135         * tests/suffix12.test: Likewise, and account for VPATH issues in
3136         weaker make implementations.
3137         * tests/suffix11.test: Likewise.  Also, run "make distcheck", for
3138         completeness, and related changes.
3139         * tests/suffix8.test: Likewise.  Also, do not put `gcc' anymore
3140         in $required.
3141         * tests/suffix13.test: Do not use the `--force-missing' automake
3142         option unnecessarily.
3143         * tests/suffix6b.test: New test, semantic sister of `suffix6.test'.
3144         * tests/suffix6c.test: Likewise.
3145         * tests/Makefile.am (TESTS): Updated.
3146
3147 2010-12-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3148             Stefano Lattarini  <stefano.lattarini@gmail.com>
3149
3150         Work around a bug in file-inclusion mechanism of Solaris make.
3151         * automake.in (handle_single_transform): In the name of the
3152         dependency file: collapse multiple slash characters into a single
3153         one.
3154         * tests/subobj11a.test: New test.
3155         * tests/subobj11b.test: Likewise.
3156         * tests/subobj11c.test: Likewise.
3157         * tests/depcomp8a.test: Likewise.
3158         * tests/depcomp8b.test: Likewise.
3159         * tests/Makefile.am (TESTS): Updated.
3160         * NEWS: Updated.
3161         Report by Stefano Lattarini, quick fix by Ralf Wildenhues, final
3162         patch and tests by Stefano Lattarini.
3163
3164 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3165
3166         Fix two spurious testsuite failures on IRIX 6.5.
3167         * tests/suffix13.test (Makefile.am): Account for VPATH issues on
3168         weaker make implementations (e.g. IRIX 6.5).
3169         * tests/parallel-tests8.test: Likewise, plus a required related
3170         change.
3171         Reported by Ralf Wildenhues.  The bugs have been there from the
3172         first versions of the affected test scripts.
3173
3174 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3175
3176         docs: cygnus mode doesn't require AM_CYGWIN32 macro.
3177         * doc/automake.texi (Cygnus): Mode 'cygnus' does not require
3178         the AM_CYGWIN32 macro (and indeed hasn't required it since at
3179         least commit Release-1-2-31-g3038064 "merged changes from
3180         Cygnus" of 1997-08-25).
3181
3182 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3183
3184         Add some tests on 'cygnus' mode.
3185         * tests/clean2.test: Extend.
3186         * tests/cygnus-check-without-all.test: New test.
3187         * tests/cygnus-dependency-tracking.test: Likewise.
3188         * tests/cygnus-distclean.test: Likewise.
3189         * tests/cygnus-imply-foreign.test: Likewise.
3190         * tests/cygnus-no-dist.test: Likewise.
3191         * tests/cygnus-no-installinfo.test: Likewise.
3192         * tests/cygnus-requires-maintainer-mode.test: Likewise.
3193         * tests/Makefile.am (TESTS): Update.
3194
3195 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3196
3197         Fix parallel testsuite run with Zsh.
3198         This change deals with a Zsh incompatibility in the handling
3199         of the special shell variable `$0' in sourced files; this
3200         incompatibility used to cause utter breakage when the
3201         Automake testsuite was run in parallel mode with Zsh as
3202         the $(TEST_LOG_COMPILER).
3203         For more information, please refer to the thread "Fix parallel
3204         testsuite run with zsh" on automake-patches, dated 2010-12-22:
3205          <http://lists.gnu.org/archive/html/automake-patches/2010-12/msg00135.html>
3206         This change works around the problems described above for Zsh 4.3
3207         or later, and offers better error messages (instead of random
3208         failures) for earlier Zsh version.
3209         * tests/README (Supported shells): When describing the manual
3210         workaround about the Zsh incompatibility in the handling of `$0',
3211         tell that it is now needed only with Zsh versions preceding 4.3.
3212         Done also some minor rewordings.
3213         * tests/defs-static.in ($argv0): New variable, offers a workaround
3214         for the Zsh incompatibility in the handling of `$0'.
3215         Abort if that variable cannot be correctly set (can happen only
3216         in older Zsh version).
3217         * tests/defs ($me): Define using `$argv0', not `$0'.
3218
3219 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3220
3221         Tests defs: keep track of original $AUTOMAKE and $ACLOCAL values.
3222         This is especially useful for tests which might want to run
3223         automake and aclocal without additional flags and warnings.
3224         * tests/defs-static.in ($original_ACLOCAL): New variable.
3225         ($original_AUTOMAKE): Likewise.
3226         * tests/help.test: Use them.
3227         * tests/help2.test: Likewise.
3228         * tests/help3.test: Likewise.
3229         * tests/help4.test: Likewise.
3230         From a suggestion by Ralf Wildenhues.
3231
3232 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3233
3234         distlinksbrk.test: Work around botched "make -k".
3235         * tests/distlinksbrk.test: Run "make" multiple times and grep
3236         its output each time for a single error message, rather than
3237         running "make -k" one single time and grepping its output for
3238         all the expected error messages.  This should work around make
3239         implementations with limited (broken?) `-k' support; for more
3240         information, see these subthreads on the automake-patches list:
3241           - 2010-11-15, "Testsuite failures on HP-UX 11.23",
3242             <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00162.html>
3243           - 2010-11-15, "Testsuite failures on IRIX 6.5",
3244             <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00166.html>
3245
3246 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3247
3248         Minor improvements to test 'amopts.test'.
3249         * tests/amopts.test: Remove botched comment.  Make grepping of
3250         automake stderr slighty stricter.  Add trailing `:' command.
3251
3252 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3253
3254         backcompat6.test: avoid comments inside recipe commands.
3255         * tests/backcompat6.test: Remove shell comments from makefile rule
3256         commands, as they are not portable to (at least) Tru64 make.
3257
3258 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3259
3260         man8.test: avoid comments inside recipe commands.
3261         * tests/man8.test: Remove shell comments from makefile rule
3262         commands, as they are not portable to (at least) Tru64 make.
3263
3264 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3265
3266         Fix sed-related buglet in test "subdir5.test"
3267         * tests/subdir5.test: Always terminate text passed to the
3268         `i' sed command with a newline, to work around limitations
3269         in e.g. older OpenBSD sed.
3270
3271 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3272
3273         Fix spurious failures in tests on AC_CONFIG_AUX_DIR.
3274         * tests/auxdir7.test: Do not try to needlessly overwrite the files
3275         `install-sh' and `missing'.  This avoid spurious failures in "make
3276         distcheck", when those files might be copied as read-only from the
3277         `lib' directory.
3278         * tests/auxdir8.test: Likewise.
3279
3280 2010-12-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
3281
3282         Make test 'posixsubst-script' portable to MinGW/MSYS.
3283         * tests/posixsubst-script.test: Ensure that the generated dummy
3284         scripts really start with a shebang line, to work around a
3285         limitation of 'test -x' on MinGW/MSYS.
3286         Reported by Ralf Wildenhues.
3287
3288         Improve comments in tests `posixsubst*.test'.
3289         * tests/posixsubst-data.test: Improve comment explaining why we
3290         try also empty match suffix.
3291         * tests/posixsubst-extradist.test: Likewise.
3292         * tests/posixsubst-ldadd.test: Likewise.
3293         * tests/posixsubst-libraries.test: Likewise.
3294         * tests/posixsubst-ltlibraries.test: Likewise.
3295         * tests/posixsubst-programs.test: Likewise.
3296         * tests/posixsubst-scripts.test: Likewise.
3297         * tests/posixsubst-sources.test: Likewise.
3298         * tests/posixsubst-tests.test: Likewise.
3299         Suggested by Ralf Wildenhues.
3300
3301 2010-12-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
3302
3303         docs: fix blunder in example about python extension modules
3304         * doc/automake.texi (Python): Use `quaternion_la_SOURCES',
3305         not `quaternion_SOURCES', to declare the sources of python
3306         extension module `quaternion.la'.
3307
3308 2010-12-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3309
3310         docs: list LTLIBRARIES among Automake primaries
3311         * doc/automake.texi (Uniform): List `LTLIBRARIES' among
3312         the Automake primaries.
3313
3314 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3315             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3316
3317         Tests defs: requirement 'xsi-shell' must be synced with libtool.
3318         * tests/defs (xsi-shell): Add comment telling to keep the
3319         XSI-conformance checks in sync with libtool.
3320
3321 2010-12-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
3322
3323         Minor cleanups in canon7.test.
3324         * tests/canon7.test (_foo_bar_SOURCES): Remove libs.c.
3325         (configure.in): Remove AC_PROG_CXX.
3326
3327 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3328
3329         Avoid false positive in sc_tests_plain_make maintainer-check.
3330         * Makefile.am (sc_tests_plain_make): Ensure to only match full
3331         `make' words.  Avoid false positive with remake11.test.
3332
3333 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3334
3335         Fix canon7.test failure.
3336         * tests/canon7.test (_foo_bar_SOURCES): Add foobar.c.
3337         (lib.h, libd.c, libs.c): Use const for constant strings.
3338
3339 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3340
3341         Fix typos in test comments.
3342         * tests/posixsubst-data.test, tests/posixsubst-extradist.test,
3343         tests/posixsubst-ldadd.test, tests/posixsubst-libraries.test,
3344         tests/posixsubst-ltlibraries.test, tests/posixsubst-programs.test,
3345         tests/posixsubst-scripts.test, tests/posixsubst-sources.test,
3346         tests/posixsubst-tests.test: Fix typos.
3347
3348 2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
3349
3350         More uses of AS_HELP_STRING in automake macros.
3351         * m4/depend.m4 (AM_DEP_TRACK): Use `AS_HELP_STRING' to format
3352         the help message added to the generated configure.
3353         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise.
3354         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
3355         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
3356         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
3357         Also, bumped all serial numbers of the modified m4 files.
3358
3359 2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
3360
3361         Improve tests on generated portions of configure help screen.
3362         * tests/help-depend.test: Grepping of configure help screen
3363         relaxed to cater for possible line wrapping, and tightened in
3364         other respects.
3365         * tests/help-depend2.test: Likewise.
3366         * tests/help-dmalloc.test: Likewise.
3367         * tests/help-lispdir.test: Likewise.
3368         * tests/help-maintainer.test: Likewise.
3369         * tests/help-multilib.test: Likewise.
3370         * tests/help-silent.test: Likewise.
3371         * tests/help-upc.test: Likewise.
3372         * tests/help-init.test: Grepping of configure help screen
3373         tightened.
3374
3375 2010-12-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3376
3377         Extended tests on AC_CONFIG_AUX_DIR.
3378         * tests/auxdir.test: Enable `errexit' shell flag.  Prefer `$me'
3379         over hard-coded test name.  Use proper m4 quoting.  Add trailing
3380         `:' command.
3381         * tests/auxdir2.test: Likewise.  Try to call automake also with
3382         the `-a' option, so that it will not fail for spurious reasons.
3383         * tests/auxdir3.test: Add an explanatory comment and a trailing
3384         `:' command.
3385         * tests/auxdir4.test: Prefer `$me' over hard-coded test name.
3386         Make grepping of automake stderr slightly stricter.  Also, now
3387         this test just checks about Automake's reaction to unportable
3388         auxiliary directory names (and it has been extended in this
3389         respect).  Moved the checks about non-existent auxiliary
3390         directories to ...
3391         * tests/auxdir5.test: ... this new test.
3392         * tests/auxdir6.test: New test.
3393         * tests/auxdir7.test: Likewise.
3394         * tests/auxdir8.test: Likewise.
3395         * tests/auxdir9.test: Likewise.
3396         * tests/Makefile.am (TESTS): Updated.
3397
3398 2010-12-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3399
3400         Tests: extend checks on remake rules.
3401         This adds proper semantical tests (i.e. run make to check the
3402         rebuild rules are correctly triggered) in addition to tentative
3403         grepping of the generated Makefile.in(s).
3404         * tests/remake.test: Enable `errexit' shell flag, and related
3405         changes.  Modernize `configure.in'.  Add trailing `:' command.
3406         Improve heading comments, and add a reference to new sister test
3407         remake1a.test.
3408         * tests/remake3.test: Likewise (but with sister test being
3409         remake3a.test).
3410         * tests/remake2.test: Improve heading comments.  Enable `errexit'
3411         shell flag, and related changes.  Modernize `configure.in'.  Make
3412         grepping of `Makefile.in' slightly stricter.  Add trailing `:'
3413         command.
3414         * tests/remake5.test: Also run the `distcheck' target.  Add
3415         trailing `:' command.  Use proper m4 quoting in configure.in.
3416         * tests/remake4.test: Prefer `$me' over hard-coded test name.
3417         * tests/remake7.test: Use the `configure.in' stub created by
3418         ./defs, rather than writing it from scratch.
3419         * tests/remake6.test: Likewise.  Also, add trailing `:' command,
3420         and ensure verbose printing of captured make output.
3421         * tests/remake1a.test: New test, sister of remake.test.
3422         * tests/remake3a.test: New test, sister of remake3.test.
3423         * tests/remake8a.test: New test.
3424         * tests/remake8b.test: Likewise.
3425         * tests/remake9a.test: Likewise.
3426         * tests/remake9b.test: Likewise.
3427         * tests/remake9c.test: Likewise.
3428         * tests/remake9d.test: Likewise.
3429         * tests/remake10a.test: Likewise.
3430         * tests/remake10b.test: Likewise.
3431         * tests/remake10c.test: Likewise.
3432         * tests/remake11.test: Likewise.
3433         * tests/remake12.test: Likewise.
3434         * tests/Makefile.am (TESTS): Updated.
3435
3436 2010-12-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
3437
3438         Improve and extend tests on canonicalization.
3439         * tests/canon-name.test: Add trailing `:' command.  When writing
3440         configure.in, prefer to use $me instead of hard-coding the test
3441         name.
3442         * tests/canon3.test: Prefer trailing `:' over trailing `Exit 0'.
3443         * tests/canon4.test: Likewise.  Make grepping of Makefile.in
3444         stricter.  Improve heading comment, and add reference to ...
3445         * tests/canon6.test: ... this new test (sister test of the
3446         previous one).
3447         * tests/canon.test: Prefer cat + here-doc over echo to append
3448         text to configure.in.  Extend grepping of Automake stderr.  Add
3449         trailing `:' command.
3450         * tests/canon5.test: Likewise.
3451         * tests/canon7.test: New file, stress test on canonicalization.
3452         * tests/canon8.test: New test, for better coverage (check that
3453         the `@' character is not transliterated in canonicalizations).
3454         * tests/Makefile.am: Updated.
3455
3456 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3457
3458         Libobj tests: refer to automake bug tracker for limitations.
3459         * tests/libobj15b.test (configure.in): In the comment explaining
3460         why an apparently redundant AC_OUTPUT is indeed needed, refer
3461         to the relevant entry in the Automake bug tracker rather than
3462         describing the bug in detail with a FIXME-style comment.
3463         * tests/libobj15c.test: Likewise.
3464         * tests/libobj20b.test: Likewise.
3465
3466         Libobj tests: do not use `##' automake comments in-line.
3467         * tests/libobj19.test (Makefile.am): Do not use inline `##'
3468         comments in the definition of AUTOMAKE_OPTIONS.
3469         * tests/libobj20c.test: Likewise.
3470         Report by Ralf Wildenhues.
3471
3472 2010-12-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3473
3474         Tests defs: more uses of $top_testsrcdir.
3475         * tests/compile6.test: Use `$top_testsrcdir' instead of
3476         `$testsrcdir/..'.
3477
3478 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3479
3480         Tests required tools: also try `-v' option for GNU compilers.
3481         * tests/defs.in: In the loop on "$required" tools, for gcc
3482         and g++, also run "gcc -v" (resp. "g++ -v"), to get more
3483         information, and for consistency with gcj.
3484
3485 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3486             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3487
3488         Tests defs: avoid some useless subshells.
3489         * tests/defs: In the loop on "$required" tools: avoid subshells
3490         where not needed.
3491
3492 2010-12-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
3493
3494         Extend tests on AC_LIBOBJ and friends.
3495         * tests/aclibobj.test: Removed, superseded by ...
3496         * tests/libobj-basic.test: ... this new test, which runs autoconf,
3497         ./configure and make, to ensure everything really works.
3498         * tests/libobj3.test: Add trailing `:' command.  Escape literal
3499         dot in grep regexp.
3500         * tests/libobj4.test: Enable `errexit' shell flag, and related
3501         changes.  Add trailing `:' command.  Use proper m4 quoting.
3502         * tests/ltlibobjs.test: Likewise.
3503         * tests/libobj5.test: Enable `errexit' shell flag, and related
3504         changes.  Add trailing `:' command.  Make more robust by using
3505         longer filenames to be grepped.
3506         * tests/libobj8.test: Enable `errexit' shell flag, and related
3507         changes.  Add trailing `:' command.  Use the configure.in
3508         stub provided by ./defs, rather than writing it from scratch.
3509         * tests/libobj2.test: Likewise.  Also, add calls to autoconf,
3510         ./configure and make, to ensure everything really works.
3511         * tests/libobj7.test: Likewise, and ensure that at least one
3512         function listed in AC_REPLACE_FUNCTIONS is truly replaced.
3513         * tests/libobj13.test: Make grepping of Automake stderr slightly
3514         stricter.  Add trailing `:' command.
3515         * tests/libobj12.test: Likewise.  Also, prefer "cat + here-doc"
3516         over "echo" to append to Makefile.am, and some cosmetic changes
3517         in spacing.
3518         * tests/libobj14.test: Call `Exit 1' if sourcing of ./defs fails.
3519         Slighty improve m4 quoting.  Add trailing `:' command.
3520         * tests/libobj10.test: Add calls to autoconf, ./configure and
3521         make, to ensure everything really works.  Also, remove tests that
3522         nonexistent source for AC_LIBOBJ cause an Automake failure: this
3523         is already checked by ...
3524         * tests/libobj15a.test: ... this new test.
3525         * tests/libobj15b.test: New test, sister test of libobj15a.test,
3526         checks AC_LIBSOURCE instead of AC_LIBOBJ.
3527         * tests/libobj15c.test: New test, sister test of libobj15a.test,
3528         checks AC_LIBSOURCES instead of AC_LIBOBJ.
3529         * tests/libobj11.test: Removed, superseded by ...
3530         * tests/libobj16a.test: ... this new test.
3531         * tests/libobj16b.test: New test, sister test of libobj16a.test,
3532         but using oldish/deprecated idioms.
3533         * tests/libobj17.test: New test.
3534         * tests/libobj18.test: Likewise.
3535         * tests/libobj19.test: Likewise.
3536         * tests/libobj20a.test: Likewise.
3537         * tests/libobj20b.test: Likewise.
3538         * tests/libobj20c.test: Likewise.
3539         * tests/Makefile.am (TESTS): Updated.
3540
3541 2010-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
3542
3543         Test `$(var:suf=rpl)' expansion in special automake variables.
3544         * tests/posixsubst-data.test: New test.
3545         * tests/posixsubst-extradist.test: Likewise.
3546         * tests/posixsubst-ldadd.test: Likewise.
3547         * tests/posixsubst-libraries.test: Likewise.
3548         * tests/posixsubst-ltlibraries.test: Likewise.
3549         * tests/posixsubst-programs.test: Likewise.
3550         * tests/posixsubst-scripts.test: Likewise.
3551         * tests/posixsubst-sources.test: Likewise.
3552         * tests/posixsubst-tests.test: Likewise.
3553         * tests/Makefile.am (TESTS): Update.
3554
3555 2010-12-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3556
3557         Make tests `colon*.test' more "semantic".
3558         Prefer running configure and make over grepping the generated
3559         files; this is both more correct and less fragile.
3560         * tests/colon.test: Made more "semantic", as described above.
3561         * tests/colon5.test: Likewise.
3562         * tests/colon6.test: Likewise.
3563         * tests/colon7.test: Likewise.
3564         * tests/colon2.test: Likewise, and improve syncing with sister
3565         test `colon3.test'.
3566         * tests/colon3.test: Likewise (but with the sister test being
3567         `colon2.test' here).
3568
3569 2010-12-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3570
3571         Avoid running installed automake from 'libtool --help'.
3572         * tests/subobj9.test: Export AUTOCONF and AUTOMAKE.
3573         Together with fixed Libtool, this fixes check-coverage to not
3574         invoke installed automake.
3575
3576 2010-12-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3577
3578         Separate checks on target overriding into multiple test scripts.
3579         * tests/overrid.test: Deleted, its contents separated into ...
3580         * tests/override-suggest-local.test: ... this new test ...
3581         * tests/override-html.test: ... and this new test ...
3582         * tests/override-conditional-1.test: ... and this new test ...
3583         * tests/override-conditional-2.test: ... and this new test (still
3584         xfailing).
3585         * tests/Makefile.am (TESTS, XFAIL_TESTS): Updated.
3586
3587         Enable `set -e' in more tests (plus some tweakings).
3588         * tests/implicit.test: Enable `errexit' shell flag, and related
3589         changes.  Add trailing `:' command.
3590         * tests/insh2.test: Likewise.
3591         * tests/instman2.test: Likewise.
3592         * tests/interp.test: Likewise.
3593         * tests/interp2.test: Likewise.
3594         * tests/library.test: Likewise.
3595         * tests/mclean.test: Likewise.
3596         * tests/info.test: Enable `errexit' shell flag, and related
3597         changes.  Add trailing `:' command.  Remove useless chaff from
3598         generated Makefile.am.  Add a "FIXME" comment.
3599         * tests/include.test: Enable `errexit' shell flag, and related
3600         changes.  Add trailing `:' command.  Prefer cat + here-doc over
3601         echo to append to configure.in.  Make tests more robust by using
3602         longer and less common names to grep.  Remove an useless call to
3603         echo.  Remove an useless subshell.
3604         * tests/header.test: Enable `errexit' shell flag, and related
3605         changes.  Use proper m4 quoting.  Add excerpts from the original
3606         report of the bug tested for by this script.
3607         * tests/gcj.test: Enable `errexit' shell flag, and related
3608         changes.  Use proper m4 quoting.  Add trailing `:' command.
3609         * tests/gcj3.test: Likewise.
3610         * tests/ldflags.test: Likewise.
3611         * tests/libtool.test: Likewise.
3612         * tests/listval.test: Likewise.
3613         * tests/javaprim.test: Likewise, and prefer cat + here-doc over
3614         echo to append to configure.in.
3615         * tests/javasubst.test: Likewise.
3616         * tests/discorver.test: Enable `errexit' shell flag.  Prefer
3617         trailing `:' over trailing `Exit 0'.
3618         * tests/instdat.test: Enable `errexit' shell flag, and related
3619         changes.  Use proper m4 quoting.  Avoid useless subshell.  Prefer
3620         cat + here-doc over echo to append to configure.in.
3621         * tests/libtool2.test: Enable `errexit' shell flag, and related
3622         changes.  Add trailing `:' command.  Use the configure.in
3623         stub provided by ./defs, rather than writing it from scratch.
3624
3625         Modernize, improve and/or tweak some test scripts.
3626         * tests/maintclean.test: Use proper m4 quoting.  Add trailing `:'
3627         command.
3628         * tests/sinclude.test: Likewise, and add a couple of blank lines,
3629         for clarity.
3630         * tests/make.test: Move setting of `errexit' shell flag earlier in
3631         the script (just after inclusion of ./defs).  Use the configure.in
3632         stub created by ./defs, rather than writing it from scratch.  Some
3633         cosmetic changes in spacing.  Ensure we wait enough time before
3634         touching configure.in to trigger the rebuild rules.
3635         * tests/makej.test: Use `$me' instead of hard-coding the test
3636         name.  Add trailing `:' command.
3637         * tests/version7.test: Likewise.
3638         * tests/space.test: Enable `errexit' shell flag, and related
3639         changes.
3640         * tests/makevars.test: Likewise.  Also, prefer trailing `:' over
3641         trailing `Exit 0', and be more tolerant of white spaces when
3642         grepping Makefile.in.
3643
3644 2010-12-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3645
3646         * tests/silent8.test: Use "|| Exit 1" after ". ./defs".
3647
3648         Enable `set -e' in more tests (plus some tweakings).
3649         * tests/mkinstall.test: Enable `errexit' shell flag, and related
3650         changes.  Add a trailing `:' command, if needed.
3651         * tests/mdate2.test: Likewise.
3652         * tests/objc.test: Likewise.
3653         * tests/noinst.test: Likewise.
3654         * tests/outdir.test: Likewise.
3655         * tests/number.test: Likewise.
3656         * tests/pluseq.test: Likewise.
3657         * tests/req.test: Likewise.
3658         * tests/rulepat.test: Likewise.
3659         * tests/specflg6.test: Likewise.
3660         * tests/spell3.test: Likewise.
3661         * tests/parse.test: Likewise, and ...
3662         (configure.in): Use the stub created by ./defs, rather than
3663         writing it from scratch.  Remove useless calls to AC_PROG_RANLIB
3664         and AC_OUTPUT.
3665         * tests/mdate4.test: Likewise.
3666         * tests/mkinstall.test: Likewise, and ...
3667         (configure.in): ... drop useless call to `AC_OUTPUT'.
3668         * tests/output.test: Enable `errexit' shell flag, and related
3669         changes.  Add a trailing `:' command.
3670         (configure.in): Modernize.
3671         * tests/output2.test: Likewise.
3672         * tests/output3.test: Likewise.
3673         * tests/output4.test: Likewise.
3674         * tests/mdate3.test: Enable `errexit' shell flag, and related
3675         changes.  Prefer `$me' over hard-coded test name.  Do not move
3676         non-existent or useless files in the build auxiliary directory.
3677         * tests/nodistdir.test: Enable `errexit' shell flag, and related
3678         changes.  Prefer trailing `:' over trailing `Exit 0'.
3679         * tests/nodist.test: Likewise.  Also, prefer cat + here-doc over
3680         echo to create input test files, and do not create useless dummy
3681         C source files.
3682         * tests/nodist2.test: Likewise.
3683         * tests/ppf77.test: Enable `errexit' shell flag, with related
3684         changes.  Add a trailing `:' command.  Do not create useless
3685         dummy source files.
3686         * tests/spelling.test: Enable `errexit' shell flag, with related
3687         changes.  Add a trailing `:' command.  Also, grep Automake error
3688         message.
3689         * tests/specflg3.test: Enable `errexit' shell flag, with related
3690         changes.  Avoid unportable use of `-e' option of fgrep.  Prefer
3691         trailing `:' over trailing `Exit 0'.  Remove extra empty lines,
3692         and cosmetic changes to whitespaces.
3693         * tests/obsolete.test: Enable `errexit' shell flag, with related
3694         changes.  Improve verbosity.  Other miscellaneous changes.
3695
3696 2010-11-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
3697
3698         Improve and extend tests on `:=' variable assignments.
3699         * tests/colneq.test: Avoid redundant use of variable assignments
3700         in Makefile.am.  Use command-line automake options instead of
3701         editing AUTOMAKE_OPTIONS in Makefile.am.  Make grepping of the
3702         generated Makefile.in slightly stricter.  Add a trailing `:'
3703         command.
3704         * tests/colneq2.test: Do not create unneeded dummy files.  Run
3705         also autoconf, ./configure and make.  Add trailing `:' command.
3706         * tests/colneq3.test: New test, similar to colneq.test, but
3707         running also autoconf, ./configure and make.
3708         * tests/Makefile.am (TESTS): Update.
3709
3710 2010-11-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3711
3712         Remove long-deprecated options --Werror and --Wno-error.
3713         These options has been deprecated at least since commit
3714         "Release-1-6-1b-35-gc037f20", dated 2002-07-06.
3715         * automake.in (parse_arguments): Do not recognize anymore options
3716         `--Werror' and `--Wno-error' as synonyms of respectively `-Werror'
3717         and `-Wno-error'.
3718         * tests/werror.test: Update: use `-Werror' instead of `--Werror'.
3719         * NEWS: Update.
3720
3721 2010-11-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
3722
3723         Fix spurious failures in `silent*.test' for $CC != gcc
3724         In some tests on automake-produced silent rules, we forced the
3725         use of gcc depmode to improve testsuite coverage; but this has
3726         unsurprisingly led to spurious failures when some non-GNU C
3727         compilers were used.  So we are now careful to require GCC in
3728         tests that force gcc depmode.
3729         From reports by Ralf Wildenhues.
3730         * tests/silent5.test: Test removed, its content split into ...
3731         * tests/silent-many-generic.test, tests/silent-many-gcc.test: ...
3732         these new sister tests, the latter of which forces gcc depmode
3733         and lists "gcc" in $required.
3734         * tests/silentlex.test: Test removed, its content split into ...
3735         * tests/silent-lex-generic.test, tests/silent-lex-gcc.test: ...
3736         these new sister tests, the latter of which forces gcc depmode
3737         and lists "gcc" in $required.
3738         * tests/silentyacc.test: Test removed, its content split into ...
3739         * tests/silent-yacc-generic.test, tests/silent-yacc-gcc.test: ...
3740         these new sister tests, the latter of which forces gcc depmode and
3741         lists "gcc" in $required.
3742         * tests/Makefile.am (TESTS): Updated.
3743
3744 2010-11-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3745
3746         Tests: consistently use "|| Exit 1" after ". ./defs".
3747         * tests/autohdr.test: Use `. ./defs || Exit 1', not bare
3748         `. ./defs', for consistency with other tests.
3749         * tests/autohdr2.test: Likewise.
3750         * tests/autohdr3.test: Likewise.
3751         * tests/autohdr4.test: Likewise.
3752         * tests/cond23.test: Likewise.
3753         * tests/cond24.test: Likewise.
3754         * tests/cond25.test: Likewise.
3755         * tests/cond26.test: Likewise.
3756         * tests/cond27.test: Likewise.
3757         * tests/cond28.test: Likewise.
3758         * tests/cond29.test: Likewise.
3759         * tests/cond30.test: Likewise.
3760         * tests/cond31.test: Likewise.
3761         * tests/cond32.test: Likewise.
3762         * tests/cond33.test: Likewise.
3763         * tests/cond34.test: Likewise.
3764         * tests/cond35.test: Likewise.
3765         * tests/cond36.test: Likewise.
3766         * tests/cond37.test: Likewise.
3767         * tests/cond38.test: Likewise.
3768         * tests/cond39.test: Likewise.
3769         * tests/cond40.test: Likewise.
3770         * tests/cond41.test: Likewise.
3771         * tests/cond42.test: Likewise.
3772         * tests/cond43.test: Likewise.
3773         * tests/cond44.test: Likewise.
3774         * tests/cond45.test: Likewise.
3775         * tests/dollarvar.test: Likewise.
3776         * tests/dollarvar2.test: Likewise.
3777         * tests/hfs.test: Likewise.
3778         * tests/libobj14.test: Likewise.
3779         * tests/percent.test: Likewise.
3780         * tests/percent2.test: Likewise.
3781         * tests/phony.test: Likewise.
3782         * tests/silent.test: Likewise.
3783         * tests/silent2.test: Likewise.
3784         * tests/silent3.test: Likewise.
3785         * tests/silent4.test: Likewise.
3786         * tests/silent5.test: Likewise.
3787         * tests/silent6.test: Likewise.
3788         * tests/silent7.test: Likewise.
3789         * tests/silent9.test: Likewise.
3790         * tests/silentcxx.test: Likewise.
3791         * tests/silentf77.test: Likewise.
3792         * tests/silentf90.test: Likewise.
3793         * tests/silentlex.test: Likewise.
3794         * tests/silentyacc.test: Likewise.
3795
3796         Avoid useless cleaning in some `silent*.test' tests.
3797         * tests/silentf77.test: Removed useless calls to "make clean"
3798         and "make maintainer-clean".
3799         * tests/silentf90.test: Likewise.
3800         * tests/silent3.test: Removed useless call to "make distclean".
3801         * tests/silent4.test: Likewise.
3802         * tests/silent9.test: Likewise.
3803
3804 2010-11-19  Ian Lance Taylor  <iant@google.com>
3805
3806         Sync config-ml.in from GCC.
3807         * config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
3808         compiler/flag environment variables.
3809
3810 2010-11-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3811
3812         release-stats: account for more generated tests.
3813         * Makefile.am (release-stats): Be sure to take into account all
3814         the generated tests, by grepping the test scripts to decide which
3815         ones of them are automatically generated.
3816
3817 2010-11-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3818
3819         Code cleanup after removal of option `--output-directory'.
3820         * automake.in ($output_directory): Remove, it's unconditionally
3821         defined to `.' and used only ...
3822         (generate_makefile): ... in this subroutine, which now has been
3823         edited and simplified accordingly.
3824
3825         Remove obsolete automake option `--output-directory'.
3826         This option has been deprecated since version 1.7 (2002/2003).
3827         * automake.in ($output_directory): Define to `.' unconditionally.
3828         (parse_arguments): Remove handling of equivalent options `-o' and
3829         `--output-directory'.
3830         * tests/outdir.test: Removed.
3831         * tests/no-outdir-option.test: New test.
3832         * tests/Makefile.am (TESTS): Updated.
3833         * NEWS: Updated.
3834
3835 2010-11-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
3836
3837         Automake::Config: remove extra trailing semicolon.
3838         * lib/Automake/Config.in: Remove extra trailing semicolon.
3839
3840         help4.test: fix botched heading comment.
3841         * tests/help4.test: Fixed the heading comment, since it
3842         didn't correctly describe what checks the testcase was
3843         supposed to perform.
3844
3845         help2.test: add checks on aclocal too.
3846         * tests/help2.test: Check that also `aclocal --version' and
3847         `aclocal --help' work with configure.in and acinclude.m4 both
3848         broken.
3849
3850 2010-11-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
3851
3852         New test on repeated automake options.
3853         * tests/repeated-options.test: New test, check that automake
3854         does not complain on repeated options, nor generate broken or
3855         incorrect makefiles.
3856         * tests/Makefile.am (TESTS): Updated.
3857
3858 2010-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
3859
3860         Fix spurious failures of silent-rules tests with Sun Fortran.
3861         * tests/silentf77.test: Strip from the make output some verbose
3862         messages possibly printed by the SunStudio fortran compilers, to
3863         avoid spurious failures.  Add a trailing `:' command.
3864         * tests/silentf90.test: Likewise.
3865
3866 2010-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
3867
3868         Fix spurious failures of silent5.test with Sun Fortran.
3869         * tests/silent5.test: Strip from the make output some verbose
3870         messages possibly printed by the SunStudio fortran compilers,
3871         to avoid spurious failures.  This bug has been there from the
3872         very first version of this test script.
3873
3874 2010-11-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3875
3876         Fix regression in colon{5,6}.test (failures on AIX 5.3).
3877         * tests/colon5.test: Also substitute `@SHELL@' with `$SHELL' when
3878         post-processing the generated Makefile.in, to work around a bug
3879         of AIX 5.3 make which doesn't allow setting the `$(SHELL)' macro
3880         on the commend line.  Calls to `$MAKE' adjusted accordingly.
3881         * tests/colon6.test: Likewise.
3882         Regression introduced in commit v1.11-175-gf9fe878 "Modernize,
3883         improve and/or extend tests `colon*.test", and reported by Ralf
3884         Wildenhues.
3885
3886 2010-11-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3887
3888         Fix regression in ansi.test (failure on AIX 5.3).
3889         * tests/ansi.test: Remove redundant hackish check done using a
3890         hand-postprocessed Makefile.in.  This check worked by setting
3891         the `$(SHELL)' macro on the command line of make, but this is
3892         not supported by the AIX 5.3 make implementation.
3893         This bug has been lurking for a long time, and was activated by
3894         commit v1.11-125-gc1f6cdb "Enable `errexit' shell flag in various
3895         tests".  Report by Ralf Wildenhues.
3896
3897 2010-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3898
3899         backcompat5.test: avoid '##'-style comments inside recipe commands.
3900         * tests/backcompat5.test: Remove double-hash comments
3901         from makefile rule commands, they are not part of the
3902         Automake API.  Fixes testsuite failure with Tru64 make.
3903
3904         tests: avoid '##'-style comments inside recipe commands.
3905         * tests/confh.test, tests/confh8.test: Remove
3906         double-hash comments from makefile rule commands, they
3907         are not part of the Automake API.
3908
3909 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3910
3911         tests: work around dash quoting issue in case statements.
3912         * tests/color.test, tests/color2.test: Quote variable in case
3913         pattern, to avoid skipping tests with dash 0.5.5.1.
3914
3915 2010-11-16  Peter Rosin  <peda@lysator.liu.se>
3916
3917         Skip MSVC oriented tests if the shell is not capable.
3918         * tests/defs: New required entry 'xsi-shell'.
3919         * tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
3920         Require a XSI capable shell.
3921         Reported by Ralf Wildenhues.
3922
3923 2010-11-15  Peter Rosin  <peda@lysator.liu.se>
3924
3925         compile: clear the `eat' variable earlier.
3926         * lib/compile: Clear the `eat' variable earlier.
3927         ($scriptversion): Update.
3928         * tests/compile3.test: Prevent regressions.
3929
3930 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3931
3932         More stable configure output from sanity check.
3933         * m4/sanity.m4 (AM_SANITY_CHECK): Always print check line
3934         about ensuring newer files, even if we don't actually need
3935         to wait any more.
3936
3937 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3938
3939         Rebuild menus in the manual.
3940         * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
3941         Thanks to Ian Lance Taylor for the suggestion.
3942
3943         Fix install-strip when $(STRIP) contains several words.
3944         * lib/am/install.am (install-strip): Update comment.  Use
3945         separate sub-make invocations for empty and nonempty $(STRIP),
3946         to fix quoting issues.
3947         * tests/strip2.test, tests/strip3.test: New tests.
3948         * tests/Makefile.am (TESTS): Adjust.
3949
3950 2010-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3951
3952         Fix yaccdry.test failure: require bison.
3953         * tests/yaccdry.test: Require bison.
3954         Found by NixOS Hydra.
3955
3956 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3957
3958         Fix bug in test `backcompat6.test' (MSYS portability).
3959         * tests/backcompat6.test (Makefile.am): Grep the output from the
3960         test program, rather than diffing it, to avoid spurious failures
3961         on MinGW/MSYS due to LF vs. CRLF line endings.
3962         Reported by Ralf Wildenhues.
3963
3964 2010-11-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3965
3966         Deprecate obsolete macro AM_WITH_REGEX.
3967         * m4/regex.m4: Document the `AM_WITH_REGEX' macro as obsolete,
3968         and state that it should be removed two years from now.
3969         (AM_WITH_REGEX): Raise an m4-time warning of the "obsolete"
3970         category when this macro is used.
3971         * doc/automake.texi (Public Macros): Move description of
3972         `AM_WITH_REGEX' from here ...
3973         (Obsolete Macros): ... to here, and declare it as obsolete
3974         and "to be removed in a future version".
3975         * tests/regex-obsolete.test: New test.
3976         * tests/Makefile.am (TESTS): Update.
3977
3978 2010-11-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
3979
3980         Improve and extend tests on man pages support.
3981         * tests/man.test: Enable `errexit' shell flag, and related changes.
3982         Make grepping of generated Makefile.in slightly stricter.
3983         * tests/man3.test:  Add trailing `:' command.
3984         * tests/man5.test: Prefer cat + here-doc over echo to append to
3985         configure.in.
3986         * tests/man2.test: Likewise, and add trailing `:' command.
3987         * tests/man4.test: More thorough and consistent checking of make
3988         error messages.  Place fake `help2man' program in a new `bin'
3989         directory rather than in `.'.  Move the checks using the real
3990         `help2man' program to ...
3991         * tests/man6.test: ... this new test, and extend them.  This test
3992         passes with GNU make and Solaris make, still fails with BSD make.
3993         * tests/man7.test: New test, extracted from old man4.test, which
3994         checks for a bug in maintainer-clean w.r.t. generated manpages.
3995         * tests/man8.test: New test, extracted from old man4.test, which
3996         checks for a bug in distcheck w.r.t. generated manpages.  Passes
3997         with GNU make and Solaris make, still fails with BSD make.
3998
3999 2010-11-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
4000
4001         Minor improvements and extensions to various tests.
4002         * tests/defun.test: Also run autoconf and grep the generated
4003         configure to make sure that aclocal truly picks up all the
4004         required macros.
4005         * tests/compile_f_c_cxx.test: Prefer trailing `:' over trailing
4006         `Exit 0'.  Do not create useless dummy source files.  Do not set
4007         useless `$(foo_LDADD)' variable in `Makefile.am'.  Do not call
4008         useless macro `AC_F77_LIBRARY_LDFLAGS' in `configure.in'.
4009         * tests/compile_f90_c_cxx.test: Likewise.
4010         * tests/suffix10.test: Slightly stricter grepping of make output.
4011         * tests/compile.test: Add trailing `:' command.
4012         * tests/defun2.test: Likewise.
4013         * tests/vars3.test: Likewise.
4014         * tests/vartar.test: Likewise.
4015         * tests/vars.test: Likewise.  Also, extend test by checking
4016         that the definition of `MY_FLAGS*' variables is preserved in
4017         the generated `Makefile.in'.
4018         * tests/stamph2.test: Prefer trailing `:' over trailing `Exit 0'.
4019         Use proper m4 quoting in `configure.in'.
4020
4021 2010-11-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
4022
4023         Tests defs: improve messages for skipped tests.
4024         * tests/defs: Give meaningful messages about the reasons of a
4025         test skip; this is especially useful as this file is run without
4026         verbose xtraces on.  Related reorderings in the code and new
4027         comments.
4028
4029 2010-11-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
4030
4031         Tests defs: move static definitions in a new file `defs-static'.
4032         The new file is meant to be idempotent w.r.t. multiple inclusions.
4033         * tests/defs.in: Removed, its contents split among ...
4034         * tests/defs-static.in: ... this new file ...
4035         * tests/defs: ... and this new file, including the former.
4036         * configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
4037         `tests/defs-static'.
4038         (AC_CONFIG_LINKS): Add `tests/defs'.
4039         * tests/Makefile.am ($(parallel_tests)): Update.
4040         ($(instspc_tests)): Likewise.
4041         * tests/.gitignore: Update.
4042
4043         Tests defs: $testsbuilddir is now AC_SUBST'ed.
4044         * tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
4045         Add sanity check on $testsbuilddir, similar to those on
4046         $testsrcdir and $top_testsrcdir.
4047
4048         Tests defs: do not print message "Running test $0" anymore.
4049         * tests/defs.in: Printing the message "=== Running test $0" at
4050         the beginning of each tests made sense when Automake used the old
4051         test-driver, which sent all the output directly to stdout/stderr.
4052         Now that the parallel test-driver is used, which saves output of
4053         each test in its corresponding log file, that old message is just
4054         useless noise.
4055
4056         Tests defs: rename $curdir -> $testbuilddir
4057         * tests/defs.in: Rename $curdir to $testbuildir, for clarity and
4058         consistency with $testsrcdir and $top_testsrcdir.
4059
4060         Tests defs: prefer "$curdir" over "`pwd`".
4061         * tests/defs.in: We already save the value of `pwd` in $curdir
4062         early in the file, so there no need to recalculate it later, when
4063         the current working directory is not changed.
4064
4065         Tests defs: use `$me' in more error messages.
4066         * tests/defs.in: Also use `$me' in error messages referring to
4067         missing `defs' or `defs.in', since that variable is now defined
4068         before those checks.
4069
4070         Tests defs: do not use `Exit' where plain `exit' suffices.
4071         * tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the
4072         test when required libtool/gettext macros are not found, since
4073         such skips would take place before the exit trap is installed.
4074
4075         Tests defs: improve and extends comments.
4076         * tests/defs.in: Improve and extends some comments, especially in
4077         relation with the changes introduced by the previous reordering.
4078
4079         Tests defs: various reorderings.
4080         * tests/defs.in: Reordered various snippets of code in a
4081         clearer way.
4082
4083 2010-11-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
4084
4085         Fix bug in test `backcompat4.test' (stale autom4te cache).
4086         * tests/backcompat4.test: Remove stale autom4te cache directory
4087         before re-running aclocal and automake.  Also, since we are at
4088         it, be more verbose in displaying contents of generated files,
4089         to ease debuggability.
4090         Reported by Ralf Wildenhues.
4091
4092 2010-11-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4093
4094         Fix a bug in variable concatenation with `+='.
4095         * lib/Automake/VarDef.pm (append): Since the content of the
4096         "appended-to" variable is going to be unconditionally normalized
4097         later, simply separate the appended value with a single whitespace
4098         character, instead of trying to be uselessly smarter by using
4099         escaped newlines.  This fixes a bug in which extra backslashes
4100         where erroneously inserted in the variable's final value.
4101         * tests/pluseq11.test: New test, exposing the bug.
4102         * tests/Makefile.am (TESTS): Update.
4103         Reported by Andy Wingo.
4104
4105 2010-11-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4106
4107         Modernize, improve and/or tweak various test scripts.
4108         * tests/stamph2.test: Improve m4 quoting in `configure.in', and
4109         prefer trailing `:' over trailing `Exit 0'.
4110         * tests/syntax.test: Escape literal dots in grep regexps.
4111         * tests/copy.test: Enable `errexit' shell flag.  Extend test by
4112         checking with `test' utility that the script `install-sh' is
4113         copied, but not symlinked.
4114         * tests/depdist.test: Move setting of `errexit' shell flag earlier
4115         in the script (just after inclusion of ./defs).  Avoid obsoleted
4116         constructs in generated `configure.in'.  Prefer to do our checks
4117         by running configure and make over grepping Makefile.in.
4118         * tests/target-cflags: Move setting of `errexit' shell flag
4119         earlier in the script (just after inclusion of ./defs). Use the
4120         `configure.in' stub created by `./defs', rather than writing it
4121         from scratch.
4122         * tests/target-clash: Do not uselessly run autoconf.
4123         * tests/ctarget1.test: Renamed ...
4124         * tests/cond-basic.test: ... to this.  Use the `configure.in' stub
4125         created by `./defs', rather than writing it from scratch.
4126         Move setting of `errexit' shell flag earlier in the script (just
4127         after inclusion of ./defs).  Other minor cosmetic changes.
4128         * tests/Makefile.am (TESTS): Updated.
4129
4130 2010-11-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
4131
4132         New tests on obsoleted usages of automake/autoconf macros (such
4133         as AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
4134         * tests/backcompat.test: New test script.
4135         * tests/backcompat2.test: Likewise.
4136         * tests/backcompat3.test: Likewise.
4137         * tests/backcompat4.test: Likewise.
4138         * tests/backcompat5.test: Likewise.
4139         * tests/backcompat6.test: Likewise.
4140         * tests/init.test: Extended and improved, esp. by trying more
4141         combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
4142         arguments.
4143         * tests/Makefile.am (TESTS): Updated.
4144
4145 2010-11-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
4146
4147         Fix bug in rules for creating vala vapi/header files.
4148         * automake.in (lang_vala_finish_target): Add forgotten "fi" in an
4149         if control structure in a generated make rules.  Bug introduced
4150         by previous commit `v1.11-221-gd7c1679', and revealed by failure
4151         of test `vala2.test'.
4152
4153 2010-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4154
4155         Fix and document rules to not touch the tree with `make -n'.
4156         * doc/automake.texi (Multiple Outputs): Document the problem of
4157         modifications during dry-run execution, propose solution.
4158         * NEWS: Update.
4159         * automake.in (lang_vala_finish_target): Split recipe so the
4160         stamp file is not removed with GNU `make -n'.
4161         (lang_yacc_target_hook): Separate removal of parser output file
4162         and header remaking.
4163         * lib/am/lisp.am ($(am__ELCFILES)): Determine whether -n was
4164         passed to make, take care not to remove any files in that case.
4165         * lib/am/remake-hdr.am (%CONFIG_H%): Separate removal of
4166         %STAMP% file from induced remaking of config header.
4167         * tests/autohdrdry.test, tests/lispdry.test, tests/yaccdry.test:
4168         New tests.
4169         * tests/Makefile.am (TESTS): Update.
4170
4171 2010-11-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
4172
4173         Fix potential bug in generated tests `instpc-*.test'.
4174         This bug is due to the changes introduced by the recently-merged
4175         "tests-init" branch.  In that branch, `tests/defs' didn't define
4176         anymore `$srcdir', instead defining directly `$testsrcdir'; but
4177         the generated tests were using `$srcdir', hence the bug.
4178         Luckily, since the Automake parallel test driver automatically
4179         exports `srcdir' to a proper value, that prevented the bug from
4180         manifesting itself.
4181         * tests/Makefile.am ($(instspc_tests)): In the generated test
4182         scripts, use `$testsrcdir', not `$srcdir'.
4183
4184 2010-11-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
4185
4186         Overhauled and modularized tests in `instspc.test'.
4187         The test `instspc.test' was way too big and fragile.  Its running
4188         time was very long.  It also produced a log that was nearly
4189         unreadable due to its length, making it very difficult to find
4190         out the reason for failures.
4191         Also, it was too much monolithic, with a single (maybe spurious)
4192         failure in a corner case causing the whole test to fail (even if
4193         everything worked as expected in the other 99% of cases).
4194         The present change should solve these problems, by separating
4195         `instspc.test' into many smaller, self-contained, auto-generated
4196         tests.
4197         * tests/instspc.test: Removed.
4198         * tests/instspc-tests.sh: New script, fulfilling a double role:
4199         1. it generates a Makefile.am snippet `tests/instspc-tests.am',
4200         containing the definition of a list of new tests which will take
4201         over the older `instspc.test', and
4202         2. it is sourced by said generated tests with proper parameters
4203         pre-set, to run the "meat" of the checks.
4204         This apparent abuse is indeed required because the test generation
4205         code and test execution code are inevitably intertwined.
4206         * tests/Makefile.am ($(srcdir)/instspc-tests.am): Include this
4207         snippet, which (among the other things) defines ...
4208         (instspc_tests): ... this new macro, containing the list of the
4209         newly generated `instspc*.test' tests, and ...
4210         (instspc_xfail_tests): ... this new macro, containing the list
4211         of the `instspc*.test' tests expected to fail.
4212         ($(instspc_tests)): New rule, generates the `instspc*.test' tests.
4213         ($(instspc_tests:.test=.log)): New rule, registers the dependency
4214         of all `instspc*.test' tests on the `instspc-tests.sh' script.
4215         (TESTS): Add `$(instspc_tests)', remove `instspc.test'.
4216         (XFAIL_TESTS): Add `$(xfail_instspc_tests)'.
4217         (EXTRA_DIST): Distribute instspc-tests.sh.
4218         (MAINTAINERCLEANFILES): Added $(instspc_tests).
4219         Other minor cosmetic changes.
4220         * bootstrap: Generate instspc-tests.am.
4221         * tests/.gitignore: Updated.
4222
4223 2010-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4224
4225         Add FAQ entry for bug reporting instructions.
4226         * doc/automake.texi (Reporting Bugs): New section.
4227         (Introduction): Refer to it.
4228
4229 2010-10-07  Peter Rosin  <peda@lysator.liu.se>
4230
4231         depcomp: add new one-pass depmode for MSVC 7 and later.
4232         * lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
4233         make use of the -showIncludes option added in MSVC 7.
4234         * m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
4235         similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
4236         support the -o option.
4237
4238 2010-10-05  Jim Meyering  <meyering@redhat.com>
4239
4240         dist-xz, dist-bzip2: don't hard-code -9: honor envvar settings
4241         * lib/am/distdir.am (dist-xz): Do not hard-code xz's -9: that
4242         made it impossible to override.  Instead, use its XZ_OPT envvar,
4243         defaulting to -9 if not defined.  Thus no change in behavior
4244         when XZ_OPT is not set, and now, this rule honors the setting
4245         of that envvar when it is set.  Suggested by Lasse Collin.
4246         (dist-bzip2): Likewise for it's corresponding envvar: BZIP2.
4247         * NEWS (Miscellaneous changes): Mention it.
4248         * doc/automake.texi (The Types of Distributions): Describe the
4249         newly enabled environment variables.
4250
4251 2010-10-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
4252
4253         Add support for newer python versions.
4254         * m4/python.m4 (AM_PATH_PYTHON): Add python2.7 and python3.2 to
4255         _AM_PYTHON_INTERPRETER_LIST.  Since we are at it, break a long
4256         line and fix indentation.
4257         * THANKS: Updated.
4258         From a report by Thomas Klausner.
4259
4260         Add test for `AM_WITH_DMALLOC' macro.
4261         * tests/dmalloc.test: New test.
4262         * tests/Makefile.am (TESTS): Update.
4263
4264         Fix nits and bugs in tests `help*.test'.
4265         * tests/help4.test: Fix broken sed commands used to strip `-W...'
4266         flags away from "$AUTOMAKE" and "$ACLOCAL".
4267         * tests/help3.test: Likewise, and fix a botched comment.
4268         * tests/help.test: Likewise.  Also, use "AUTOMAKE_fails ..."
4269         instead of "$AUTOMAKE ... && Exit 1", for consistency and to
4270         please maintainer-check.
4271         * tests/help2.test: Likewise.
4272
4273 2010-10-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
4274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4275
4276         Improve tests `help*.test' (also fixes maintcheck failures).
4277         * tests/help.test: To run automake, use `$AUTOMAKE' with all `-W'
4278         flags stripped away rather than hard-coded `automake-$APIVERSION',
4279         to better honour user-overrides.  Similarly for aclocal.
4280         * tests/help2.test: Likewise.
4281         * tests/help3.test: Likewise.
4282         * tests/help4.test: Likewise.
4283
4284 2010-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4285
4286         tests: fix ar-lib.test for echo that interprets backslashes.
4287         * tests/ar-lib.test: Use printf instead of echo.  Avoid test -a.
4288         More robust quoting.
4289
4290 2010-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4291
4292         maintainer-check coverage for variables before rules.
4293         * Makefile.am (sc_ensure_testsuite_has_run): Suggest keeping
4294         around the test directories.
4295         (sc_tests_makefile_variable_order): New rule with a heuristic to
4296         catch ordering violations.
4297
4298         Document and fix expansion of variables before rules.
4299         * doc/automake.texi (General Operation): Document that variables
4300         are expanded before rules.
4301         * lib/am/check.am (am__check_post): Reword a bit so it does not
4302         get matched as a rule.
4303         Suggestion by Ben Pfaff.
4304
4305 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4306
4307         Coverage and minor fixes for variable typo detection.
4308         * automake.in (check_typos): Remove `EXTRA_' prefix when
4309         computing canonical name.
4310         * tests/vartypo2.test, tests/vartypos.test: New tests.
4311         * tests/Makefile.am (TESTS): Update.
4312
4313         Implement EXTRA_maude_DEPENDENCIES for programs and libraries.
4314         * automake.in (handle_programs, handle_libraries)
4315         (handle_ltlibraries): Mark EXTRA_*_DEPENDENCIES as recognized.
4316         * doc/automake.texi (Linking, Program and Library Variables)
4317         (LIBOBJS): Document EXTRA_*_DEPENDENCIES.
4318         * lib/am/library.am (%LIBRARY%): Also depend on
4319         $(EXTRA_%XLIBRARY%_DEPENDENCIES).
4320         * lib/am/ltlibrary.am (%LTLIBRARY%): Also depend on
4321         (%XLTLIBRARY%_DEPENDENCIES).
4322         * lib/am/program.am (%PROGRAM%%EXEEXT%): Also depend on
4323         $(EXTRA_%XPROGRAM%_DEPENDENCIES).
4324         * tests/extradep.test, tests/extradep2.test: New tests.
4325         * tests/Makefile.am (TESTS): Update.
4326         * NEWS: Update.
4327         Suggested by Eric Blake.
4328
4329         tests: avoid running into timing issues due to sanity change.
4330         * tests/acloca10.test, tests/acloca18.test, tests/aclocal9.test:
4331         Insert strategic sleep before aclocal reruns, to ensure files
4332         are newer.
4333         * tests/python11.test: Use --force for repeated autotools runs.
4334         Reports from the NixOS Hydra build daemon via Ludovic Courtès.
4335
4336         Fix timestamp issues by ensuring configure takes at least a second.
4337         * m4/sanity.m4 (AM_SANITY_CHECK): If we didn't sleep here,
4338         start a sleep in the background and wait for it to finish
4339         before creating config.status, hopefully fixing all spurious
4340         testsuite failures involving botched time stamps.
4341         * NEWS: Update.
4342         Reports by Ludovic Courtès, Peter Breitenlohner, and others.
4343
4344 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4345
4346         Revert "parallel-tests: avoid command-line length limit issue."
4347         This reverts commit 24e3b4ee2f8cb9f72dd94a05a893f3d4e88b7835,
4348         because it re-opened the bug fixed by v1.11-10-g218e678.
4349
4350         2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4351
4352         parallel-tests: avoid command-line length limit issue.
4353         * automake.in (handle_tests): New argument $makefile, new
4354         substitution %MAKEFILE%.
4355         (generate_makefile): Adjust.
4356         * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
4357         sanitized TEST_LOGS value as makefile snippet on standard
4358         input to $(MAKE), to avoid exceeding the command line limit on
4359         w32 (MSYS).
4360         * NEWS: Update.
4361         Report by Bob Friesenhahn.
4362
4363 2010-09-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4364
4365         Extend tests on `--help' and `--version' options.
4366         * tests/help.test: Create a new empty directory and chdir into
4367         it, rather than removing already present files.  Run the aclocal
4368         and automake wrapper scripts directly, instead of relying on
4369         $AUTOMAKE and $ACLOCAL.  Be sure to correctly match literal dots
4370         in aclocal's and automake's stderr.  Add a trailing `:' command.
4371         * tests/help2.test: New test, checking that options `--help' and
4372         `--version' works in directories with broken `configure.in'.
4373         * tests/help3.test: New test, checking that options `--help' and
4374         `--version' take precedence on the other options.
4375         * tests/help4.test: New test, checking that the first among the
4376         `--help' and `--version' options to be specified on the command
4377         line wins.
4378         * tests/Makefile.am (TESTS): Updated.
4379
4380 2010-09-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
4381
4382         Testsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.
4383         * tests/compile2.test: Do no uselessly (implicitly) repeat the
4384         computation of PATH_SEPARATOR again.
4385         * tests/instmany-mans.test: Use `$PATH_SEPARATOR', not `:', when
4386         extending/redefining PATH.
4387         * tests/instmany-python.test: Likewise.
4388         * tests/instmany.test: Likewise.
4389         * tests/man4.test: Likewise.
4390         * tests/mkinst3.test: Likewise.
4391         * tests/mmodely.test: Likewise.
4392         * tests/multlib.test: Likewise.
4393         * tests/txinfo30.test: Likewise.
4394         * tests/README (Section "Writing test cases" subsection "Do"):
4395         Updated.
4396         * Makefile.am (sc_tests_PATH_SEPARATOR): New maintainer check.
4397         (syntax_check_rules): Updated.
4398
4399         Testsuite: new variables `$PATH_SEPARATOR' and `$APIVERSION'.
4400         * tests/defs.in ($APIVERSION):  New AC_SUBST'd variable.
4401         ($ACLOCAL, $AUTOMAKE): Use it.
4402         ($PATH_SEPARATOR):  New AC_SUBST'd variables.
4403         ($PATH): Use it.
4404
4405 2010-09-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
4406
4407         Manual: be more agnostic w.r.t. version control system used.
4408         * doc/automake.texi (Basics of Distribution): Also refer to `.svn'
4409         directories as a type of probably-unwanted files that are copied
4410         regardless when adding directories to EXTRA_DIST.
4411         (The dist Hook): Show a dist-hook example which removes Subversion
4412         `.svn' private directories from distdir, rather than CVS private
4413         directories.
4414         (missing and AM_MAINTAINER_MODE): Try to be more agnostic w.r.t.
4415         the version control system used.
4416
4417         Manual: index refer to target "git-dist", not "cvs-dist".
4418         * doc/automake.texi (General Operation): Index the non-standard
4419         example about "git-dist" under the "git-dist" label, not under
4420         the "cvs-dist" one.
4421
4422         Perl modules: remove references to "Automake CVS repository".
4423         * lib/Automake/Channels.pm: Update comments to refer to "Automke's
4424         git repository" rather than to "Automake's CVS repository".
4425         * lib/Automake/Configure_ac.pm: Likewise.
4426         * lib/Automake/FileUtils.pm: Likewise.
4427         * lib/Automake/Struct.pm: Likewise.
4428         * lib/Automake/XFile.pm: Likewise.
4429         * lib/Automake/Version.pm (=head1 DESCRIPTION): Refer to "git
4430         branches" rather than "CVS branches".
4431
4432         Remove obsolete .cvsignore files.
4433         * .cvsignore, doc/.cvsignore, lib/.cvsignore, lib/am/.cvsignore,
4434         lib/Automake/.cvsignore, lib/Automake/tests/.cvsignore,
4435         m4/.cvsignore, tests/.cvsignore: Files deleted.  Even when using
4436         savannah's CVS readonly mirror there's no way to commit back to
4437         the real repository, so this files are not worth maintaining or
4438         keeping around.
4439
4440 2010-09-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
4441
4442         * m4/dmalloc.m4: Bump serial number and copyright years.
4443
4444 2010-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
4445
4446         Fix broken link in `AM_WITH_DMALLOC' help screen.
4447         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Refer only to the dmalloc site
4448         `http://www.dmalloc.com', not to the dmalloc tarball there (which
4449         seems to have been removed, substituted by multiple release
4450         tarballs now).
4451
4452 2010-09-21  Peter Rosin  <peda@lysator.liu.se>
4453
4454         compile: implement library search to support MSVC static linking
4455         * lib/compile (func_cl_wrapper): Implement library search and
4456         -static option so that the user can select whether to prefer
4457         dll import libraries or static libraries.  This enables MSVC to
4458         link against dlls generated by libtool without requiring libtool
4459         or workarounds such as -lfoo.dll etc.  Makes the tests/static.at
4460         test case in libtool pass.
4461         * tests/compile3.test: Don't trip up if there happens to exist
4462         a "foo" library in the library search path.
4463         * tests/compile6.test: New test, verifying the library search.
4464         * tests/Makefile.am (TESTS): Update.
4465
4466 2010-09-17  Eric Blake  <eblake@redhat.com>
4467
4468         Avoid triple-space after period.
4469         * automake.in (handle_single_transform): Avoid 3 spaces at
4470         sentence end.
4471         * ChangeLog.03: Likewise.
4472         * lib/Automake/ChannelDefs.pm: Likewise.
4473         * lib/Automake/Channels.pm (_print_message): Likewise.
4474         * lib/Automake/Rule.pm (rule): Likewise.
4475         * lib/Automake/Variable.pm (var): Likewise.
4476         * lib/am/distdir.am: Likewise.
4477         * tests/insthook.test: Likewise.
4478
4479 2010-09-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4480
4481         Test automake-generated portions of configure help screen.
4482         * tests/help-depend.test: New test.
4483         * tests/help-depend2.test: Likewise.
4484         * tests/help-dmalloc.test: Likewise.
4485         * tests/help-init.test: Likewise.
4486         * tests/help-lispdir.test: Likewise.
4487         * tests/help-maintainer.test: Likewise.
4488         * tests/help-multilib.test: Likewise.
4489         * tests/help-regex.test: Likewise.
4490         * tests/help-silent.test: Likewise.
4491         * tests/help-upc.test: Likewise.
4492         * tests/mmode.test: Remove tests on `configure --help' output,
4493         they are superseded by tests in `help-maintainer.test'.
4494         * tests/Makefile.am (TESTS): Update.
4495
4496 2010-09-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
4497
4498         * tests/README: Don't put GCS mandated tools in $required.
4499
4500 2010-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4501
4502         * HACKING: Hint at old commits with `git describe' output.
4503
4504 2010-09-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
4505
4506         Prefer `$(am__cd)' to plain `cd' in our Makefiles.
4507         * Makefile.am (recheck, dist-hook, git-dist, path-check, fetch)
4508         (release-stats): Use `$(am__cd)' rather than plain `cd'.
4509         * tests/Makefile.am ($(srcdir)/parallel-tests.am): Likewise.
4510
4511 2010-09-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
4512
4513         Fix regression in test `colon4.test'.
4514         * tests/colon4.test: Fix botched editing to `configure.in'
4515         that made the test useless.  Since we are at it, improve
4516         comments and make grepping of generated Makefile.in slightly
4517         stricter.
4518         Regression introduced by change "Modernize, improve and/or
4519         extend tests `colon*.test" (Stefano Lattarini, 2010-08-08).
4520
4521 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
4522
4523         Do not require "gzip" explicitly in tests.
4524         The gzip utility is simply expected to be present on any decent
4525         target system for Automake.  So it's pointless to put it in
4526         $required.
4527         * tests/install2.test ($required): Do not require "gzip".
4528         * tests/lex3.test: Likewise.
4529         * tests/pr9.test: Likewise.
4530         From a suggestion by Ralf Wildenhues.
4531
4532 2010-09-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
4533
4534         Use AS_HELP_STRING in AM_SILENT_RULES.
4535         * m4/silent.m4 (AM_SILENT_RULES): Use `AS_HELP_STRING' to format
4536         help message regarding configure options `--enable-silent-rules'
4537         and `--disable-silent-rules'.  Also throw in a couple of cosmetic
4538         changes in the related `case' statement (indentation, balancing
4539         of parentheses).
4540         * THANKS: Update.
4541         From a report by Jeff A. Daily.
4542
4543 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
4544
4545         Make some `confh*.test' tests more "semantic" (plus tweakings).
4546         * tests/confh.test: Run "autoconf", "configure" and "make check",
4547         instead of munging/grepping the generated `Makefile.in'.
4548         * tests/confh4.test: Relax the grepping of Makefile.in w.r.t.
4549         white spaces.  Do not create useless dummy source file `foo.c'
4550         and useless dummy header file `acconfig.h'.
4551         (configure.in): Remove superfluous call to `AC_OUTPUT'.
4552         * tests/confh6.test: Add trailing `:' command.
4553         * tests/confh7.test: In comments, add reference to ...
4554         * tests/confh8.test: ... this new test, "semantic" sister
4555         of `confh7.test'.
4556         * tests/Makefile.am (TESTS): Updated.
4557         Prompted by a report from Ralf Wildenhues.
4558
4559 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
4560
4561         Remove useless whitespace padding in XFAIL_TESTS definition.
4562         * tests/Makefile.am (XFAIL_TESTS): Remove whitespace padding.
4563
4564 2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4565
4566         parallel-tests: avoid command-line length limit issue.
4567         * automake.in (handle_tests): New argument $makefile, new
4568         substitution %MAKEFILE%.
4569         (generate_makefile): Adjust.
4570         * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
4571         sanitized TEST_LOGS value as makefile snippet on standard
4572         input to $(MAKE), to avoid exceeding the command line limit on
4573         w32 (MSYS).
4574         * NEWS: Update.
4575         Report by Bob Friesenhahn.
4576
4577         Posix 2008 requires make to set errexit.
4578         * lib/am/check.am: Update comment.
4579
4580 2010-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
4581
4582         Tests defs: remove variable $testaclocaldir.
4583         * tests/defs.in ($testaclocaldir): Removed.
4584         * tests/aclocal.test: Use `$top_testsrcdir/m4' directly, not
4585         `$testaclocaldir'.
4586
4587         Tests defs: $srcdir and $top_srcdir renaming.
4588         * tests/defs.in ($srcdir): Remove, define $testsrcdir directly.
4589         * tests/Makefile.am ($(parallel_tests)): Generation of derived
4590         tests updated.
4591
4592         Tests defs: new variable $top_testsrcdir.
4593         * tests/defs.in ($top_testsrcdir): Define unconditionally
4594         to @abs_top_srcdir@.  Use it throughout.
4595         * tests/ar-lib.test: Use `$top_testsrcdir' instead of
4596         `$testsrcdir/..'.
4597         * tests/auxdir.test: Likewise.
4598         * tests/compile.test: Likewise.
4599         * tests/compile2.test: Likewise.
4600         * tests/compile3.test: Likewise.
4601         * tests/compile5.test: Likewise.
4602         * tests/mdate6.test: Likewise.
4603         * tests/mkinst3.test: Likewise.
4604         * tests/multlib.test: Likewise.
4605         * tests/txinfo22.test: Likewise.
4606
4607         Tests defs: $srcdir is unconditionally substituted.
4608         * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@.
4609         Remove code for $srcdir normalization, which is now useless.
4610
4611 2010-09-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
4612
4613         Tests defs: make spacing more consistent.
4614         * tests/defs.in: Make spacing more consistent in indentation.
4615         Especially, indent using only spaces, not tabs.  Also, move
4616         a comment to a better position.
4617
4618         Improve code for requiring libtool and gettext in tests.
4619         * tests/defs.in: Stricter (and more correct) detection of wheter
4620         libtool, libtoolize and/or gettext are in $required.
4621
4622
4623 2010-08-27  Stefano Lattarini  <stefano.lattarini@gmail.com>
4624
4625         Fix bug in test missing6.test.
4626         * tests/missing6.test: Fix the hack used to edit `configure.in',
4627         to avoid producing a configure script that breaks with shells
4628         that do not support $LINENO.  Also throw in a couple of cosmetic
4629         changes.
4630
4631 2010-09-02  Peter Rosin  <peda@lysator.liu.se>
4632
4633         Make ar-lib support backslashed files in archives.
4634         * lib/ar-lib: If an archive member contains a backslash, make sure
4635         it is escaped when the archive member is extracted.
4636         * tests/ar-lib.test: Test the above.
4637
4638 2010-08-31  Peter Rosin  <peda@lysator.liu.se>
4639
4640         Do file name conversion for object files in the compile wrapper.
4641         * lib/compile (func_cl_wrapper): Do file name conversion for object
4642         files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
4643         * tests/compile4.test: Test the above.
4644
4645 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4646
4647         Speed up removal of auxiliary linker output files for ltlibraries.
4648         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Rewrite using just
4649         one `rm' invocation.
4650         Report by Bob Friesenhahn.
4651
4652         Improve robustness of mdate-sh script.
4653         * lib/mdate-sh: Sanitize zsh behavior on startup, to ensure
4654         $ls_command is word-split properly upon invocation.
4655         (error): New function.
4656         (main): Use it.  Improve error checking to avoid endless loop
4657         in case $ls_command gave bogus output.  Fix eval quotation.
4658         * tests/mdate6.test: New test, to expose eval quotation error.
4659         * tests/Makefile.am: Update.
4660
4661 2010-08-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
4662
4663         Fix potential regressions in depcomp{3,5}.test.
4664         * tests/depcomp3.test: Do not uselessly escape the character `$'
4665         in makefile rules, when it's used to expand a make macro.
4666         * tests/depcomp5.test: Likewise.
4667
4668 2010-08-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
4669             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4670
4671         Docs: clarify how to avoid automatic dependencies tracking.
4672         * doc/automake.texi (Automatic dependency tracking): Mention that
4673         automatic dependencies tracking is enabled by default, but that
4674         the package developer can disable it altogether.  Add a reference
4675         to the proper section for a more in-depth explanation.
4676
4677         Fix typo in manual (`Makefile.in' instead of `Makefile.am').
4678         * doc/automake.texi (Automatic dependency tracking): Fix typo.
4679
4680 2010-08-16  Bruno Haible  <bruno@clisp.org>
4681
4682         Don't hide the table of contents.
4683         * doc/automake.texi: Move the table of contents to the beginning.
4684
4685 2010-08-16  Peter Rosin  <peda@lysator.liu.se>
4686
4687         Optimize compile script on MSYS.
4688         * lib/compile (func_file_conv): Add new argument 'lazy' which
4689         takes an optional list of conversion types where the requested
4690         conversion isn't needed.
4691         (func_cl_wrapper): Take advantage of the above for cases where
4692         MSYS is doing the conversion for us.
4693         Suggested by Ralf Wildenhues.
4694
4695 2010-08-16  Peter Rosin  <peda@lysator.liu.se>
4696
4697         Support more C++ file extensions for MSVC in the compile script.
4698         * lib/compile (func_cl_wrapper): MSVC only recognizes the .cpp
4699         file extension as C++, unless it's given a hint. So hint about
4700         .cc, .CC, .cxx, .CXX, c++ and C++. Also do path conversion on
4701         .c, .cpp, .CPP, .lib, .LIB and .Lib files.
4702         * tests/compile3.test: Test the C++ hinting.
4703
4704 2010-08-12  Peter Rosin  <peda@lysator.liu.se>
4705
4706         Enable the use of "link -lib" as the wrapped archiver.
4707         * lib/ar-lib: Enable the use of "link -lib" as the wrapped
4708         archiver, as well as allowing some other options to be passed
4709         through to the wrapped archiver.
4710         * tests/ar-lib.test: Test the above.
4711
4712 2010-08-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
4713
4714         Tweak and/or extend some `acloca*.test' tests.
4715         * tests/aclocal8.test:  Ensure verbose printing of captured
4716         output.
4717         * tests/aclocal.test: Likewise.  Also, add trailing `:'
4718         command.
4719         * tests/acloca19.test: Likewise.
4720         * tests/aclocal5.test: Add trailing `:' command, and prefer
4721         `$me' over hard-coded test name.
4722         * tests/aclocal6.test: Likewise.
4723         * tests/aclocal18.test: Add trailing `:' command, and make
4724         some grepping slightly stricter.
4725         * tests/acloca14.test: Likewise.  Also, prefer `diff' over
4726         `cmp', and add some "cosmetic" blank lines.
4727
4728 2010-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
4729
4730         Tweak and extend tests `pr[!0-9]*.test'.
4731         * tests/primary3.test: Add trailing `:' command.
4732         * tests/primary.test: Make grepping of Automake's stderr stricter.
4733         Also, add trailing `:' command, and cosmetic changes in spacing.
4734         * tests/primary2.test: Likewise.
4735         * tests/prefix.test: Enable `errexit' shell flags, and related
4736         changes.  Add a trailing `:' command.
4737         * tests/proginst.test: Likewise.
4738
4739         Modernize, improve and extend tests for PR (`pr[0-9]*.test').
4740         * tests/pr2.test: Add trailing `:' command.
4741         * tests/pr229.test: Likewise.
4742         * tests/pr401.test: Likewise.
4743         * tests/pr401b.test: Likewise.
4744         * tests/pr401c.test: Likewise.
4745         * tests/pr300-prog.test: Likewise, plus cosmetic changes in
4746         spacing.
4747         * tests/pr300-lib.test: Likewise.
4748         * tests/pr300-ltlib.test: Likewise, and ensure verbose printing
4749         of captured make stdout.
4750         * tests/pr211.test: Add trailing `:' command.  Also, use the
4751         `configure.in' stub created by ./defs, rather than writing it
4752         from scratch.
4753         * tests/pr204.test: Likewise, plus cosmetic spacing changes.
4754         * tests/pr287.test: Likewise, and move setting of `errexit' shell
4755         flag earlier in the script (just after inclusion of ./defs).
4756         * tests/pr220.test: Make grepping of Automake's stderr stricter.
4757         Also, add trailing `:' command, and cosmetic changes in spacing.
4758         * tests/pr224.test: Move setting of `errexit' shell flag earlier
4759         in the script (just after inclusion of ./defs).  Do not export
4760         `CC=gcc' to configure explicitly (it's already exported globally
4761         in ./defs, since we have "gcc" in $required).  Use the stub for
4762         `configure.in' created by ./defs, rather than writing it from
4763         scratch.  Do not create dummy files required by "gnu" mode (e.g.
4764         README, NEWS), since we run automake in foreign mode anyway.
4765         * tests/pr72.test: Enable `errexit' shell flags, and related
4766         changes.  Extend existing checks a bit.
4767         * tests/pr9.test: Likewise.  Also, avoid obsolescent constructs in
4768         the generated `configure.in', and extend existing checks over the
4769         generated tarball a bit.
4770         * tests/pr87.test: Enable `errexit' shell flags, and related
4771         changes.  Add a trailing `:' command.  Also, do not create dummy
4772         files required by "gnu" mode (e.g. README, NEWS), since we run
4773         automake in foreign mode anyway.
4774         * tests/pr243.test: Avoid obsolescent constructs in the generated
4775         `configure.in'.  Enable the `errexit' shell flag, and related
4776         changes.  Cosmetic changes to spacing, add trailing `:' command,
4777         and add a "FIXME" comment.
4778         * tests/pr266.test: Likewise, and add explicit command line switch
4779         `--enable-dependency-tracking' to the ./configure call.
4780         * tests/pr279.test: Avoid obsolescent constructs in the generated
4781         `configure.in'; also, use the `configure.in' stub created by
4782         ./defs, rather than writing it from scratch.  Enable `errexit'
4783         shell flag, and related changes.  Add trailing `:' command.
4784         * tests/pr279-2.test: Likewise, and make grepping of Makefile.in
4785         stricter.
4786         * tests/pr307.test: Move setting of `errexit' shell flag earlier
4787         in the script (just after inclusion of ./defs).  Escape literal
4788         dots in grep regular expressions.  Also, add a trailing `:'
4789         command, and cosmetic changes to spacing.
4790
4791         Tests for PR: add excerpts from original bug report, for clarity.
4792         * tests/pr2.test: Ditto.
4793         * tests/pr9.test: Likewise.
4794         * tests/pr72.test: Likewise.
4795         * tests/pr87.test: Likewise.
4796         * tests/pr211.test: Likewise.
4797         * tests/pr220.test: Likewise.
4798         * tests/pr224.test: Likewise.
4799         * tests/pr229.test: Likewise.
4800         * tests/pr243.test: Likewise.
4801         * tests/pr266.test: Likewise.
4802         * tests/pr279.test: Likewise, and tell to keep it in sync
4803         with its sister test.
4804         * tests/pr279-2.test: Likewise.
4805
4806 2010-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
4807
4808         Tweak, extend and improve tests `cond[a-z]*.test'.
4809         * tests/condd.test: Add trailing `:' command.  Typofix in
4810         comment.
4811         * tests/condhook.test: Make sure target `install-data-hook' is
4812         not called by `make install', but that data files are installed.
4813         Use proper m4 quoting in configure.in. Add trailing `:' command.
4814         * tests/condhook2.test: New test, sister test of condhook, with
4815         inverted semantic.
4816         * tests/condinc2.test: Use proper m4 quoting in configure.in.
4817         Prefer trailing `:' command over trailing `Exit 0'.
4818         * tests/condman2.test: Enable errexit shell flag, and related
4819         changes.  Add trailing `:' command.
4820         * tests/condman.test: Likewise.  Also, do not create useless
4821         dummy manpages, and use proper m4 quoting in configure.in.
4822         * tests/condman3.test: New test, similar to condman.test, but
4823         it also runs ./configure and "make install", and check the
4824         installed files.
4825         * tests/Makefile.am (TESTS): Updated.
4826
4827         Modernize, improve and/or extend tests `colon*.test.
4828         * tests/colon.test: Rely on the `configure.in' stub created by
4829         `./defs', rather than writing one from scratch.  Do not create
4830         a useless dummy file.  Add trailing `:' command.
4831         * tests/colon4.test: Enable the `errexit' shell flag, and
4832         related changes.  Rely on the `configure.in' stub created by
4833         `./defs', rather than writing one from scratch.
4834         * tests/colon7.test: Enable `errexit' shell flag, and related
4835         changes.  Improve the generated `configure.in' file.  Add
4836         trailing `:' command.
4837         * tests/colon2.test: Likewise.  Also, add some new checks.
4838         * tests/colon5.test: Improve the generated `configure.in' file.
4839         Add new, much deeper checks.  Add trailing `:' command.
4840         * tests/colon6.test: Likewise.
4841         * tests/colon3.test: Add trailing `:' command.  Remove useless
4842         comments and echos.  Improve the generated `configure.in' file.
4843         make some grepping tests stricter.  Add a "FIXME" comments about
4844         planned improvements.
4845
4846         Improve and extend tests `asm*.test'.
4847         * tests/asm.test: Use configure.in stub generated by ./defs,
4848         and avoid obsoleted autoconf constructs.  Make grepping of
4849         Automake stderr stricter.  Do not create useless source file.
4850         Improve verbose messages.  Minor cosmetic changes.  Tell to
4851         keep it in sync with other sister tests asm*.test.
4852         * tests/asm2.test: Likewise.
4853         * tests/asm3.test: Likewise.
4854
4855         Modernize, improve and/or extend test scripts `conf*.test'.
4856         * tests/confh5.test: Cosmetic changes.
4857         * tests/conff.test: Likewise.
4858         * tests/confdeps.test: Likewise.
4859         * tests/conflnk.test: Likewise.
4860         * tests/conflnk2.test: Likewise.
4861         * tests/confsub.test: Likewise.
4862         * tests/confvar.test: Likewise, and make grepping of Makefile.in
4863         stricter.
4864         * tests/confvar2.test: Likewise.
4865         * tests/conflnk3.test: Cosmetic changes.  Re-enable a temporarily
4866         disabled test (which didn't work with autoconf <= 2.59, but now we
4867         are requiring autoconf 2.62, so...)
4868         * tests/conflnk4.test: Cosmetic changes, and extend existing tests
4869         accordingly to "TODO" comments.
4870         * tests/conff2.test: Make grepping of Automake's stderr stricter.
4871         Add some comments explaining why we don't use the `configure.in'
4872         stub preset be ./defs.
4873         * tests/confh.test: Use the `configure.in' stub created by ./defs,
4874         rather than writing one from scratch, and do not call AC_OUTPUT.
4875         Enable `errexit' shell flag, and related changes.  Prefer diff over
4876         cmp to compare text files. Prefer perl over sed to fetch the value
4877         of $(DIST_COMMON) from Makefile.in.  Make grepping of the contents
4878         of $(DIST_COMMON) stricter.
4879         * tests/confh4.test: Use the `configure.in' stub created by ./defs,
4880         rather than writing one from scratch.  Make grepping of Makefile.in
4881         stricter.
4882         * tests/confh5.test: Make grepping of `config.h' stricter.  Add a
4883         comment.
4884         * tests/configure.test: Avoid obsolescent constructs in generated
4885         `configure.ac'.  Do not write `configure.in' two times.  Escape
4886         literal dots in grep regular expressions.
4887         * tests/confincl.test:  Enable `errexit' shell flag, and related
4888         changes.  Prefer fgrep over grep.  Other cosmetic changes.
4889         * tests/config.test: Renamed to ...
4890         * tests/confh6.test: ... this.  Fix m4 quoting in `configure.in',
4891         and make grepping of `config.h' and `config.h.in' stricter.
4892         * tests/conf2.test: Renamed ...
4893         * tests/confh7.test: ... to this.  Use the `configure.in' stub
4894         created by ./defs, rather than writing one from scratch.  Try to
4895         run the checks both with and without AC_PROG_CC and AC_OUTPUT in
4896         `configure.in'.
4897         * tests/Makefile.am (TESTS): Updated.
4898
4899         Minor improvements and fixes in tests `depcomp*.test'.
4900         * tests/depcomp.test: Do not create useless dummy source files.
4901         Add a trailing `:' command.
4902         * tests/depcomp2.test: Use `unset' on the CFLAGS variable to ensure
4903         it's not in in the environment, rather than exporting it with an
4904         empty value.  Do not pass CC=gcc to configure, as that's already
4905         done in ./defs since we have gcc in $required.  Ensure verbose
4906         printing of captured stderr, and normalize its checking.  Add a
4907         trailing `:' command.
4908         * tests/depcomp3.test: Quote literal dots and dollar characters in
4909         grep regexps.  Always use `: >' rather than `touch' to create empty
4910         files.  Explicitly declare phony targets as such in the created
4911         Makefile.am.  Add a trailing `:' command.
4912         * tests/depcomp4.test: Quote literal dots and dollar characters in
4913         grep regexp.  Explicitly declare phony targets as such in the
4914         created Makefile.am.  Ensure verbose printing of captured makes'
4915         stoud/stderr.  Add a trailing `:' command.
4916         * tests/depcomp5.test: Move setting of `errexit' shell flag earlier
4917         in the script (just after inclusion of ./defs).  Quote literal dots
4918         and dollar characters in grep regexps.  Explicitly declare phony
4919         targets as such in the created Makefile.am.  Add a trailing `:'
4920         command.
4921         * tests/depcomp6.test: Consistently use m4 quoting in the generated
4922         configure.in.  Cosmetic fixes to spacing.  Make the "dummy" `if'
4923         statement required by OpenBSD's sh `set -e' more robust, and add
4924         explanatory comments to it.
4925         * tests/depcomp7.test: Likewise, and add  a trailing `:' command.
4926
4927         Separate failing part of test `all.test'.
4928         * tests/all.test: Keep only (x)failing part of the test.  Working
4929         checks moved out to ...
4930         * tests/all2.test: ... this new test.
4931         * tests/Makefile.am (TESTS): Updated.
4932
4933         Modernize, improve and extend tests `subobj*.test'.
4934         * tests/subobjname.test:  Add trailing `:' command.
4935         * tests/subobj.test: Make grepping of `Makefile.in' stricter.
4936         Escape literal dots in grep regexps.
4937         * tests/subobj2.test:  Add trailing `:' command.  Do not use the
4938         unportable fgrep option `-e'.
4939         * tests/subobj3.test: Add trailing `:' command.
4940         (configure.in): Use proper m4 quoting, and avoid obsolescent
4941         constructs.
4942         * tests/subobj8.test: Likewise.  Also, enable `errexit' shell
4943         flag, with related changes
4944         * tests/subobj4.test: Likewise.  Also, make grepping of
4945         `Makefile.in' stricter.
4946         * tests/subobj5.test: Add trailing `:' command.  Move setting of
4947         `errexit' shell flag earlier in the script (just after inclusion
4948         of ./defs).
4949         (configure.in): Use the stub created by `./defs', rather than
4950         writing it from scratch, and avoid obsolescent constructs.
4951         * tests/subobj6.test: Add trailing `:' command.  Move setting of
4952         `errexit' shell flag earlier in the script (just after inclusion
4953         of ./defs).  Do not create useless dummy ac-init file `f'.
4954         * tests/subobj7.test: Do not create useless dummy ac-init file
4955         `f'.
4956         (configure.in): Use the stub created by `./defs', rather than
4957         writing it from scratch, and avoid obsolescent constructs.
4958         * tests/subobj9.test: Move setting of `errexit' shell flag earlier
4959         in the script (just after inclusion of ./defs).  Fail the test if
4960         `make distcheck' fails.  Ensure verbose printing of captured make
4961         stdout.  Avoid useless fork by doing simple grep instead of using
4962         test -n "`COMMAND | grep ...`".
4963         (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
4964         (Makefile.am): Explicitly mark target "print" as phony.
4965         * tests/subobj10.test: Removed duplicated call to `set -e'.  Add
4966         trailing `:' command.
4967         (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
4968
4969         Remove a couple of obsoleted tests.
4970         * tests/fpinstall.test: Removed.
4971         * tests/fpinst2.test: Likewise.
4972         * tests/Makefile.am (TESTS): Updated.
4973
4974         Bootstrap: updated HACKING entry.
4975         * HACKING ("Working with git"): Explain how to override the
4976         autoconf and autom4te programs used by the bootstrap process.
4977
4978         Bootstrap: fixlet.
4979         * bootstrap: Do not remove `lib/Automake/Config.pm' anymore,
4980         since we don't generate it.  Correctly quote arguments of
4981         `eval' builtin.  Fixed a botched error message.  Removed an
4982         extra blank line.
4983
4984         Bootstrap: don't search perl in $PATH.
4985         * bootstrap: Do not explicitly search perl in $PATH anymore.
4986         ($PATH_SEPARATOR): Removed, it's no more needed.
4987
4988         Bootstrap: let the user choose which autoconf to use.
4989         * bootstrap ($AUTOCONF): New variable, from the environment.
4990         ($AUTOM4TE): Likewise, for clarity.
4991         Use "$AUTOCONF" instead of calling "autoconf" directly.
4992
4993         Minor improvements to tests ar*.test.
4994         * tests/ar.test: Add trailing `:' command.
4995         * tests/ar2.test: Likewise, and make grepping of generated
4996         Makefile.in stricter.
4997
4998 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
4999
5000         Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
5001         * lib/ar-lib: New auxiliary script.
5002         * lib/Makefile.am: Add above.
5003         * tests/ar-lib.test: New test.
5004         * tests/Makefile.am: Add above.
5005         * automake.in (@common_files): Distribute the 'ar-lib' script.
5006         * doc/automake.texi (Auxiliary Programs): Mention the new
5007         'ar-lib' script.
5008         (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
5009         * NEWS: Update.
5010
5011 2010-08-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5012
5013         Fix shell pattern negation in compile script.
5014         * lib/compile (func_file_conv): Use `!' not `^' for pattern
5015         negation.
5016
5017 2010-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5018
5019         Fix maintainer-check failure.
5020         * tests/cond5.test: Quote sleep argument, this isn't about
5021         time stamp differences.
5022
5023         Sync auxiliary files from upstream.
5024         * lib/config.guess, lib/config.sub, lib/texinfo.tex:
5025         Sync from upstream.
5026
5027 2010-08-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
5028
5029         Work around a nasty bug (segfault) of Solaris make.
5030         * lib/am/check.am (recheck, recheck-html): Trim trailing spaces
5031         from $list, to avoid triggering a nasty bug (potential segfault)
5032         on Solaris make.
5033
5034 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
5035
5036         Make cond5.test more robust on MSYS.
5037         * tests/cond5.test: Add delay before the first kill attempt to
5038         cater for problems with MSYS bash.
5039
5040 2010-08-01  Peter Rosin  <peda@lysator.liu.se>
5041
5042         Wrap some MSVC options in the compile script.
5043         * lib/compile: MSVC supports naming the output file, the option
5044         is just not called -o, so transform -o into the appropriate form
5045         for MSVC. Also wrap some other options while at it (-L, -l, -Wl,
5046         -Xlinker and -I) and convert file names to windows form where
5047         needed for those options to make MSVC more usable in an
5048         autotooled environment.
5049         * doc/automake.texi (Auxiliary Programs): Document the above
5050         extension of the compile script.
5051         * NEWS: Updated.
5052         * tests/defs.in: New required entry 'cl'.
5053         * tests/compile3.test: New test.
5054         * tests/compile4.test: New test.
5055         * tests/compile5.test: New test.
5056         * tests/Makefile.am: Update.
5057
5058 2010-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5059
5060         Add example git work flow; discuss merge --log in HACKING.
5061         * HACKING: Update.
5062         Suggestion by Stefano Lattarini.
5063
5064         Add more hints for debugging make rules.
5065         * doc/automake.texi (Debugging Make Rules): Show command to find
5066         out expanded values of variables; point to makefile debugger.
5067         * THANKS: Update.
5068         Prompted by suggestion from Ludovic Courtès and Andy Wingo.
5069
5070 2010-07-27  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
5071
5072         Fix typo in the manual.
5073         * doc/automake.texi (Scripts): Fix typo.
5074
5075 2010-07-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5076
5077         Document current policy for development with git.
5078         * HACKING (Working with git): Overhaul.
5079         Prompted by suggestion from Stefano Lattarini.
5080
5081         Fix AM_COND_IF for gone-invalid condition shell expression.
5082         * m4/cond-if.m4 (AM_COND_IF): test contents of $COND_TRUE
5083         variable, rather than re-evaluating the shell expression for
5084         the condition.
5085         * tests/cond40.test: Extend test.
5086         * NEWS: Update.
5087
5088         Avoid syntax error if IF-TRUE part of AM_COND_IF expands empty.
5089         * m4/cond-if.m4 (AM_COND_IF): Ensure IF-TRUE part is never empty
5090         to avoid shell syntax error if the m4 expansion is empty.
5091         * tests/cond40.test: Enhance test.
5092
5093         Coverage: bogus option to AM_INIT_AUTOMAKE.
5094         * tests/init2.test: New test.
5095         * tests/Makefile.am: Update.
5096
5097 2010-07-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
5098
5099         Modernize and improve test scripts `subdir*.test'.
5100         * tests/subdir.test: Enable `errexit' shell flag, and related
5101         changes.  Use the `configure.in' stub created by `./defs',
5102         rather than writing one from scratch.
5103         * tests/subdir2.test: Likewise.
5104         * tests/subdir4.test: Likewise.
5105         * tests/subdir3.test: Enable `errexit' shell flag, and related
5106         changes.  Do not create useless dummy source files.
5107         * tests/subdir5.test: Make grepping of Makefile.in (in topdir
5108         and in subdirs) stricter.  Some minor changes to keep it more
5109         in sync with the related test `subdir8.test'.
5110         * tests/subdir8.test: Likewise (but with the related test being
5111         `subdir5.test' here).
5112         * tests/subdir6.test: Cosmetic change in spacing.
5113         * tests/subdir9.test: Define and use new variable `$distdir'.  Add
5114         trailing `:' command.
5115         * tests/subdir10.test: Cosmetic consistency-related change.
5116         * tests/subdirbuiltsources.test: Cosmetic changes in spacings.
5117         (configure.in): Use stub created by `./defs', rather than writing
5118         it from scratch.  Do not use obsoleted and/or deprecated forms of
5119         autoconf/automake macros.
5120
5121         Modernize and improve test scripts `dist*.test'.
5122         * tests/distcleancheck.test: Do not add useless `-e' option to
5123         a $MAKE call.  Extend test by grepping stderr of make.
5124         * tests/distcom2.test: Do not run the same test script on the
5125         Makefile.in twice, but save its output in an intermediate file
5126         instead.  Make grepping of DIST_COMMON definition stricter.
5127         Display the content of more files, to ease debugging.  Add a
5128         trailing `:' command.  Improved heading comments w.r.t. sister
5129         test(s).
5130         * tests/distcom6.test: Likewise, and avoid to uselessly run
5131         autoconf.
5132         * tests/distcom3.test: Ensure verbose printing of captured stdout
5133         and stderr.  Make grepping of captured stderr stricter.  Also,
5134         add trailing `:' command.
5135         * tests/distcom4.test: Declare the target `test' in the generated
5136         Makefile.am as `.PHONY'.  Display content of more files, to ease
5137         debugging.  Add trailing `:' command.
5138         * tests/distcom5.test: Likewise.  Also, factor out common sed
5139         script in subroutine `extract_distcommon'.
5140         * tests/distcom7.test: Prefer cat + here-doc over echo to write
5141         test Makefile.am files.  Add a trailing `:' command.
5142         * tests/distname.test: Prefer `gzip -d' over `gunzip'.  Move the
5143         call to `set -e' earlier.  Be stricter and more verbose in the
5144         checking of the generated tarball.
5145         (configure.in): Use the stub provided by ./defs, instead of
5146         writing it from scratch.  Avoid obsoleted constructs.  Remove
5147         useless call to `AM_PROG_CC_C_O'.
5148         * tests/distdir.test: Various minor improvements/normalizations.
5149         * tests/distlinks.test: Likewise.
5150
5151 2010-07-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
5152
5153         Improve and extend test cond5.test.
5154         * tests/cond5.test: Do not blindly sleep 60 seconds before polling
5155         the background automake process, but poll it every 10 seconds for
5156         at most 30 times (this makes the test both faster on good machines,
5157         and more resilient to spurious timeout-due failures when in low
5158         priority or on heavily-loaded systems).
5159         Check also that automake writes the expected error messages on the
5160         standard error.
5161         Enable `errexit' flag, and related changes.
5162         Rely on the `configure.in' stub created by `./defs', rather than
5163         writing one from scratch.
5164
5165 2010-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5166
5167         Update program --help output to match current GCS.
5168         * configure.ac: Set and substitute PACKAGE_URL if AC_PACKAGE_URL
5169         is not defined, for compatibility to Autoconf < 2.64.
5170         * Makefile.am (do_subst): Substitute PACKAGE_BUGREPORT and
5171         PACKAGE_URL.
5172         (sc_diff_automake_in_automake): Update number of diff lines for
5173         additional substitutions.
5174         * aclocal.in (usage): Use PACKAGE_BUGREPORT.  Point to Automake
5175         home page and GNU general help page.
5176         * automake.in (usage): Likewise.
5177         * doc/automake.texi: New flag PACKAGE_BUGREPORT, to factor email
5178         address.
5179         (Introduction, Creating amhello, amhello Explained, Options):
5180         Use it throughout.
5181         * lib/Automake/Makefile.am (do_subst): Substitute
5182         PACKAGE_BUGREPORT.
5183         * lib/Automake/Config.in ($PACKAGE_BUGREPORT): New global.
5184         * lib/Automake/ChannelDefs.pm: Use it for footer of fatal
5185         messages.
5186
5187         Clean up @var handling in the manual.
5188         * doc/automake.texi: Throughout the manual, lower-case @var
5189         names, replace a few one-character names.
5190
5191 2010-06-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5192
5193         Fix typo-related bug in test script silent5.test.
5194         * tests/silent5.test: Use $EGREP, not $GREP (which is not even
5195         defined).
5196
5197         Tests: remove useless repetitions of `foreign' automake option.
5198         * tests/multlib.test (configure.in): Remove useless use of
5199         `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is
5200         already in $AUTOMAKE by default, so no point in repeating it).
5201         * tests/subobj10.test: Likewise.
5202         * tests/subobj9.test: Likewise.
5203         * tests/lex3.test (Makefile.am): Similarly, remove useless use
5204         of `foreign' option in AUTOMAKE_OPTIONS.
5205         * tests/lex5.test: Likewise.
5206         * tests/pr279.test: Likewise.
5207         * tests/pr279-2.test: Likewise.
5208         * tests/specflg3.test: Likewise.
5209         * tests/target-cflags.test: Likewise.
5210
5211         Drop useless requirement "gzip" in lex5.test.
5212         * tests/lex5.test ($required): Do not list "gzip", as it's
5213         never used.
5214
5215 2010-06-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
5216
5217         Fix bugs in test script silent5.test.
5218         * tests/silent5.test: Fixed a nasty bug (due to the use of grep
5219         instead of egrep) that could have led to false negatives.
5220
5221 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
5222
5223         Add a test checking that distributed broken symlinks cause
5224         `make dist' to fail.
5225         * tests/distlinksbrk.test: New test.
5226         * tests/Makefile.am (TESTS): Updated.
5227
5228 2010-06-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5229
5230         Fix minor testsuite issues, update docs, for Yacc/Lex changes.
5231         * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
5232         and AM_LFLAGS, LFLAGS in the order in which they now appear in
5233         the rules.
5234         * NEWS: Update.
5235         * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
5236         tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
5237         please maintainer-check.  Ensure generated C files contain a
5238         declaration, to please compilers.
5239
5240 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
5241
5242         Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
5243         $(FLAGS) precedence.
5244         * automake.in: Fix registration of languages "Lex", "Lex (C++)",
5245         "Yacc" and "Yacc (C++)", so that $(LFLAGS) has precedence over
5246         $(AM_LFLAGS) and $(YFLAGS) has precedence over $(AM_YFLAGS).
5247         * tests/Makefile.am (XFAIL_TESTS): Updated accordingly.
5248         * NEWS: Updated.
5249
5250         New tests, exposing bugs in Automake Yacc/Lex support w.r.t.
5251         $(AM_FLAGS) and $(FLAGS) precedence.
5252         * tests/lflags.test: New test, check that user $(LFLAGS) takes
5253         precedence over automake (AM_LFLAGS) and (foo_LFLAGS).  Still
5254         xfailing.
5255         * tests/lflags2.test: Likewise.
5256         * tests/yflags.test: New test, check that user $(YFLAGS) takes
5257         precedence over automake (AM_YFLAGS) and (foo_YFLAGS).  Still
5258         xfailing.
5259         * tests/yflags2.test: Likewise.
5260         * tests/Makefile.am (TESTS, XFAIL_TESTS): Extended accordingly.
5261
5262 2010-06-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
5263
5264         Modernize, improve and extend tests `suffix*.test'.
5265         * tests/suffix3.test: Enable `errexit' shell flag, and related
5266         changes.
5267         * tests/suffix4.test: Likewise.
5268         * tests/suffix6.test: Likewise, and do not create a useless dummy
5269         source file.
5270         * tests/suffix7.test: Likewise.
5271         * tests/suffix5.test: Enable `errexit' shell flag, and related
5272         changes.  Make grepping of Makefile.in slightly stricter.
5273         * tests/suffix.test: Enable `errexit' shell flag, and related
5274         changes.  Also, do not redirect grep output to /dev/null, as this
5275         might unmotivatedly hide useful information.
5276         * tests/suffix2.test: Move setting of `errexit' shell flag earlier
5277         in the script (just after inclusion of ./defs).  Use a more
5278         idiomatic way to count text occurrences in Makefile.in with
5279         grep.  Do not create useless dummy source files.
5280         * tests/suffix10.test: Ensure verbose printing of captured make
5281         stdout.  Minor cosmetic changes.
5282         * tests/suffix8.test: Likewise.  Also, drop useless call to the
5283         env(1) utility, and make grepping of make output stricter by using
5284         $FGREP rather than plain grep.
5285         * tests/suffix11.test: Likewise.
5286         * tests/suffix12.test: Likewise.
5287         * tests/suffix9.test: Prefer cat + here-doc over echo to append to
5288         the `configure.in' stub.  Cosmetic changes.
5289         * tests/suffix13.test: Cosmetic spacing change.
5290
5291 2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5292
5293         Add useful comment in test script ext.test.
5294         * tests/ext.test: Add a comment explaining why an apparently
5295         useless `if' statement is indeed required.
5296
5297 2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5298
5299         Add useful comment in test script obsolete.test.
5300         * tests/obsolete.test: Add a comment explaining why we need
5301         an indirection in adding $AUTOUPDATE to $required.
5302
5303         Normalize whitespaces in 'tests/Makefile.am'.
5304         * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
5305         definition of this variable.
5306
5307         Parallel tests generation: improve comments (tiny change).
5308         * tests/Makefile.am ($(parallel_tests)): Added useful comment to
5309         generated tests.
5310
5311         Tests defs: truly get rid of `$am_defs_included' (unused variable)
5312          * tests/defs.in ($am_defs_included): Remove, its now unused.  It
5313         should have been removed in a previous changeset, but the removal
5314         was done only partially (oversight).
5315
5316 2010-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5317
5318         Remove a couple of unneeded conditionals from tests.
5319         * tests/pr243.test, tests/pr266.test, tests/strip.test: No need
5320         for the FOOTEST conditional.
5321
5322 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
5323
5324         Modernize, improve and/or fix various test scripts.
5325         * tests/symlink3.test: Deleted, separated into two new, more
5326         complete tests ...
5327         * tests/forcemiss.test: ... this one ...
5328         * tests/forcemiss2.test: ... and this one.
5329         * tests/symlink2.test: Enable `errexit' shell flag, make test
5330         stricter, and skip it if symlink creation is not supported.
5331         * tests/postproc.test: Enable `errexit' shell flag, related
5332         changes, and a couple of unrelated cosmetic changes.
5333         * tests/recurs.test: Use the `configure.in' stub created by
5334         `./defs', rather than writing one from scratch.  Make grepping
5335         of Automake stderr slightly stricter.
5336         * tests/substtarg.test: Likewise.
5337         * tests/strip.test: Likewise, and move the call to `set -e'
5338         earlier (just after the inclusion of `./defs'). Also, make sure
5339         that the script installed by `make install-script' is equal to
5340         the original one.
5341         * tests/substref.test: Use the `configure.in' stub created by
5342         `./defs', rather than writing one from scratch.  Move the call
5343         to `set -e' earlier (just after the inclusion of `./defs').
5344         Avoid to explicitly export CC for configure (that's already done
5345         in ./defs).  Avoid potential problems with unpredictable make
5346         output.  Finally, make grepping of Makefile.in stricter.
5347         * tests/substre2.test: Ensure verbose printing of the captured
5348         make's output, and make its grepping slightly stricter.
5349         * tests/cygwin32.test: Enable `errexit' shell flag, and related
5350         changes.  Also, do not create useless dummy source/data files.
5351         * tests/scripts.test: Likewise.
5352         * tests/recurs2.test: Likewise.  Also, use the `configure.in'
5353         stub created by `./defs'.
5354         * tests/Makefile.am (TESTS): Updated.
5355
5356         Modernize, improve and/or fix tests `pluseq*.test.
5357         * tests/pluseq5.test: Append to configure.in using cat with an
5358         here-doc, not using echo.
5359         * tests/pluseq10.test: Make sure that the captured output of
5360         `make' command is always displayed. Where possible, use $FGREP
5361         instead of grep (this change makes some checks slightly stricter).
5362         * tests/pluseq8.test: Enable `errexit' shell flag, with related
5363         changes.
5364         * tests/pluseq.test: Likewise.  Also, do not create useless dummy
5365         data files, and use better m4 quoting in generated configure.in.
5366         * tests/pluseq2.test: Likewise.  Also, append to configure.in
5367         using cat with an here-doc, not using echo.
5368         * tests/pluseq3.test: Likewise.
5369         * tests/pluseq4.test: Likewise.
5370         * tests/pluseq6.test: Likewise.
5371         * tests/pluseq7.test: Do not create useless dummy source file.
5372         * tests/pluseq9.test: Slightly extended w.r.t. the grepping of
5373         Automake stderr.  Some unrelated cosmetic changes.
5374
5375 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
5376
5377         cscope.test: ensure verbose printing of captured stderr.
5378         * tests/cscope.test: Print captured stderr before failing.
5379
5380 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
5381
5382         Testsuite: ensure verbose printing of captured stderr.
5383         * tests/acloca18.test: Print captured stderr before either failing
5384         or grepping it.  Be sure to send captured stderr to stderr, not to
5385         stdout.
5386         * tests/ansi3b.test: Likewise.
5387         * tests/cond39.test: Likewise.
5388         * tests/configure.test: Likewise.
5389         * tests/missing3.test: Likewise.
5390         * tests/missing6.test: Likewise.
5391         * tests/output-order.test: Likewise.
5392         * tests/pr300-ltlib.test: Likewise.
5393         * tests/python6.test: Likewise.
5394         * tests/python7.test: Likewise.
5395         * tests/python8.test: Likewise.
5396         * tests/python9.test: Likewise.
5397         * tests/subobj.test: Likewise.
5398         * tests/vars3.test: Likewise.
5399         * tests/missing4.test: Likewise, and fix a call to grep not to use
5400         the `-c' flag.
5401         * tests/ansi3.test: Likewise, and rely on the `configure.in' stub
5402         created by `./defs', rather than writing one from scratch.
5403
5404         Enable `errexit' shell flag in various tests.
5405         * tests/backsl.test: Enable the `errexit' shell flag, and
5406         related changes.
5407         * tests/backsl2.test: Likewise.
5408         * tests/block.test: Likewise.
5409         * tests/canon2.test: Likewise.
5410         * tests/canon4.test: Likewise.
5411         * tests/comment2.test: Likewise.
5412         * tests/condlib.test: Likewise.
5413         * tests/cond15.test: Likewise, and prefer $FGREP over grep.
5414         * tests/canon3.test: Likewise.  Also, avoid to create an useless
5415         dummy source file.
5416         * tests/acoutpt2.test: Enable the `errexit' shell flag, and some
5417         related changes.  Do some cosmetic improvements in the generated
5418         `configure.in' file.
5419         * tests/cond4.test: Likewise.
5420         * tests/cond14.test: Likewise.
5421         * tests/condinc.test: Likewise.
5422         * tests/cond7.test: Likewise.  Also, remove useless setting of
5423         AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am.
5424         * tests/ansi.test: Enable the `errexit' shell flag, and related
5425         changes.  Extended, esp. by running autoconf, ./configure and
5426         make, and by looking into the distdir.
5427
5428 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
5429             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5430
5431         Extend tests/README w.r.t. trailing `:' in test scripts.
5432         * tests/README (section "Writing test cases" subsection "Do"):
5433         Explain why apparently redundant trailing `:' and `Exit 0' in
5434         test scripts can indeed be useful.
5435
5436 2010-06-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
5437
5438         Improve determination of PATH separator in bootstrap script.
5439         * bootstrap: Determine what the PATH separator is the same way
5440         autoconf does.
5441
5442         Minor improvements in bootstrap script.
5443         * bootstrap: Consistently use two-spaces indentation.  Cosmetic
5444         improvement to comments.
5445         ($me): New variable, containing program basename.
5446         Prepend it to all error messages.
5447
5448         Testsuite now works with BSD make in parallel mode.
5449         * tests/defs.in: Unset variables __MKLVL__ and MAKE_JOBS_FIFO,
5450         which are exported by BSD make when run in parallel mode, and
5451         which can confuse make processes spawned by our testsuite.
5452         This change fixes a lot of spurious failure when the testsuite
5453         is run with BSD make in parallel mode.
5454
5455 2010-06-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
5456
5457         Modernize, improve and/or fix various test scripts.
5458         * tests/sanity.test: Rely on the `configure.in' stub created by
5459         `./defs', rather than writing one from scratch.
5460         * tests/depend2.test: Likewise.  Also, call `set -e' just after
5461         the inclusion of `./defs', instead that later in the script.
5462         * tests/canon5.test: Avoid a useless `|| Exit 1' after a call to
5463         $AUTOMAKE, and improve the positioning of an $ACLOCAL call.
5464         * tests/exeext4.test: Use $FGREP instead of grep, where possible.
5465         Make auxiliary rules in the generated Makefile more silent.
5466         These changes make some checks slightly stricter.
5467         * tests/ext2.test: Call `Exit 1' if inclusion of `./defs' fails.
5468         * tests/gettext2.test: Place final `:' at the end of the script,
5469         rather than in the middle.
5470         * tests/exeext.test: Call `set -e' just after the inclusion of
5471         `./defs', instead that later in the script.
5472         * tests/extra5.test: Likewise.
5473         * tests/confdeps.test: Likewise.  Also, prefer `mv -f' over
5474         plain `mv', just to be sure.
5475         * tests/depcomp.test: Enable `errexit' shell flag, with related
5476         changes.  Also, modernize the generated configure.in.
5477         * tests/cond9.test: Likewise.  Also, rely on the `configure.in'
5478         stub created by `./defs', rather than writing one from scratch.
5479         * tests/cond10.test: Likewise.
5480         * tests/depcomp2.test: Likewise.
5481         * tests/depend3.test: Likewise.
5482         * tests/distcom7.test: Likewise.
5483         * tests/fortdep.test: Likewise.  Also, remove definition of
5484         AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am,
5485         since that flag is already provided by $AUTOMAKE.
5486         * tests/mdate.test: Made stricter, by checking that Automake
5487         actually failed, and by making a stricter grep on the error
5488         message.  Also, set shell `errexit flag'.
5489         * tests/python2.test: Improved verbose messages.
5490
5491         Make test `ammissing.test' stricter.
5492         * tests/ammissing.test: Fail if $ACLOCAL succeeds unexpectedly.
5493         Enable `errexit' shell flag.
5494
5495 2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
5496             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5497
5498         Fix error in generation of parallel tests.
5499         * tests/defs.in ($am_skip_defs): New variable, to be used when
5500         ./defs must be sourced multiple times.  If set, unset it and
5501         only define $srcdir; otherwise, also go through the rest of
5502         the script.
5503         ($am_defs_included): Remove, no more needed.
5504         * tests/Makefile.am ($(parallel_tests)): Update accordingly,
5505         using only $srcdir from defs.
5506         Fixes potential test failures of tests that use $required.
5507
5508 2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
5509
5510         Enable `errexit' shell flag in some test scripts.
5511         * tests/subcond.test: Enabled `errexit' shell flag, and related
5512         minor changes.
5513         * tests/subst.test: Likewise.
5514         * tests/vars.test: Likewise.
5515         * tests/version4.test: Likewise.
5516         * tests/vpath.test: Likewise.
5517         * tests/vtexi2.test: Likewise.
5518         * tests/werror.test: Likewise.
5519         * tests/whoami.test: Likewise.
5520         * tests/tags.test: Likewise, and avoid to crate an useless dummy
5521         header file.
5522         * tests/acsilent.test: Likewise, and don't use an easily-avoided
5523         command substitution.
5524         * tests/unused.test: Likewise, and don't use an easily-avoided
5525         command substitution.
5526         * tests/version.test: Likewise, and avoid deprecated constructs
5527         in the generated `configure.in'.
5528         * tests/version2.test: Likewise, and avoid deprecated constructs
5529         in the generated `configure.in'.
5530
5531 2010-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5532             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5533
5534         Improve declaration of dependencies in the testsuite.
5535         * tests/Makefile.am (check_SCRIPTS): Remove.  Instead, let ...
5536         ($(TEST_LOGS)): ... all test logs depend on the scripts.
5537         * test/gen-parallel-tests: For each parallel test foo-p.test,
5538         let `foo-p.log' also depend on `foo.test', since it is sourced.
5539
5540 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5541
5542         Coverage for TAGS_DEPENDENCIES warning.
5543         * tests/tags2.test: New test.
5544         * tests/Makefile.am: Update.
5545
5546         Coverage for use of anachronistic variables.
5547         * tests/oldvars.test: New test.
5548         * tests/Makefile.am: Update.
5549
5550         Testsuite coverage for bogus macro file serial numbers.
5551         * tests/acloca18.test: Also test ill-formed serial numbers
5552         and serial numbers after macro definitions.
5553
5554         Coverage for aclocal diagnosing underquoted macros.
5555         * tests/acloca23.test: New test.
5556         * tests/Makefile.am: Update.
5557
5558 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5559
5560         Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
5561         * tests/ldadd.test: Enable errexit.  Use AUTOMAKE_fails so
5562         the verbose log contains all output.
5563         * tests/mdate.test: Likewise.
5564         Prompted by Stefano Lattarini's change to discover.test.
5565
5566 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5567
5568         More minor message fixes.
5569         * aclocal.in (scan_file): Fix recommended info command line.
5570         * automake.in (handle_lib_objects): No need to prepend function
5571         name to prog_error message.
5572         (handle_tags): Add missing word and missing space in error
5573         message.
5574         (handle_dist): Add missing closing single quote in message.
5575         Line-wrap one long message for readability.
5576
5577 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
5578             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5579
5580         Fix distcheck failure with distributed generated parallel tests.
5581         * tests/Makefile.am ($(parallel_tests)): Cope with $(srcdir)
5582         being different from the value at developer `make dist' time.
5583         * tests/defs.in: Protect against multiple inclusion, by using ...
5584         ($am_defs_included): ... this new variable.
5585         ($srcdir): Do not compute, but simply define to `@abs_srcdir@'
5586         as substituted by configure.
5587         Report, suggestions and first fix by Ralf Wildenhues, final
5588         patch by Stefano Lattarini.
5589
5590 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
5591
5592         Improve tests link*.test (enable `errexit' shell flag).
5593         * tests/link_c_cxx.test: Enable `errexit shell flag, and related
5594         changes.  Also, do not create useless source files.
5595         * tests/link_dist.test: Likewise.
5596         * tests/link_f90_only.test: Likewise.
5597         * tests/link_f_only.test: Likewise.
5598         * tests/link_fc.test: Likewise.
5599         * tests/link_fccxx.test: Likewise.
5600         * tests/link_fcxx.test: Likewise.
5601
5602 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5603
5604         Improve ext.test semantics, avoid OpenBSD sh errexit issue.
5605         * tests/ext.test: Inside shell compound command, use
5606         `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to
5607         fix failure with OpenBSD sh introduced with last patch.
5608         Actually ensure that a rule for .EXT.o is created for each
5609         known extension EXT.
5610
5611 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
5612
5613         Enable `errexit' shell flag in some test scripts.
5614         * tests/dash.test: Enable `errexit' shell flag, and related
5615         changes.
5616         * tests/defun.test: Likewise.
5617         * tests/defun2.test: Likewise.
5618         * tests/dejagnu.test: Likewise.
5619         * tests/double.test: Likewise.
5620         * tests/distcom2.test: Likewise.
5621         * tests/empty2.test: Likewise.
5622         * tests/empty3.test: Likewise.
5623         * tests/empty4.test: Likewise.
5624         * tests/exdir.test: Likewise.
5625         * tests/ext.test: Likewise.
5626         * tests/extra.test: Likewise.
5627         * tests/extra2.test: Likewise.
5628         * tests/extra3.test: Likewise.
5629         * tests/extra4.test: Likewise.
5630         * tests/flibs.test: Likewise.
5631         * tests/fnoc.test: Likewise.
5632         * tests/fo.test: Likewise.
5633         * tests/instexec.test: Likewise.
5634         * tests/ltdeps.test: Likewise.
5635         * tests/nodep.test: Likewise.
5636         * tests/nodepcomp.test: Likewise.
5637         * tests/f90only.test: Likewise, and remove botched/obsoleted
5638         comments and unnecessary commands.
5639         * tests/fonly.test: Likewise, and remove botched/obsoleted
5640         comments and unnecessary commands.
5641         * tests/discover.test: Likewise, and made stricter.
5642
5643         Enable `errexit' shell flag in all tests cxx*.test.
5644         * tests/cxx.test: Enabled `errexit' shell flag, and related
5645         minor changes.
5646         * tests/cxxansi.test: Likewise.
5647         * tests/cxxcpp.test: Likewise.
5648         * tests/cxxlibobj.test: Likewise.
5649         * tests/cxxlink.test: Likewise.
5650         * tests/cxxo.test: Likewise.
5651
5652         Enable `errexit' shell flag in various tests.
5653         * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
5654         minor changes.
5655         * tests/acoutpt.test: Likewise.
5656         * tests/acoutqnl.test: Likewise.
5657         * tests/amassign.test: Likewise.
5658         * tests/ansi2.test: Likewise.
5659         * tests/ansi4.test: Likewise.
5660         * tests/badprog.test: Likewise.
5661         * tests/checkall.test: Likewise.
5662         * tests/clean.test: Likewise.
5663         * tests/colneq2.test: Likewise.
5664         * tests/colon.test: Likewise.
5665         * tests/colon5.test: Likewise.
5666         * tests/colon6.test: Likewise.
5667         * tests/comment.test: Likewise.
5668         * tests/compile_f90_c_cxx.test: Likewise.
5669         * tests/compile_f_c_cxx.test: Likewise.
5670         * tests/cond3.test: Likewise.
5671         * tests/cond6.test: Likewise.
5672         * tests/cond13.test: Likewise.
5673         * tests/conf2.test: Likewise.
5674         * tests/confvar.test: Likewise.
5675         * tests/confvar2.test: Likewise.
5676         * tests/cond8.test: Likewise, plus a cosmetic change.
5677         * tests/confh4.test: Likewise.  Also, add in the heading comments
5678         an excerpt from the original bug report which motivated the
5679         creation of this test, to make its purpose clearer.
5680
5681 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5682
5683         Rewrite manual to be gender-neutral.
5684         * doc/automake.texi (GNU Build System)
5685         (Standard Directory Variables, General Operation, CVS)
5686         (Hard-Coded Install Paths, Dependencies As Side Effects):
5687         Rewrite text to not contain gender-specific pronouns when
5688         speaking about developers or users, either by avoiding pronouns
5689         or by addressing them as `you' instead.
5690         * THANKS: Update.
5691         Report by Christina Gratorp.
5692
5693         * AUTHORS: Update.
5694
5695 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
5696
5697         Tiny fix in silent8.test (display output of `make' command).
5698         * tests/silent8.test: Make sure that the captured output of `make'
5699         command is always displayed.
5700
5701         Make tests on user extensibility of silent-rules mode stricter.
5702         * tests/silent6.test: Made stricter w.r.t. the grepping of the
5703         output produced by `make'.
5704         * tests/silent7.test: Likewise.
5705
5706         Tests on silent-mode for C/Libtool made stricter.
5707         * tests/silent.test: Made stricter w.r.t. the grepping of the
5708         output produced by `make'.
5709         * tests/silent2.test: Likewise.
5710         * tests/silent4.test: Likewise.
5711         * tests/silent9.test: Likewise.
5712         * tests/silent3.test: Likewise, and add a final `make distclean'
5713         command to keep it better in sync with tests/silent{4,9}.test.
5714
5715         Improved test silent5.test.
5716         * tests/silent5.test: Remove by hand all generated C files after
5717         non-verbose builds, to ensure the following builds are clean.
5718         Try to clean and rebuild with the same verbosity and without
5719         removing generated sources in between, to check that this does
5720         not trigger a different set of rules.  Make grepping of make's
5721         output stricter.  Improved/added some comments.
5722
5723         New tests for Automake silent-mode with Fortran.
5724         * tests/silentf77.test: New test.
5725         * tests/silentf90.test: Likewise.
5726         * tests/Makefile.am (TESTS): Updated accordingly.
5727
5728         New test `silentcxx.test' (Automake silent-mode with C++).
5729         * tests/silentcxx.test: New test.
5730         * tests/Makefile.am (TESTS): Updated accordingly.
5731
5732         New test `silentyacc.test' (Automake silent-mode with Yacc).
5733         * tests/silentyacc.test: New test.
5734         * tests/Makefile.am (TESTS): Updated accordingly.
5735
5736         New test `silentlex.test' (Automake silent-mode with Lex).
5737         * tests/silentlex.test: New test.
5738         * tests/Makefile.am (TESTS): Updated accordingly.
5739
5740         Relax tests on silent-rules to cater to overly verbose makes.
5741         * tests/silent.test: When testing silent builds, don't fail if
5742         make's output simply contains the `mv' substring, but only if
5743         it contains the `mv ' substring (note the trailing space).
5744         * tests/silent2.test: Likewise.
5745         * tests/silent3.test: Likewise.
5746         * tests/silent4.test: Likewise.
5747         * tests/silent5.test: Likewise.
5748         * tests/silent9.test: Likewise.
5749
5750 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5751
5752         Extend test on `nostdinc' automake option.
5753         * tests/nostdinc.test: Enable `errexit' shell flag.  Related and
5754         unrelated minor changes.  Make the grepping of the generated
5755         Makefile.in slightly stricter.  Generate and run configure, so that
5756         the generated Makefile can be grepped too.
5757
5758 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5759
5760         Make gnupload portable to EBCDIC hosts.
5761         * lib/gnupload: Use literal newline as argument for 'tr' rather
5762         than \015, for EBCDIC hosts.  Also, avoid unportable nested
5763         double-quotes and backquotes.
5764         * THANKS: Update.
5765         Report from Eric Blake and Steve Goetze via gnulib.
5766
5767 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5768
5769         Fix Autoconf version required by Automake's configure.
5770         Automake configure script used to tell that automake required
5771         autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
5772         and if that was not found, it gave an error saying that Automake
5773         required configure 2.61a-341 or later.  This change should
5774         eliminate such inconsistencies.
5775         * configure.ac ($required_autoconf_version): New variable.
5776         Use it throughout.
5777
5778 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5779
5780         Fix truncated comment in Makefile.am.
5781         * Makefile.am (sc_tests_logs_duplicate_prefixes): Fix unfinished
5782         sentence in comment.
5783         Report by Stefano Lattarini.
5784
5785         Relax silent8.test for NetBSD make.
5786         * tests/silent8.test: Accept ./foo.info in output as well.
5787
5788         Fix unportable sed script in maintainer-check test.
5789         * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
5790         not contain semicolon after 'b' or brace commands, for NetBSD.
5791
5792         Wildcards are not portable to NetBSD make.
5793         * doc/automake.texi (Wildcards): Document portability issue.
5794         * tests/extra10.test, tests/extra11.test, tests/extra12.test:
5795         Require GNU make.
5796
5797 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5798
5799         Make test for configure.in vs. configure.ac stricter.
5800         * tests/configure.test: Use a configure.in file that provokes
5801         an automake error, to ensure configure.ac is preferred.
5802
5803         Avoid possible false negatives in dejagnu7.test.
5804         * tests/dejagnu7.test: Enable shell `errexit' flag.  Also, avoid
5805         unportable use of fgrep option `-e'.
5806
5807         Fix conflnk3.test to work with Solaris/Heirloom Sh.
5808         * tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
5809         instead of respectively `test -e FILE' and `test ! -e FILE',
5810         since Solaris Sh doesn't grok the latter.  Do not SKIP the test
5811         if the shell doesn't support `test -e'.
5812
5813 2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5814
5815         Warning and error message formatting cleanups.
5816         * aclocal.in (parse_arguments, main): Remove trailing period or
5817         newline in error or warning messages, avoid capitalization of
5818         the first word of a message.
5819         * automake.in (check_user_variables, handle_languages)
5820         (handle_ltlibraries, scan_aclocal_m4, scan_autoconf_config_files)
5821         (scan_autoconf_files, cond_stack_if, require_file_internal)
5822         (usage, generate_makefile, parse_arguments): Likewise.
5823         * lib/Automake/ChannelDefs.pm (set_strictness): Likewise.
5824         * lib/Automake/Configure_ac.pm (find_configure_ac): Likewise.
5825         * lib/Automake/Options.pm (set_strictness): Likewise.
5826         * lib/Automake/Rule.pm (define): Likewise.
5827         * lib/Automake/Variable.pm (define, variables_dump): Likewise.
5828         * tests/ltinstloc.test, tests/suffix11.test: Adjust expected
5829         error message.
5830         * lib/Automake/Channels.pm (setup_channel): Reword error message
5831         to be the same as in msg.
5832
5833         Fix placing of ellipses in English text and synopses.
5834         * Makefile.am: Be sure to add a space before `...' in natural
5835         language text.
5836         * automake.in (scan_autoconf_traces): Likewise.
5837         * lib/Automake/Rule.pm (define): Likewise.
5838         * lib/Automake/Variable.pm (define): Likewise.
5839         * lib/am/dejagnu.am: Likewise.
5840         * lib/am/progs.am: Likewise.
5841         * lib/gnupload (dprint, upload): Likewise.
5842         * tests/confdeps.test: Likewise.
5843         * tests/location.test: Adjust expected output.
5844         * automake.in (usage): In synopsis, use singular for OPTION,
5845         * remove space before ellipsis.
5846         * aclocal.in (usage): Likewise.  Also, fix indentation.
5847
5848         Fix more duplicate message prefixes.
5849         * lib/Automake/XFile.pm (seek): Do not prepend $me.
5850         ($me): Remove now-unused package-global.
5851         * aclocal.in (check_acinclude): Remove duplicate 'warning: '
5852         prefix.
5853
5854         Fix typo in manual.
5855         * doc/automake.texi (Simple Tests using parallel-tests): Add
5856         missing closing parenthesis.
5857
5858         Fix leftover call to removed function macros_dump.
5859         * automake.in (read_main_am_file): Call variables_dump, not
5860         macros_dump.  Print actual error before list of variables.
5861
5862 2010-04-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
5863
5864         Minor improvements in comments of test `silent3.test'.
5865         * tests/silent3.test: Tell to keep it in sync with `silent9.test'
5866         too.
5867
5868 2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5869
5870         testsuite: ensure verbose printing of captured output.
5871         * tests/acloca14.test, tests/acloca18.test, tests/aclocal.test,
5872         tests/fort2.test, tests/help.test, tests/missing3.test,
5873         tests/missing6.test: Print captured stdout or stderr before
5874         grepping it.
5875
5876 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
5877
5878         Make test badopt.test stricter (by enabling `set -e').
5879         * tests/badopt.test: Add call to `set -e'.  Due to this change,
5880         an unexpected failure in the call to `$ACLOCAL' (whose outcome
5881         was previously unchecked) would cause the whole test to fail.
5882         Also, bumped the copyright years.
5883
5884         Make test for configure.in vs. configure.ac stricter.
5885         * tests/configure.test: Use a configure.in file that provokes
5886         an automake error, to ensure configure.ac is preferred.
5887
5888         Use `set -e' in confsub.test (avoids possible false negatives).
5889         * tests/confsub.test: Enable shell `errexit' flag, and related
5890         changes (this helps avoiding some possible minor false negatives).
5891         Also, bumped copyright years.
5892
5893 2010-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5894
5895         Fix -Werror handling for presence of configure.in and configure.ac.
5896         * lib/Automake/Variable.pm (Automake::Variable): Do not initialize
5897         $configure_ac at the global level, before command-line arguments
5898         have been parsed.
5899         (require_variables): Initialize it here.
5900         * tests/configure.test: New test.
5901         * tests/Makefile.am: Update.
5902         Report by Stefano Lattarini.
5903
5904 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
5905
5906         Avoid possible false negatives in confh5.test.
5907         * tests/confh5.test: Enable shell `errexit' flag, and bumped
5908         copyright years.  Due to this change, any unexpected failure
5909         in calls to $ACLOCAL, $AUTOMAKE, $AUTOCONF or $AUTOHEADER, or
5910         a failure in grepping expected text in output files should now
5911         cause the whole test to fail.
5912
5913 2010-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
5914
5915         Fixed typo in POD documentation of Automake::Channels.
5916         * lib/Automake/Channels.pm: Fixed typo in POD documentation:
5917         @<...> was used instead of C<...>.
5918
5919 2010-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
5920
5921         Refactor tests on Automake TESTS color output.
5922         * tests/color.test: Tests using the expect program moved out to...
5923         * tests/color2.test: ... this new file.
5924         * tests/Makefile.am (TESTS): Extended accordingly.
5925
5926 2010-04-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
5927
5928         Fix typos in comments in test confh5.test
5929         * tests/confh5.test: Fix a couple of typos in comments.
5930
5931         Avoid possible false negatives in canon-name.test.
5932         * tests/canon-name.test: Enable shell `errexit' flag.  Improve
5933         test description.
5934
5935 2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5936
5937         Print 'warnings are treated as errors' note if needed.
5938         * lib/Automake/Channels.pm: Fix typo in comment.
5939         (_print_message): If -Werror is enabled, print a 'warnings are
5940         treated as errors' note before the first such warning.
5941         * tests/warnopts.test: Adjust comment to mention expected warning.
5942         Adjust code to ignore 'warnings are treated as errors' note.
5943         * tests/location.test: Adjust expected output with -Werror.
5944         * tests/werror4.test: New test.
5945         * tests/Makefile.am: Update.
5946         * NEWS: Update.
5947
5948         Ensure we don't print 'warning:' or 'error:' twice.
5949         * Makefile.am (sc_ensure_testsuite_has_run): New helper rule.
5950         (sc_tests_logs_duplicate_prefixes): New rule, to check for
5951         wrong-looking warning and error messages in the test suite logs.
5952         * aclocal.in (scan_configure_dep, scan_file): Remove duplicate
5953         `warning: ' prefix.
5954         * tests/vars3.test: Rename variable to avoid false positive.
5955
5956         Prepend type to warning, error, and fatal messages.
5957         For the first part of messages of types `error' or `fatal',
5958         prepend `error: ' to the message.  Prepend `warning: ' to
5959         warning messages, whatever the setting of -Werror.
5960         * lib/Automake/Channels.pm (partial): Move up definition.
5961         (_format_message): Emit `header' and `footer' strings only with
5962         the first resp. last part of a set of partial messages.
5963         * lib/Automake/ChannelDefs.pm: Add missing '1;' statement at the
5964         end of the module.
5965         (Automake::ChannelDefs): Setup warning channels with header
5966         `warning: ', error and fatal messages with header `error: '.
5967         * tests/condinc2.test, tests/ltinstloc.test: Adjust expected
5968         error messages.
5969         * tests/comment5.test: Likewise.  Also, include stack notes
5970         should not start with `error:'.
5971         * tests/location.test: Likewise.  Also, try both -Werror and
5972         -Wno-error.
5973         * NEWS: Update.
5974         Report by Bruno Haible.
5975
5976         Fix capitalization of error messages, reword one message.
5977         * lib/Automake/Variable.pm (define): Do not capitalize the first
5978         word in the error message.
5979         * automake.in (require_file_internal): Likewise.  Also, reword
5980         and line-wrap for better readability.
5981         * tests/distcom7.test, tests/pluseq5.test, tests/pluseq9.test:
5982         Adjust tests.
5983
5984         Fix connected warnings about obsolete exeext override.
5985         * lib/Automake/Rule.pm (define): Merge two warnings that belong
5986         together, by setting the 'partial' flag for the first one.
5987
5988         Fix per-Makefile.am setting of -Werror.
5989         Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
5990         Makefile.am would carry over to other Makefile.am files
5991         treated afterwards by the same thread, causing inconsistent
5992         and unstable exit status values.
5993         * lib/Automake/Channels.pm (dup_channel_setup)
5994         (drop_channel_setup): Save and restore the setting of
5995         $warnings_are_errors.
5996         * tests/werror3.test: New test.
5997         * tests/Makefile.am: Adjust.
5998         * NEWS: Update.
5999
6000 2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
6001
6002         Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
6003         * tests/confh5.test: In the generated Makefile.am: do not use
6004         `test ! -e FILE' to check for the non-existence of a file, since
6005         that is not supported by Solaris/Heirloom Sh.
6006
6007         Make test `aclocal3.test' stricter.
6008         * tests/aclocal3.test: Add call to `set -e'.  Fail if $ACLOCAL
6009         succeds unexpectedly.
6010
6011         Add tests checking that symlinks are resolved by `make dist'.
6012         * tests/distlinks.test: New test.
6013         * tests/Makefile.am (TESTS): Updated accordingly.
6014         Suggested by observations from Ralf Wildenhues.
6015
6016 2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6017
6018         Use -9 for maximum xz compression with dist-xz.
6019         * lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
6020         * NEWS, THANKS: Update.
6021         Report by Pavel Sanda.
6022
6023 2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
6024
6025         Avoid possible false negatives in cond46.test.
6026         * tests/cond46.test: Enable shell `errexit' flag (and bumped
6027         copyright years).  Due to this change, the testcase should now
6028         fail on unexpected failures in calls to $ACLOCAL/$AUTOMAKE (whose
6029         outcomes were previously unchecked), and on failures in grepping
6030         the expected diagnostic in Automake stderr.
6031
6032 2010-04-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
6033
6034         Generated tests are now just a thin layer around other tests.
6035         * tests/Makefile.am: Rewrite the rule to generate the `*-p.test'
6036         test scripts so that any of them simply includes the corresponding
6037         `*.test' script (after setting `$parallel_tests' to `yes').
6038         * tests/.gitignore: Add wildcard for temporary files used in the
6039         generation of `*-p.test' tests.
6040
6041 2010-03-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
6042
6043         Avoid an unportable use of `$status' shell variable.
6044         * Makefile.am (path-check): Don't use the `$status' shell variable
6045         in the target's rules, as it's special in Zsh (equivalent to `$?',
6046         and readonly).
6047
6048         Avoid another use of `chmod -R'.
6049         * Makefile.am (path-check): To be safe, do not use `chmod -R' on
6050         $(distdir) before removing it (as Solaris `chmod -R' touches
6051         symlink targets).  Instead, use the cleanup strategy used in
6052         distdir.am.
6053
6054 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6055
6056         Remove uses of @acronym and @sc.
6057         * doc/automake.texi (Public Macros, Limitations on File Names):
6058         Remove all usage of @acronym and @sc in the manual.
6059         Suggested by Karl Berry.
6060
6061 2010-03-13  Karl Berry  <karl@freefriends.org>
6062
6063         GNU hello uses fdl.texi, not gpl.texi.
6064         * doc/automake.texi (Texinfo): Adjust example to upstream
6065         change.
6066
6067 2010-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6068
6069         Formatting cleanups in macro comments.
6070         * automake.in, lib/Automake/Channels.pm,
6071         lib/Automake/FileUtils.pm, lib/Automake/Options.pm,
6072         lib/Automake/Variable.pm, lib/Automake/XFile.pm,
6073         m4/options.m4, m4/substnot.m4: Fix macro comment format.
6074
6075 2010-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
6076             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6077
6078         Avoid generation of `tests/defs-p' file.
6079         * tests/defs.in: In the generated `configure.in' snippet: call
6080         `AM_INIT_AUTOMAKE' with the `parallel-tests' option if the shell
6081         variable `parallel_tests' is set to `yes'.
6082         * tests/Makefile.am (defs-p): Target removed.
6083         (check_SCRIPTS): Removed `defs-p'.
6084         (clean-local-check): Do not unlink `defs-p' anymore.
6085         ($(parallel_tests)): Transformation rules for the test scripts
6086         adjusted.
6087         * tests/gen-parallel-tests: Selection rules for the test
6088         scripts adjusted.
6089         * tests/parallel-tests.test: Set `$parallel_tests' to `yes'
6090         then include `./defs' (rather than simply including `./defs-p').
6091         * tests/parallel-tests2.test: Likewise.
6092         * tests/parallel-tests3.test: Likewise.
6093         * tests/parallel-tests4.test: Likewise.
6094         * tests/parallel-tests5.test: Likewise.
6095         * tests/parallel-tests6.test: Likewise.
6096         * tests/parallel-tests7.test: Likewise.
6097         * tests/parallel-tests8.test: Likewise.
6098         * tests/parallel-tests9.test: Likewise.
6099         * tests/parallel-tests10.test: Likewise.
6100         * tests/README (Section "Writing Test Cases" subsection "Do"):
6101         Adjusted the parts referring to tests checking `parallel-tests'
6102         behaviour.  Some other minor related improvements.
6103         * tests/.gitignore (defs-p): Removed.
6104
6105 2010-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
6106
6107         Remove redundant unset of variable TESTS from some test scripts.
6108         * tests/color.test: Do not unset the `TESTS' variable, as it's
6109         already unset in the `defs' file.
6110         * tests/check5.test: Likewise.
6111         * tests/check8.test: Likewise.
6112         * tests/check9.test: Likewise.
6113         * tests/check10.test: Likewise.
6114         * tests/check11.test: Likewise.
6115         * tests/parallel-tests.test: Likewise.
6116         * tests/parallel-tests3.test: Likewise.
6117         * tests/parallel-tests4.test: Likewise.
6118         * tests/parallel-tests5.test: Likewise.
6119         * tests/parallel-tests6.test: Likewise.
6120         * tests/parallel-tests7.test: Likewise.
6121
6122 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6123
6124         Fix cscope test on systems without working Fortran compiler.
6125         * tests/cscope.test: Skip remainder of test if `$MAKE all' fails.
6126         * THANKS: Update.
6127         Report by Peter Johansson.
6128
6129 2010-02-24  Antonio Diaz Diaz  <ant_diaz@teleline.es>  (tiny change)
6130             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6131
6132         Add lzip compression support.
6133         * automake.in (handle_dist): Recognize dist-lzip.
6134         (make_paragraphs): Map LZIP to dist-lzip.
6135         * doc/automake.texi (Dist): Add dist-lzip.
6136         (Options): Likewise.
6137         * lib/Automake/Options.pm (_process_option_list): Add dist-lzip.
6138         * lib/am/distdir.am
6139         (dist dist-all): Add command to create an lzip-compressed tarball.
6140         (distcheck): Handle lzip-compressed tarballs just like the others.
6141         * tests/defs.in: Test for lzip, too.
6142         * tests/lzip.test: New file, based on nogzip.test.
6143         * tests/Makefile.am (TESTS): Add lzip.test.
6144         * NEWS: Update.
6145
6146 2010-02-22  Karl Berry  <karl@gnu.org>
6147
6148         Improve help message of mdate-sh.
6149         * mdate-sh: mention actual output format in help message.
6150
6151 2010-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6152
6153         Deprecate dist-lzma in favor of dist-xz.
6154         * doc/automake.texi (The Types of Distributions, Options):
6155         Adjust text to reflect renaming of lzma to xz.
6156         * NEWS: Update.
6157         Missing deprecation noted by Antonio Diaz Diaz.
6158
6159 2010-02-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
6160
6161         Add tests about support of wildcards in EXTRA_DIST.
6162         * tests/extra10.test: New test, check basic support of wildcards
6163         in EXTRA_DIST.
6164         * tests/extra11.test: New test, check more complex usage of
6165         wildcards in EXTRA_DIST.
6166         * tests/extra12.test: New test, check usage of wildcards in
6167         EXTRA_DIST when $builddir != $srcdir.
6168         * tests/Makefile.am (TESTS): Updated accordingly.
6169         Necessity of these new tests suggested by Braden McDaniel
6170         and Ralf Wildenhues.
6171
6172 2010-02-08  Simon Josefsson  <simon@josefsson.org>
6173
6174         Fix copyright statement in gnupload script.
6175         * lib/gnupload: Fix copyright statement.
6176
6177 2010-02-06  Dmitry V. Levin  <ldv@altlinux.org>  (tiny change)
6178             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6179
6180         Fix exit status of signal handlers in shell scripts.
6181         The value of `$?' on entrance to signal handlers in shell scripts
6182         cannot be relied upon, so set the exit code explicitly to
6183         128 + SIG<SIGNAL>.
6184         * lib/am/check.am (am__check_pre): Use `exit 143' in signal handler.
6185         * lib/elisp-comp: Likewise.
6186         * lib/install-sh: Likewise.
6187         * lib/ylwrap: Likewise.  Also, fix script to trap signal 13, not 3.
6188         * NEWS, THANKS: Update.
6189         Bug report, analysis, and initial patch by Dmitry V. Levin.
6190
6191 2010-02-06  Karl Berry  <karl@gnu.org>
6192
6193         Improve gnupload usage text.
6194         * gnupload (usage): Shorten to make more likely to fit on a tty
6195         line.  Mention CMD in the synopsis.  With ..., plural is implied.
6196
6197 2010-01-28  Christos Kontas  <xakon@yahoo.com>  (tiny change)
6198
6199         Fix some typos in the manual
6200         * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
6201
6202 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6203
6204         Fix silent-rules output for disabled dependency tracking.
6205         * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
6206         expansion code to also work in the case where %AMDEP% expands
6207         to FALSE at config.status time, using new substitution string
6208         %VERBOSE-NODEP%.
6209         * automake.in (verbose_nodep_flag): New function, appending
6210         `@am__nodep@' to the verbose-variable name.
6211         (handle_languages): If dependencies are not disabled, use it to
6212         set %VERBOSE-NODEP%.
6213         * m4/depend.m4: Substitute am__nodep as '_no', so the second
6214         verbose-variable will always expand to an empty string, if
6215         dependencies are enabled.
6216         * tests/silent5.test: Also test --disable-dependency-tracking;
6217         also test per-target flags for non-C language files.
6218         * tests/silent9.test: New test, like silent4.test but disable
6219         dependency tracking.
6220         * tests/Makefile.am: Adjust.
6221         * NEWS, THANKS: Update.
6222         Report by Dmitry V. Levin <ldv@altlinux.org>.
6223
6224 2010-01-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
6225
6226         Slighty improve tests acoutbs.test and acoutbs2.test.
6227         * tests/acoutbs2.test: Enable `errexit' shell flag.  Check that
6228         autoconf and configure work, that the file `zot' is created by
6229         configure, and that no file containing a backslash in its name is
6230         created.
6231         * tests/acoutbs.test: Likewise, plus updated copyright years.
6232
6233         Fix test acoutbs2.test.
6234         * tests/acoutbs2: In the generated configure.in: add proper calls
6235         to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
6236         PACKAGE and VERSION. Add a call to aclocal before calling automake.
6237         Updated copyright years.
6238         * tests/Makefile.am (XFAIL_TESTS): Removed acoutbs2.test.
6239
6240         Add forgotten test scripts to $(TESTS).
6241         * tests/Makefile.am (TESTS): Added test scripts present on the
6242         filesystem, which were erroneously left out from $(TESTS):
6243         acoutbs2.test, badopt.test, extra2.test.
6244         (XFAIL_TESTS): Added acoutbs2.test.
6245
6246 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6247
6248         Sync auxiliary files from upstream.
6249         * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub:
6250         Sync from upstream.
6251
6252         Bump copyright years.
6253         * aclocal.in (write_aclocal, version): Bump copyright years.
6254         * automake.in (gen_copyright, version): Likewise.
6255         * doc/automake.texi: Likewise.
6256
6257         Rotate ChangeLog.
6258         * ChangeLog.09: New file, rotated from ...
6259         * ChangeLog: ... here.
6260         * Makefile.am (EXTRA_DIST): Distribute ChangeLog.09.
6261
6262 -----
6263
6264 Copyright (C) 2010, 2011  Free Software Foundation, Inc.
6265
6266 Copying and distribution of this file, with or without modification, are
6267 permitted provided the copyright notice and this notice are preserved.
6268
6269 ;; Variables:
6270 ;; coding: utf-8
6271 ;; End: