1 2010-11-15 Peter Rosin <peda@lysator.liu.se>
3 lib/compile: update scriptversion.
5 compile: clear the `eat' variable earlier.
6 * lib/compile: Clear the `eat' variable earlier.
7 * tests/compile3.test: Prevent regressions.
9 2010-10-07 Peter Rosin <peda@lysator.liu.se>
11 depcomp: add new one-pass depmode for MSVC 7 and later.
12 * lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
13 make use of the -showIncludes option added in MSVC 7.
14 * m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
15 similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
16 support the -o option.
18 2010-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20 tests: fix ar-lib.test for echo that interprets backslashes.
21 * tests/ar-lib.test: Use printf instead of echo. Avoid test -a.
24 2010-09-21 Peter Rosin <peda@lysator.liu.se>
26 compile: implement library search to support MSVC static linking
27 * lib/compile (func_cl_wrapper): Implement library search and
28 -static option so that the user can select whether to prefer
29 dll import libraries or static libraries. This enables MSVC to
30 link against dlls generated by libtool without requiring libtool
31 or workarounds such as -lfoo.dll etc. Makes the tests/static.at
32 test case in libtool pass.
33 * tests/compile3.test: Don't trip up if there happens to exist
34 a "foo" library in the library search path.
35 * tests/compile6.test: New test, verifying the library search.
36 * tests/Makefile.am (TESTS): Update.
38 2010-09-02 Peter Rosin <peda@lysator.liu.se>
40 Make ar-lib support backslashed files in archives.
41 * lib/ar-lib: If an archive member contains a backslash, make sure
42 it is escaped when the archive member is extracted.
43 * tests/ar-lib.test: Test the above.
45 2010-08-31 Peter Rosin <peda@lysator.liu.se>
47 Do file name conversion for object files in the compile wrapper.
48 * lib/compile (func_cl_wrapper): Do file name conversion for object
49 files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
50 * tests/compile4.test: Test the above.
52 2010-08-16 Peter Rosin <peda@lysator.liu.se>
54 Optimize compile script on MSYS.
55 * lib/compile (func_file_conv): Add new argument 'lazy' which
56 takes an optional list of conversion types where the requested
57 conversion isn't needed.
58 (func_cl_wrapper): Take advantage of the above for cases where
59 MSYS is doing the conversion for us.
60 Suggested by Ralf Wildenhues.
62 2010-08-16 Peter Rosin <peda@lysator.liu.se>
64 Support more C++ file extensions for MSVC in the compile script.
65 * lib/compile (func_cl_wrapper): MSVC only recognizes the .cpp
66 file extension as C++, unless it's given a hint. So hint about
67 .cc, .CC, .cxx, .CXX, c++ and C++. Also do path conversion on
68 .c, .cpp, .CPP, .lib, .LIB and .Lib files.
69 * tests/compile3.test: Test the C++ hinting.
71 2010-08-12 Peter Rosin <peda@lysator.liu.se>
73 Enable the use of "link -lib" as the wrapped archiver.
74 * lib/ar-lib: Enable the use of "link -lib" as the wrapped
75 archiver, as well as allowing some other options to be passed
76 through to the wrapped archiver.
77 * tests/ar-lib.test: Test the above.
79 2010-08-06 Peter Rosin <peda@lysator.liu.se>
81 Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
82 * lib/ar-lib: New auxiliary script.
83 * lib/Makefile.am: Add above.
84 * tests/ar-lib.test: New test.
85 * tests/Makefile.am: Add above.
86 * automake.in (@common_files): Distribute the 'ar-lib' script.
87 * doc/automake.texi (Auxiliary Programs): Mention the new
89 (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
92 2010-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94 Fix shell pattern negation in compile script.
95 * lib/compile (func_file_conv): Use `!' not `^' for pattern
98 2010-08-01 Peter Rosin <peda@lysator.liu.se>
100 Wrap some MSVC options in the compile script.
101 * lib/compile: MSVC supports naming the output file, the option
102 is just not called -o, so transform -o into the appropriate form
103 for MSVC. Also wrap some other options while at it (-L, -l, -Wl,
104 -Xlinker and -I) and convert file names to windows form where
105 needed for those options to make MSVC more usable in an
106 autotooled environment.
107 * doc/automake.texi (Auxiliary Programs): Document the above
108 extension of the compile script.
110 * tests/defs.in: New required entry 'cl'.
111 * tests/compile3.test: New test.
112 * tests/compile4.test: New test.
113 * tests/compile5.test: New test.
114 * tests/Makefile.am: Update.
116 2010-07-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
118 Add example git work flow; discuss merge --log in HACKING.
120 Suggestion by Stefano Lattarini.
122 Add more hints for debugging make rules.
123 * doc/automake.texi (Debugging Make Rules): Show command to find
124 out expanded values of variables; point to makefile debugger.
126 Prompted by suggestion from Ludovic Courtès and Andy Wingo.
128 2010-07-27 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
130 Fix typo in the manual.
131 * doc/automake.texi (Scripts): Fix typo.
133 2010-07-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
135 Document current policy for development with git.
136 * HACKING (Working with git): Overhaul.
137 Prompted by suggestion from Stefano Lattarini.
139 Fix AM_COND_IF for gone-invalid condition shell expression.
140 * m4/cond-if.m4 (AM_COND_IF): test contents of $COND_TRUE
141 variable, rather than re-evaluating the shell expression for
143 * tests/cond40.test: Extend test.
146 Avoid syntax error if IF-TRUE part of AM_COND_IF expands empty.
147 * m4/cond-if.m4 (AM_COND_IF): Ensure IF-TRUE part is never empty
148 to avoid shell syntax error if the m4 expansion is empty.
149 * tests/cond40.test: Enhance test.
151 Coverage: bogus option to AM_INIT_AUTOMAKE.
152 * tests/init2.test: New test.
153 * tests/Makefile.am: Update.
155 2010-07-21 Stefano Lattarini <stefano.lattarini@gmail.com>
157 Modernize and improve test scripts `subdir*.test'.
158 * tests/subdir.test: Enable `errexit' shell flag, and related
159 changes. Use the `configure.in' stub created by `./defs',
160 rather than writing one from scratch.
161 * tests/subdir2.test: Likewise.
162 * tests/subdir4.test: Likewise.
163 * tests/subdir3.test: Enable `errexit' shell flag, and related
164 changes. Do not create useless dummy source files.
165 * tests/subdir5.test: Make grepping of Makefile.in (in topdir
166 and in subdirs) stricter. Some minor changes to keep it more
167 in sync with the related test `subdir8.test'.
168 * tests/subdir8.test: Likewise (but with the related test being
169 `subdir5.test' here).
170 * tests/subdir6.test: Cosmetic change in spacing.
171 * tests/subdir9.test: Define and use new variable `$distdir'. Add
172 trailing `:' command.
173 * tests/subdir10.test: Cosmetic consistency-related change.
174 * tests/subdirbuiltsources.test: Cosmetic changes in spacings.
175 (configure.in): Use stub created by `./defs', rather than writing
176 it from scratch. Do not use obsoleted and/or deprecated forms of
177 autoconf/automake macros.
179 Modernize and improve test scripts `dist*.test'.
180 * tests/distcleancheck.test: Do not add useless `-e' option to
181 a $MAKE call. Extend test by grepping stderr of make.
182 * tests/distcom2.test: Do not run the same test script on the
183 Makefile.in twice, but save its output in an intermediate file
184 instead. Make grepping of DIST_COMMON definition stricter.
185 Display the content of more files, to ease debugging. Add a
186 trailing `:' command. Improved heading comments w.r.t. sister
188 * tests/distcom6.test: Likewise, and avoid to uselessly run
190 * tests/distcom3.test: Ensure verbose printing of captured stdout
191 and stderr. Make grepping of captured stderr stricter. Also,
192 add trailing `:' command.
193 * tests/distcom4.test: Declare the target `test' in the generated
194 Makefile.am as `.PHONY'. Display content of more files, to ease
195 debugging. Add trailing `:' command.
196 * tests/distcom5.test: Likewise. Also, factor out common sed
197 script in subroutine `extract_distcommon'.
198 * tests/distcom7.test: Prefer cat + here-doc over echo to write
199 test Makefile.am files. Add a trailing `:' command.
200 * tests/distname.test: Prefer `gzip -d' over `gunzip'. Move the
201 call to `set -e' earlier. Be stricter and more verbose in the
202 checking of the generated tarball.
203 (configure.in): Use the stub provided by ./defs, instead of
204 writing it from scratch. Avoid obsoleted constructs. Remove
205 useless call to `AM_PROG_CC_C_O'.
206 * tests/distdir.test: Various minor improvements/normalizations.
207 * tests/distlinks.test: Likewise.
209 2010-07-18 Stefano Lattarini <stefano.lattarini@gmail.com>
211 Improve and extend test cond5.test.
212 * tests/cond5.test: Do not blindly sleep 60 seconds before polling
213 the background automake process, but poll it every 10 seconds for
214 at most 30 times (this makes the test both faster on good machines,
215 and more resilient to spurious timeout-due failures when in low
216 priority or on havily-loaded systems).
217 Check also that automake writes the expected error messages on the
219 Enable `errexit' flag, and related changes.
220 Rely on the `configure.in' stub created by `./defs', rather than
221 writing one from scratch.
223 2010-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
225 Update program --help output to match current GCS.
226 * configure.ac: Set and substitute PACKAGE_URL if AC_PACKAGE_URL
227 is not defined, for compatibility to Autoconf < 2.64.
228 * Makefile.am (do_subst): Substitute PACKAGE_BUGREPORT and
230 (sc_diff_automake_in_automake): Update number of diff lines for
231 additional substitutions.
232 * aclocal.in (usage): Use PACKAGE_BUGREPORT. Point to Automake
233 home page and GNU general help page.
234 * automake.in (usage): Likewise.
235 * doc/automake.texi: New flag PACKAGE_BUGREPORT, to factor email
237 (Introduction, Creating amhello, amhello Explained, Options):
239 * lib/Automake/Makefile.am (do_subst): Substitute
241 * lib/Automake/Config.in ($PACKAGE_BUGREPORT): New global.
242 * lib/Automake/ChannelDefs.pm: Use it for footer of fatal
245 Clean up @var handling in the manual.
246 * doc/automake.texi: Throughout the manual, lower-case @var
247 names, replace a few one-character names.
249 2010-06-26 Stefano Lattarini <stefano.lattarini@gmail.com>
251 Fix typo-related bug in test script silent5.test.
252 * tests/silent5.test: Use $EGREP, not $GREP (which is not even
255 Tests: remove useless repetitions of `foreign' automake option.
256 * tests/multlib.test (configure.in): Remove useless use of
257 `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is
258 already in $AUTOMAKE by default, so no point in repeating it).
259 * tests/subobj10.test: Likewise.
260 * tests/subobj9.test: Likewise.
261 * tests/lex3.test (Makefile.am): Similarly, remove useless use
262 of `foreign' option in AUTOMAKE_OPTIONS.
263 * tests/lex5.test: Likewise.
264 * tests/pr279.test: Likewise.
265 * tests/pr279-2.test: Likewise.
266 * tests/specflg3.test: Likewise.
267 * tests/target-cflags.test: Likewise.
269 Drop useless requirement "gzip" in lex5.test.
270 * tests/lex5.test ($required): Do not list "gzip", as it's
273 2010-06-24 Stefano Lattarini <stefano.lattarini@gmail.com>
275 Fix bugs in test script silent5.test.
276 * tests/silent5.test: Fixed a nasty bug (due to the use of grep
277 instead of egrep) that could have led to false negatives.
279 2010-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
281 Add a test checking that distributed broken symlinks cause
283 * tests/distlinksbrk.test: New test.
284 * tests/Makefile.am (TESTS): Updated.
286 2010-06-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
288 Fix minor testsuite issues, update docs, for Yacc/Lex changes.
289 * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
290 and AM_LFLAGS, LFLAGS in the order in which they now appear in
293 * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
294 tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
295 please maintainer-check. Ensure generated C files contain a
296 declaration, to please compilers.
298 2010-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
300 Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
302 * automake.in: Fix registration of languages "Lex", "Lex (C++)",
303 "Yacc" and "Yacc (C++)", so that $(LFLAGS) has precedence over
304 $(AM_LFLAGS) and $(YFLAGS) has precedence over $(AM_YFLAGS).
305 * tests/Makefile.am (XFAIL_TESTS): Updated accordingly.
308 New tests, exposing bugs in Automake Yacc/Lex support w.r.t.
309 $(AM_FLAGS) and $(FLAGS) precedence.
310 * tests/lflags.test: New test, check that user $(LFLAGS) takes
311 precedence over automake (AM_LFLAGS) and (foo_LFLAGS). Still
313 * tests/lflags2.test: Likewise.
314 * tests/yflags.test: New test, check that user $(YFLAGS) takes
315 precedence over automake (AM_YFLAGS) and (foo_YFLAGS). Still
317 * tests/yflags2.test: Likewise.
318 * tests/Makefile.am (TESTS, XFAIL_TESTS): Extended accordingly.
320 2010-06-20 Stefano Lattarini <stefano.lattarini@gmail.com>
322 Modernize, improve and extend tests `suffix*.test'.
323 * tests/suffix3.test: Enable `errexit' shell flag, and related
325 * tests/suffix4.test: Likewise.
326 * tests/suffix6.test: Likewise, and do not create a useless dummy
328 * tests/suffix7.test: Likewise.
329 * tests/suffix5.test: Enable `errexit' shell flag, and related
330 changes. Make grepping of Makefile.in slighty stricter.
331 * tests/suffix.test: Enable `errexit' shell flag, and related
332 changes. Also, do not redirect grep output to /dev/null, as this
333 might unmotivatedly hide useful information.
334 * tests/suffix2.test: Move setting of `errexit' shell flag earlier
335 in the script (just after inclusion of ./defs). Use a more
336 idiomatic way to count text occurrences in Makefile.in with
337 grep. Do not create useless dummy source files.
338 * tests/suffix10.test: Ensure verbose printing of captured make
339 stdout. Minor cosmetic changes.
340 * tests/suffix8.test: Likewise. Also, drop useless call to the
341 env(1) utility, and make grepping of make output stricter by using
342 $FGREP rather than plain grep.
343 * tests/suffix11.test: Likewise.
344 * tests/suffix12.test: Likewise.
345 * tests/suffix9.test: Prefet cat + here-doc over echo to append to
346 the `configure.in' stub. Cosmetic changes.
347 * tests/suffix13.test: Cosmetic spacing change.
349 2010-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
351 Add useful comment in test script ext.test.
352 * tests/ext.test: Add a comment explaining why an apparently
353 useless `if' statement is indeed required.
355 Add useful comment in test script obsolete.test.
356 * tests/obsolte.test: Add a comment explaining why we need
357 an indirection in adding $AUTOUPDATE to $required.
359 Normalize whitespaces in 'tests/Makefile.am'.
360 * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
361 definition of this variable.
363 2010-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
365 Remove a couple of unneeded conditionals from tests.
366 * tests/pr243.test, tests/pr266.test, tests/strip.test: No need
367 for the FOOTEST conditional.
369 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
371 Modernize, improve and/or fix various test scripts.
372 * tests/symlink3.test: Deleted, separated into two new, more
374 * tests/forcemiss.test: ... this one ...
375 * tests/forcemiss2.test: ... and this one.
376 * tests/symlink2.test: Enable `errexit' shell flag, make test
377 stricter, and skip it if symlink creation is not supported.
378 * tests/postproc.test: Enable `errexit' shell flag, related
379 changes, and a couple of unrelated cosmetic changes.
380 * tests/recurs.test: Use the `configure.in' stub created by
381 `./defs', rather than writing one from scratch. Make grepping
382 of Automake stderr slighty stricter.
383 * tests/substtarg.test: Likewise.
384 * tests/strip.test: Likewise, and move the call to `set -e'
385 earlier (just after the inclusion of `./defs'). Also, make sure
386 that the script installed by `make install-script' is equal to
388 * tests/substref.test: Use the `configure.in' stub created by
389 `./defs', rather than writing one from scratch. Move the call
390 to `set -e' earlier (just after the inclusion of `./defs').
391 Avoid to explicitly export CC for configure (that's already done
392 in ./defs). Avoid potential problems with unpredictable make
393 output. Finally, make grepping of Makefile.in stricter.
394 * tests/substre2.test: Ensure verbose printing of the captured
395 make's output, and make its grepping slighty stricter.
396 * tests/cygwin32.test: Enable `errexit' shell flag, and related
397 changes. Also, do not create useless dummy source/data files.
398 * tests/scripts.test: Likewise.
399 * tests/recurs2.test: Likewise. Also, use the `configure.in'
400 stub created by `./defs'.
401 * tests/Makefile.am (TESTS): Updated.
403 Modernize, improve and/or fix tests `pluseq*.test.
404 * tests/pluseq5.test: Append to configure.in using cat with an
405 here-doc, not using echo.
406 * tests/pluseq10.test: Make sure that the captured output of
407 `make' command is always displayed. Where possible, use $FGREP
408 instead of grep (this change makes some checks slighty stricter).
409 * tests/pluseq8.test: Enable `errexit' shell flag, with related
411 * tests/pluseq.test: Likewise. Also, do not create useless dummy
412 data files, and use better m4 quoting in generated configure.in.
413 * tests/pluseq2.test: Likewise. Also, append to configure.in
414 using cat with an here-doc, not using echo.
415 * tests/pluseq3.test: Likewise.
416 * tests/pluseq4.test: Likewise.
417 * tests/pluseq6.test: Likewise.
418 * tests/pluseq7.test: Do not create useless dummy source file.
419 * tests/pluseq9.test: Slighty extended w.r.t. the grepping of
420 Automake stderr. Some unrelated cosmetic changes.
422 Testsuite: ensure verbose printing of captured stderr.
423 * tests/acloca18.test: Print captured stderr before either failing
424 or grepping it. Be sure to send captured stderr to stderr, not to
426 * tests/ansi3b.test: Likewise.
427 * tests/cond39.test: Likewise.
428 * tests/configure.test: Likewise.
429 * tests/missing3.test: Likewise.
430 * tests/missing6.test: Likewise.
431 * tests/output-order.test: Likewise.
432 * tests/pr300-ltlib.test: Likewise.
433 * tests/python6.test: Likewise.
434 * tests/python7.test: Likewise.
435 * tests/python8.test: Likewise.
436 * tests/python9.test: Likewise.
437 * tests/subobj.test: Likewise.
438 * tests/vars3.test: Likewise.
439 * tests/missing4.test: Likewise, and fix a call to grep not to use
441 * tests/ansi3.test: Likewise, and rely on the `configure.in' stub
442 created by `./defs', rather than writing one from scratch.
444 Enable `errexit' shell flag in various tests.
445 * tests/backsl.test: Enable the `errexit' shell flag, and
447 * tests/backsl2.test: Likewise.
448 * tests/block.test: Likewise.
449 * tests/canon2.test: Likewise.
450 * tests/canon4.test: Likewise.
451 * tests/comment2.test: Likewise.
452 * tests/condlib.test: Likewise.
453 * tests/cond15.test: Likewise, and prefer $FGREP over grep.
454 * tests/canon3.test: Likewise. Also, avoid to create an useless
456 * tests/acoutpt2.test: Enable the `errexit' shell flag, and some
457 related changes. Do some cosmetic improvements in the generated
459 * tests/cond4.test: Likewise.
460 * tests/cond14.test: Likewise.
461 * tests/condinc.test: Likewise.
462 * tests/cond7.test: Likewise. Also, remove useless setting of
463 AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am.
464 * tests/ansi.test: Enable the `errexit' shell flag, and related
465 changes. Extended, esp. by running autoconf, ./configure and
466 make, and by looking into the distdir.
468 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
469 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
471 Extend tests/README w.r.t. trailing `:' in test scripts.
472 * tests/README (section "Writing test cases" subsection "Do"):
473 Explain why apparently redundant trailing `:' and `Exit 0' in
474 test scripts can indeed be useful.
476 2010-06-11 Stefano Lattarini <stefano.lattarini@gmail.com>
478 Improve determination of PATH separator in bootstrap script.
479 * bootstrap: Detemine what the PATH separator is the same way
482 Minor improvements in bootstrap script.
483 * bootstrap: Consistently use two-spaces indentation. Cosmetic
484 improvement to comments.
485 ($me): New variable, containing program basename.
486 Prepend it to all error messages.
488 Testsuite now works with BSD make in parallel mode.
489 * tests/defs.in: Unset variables __MKLVL__ and MAKE_JOBS_FIFO,
490 which are exported by BSD make when run in parallel mode, and
491 which can confuse make processes spawned by our testsuite.
492 This change fixes a lot of spurious failure when the testsuite
493 is run with BSD make in parallel mode.
495 2010-06-09 Stefano Lattarini <stefano.lattarini@gmail.com>
497 Modernize, improve and/or fix various test scripts.
498 * tests/sanity.test: Rely on the `configure.in' stub created by
499 `./defs', rather than writing one from scratch.
500 * tests/depend2.test: Likewise. Also, call `set -e' just after
501 the inclusion of `./defs', instead that later in the script.
502 * tests/canon5.test: Avoid a useless `|| Exit 1' after a call to
503 $AUTOMAKE, and improve the positioning of an $ACLOCAL call.
504 * tests/exeext4.test: Use $FGREP instead of grep, where possible.
505 Make auxiliary rules in the generated Makefile more silent.
506 These changes make some checks slighty stricter.
507 * tests/ext2.test: Call `Exit 1' if inclusion of `./defs' fails.
508 * tests/gettext2.test: Place final `:' at the end of the script,
509 rather than in the middle.
510 * tests/exeext.test: Call `set -e' just after the inclusion of
511 `./defs', instead that later in the script.
512 * tests/extra5.test: Likewise.
513 * tests/confdeps.test: Likewise. Also, prefer `mv -f' over
514 plain `mv', just to be sure.
515 * tests/depcomp.test: Enable `errexit' shell flag, with related
516 changes. Also, modernize the generated configure.in.
517 * tests/cond9.test: Likewise. Also, rely on the `configure.in'
518 stub created by `./defs', rather than writing one from scratch.
519 * tests/cond10.test: Likewise.
520 * tests/depcomp2.test: Likewise.
521 * tests/depend3.test: Likewise.
522 * tests/distcom7.test: Likewise.
523 * tests/fortdep.test: Likewise. Also, remove definition of
524 AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am,
525 since that flag is already provided by $AUTOMAKE.
526 * tests/mdate.test: Made stricter, by checking that Automake
527 actually failed, and by making a stricter grep on the error
528 message. Also, set shell `errexit flag'.
529 * tests/python2.test: Improved verbose messages.
531 Make test `ammissing.test' stricter.
532 * tests/ammissing.test: Fail if $ACLOCAL succeds unexpectedly.
533 Enable `errexit' shell flag.
535 2010-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
537 Enable `errexit' shell flag in some test scripts.
538 * tests/subcond.test: Enabled `errexit' shell flag, and related
540 * tests/subst.test: Likewise.
541 * tests/vars.test: Likewise.
542 * tests/version4.test: Likewise.
543 * tests/vpath.test: Likewise.
544 * tests/vtexi2.test: Likewise.
545 * tests/werror.test: Likewise.
546 * tests/whoami.test: Likewise.
547 * tests/tags.test: Likewise, and avoid to crate an useless dummy
549 * tests/acsilent.test: Likewise, and don't use an easily-avoided
550 command substitution.
551 * tests/unused.test: Likewise, and don't use an easily-avoided
552 command substitution.
553 * tests/version.test: Likewise, and avoid deprecated constructs
554 in the generated `configure.in'.
555 * tests/version2.test: Likewise, and avoid deprecated constructs
556 in the generated `configure.in'.
558 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
560 Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
561 * tests/ldadd.test: Enable errexit. Use AUTOMAKE_fails so
562 the verbose log contains all output.
563 * tests/mdate.test: Likewise.
564 Prompted by Stefano Lattarini's change to discover.test.
566 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
568 Improve tests link*.test (enable `errexit' shell flag).
569 * tests/link_c_cxx.test: Enable `errexit shell flag, and related
570 changes. Also, do not create useless source files.
571 * tests/link_dist.test: Likewise.
572 * tests/link_f90_only.test: Likewise.
573 * tests/link_f_only.test: Likewise.
574 * tests/link_fc.test: Likewise.
575 * tests/link_fccxx.test: Likewise.
576 * tests/link_fcxx.test: Likewise.
578 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
580 Improve ext.test semantics, avoid OpenBSD sh errexit issue.
581 * tests/ext.test: Inside shell compound command, use
582 `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to
583 fix failure with OpenBSD sh introduced with last patch.
584 Actually ensure that a rule for .EXT.o is created for each
587 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
589 Enable `errexit' shell flag in some test scripts.
590 * tests/dash.test: Enable `errexit' shell flag, and related
592 * tests/defun.test: Likewise.
593 * tests/defun2.test: Likewise.
594 * tests/dejagnu.test: Likewise.
595 * tests/double.test: Likewise.
596 * tests/distcom2.test: Likewise.
597 * tests/empty2.test: Likewise.
598 * tests/empty3.test: Likewise.
599 * tests/empty4.test: Likewise.
600 * tests/exdir.test: Likewise.
601 * tests/ext.test: Likewise.
602 * tests/extra.test: Likewise.
603 * tests/extra2.test: Likewise.
604 * tests/extra3.test: Likewise.
605 * tests/extra4.test: Likewise.
606 * tests/flibs.test: Likewise.
607 * tests/fnoc.test: Likewise.
608 * tests/fo.test: Likewise.
609 * tests/instexec.test: Likewise.
610 * tests/ltdeps.test: Likewise.
611 * tests/nodep.test: Likewise.
612 * tests/nodepcomp.test: Likewise.
613 * tests/f90only.test: Likewise, and remove botched/obsoleted
614 comments and unecessary commands.
615 * tests/fonly.test: Likewise, and remove botched/obsoleted
616 comments and unecessary commands.
617 * tests/discover.test: Likewise, and made stricter.
619 Enable `errexit' shell flag in all tests cxx*.test.
620 * tests/cxx.test: Enabled `errexit' shell flag, and related
622 * tests/cxxansi.test: Likewise.
623 * tests/cxxcpp.test: Likewise.
624 * tests/cxxlibobj.test: Likewise.
625 * tests/cxxlink.test: Likewise.
626 * tests/cxxo.test: Likewise.
628 Enable `errexit' shell flag in various tests.
629 * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
631 * tests/acoutpt.test: Likewise.
632 * tests/acoutqnl.test: Likewise.
633 * tests/amassign.test: Likewise.
634 * tests/ansi2.test: Likewise.
635 * tests/ansi4.test: Likewise.
636 * tests/badprog.test: Likewise.
637 * tests/checkall.test: Likewise.
638 * tests/clean.test: Likewise.
639 * tests/colneq2.test: Likewise.
640 * tests/colon.test: Likewise.
641 * tests/colon5.test: Likewise.
642 * tests/colon6.test: Likewise.
643 * tests/comment.test: Likewise.
644 * tests/compile_f90_c_cxx.test: Likewise.
645 * tests/compile_f_c_cxx.test: Likewise.
646 * tests/cond3.test: Likewise.
647 * tests/cond6.test: Likewise.
648 * tests/cond13.test: Likewise.
649 * tests/conf2.test: Likewise.
650 * tests/confvar.test: Likewise.
651 * tests/confvar2.test: Likewise.
652 * tests/cond8.test: Likewise, plus a cosmetic change.
653 * tests/confh4.test: Likewise. Also, add in the heading comments
654 an excerpt from the original bug report which motivated the
655 creation of this test, to make its purpose clearer.
657 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
659 Rewrite manual to be gender-neutral.
660 * doc/automake.texi (GNU Build System)
661 (Standard Directory Variables, General Operation, CVS)
662 (Hard-Coded Install Paths, Dependencies As Side Effects):
663 Rewrite text to not contain gender-specific pronouns when
664 speaking about developers or users, either by avoiding pronouns
665 or by addressing them as `you' instead.
667 Report by Christina Gratorp.
671 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
673 Make tests on user extensibility of silent-rules mode stricter.
674 * tests/silent6.test: Made stricter w.r.t. the grepping of the
675 output produced by `make'.
676 * tests/silent7.test: Likewise.
678 Tests on silent-mode for C/Libtool made stricter.
679 * tests/silent.test: Made stricter w.r.t. the grepping of the
680 output produced by `make'.
681 * tests/silent2.test: Likewise.
682 * tests/silent4.test: Likewise.
683 * tests/silent9.test: Likewise.
684 * tests/silent3.test: Likewise, and add a final `make distclean'
685 command to keep it better in sync with tests/silent{4,9}.test.
687 Improved test silent5.test.
688 * tests/silent5.test: Remove by hand all generated C files after
689 non-verbose builds, to ensure the following builds are clean.
690 Try to clean and rebuild with the same verbosity and without
691 removing generated sources in between, to check that this does
692 not trigger a different set of rules. Make grepping of make's
693 output stricter. Improved/added some comments.
695 New tests for Automake silent-mode with Fortran.
696 * tests/silentf77.test: New test.
697 * tests/silentf90.test: Likewise.
698 * tests/Makefile.am (TESTS): Updated accordingly.
700 New test `silentcxx.test' (Automake silent-mode with C++).
701 * tests/silentcxx.test: New test.
702 * tests/Makefile.am (TESTS): Updated accordingly.
704 New test `silentyacc.test' (Automake silent-mode with Yacc).
705 * tests/silentyacc.test: New test.
706 * tests/Makefile.am (TESTS): Updated accordingly.
708 New test `silentlex.test' (Automake silent-mode with Lex).
709 * tests/silentlex.test: New test.
710 * tests/Makefile.am (TESTS): Updated accordingly.
712 Relax tests on silent-rules to cater to overly verbose makes.
713 * tests/silent.test: When testing silent builds, don't fail if
714 make's output simply contains the `mv' substring, but only if
715 it contains the `mv ' substring (note the trailing space).
716 * tests/silent2.test: Likewise.
717 * tests/silent3.test: Likewise.
718 * tests/silent4.test: Likewise.
719 * tests/silent5.test: Likewise.
720 * tests/silent9.test: Likewise.
722 2010-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
724 Fix silent-rules output for disabled dependency tracking.
725 * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
726 expansion code to also work in the case where %AMDEP% expands
727 to FALSE at config.status time, using new substitution string
729 * automake.in (verbose_nodep_flag): New function, appending
730 `@am__nodep@' to the verbose-variable name.
731 (handle_languages): If dependencies are not disabled, use it to
733 * m4/depend.m4: Substitute am__nodep as '_no', so the second
734 verbose-variable will always expand to an empty string, if
735 dependencies are enabled.
736 * tests/silent5.test: Also test --disable-dependency-tracking;
737 also test per-target flags for non-C language files.
738 * tests/silent9.test: New test, like silent4.test but disable
740 * tests/Makefile.am: Adjust.
741 * NEWS, THANKS: Update.
742 Report by Dmitry V. Levin <ldv@altlinux.org>.
744 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
746 Extend test on `nostdinc' automake option.
747 * tests/nostdinc.test: Enable `errexit' shell flag. Related and
748 unrelated minor changes. Make the grepping of the generated
749 Makefile.in slighty stricter. Generate and run configure, so that
750 the generated Makefile can be grepped too.
752 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
754 Make gnupload portable to EBCDIC hosts.
755 * lib/gnupload: Use literal newline as argument for 'tr' rather
756 than \015, for EBCDIC hosts. Also, avoid unportable nested
757 double-quotes and backquotes.
759 Report from Eric Blake and Steve Goetze via gnulib.
761 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
763 Fix Autoconf version required by Automake's configure.
764 Automake configure script used to tell that automake required
765 autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
766 and if that was not found, it gave an error saying that Automake
767 required configure 2.61a-341 or later. This change should
768 eliminate such inconsistencies.
769 * configure.ac ($required_autoconf_version): New variable.
772 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
774 Fix unportable sed script in maintainer-check test.
775 * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
776 not contain semicolon after 'b' or brace commands, for NetBSD.
778 Wildcards are not portable to NetBSD make.
779 * doc/automake.texi (Wildcards): Document portability issue.
780 * tests/extra10.test, tests/extra11.test, tests/extra12.test:
783 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
785 Make test for configure.in vs. configure.ac stricter.
786 * tests/configure.test: Use a configure.in file that provokes
787 an automake error, to ensure configure.ac is preferred.
789 Avoid possible false negatives in dejagnu7.test.
790 * tests/dejagnu7.test: Enable shell `errexit' flag. Also, avoid
791 unportable use of fgrep option `-e'.
793 Fix conflnk3.test to work with Solaris/Heirloom Sh.
794 * tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
795 instead of respectively `test -e FILE' and `test ! -e FILE',
796 since Solaris Sh doesn't grok the latter. Do not SKIP the test
797 if the shell doesn't support `test -e'.
799 2010-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
802 * doc/automake.texi (Simple Tests using parallel-tests): Add
803 missing closing parenthesis.
805 Fix leftover call to removed function macros_dump.
806 * automake.in (read_main_am_file): Call variables_dump, not
807 macros_dump. Print actual error before list of variables.
809 2010-04-25 Stefano Lattarini <stefano.lattarini@gmail.com>
811 Minor improvements in comments of test `silent3.test'.
812 * tests/silent3.test: Tell to keep it in sync with `silent9.test'
815 2010-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
817 testsuite: ensure verbose printing of captured output.
818 * tests/acloca14.test, tests/acloca18.test, tests/aclocal.test,
819 tests/fort2.test, tests/help.test, tests/missing3.test,
820 tests/missing6.test: Print captured stdout or stderr before
823 2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
825 Make test badopt.test stricter (by enabling `set -e').
826 * tests/badopt.test: Add call to `set -e'. Due to this change,
827 an unexpected failure in the call to `$ACLOCAL' (whose outcome
828 was previously unchecked) would cause the whole test to fail.
829 Also, bumped the copyright years.
831 Make test for configure.in vs. configure.ac stricter.
832 * tests/configure.test: Use a configure.in file that provokes
833 an automake error, to ensure configure.ac is preferred.
835 Use `set -e' in confsub.test (avoids possible false negatives).
836 * tests/confsub.test: Enable shell `errexit' flag, and related
837 changes (this helps avoiding some possible minor false negatives).
838 Also, bumped copyright years.
840 2010-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
842 Fix -Werror handling for presence of configure.in and configure.ac.
843 * lib/Automake/Variable.pm (Automake::Variable): Do not initialize
844 $configure_ac at the global level, before command-line arguments
846 (require_variables): Initialize it here.
847 * tests/configure.test: New test.
848 * tests/Makefile.am: Update.
849 Report by Stefano Lattarini.
851 2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
853 Avoid possible false negatives in confh5.test.
854 * tests/confh5.test: Enable shell `errexit' flag, and bumped
855 copyright years. Due to this change, any unexpected failure
856 in calls to $ACLOCAL, $AUTOMAKE, $AUTOCONF or $AUTOHEADER, or
857 a failure in grepping expected text in output files should now
858 cause the whole test to fail.
860 2010-04-17 Stefano Lattarini <stefano.lattarini@gmail.com>
862 Fixed typo in POD documentation of Automake::Channels.
863 * lib/Automake/Channels.pm: Fixed typo in POD documentation:
864 @<...> was used instead of C<...>.
866 2010-04-14 Stefano Lattarini <stefano.lattarini@gmail.com>
868 Refactor tests on Automake TESTS color output.
869 * tests/color.test: Tests using the expect program moved out to...
870 * tests/color2.test: ... this new file.
871 * tests/Makefile.am (TESTS): Extended accordingly.
873 2010-04-12 Stefano Lattarini <stefano.lattarini@gmail.com>
875 Fix typos in comments in test confh5.test
876 * tests/confh5.test: Fix a couple of typos in comments.
878 Avoid possible false negatives in canon-name.test.
879 * tests/canon-name.test: Enable shell `errexit' flag. Improve
882 2010-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
884 Fix per-Makefile.am setting of -Werror.
885 Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
886 Makefile.am would carry over to other Makefile.am files
887 treated afterwards by the same thread, causing inconsistent
888 and unstable exit status values.
889 * lib/Automake/Channels.pm (dup_channel_setup)
890 (drop_channel_setup): Save and restore the setting of
891 $warnings_are_errors.
892 * tests/werror3.test: New test.
893 * tests/Makefile.am: Adjust.
896 2010-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
898 Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
899 * tests/confh5.test: In the generated Makefile.am: do not use
900 `test ! -e FILE' to check for the non-existence of a file, since
901 that is not supported by Solaris/Heirloom Sh.
903 Make test `aclocal3.test' stricter.
904 * tests/aclocal3.test: Add call to `set -e'. Fail if $ACLOCAL
905 succeds unexpectedly.
907 Add tests checking that symlinks are resolved by `make dist'.
908 * tests/distlinks.test: New test.
909 * tests/Makefile.am (TESTS): Updated accordingly.
910 Suggested by observations from Ralf Wildenhues.
912 2010-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
914 Use -9 for maximum xz compression with dist-xz.
915 * lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
916 * NEWS, THANKS: Update.
917 Report by Pavel Sanda.
919 2010-03-30 Stefano Lattarini <stefano.lattarini@gmail.com>
921 Avoid an unportable use of `$status' shell variable.
922 * Makefile.am (path-check): Don't use the `$status' shell variable
923 in the target's rules, as it's special in Zsh (equivalent to `$?',
926 Avoid another use of `chmod -R'.
927 * Makefile.am (path-check): To be safe, do not use `chmod -R' on
928 $(distdir) before removing it (as Solaris `chmod -R' touches
929 symlink targets). Instead, use the cleanup strategy used in
932 2010-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
934 Remove uses of @acronym and @sc.
935 * doc/automake.texi (Public Macros, Limitations on File Names):
936 Remove all usage of @acronym and @sc in the manual.
937 Suggested by Karl Berry.
939 2010-03-13 Karl Berry <karl@freefriends.org>
941 GNU hello uses fdl.texi, not gpl.texi.
942 * doc/automake.texi (Texinfo): Adjust example to upstream
945 2010-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
947 Formatting cleanups in macro comments.
948 * automake.in, lib/Automake/Channels.pm,
949 lib/Automake/FileUtils.pm, lib/Automake/Options.pm,
950 lib/Automake/Variable.pm, lib/Automake/XFile.pm,
951 m4/options.m4, m4/substnot.m4: Fix macro comment format.
953 2010-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
954 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
956 Avoid generation of `tests/defs-p' file.
957 * tests/defs.in: In the generated `configure.in' snippet: call
958 `AM_INIT_AUTOMAKE' with the `parallel-tests' option if the shell
959 variable `parallel_tests' is set to `yes'.
960 * tests/Makefile.am (defs-p): Target removed.
961 (check_SCRIPTS): Removed `defs-p'.
962 (clean-local-check): Do not unlink `defs-p' anymore.
963 ($(parallel_tests)): Transformation rules for the test scripts
965 * tests/gen-parallel-tests: Selection rules for the test
967 * tests/parallel-tests.test: Set `$parallel_tests' to `yes'
968 then include `./defs' (rather than simply including `./defs-p').
969 * tests/parallel-tests2.test: Likewise.
970 * tests/parallel-tests3.test: Likewise.
971 * tests/parallel-tests4.test: Likewise.
972 * tests/parallel-tests5.test: Likewise.
973 * tests/parallel-tests6.test: Likewise.
974 * tests/parallel-tests7.test: Likewise.
975 * tests/parallel-tests8.test: Likewise.
976 * tests/parallel-tests9.test: Likewise.
977 * tests/parallel-tests10.test: Likewise.
978 * tests/README (Section "Writing Test Cases" subsection "Do"):
979 Adjusted the parts referring to tests checking `parallel-tests'
980 behaviour. Some other minor related improvements.
981 * tests/.gitignore (defs-p): Removed.
983 2010-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
985 Remove redundant unset of variable TESTS from some test scripts.
986 * tests/color.test: Do not unset the `TESTS' variable, as it's
987 already unset in the `defs' file.
988 * tests/check5.test: Likewise.
989 * tests/check8.test: Likewise.
990 * tests/check9.test: Likewise.
991 * tests/check10.test: Likewise.
992 * tests/check11.test: Likewise.
993 * tests/parallel-tests.test: Likewise.
994 * tests/parallel-tests3.test: Likewise.
995 * tests/parallel-tests4.test: Likewise.
996 * tests/parallel-tests5.test: Likewise.
997 * tests/parallel-tests6.test: Likewise.
998 * tests/parallel-tests7.test: Likewise.
1000 2010-02-22 Karl Berry <karl@gnu.org>
1002 Improve help message of mdate-sh.
1003 * mdate-sh: mention actual output format in help message.
1005 2010-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1007 Deprecate dist-lzma in favor of dist-xz.
1008 * doc/automake.texi (The Types of Distributions, Options):
1009 Adjust text to reflect renaming of lzma to xz.
1011 Missing deprecation noted by Antonio Diaz Diaz.
1013 2010-02-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1015 Add tests about support of wildcards in EXTRA_DIST.
1016 * tests/extra10.test: New test, check basic support of wildcards
1018 * tests/extra11.test: New test, check more complex usage of
1019 wildcards in EXTRA_DIST.
1020 * tests/extra12.test: New test, check usage of wildcards in
1021 EXTRA_DIST when $builddir != $srcdir.
1022 * tests/Makefile.am (TESTS): Updated accordingly.
1023 Necessity of these new tests suggested by Braden McDaniel
1024 and Ralf Wildenhues.
1026 2010-02-08 Simon Josefsson <simon@josefsson.org>
1028 Fix copyright statement in gnupload script.
1029 * lib/gnupload: Fix copyright statement.
1031 2010-02-06 Dmitry V. Levin <ldv@altlinux.org> (tiny change)
1032 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1034 Fix exit status of signal handlers in shell scripts.
1035 The value of `$?' on entrance to signal handlers in shell scripts
1036 cannot be relied upon, so set the exit code explicitly to
1038 * lib/am/check.am (am__check_pre): Use `exit 143' in signal handler.
1039 * lib/elisp-comp: Likewise.
1040 * lib/install-sh: Likewise.
1041 * lib/ylwrap: Likewise. Also, fix script to trap signal 13, not 3.
1042 * NEWS, THANKS: Update.
1043 Bug report, analysis, and initial patch by Dmitry V. Levin.
1045 2010-02-06 Karl Berry <karl@gnu.org>
1047 Improve gnupload usage text.
1048 * gnupload (usage): Shorten to make more likely to fit on a tty
1049 line. Mention CMD in the synopsis. With ..., plural is implied.
1051 2010-01-28 Christos Kontas <xakon@yahoo.com> (tiny change)
1053 Fix some typos in the manual
1054 * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
1056 2010-01-17 Stefano Lattarini <stefano.lattarini@gmail.com>
1058 Slighty improve tests acoutbs.test and acoutbs2.test.
1059 * tests/acoutbs2.test: Enable `errexit' shell flag. Check that
1060 autoconf and configure work, that the file `zot' is created by
1061 configure, and that no file containing a backslash in its name is
1063 * tests/acoutbs.test: Likewise, plus updated copyright years.
1065 Fix test acoutbs2.test.
1066 * tests/acoutbs2: In the generated configure.in: add proper calls
1067 to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
1068 PACKAGE and VERSION. Add a call to aclocal before calling automake.
1069 Updated copyright years.
1070 * tests/Makefile.am (XFAIL_TESTS): Removed acoutbs2.test.
1072 Add forgotten test scripts to $(TESTS).
1073 * tests/Makefile.am (TESTS): Added test scripts present on the
1074 filesystem, which were erroneously left out from $(TESTS):
1075 acoutbs2.test, badopt.test, extra2.test.
1076 (XFAIL_TESTS): Added acoutbs2.test.
1078 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1080 Sync auxiliary files from upstream.
1081 * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub:
1084 Bump copyright years.
1085 * aclocal.in (write_aclocal, version): Bump copyright years.
1086 * automake.in (gen_copyright, version): Likewise.
1087 * doc/automake.texi: Likewise.
1090 * ChangeLog.09: New file, rotated from ...
1091 * ChangeLog: ... here.
1092 * Makefile.am (EXTRA_DIST): Distribute ChangeLog.09.
1096 Copyright (C) 2010 Free Software Foundation, Inc.
1098 Copying and distribution of this file, with or without modification, are
1099 permitted provided the copyright notice and this notice are preserved.