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