Merge branch 'fix-perl-local-uscore'
[platform/upstream/automake.git] / ChangeLog
1 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         Avoid local $_ perl variable, for Perl before 5.9.1.
4         * lib/Automake/Options.pm (_process_option_list): Do not
5         lexically localize $_.  Fixes bootstrap on AIX 5.1.
6         Bug introduced in commit `v1.11-622-gf90a06c'.
7
8 2011-01-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9
10         tests: remove useless requirements from cond36.test
11         * tests/cond36.test ($required): Remove.
12         Since we are at it, add a trailing `:' command.
13
14 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15
16         tests: avoid failing command substitution in errexit mode.
17         * tests/vartypo2.test, tests/vartypos.test: Rewrite to not use
18         a command substitution with a nonzero exit status, that causes
19         IRIX and Tru64/OSF sh to fail the whole test.
20
21 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22             Stefano Lattarini  <stefano.lattarini@gmail.com>
23
24         parallel-tests: work around Tru64/OSF 5.1 sh read bugs.
25         * lib/am/check.am ($(TEST_SUITE_LOG), recheck, recheck-html):
26         Test file readability before redirecting input from it, to avoid
27         exiting Tru64/OSF 5.1 sh which treats read as special builtin.
28         * tests/parallel-tests-unreadable-log.test: New test.
29         * tests/Makefile.am (TESTS): Update.
30         * NEWS: Update.
31
32 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33
34         * NEWS, README: Update copyright years.
35
36 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
37
38         tests: hard error in case of internal failures or signal caught
39         * tests/defs: Exit with status 99 (hard error) rather than
40         1 (failure) on unexpected/internal errors, or when a signal
41         is caught by the client script.
42
43         Tests defs: don't let useless variables leak in test scripts.
44         * tests/defs ($priv_check_temp, $overwrite_status, $ro_dir_temp,
45         $create_status, $r2h, $libtool_found, $gettext_found, $aclocaldir,
46         $extra_includes): Unset once they've served their purpose.
47
48 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49
50         Fix parallel-tests.test failure with HP-UX make.
51         * tests/parallel-tests.test: Sleep inside inner tests, so logs
52         are newer than logs of tests they depend on, for HP-UX make.
53
54 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55
56         docs: ensure example are separated with empty lines in the input
57         * doc/automake.texi (Extending aclocal, Emacs Lisp, Rebuilding)
58         (API Versioning, Renamed Objects, Multiple Outputs): Add empty
59         lines before `@example' and after `@end example' lines, so info
60         output is rendered correctly, and a following @noindent honored.
61         Report by Stefano Lattarini.
62
63 2011-01-15  Jim Meyering <meyering@redhat.com>
64
65         tests: fix comment typo
66         * tests/substref.test: Fix grammar in a comment.
67
68 2011-01-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
69
70         tests: fix spurious failures in two texinfo tests
71         * tests/txinfo.test ($required): Add 'makeinfo'.
72         * tests/txinfo8.test: Create a dummy 'textutils.info' file, so
73         that make won't try to run makeinfo (which could be unavailable)
74         to build it.
75         Found by NixOS Hydra, reported by Ralf Wildenhues.
76
77 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
78
79         Update docs w.r.t. warning and strictness options.
80         * doc/automake.texi (Strictness): Document that some warnings are
81         turned off by default in `foreign' strictness.
82         (Options): Divide into new sections "Options generalities" and
83         "List of Automake options".  Fix typo (colon instead of full
84         stop).  Document option precedence (AUTOMAKE_OPTIONS wins over
85         AM_INIT_AUTOMAKE which wins over command line).  Also document
86         interactions between options specifying strictness and those
87         specifying warnings.
88
89         More tests on warnings/strictness precedence.
90         * tests/warning-groups-win-over-strictness.test: New test, similar
91         to `warnings-win-over-strictness.test', but checking the explicit
92         catch-all warning flags (like `-Wall' and `-Wnone').
93         * tests/Makefile.am (TESTS): Update.
94
95         Update NEWS about the warnings-over-strictness precedence.
96         * NEWS: Automake explicit warning levels always take precedence
97         over the implicit warning levels implied by Automake strictness.
98
99         For PR automake/547:
100         Warnings win over strictness in AUTOMAKE_OPTIONS.
101         Ensure that, for what concerns the options specified in
102         AUTOMAKE_OPTIONS, explicitly-defined warnings always take
103         precedence over implicit strictness-implied warnings.
104         This finally fixes Automake bug#7669 a.k.a. PR/547.
105         * automake.in (handle_options): Call 'process_option_list'
106         only once per set of options.
107         * lib/Automake/Options.pm (process_global_option_list,
108         process_option_list): Add sanity checks.
109         ($_options_processed, $_global_options_processed): New
110         internal variables, used by the sanity checks above.
111         * tests/warnings-win-over-strictness.test: Extend.
112
113         For PR automake/547:
114         Change signature of 'Automake::Options::_process_option_list()'.
115         This only modifies internal details in the automake implementation,
116         bearing no externally visible effect, but preparing the way for the
117         final fix of Automake bug#7669 a.k.a. PR/547.
118         * lib/Automake/Options.pm (_process_option_list): Accept as
119         arguments a list of hash references with keys 'option' and 'where',
120         where 'option' is an option as might occur in AUTOMAKE_OPTIONS or
121         AM_INIT_AUTOMAKE, and 'where' is the location where it occurred.
122         (process_option_list, process_global_option_list): Updated.
123         * automake.in (handle_options, scan_autoconf_traces): Update.
124
125         Add more tests about AUTOMAKE_OPTIONS.
126         In view of soon-to-follow refactorings (still in the pursuit of a
127         fix for Automake bug#7669 a.k.a. PR/547), add some more tests on
128         AUTOMAKE_OPTIONS support, to prevent obvious regressions.
129         * tests/amopts-variable-expansion.test: New test.
130         * tests/amopts-location.test: Likewise.
131         * tests/Makefile.am (TESTS): Update.
132
133         For PR automake/547:
134         Warnings win over strictness in AM_INIT_AUTOMAKE.
135         This change ensures that, for what concerns the options specified
136         in AM_INIT_AUTOMAKE,  explicitly-defined warnings always take
137         precedence over implicit strictness-implied warnings.  Related to
138         Automake bug#7669 a.k.a. PR/547.
139         * lib/Automake/Options.pm (_process_option_list): Parse explicit
140         warnings only after the strictness level has been set.  Fix POD
141         documentation.
142         * tests/warnings-win-over-strictness.test: Extend.
143
144         For PR automake/547:
145         Warnings win over strictness on command line.
146         Ensure that, on the command line at least, explicitly defined
147         warnings always take precedence over implicit strictness-implied
148         warnings.  Related to Automake bug#7669 a.k.a. PR/547.
149         * automake.in (parse_arguments): Parse warnings only after the
150         strictness level has been processed.
151         * tests/gnuwarn.test: Update, plus miscellaneous improvements.
152         * tests/warnings-win-over-strictness.test: New test.
153         * tests/Makefile.am (TESTS): Update.
154
155         More tests on warnings and strictness.
156         * tests/warnings-strictness-interactions.test: New test.
157         * tests/warnings-unknown.test: Likewise.
158         * tests/Makefile.am (TESTS): Update.
159
160         New test on silent-rules mode and portability warnings.
161         * tests/silent-nowarn.test: New test.
162         * tests/Makefile.am (TESTS): Update.
163
164         Add new tests on strictness and warnings precedence and overriding.
165         * tests/strictness-override.test: New test.
166         * tests/strictness-precedence.test: New test.
167         * tests/warnings-override.test: New test.
168         * tests/warnings-precedence.test: New test.
169         * tests/Makefile.am (TESTS): Update.
170
171 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
172
173         Fix remake rule-induced test failures with HP-UX make.
174         * tests/remake1a.test: Require GNU make.
175
176 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
177
178         Fix remake rule-induced test failures with HP-UX make.
179         * tests/colon6.test: Update timestamp of subdir Makefile, so we
180         do not spuriously invoke the nonexistent toplevel am--refresh
181         rule.
182
183         tests: fix typos in colon6.test
184         * tests/colon6.test: Fix typos.
185
186 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
187             Stefano Lattarini  <stefano.lattarini@gmail.com>
188
189         tests: explain MSYS setup failure issue, improve test.
190         * tests/defs: Add comment and failure message, improve fail
191         logic.
192
193 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
194
195         Fix libobj2.test failure with non-GNU make: define $(AR).
196         * tests/libobj2.test: Ensure $(AR) is suitably defined.
197
198 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
199
200         tests: avoid spurious failures due to fork failure in test setup
201         * tests/defs: Ensure $me is always nonempty, to avoid spurious
202         failures on MinGW/MSYS in case the preceding sed command could
203         not be spawned.
204
205         Avoid configure warnings from wait about reused PIDs.
206         * m4/sanity.m4 (AM_SANITY_CHECK): Hide wait stderr output.
207         Fixes spurious failure of depcomp2.test.
208
209 2011-01-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
210
211         Avoid testsuite failures due to Autoconf Fortran change.
212         Autoconf v2.68-21-g727ce95 causes AC_F77_LIBRARY_LDFLAGS to
213         require computing the canonical host name.  Ensure config.guess
214         and config.sub files are present for respective checks.
215         * tests/compile_f_c_cxx.test: Add stub files.
216         * tests/flibs.test: Likewise.
217         * tests/fort4.test: Use $AUTOMAKE -a for installing files.
218
219 2011-01-12   Stefano Lattarini  <stefano.lattarini@gmail.com>
220
221         docs: clustered '-d' not recognized in YFLAGS
222         This change fixes automake bug#7828.
223         * doc/automake.texi (Yacc and Lex): Document that automake
224         recognizes '-d' in AM_YFLAGS only if it's not clustered with
225         other options.
226         From a report by Юрий Пухальский.
227
228 2011-01-10   Stefano Lattarini  <stefano.lattarini@gmail.com>
229
230         tests: add checks on automatically-distributed files
231         Related to automake bug#7819.
232         * tests/autodist.test: New test.
233         * tests/autodist-subdir.test: Likewise.
234         * tests/autodist-acconfig.test: Likewise.
235         * tests/autodist-acconfig-no-subdir.test: Likewise.
236         * tests/autodist-aclocal-m4.test: Likewise.
237         * tests/autodist-config-headers.test: Likewise.
238         * tests/autodist-configure-no-subdir.test: Likewise.
239         * tests/autodist-stamp-vti.test: Likewise.
240         * tests/Makefile.am (TESTS): Update.
241
242 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
243
244         tests: do not force yacc-requiring tests to use bison
245         * tests/defs.in: New required entry 'yacc'.  Remove old
246         required entry 'bison'.
247         * tests/cond35.test ($required): Require yacc, not bison.
248         * tests/cond36.test: Likewise.
249         * tests/pr204.test: Likewise.
250         * tests/silent-many-gcc.test: Likewise.
251         * tests/silent-many-generic.test: Likewise.
252         * tests/silent-yacc-gcc.test: Likewise.
253         * tests/silent-yacc-generic.test: Likewise.
254         * tests/subpkg.test: Likewise.
255         * tests/suffix10.test: Likewise.
256         * tests/yacc-basic.test: Likewise.
257         * tests/yacc-clean.test: Likewise.
258         * tests/yacc-d-basic.test: Likewise.
259         * tests/yacc-d-vpath.test: Likewise.
260         * tests/yacc-dist-nobuild.test: Likewise.
261         * tests/yacc-nodist.test: Likewise.
262         * tests/yacc4.test: Likewise.
263         * tests/yacc6.test: Likewise.
264         * tests/yacc7.test: Likewise.
265         * tests/yacc8.test: Likewise.
266         * tests/yaccdry.test: Likewise.
267         * tests/yaccvpath.test: Likewise.
268
269 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
270
271         tests: more consistent checks about invalid options
272         * tests/aclocal.test: Grepping of automake stderr for messages
273         reporting invalid options made stricter.
274         * tests/no-outdir-option.test: Likewise.  Also, create a dummy
275         `Makefile.am', to ensure that the automake failures are really
276         caused only by unrecognized options.
277         * tests/automake.test: Added trailing `:' command.  Removed
278         redundant checks on `--help' and `--version' option (already
279         performed in the test `help*.test').
280
281 2011-01-11   Stefano Lattarini  <stefano.lattarini@gmail.com>
282
283         tests: enable 'errexit' shell flag by default.
284         * tests/defs: Enable `errexit' shell flag (near the end).
285         Removed redundant comment about the enabling of shell traces.
286         * tests/README (Writing test cases): Update, and use nicer
287         formatting in a couple of places.
288         * All tests: Adjusted by removing now-redundant calls to
289         'set -e'.
290
291 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
292
293         tests: work around a texi+cygnus bug causing a spurious XFAIL
294         * tests/txinfo5b.test: New test, like txinfo5.test but calling
295         automake with the `-Wno-override' option to work around a bug
296         in the texinfo + cygnus interaction.
297         * tests/txinfo5.test: Update heading comments.
298         * tests/Makefile.am (TEST): Updated.
299
300 2011-01-09  Dave Hart  <davehart@gmail.com>  (tiny change)
301
302         Fix another typo in Rule.pm comment.
303         * lib/Automake/Rule.pm: Fix typo.
304
305 2011-01-09  Peter Rosin  <peda@lysator.liu.se>
306
307         Fix another typo in Rule.pm comment.
308         * lib/Automake/Rule.pm: Fix typo.
309
310 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
311
312         tests: texinfo unrecognized extensions
313         * tests/txinfo-unrecognized-extension.test: New test.
314         * tests/Makefile.am (TESTS): Update.
315
316         Improve, extend and tweak tests on Texinfo support.
317         * tests/instdir-texi.test: Add a call to `ls -l' after that to
318         `make', for debugging.  When looking for required tools, do not
319         redirect the output of "$tool --help" to /dev/null, and do not
320         uselessly run it in a subshell.
321         * tests/txinfo.test: Rewritten to run autoconf, ./configure and
322         make.  All checks moved into Makefile.am.
323         * tests/txinfo8.test: Likewise, and modernize the generated
324         configure.in.
325         * tests/txinfo2.test: Moved checks into Makefile.am, and other
326         minor improvements.
327         * tests/txinfo5.test: Enable `errexit' shell flag, and related
328         changes.  Add trailing `:' command.
329         * tests/txinfo6.test: Likewise, and make grepping of generated
330         Makefile.in stricter.
331         * tests/txinfo7.test: Enable `errexit' shell flag, and related
332         changes.  Add trailing `:' command.  Do not add unnecessary stuff
333         to Makefile.am.
334         * tests/txinfo9.test: Verify that more targets which are expected
335         to be generated only once really are.  Make grepping less strict,
336         to avoid exposing too much internal details.  More minor changes.
337         * tests/txinfo16.test: Add trailing `:'.  Prefer cat over echo
338         for appending to configure.in.  Updated/fixed heading comments.
339         * tests/txinfo23.test: Likewise, and extended a little by making
340         it check that no info file is created in the $(srcdir).
341         * tests/txinfo24.test: Likewise.
342         * tests/txinfo25.test: Likewise.
343         * tests/txinfo18.test: Add trailing `:'.  Prefer cat over echo
344         for appending to configure.in.  Also, check that index files are
345         cleaned also by "make clean", not only by "make distclean".
346         * tests/txinfo22.test: Prefer `$me' over hard-coded test name,
347         and added trailing `:' command.  This testcase also used to check
348         that automake ignores in-line comments when using variables, but
349         preserves them in the output; these checks (added in commit
350         "Release-1-7f-4-g9177ef8") do not really pertain to this test,
351         so they have been moved ...
352         * tests/comments-in-var-defn.test: ... into this new test.
353         * tests/txinfo4.test: Escape literal dots in grep regexps.  Add
354         trailing `:' command.
355         * tests/txinfo29.test: Likewise.  Relax grepping of generated
356         Makefile.in w.r.t. whitespaces.  Prefer `cat' over `echo' to
357         append to configure.in.
358         * tests/txinfo3.test: Likewise.
359         * tests/vtexi.test: Improve grepping of Makefile.in (sometimes
360         make it stricter, sometimes laxer).  Move `set -e' setting just
361         after the inclusion of ./defs.  De-uglify a sed command.  Other
362         minor cosmetic improvements.
363         * tests/vtexi2.test: Make grepping of Makefile.in stricter.  Add
364         trailing `:' command.
365         * tests/vtexi3.test: New test on version.texi support.
366         * tests/vtexi4.test: Likewise.
367         * tests/Makefile.am (TESTS): Updated.
368
369 2011-01-11   Stefano Lattarini  <stefano.lattarini@gmail.com>
370
371         tests: fix spurious failure in 'tests/yflags-conditional.test'
372         * tests/yflags-conditional.test: Filter out message "warnings are
373         treated as errors" from automake stderr, to avoid a false positive
374         when grepping for extraneous warning messages.
375
376 2011-01-10   Stefano Lattarini  <stefano.lattarini@gmail.com>
377
378         yacc: warn about conditional content in *YFLAGS variables
379         This change fixes automake bug#7804.
380         * automake.in (lang_yacc_target_hook): Warn if any of the relevant
381         *YFLAGS variables has conditional contents (not only a conditional
382         definition).  Related refactoring.
383         * NEWS: Updated.
384         * tests/yflags-conditional.test: Updated and extended.
385         * tests/yflags-conditional-force.test: New test.
386         * tests/Makefile.am (TESTS): Updated.
387
388 2011-01-08   Stefano Lattarini  <stefano.lattarini@gmail.com>
389
390         yacc: support variable expansions in *YFLAGS definition.
391         This change fixes automake bug#7800.
392         * automake.in (lang_yacc_target_hook): Use 'value_as_list_recursive'
393         instead of 'variable_value' to get the value of *YFLAGS variables.
394         Related changes.
395         ($DASH_D_PATTERN): Removed.
396         * tests/Makefile.am (XFAIL_TESTS): Remove yflags-var-expand.test.
397         * tests/yacc-clean.test: Remove workaround for now-fixed bug.
398         * NEWS: Update.
399
400 2011-01-08   Stefano Lattarini  <stefano.lattarini@gmail.com>
401
402         yacc: more tests on *YFLAGS support
403         * tests/yflags-var-expand.test: New test, still xfailing.  It
404         exposes automake bug#7800 -- "automake fails to honor `-d' in
405         AM_YFLAGS when variable expansions are involved".
406         * tests/yflags-d-false-positive.test: New test, checking that
407         automake do not spuriously see `-d' in *YFLAGS when that isn't
408         really there.
409         * tests/yflags-force-override.test: New test, checking that
410         automake can cope with definition of the YFLAGS variable in
411         Makefile.am (even if that is an extremely bad practice, as that
412         variable is user-reserved).
413         * tests/yflags-cmdline-override.test: New test, checking that
414         automake can cope with user-redefinition of YFLAGS at configure
415         time and/or at make time.
416         * tests/yflags-conditional.test: New test, checks that automake
417         warns on conditionally-defined *YFLAGS variables.
418         * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
419
420 2011-01-08   Stefano Lattarini  <stefano.lattarini@gmail.com>
421
422         yacc: extend and improve tests
423         * tests/yacc-basic.test: Also check that the intermediate C file
424         is mentioned in the generated Makefile.in, and that it is created
425         by the first make invocation.
426         * tests/yacc3.test: Test removed, superseded by ...
427         * tests/yacc-d-basic.test: ... this new test.
428         * tests/yacc2.test: Add reference to that new test in the heading
429         comments.
430         * tests/yacc-d-vpath.test: New test.
431         * tests/yaccvpath.test: Updated heading comments.  Do not require
432         gcc anymore, as any working C compiler should be enough.  Remove
433         redundant comments.
434         * tests/yacc-nodist.test: New test.
435         * tests/yacc-dist-nobuild.test: New test.
436         * tests/Makefile.am (TESTS): Update.
437
438 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
439
440         Extend, fix and improve tests on Lex and Yacc support.
441         * tests/lexcpp.test: New test script, on support for Lex + C++.
442         * tests/lexvpath.test: New test script, test build and rebuild
443         rules for lexers in VPATH setup.
444         * tests/yacc-basic.test: New test script, run simple "semantic"
445         checks on basic Yacc support (similarly to what lex3.test does
446         for Lex support).
447         * tests/lex.test: Don't create useless dummy source file joe.l.
448         Remove extra blank lines.
449         * tests/lex4.test: Add trailing `:' command.  Do not create dummy
450         useless lex source file.
451         * tests/lex2.test: Likewise.  Call automake with the `-a' option,
452         so that it doesn't fail for the absence of `ylwrap' script.  Make
453         grepping of automake stderr stricter.
454         * tests/yacc7.test: Add trailing `:' command.  Enable `errexit'
455         shell flag earlier (just after having sourced ./defs).
456         * tests/yacc4.test: Likewise.  Also ...
457         (configure.in): Use pre-populated skeleton set up by ./defs,
458         instead of writing one from scratch.
459         Other minor cosmetic changes.
460         * tests/yacc5.test: Likewise.
461         * tests/yaccvpath.test: Likewise. Also ...
462         ($distdir): New variable.
463         Use it throughout.
464         * tests/lex5.test: Likewise.
465         * tests/lex3.test: Likewise.  Check the distdir, rather than
466         grepping the distribution tarball.  Extend the test on the
467         created binary, and be sure to avoid hangs.  Add some comments.
468         * tests/yacc.test: Use stricter grepping.  Add trailing `:'.
469         * tests/yacc6.test: Likewise.
470         * tests/yacc3.test: Likewise.  Do not create the unused file
471         `Makefile.sed'.  Remove useless rules from Makefile.am.  Other
472         minor cosmetic changes.
473         * tests/yacc2.test: Make grepping of generated `Makefile.in' and
474         of automake error messages stricter.  Do not redirect output of
475         grep to /dev/null.  Move call to aclocal earlier.  Reduce the
476         number of empty blank lines.  Fix a typo in comments.
477         * tests/yacc8.test: Fixed bugs that reduced the completeness of
478         the tests.  Added trailing `:' command.
479         (configure.in): Use pre-populated skeleton set up by ./defs,
480         instead of writing one from scratch.
481         * tests/yaccpp.test: Test also extensions `.y++', `.ypp', and
482         `.yxx', rather than only `.yy'.
483         * tests/Makefile.am (TESTS): Update.
484
485 2011-01-09   Stefano Lattarini  <stefano.lattarini@gmail.com>
486
487         cosmetics: remove trailing whitespaces
488         * doc/automake.texi: Remove trailing whitespaces.
489         * tests/cond13.test: Likewise.
490         * tests/cond14.test: Likewise.
491         * tests/fort4.test: Likewise.
492         * tests/fort5.test: Likewise.
493         * tests/libobj17.test: Likewise.
494         * tests/suffix7.test: Likewise.
495         * tests/vtexi2.test: Likewise.
496
497         automake: minor fixes in comments
498         * automake.in: Some minor fixes and enhancements in comments.
499
500 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
501
502         Add test coverage for deleted header files.
503         * tests/depcomp6.test, tests/depcomp7.test: Update tests to
504         also check for the deleted header bug.  If no dependency
505         tracking mechanism could be found, SKIP rather than exit
506         successfully.  Use GNU style spacing and ANSI C prototypes.
507
508         Fix typos in Rule.pm comments.
509         * lib/Automake/Rule.pm: Fix typos in comments.
510
511         docs: split 'amhello Explained' node.
512         * doc/automake.texi (amhello Explained): Split node ...
513         (amhello's configure.ac Setup Explained)
514         (amhello's Makefile.am Setup Explained) : ... into these two.
515         (Top, Hello World): Adjust, and add @anchor for stable URL links.
516         Suggestion by Karl Berry in automake bug#7766.
517
518 2011-01-08  Karl Berry  <karl@freefriends.org>
519             Eric Blake  <eblake@redhat.com>
520
521         docs: reference defining directories in amhello node.
522         * doc/automake.texi (amhello Explained): Point to Autoconf
523         manual for how to convert directory values into macros.
524         (Optional): Fix grammar nit.
525
526 2011-01-07   Stefano Lattarini  <stefano.lattarini@gmail.com>
527
528         yacc: "make clean" removes .c and .h files from non-distributed .y
529         Previously, while automake did *not* distribute C source and header
530         files derived from non-distributed Yacc sources, it still caused
531         them to be removed only by "make maintainer-clean" only, and not by
532         simply "make clean" or "make distclean".
533         This caused "make distcheck" to fail, unless the developer put
534         those generated .c and .h files in CLEANFILES or in DISTCLEANFILES
535         by hand.
536         This change fixes this issue, by making non-distributed `.c' and
537         `.h' files generated by non-distributed Yacc sources cleaned by
538         "make clean".
539         * tests/automake.in (lang_yacc_target_hook): Make C source and
540         header files derived from non-distributed Yacc files cleaned by
541         "make clean", not only by "make maintainer-clean".
542         * tests/yacc-clean.test: New test.
543         * tests/Makefile.am (TESTS): Update.
544         * NEWS: Update.
545
546 2011-01-02   Stefano Lattarini  <stefano.lattarini@gmail.com>
547
548         * NEWS: Fix typo (forgotten word).
549
550 2011-01-02   Stefano Lattarini  <stefano.lattarini@gmail.com>
551              Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
552
553         docs: how to work around checks on invalid primary/directory couples
554         * doc/automake.texi (Uniform): Document the blessed idiom which can
555         be used to work around automake checks on invalid primary/directory
556         couples (such as `lib_PROGRAMS' or `doc_LIBRARIES').
557
558 2010-01-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
559
560         Tests: normalize use of the 'errexit' shell flag.
561         * tests/maken3.test (check_targets): Remove redundant call to
562         'set -e'.
563         * tests/maken4.test: Likewise.
564         * tests/ansi5.test: Call 'set -e' just after './defs' has been
565         sourced.
566         * tests/ansi6.test: Likewise.
567         * tests/ansi7.test: Likewise.
568         * tests/cond16.test: Likewise.
569         * tests/cond17.test: Likewise.
570         * tests/cond18.test: Likewise.
571         * tests/cond19.test: Likewise.
572         * tests/cond20.test: Likewise.
573         * tests/cond21.test: Likewise.
574         * tests/instdat2.test: Likewise.
575         * tests/instdir-texi.test: Likewise.
576         * tests/parallel-tests3.test: Likewise.
577         * tests/remake1a.test: Likewise.
578         * tests/ccnoco.test: Likewise, and add trailing `:' command.
579         * tests/comment4.test: Likewise.
580         * tests/gcj4.test: Likewise.
581         * tests/nodist2.test: Likewise.
582         * tests/nodist3.test: Enable 'errexit' shell flag (this should
583         have been done in commit v1.11-248-g317e17b, but the relevant
584         hunk has been forgotten somehow).
585         * tests/output.test: Likewise.
586         * tests/gnits2.test: Likewise, and display captured stderr to
587         script's stderr, not to script's stdout.
588         * tests/gnits3.test: Likewise.  Also, prefer 'cat' over 'echo'
589         to append to Makefile.am, and really check that the exit status
590         of "make installcheck" indicates failure.
591
592 2011-01-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
593
594         Sync auxiliary files from upstream.
595         * lib/config.guess, lib/config.sub, lib/texinfo.tex:
596         Sync from upstream.
597
598         Avoid caching bug in cygnus mode test.
599         * tests/cygnus-requires-maintainer-mode.test: Remove
600         autom4te.cache directory before rerunning aclocal, to
601         remove trace caches.
602
603         Fix maintainer-check regression.
604         * tests/subobj11a.test: Pass DISTCHECK_CONFIGURE_FLAGS in the
605         environment.
606
607         Bump copyright years.
608         * aclocal.in (write_aclocal, version): Bump copyright years.
609         * automake.in (gen_copyright, version): Likewise.
610         * doc/automake.texi: Likewise.
611
612 2010-12-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
613
614         * NEWS: Add missing blank line between two entries.
615
616 2010-12-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
617
618         Improve and extend tests `suffix*.test'.
619         * tests/suffix.test: Check that suffix rules for C compilation are
620         only included once.  Try also with a static library.
621         * tests/suffix2.test: Add a new grep to help potential debugging.
622         Do not run automake with the `--add-missing' options, since we
623         already create all the needed auxiliary files.  Try also *without*
624         the `no-dependencies' automake option.
625         * tests/suffix4.test: Make grepping of Makefile.in stricter.
626         * tests/suffix3.test: Rewritten to run also autoconf, ./configure
627         and make.
628         * tests/suffix5.test: Likewise.
629         * tests/suffix6.test: Fix botched recipe indentation (eight spaces
630         were used instead of a tabulation character).  Extend to check
631         that `.obj' is handled like `.$(OBJEXT)' (as is done for `.o').
632         Improved parsing & grepping of generated Makefile.in.  Other minor
633         fixes and improvements.
634         * tests/suffix10.test: Move some checks in Makefile.am.  Also run
635         "make all".
636         * tests/suffix12.test: Likewise, and account for VPATH issues in
637         weaker make implementations.
638         * tests/suffix11.test: Likewise.  Also, run "make distcheck", for
639         completeness, and related changes.
640         * tests/suffix8.test: Likewise.  Also, do not put `gcc' anymore
641         in $required.
642         * tests/suffix13.test: Do not use the `--force-missing' automake
643         option unnecessarily.
644         * tests/suffix6b.test: New test, semantic sister of `suffix6.test'.
645         * tests/suffix6c.test: Likewise.
646         * tests/Makefile.am (TESTS): Updated.
647
648 2010-12-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
649             Stefano Lattarini  <stefano.lattarini@gmail.com>
650
651         Work around a bug in file-inclusion mechanism of Solaris make.
652         * automake.in (handle_single_transform): In the name of the
653         dependency file: collapse multiple slash characters into a single
654         one.
655         * tests/subobj11a.test: New test.
656         * tests/subobj11b.test: Likewise.
657         * tests/subobj11c.test: Likewise.
658         * tests/depcomp8a.test: Likewise.
659         * tests/depcomp8b.test: Likewise.
660         * tests/Makefile.am (TESTS): Updated.
661         * NEWS: Updated.
662         Report by Stefano Lattarini, quick fix by Ralf Wildenhues, final
663         patch and tests by Stefano Lattarini.
664
665 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
666
667         Fix two spurious testsuite failures on IRIX 6.5.
668         * tests/suffix13.test (Makefile.am): Account for VPATH issues on
669         weaker make implementations (e.g. IRIX 6.5).
670         * tests/parallel-tests8.test: Likewise, plus a required related
671         change.
672         Reported by Ralf Wildenhues.  The bugs have been there from the
673         first versions of the affected test scripts.
674
675 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
676
677         docs: cygnus mode doesn't require AM_CYGWIN32 macro.
678         * doc/automake.texi (Cygnus): Mode 'cygnus' does not require
679         the AM_CYGWIN32 macro (and indeed hasn't required it since at
680         least commit Release-1-2-31-g3038064 "merged changes from
681         Cygnus" of 1997-08-25).
682
683 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
684
685         Add some tests on 'cygnus' mode.
686         * tests/clean2.test: Extend.
687         * tests/cygnus-check-without-all.test: New test.
688         * tests/cygnus-dependency-tracking.test: Likewise.
689         * tests/cygnus-distclean.test: Likewise.
690         * tests/cygnus-imply-foreign.test: Likewise.
691         * tests/cygnus-no-dist.test: Likewise.
692         * tests/cygnus-no-installinfo.test: Likewise.
693         * tests/cygnus-requires-maintainer-mode.test: Likewise.
694         * tests/Makefile.am (TESTS): Update.
695
696 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
697
698         Fix parallel testsuite run with Zsh.
699         This change deals with a Zsh incompatibility in the handling
700         of the special shell variable `$0' in sourced files; this
701         incompatibility used to cause utter breakage when the
702         Automake testsuite was run in parallel mode with Zsh as
703         the $(TEST_LOG_COMPILER).
704         For more information, please refer to the thread "Fix parallel
705         testsuite run with zsh" on automake-patches, dated 2010-12-22:
706          <http://lists.gnu.org/archive/html/automake-patches/2010-12/msg00135.html>
707         This change works around the problems described above for Zsh 4.3
708         or later, and offers better error messages (instead of random
709         failures) for earlier Zsh version.
710         * tests/README (Supported shells): When describing the manual
711         workaround about the Zsh incompatibility in the handling of `$0',
712         tell that it is now needed only with Zsh versions preceding 4.3.
713         Done also some minor rewordings.
714         * tests/defs-static.in ($argv0): New variable, offers a workaround
715         for the Zsh incompatibility in the handling of `$0'.
716         Abort if that variable cannot be correctly set (can happen only
717         in older Zsh version).
718         * tests/defs ($me): Define using `$argv0', not `$0'.
719
720 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
721
722         Tests defs: keep track of original $AUTOMAKE and $ACLOCAL values.
723         This is especially useful for tests which might want to run
724         automake and aclocal without additional flags and warnings.
725         * tests/defs-static.in ($original_ACLOCAL): New variable.
726         ($original_AUTOMAKE): Likewise.
727         * tests/help.test: Use them.
728         * tests/help2.test: Likewise.
729         * tests/help3.test: Likewise.
730         * tests/help4.test: Likewise.
731         From a suggestion by Ralf Wildenhues.
732
733 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
734
735         distlinksbrk.test: Work around botched "make -k".
736         * tests/distlinksbrk.test: Run "make" multiple times and grep
737         its output each time for a single error message, rather than
738         running "make -k" one single time and grepping its output for
739         all the expected error messages.  This should work around make
740         implementations with limited (broken?) `-k' support; for more
741         information, see these subthreads on the automake-patches list:
742           - 2010-11-15, "Testsuite failures on HP-UX 11.23",
743             <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00162.html>
744           - 2010-11-15, "Testsuite failures on IRIX 6.5",
745             <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00166.html>
746
747 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
748
749         Minor improvements to test 'amopts.test'.
750         * tests/amopts.test: Remove botched comment.  Make grepping of
751         automake stderr slighty stricter.  Add trailing `:' command.
752
753 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
754
755         backcompat6.test: avoid comments inside recipe commands.
756         * tests/backcompat6.test: Remove shell comments from makefile rule
757         commands, as they are not portable to (at least) Tru64 make.
758
759 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
760
761         man8.test: avoid comments inside recipe commands.
762         * tests/man8.test: Remove shell comments from makefile rule
763         commands, as they are not portable to (at least) Tru64 make.
764
765 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
766
767         Fix sed-related buglet in test "subdir5.test"
768         * tests/subdir5.test: Always terminate text passed to the
769         `i' sed command with a newline, to work around limitations
770         in e.g. older OpenBSD sed.
771
772 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
773
774         Fix spurious failures in tests on AC_CONFIG_AUX_DIR.
775         * tests/auxdir7.test: Do not try to needlessly overwrite the files
776         `install-sh' and `missing'.  This avoid spurious failures in "make
777         distcheck", when those files might be copied as read-only from the
778         `lib' directory.
779         * tests/auxdir8.test: Likewise.
780
781 2010-12-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
782
783         Make test 'posixsubst-script' portable to MinGW/MSYS.
784         * tests/posixsubst-script.test: Ensure that the generated dummy
785         scripts really start with a shebang line, to work around a
786         limitation of 'test -x' on MinGW/MSYS.
787         Reported by Ralf Wildenhues.
788
789         Improve comments in tests `posixsubst*.test'.
790         * tests/posixsubst-data.test: Improve comment explaining why we
791         try also empty match suffix.
792         * tests/posixsubst-extradist.test: Likewise.
793         * tests/posixsubst-ldadd.test: Likewise.
794         * tests/posixsubst-libraries.test: Likewise.
795         * tests/posixsubst-ltlibraries.test: Likewise.
796         * tests/posixsubst-programs.test: Likewise.
797         * tests/posixsubst-scripts.test: Likewise.
798         * tests/posixsubst-sources.test: Likewise.
799         * tests/posixsubst-tests.test: Likewise.
800         Suggested by Ralf Wildenhues.
801
802 2010-12-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
803
804         docs: fix blunder in example about python extension modules
805         * doc/automake.texi (Python): Use `quaternion_la_SOURCES',
806         not `quaternion_SOURCES', to declare the sources of python
807         extension module `quaternion.la'.
808
809 2010-12-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
810
811         docs: list LTLIBRARIES among Automake primaries
812         * doc/automake.texi (Uniform): List `LTLIBRARIES' among
813         the Automake primaries.
814
815 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
816             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
817
818         Tests defs: requirement 'xsi-shell' must be synced with libtool.
819         * tests/defs (xsi-shell): Add comment telling to keep the
820         XSI-conformance checks in sync with libtool.
821
822 2010-12-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
823
824         Minor cleanups in canon7.test.
825         * tests/canon7.test (_foo_bar_SOURCES): Remove libs.c.
826         (configure.in): Remove AC_PROG_CXX.
827
828 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
829
830         Avoid false positive in sc_tests_plain_make maintainer-check.
831         * Makefile.am (sc_tests_plain_make): Ensure to only match full
832         `make' words.  Avoid false positive with remake11.test.
833
834 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
835
836         Fix canon7.test failure.
837         * tests/canon7.test (_foo_bar_SOURCES): Add foobar.c.
838         (lib.h, libd.c, libs.c): Use const for constant strings.
839
840 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
841
842         Fix typos in test comments.
843         * tests/posixsubst-data.test, tests/posixsubst-extradist.test,
844         tests/posixsubst-ldadd.test, tests/posixsubst-libraries.test,
845         tests/posixsubst-ltlibraries.test, tests/posixsubst-programs.test,
846         tests/posixsubst-scripts.test, tests/posixsubst-sources.test,
847         tests/posixsubst-tests.test: Fix typos.
848
849 2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
850
851         More uses of AS_HELP_STRING in automake macros.
852         * m4/depend.m4 (AM_DEP_TRACK): Use `AS_HELP_STRING' to format
853         the help message added to the generated configure.
854         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise.
855         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
856         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
857         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
858         Also, bumped all serial numbers of the modified m4 files.
859
860 2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
861
862         Improve tests on generated portions of configure help screen.
863         * tests/help-depend.test: Grepping of configure help screen
864         relaxed to cater for possible line wrapping, and tightened in
865         other respects.
866         * tests/help-depend2.test: Likewise.
867         * tests/help-dmalloc.test: Likewise.
868         * tests/help-lispdir.test: Likewise.
869         * tests/help-maintainer.test: Likewise.
870         * tests/help-multilib.test: Likewise.
871         * tests/help-silent.test: Likewise.
872         * tests/help-upc.test: Likewise.
873         * tests/help-init.test: Grepping of configure help screen
874         tightened.
875
876 2010-12-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
877
878         Extended tests on AC_CONFIG_AUX_DIR.
879         * tests/auxdir.test: Enable `errexit' shell flag.  Prefer `$me'
880         over hard-coded test name.  Use proper m4 quoting.  Add trailing
881         `:' command.
882         * tests/auxdir2.test: Likewise.  Try to call automake also with
883         the `-a' option, so that it will not fail for spurious reasons.
884         * tests/auxdir3.test: Add an explanatory comment and a trailing
885         `:' command.
886         * tests/auxdir4.test: Prefer `$me' over hard-coded test name.
887         Make grepping of automake stderr slightly stricter.  Also, now
888         this test just checks about Automake's reaction to unportable
889         auxiliary directory names (and it has been extended in this
890         respect).  Moved the checks about non-existent auxiliary
891         directories to ...
892         * tests/auxdir5.test: ... this new test.
893         * tests/auxdir6.test: New test.
894         * tests/auxdir7.test: Likewise.
895         * tests/auxdir8.test: Likewise.
896         * tests/auxdir9.test: Likewise.
897         * tests/Makefile.am (TESTS): Updated.
898
899 2010-12-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
900
901         Tests: extend checks on remake rules.
902         This adds proper semantical tests (i.e. run make to check the
903         rebuild rules are correctly triggered) in addition to tentative
904         grepping of the generated Makefile.in(s).
905         * tests/remake.test: Enable `errexit' shell flag, and related
906         changes.  Modernize `configure.in'.  Add trailing `:' command.
907         Improve heading comments, and add a reference to new sister test
908         remake1a.test.
909         * tests/remake3.test: Likewise (but with sister test being
910         remake3a.test).
911         * tests/remake2.test: Improve heading comments.  Enable `errexit'
912         shell flag, and related changes.  Modernize `configure.in'.  Make
913         grepping of `Makefile.in' slightly stricter.  Add trailing `:'
914         command.
915         * tests/remake5.test: Also run the `distcheck' target.  Add
916         trailing `:' command.  Use proper m4 quoting in configure.in.
917         * tests/remake4.test: Prefer `$me' over hard-coded test name.
918         * tests/remake7.test: Use the `configure.in' stub created by
919         ./defs, rather than writing it from scratch.
920         * tests/remake6.test: Likewise.  Also, add trailing `:' command,
921         and ensure verbose printing of captured make output.
922         * tests/remake1a.test: New test, sister of remake.test.
923         * tests/remake3a.test: New test, sister of remake3.test.
924         * tests/remake8a.test: New test.
925         * tests/remake8b.test: Likewise.
926         * tests/remake9a.test: Likewise.
927         * tests/remake9b.test: Likewise.
928         * tests/remake9c.test: Likewise.
929         * tests/remake9d.test: Likewise.
930         * tests/remake10a.test: Likewise.
931         * tests/remake10b.test: Likewise.
932         * tests/remake10c.test: Likewise.
933         * tests/remake11.test: Likewise.
934         * tests/remake12.test: Likewise.
935         * tests/Makefile.am (TESTS): Updated.
936
937 2010-12-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
938
939         Improve and extend tests on canonicalization.
940         * tests/canon-name.test: Add trailing `:' command.  When writing
941         configure.in, prefer to use $me instead of hard-coding the test
942         name.
943         * tests/canon3.test: Prefer trailing `:' over trailing `Exit 0'.
944         * tests/canon4.test: Likewise.  Make grepping of Makefile.in
945         stricter.  Improve heading comment, and add reference to ...
946         * tests/canon6.test: ... this new test (sister test of the
947         previous one).
948         * tests/canon.test: Prefer cat + here-doc over echo to append
949         text to configure.in.  Extend grepping of Automake stderr.  Add
950         trailing `:' command.
951         * tests/canon5.test: Likewise.
952         * tests/canon7.test: New file, stress test on canonicalization.
953         * tests/canon8.test: New test, for better coverage (check that
954         the `@' character is not transliterated in canonicalizations).
955         * tests/Makefile.am: Updated.
956
957 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
958
959         Libobj tests: refer to automake bug tracker for limitations.
960         * tests/libobj15b.test (configure.in): In the comment explaining
961         why an apparently redundant AC_OUTPUT is indeed needed, refer
962         to the relevant entry in the Automake bug tracker rather than
963         describing the bug in detail with a FIXME-style comment.
964         * tests/libobj15c.test: Likewise.
965         * tests/libobj20b.test: Likewise.
966
967         Libobj tests: do not use `##' automake comments in-line.
968         * tests/libobj19.test (Makefile.am): Do not use inline `##'
969         comments in the definition of AUTOMAKE_OPTIONS.
970         * tests/libobj20c.test: Likewise.
971         Report by Ralf Wildenhues.
972
973 2010-12-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
974
975         Fix testsuite failure of check12.test without DejaGNU.
976         * tests/check12.test: Require runtest.
977
978 2010-12-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
979
980         Tests defs: more uses of $top_testsrcdir.
981         * tests/compile6.test: Use `$top_testsrcdir' instead of
982         `$testsrcdir/..'.
983
984 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
985
986         Tests required tools: also try `-v' option for GNU compilers.
987         * tests/defs.in: In the loop on "$required" tools, for gcc
988         and g++, also run "gcc -v" (resp. "g++ -v"), to get more
989         information, and for consistency with gcj.
990
991 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
992             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
993
994         Tests defs: avoid some useless subshells.
995         * tests/defs: In the loop on "$required" tools: avoid subshells
996         where not needed.
997
998 2010-12-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
999
1000         Extend tests on AC_LIBOBJ and friends.
1001         * tests/aclibobj.test: Removed, superseded by ...
1002         * tests/libobj-basic.test: ... this new test, which runs autoconf,
1003         ./configure and make, to ensure everything really works.
1004         * tests/libobj3.test: Add trailing `:' command.  Escape literal
1005         dot in grep regexp.
1006         * tests/libobj4.test: Enable `errexit' shell flag, and related
1007         changes.  Add trailing `:' command.  Use proper m4 quoting.
1008         * tests/ltlibobjs.test: Likewise.
1009         * tests/libobj5.test: Enable `errexit' shell flag, and related
1010         changes.  Add trailing `:' command.  Make more robust by using
1011         longer filenames to be grepped.
1012         * tests/libobj8.test: Enable `errexit' shell flag, and related
1013         changes.  Add trailing `:' command.  Use the configure.in
1014         stub provided by ./defs, rather than writing it from scratch.
1015         * tests/libobj2.test: Likewise.  Also, add calls to autoconf,
1016         ./configure and make, to ensure everything really works.
1017         * tests/libobj7.test: Likewise, and ensure that at least one
1018         function listed in AC_REPLACE_FUNCTIONS is truly replaced.
1019         * tests/libobj13.test: Make grepping of Automake stderr slightly
1020         stricter.  Add trailing `:' command.
1021         * tests/libobj12.test: Likewise.  Also, prefer "cat + here-doc"
1022         over "echo" to append to Makefile.am, and some cosmetic changes
1023         in spacing.
1024         * tests/libobj14.test: Call `Exit 1' if sourcing of ./defs fails.
1025         Slighty improve m4 quoting.  Add trailing `:' command.
1026         * tests/libobj10.test: Add calls to autoconf, ./configure and
1027         make, to ensure everything really works.  Also, remove tests that
1028         nonexistent source for AC_LIBOBJ cause an Automake failure: this
1029         is already checked by ...
1030         * tests/libobj15a.test: ... this new test.
1031         * tests/libobj15b.test: New test, sister test of libobj15a.test,
1032         checks AC_LIBSOURCE instead of AC_LIBOBJ.
1033         * tests/libobj15c.test: New test, sister test of libobj15a.test,
1034         checks AC_LIBSOURCES instead of AC_LIBOBJ.
1035         * tests/libobj11.test: Removed, superseded by ...
1036         * tests/libobj16a.test: ... this new test.
1037         * tests/libobj16b.test: New test, sister test of libobj16a.test,
1038         but using oldish/deprecated idioms.
1039         * tests/libobj17.test: New test.
1040         * tests/libobj18.test: Likewise.
1041         * tests/libobj19.test: Likewise.
1042         * tests/libobj20a.test: Likewise.
1043         * tests/libobj20b.test: Likewise.
1044         * tests/libobj20c.test: Likewise.
1045         * tests/Makefile.am (TESTS): Updated.
1046
1047 2010-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1048
1049         Test `$(var:suf=rpl)' expansion in special automake variables.
1050         * tests/posixsubst-data.test: New test.
1051         * tests/posixsubst-extradist.test: Likewise.
1052         * tests/posixsubst-ldadd.test: Likewise.
1053         * tests/posixsubst-libraries.test: Likewise.
1054         * tests/posixsubst-ltlibraries.test: Likewise.
1055         * tests/posixsubst-programs.test: Likewise.
1056         * tests/posixsubst-scripts.test: Likewise.
1057         * tests/posixsubst-sources.test: Likewise.
1058         * tests/posixsubst-tests.test: Likewise.
1059         * tests/Makefile.am (TESTS): Update.
1060
1061 2010-12-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1062
1063         Make tests `colon*.test' more "semantic".
1064         Prefer running configure and make over grepping the generated
1065         files; this is both more correct and less fragile.
1066         * tests/colon.test: Made more "semantic", as described above.
1067         * tests/colon5.test: Likewise.
1068         * tests/colon6.test: Likewise.
1069         * tests/colon7.test: Likewise.
1070         * tests/colon2.test: Likewise, and improve syncing with sister
1071         test `colon3.test'.
1072         * tests/colon3.test: Likewise (but with the sister test being
1073         `colon2.test' here).
1074
1075 2010-12-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1076
1077         Extend and improve tests on DejaGnu support.
1078         * tests/dejagnu.test: Do not create useless dummy test script.
1079         Add trailing `:' command.  In heading comments, add reference
1080         to ...
1081         * tests/check12.test: ... this new "semantic" test, covering
1082         concurrent use of dejagnu tests, simple tests and `check-local'
1083         target.
1084         * tests/dejagnu2.test: Make test more reliable, by avoid weak
1085         grepping of make output.  Prefer `cat' over `echo' to append
1086         to configure.in.  Quote literal dots in grep regexps.  Prefer
1087         `grep -c ...' over `grep ... | wc -l'.  Make grepping of
1088         automake stderr slightly stricter.  Add trailing `:' command.
1089         * tests/dejagnu3.test: Prefer `cat' over `echo' to append to
1090         configure.in.  Check stderr of expected-to-fail "make" call.
1091         Remove extra blank lines from Makefile.am.
1092         * tests/dejagnu4.test: Prefer `cat' over `echo' to append to
1093         configure.in.  Prefer `mv -f' over plain `mv' when the target
1094         file already exists.  Avoid extra mkdir calls by creating more
1095         directories at once.  Better use of blank lines.  Check that
1096         the `*.log' and `*.sum' files are created by runtest also when
1097         "make check" fails.
1098         * tests/dejagnu7.test: Prefer `cat' over `echo' to append to
1099         configure.in.  Better use of blank lines.  Add a trailing `:'
1100         command.
1101         * tests/dejagnu6.test: Likewise, and give the dejagnu test a
1102         more descriptive name.
1103         * tests/dejagnu5.test: Likewise.  Also, simply define package
1104         name to `$me' rather than using a non-obvious sed script to
1105         extract it from `AC_INIT', and write the Makefile.am with only
1106         one command.
1107         * tests/Makefile.am (TESTS): Updated.
1108
1109 2010-12-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1110
1111         Avoid running installed automake from 'libtool --help'.
1112         * tests/subobj9.test: Export AUTOCONF and AUTOMAKE.
1113         Together with fixed Libtool, this fixes check-coverage to not
1114         invoke installed automake.
1115
1116 2010-12-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
1117
1118         Separate checks on target overriding into multiple test scripts.
1119         * tests/overrid.test: Deleted, its contents separated into ...
1120         * tests/override-suggest-local.test: ... this new test ...
1121         * tests/override-html.test: ... and this new test ...
1122         * tests/override-conditional-1.test: ... and this new test ...
1123         * tests/override-conditional-2.test: ... and this new test (still
1124         xfailing).
1125         * tests/Makefile.am (TESTS, XFAIL_TESTS): Updated.
1126
1127         Enable `set -e' in more tests (plus some tweakings).
1128         * tests/implicit.test: Enable `errexit' shell flag, and related
1129         changes.  Add trailing `:' command.
1130         * tests/insh2.test: Likewise.
1131         * tests/instman2.test: Likewise.
1132         * tests/interp.test: Likewise.
1133         * tests/interp2.test: Likewise.
1134         * tests/library.test: Likewise.
1135         * tests/mclean.test: Likewise.
1136         * tests/info.test: Enable `errexit' shell flag, and related
1137         changes.  Add trailing `:' command.  Remove useless chaff from
1138         generated Makefile.am.  Add a "FIXME" comment.
1139         * tests/include.test: Enable `errexit' shell flag, and related
1140         changes.  Add trailing `:' command.  Prefer cat + here-doc over
1141         echo to append to configure.in.  Make tests more robust by using
1142         longer and less common names to grep.  Remove an useless call to
1143         echo.  Remove an useless subshell.
1144         * tests/header.test: Enable `errexit' shell flag, and related
1145         changes.  Use proper m4 quoting.  Add excerpts from the original
1146         report of the bug tested for by this script.
1147         * tests/gcj.test: Enable `errexit' shell flag, and related
1148         changes.  Use proper m4 quoting.  Add trailing `:' command.
1149         * tests/gcj3.test: Likewise.
1150         * tests/ldflags.test: Likewise.
1151         * tests/libtool.test: Likewise.
1152         * tests/listval.test: Likewise.
1153         * tests/javaprim.test: Likewise, and prefer cat + here-doc over
1154         echo to append to configure.in.
1155         * tests/javasubst.test: Likewise.
1156         * tests/discorver.test: Enable `errexit' shell flag.  Prefer
1157         trailing `:' over trailing `Exit 0'.
1158         * tests/instdat.test: Enable `errexit' shell flag, and related
1159         changes.  Use proper m4 quoting.  Avoid usless subshell.  Prefer
1160         cat + here-doc over echo to append to configure.in.
1161         * tests/libtool2.test: Enable `errexit' shell flag, and related
1162         changes.  Add trailing `:' command.  Use the configure.in
1163         stub provided by ./defs, rather than writing it from scratch.
1164
1165         Modernize, improve and/or tweak some test scripts.
1166         * tests/maintclean.test: Use proper m4 quoting.  Add trailing `:'
1167         command.
1168         * tests/sinclude.test: Likewise, and add a couple of blank lines,
1169         for clarity.
1170         * tests/make.test: Move setting of `errexit' shell flag earlier in
1171         the script (just after inclusion of ./defs).  Use the configure.in
1172         stub created by ./defs, rather than writing it from scratch.  Some
1173         cosmetic changes in spacing.  Ensure we wait enough time before
1174         touching configure.in to trigger the rebuild rules.
1175         * tests/makej.test: Use `$me' instead of hard-coding the test
1176         name.  Add trailing `:' command.
1177         * tests/version7.test: Likewise.
1178         * tests/space.test: Enable `errexit' shell flag, and related
1179         changes.
1180         * tests/makevars.test: Likewise.  Also, prefer trailing `:' over
1181         trailing `Exit 0', and be more tolerant of white spaces when
1182         grepping Makefile.in.
1183
1184 2010-12-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1185
1186         * tests/silent8.test: Use "|| Exit 1" after ". ./defs".
1187
1188         Enable `set -e' in more tests (plus some tweakings).
1189         * tests/mkinstall.test: Enable `errexit' shell flag, and related
1190         changes.  Add a trailing `:' command, if needed.
1191         * tests/mdate2.test: Likewise.
1192         * tests/objc.test: Likewise.
1193         * tests/noinst.test: Likewise.
1194         * tests/outdir.test: Likewise.
1195         * tests/number.test: Likewise.
1196         * tests/pluseq.test: Likewise.
1197         * tests/req.test: Likewise.
1198         * tests/rulepat.test: Likewise.
1199         * tests/specflg6.test: Likewise.
1200         * tests/spell3.test: Likewise.
1201         * tests/parse.test: Likewise, and ...
1202         (configure.in): Use the stub created by ./defs, rather than
1203         writing it from scratch.  Remove useless calls to AC_PROG_RANLIB
1204         and AC_OUTPUT.
1205         * tests/mdate4.test: Likewise.
1206         * tests/mkinstall.test: Likewise, and ...
1207         (configure.in): ... drop useless call to `AC_OUTPUT'.
1208         * tests/output.test: Enable `errexit' shell flag, and related
1209         changes.  Add a trailing `:' command.
1210         (configure.in): Modernize.
1211         * tests/output2.test: Likewise.
1212         * tests/output3.test: Likewise.
1213         * tests/output4.test: Likewise.
1214         * tests/mdate3.test: Enable `errexit' shell flag, and related
1215         changes.  Prefer `$me' over hard-coded test name.  Do not move
1216         non-existent or useless files in the build auxiliary directory.
1217         * tests/nodistdir.test: Enable `errexit' shell flag, and related
1218         changes.  Prefer trailing `:' over trailing `Exit 0'.
1219         * tests/nodist.test: Likewise.  Also, prefer cat + here-doc over
1220         echo to create input test files, and do not create useless dummy
1221         C source files.
1222         * tests/nodist2.test: Likewise.
1223         * tests/ppf77.test: Enable `errexit' shell flag, with related
1224         changes.  Add a trailing `:' command.  Do not create useless
1225         dummy source files.
1226         * tests/spelling.test: Enable `errexit' shell flag, with related
1227         changes.  Add a trailing `:' command.  Also, grep Automake error
1228         message.
1229         * tests/specflg3.test: Enable `errexit' shell flag, with related
1230         changes.  Avoid unportable use of `-e' option of fgrep.  Prefer
1231         trailing `:' over trailing `Exit 0'.  Remove extra empty lines,
1232         and cosmetic changes to whitespaces.
1233         * tests/obsolete.test: Enable `errexit' shell flag, with related
1234         changes.  Improve verbosity.  Other miscellanous changes.
1235
1236 2010-11-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
1237
1238         Improve and extend tests on `:=' variable assignments.
1239         * tests/colneq.test: Avoid redundant use of variable assignments
1240         in Makefile.am.  Use command-line automake options instead of
1241         editing AUTOMAKE_OPTIONS in Makefile.am.  Make grepping of the
1242         generated Makefile.in slightly stricter.  Add a trailing `:'
1243         command.
1244         * tests/colneq2.test: Do not create unneeded dummy files.  Run
1245         also autoconf, ./configure and make.  Add trailing `:' command.
1246         * tests/colneq3.test: New test, similar to colneq.test, but
1247         running also autoconf, ./configure and make.
1248         * tests/Makefile.am (TESTS): Update.
1249
1250 2010-11-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1251
1252         Remove long-deprecated options --Werror and --Wno-error.
1253         These options has been deprecated at least since commit
1254         "Release-1-6-1b-35-gc037f20", dated 2002-07-06.
1255         * automake.in (parse_arguments): Do not recognize anymore options
1256         `--Werror' and `--Wno-error' as synonyms of respectively `-Werror'
1257         and `-Wno-error'.
1258         * tests/werror.test: Update: use `-Werror' instead of `--Werror'.
1259         * NEWS: Update.
1260
1261 2010-11-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
1262
1263         Fix spurious failures in `silent*.test' for $CC != gcc
1264         In some tests on automake-produced silent rules, we forced the
1265         use of gcc depmode to improve testsuite coverage; but this has
1266         unsurprisingly led to spurious failures when some non-GNU C
1267         compilers were used.  So we are now careful to require GCC in
1268         tests that force gcc depmode.
1269         From reports by Ralf Wildenhues.
1270         * silent5.test: Test removed, its content split into ...
1271         * silent-many-generic.test, silent-many-gcc.test: ... these new
1272         sister tests, the latter of which forces gcc depmode and lists
1273         "gcc" in $required.
1274         * silentlex.test: Test removed, its content split into ...
1275         * silent-lex-generic.test, silent-lex-gcc.test: ... these new
1276         sister tests, the latter of which forces gcc depmode and lists
1277         "gcc" in $required.
1278         * silentyacc.test: Test removed, its content split into ...
1279         * silent-yacc-generic.test, silent-yacc-gcc.test: ... these new
1280         sister tests, the latter of which forces gcc depmode and lists
1281         "gcc" in $required.
1282         * tests/Makefile.am (TESTS): Updated.
1283
1284 2010-11-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1285
1286         Tests: consistently use "|| Exit 1" after ". ./defs".
1287         * tests/autohdr.test: Use `. ./defs || Exit 1', not bare
1288         `. ./defs', for consistency with other tests.
1289         * tests/autohdr2.test: Likewise.
1290         * tests/autohdr3.test: Likewise.
1291         * tests/autohdr4.test: Likewise.
1292         * tests/cond23.test: Likewise.
1293         * tests/cond24.test: Likewise.
1294         * tests/cond25.test: Likewise.
1295         * tests/cond26.test: Likewise.
1296         * tests/cond27.test: Likewise.
1297         * tests/cond28.test: Likewise.
1298         * tests/cond29.test: Likewise.
1299         * tests/cond30.test: Likewise.
1300         * tests/cond31.test: Likewise.
1301         * tests/cond32.test: Likewise.
1302         * tests/cond33.test: Likewise.
1303         * tests/cond34.test: Likewise.
1304         * tests/cond35.test: Likewise.
1305         * tests/cond36.test: Likewise.
1306         * tests/cond37.test: Likewise.
1307         * tests/cond38.test: Likewise.
1308         * tests/cond39.test: Likewise.
1309         * tests/cond40.test: Likewise.
1310         * tests/cond41.test: Likewise.
1311         * tests/cond42.test: Likewise.
1312         * tests/cond43.test: Likewise.
1313         * tests/cond44.test: Likewise.
1314         * tests/cond45.test: Likewise.
1315         * tests/dollarvar.test: Likewise.
1316         * tests/dollarvar2.test: Likewise.
1317         * tests/hfs.test: Likewise.
1318         * tests/libobj14.test: Likewise.
1319         * tests/percent.test: Likewise.
1320         * tests/percent2.test: Likewise.
1321         * tests/phony.test: Likewise.
1322         * tests/silent.test: Likewise.
1323         * tests/silent2.test: Likewise.
1324         * tests/silent3.test: Likewise.
1325         * tests/silent4.test: Likewise.
1326         * tests/silent5.test: Likewise.
1327         * tests/silent6.test: Likewise.
1328         * tests/silent7.test: Likewise.
1329         * tests/silent9.test: Likewise.
1330         * tests/silentcxx.test: Likewise.
1331         * tests/silentf77.test: Likewise.
1332         * tests/silentf90.test: Likewise.
1333         * tests/silentlex.test: Likewise.
1334         * tests/silentyacc.test: Likewise.
1335
1336         Avoid useless cleaning in some `silent*.test' tests.
1337         * tests/silentf77.test: Removed useless calls to "make clean"
1338         and "make maintainer-clean".
1339         * tests/silentf90.test: Likewise.
1340         * tests/silent3.test: Removed useless call to "make distclean".
1341         * tests/silent4.test: Likewise.
1342         * tests/silent9.test: Likewise.
1343
1344 2010-11-19  Ian Lance Taylor  <iant@google.com>
1345
1346         Sync config-ml.in from GCC.
1347         * config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
1348         compiler/flag environment variables.
1349
1350 2010-11-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1351
1352         release-stats: account for more generated tests.
1353         * Makefile.am (release-stats): Be sure to take into account all
1354         the generated tests, by grepping the test scripts to decide which
1355         ones of them are automatically generated.
1356
1357 2010-11-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1358
1359         Code cleanup after removal of option `--output-directory'.
1360         * automake.in ($output_directory): Remove, it's unconditionally
1361         defined to `.' and used only ...
1362         (generate_makefile): ... in this subroutine, which now has been
1363         edited and simplified accordingly.
1364
1365         Remove obsolete automake option `--output-directory'.
1366         This option has been deprecated since version 1.7 (2002/2003).
1367         * automake.in ($output_directory): Define to `.' unconditionally.
1368         (parse_arguments): Remove handling of equivalent options `-o' and
1369         `--output-directory'.
1370         * tests/outdir.test: Removed.
1371         * tests/no-outdir-option.test: New test.
1372         * tests/Makefile.am (TESTS): Updated.
1373         * NEWS: Updated.
1374
1375 2010-11-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1376
1377         Automake::Config: remove extra trailing semicolon.
1378         * lib/Automake/Config.in: Remove extra trailing semicolon.
1379
1380         help4.test: fix botched heading comment.
1381         * tests/help4.test: Fixed the heading comment, since it
1382         didn't correctly describe what checks the testcase was
1383         supposed to perform.
1384
1385         help2.test: add checks on aclocal too.
1386         * tests/help2.test: Check that also `aclocal --version' and
1387         `aclocal --help' work with configure.in and acinclude.m4 both
1388         broken.
1389
1390 2010-11-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1391
1392         New test on repeated automake options.
1393         * tests/repeated-options.test: New test, check that automake
1394         does not complain on repeated options, nor generate broken or
1395         incorrect makefiles.
1396         * tests/Makefile.am (TESTS): Updated.
1397
1398 2010-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1399
1400         Fix spurious failures of silent-rules tests with Sun Fortran.
1401         * tests/silentf77.test: Strip from the make output some verbose
1402         messages possibly printed by the SunStudio fortran compilers, to
1403         avoid spurious failures.  Add a trailing `:' command.
1404         * tests/silentf90.test: Likewise.
1405
1406 2010-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1407
1408         Fix spurious failures of silent5.test with Sun Fortran.
1409         * tests/silent5.test: Strip from the make output some verbose
1410         messages possibly printed by the SunStudio fortran compilers,
1411         to avoid spurious failures.  This bug has been there from the
1412         very first version of this test script.
1413
1414 2010-11-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1415
1416         Fix regression in colon{5,6}.test (failures on AIX 5.3).
1417         * tests/colon5.test: Also substitute `@SHELL@' with `$SHELL' when
1418         post-processing the generated Makefile.in, to work around a bug
1419         of AIX 5.3 make which doesn't allow setting the `$(SHELL)' macro
1420         on the commend line.  Calls to `$MAKE' adjusted accordingly.
1421         * tests/colon6.test: Likewise.
1422         Regression introduced in commit v1.11-175-gf9fe878 "Modernize,
1423         improve and/or extend tests `colon*.test", and reported by Ralf
1424         Wildenhues.
1425
1426 2010-11-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1427
1428         Fix regression in ansi.test (failure on AIX 5.3).
1429         * tests/ansi.test: Remove redundant hackish check done using a
1430         hand-postprocessed Makefile.in.  This check worked by setting
1431         the `$(SHELL)' macro on the command line of make, but this is
1432         not supported by the AIX 5.3 make implementation.
1433         This bug has been lurking for a long time, and was activated by
1434         commit v1.11-125-gc1f6cdb "Enable `errexit' shell flag in various
1435         tests".  Report by Ralf Wildenhues.
1436
1437 2010-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1438
1439         backcompat5.test: avoid '##'-style comments inside recipe commands.
1440         * tests/backcompat5.test: Remove double-hash comments
1441         from makefile rule commands, they are not part of the
1442         Automake API.  Fixes testsuite failure with Tru64 make.
1443
1444         tests: avoid '##'-style comments inside recipe commands.
1445         * tests/confh.test, tests/confh8.test: Remove
1446         double-hash comments from makefile rule commands, they
1447         are not part of the Automake API.
1448
1449 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1450
1451         tests: work around dash quoting issue in case statements.
1452         * tests/color.test, tests/color2.test: Quote variable in case
1453         pattern, to avoid skipping tests with dash 0.5.5.1.
1454
1455 2010-11-16  Peter Rosin  <peda@lysator.liu.se>
1456
1457         Skip MSVC oriented tests if the shell is not capable.
1458         * tests/defs: New required entry 'xsi-shell'.
1459         * tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
1460         Require a XSI capable shell.
1461         Reported by Ralf Wildenhues.
1462
1463 2010-11-15  Peter Rosin  <peda@lysator.liu.se>
1464
1465         compile: clear the `eat' variable earlier.
1466         * lib/compile: Clear the `eat' variable earlier.
1467         ($scriptversion): Update.
1468         * tests/compile3.test: Prevent regressions.
1469
1470 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1471
1472         More stable configure output from sanity check.
1473         * m4/sanity.m4 (AM_SANITY_CHECK): Always print check line
1474         about ensuring newer files, even if we don't actually need
1475         to wait any more.
1476
1477 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1478
1479         Rebuild menus in the manual.
1480         * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
1481         Thanks to Ian Lance Taylor for the suggestion.
1482
1483         Fix install-strip when $(STRIP) contains several words.
1484         * lib/am/install.am (install-strip): Update comment.  Use
1485         separate sub-make invocations for empty and nonempty $(STRIP),
1486         to fix quoting issues.
1487         * tests/strip2.test, tests/strip3.test: New tests.
1488         * tests/Makefile.am (TESTS): Adjust.
1489
1490 2010-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1491
1492         Fix yaccdry.test failure: require bison.
1493         * tests/yaccdry.test: Require bison.
1494         Found by NixOS Hydra.
1495
1496 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1497
1498         Fix bug in test `backcompat6.test' (MSYS portability).
1499         * tests/backcompat6.test (Makefile.am): Grep the output from the
1500         test program, rather than diffing it, to avoid spurious failures
1501         on MinGW/MSYS due to LF vs. CRLF line endings.
1502         Reported by Ralf Wildenhues.
1503
1504 2010-11-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1505
1506         Deprecate obsolete macro AM_WITH_REGEX.
1507         * m4/regex.m4: Document the `AM_WITH_REGEX' macro as obsolete,
1508         and state that it should be removed two years from now.
1509         (AM_WITH_REGEX): Raise an m4-time warning of the "obsolete"
1510         category when this macro is used.
1511         * doc/automake.texi (Public Macros): Move description of
1512         `AM_WITH_REGEX' from here ...
1513         (Obsolete Macros): ... to here, and declare it as obsolete
1514         and "to be removed in a future version".
1515         * tests/regex-obsolete.test: New test.
1516         * tests/Makefile.am (TESTS): Update.
1517
1518 2010-11-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1519
1520         Improve and extend tests on man pages support.
1521         * tests/man.test: Enable `errexit' shell flag, and related changes.
1522         Make grepping of generated Makefile.in slightly stricter.
1523         * tests/man3.test:  Add trailing `:' command.
1524         * tests/man5.test: Prefer cat + here-doc over echo to append to
1525         configure.in.
1526         * tests/man2.test: Likewise, and add trailing `:' command.
1527         * tests/man4.test: More thorough and consistent checking of make
1528         error messages.  Place fake `help2man' program in a new `bin'
1529         directory rather than in `.'.  Move the checks using the real
1530         `help2man' program to ...
1531         * tests/man6.test: ... this new test, and extend them.  This test
1532         passes with GNU make and Solaris make, still fails with BSD make.
1533         * tests/man7.test: New test, extracted from old man4.test, which
1534         checks for a bug in maintainer-clean w.r.t. generated manpages.
1535         * tests/man8.test: New test, extracted from old man4.test, which
1536         checks for a bug in distcheck w.r.t. generated manpages.  Passes
1537         with GNU make and Solaris make, still fails with BSD make.
1538
1539 2010-11-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1540
1541         Minor improvements and extensions to various tests.
1542         * tests/defun.test: Also run autoconf and grep the generated
1543         configure to make sure that aclocal truly picks up all the
1544         required macros.
1545         * tests/compile_f_c_cxx.test: Prefer trailing `:' over trailing
1546         `Exit 0'.  Do not create useless dummy source files.  Do not set
1547         useless `$(foo_LDADD)' variable in `Makefile.am'.  Do not call
1548         useless macro `AC_F77_LIBRARY_LDFLAGS' in `configure.in'.
1549         * tests/compile_f90_c_cxx.test: Likewise.
1550         * tests/suffix10.test: Slightly stricter grepping of make output.
1551         * tests/compile.test: Add trailing `:' command.
1552         * tests/defun2.test: Likewise.
1553         * tests/vars3.test: Likewise.
1554         * tests/vartar.test: Likewise.
1555         * tests/vars.test: Likewise.  Also, extend test by checking
1556         that the definition of `MY_FLAGS*' variables is preserved in
1557         the generated `Makefile.in'.
1558         * tests/stamph2.test: Prefer trailing `:' over trailing `Exit 0'.
1559         Use proper m4 quoting in `configure.in'.
1560
1561 2010-11-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
1562
1563         Tests defs: improve messages for skipped tests.
1564         * tests/defs: Give meaningful messages about the reasons of a
1565         test skip; this is especially useful as this file is run without
1566         verbose xtraces on.  Related reorderings in the code and new
1567         comments.
1568
1569 2010-11-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1570
1571         Tests defs: move static definitions in a new file `defs-static'.
1572         The new file is meant to be idempotent w.r.t. multiple inclusions.
1573         * tests/defs.in: Removed, its contents split among ...
1574         * tests/defs-static.in: ... this new file ...
1575         * tests/defs: ... and this new file, including the former.
1576         * configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
1577         `tests/defs-static'.
1578         (AC_CONFIG_LINKS): Add `tests/defs'.
1579         * tests/Makefile.am ($(parallel_tests)): Update.
1580         ($(instspc_tests)): Likewise.
1581         * tests/.gitignore: Update.
1582
1583         Tests defs: $testsbuilddir is now AC_SUBST'ed.
1584         * tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
1585         Add sanity check on $testsbuilddir, similar to those on
1586         $testsrcdir and $top_testsrcdir.
1587
1588         Tests defs: do not print message "Running test $0" anymore.
1589         * tests/defs.in: Printing the message "=== Running test $0" at
1590         the beginning of each tests made sense when Automake used the old
1591         test-driver, which sent all the output directly to stdout/stderr.
1592         Now that the parallel test-driver is used, which saves output of
1593         each test in its corresponding log file, that old message is just
1594         useless noise.
1595
1596         Tests defs: rename $curdir -> $testbuilddir
1597         * tests/defs.in: Rename $curdir to $testbuildir, for clarity and
1598         consistency with $testsrcdir and $top_testsrcdir.
1599
1600         Tests defs: prefer "$curdir" over "`pwd`".
1601         * tests/defs.in: We already save the value of `pwd` in $curdir
1602         early in the file, so there no need to recalculate it later, when
1603         the current working directory is not changed.
1604
1605         Tests defs: use `$me' in more error messages.
1606         * tests/defs.in: Also use `$me' in error messages referring to
1607         missing `defs' or `defs.in', since that variable is now defined
1608         before those checks.
1609
1610         Tests defs: do not use `Exit' where plain `exit' suffices.
1611         * tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the
1612         test when required libtool/gettext macros are not found, since
1613         such skips would take place before the exit trap is installed.
1614
1615         Tests defs: improve and extends comments.
1616         * tests/defs.in: Improve and extends some comments, especially in
1617         relation with the changes introduced by the previous reordering.
1618
1619         Tests defs: various reorderings.
1620         * tests/defs.in: Reordered various snippets of code in a
1621         clearer way.
1622
1623 2010-11-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
1624
1625         Fix bug in test `backcompat4.test' (stale autom4te cache).
1626         * tests/backcompat4.test: Remove stale autom4te cache directory
1627         before re-running aclocal and automake.  Also, since we are at
1628         it, be more verbose in displaying contents of generated files,
1629         to ease debuggability.
1630         Reported by Ralf Wildenhues.
1631
1632 2010-11-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1633
1634         Fix a bug in variable concatenation with `+='.
1635         * lib/Automake/VarDef.pm (append): Since the content of the
1636         "appended-to" variable is going to be unconditionally normalized
1637         later, simply separate the appended value with a single whitespace
1638         character, instead of trying to be uselessly smarter by using
1639         escaped newlines.  This fixes a bug in which extra backslashes
1640         where erroneously inserted in the variable's final value.
1641         * tests/pluseq11.test: New test, exposing the bug.
1642         * tests/Makefile.am (TESTS): Update.
1643         Reported by Andy Wingo.
1644
1645 2010-11-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1646
1647         Modernize, improve and/or tweak various test scripts.
1648         * tests/stamph2.test: Improve m4 quoting in `configure.in', and
1649         prefer trailing `:' over trailing `Exit 0'.
1650         * tests/syntax.test: Escape literal dots in grep regexps.
1651         * tests/copy.test: Enable `errexit' shell flag.  Extend test by
1652         checking with `test' utility that the script `install-sh' is
1653         copied, but not symlinked.
1654         * tests/depdist.test: Move setting of `errexit' shell flag earlier
1655         in the script (just after inclusion of ./defs).  Avoid obsoleted
1656         constructs in generated `configure.in'.  Prefer to do our checks
1657         by running configure and make over grepping Makefile.in.
1658         * tests/target-cflags: Move setting of `errexit' shell flag
1659         earlier in the script (just after inclusion of ./defs). Use the
1660         `configure.in' stub created by `./defs', rather than writing it
1661         from scratch.
1662         * tests/target-clash: Do not uselessly run autoconf.
1663         * tests/ctarget1.test: Renamed ...
1664         * tests/cond-basic.test: ... to this.  Use the `configure.in' stub
1665         created by `./defs', rather than writing it from scratch.
1666         Move setting of `errexit' shell flag earlier in the script (just
1667         after inclusion of ./defs).  Other minor cosmetic changes.
1668         * tests/Makefile.am (TESTS): Updated.
1669
1670 2010-11-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
1671
1672         New tests on obsoleted usages of automake/autoconf macros (such
1673         as AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
1674         * tests/backcompat.test: New test script.
1675         * tests/backcompat2.test: Likewise.
1676         * tests/backcompat3.test: Likewise.
1677         * tests/backcompat4.test: Likewise.
1678         * tests/backcompat5.test: Likewise.
1679         * tests/backcompat6.test: Likewise.
1680         * tests/init.test: Extended and improved, esp. by trying more
1681         combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
1682         arguments.
1683         * tests/Makefile.am (TESTS): Updated.
1684
1685 2010-11-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
1686
1687         Fix bug in rules for creating vala vapi/header files.
1688         * automake.in (lang_vala_finish_target): Add forgotten "fi" in an
1689         if control structure in a generated make rules.  Bug introduced
1690         by previous commit `v1.11-221-gd7c1679', and revealed by failure
1691         of test `vala2.test'.
1692
1693 2010-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1694
1695         Fix and document rules to not touch the tree with `make -n'.
1696         * doc/automake.texi (Multiple Outputs): Document the problem of
1697         modifications during dry-run execution, propose solution.
1698         * NEWS: Update.
1699         * automake.in (lang_vala_finish_target): Split recipe so the
1700         stamp file is not removed with GNU `make -n'.
1701         (lang_yacc_target_hook): Separate removal of parser output file
1702         and header remaking.
1703         * lib/am/lisp.am ($(am__ELCFILES)): Determine whether -n was
1704         passed to make, take care not to remove any files in that case.
1705         * lib/am/remake-hdr.am (%CONFIG_H%): Separate removal of
1706         %STAMP% file from induced remaking of config header.
1707         * tests/autohdrdry.test, tests/lispdry.test, tests/yaccdry.test:
1708         New tests.
1709         * tests/Makefile.am (TESTS): Update.
1710
1711 2010-11-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
1712
1713         Fix potential bug in generated tests `instpc-*.test'.
1714         This bug is due to the changes introduced by the recently-merged
1715         "tests-init" branch.  In that branch, `tests/defs' didn't define
1716         anymore `$srcdir', instead defining directly `$testsrcdir'; but
1717         the generated tests were using `$srcdir', hence the bug.
1718         Luckily, since the Automake parallel test driver automatically
1719         exports `srcdir' to a proper value, that prevented the bug from
1720         manifesting itself.
1721         * tests/Makefile.am ($(instspc_tests)): In the generated test
1722         scripts, use `$testsrcdir', not `$srcdir'.
1723
1724 2010-11-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
1725
1726         Overhauled and modularized tests in `instspc.test'.
1727         The test `instspc.test' was way too big and fragile.  Its running
1728         time was very long.  It also produced a log that was nearly
1729         unreadable due to its length, making it very difficult to find
1730         out the reason for failures.
1731         Also, it was too much monolithic, with a single (maybe spurious)
1732         failure in a corner case causing the whole test to fail (even if
1733         everything worked as expected in the other 99% of cases).
1734         The present change should solve these problems, by separating
1735         `instspc.test' into many smaller, self-contained, auto-generated
1736         tests.
1737         * tests/instspc.test: Removed.
1738         * tests/instspc-tests.sh: New script, fulfilling a double role:
1739         1. it generates a Makefile.am snippet `tests/instspc-tests.am',
1740         containing the definition of a list of new tests which will take
1741         over the older `instspc.test', and
1742         2. it is sourced by said generated tests with proper parameters
1743         pre-set, to run the "meat" of the checks.
1744         This apparent abuse is indeed required because the test generation
1745         code and test execution code are inevitably intertwined.
1746         * tests/Makefile.am ($(srcdir)/instspc-tests.am): Include this
1747         snippet, which (among the other things) defines ...
1748         (instspc_tests): ... this new macro, containing the list of the
1749         newly generated `instspc*.test' tests, and ...
1750         (instspc_xfail_tests): ... this new macro, containing the list
1751         of the `instspc*.test' tests expected to fail.
1752         ($(instspc_tests)): New rule, generates the `instspc*.test' tests.
1753         ($(instspc_tests:.test=.log)): New rule, registers the dependency
1754         of all `instspc*.test' tests on the `instspc-tests.sh' script.
1755         (TESTS): Add `$(instspc_tests)', remove `instspc.test'.
1756         (XFAIL_TESTS): Add `$(xfail_instspc_tests)'.
1757         (EXTRA_DIST): Distribute instspc-tests.sh.
1758         (MAINTAINERCLEANFILES): Added $(instspc_tests).
1759         Other minor cosmetic changes.
1760         * bootstrap: Generate instspc-tests.am.
1761         * tests/.gitignore: Updated.
1762
1763 2010-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1764
1765         Add FAQ entry for bug reporting instructions.
1766         * doc/automake.texi (Reporting Bugs): New section.
1767         (Introduction): Refer to it.
1768
1769 2010-10-07  Peter Rosin  <peda@lysator.liu.se>
1770
1771         depcomp: add new one-pass depmode for MSVC 7 and later.
1772         * lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
1773         make use of the -showIncludes option added in MSVC 7.
1774         * m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
1775         similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
1776         support the -o option.
1777
1778 2010-10-05  Jim Meyering  <meyering@redhat.com>
1779
1780         dist-xz, dist-bzip2: don't hard-code -9: honor envvar settings
1781         * lib/am/distdir.am (dist-xz): Do not hard-code xz's -9: that
1782         made it impossible to override.  Instead, use its XZ_OPT envvar,
1783         defaulting to -9 if not defined.  Thus no change in behavior
1784         when XZ_OPT is not set, and now, this rule honors the setting
1785         of that envvar when it is set.  Suggested by Lasse Collin.
1786         (dist-bzip2): Likewise for it's corresponding envvar: BZIP2.
1787         * NEWS (Miscellaneous changes): Mention it.
1788         * doc/automake.texi (The Types of Distributions): Describe the
1789         newly enabled environment variables.
1790
1791 2010-10-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1792
1793         Add support for newer python versions.
1794         * m4/python.m4 (AM_PATH_PYTHON): Add python2.7 and python3.2 to
1795         _AM_PYTHON_INTERPRETER_LIST.  Since we are at it, break a long
1796         line and fix indentation.
1797         * THANKS: Updated.
1798         From a report by Thomas Klausner.
1799
1800         Add test for `AM_WITH_DMALLOC' macro.
1801         * tests/dmalloc.test: New test.
1802         * tests/Makefile.am (TESTS): Update.
1803
1804         Fix nits and bugs in tests `help*.test'.
1805         * tests/help4.test: Fix broken sed commands used to strip `-W...'
1806         flags away from "$AUTOMAKE" and "$ACLOCAL".
1807         * tests/help3.test: Likewise, and fix a botched comment.
1808         * tests/help.test: Likewise.  Also, use "AUTOMAKE_fails ..."
1809         instead of "$AUTOMAKE ... && Exit 1", for consistency and to
1810         please maintainer-check.
1811         * tests/help2.test: Likewise.
1812
1813 2010-10-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
1814             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1815
1816         Improve tests `help*.test' (also fixes maintcheck failures).
1817         * tests/help.test: To run automake, use `$AUTOMAKE' with all `-W'
1818         flags stripped away rather than hard-coded `automake-$APIVERSION',
1819         to better honour user-overrides.  Similarly for aclocal.
1820         * tests/help2.test: Likewise.
1821         * tests/help3.test: Likewise.
1822         * tests/help4.test: Likewise.
1823
1824 2010-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1825
1826         tests: fix ar-lib.test for echo that interprets backslashes.
1827         * tests/ar-lib.test: Use printf instead of echo.  Avoid test -a.
1828         More robust quoting.
1829
1830 2010-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1831
1832         maintainer-check coverage for variables before rules.
1833         * Makefile.am (sc_ensure_testsuite_has_run): Suggest keeping
1834         around the test directories.
1835         (sc_tests_makefile_variable_order): New rule with a heuristic to
1836         catch ordering violations.
1837
1838         Document and fix expansion of variables before rules.
1839         * doc/automake.texi (General Operation): Document that variables
1840         are expanded before rules.
1841         * lib/am/check.am (am__check_post): Reword a bit so it does not
1842         get matched as a rule.
1843         Suggestion by Ben Pfaff.
1844
1845 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1846
1847         Coverage and minor fixes for variable typo detection.
1848         * automake.in (check_typos): Remove `EXTRA_' prefix when
1849         computing canonical name.
1850         * tests/vartypo2.test, tests/vartypos.test: New tests.
1851         * tests/Makefile.am (TESTS): Update.
1852
1853         Implement EXTRA_maude_DEPENDENCIES for programs and libraries.
1854         * automake.in (handle_programs, handle_libraries)
1855         (handle_ltlibraries): Mark EXTRA_*_DEPENDENCIES as recognized.
1856         * doc/automake.texi (Linking, Program and Library Variables)
1857         (LIBOBJS): Document EXTRA_*_DEPENDENCIES.
1858         * lib/am/library.am (%LIBRARY%): Also depend on
1859         $(EXTRA_%XLIBRARY%_DEPENDENCIES).
1860         * lib/am/ltlibrary.am (%LTLIBRARY%): Also depend on
1861         (%XLTLIBRARY%_DEPENDENCIES).
1862         * lib/am/program.am (%PROGRAM%%EXEEXT%): Also depend on
1863         $(EXTRA_%XPROGRAM%_DEPENDENCIES).
1864         * tests/extradep.test, tests/extradep2.test: New tests.
1865         * tests/Makefile.am (TESTS): Update.
1866         * NEWS: Update.
1867         Suggested by Eric Blake.
1868
1869         tests: avoid running into timing issues due to sanity change.
1870         * tests/acloca10.test, tests/acloca18.test, tests/aclocal9.test:
1871         Insert strategic sleep before aclocal reruns, to ensure files
1872         are newer.
1873         * tests/python11.test: Use --force for repeated autotools runs.
1874         Reports from the NixOS Hydra build daemon via Ludovic Courtès.
1875
1876         Fix timestamp issues by ensuring configure takes at least a second.
1877         * m4/sanity.m4 (AM_SANITY_CHECK): If we didn't sleep here,
1878         start a sleep in the background and wait for it to finish
1879         before creating config.status, hopefully fixing all spurious
1880         testsuite failures involving botched time stamps.
1881         * NEWS: Update.
1882         Reports by Ludovic Courtès, Peter Breitenlohner, and others.
1883
1884 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1885
1886         Revert "parallel-tests: avoid command-line length limit issue."
1887         This reverts commit 24e3b4ee2f8cb9f72dd94a05a893f3d4e88b7835,
1888         because it re-opened the bug fixed by v1.11-10-g218e678.
1889
1890         2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1891
1892         parallel-tests: avoid command-line length limit issue.
1893         * automake.in (handle_tests): New argument $makefile, new
1894         substitution %MAKEFILE%.
1895         (generate_makefile): Adjust.
1896         * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
1897         sanitized TEST_LOGS value as makefile snippet on standard
1898         input to $(MAKE), to avoid exceeding the command line limit on
1899         w32 (MSYS).
1900         * NEWS: Update.
1901         Report by Bob Friesenhahn.
1902
1903 2010-09-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1904
1905         Extend tests on `--help' and `--version' options.
1906         * tests/help.test: Create a new empty directory and chdir into
1907         it, rather than removing already present files.  Run the aclocal
1908         and automake wrapper scripts directly, instead of relying on
1909         $AUTOMAKE and $ACLOCAL.  Be sure to correctly match literal dots
1910         in aclocal's and automake's stderr.  Add a trailing `:' command.
1911         * tests/help2.test: New test, checking that options `--help' and
1912         `--version' works in directories with broken `configure.in'.
1913         * tests/help3.test: New test, checking that options `--help' and
1914         `--version' take precedence on the other options.
1915         * tests/help4.test: New test, checking that the first among the
1916         `--help' and `--version' options to be specified on the command
1917         line wins.
1918         * tests/Makefile.am (TESTS): Updated.
1919
1920 2010-09-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
1921
1922         Testsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.
1923         * tests/compile2.test: Do no uselessly (implicitly) repeat the
1924         computation of PATH_SEPARATOR again.
1925         * tests/instmany-mans.test: Use `$PATH_SEPARATOR', not `:', when
1926         extending/redefining PATH.
1927         * tests/instmany-python.test: Likewise.
1928         * tests/instmany.test: Likewise.
1929         * tests/man4.test: Likewise.
1930         * tests/mkinst3.test: Likewise.
1931         * tests/mmodely.test: Likewise.
1932         * tests/multlib.test: Likewise.
1933         * tests/txinfo30.test: Likewise.
1934         * tests/README (Section "Writing test cases" subsection "Do"):
1935         Updated.
1936         * Makefile.am (sc_tests_PATH_SEPARATOR): New maintainer check.
1937         (syntax_check_rules): Updated.
1938
1939         Testsuite: new variables `$PATH_SEPARATOR' and `$APIVERSION'.
1940         * tests/defs.in ($APIVERSION):  New AC_SUBST'd variable.
1941         ($ACLOCAL, $AUTOMAKE): Use it.
1942         ($PATH_SEPARATOR):  New AC_SUBST'd variables.
1943         ($PATH): Use it.
1944
1945 2010-09-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1946
1947         Manual: be more agnostic w.r.t. version control system used.
1948         * doc/automake.texi (Basics of Distribution): Also refer to `.svn'
1949         directories as a type of probably-unwanted files that are copied
1950         regardless when adding directories to EXTRA_DIST.
1951         (The dist Hook): Show a dist-hook example which removes Subversion
1952         `.svn' private directories from distdir, rather than CVS private
1953         directories.
1954         (missing and AM_MAINTAINER_MODE): Try to be more agnostic w.r.t.
1955         the version control system used.
1956
1957         Manual: index refer to target "git-dist", not "cvs-dist".
1958         * doc/automake.texi (General Operation): Index the non-standard
1959         example about "git-dist" under the "git-dist" label, not under
1960         the "cvs-dist" one.
1961
1962         Perl modules: remove references to "Automake CVS repository".
1963         * lib/Automake/Channels.pm: Update comments to refer to "Automke's
1964         git repository" rather than to "Automake's CVS repository".
1965         * lib/Automake/Configure_ac.pm: Likewise.
1966         * lib/Automake/FileUtils.pm: Likewise.
1967         * lib/Automake/Struct.pm: Likewise.
1968         * lib/Automake/XFile.pm: Likewise.
1969         * lib/Automake/Version.pm (=head1 DESCRIPTION): Refer to "git
1970         branches" rather than "CVS branches".
1971
1972         Remove obsolete .cvsignore files.
1973         * .cvsignore, doc/.cvsignore, lib/.cvsignore, lib/am/.cvsignore,
1974         lib/Automake/.cvsignore, lib/Automake/tests/.cvsignore,
1975         m4/.cvsignore, tests/.cvsignore: Files deleted.  Even when using
1976         savannah's CVS readonly mirror there's no way to commit back to
1977         the real repository, so this files are not worth maintaining or
1978         keeping around.
1979
1980 2010-09-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1981
1982         * m4/dmalloc.m4: Bump serial number and copyright years.
1983
1984 2010-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1985
1986         Fix broken link in `AM_WITH_DMALLOC' help screen.
1987         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Refer only to the dmalloc site
1988         `http://www.dmalloc.com', not to the dmalloc tarball there (which
1989         seems to have been removed, substituted by multiple release
1990         tarballs now).
1991
1992 2010-09-21  Peter Rosin  <peda@lysator.liu.se>
1993
1994         compile: implement library search to support MSVC static linking
1995         * lib/compile (func_cl_wrapper): Implement library search and
1996         -static option so that the user can select whether to prefer
1997         dll import libraries or static libraries.  This enables MSVC to
1998         link against dlls generated by libtool without requiring libtool
1999         or workarounds such as -lfoo.dll etc.  Makes the tests/static.at
2000         test case in libtool pass.
2001         * tests/compile3.test: Don't trip up if there happens to exist
2002         a "foo" library in the library search path.
2003         * tests/compile6.test: New test, verifying the library search.
2004         * tests/Makefile.am (TESTS): Update.
2005
2006 2010-09-17  Eric Blake  <eblake@redhat.com>
2007
2008         Avoid triple-space after period.
2009         * automake.in (handle_single_transform): Avoid 3 spaces at
2010         sentence end.
2011         * ChangeLog.03: Likewise.
2012         * lib/Automake/ChannelDefs.pm: Likewise.
2013         * lib/Automake/Channels.pm (_print_message): Likewise.
2014         * lib/Automake/Rule.pm (rule): Likewise.
2015         * lib/Automake/Variable.pm (var): Likewise.
2016         * lib/am/distdir.am: Likewise.
2017         * tests/insthook.test: Likewise.
2018
2019 2010-09-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2020
2021         Test automake-generated portions of configure help screen.
2022         * tests/help-depend.test: New test.
2023         * tests/help-depend2.test: Likewise.
2024         * tests/help-dmalloc.test: Likewise.
2025         * tests/help-init.test: Likewise.
2026         * tests/help-lispdir.test: Likewise.
2027         * tests/help-maintainer.test: Likewise.
2028         * tests/help-multilib.test: Likewise.
2029         * tests/help-regex.test: Likewise.
2030         * tests/help-silent.test: Likewise.
2031         * tests/help-upc.test: Likewise.
2032         * tests/mmode.test: Remove tests on `configure --help' output,
2033         they are superseded by tests in `help-maintainer.test'.
2034         * tests/Makefile.am (TESTS): Update.
2035
2036 2010-09-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
2037
2038         * tests/README: Don't put GCS mandated tools in $required.
2039
2040 2010-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2041
2042         * HACKING: Hint at old commits with `git describe' output.
2043
2044 2010-09-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
2045
2046         Prefer `$(am__cd)' to plain `cd' in our Makefiles.
2047         * Makefile.am (recheck, dist-hook, git-dist, path-check, fetch)
2048         (release-stats): Use `$(am__cd)' rather than plain `cd'.
2049         * tests/Makefile.am ($(srcdir)/parallel-tests.am): Likewise.
2050
2051 2010-09-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2052
2053         Fix regression in test `colon4.test'.
2054         * tests/colon4.test: Fix botched editing to `configure.in'
2055         that made the test useless.  Since we are at it, improve
2056         comments and make grepping of generated Makefile.in slightly
2057         stricter.
2058         Regression introduced by change "Modernize, improve and/or
2059         extend tests `colon*.test" (Stefano Lattarini, 2010-08-08).
2060
2061 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2062
2063         Do not require "gzip" explicitly in tests.
2064         The gzip utility is simply expected to be present on any decent
2065         target system for Automake.  So it's pointless to put it in
2066         $required.
2067         * tests/install2.test ($required): Do not require "gzip".
2068         * tests/lex3.test: Likewise.
2069         * tests/pr9.test: Likewise.
2070         From a suggestion by Ralf Wildenhues.
2071
2072 2010-09-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2073
2074         Use AS_HELP_STRING in AM_SILENT_RULES.
2075         * m4/silent.m4 (AM_SILENT_RULES): Use `AS_HELP_STRING' to format
2076         help message regarding configure options `--enable-silent-rules'
2077         and `--disable-silent-rules'.  Also throw in a couple of cosmetic
2078         changes in the related `case' statement (indentation, balancing
2079         of parentheses).
2080         * THANKS: Update.
2081         From a report by Jeff A. Daily.
2082
2083 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2084
2085         Make some `confh*.test' tests more "semantic" (plus tweakings).
2086         * tests/confh.test: Run "autoconf", "configure" and "make check",
2087         instead of munging/grepping the generated `Makefile.in'.
2088         * tests/confh4.test: Relax the grepping of Makefile.in w.r.t.
2089         white spaces.  Do not create useless dummy source file `foo.c'
2090         and useless dummy header file `acconfig.h'.
2091         (configure.in): Remove superfluous call to `AC_OUTPUT'.
2092         * tests/confh6.test: Add trailing `:' command.
2093         * tests/confh7.test: In comments, add reference to ...
2094         * tests/confh8.test: ... this new test, "semantic" sister
2095         of `confh7.test'.
2096         * tests/Makefile.am (TESTS): Updated.
2097         Prompted by a report from Ralf Wildenhues.
2098
2099 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2100
2101         Remove useless whitespace padding in XFAIL_TESTS definition.
2102         * tests/Makefile.am (XFAIL_TESTS): Remove whitespace padding.
2103
2104 2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2105
2106         parallel-tests: avoid command-line length limit issue.
2107         * automake.in (handle_tests): New argument $makefile, new
2108         substitution %MAKEFILE%.
2109         (generate_makefile): Adjust.
2110         * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
2111         sanitized TEST_LOGS value as makefile snippet on standard
2112         input to $(MAKE), to avoid exceeding the command line limit on
2113         w32 (MSYS).
2114         * NEWS: Update.
2115         Report by Bob Friesenhahn.
2116
2117         Posix 2008 requires make to set errexit.
2118         * lib/am/check.am: Update comment.
2119
2120 2010-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2121
2122         Tests defs: remove variable $testaclocaldir.
2123         * tests/defs.in ($testaclocaldir): Removed.
2124         * tests/aclocal.test: Use `$top_testsrcdir/m4' directly, not
2125         `$testaclocaldir'.
2126
2127         Tests defs: $srcdir and $top_srcdir renaming.
2128         * tests/defs.in ($srcdir): Remove, define $testsrcdir directly.
2129         * tests/Makefile.am ($(parallel_tests)): Generation of derived
2130         tests updated.
2131
2132         Tests defs: new variable $top_testsrcdir.
2133         * tests/defs.in ($top_testsrcdir): Define unconditionally
2134         to @abs_top_srcdir@.  Use it throughout.
2135         * tests/ar-lib.test: Use `$top_testsrcdir' instead of
2136         `$testsrcdir/..'.
2137         * tests/auxdir.test: Likewise.
2138         * tests/compile.test: Likewise.
2139         * tests/compile2.test: Likewise.
2140         * tests/compile3.test: Likewise.
2141         * tests/compile5.test: Likewise.
2142         * tests/mdate6.test: Likewise.
2143         * tests/mkinst3.test: Likewise.
2144         * tests/multlib.test: Likewise.
2145         * tests/txinfo22.test: Likewise.
2146
2147         Tests defs: $srcdir is unconditionally substituted.
2148         * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@.
2149         Remove code for $srcdir normalization, which is now useless.
2150
2151 2010-09-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2152
2153         Tests defs: make spacing more consistent.
2154         * tests/defs.in: Make spacing more consistent in indentation.
2155         Especially, indent using only spaces, not tabs.  Also, move
2156         a comment to a better position.
2157
2158         Improve code for requiring libtool and gettext in tests.
2159         * tests/defs.in: Stricter (and more correct) detection of wheter
2160         libtool, libtoolize and/or gettext are in $required.
2161
2162
2163 2010-08-27  Stefano Lattarini  <stefano.lattarini@gmail.com>
2164
2165         Fix bug in test missing6.test.
2166         * tests/missing6.test: Fix the hack used to edit `configure.in',
2167         to avoid producing a configure script that breaks with shells
2168         that do not support $LINENO.  Also throw in a couple of cosmetic
2169         changes.
2170
2171 2010-09-02  Peter Rosin  <peda@lysator.liu.se>
2172
2173         Make ar-lib support backslashed files in archives.
2174         * lib/ar-lib: If an archive member contains a backslash, make sure
2175         it is escaped when the archive member is extracted.
2176         * tests/ar-lib.test: Test the above.
2177
2178 2010-08-31  Peter Rosin  <peda@lysator.liu.se>
2179
2180         Do file name conversion for object files in the compile wrapper.
2181         * lib/compile (func_cl_wrapper): Do file name conversion for object
2182         files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
2183         * tests/compile4.test: Test the above.
2184
2185 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2186
2187         Speed up removal of auxiliary linker output files for ltlibraries.
2188         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Rewrite using just
2189         one `rm' invocation.
2190         Report by Bob Friesenhahn.
2191
2192         Improve robustness of mdate-sh script.
2193         * lib/mdate-sh: Sanitize zsh behavior on startup, to ensure
2194         $ls_command is word-split properly upon invocation.
2195         (error): New function.
2196         (main): Use it.  Improve error checking to avoid endless loop
2197         in case $ls_command gave bogus output.  Fix eval quotation.
2198         * tests/mdate6.test: New test, to expose eval quotation error.
2199         * tests/Makefile.am: Update.
2200
2201 2010-08-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
2202
2203         Fix potential regressions in depcomp{3,5}.test.
2204         * tests/depcomp3.test: Do not uselessly escape the character `$'
2205         in makefile rules, when it's used to expand a make macro.
2206         * tests/depcomp5.test: Likewise.
2207
2208 2010-08-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
2209             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2210
2211         Docs: clarify how to avoid automatic dependencies tracking.
2212         * doc/automake.texi (Automatic dependency tracking): Mention that
2213         automatic dependencies tracking is enabled by default, but that
2214         the package developer can disable it altogether.  Add a reference
2215         to the proper section for a more in-depth explanation.
2216
2217         Fix typo in manual (`Makefile.in' instead of `Makefile.am').
2218         * doc/automake.texi (Automatic dependency tracking): Fix typo.
2219
2220 2010-08-16  Bruno Haible  <bruno@clisp.org>
2221
2222         Don't hide the table of contents.
2223         * doc/automake.texi: Move the table of contents to the beginning.
2224
2225 2010-08-16  Peter Rosin  <peda@lysator.liu.se>
2226
2227         Optimize compile script on MSYS.
2228         * lib/compile (func_file_conv): Add new argument 'lazy' which
2229         takes an optional list of conversion types where the requested
2230         conversion isn't needed.
2231         (func_cl_wrapper): Take advantage of the above for cases where
2232         MSYS is doing the conversion for us.
2233         Suggested by Ralf Wildenhues.
2234
2235 2010-08-16  Peter Rosin  <peda@lysator.liu.se>
2236
2237         Support more C++ file extensions for MSVC in the compile script.
2238         * lib/compile (func_cl_wrapper): MSVC only recognizes the .cpp
2239         file extension as C++, unless it's given a hint. So hint about
2240         .cc, .CC, .cxx, .CXX, c++ and C++. Also do path conversion on
2241         .c, .cpp, .CPP, .lib, .LIB and .Lib files.
2242         * tests/compile3.test: Test the C++ hinting.
2243
2244 2010-08-12  Peter Rosin  <peda@lysator.liu.se>
2245
2246         Enable the use of "link -lib" as the wrapped archiver.
2247         * lib/ar-lib: Enable the use of "link -lib" as the wrapped
2248         archiver, as well as allowing some other options to be passed
2249         through to the wrapped archiver.
2250         * tests/ar-lib.test: Test the above.
2251
2252 2010-08-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
2253
2254         Tweak and/or extend some `acloca*.test' tests.
2255         * tests/aclocal8.test:  Ensure verbose printing of captured
2256         output.
2257         * tests/aclocal.test: Likewise.  Also, add trailing `:'
2258         command.
2259         * tests/acloca19.test: Likewise.
2260         * tests/aclocal5.test: Add trailing `:' command, and prefer
2261         `$me' over hard-coded test name.
2262         * tests/aclocal6.test: Likewise.
2263         * tests/aclocal18.test: Add trailing `:' command, and make
2264         some grepping slightly stricter.
2265         * tests/acloca14.test: Likewise.  Also, prefer `diff' over
2266         `cmp', and add some "cosmetic" blank lines.
2267
2268 2010-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2269
2270         Tweak and extend tests `pr[!0-9]*.test'.
2271         * tests/primary3.test: Add trailing `:' command.
2272         * tests/primary.test: Make grepping of Automake's stderr stricter.
2273         Also, add trailing `:' command, and cosmetic changes in spacing.
2274         * tests/primary2.test: Likewise.
2275         * tests/prefix.test: Enable `errexit' shell flags, and related
2276         changes.  Add a trailing `:' command.
2277         * tests/proginst.test: Likewise.
2278
2279         Modernize, improve and extend tests for PR (`pr[0-9]*.test').
2280         * tests/pr2.test: Add trailing `:' command.
2281         * tests/pr229.test: Likewise.
2282         * tests/pr401.test: Likewise.
2283         * tests/pr401b.test: Likewise.
2284         * tests/pr401c.test: Likewise.
2285         * tests/pr300-prog.test: Likewise, plus cosmetic changes in
2286         spacing.
2287         * tests/pr300-lib.test: Likewise.
2288         * tests/pr300-ltlib.test: Likewise, and ensure verbose printing
2289         of captured make stdout.
2290         * tests/pr211.test: Add trailing `:' command.  Also, use the
2291         `configure.in' stub created by ./defs, rather than writing it
2292         from scratch.
2293         * tests/pr204.test: Likewise, plus cosmetic spacing changes.
2294         * tests/pr287.test: Likewise, and move setting of `errexit' shell
2295         flag earlier in the script (just after inclusion of ./defs).
2296         * tests/pr220.test: Make grepping of Automake's stderr stricter.
2297         Also, add trailing `:' command, and cosmetic changes in spacing.
2298         * tests/pr224.test: Move setting of `errexit' shell flag earlier
2299         in the script (just after inclusion of ./defs).  Do not export
2300         `CC=gcc' to configure explicitly (it's already exported globally
2301         in ./defs, since we have "gcc" in $required).  Use the stub for
2302         `configure.in' created by ./defs, rather than writing it from
2303         scratch.  Do not create dummy files required by "gnu" mode (e.g.
2304         README, NEWS), since we run automake in foreign mode anyway.
2305         * tests/pr72.test: Enable `errexit' shell flags, and related
2306         changes.  Extend existing checks a bit.
2307         * tests/pr9.test: Likewise.  Also, avoid obsolescent constructs in
2308         the generated `configure.in', and extend existing checks over the
2309         generated tarball a bit.
2310         * tests/pr87.test: Enable `errexit' shell flags, and related
2311         changes.  Add a trailing `:' command.  Also, do not create dummy
2312         files required by "gnu" mode (e.g. README, NEWS), since we run
2313         automake in foreign mode anyway.
2314         * tests/pr243.test: Avoid obsolescent constructs in the generated
2315         `configure.in'.  Enable the `errexit' shell flag, and related
2316         changes.  Cosmetic changes to spacing, add trailing `:' command,
2317         and add a "FIXME" comment.
2318         * tests/pr266.test: Likewise, and add explicit command line switch
2319         `--enable-dependecy-tracking' to the ./configure call.
2320         * tests/pr279.test: Avoid obsolescent constructs in the generated
2321         `configure.in'; also, use the `configure.in' stub created by
2322         ./defs, rather than writing it from scratch.  Enable `errexit'
2323         shell flag, and related changes.  Add trailing `:' command.
2324         * tests/pr279-2.test: Likewise, and make grepping of Makefile.in
2325         stricter.
2326         * tests/pr307.test: Move setting of `errexit' shell flag earlier
2327         in the script (just after inclusion of ./defs).  Escape literal
2328         dots in grep regular expressions.  Also, add a trailing `:'
2329         command, and cosmetic changes to spacing.
2330
2331         Tests for PR: add excerpts from original bug report, for clarity.
2332         * tests/pr2.test: Ditto.
2333         * tests/pr9.test: Likewise.
2334         * tests/pr72.test: Likewise.
2335         * tests/pr87.test: Likewise.
2336         * tests/pr211.test: Likewise.
2337         * tests/pr220.test: Likewise.
2338         * tests/pr224.test: Likewise.
2339         * tests/pr229.test: Likewise.
2340         * tests/pr243.test: Likewise.
2341         * tests/pr266.test: Likewise.
2342         * tests/pr279.test: Likewise, and tell to keep it in sync
2343         with its sister test.
2344         * tests/pr279-2.test: Likewise.
2345
2346 2010-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2347
2348         Tweak, extend and improve tests `cond[a-z]*.test'.
2349         * tests/condd.test: Add trailing `:' command.  Typofix in
2350         comment.
2351         * tests/condhook.test: Make sure target `install-data-hook' is
2352         not called by `make install', but that data files are installed.
2353         Use proper m4 quoting in configure.in. Add trailing `:' command.
2354         * tests/condhook2.test: New test, sister test of condhook, with
2355         inverted semantic.
2356         * tests/condinc2.test: Use proper m4 quoting in configure.in.
2357         Prefer trailing `:' command over trailing `Exit 0'.
2358         * tests/condman2.test: Enable errexit shell flag, and related
2359         changes.  Add trailing `:' command.
2360         * tests/condman.test: Likewise.  Also, do not create useless
2361         dummy manpages, and use proper m4 quoting in configure.in.
2362         * tests/condman3.test: New test, similar to condman.test, but
2363         it also runs ./configure and "make install", and check the
2364         installed files.
2365         * tests/Makefile.am (TESTS): Updated.
2366
2367         Modernize, improve and/or extend tests `colon*.test.
2368         * tests/colon.test: Rely on the `configure.in' stub created by
2369         `./defs', rather than writing one from scratch.  Do not create
2370         a useless dummy file.  Add trailing `:' command.
2371         * tests/colon4.test: Enable the `errexit' shell flag, and
2372         related changes.  Rely on the `configure.in' stub created by
2373         `./defs', rather than writing one from scratch.
2374         * tests/colon7.test: Enable `errexit' shell flag, and related
2375         changes.  Improve the generated `configure.in' file.  Add
2376         trailing `:' command.
2377         * tests/colon2.test: Likewise.  Also, add some new checks.
2378         * tests/colon5.test: Improve the generated `configure.in' file.
2379         Add new, much deeper checks.  Add trailing `:' command.
2380         * tests/colon6.test: Likewise.
2381         * tests/colon3.test: Add trailing `:' command.  Remove useless
2382         comments and echos.  Improve the generated `configure.in' file.
2383         make some grepping tests stricter.  Add a "FIXME" comments about
2384         planned improvements.
2385
2386         Improve and extend tests `asm*.test'.
2387         * tests/asm.test: Use configure.in stub generated by ./defs,
2388         and avoid obsoleted autoconf constructs.  Make grepping of
2389         Automake stderr stricter.  Do not create useless source file.
2390         Improve verbose messages.  Minor cosmetic changes.  Tell to
2391         keep it in sync with other sister tests asm*.test.
2392         * tests/asm2.test: Likewise.
2393         * tests/asm3.test: Likewise.
2394
2395         Modernize, improve and/or extend test scripts `conf*.test'.
2396         * tests/confh5.test: Cosmetic changes.
2397         * tests/conff.test: Likewise.
2398         * tests/confdeps.test: Likewise.
2399         * tests/conflnk.test: Likewise.
2400         * tests/conflnk2.test: Likewise.
2401         * tests/confsub.test: Likewise.
2402         * tests/confvar.test: Likewise, and make grepping of Makefile.in
2403         stricter.
2404         * tests/confvar2.test: Likewise.
2405         * tests/conflnk3.test: Cosmetic changes.  Re-enable a temporarily
2406         disabled test (which didn't work with autoconf <= 2.59, but now we
2407         are requiring autoconf 2.62, so...)
2408         * tests/conflnk4.test: Cosmetic changes, and extend existing tests
2409         accordingly to "TODO" comments.
2410         * tests/conff2.test: Make grepping of Automake's stderr stricter.
2411         Add some comments explaining why we don't use the `configure.in'
2412         stub preset be ./defs.
2413         * tests/confh.test: Use the `configure.in' stub created by ./defs,
2414         rather than writing one from scratch, and do not call AC_OUTPUT.
2415         Enable `errexit' shell flag, and related changes.  Prefer diff over
2416         cmp to compare text files. Prefer perl over sed to fetch the value
2417         of $(DIST_COMMON) from Makefile.in.  Make grepping of the contents
2418         of $(DIST_COMMON) stricter.
2419         * tests/confh4.test: Use the `configure.in' stub created by ./defs,
2420         rather than writing one from scratch.  Make grepping of Makefile.in
2421         stricter.
2422         * tests/confh5.test: Make grepping of `config.h' stricter.  Add a
2423         comment.
2424         * tests/configure.test: Avoid obsolescent constructs in generated
2425         `configure.ac'.  Do not write `configure.in' two times.  Escape
2426         literal dots in grep regular expressions.
2427         * tests/confincl.test:  Enable `errexit' shell flag, and related
2428         changes.  Prefer fgrep over grep.  Other cosmetic changes.
2429         * tests/config.test: Renamed to ...
2430         * tests/confh6.test: ... this.  Fix m4 quoting in `configure.in',
2431         and make grepping of `config.h' and `config.h.in' stricter.
2432         * tests/conf2.test: Renamed ...
2433         * tests/confh7.test: ... to this.  Use the `configure.in' stub
2434         created by ./defs, rather than writing one from scratch.  Try to
2435         run the checks both with and without AC_PROG_CC and AC_OUTPUT in
2436         `configure.in'.
2437         * tests/Makefile.am (TESTS): Updated.
2438
2439         Minor improvements and fixes in tests `depcomp*.test'.
2440         * tests/depcomp.test: Do not create useless dummy source files.
2441         Add a trailing `:' command.
2442         * tests/depcomp2.test: Use `unset' on the CFLAG variable to ensure
2443         it's not in in the environment, rather than exporting it with an
2444         empty value.  Do not pass CC=gcc to configure, as that's already
2445         done in ./defs since we have gcc in $required.  Ensure verbose
2446         printing of captured stderr, and normalize its checking.  Add a
2447         trailing `:' command.
2448         * tests/depcomp3.test: Quote literal dots and dollar characters in
2449         grep regexps.  Always use `: >' rather than `touch' to create empty
2450         files.  Explicitly declare phony targets as such in the created
2451         Makefile.am.  Add a trailing `:' command.
2452         * tests/depcomp4.test: Quote literal dots and dollar characters in
2453         grep regexp.  Explicitly declare phony targets as such in the
2454         created Makefile.am.  Ensure verbose printing of captured makes'
2455         stoud/stderr.  Add a trailing `:' command.
2456         * tests/depcomp5.test: Move setting of `errexit' shell flag earlier
2457         in the script (just after inclusion of ./defs).  Quote literal dots
2458         and dollar characters in grep regexps.  Explicitly declare phony
2459         targets as such in the created Makefile.am.  Add a trailing `:'
2460         command.
2461         * tests/depcomp6.test: Consistently use m4 quoting in the generated
2462         configure.in.  Cosmetic fixes to spacing.  Make the "dummy" `if'
2463         statement required by OpenBSD's sh `set -e' more robust, and add
2464         explanatory comments to it.
2465         * tests/depcomp7.test: Likewise, and add  a trailing `:' command.
2466
2467         Separate failing part of test `all.test'.
2468         * tests/all.test: Keep only (x)failing part of the test.  Working
2469         checks moved out to ...
2470         * tests/all2.test: ... this new test.
2471         * tests/Makefile.am (TESTS): Updated.
2472
2473         Modernize, improve and extend tests `subobj*.test'.
2474         * tests/subobjname.test:  Add trailing `:' command.
2475         * tests/subobj.test: Make grepping of `Makefile.in' stricter.
2476         Escape literal dots in grep regexps.
2477         * tests/subobj2.test:  Add trailing `:' command.  Do not use the
2478         unportable fgrep option `-e'.
2479         * tests/subobj3.test: Add trailing `:' command.
2480         (configure.in): Use proper m4 quoting, and avoid obsolescent
2481         constructs.
2482         * tests/subobj8.test: Likewise.  Also, enable `errexit' shell
2483         flag, with related changes
2484         * tests/subobj4.test: Likewise.  Also, make grepping of
2485         `Makefile.in' stricter.
2486         * tests/subobj5.test: Add trailing `:' command.  Move setting of
2487         `errexit' shell flag earlier in the script (just after inclusion
2488         of ./defs).
2489         (configure.in): Use the stub created by `./defs', rather than
2490         writing it from scratch, and avoid obsolescent constructs.
2491         * tests/subobj6.test: Add trailing `:' command.  Move setting of
2492         `errexit' shell flag earlier in the script (just after inclusion
2493         of ./defs).  Do not create useless dummy ac-init file `f'.
2494         * tests/subobj7.test: Do not create useless dummy ac-init file
2495         `f'.
2496         (configure.in): Use the stub created by `./defs', rather than
2497         writing it from scratch, and avoid obsolescent constructs.
2498         * tests/subobj9.test: Move setting of `errexit' shell flag earlier
2499         in the script (just after inclusion of ./defs).  Fail the test if
2500         `make distcheck' fails.  Ensure verbose printing of captured make
2501         stdout.  Avoid useless fork by doing simple grep instead of using
2502         test -n "`COMMAND | grep ...`".
2503         (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
2504         (Makefile.am): Explicitly mark target "print" as phony.
2505         * tests/subobj10.test: Removed duplicated call to `set -e'.  Add
2506         trailing `:' command.
2507         (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
2508
2509         Remove a couple of obsoleted tests.
2510         * tests/fpinstall.test: Removed.
2511         * tests/fpinst2.test: Likewise.
2512         * tests/Makefile.am (TESTS): Updated.
2513
2514         Bootstrap: updated HACKING entry.
2515         * HACKING ("Working with git"): Explain how to override the
2516         autoconf and autom4te programs used by the bootstrap process.
2517
2518         Bootstrap: fixlet.
2519         * bootstrap: Do not remove `lib/Automake/Config.pm' anymore,
2520         since we don't generate it.  Correctly quote arguments of
2521         `eval' builtin.  Fixed a botched error message.  Removed an
2522         extra blank line.
2523
2524         Bootstrap: don't search perl in $PATH.
2525         * bootstrap: Do not explicitly search perl in $PATH anymore.
2526         ($PATH_SEPARATOR): Removed, it's no more needed.
2527
2528         Bootstrap: let the user choose which autoconf to use.
2529         * bootstrap ($AUTOCONF): New variable, from the environment.
2530         ($AUTOM4TE): Likewise, for clarity.
2531         Use "$AUTOCONF" instead of calling "autoconf" directly.
2532
2533         Minor improvements to tests ar*.test.
2534         * tests/ar.test: Add trailing `:' command.
2535         * tests/ar2.test: Likewise, and make grepping of generated
2536         Makefile.in stricter.
2537
2538 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
2539
2540         Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
2541         * lib/ar-lib: New auxiliary script.
2542         * lib/Makefile.am: Add above.
2543         * tests/ar-lib.test: New test.
2544         * tests/Makefile.am: Add above.
2545         * automake.in (@common_files): Distribute the 'ar-lib' script.
2546         * doc/automake.texi (Auxiliary Programs): Mention the new
2547         'ar-lib' script.
2548         (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
2549         * NEWS: Update.
2550
2551 2010-08-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2552
2553         Fix shell pattern negation in compile script.
2554         * lib/compile (func_file_conv): Use `!' not `^' for pattern
2555         negation.
2556
2557 2010-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2558
2559         Fix maintainer-check failure.
2560         * tests/cond5.test: Quote sleep argument, this isn't about
2561         time stamp differences.
2562
2563         Sync auxiliary files from upstream.
2564         * lib/config.guess, lib/config.sub, lib/texinfo.tex:
2565         Sync from upstream.
2566
2567 2010-08-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2568
2569         Work around a nasty bug (segfault) of Solaris make.
2570         * lib/am/check.am (recheck, recheck-html): Trim trailing spaces
2571         from $list, to avoid triggering a nasty bug (potential segfault)
2572         on Solaris make.
2573
2574 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
2575
2576         Make cond5.test more robust on MSYS.
2577         * tests/cond5.test: Add delay before the first kill attempt to
2578         cater for problems with MSYS bash.
2579
2580 2010-08-01  Peter Rosin  <peda@lysator.liu.se>
2581
2582         Wrap some MSVC options in the compile script.
2583         * lib/compile: MSVC supports naming the output file, the option
2584         is just not called -o, so transform -o into the appropriate form
2585         for MSVC. Also wrap some other options while at it (-L, -l, -Wl,
2586         -Xlinker and -I) and convert file names to windows form where
2587         needed for those options to make MSVC more usable in an
2588         autotooled environment.
2589         * doc/automake.texi (Auxiliary Programs): Document the above
2590         extension of the compile script.
2591         * NEWS: Updated.
2592         * tests/defs.in: New required entry 'cl'.
2593         * tests/compile3.test: New test.
2594         * tests/compile4.test: New test.
2595         * tests/compile5.test: New test.
2596         * tests/Makefile.am: Update.
2597
2598 2010-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2599
2600         Add example git work flow; discuss merge --log in HACKING.
2601         * HACKING: Update.
2602         Suggestion by Stefano Lattarini.
2603
2604         Add more hints for debugging make rules.
2605         * doc/automake.texi (Debugging Make Rules): Show command to find
2606         out expanded values of variables; point to makefile debugger.
2607         * THANKS: Update.
2608         Prompted by suggestion from Ludovic Courtès and Andy Wingo.
2609
2610 2010-07-27  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
2611
2612         Fix typo in the manual.
2613         * doc/automake.texi (Scripts): Fix typo.
2614
2615 2010-07-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2616
2617         Document current policy for development with git.
2618         * HACKING (Working with git): Overhaul.
2619         Prompted by suggestion from Stefano Lattarini.
2620
2621         Fix AM_COND_IF for gone-invalid condition shell expression.
2622         * m4/cond-if.m4 (AM_COND_IF): test contents of $COND_TRUE
2623         variable, rather than re-evaluating the shell expression for
2624         the condition.
2625         * tests/cond40.test: Extend test.
2626         * NEWS: Update.
2627
2628         Avoid syntax error if IF-TRUE part of AM_COND_IF expands empty.
2629         * m4/cond-if.m4 (AM_COND_IF): Ensure IF-TRUE part is never empty
2630         to avoid shell syntax error if the m4 expansion is empty.
2631         * tests/cond40.test: Enhance test.
2632
2633         Coverage: bogus option to AM_INIT_AUTOMAKE.
2634         * tests/init2.test: New test.
2635         * tests/Makefile.am: Update.
2636
2637 2010-07-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
2638
2639         Modernize and improve test scripts `subdir*.test'.
2640         * tests/subdir.test: Enable `errexit' shell flag, and related
2641         changes.  Use the `configure.in' stub created by `./defs',
2642         rather than writing one from scratch.
2643         * tests/subdir2.test: Likewise.
2644         * tests/subdir4.test: Likewise.
2645         * tests/subdir3.test: Enable `errexit' shell flag, and related
2646         changes.  Do not create useless dummy source files.
2647         * tests/subdir5.test: Make grepping of Makefile.in (in topdir
2648         and in subdirs) stricter.  Some minor changes to keep it more
2649         in sync with the related test `subdir8.test'.
2650         * tests/subdir8.test: Likewise (but with the related test being
2651         `subdir5.test' here).
2652         * tests/subdir6.test: Cosmetic change in spacing.
2653         * tests/subdir9.test: Define and use new variable `$distdir'.  Add
2654         trailing `:' command.
2655         * tests/subdir10.test: Cosmetic consistency-related change.
2656         * tests/subdirbuiltsources.test: Cosmetic changes in spacings.
2657         (configure.in): Use stub created by `./defs', rather than writing
2658         it from scratch.  Do not use obsoleted and/or deprecated forms of
2659         autoconf/automake macros.
2660
2661         Modernize and improve test scripts `dist*.test'.
2662         * tests/distcleancheck.test: Do not add useless `-e' option to
2663         a $MAKE call.  Extend test by grepping stderr of make.
2664         * tests/distcom2.test: Do not run the same test script on the
2665         Makefile.in twice, but save its output in an intermediate file
2666         instead.  Make grepping of DIST_COMMON definition stricter.
2667         Display the content of more files, to ease debugging.  Add a
2668         trailing `:' command.  Improved heading comments w.r.t. sister
2669         test(s).
2670         * tests/distcom6.test: Likewise, and avoid to uselessly run
2671         autoconf.
2672         * tests/distcom3.test: Ensure verbose printing of captured stdout
2673         and stderr.  Make grepping of captured stderr stricter.  Also,
2674         add trailing `:' command.
2675         * tests/distcom4.test: Declare the target `test' in the generated
2676         Makefile.am as `.PHONY'.  Display content of more files, to ease
2677         debugging.  Add trailing `:' command.
2678         * tests/distcom5.test: Likewise.  Also, factor out common sed
2679         script in subroutine `extract_distcommon'.
2680         * tests/distcom7.test: Prefer cat + here-doc over echo to write
2681         test Makefile.am files.  Add a trailing `:' command.
2682         * tests/distname.test: Prefer `gzip -d' over `gunzip'.  Move the
2683         call to `set -e' earlier.  Be stricter and more verbose in the
2684         checking of the generated tarball.
2685         (configure.in): Use the stub provided by ./defs, instead of
2686         writing it from scratch.  Avoid obsoleted constructs.  Remove
2687         useless call to `AM_PROG_CC_C_O'.
2688         * tests/distdir.test: Various minor improvements/normalizations.
2689         * tests/distlinks.test: Likewise.
2690
2691 2010-07-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
2692
2693         Improve and extend test cond5.test.
2694         * tests/cond5.test: Do not blindly sleep 60 seconds before polling
2695         the background automake process, but poll it every 10 seconds for
2696         at most 30 times (this makes the test both faster on good machines,
2697         and more resilient to spurious timeout-due failures when in low
2698         priority or on heavily-loaded systems).
2699         Check also that automake writes the expected error messages on the
2700         standard error.
2701         Enable `errexit' flag, and related changes.
2702         Rely on the `configure.in' stub created by `./defs', rather than
2703         writing one from scratch.
2704
2705 2010-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2706
2707         Update program --help output to match current GCS.
2708         * configure.ac: Set and substitute PACKAGE_URL if AC_PACKAGE_URL
2709         is not defined, for compatibility to Autoconf < 2.64.
2710         * Makefile.am (do_subst): Substitute PACKAGE_BUGREPORT and
2711         PACKAGE_URL.
2712         (sc_diff_automake_in_automake): Update number of diff lines for
2713         additional substitutions.
2714         * aclocal.in (usage): Use PACKAGE_BUGREPORT.  Point to Automake
2715         home page and GNU general help page.
2716         * automake.in (usage): Likewise.
2717         * doc/automake.texi: New flag PACKAGE_BUGREPORT, to factor email
2718         address.
2719         (Introduction, Creating amhello, amhello Explained, Options):
2720         Use it throughout.
2721         * lib/Automake/Makefile.am (do_subst): Substitute
2722         PACKAGE_BUGREPORT.
2723         * lib/Automake/Config.in ($PACKAGE_BUGREPORT): New global.
2724         * lib/Automake/ChannelDefs.pm: Use it for footer of fatal
2725         messages.
2726
2727         Clean up @var handling in the manual.
2728         * doc/automake.texi: Throughout the manual, lower-case @var
2729         names, replace a few one-character names.
2730
2731 2010-06-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2732
2733         Fix typo-related bug in test script silent5.test.
2734         * tests/silent5.test: Use $EGREP, not $GREP (which is not even
2735         defined).
2736
2737         Tests: remove useless repetitions of `foreign' automake option.
2738         * tests/multlib.test (configure.in): Remove useless use of
2739         `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is
2740         already in $AUTOMAKE by default, so no point in repeating it).
2741         * tests/subobj10.test: Likewise.
2742         * tests/subobj9.test: Likewise.
2743         * tests/lex3.test (Makefile.am): Similarly, remove useless use
2744         of `foreign' option in AUTOMAKE_OPTIONS.
2745         * tests/lex5.test: Likewise.
2746         * tests/pr279.test: Likewise.
2747         * tests/pr279-2.test: Likewise.
2748         * tests/specflg3.test: Likewise.
2749         * tests/target-cflags.test: Likewise.
2750
2751         Drop useless requirement "gzip" in lex5.test.
2752         * tests/lex5.test ($required): Do not list "gzip", as it's
2753         never used.
2754
2755 2010-06-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
2756
2757         Fix bugs in test script silent5.test.
2758         * tests/silent5.test: Fixed a nasty bug (due to the use of grep
2759         instead of egrep) that could have led to false negatives.
2760
2761 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
2762
2763         Add a test checking that distributed broken symlinks cause
2764         `make dist' to fail.
2765         * tests/distlinksbrk.test: New test.
2766         * tests/Makefile.am (TESTS): Updated.
2767
2768 2010-06-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2769
2770         Fix minor testsuite issues, update docs, for Yacc/Lex changes.
2771         * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
2772         and AM_LFLAGS, LFLAGS in the order in which they now appear in
2773         the rules.
2774         * NEWS: Update.
2775         * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
2776         tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
2777         please maintainer-check.  Ensure generated C files contain a
2778         declaration, to please compilers.
2779
2780 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
2781
2782         Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
2783         $(FLAGS) precedence.
2784         * automake.in: Fix registration of languages "Lex", "Lex (C++)",
2785         "Yacc" and "Yacc (C++)", so that $(LFLAGS) has precedence over
2786         $(AM_LFLAGS) and $(YFLAGS) has precedence over $(AM_YFLAGS).
2787         * tests/Makefile.am (XFAIL_TESTS): Updated accordingly.
2788         * NEWS: Updated.
2789
2790         New tests, exposing bugs in Automake Yacc/Lex support w.r.t.
2791         $(AM_FLAGS) and $(FLAGS) precedence.
2792         * tests/lflags.test: New test, check that user $(LFLAGS) takes
2793         precedence over automake (AM_LFLAGS) and (foo_LFLAGS).  Still
2794         xfailing.
2795         * tests/lflags2.test: Likewise.
2796         * tests/yflags.test: New test, check that user $(YFLAGS) takes
2797         precedence over automake (AM_YFLAGS) and (foo_YFLAGS).  Still
2798         xfailing.
2799         * tests/yflags2.test: Likewise.
2800         * tests/Makefile.am (TESTS, XFAIL_TESTS): Extended accordingly.
2801
2802 2010-06-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
2803
2804         Modernize, improve and extend tests `suffix*.test'.
2805         * tests/suffix3.test: Enable `errexit' shell flag, and related
2806         changes.
2807         * tests/suffix4.test: Likewise.
2808         * tests/suffix6.test: Likewise, and do not create a useless dummy
2809         source file.
2810         * tests/suffix7.test: Likewise.
2811         * tests/suffix5.test: Enable `errexit' shell flag, and related
2812         changes.  Make grepping of Makefile.in slightly stricter.
2813         * tests/suffix.test: Enable `errexit' shell flag, and related
2814         changes.  Also, do not redirect grep output to /dev/null, as this
2815         might unmotivatedly hide useful information.
2816         * tests/suffix2.test: Move setting of `errexit' shell flag earlier
2817         in the script (just after inclusion of ./defs).  Use a more
2818         idiomatic way to count text occurrences in Makefile.in with
2819         grep.  Do not create useless dummy source files.
2820         * tests/suffix10.test: Ensure verbose printing of captured make
2821         stdout.  Minor cosmetic changes.
2822         * tests/suffix8.test: Likewise.  Also, drop useless call to the
2823         env(1) utility, and make grepping of make output stricter by using
2824         $FGREP rather than plain grep.
2825         * tests/suffix11.test: Likewise.
2826         * tests/suffix12.test: Likewise.
2827         * tests/suffix9.test: Prefer cat + here-doc over echo to append to
2828         the `configure.in' stub.  Cosmetic changes.
2829         * tests/suffix13.test: Cosmetic spacing change.
2830
2831 2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2832
2833         Add useful comment in test script ext.test.
2834         * tests/ext.test: Add a comment explaining why an apparently
2835         useless `if' statement is indeed required.
2836
2837 2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2838
2839         Add useful comment in test script obsolete.test.
2840         * tests/obsolete.test: Add a comment explaining why we need
2841         an indirection in adding $AUTOUPDATE to $required.
2842
2843         Normalize whitespaces in 'tests/Makefile.am'.
2844         * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
2845         definition of this variable.
2846
2847         Parallel tests generation: improve comments (tiny change).
2848         * tests/Makefile.am ($(parallel_tests)): Added useful comment to
2849         generated tests.
2850
2851         Tests defs: truly get rid of `$am_defs_included' (unused variable)
2852          * tests/defs.in ($am_defs_included): Remove, its now unused.  It
2853         should have been removed in a previous changeset, but the removal
2854         was done only partially (oversight).
2855
2856 2010-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2857
2858         Remove a couple of unneeded conditionals from tests.
2859         * tests/pr243.test, tests/pr266.test, tests/strip.test: No need
2860         for the FOOTEST conditional.
2861
2862 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2863
2864         Modernize, improve and/or fix various test scripts.
2865         * tests/symlink3.test: Deleted, separated into two new, more
2866         complete tests ...
2867         * tests/forcemiss.test: ... this one ...
2868         * tests/forcemiss2.test: ... and this one.
2869         * tests/symlink2.test: Enable `errexit' shell flag, make test
2870         stricter, and skip it if symlink creation is not supported.
2871         * tests/postproc.test: Enable `errexit' shell flag, related
2872         changes, and a couple of unrelated cosmetic changes.
2873         * tests/recurs.test: Use the `configure.in' stub created by
2874         `./defs', rather than writing one from scratch.  Make grepping
2875         of Automake stderr slightly stricter.
2876         * tests/substtarg.test: Likewise.
2877         * tests/strip.test: Likewise, and move the call to `set -e'
2878         earlier (just after the inclusion of `./defs'). Also, make sure
2879         that the script installed by `make install-script' is equal to
2880         the original one.
2881         * tests/substref.test: Use the `configure.in' stub created by
2882         `./defs', rather than writing one from scratch.  Move the call
2883         to `set -e' earlier (just after the inclusion of `./defs').
2884         Avoid to explicitly export CC for configure (that's already done
2885         in ./defs).  Avoid potential problems with unpredictable make
2886         output.  Finally, make grepping of Makefile.in stricter.
2887         * tests/substre2.test: Ensure verbose printing of the captured
2888         make's output, and make its grepping slightly stricter.
2889         * tests/cygwin32.test: Enable `errexit' shell flag, and related
2890         changes.  Also, do not create useless dummy source/data files.
2891         * tests/scripts.test: Likewise.
2892         * tests/recurs2.test: Likewise.  Also, use the `configure.in'
2893         stub created by `./defs'.
2894         * tests/Makefile.am (TESTS): Updated.
2895
2896         Modernize, improve and/or fix tests `pluseq*.test.
2897         * tests/pluseq5.test: Append to configure.in using cat with an
2898         here-doc, not using echo.
2899         * tests/pluseq10.test: Make sure that the captured output of
2900         `make' command is always displayed. Where possible, use $FGREP
2901         instead of grep (this change makes some checks slightly stricter).
2902         * tests/pluseq8.test: Enable `errexit' shell flag, with related
2903         changes.
2904         * tests/pluseq.test: Likewise.  Also, do not create useless dummy
2905         data files, and use better m4 quoting in generated configure.in.
2906         * tests/pluseq2.test: Likewise.  Also, append to configure.in
2907         using cat with an here-doc, not using echo.
2908         * tests/pluseq3.test: Likewise.
2909         * tests/pluseq4.test: Likewise.
2910         * tests/pluseq6.test: Likewise.
2911         * tests/pluseq7.test: Do not create useless dummy source file.
2912         * tests/pluseq9.test: Slightly extended w.r.t. the grepping of
2913         Automake stderr.  Some unrelated cosmetic changes.
2914
2915 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2916
2917         cscope.test: ensure verbose printing of captured stderr.
2918         * tests/cscope.test: Print captured stderr before failing.
2919
2920 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2921
2922         Testsuite: ensure verbose printing of captured stderr.
2923         * tests/acloca18.test: Print captured stderr before either failing
2924         or grepping it.  Be sure to send captured stderr to stderr, not to
2925         stdout.
2926         * tests/ansi3b.test: Likewise.
2927         * tests/cond39.test: Likewise.
2928         * tests/configure.test: Likewise.
2929         * tests/missing3.test: Likewise.
2930         * tests/missing6.test: Likewise.
2931         * tests/output-order.test: Likewise.
2932         * tests/pr300-ltlib.test: Likewise.
2933         * tests/python6.test: Likewise.
2934         * tests/python7.test: Likewise.
2935         * tests/python8.test: Likewise.
2936         * tests/python9.test: Likewise.
2937         * tests/subobj.test: Likewise.
2938         * tests/vars3.test: Likewise.
2939         * tests/missing4.test: Likewise, and fix a call to grep not to use
2940         the `-c' flag.
2941         * tests/ansi3.test: Likewise, and rely on the `configure.in' stub
2942         created by `./defs', rather than writing one from scratch.
2943
2944         Enable `errexit' shell flag in various tests.
2945         * tests/backsl.test: Enable the `errexit' shell flag, and
2946         related changes.
2947         * tests/backsl2.test: Likewise.
2948         * tests/block.test: Likewise.
2949         * tests/canon2.test: Likewise.
2950         * tests/canon4.test: Likewise.
2951         * tests/comment2.test: Likewise.
2952         * tests/condlib.test: Likewise.
2953         * tests/cond15.test: Likewise, and prefer $FGREP over grep.
2954         * tests/canon3.test: Likewise.  Also, avoid to create an useless
2955         dummy source file.
2956         * tests/acoutpt2.test: Enable the `errexit' shell flag, and some
2957         related changes.  Do some cosmetic improvements in the generated
2958         `configure.in' file.
2959         * tests/cond4.test: Likewise.
2960         * tests/cond14.test: Likewise.
2961         * tests/condinc.test: Likewise.
2962         * tests/cond7.test: Likewise.  Also, remove useless setting of
2963         AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am.
2964         * tests/ansi.test: Enable the `errexit' shell flag, and related
2965         changes.  Extended, esp. by running autoconf, ./configure and
2966         make, and by looking into the distdir.
2967
2968 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2969             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2970
2971         Extend tests/README w.r.t. trailing `:' in test scripts.
2972         * tests/README (section "Writing test cases" subsection "Do"):
2973         Explain why apparently redundant trailing `:' and `Exit 0' in
2974         test scripts can indeed be useful.
2975
2976 2010-06-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
2977
2978         Improve determination of PATH separator in bootstrap script.
2979         * bootstrap: Determine what the PATH separator is the same way
2980         autoconf does.
2981
2982         Minor improvements in bootstrap script.
2983         * bootstrap: Consistently use two-spaces indentation.  Cosmetic
2984         improvement to comments.
2985         ($me): New variable, containing program basename.
2986         Prepend it to all error messages.
2987
2988         Testsuite now works with BSD make in parallel mode.
2989         * tests/defs.in: Unset variables __MKLVL__ and MAKE_JOBS_FIFO,
2990         which are exported by BSD make when run in parallel mode, and
2991         which can confuse make processes spawned by our testsuite.
2992         This change fixes a lot of spurious failure when the testsuite
2993         is run with BSD make in parallel mode.
2994
2995 2010-06-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2996
2997         Modernize, improve and/or fix various test scripts.
2998         * tests/sanity.test: Rely on the `configure.in' stub created by
2999         `./defs', rather than writing one from scratch.
3000         * tests/depend2.test: Likewise.  Also, call `set -e' just after
3001         the inclusion of `./defs', instead that later in the script.
3002         * tests/canon5.test: Avoid a useless `|| Exit 1' after a call to
3003         $AUTOMAKE, and improve the positioning of an $ACLOCAL call.
3004         * tests/exeext4.test: Use $FGREP instead of grep, where possible.
3005         Make auxiliary rules in the generated Makefile more silent.
3006         These changes make some checks slightly stricter.
3007         * tests/ext2.test: Call `Exit 1' if inclusion of `./defs' fails.
3008         * tests/gettext2.test: Place final `:' at the end of the script,
3009         rather than in the middle.
3010         * tests/exeext.test: Call `set -e' just after the inclusion of
3011         `./defs', instead that later in the script.
3012         * tests/extra5.test: Likewise.
3013         * tests/confdeps.test: Likewise.  Also, prefer `mv -f' over
3014         plain `mv', just to be sure.
3015         * tests/depcomp.test: Enable `errexit' shell flag, with related
3016         changes.  Also, modernize the generated configure.in.
3017         * tests/cond9.test: Likewise.  Also, rely on the `configure.in'
3018         stub created by `./defs', rather than writing one from scratch.
3019         * tests/cond10.test: Likewise.
3020         * tests/depcomp2.test: Likewise.
3021         * tests/depend3.test: Likewise.
3022         * tests/distcom7.test: Likewise.
3023         * tests/fortdep.test: Likewise.  Also, remove definition of
3024         AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am,
3025         since that flag is already provided by $AUTOMAKE.
3026         * tests/mdate.test: Made stricter, by checking that Automake
3027         actually failed, and by making a stricter grep on the error
3028         message.  Also, set shell `errexit flag'.
3029         * tests/python2.test: Improved verbose messages.
3030
3031         Make test `ammissing.test' stricter.
3032         * tests/ammissing.test: Fail if $ACLOCAL succeeds unexpectedly.
3033         Enable `errexit' shell flag.
3034
3035 2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
3036             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3037
3038         Fix error in generation of parallel tests.
3039         * tests/defs.in ($am_skip_defs): New variable, to be used when
3040         ./defs must be sourced multiple times.  If set, unset it and
3041         only define $srcdir; otherwise, also go through the rest of
3042         the script.
3043         ($am_defs_included): Remove, no more needed.
3044         * tests/Makefile.am ($(parallel_tests)): Update accordingly,
3045         using only $srcdir from defs.
3046         Fixes potential test failures of tests that use $required.
3047
3048 2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
3049
3050         Enable `errexit' shell flag in some test scripts.
3051         * tests/subcond.test: Enabled `errexit' shell flag, and related
3052         minor changes.
3053         * tests/subst.test: Likewise.
3054         * tests/vars.test: Likewise.
3055         * tests/version4.test: Likewise.
3056         * tests/vpath.test: Likewise.
3057         * tests/vtexi2.test: Likewise.
3058         * tests/werror.test: Likewise.
3059         * tests/whoami.test: Likewise.
3060         * tests/tags.test: Likewise, and avoid to crate an useless dummy
3061         header file.
3062         * tests/acsilent.test: Likewise, and don't use an easily-avoided
3063         command substitution.
3064         * tests/unused.test: Likewise, and don't use an easily-avoided
3065         command substitution.
3066         * tests/version.test: Likewise, and avoid deprecated constructs
3067         in the generated `configure.in'.
3068         * tests/version2.test: Likewise, and avoid deprecated constructs
3069         in the generated `configure.in'.
3070
3071 2010-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3072             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3073
3074         Improve declaration of dependencies in the testsuite.
3075         * tests/Makefile.am (check_SCRIPTS): Remove.  Instead, let ...
3076         ($(TEST_LOGS)): ... all test logs depend on the scripts.
3077         * test/gen-parallel-tests: For each parallel test foo-p.test,
3078         let `foo-p.log' also depend on `foo.test', since it is sourced.
3079
3080 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3081
3082         Coverage for TAGS_DEPENDENCIES warning.
3083         * tests/tags2.test: New test.
3084         * tests/Makefile.am: Update.
3085
3086         Coverage for use of anachronistic variables.
3087         * tests/oldvars.test: New test.
3088         * tests/Makefile.am: Update.
3089
3090         Testsuite coverage for bogus macro file serial numbers.
3091         * tests/acloca18.test: Also test ill-formed serial numbers
3092         and serial numbers after macro definitions.
3093
3094         Coverage for aclocal diagnosing underquoted macros.
3095         * tests/acloca23.test: New test.
3096         * tests/Makefile.am: Update.
3097
3098 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3099
3100         Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
3101         * tests/ldadd.test: Enable errexit.  Use AUTOMAKE_fails so
3102         the verbose log contains all output.
3103         * tests/mdate.test: Likewise.
3104         Prompted by Stefano Lattarini's change to discover.test.
3105
3106 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3107
3108         More minor message fixes.
3109         * aclocal.in (scan_file): Fix recommended info command line.
3110         * automake.in (handle_lib_objects): No need to prepend function
3111         name to prog_error message.
3112         (handle_tags): Add missing word and missing space in error
3113         message.
3114         (handle_dist): Add missing closing single quote in message.
3115         Line-wrap one long message for readability.
3116
3117 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3118             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3119
3120         Fix distcheck failure with distributed generated parallel tests.
3121         * tests/Makefile.am ($(parallel_tests)): Cope with $(srcdir)
3122         being different from the value at developer `make dist' time.
3123         * tests/defs.in: Protect against mutiple inclusion, by using ...
3124         ($am_defs_included): ... this new variable.
3125         ($srcdir): Do not compute, but simply define to `@abs_srcdir@'
3126         as substituted by configure.
3127         Report, suggestions and first fix by Ralf Wildenhues, final
3128         patch by Stefano Lattarini.
3129
3130 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3131
3132         Improve tests link*.test (enable `errexit' shell flag).
3133         * tests/link_c_cxx.test: Enable `errexit shell flag, and related
3134         changes.  Also, do not create useless source files.
3135         * tests/link_dist.test: Likewise.
3136         * tests/link_f90_only.test: Likewise.
3137         * tests/link_f_only.test: Likewise.
3138         * tests/link_fc.test: Likewise.
3139         * tests/link_fccxx.test: Likewise.
3140         * tests/link_fcxx.test: Likewise.
3141
3142 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3143
3144         Improve ext.test semantics, avoid OpenBSD sh errexit issue.
3145         * tests/ext.test: Inside shell compound command, use
3146         `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to
3147         fix failure with OpenBSD sh introduced with last patch.
3148         Actually ensure that a rule for .EXT.o is created for each
3149         known extension EXT.
3150
3151 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3152
3153         Enable `errexit' shell flag in some test scripts.
3154         * tests/dash.test: Enable `errexit' shell flag, and related
3155         changes.
3156         * tests/defun.test: Likewise.
3157         * tests/defun2.test: Likewise.
3158         * tests/dejagnu.test: Likewise.
3159         * tests/double.test: Likewise.
3160         * tests/distcom2.test: Likewise.
3161         * tests/empty2.test: Likewise.
3162         * tests/empty3.test: Likewise.
3163         * tests/empty4.test: Likewise.
3164         * tests/exdir.test: Likewise.
3165         * tests/ext.test: Likewise.
3166         * tests/extra.test: Likewise.
3167         * tests/extra2.test: Likewise.
3168         * tests/extra3.test: Likewise.
3169         * tests/extra4.test: Likewise.
3170         * tests/flibs.test: Likewise.
3171         * tests/fnoc.test: Likewise.
3172         * tests/fo.test: Likewise.
3173         * tests/instexec.test: Likewise.
3174         * tests/ltdeps.test: Likewise.
3175         * tests/nodep.test: Likewise.
3176         * tests/nodepcomp.test: Likewise.
3177         * tests/f90only.test: Likewise, and remove botched/obsoleted
3178         comments and unnecessary commands.
3179         * tests/fonly.test: Likewise, and remove botched/obsoleted
3180         comments and unnecessary commands.
3181         * tests/discover.test: Likewise, and made stricter.
3182
3183         Enable `errexit' shell flag in all tests cxx*.test.
3184         * tests/cxx.test: Enabled `errexit' shell flag, and related
3185         minor changes.
3186         * tests/cxxansi.test: Likewise.
3187         * tests/cxxcpp.test: Likewise.
3188         * tests/cxxlibobj.test: Likewise.
3189         * tests/cxxlink.test: Likewise.
3190         * tests/cxxo.test: Likewise.
3191
3192         Enable `errexit' shell flag in various tests.
3193         * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
3194         minor changes.
3195         * tests/acoutpt.test: Likewise.
3196         * tests/acoutqnl.test: Likewise.
3197         * tests/amassign.test: Likewise.
3198         * tests/ansi2.test: Likewise.
3199         * tests/ansi4.test: Likewise.
3200         * tests/badprog.test: Likewise.
3201         * tests/checkall.test: Likewise.
3202         * tests/clean.test: Likewise.
3203         * tests/colneq2.test: Likewise.
3204         * tests/colon.test: Likewise.
3205         * tests/colon5.test: Likewise.
3206         * tests/colon6.test: Likewise.
3207         * tests/comment.test: Likewise.
3208         * tests/compile_f90_c_cxx.test: Likewise.
3209         * tests/compile_f_c_cxx.test: Likewise.
3210         * tests/cond3.test: Likewise.
3211         * tests/cond6.test: Likewise.
3212         * tests/cond13.test: Likewise.
3213         * tests/conf2.test: Likewise.
3214         * tests/confvar.test: Likewise.
3215         * tests/confvar2.test: Likewise.
3216         * tests/cond8.test: Likewise, plus a cosmetic change.
3217         * tests/confh4.test: Likewise.  Also, add in the heading comments
3218         an excerpt from the original bug report which motivated the
3219         creation of this test, to make its purpose clearer.
3220
3221 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3222
3223         Rewrite manual to be gender-neutral.
3224         * doc/automake.texi (GNU Build System)
3225         (Standard Directory Variables, General Operation, CVS)
3226         (Hard-Coded Install Paths, Dependencies As Side Effects):
3227         Rewrite text to not contain gender-specific pronouns when
3228         speaking about developers or users, either by avoiding pronouns
3229         or by addressing them as `you' instead.
3230         * THANKS: Update.
3231         Report by Christina Gratorp.
3232
3233         * AUTHORS: Update.
3234
3235 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3236
3237         Tiny fix in silent8.test (display output of `make' command).
3238         * tests/silent8.test: Make sure that the captured output of `make'
3239         command is always displayed.
3240
3241         Make tests on user extensibility of silent-rules mode stricter.
3242         * tests/silent6.test: Made stricter w.r.t. the grepping of the
3243         output produced by `make'.
3244         * tests/silent7.test: Likewise.
3245
3246         Tests on silent-mode for C/Libtool made stricter.
3247         * tests/silent.test: Made stricter w.r.t. the grepping of the
3248         output produced by `make'.
3249         * tests/silent2.test: Likewise.
3250         * tests/silent4.test: Likewise.
3251         * tests/silent9.test: Likewise.
3252         * tests/silent3.test: Likewise, and add a final `make distclean'
3253         command to keep it better in sync with tests/silent{4,9}.test.
3254
3255         Improved test silent5.test.
3256         * tests/silent5.test: Remove by hand all generated C files after
3257         non-verbose builds, to ensure the following builds are clean.
3258         Try to clean and rebuild with the same verbosity and without
3259         removing generated sources in between, to check that this does
3260         not trigger a different set of rules.  Make grepping of make's
3261         output stricter.  Improved/added some comments.
3262
3263         New tests for Automake silent-mode with Fortran.
3264         * tests/silentf77.test: New test.
3265         * tests/silentf90.test: Likewise.
3266         * tests/Makefile.am (TESTS): Updated accordingly.
3267
3268         New test `silentcxx.test' (Automake silent-mode with C++).
3269         * tests/silentcxx.test: New test.
3270         * tests/Makefile.am (TESTS): Updated accordingly.
3271
3272         New test `silentyacc.test' (Automake silent-mode with Yacc).
3273         * tests/silentyacc.test: New test.
3274         * tests/Makefile.am (TESTS): Updated accordingly.
3275
3276         New test `silentlex.test' (Automake silent-mode with Lex).
3277         * tests/silentlex.test: New test.
3278         * tests/Makefile.am (TESTS): Updated accordingly.
3279
3280         Relax tests on silent-rules to cater to overly verbose makes.
3281         * tests/silent.test: When testing silent builds, don't fail if
3282         make's output simply contains the `mv' substring, but only if
3283         it contains the `mv ' substring (note the trailing space).
3284         * tests/silent2.test: Likewise.
3285         * tests/silent3.test: Likewise.
3286         * tests/silent4.test: Likewise.
3287         * tests/silent5.test: Likewise.
3288         * tests/silent9.test: Likewise.
3289
3290 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3291
3292         Extend test on `nostdinc' automake option.
3293         * tests/nostdinc.test: Enable `errexit' shell flag.  Related and
3294         unrelated minor changes.  Make the grepping of the generated
3295         Makefile.in slightly stricter.  Generate and run configure, so that
3296         the generated Makefile can be grepped too.
3297
3298 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3299
3300         Make gnupload portable to EBCDIC hosts.
3301         * lib/gnupload: Use literal newline as argument for 'tr' rather
3302         than \015, for EBCDIC hosts.  Also, avoid unportable nested
3303         double-quotes and backquotes.
3304         * THANKS: Update.
3305         Report from Eric Blake and Steve Goetze via gnulib.
3306
3307 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3308
3309         Fix Autoconf version required by Automake's configure.
3310         Automake configure script used to tell that automake required
3311         autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
3312         and if that was not found, it gave an error saying that Automake
3313         required configure 2.61a-341 or later.  This change should
3314         eliminate such inconsistencies.
3315         * configure.ac ($required_autoconf_version): New variable.
3316         Use it throughout.
3317
3318 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3319
3320         Fix truncated comment in Makefile.am.
3321         * Makefile.am (sc_tests_logs_duplicate_prefixes): Fix unfinished
3322         sentence in comment.
3323         Report by Stefano Lattarini.
3324
3325         Relax silent8.test for NetBSD make.
3326         * tests/silent8.test: Accept ./foo.info in output as well.
3327
3328         Fix unportable sed script in maintainer-check test.
3329         * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
3330         not contain semicolon after 'b' or brace commands, for NetBSD.
3331
3332         Wildcards are not portable to NetBSD make.
3333         * doc/automake.texi (Wildcards): Document portability issue.
3334         * tests/extra10.test, tests/extra11.test, tests/extra12.test:
3335         Require GNU make.
3336
3337 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3338
3339         Make test for configure.in vs. configure.ac stricter.
3340         * tests/configure.test: Use a configure.in file that provokes
3341         an automake error, to ensure configure.ac is preferred.
3342
3343         Avoid possible false negatives in dejagnu7.test.
3344         * tests/dejagnu7.test: Enable shell `errexit' flag.  Also, avoid
3345         unportable use of fgrep option `-e'.
3346
3347         Fix conflnk3.test to work with Solaris/Heirloom Sh.
3348         * tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
3349         instead of respectively `test -e FILE' and `test ! -e FILE',
3350         since Solaris Sh doesn't grok the latter.  Do not SKIP the test
3351         if the shell doesn't support `test -e'.
3352
3353 2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3354
3355         Warning and error message formatting cleanups.
3356         * aclocal.in (parse_arguments, main): Remove trailing period or
3357         newline in error or warning messages, avoid capitalization of
3358         the first word of a message.
3359         * automake.in (check_user_variables, handle_languages)
3360         (handle_ltlibraries, scan_aclocal_m4, scan_autoconf_config_files)
3361         (scan_autoconf_files, cond_stack_if, require_file_internal)
3362         (usage, generate_makefile, parse_arguments): Likewise.
3363         * lib/Automake/ChannelDefs.pm (set_strictness): Likewise.
3364         * lib/Automake/Configure_ac.pm (find_configure_ac): Likewise.
3365         * lib/Automake/Options.pm (set_strictness): Likewise.
3366         * lib/Automake/Rule.pm (define): Likewise.
3367         * lib/Automake/Variable.pm (define, variables_dump): Likewise.
3368         * tests/ltinstloc.test, tests/suffix11.test: Adjust expected
3369         error message.
3370         * lib/Automake/Channels.pm (setup_channel): Reword error message
3371         to be the same as in msg.
3372
3373         Fix placing of ellipses in English text and synopses.
3374         * Makefile.am: Be sure to add a space before `...' in natural
3375         language text.
3376         * automake.in (scan_autoconf_traces): Likewise.
3377         * lib/Automake/Rule.pm (define): Likewise.
3378         * lib/Automake/Variable.pm (define): Likewise.
3379         * lib/am/dejagnu.am: Likewise.
3380         * lib/am/progs.am: Likewise.
3381         * lib/gnupload (dprint, upload): Likewise.
3382         * tests/confdeps.test: Likewise.
3383         * tests/location.test: Adjust expected output.
3384         * automake.in (usage): In synopsis, use singular for OPTION,
3385         * remove space before ellipsis.
3386         * aclocal.in (usage): Likewise.  Also, fix indentation.
3387
3388         Fix more duplicate message prefixes.
3389         * lib/Automake/XFile.pm (seek): Do not prepend $me.
3390         ($me): Remove now-unused package-global.
3391         * aclocal.in (check_acinclude): Remove duplicate 'warning: '
3392         prefix.
3393
3394         Fix typo in manual.
3395         * doc/automake.texi (Simple Tests using parallel-tests): Add
3396         missing closing parenthesis.
3397
3398         Fix leftover call to removed function macros_dump.
3399         * automake.in (read_main_am_file): Call variables_dump, not
3400         macros_dump.  Print actual error before list of variables.
3401
3402 2010-04-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3403
3404         Minor improvements in comments of test `silent3.test'.
3405         * tests/silent3.test: Tell to keep it in sync with `silent9.test'
3406         too.
3407
3408 2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3409
3410         testsuite: ensure verbose printing of captured output.
3411         * tests/acloca14.test, tests/acloca18.test, tests/aclocal.test,
3412         tests/fort2.test, tests/help.test, tests/missing3.test,
3413         tests/missing6.test: Print captured stdout or stderr before
3414         grepping it.
3415
3416 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3417
3418         Make test badopt.test stricter (by enabling `set -e').
3419         * tests/badopt.test: Add call to `set -e'.  Due to this change,
3420         an unexpected failure in the call to `$ACLOCAL' (whose outcome
3421         was previously unchecked) would cause the whole test to fail.
3422         Also, bumped the copyright years.
3423
3424         Make test for configure.in vs. configure.ac stricter.
3425         * tests/configure.test: Use a configure.in file that provokes
3426         an automake error, to ensure configure.ac is preferred.
3427
3428         Use `set -e' in confsub.test (avoids possible false negatives).
3429         * tests/confsub.test: Enable shell `errexit' flag, and related
3430         changes (this helps avoiding some possible minor false negatives).
3431         Also, bumped copyright years.
3432
3433 2010-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3434
3435         Fix -Werror handling for presence of configure.in and configure.ac.
3436         * lib/Automake/Variable.pm (Automake::Variable): Do not initialize
3437         $configure_ac at the global level, before command-line arguments
3438         have been parsed.
3439         (require_variables): Initialize it here.
3440         * tests/configure.test: New test.
3441         * tests/Makefile.am: Update.
3442         Report by Stefano Lattarini.
3443
3444 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3445
3446         Avoid possible false negatives in confh5.test.
3447         * tests/confh5.test: Enable shell `errexit' flag, and bumped
3448         copyright years.  Due to this change, any unexpected failure
3449         in calls to $ACLOCAL, $AUTOMAKE, $AUTOCONF or $AUTOHEADER, or
3450         a failure in grepping expected text in output files should now
3451         cause the whole test to fail.
3452
3453 2010-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
3454
3455         Fixed typo in POD documentation of Automake::Channels.
3456         * lib/Automake/Channels.pm: Fixed typo in POD documentation:
3457         @<...> was used instead of C<...>.
3458
3459 2010-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
3460
3461         Refactor tests on Automake TESTS color output.
3462         * tests/color.test: Tests using the expect program moved out to...
3463         * tests/color2.test: ... this new file.
3464         * tests/Makefile.am (TESTS): Extended accordingly.
3465
3466 2010-04-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3467
3468         Fix typos in comments in test confh5.test
3469         * tests/confh5.test: Fix a couple of typos in comments.
3470
3471         Avoid possible false negatives in canon-name.test.
3472         * tests/canon-name.test: Enable shell `errexit' flag.  Improve
3473         test description.
3474
3475 2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3476
3477         Print 'warnings are treated as errors' note if needed.
3478         * lib/Automake/Channels.pm: Fix typo in comment.
3479         (_print_message): If -Werror is enabled, print a 'warnings are
3480         treated as errors' note before the first such warning.
3481         * tests/warnopts.test: Adjust comment to mention expected warning.
3482         Adjust code to ignore 'warnings are treated as errors' note.
3483         * tests/location.test: Adjust expected output with -Werror.
3484         * tests/werror4.test: New test.
3485         * tests/Makefile.am: Update.
3486         * NEWS: Update.
3487
3488         Ensure we don't print 'warning:' or 'error:' twice.
3489         * Makefile.am (sc_ensure_testsuite_has_run): New helper rule.
3490         (sc_tests_logs_duplicate_prefixes): New rule, to check for
3491         wrong-looking warning and error messages in the test suite logs.
3492         * aclocal.in (scan_configure_dep, scan_file): Remove duplicate
3493         `warning: ' prefix.
3494         * tests/vars3.test: Rename variable to avoid false positive.
3495
3496         Prepend type to warning, error, and fatal messages.
3497         For the first part of messages of types `error' or `fatal',
3498         prepend `error: ' to the message.  Prepend `warning: ' to
3499         warning messages, whatever the setting of -Werror.
3500         * lib/Automake/Channels.pm (partial): Move up definition.
3501         (_format_message): Emit `header' and `footer' strings only with
3502         the first resp. last part of a set of partial messages.
3503         * lib/Automake/ChannelDefs.pm: Add missing '1;' statement at the
3504         end of the module.
3505         (Automake::ChannelDefs): Setup warning channels with header
3506         `warning: ', error and fatal messages with header `error: '.
3507         * tests/condinc2.test, tests/ltinstloc.test: Adjust expected
3508         error messages.
3509         * tests/comment5.test: Likewise.  Also, include stack notes
3510         should not start with `error:'.
3511         * tests/location.test: Likewise.  Also, try both -Werror and
3512         -Wno-error.
3513         * NEWS: Update.
3514         Report by Bruno Haible.
3515
3516         Fix capitalization of error messages, reword one message.
3517         * lib/Automake/Variable.pm (define): Do not capitalize the first
3518         word in the error message.
3519         * automake.in (require_file_internal): Likewise.  Also, reword
3520         and line-wrap for better readability.
3521         * tests/distcom7.test, tests/pluseq5.test, tests/pluseq9.test:
3522         Adjust tests.
3523
3524         Fix connected warnings about obsolete exeext override.
3525         * lib/Automake/Rule.pm (define): Merge two warnings that belong
3526         together, by setting the 'partial' flag for the first one.
3527
3528         Fix per-Makefile.am setting of -Werror.
3529         Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
3530         Makefile.am would carry over to other Makefile.am files
3531         treated afterwards by the same thread, causing inconsistent
3532         and unstable exit status values.
3533         * lib/Automake/Channels.pm (dup_channel_setup)
3534         (drop_channel_setup): Save and restore the setting of
3535         $warnings_are_errors.
3536         * tests/werror3.test: New test.
3537         * tests/Makefile.am: Adjust.
3538         * NEWS: Update.
3539
3540 2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
3541
3542         Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
3543         * tests/confh5.test: In the generated Makefile.am: do not use
3544         `test ! -e FILE' to check for the non-existence of a file, since
3545         that is not supported by Solaris/Heirloom Sh.
3546
3547         Make test `aclocal3.test' stricter.
3548         * tests/aclocal3.test: Add call to `set -e'.  Fail if $ACLOCAL
3549         succeds unexpectedly.
3550
3551         Add tests checking that symlinks are resolved by `make dist'.
3552         * tests/distlinks.test: New test.
3553         * tests/Makefile.am (TESTS): Updated accordingly.
3554         Suggested by observations from Ralf Wildenhues.
3555
3556 2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3557
3558         Use -9 for maximum xz compression with dist-xz.
3559         * lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
3560         * NEWS, THANKS: Update.
3561         Report by Pavel Sanda.
3562
3563 2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
3564
3565         Avoid possible false negatives in cond46.test.
3566         * tests/cond46.test: Enable shell `errexit' flag (and bumped
3567         copyright years).  Due to this change, the testcase should now
3568         fail on unexpected failures in calls to $ACLOCAL/$AUTOMAKE (whose
3569         outcomes were previously unchecked), and on failures in grepping
3570         the expected diagnostic in Automake stderr.
3571
3572 2010-04-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
3573
3574         Generated tests are now just a thin layer around other tests.
3575         * tests/Makefile.am: Rewrite the rule to generate the `*-p.test'
3576         test scripts so that any of them simply includes the corresponding
3577         `*.test' script (after setting `$parallel_tests' to `yes').
3578         * tests/.gitignore: Add wildcard for temporary files used in the
3579         generation of `*-p.test' tests.
3580
3581 2010-03-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
3582
3583         Avoid an unportable use of `$status' shell variable.
3584         * Makefile.am (path-check): Don't use the `$status' shell variable
3585         in the target's rules, as it's special in Zsh (equivalent to `$?',
3586         and readonly).
3587
3588         Avoid another use of `chmod -R'.
3589         * Makefile.am (path-check): To be safe, do not use `chmod -R' on
3590         $(distdir) before removing it (as Solaris `chmod -R' touches
3591         symlink targets).  Instead, use the cleanup strategy used in
3592         distdir.am.
3593
3594 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3595
3596         Remove uses of @acronym and @sc.
3597         * doc/automake.texi (Public Macros, Limitations on File Names):
3598         Remove all usage of @acronym and @sc in the manual.
3599         Suggested by Karl Berry.
3600
3601 2010-03-13  Karl Berry  <karl@freefriends.org>
3602
3603         GNU hello uses fdl.texi, not gpl.texi.
3604         * doc/automake.texi (Texinfo): Adjust example to upstream
3605         change.
3606
3607 2010-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3608
3609         Formatting cleanups in macro comments.
3610         * automake.in, lib/Automake/Channels.pm,
3611         lib/Automake/FileUtils.pm, lib/Automake/Options.pm,
3612         lib/Automake/Variable.pm, lib/Automake/XFile.pm,
3613         m4/options.m4, m4/substnot.m4: Fix macro comment format.
3614
3615 2010-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
3616             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3617
3618         Avoid generation of `tests/defs-p' file.
3619         * tests/defs.in: In the generated `configure.in' snippet: call
3620         `AM_INIT_AUTOMAKE' with the `parallel-tests' option if the shell
3621         variable `parallel_tests' is set to `yes'.
3622         * tests/Makefile.am (defs-p): Target removed.
3623         (check_SCRIPTS): Removed `defs-p'.
3624         (clean-local-check): Do not unlink `defs-p' anymore.
3625         ($(parallel_tests)): Transformation rules for the test scripts
3626         adjusted.
3627         * tests/gen-parallel-tests: Selection rules for the test
3628         scripts adjusted.
3629         * tests/parallel-tests.test: Set `$parallel_tests' to `yes'
3630         then include `./defs' (rather than simply including `./defs-p').
3631         * tests/parallel-tests2.test: Likewise.
3632         * tests/parallel-tests3.test: Likewise.
3633         * tests/parallel-tests4.test: Likewise.
3634         * tests/parallel-tests5.test: Likewise.
3635         * tests/parallel-tests6.test: Likewise.
3636         * tests/parallel-tests7.test: Likewise.
3637         * tests/parallel-tests8.test: Likewise.
3638         * tests/parallel-tests9.test: Likewise.
3639         * tests/parallel-tests10.test: Likewise.
3640         * tests/README (Section "Writing Test Cases" subsection "Do"):
3641         Adjusted the parts referring to tests checking `parallel-tests'
3642         behaviour.  Some other minor related improvements.
3643         * tests/.gitignore (defs-p): Removed.
3644
3645 2010-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
3646
3647         Remove redundant unset of variable TESTS from some test scripts.
3648         * tests/color.test: Do not unset the `TESTS' variable, as it's
3649         already unset in the `defs' file.
3650         * tests/check5.test: Likewise.
3651         * tests/check8.test: Likewise.
3652         * tests/check9.test: Likewise.
3653         * tests/check10.test: Likewise.
3654         * tests/check11.test: Likewise.
3655         * tests/parallel-tests.test: Likewise.
3656         * tests/parallel-tests3.test: Likewise.
3657         * tests/parallel-tests4.test: Likewise.
3658         * tests/parallel-tests5.test: Likewise.
3659         * tests/parallel-tests6.test: Likewise.
3660         * tests/parallel-tests7.test: Likewise.
3661
3662 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3663
3664         Fix cscope test on systems without working Fortran compiler.
3665         * tests/cscope.test: Skip remainder of test if `$MAKE all' fails.
3666         * THANKS: Update.
3667         Report by Peter Johansson.
3668
3669 2010-02-24  Antonio Diaz Diaz  <ant_diaz@teleline.es>  (tiny change)
3670             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3671
3672         Add lzip compression support.
3673         * automake.in (handle_dist): Recognize dist-lzip.
3674         (make_paragraphs): Map LZIP to dist-lzip.
3675         * doc/automake.texi (Dist): Add dist-lzip.
3676         (Options): Likewise.
3677         * lib/Automake/Options.pm (_process_option_list): Add dist-lzip.
3678         * lib/am/distdir.am
3679         (dist dist-all): Add command to create an lzip-compressed tarball.
3680         (distcheck): Handle lzip-compressed tarballs just like the others.
3681         * tests/defs.in: Test for lzip, too.
3682         * tests/lzip.test: New file, based on nogzip.test.
3683         * tests/Makefile.am (TESTS): Add lzip.test.
3684         * NEWS: Update.
3685
3686 2010-02-22  Karl Berry  <karl@gnu.org>
3687
3688         Improve help message of mdate-sh.
3689         * mdate-sh: mention actual output format in help message.
3690
3691 2010-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3692
3693         Deprecate dist-lzma in favor of dist-xz.
3694         * doc/automake.texi (The Types of Distributions, Options):
3695         Adjust text to reflect renaming of lzma to xz.
3696         * NEWS: Update.
3697         Missing deprecation noted by Antonio Diaz Diaz.
3698
3699 2010-02-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3700
3701         Add tests about support of wildcards in EXTRA_DIST.
3702         * tests/extra10.test: New test, check basic support of wildcards
3703         in EXTRA_DIST.
3704         * tests/extra11.test: New test, check more complex usage of
3705         wildcards in EXTRA_DIST.
3706         * tests/extra12.test: New test, check usage of wildcards in
3707         EXTRA_DIST when $builddir != $srcdir.
3708         * tests/Makefile.am (TESTS): Updated accordingly.
3709         Necessity of these new tests suggested by Braden McDaniel
3710         and Ralf Wildenhues.
3711
3712 2010-02-08  Simon Josefsson  <simon@josefsson.org>
3713
3714         Fix copyright statement in gnupload script.
3715         * lib/gnupload: Fix copyright statement.
3716
3717 2010-02-06  Dmitry V. Levin  <ldv@altlinux.org>  (tiny change)
3718             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3719
3720         Fix exit status of signal handlers in shell scripts.
3721         The value of `$?' on entrance to signal handlers in shell scripts
3722         cannot be relied upon, so set the exit code explicitly to
3723         128 + SIG<SIGNAL>.
3724         * lib/am/check.am (am__check_pre): Use `exit 143' in signal handler.
3725         * lib/elisp-comp: Likewise.
3726         * lib/install-sh: Likewise.
3727         * lib/ylwrap: Likewise.  Also, fix script to trap signal 13, not 3.
3728         * NEWS, THANKS: Update.
3729         Bug report, analysis, and initial patch by Dmitry V. Levin.
3730
3731 2010-02-06  Karl Berry  <karl@gnu.org>
3732
3733         Improve gnupload usage text.
3734         * gnupload (usage): Shorten to make more likely to fit on a tty
3735         line.  Mention CMD in the synopsis.  With ..., plural is implied.
3736
3737 2010-01-28  Christos Kontas  <xakon@yahoo.com>  (tiny change)
3738
3739         Fix some typos in the manual
3740         * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
3741
3742 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3743
3744         Fix silent-rules output for disabled dependency tracking.
3745         * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
3746         expansion code to also work in the case where %AMDEP% expands
3747         to FALSE at config.status time, using new substitution string
3748         %VERBOSE-NODEP%.
3749         * automake.in (verbose_nodep_flag): New function, appending
3750         `@am__nodep@' to the verbose-variable name.
3751         (handle_languages): If dependencies are not disabled, use it to
3752         set %VERBOSE-NODEP%.
3753         * m4/depend.m4: Substitute am__nodep as '_no', so the second
3754         verbose-variable will always expand to an empty string, if
3755         dependencies are enabled.
3756         * tests/silent5.test: Also test --disable-dependency-tracking;
3757         also test per-target flags for non-C language files.
3758         * tests/silent9.test: New test, like silent4.test but disable
3759         dependency tracking.
3760         * tests/Makefile.am: Adjust.
3761         * NEWS, THANKS: Update.
3762         Report by Dmitry V. Levin <ldv@altlinux.org>.
3763
3764 2010-01-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
3765
3766         Slighty improve tests acoutbs.test and acoutbs2.test.
3767         * tests/acoutbs2.test: Enable `errexit' shell flag.  Check that
3768         autoconf and configure work, that the file `zot' is created by
3769         configure, and that no file containing a backslash in its name is
3770         created.
3771         * tests/acoutbs.test: Likewise, plus updated copyright years.
3772
3773         Fix test acoutbs2.test.
3774         * tests/acoutbs2: In the generated configure.in: add proper calls
3775         to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
3776         PACKAGE and VERSION. Add a call to aclocal before calling automake.
3777         Updated copyright years.
3778         * tests/Makefile.am (XFAIL_TESTS): Removed acoutbs2.test.
3779
3780         Add forgotten test scripts to $(TESTS).
3781         * tests/Makefile.am (TESTS): Added test scripts present on the
3782         filesystem, which were erroneously left out from $(TESTS):
3783         acoutbs2.test, badopt.test, extra2.test.
3784         (XFAIL_TESTS): Added acoutbs2.test.
3785
3786 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3787
3788         Sync auxiliary files from upstream.
3789         * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub:
3790         Sync from upstream.
3791
3792         Bump copyright years.
3793         * aclocal.in (write_aclocal, version): Bump copyright years.
3794         * automake.in (gen_copyright, version): Likewise.
3795         * doc/automake.texi: Likewise.
3796
3797         Rotate ChangeLog.
3798         * ChangeLog.09: New file, rotated from ...
3799         * ChangeLog: ... here.
3800         * Makefile.am (EXTRA_DIST): Distribute ChangeLog.09.
3801
3802 -----
3803
3804 Copyright (C) 2010  Free Software Foundation, Inc.
3805
3806 Copying and distribution of this file, with or without modification, are
3807 permitted provided the copyright notice and this notice are preserved.
3808
3809 ;; Variables:
3810 ;; coding: utf-8
3811 ;; End: