1 2011-12-27 Stefano Lattarini <stefano.lattarini@gmail.com>
3 2011-12-27 Stefano Lattarini <stefano.lattarini@gmail.com>
5 tests: drop unnecessary requirement in 'subpkg.test'
6 * tests/subpkg.test ($required): Drop "bison", it is not required
7 anymore since commit `v1.11-502-g7e5ae80'.
9 2011-12-27 Stefano Lattarini <stefano.lattarini@gmail.com>
11 gitlog-to-changelog: new auxiliary script, synced from gnulib
13 We have plans to stop maintaining a version-controlled ChangeLog
14 file in the Automake repository, and instead begin to generate it
15 automatically from the git log messages. To do so, we will use
16 the `gitlog-to-changelog' script from gnulib.
18 * lib/gitlog-to-changelog: New, synced from gnulib.
19 * Makefile.am (fetch): Fetch and sync it.
20 * lib/Makefile.am (EXTRA_DIST): Distribute it.
22 2011-12-27 Stefano Lattarini <stefano.lattarini@gmail.com>
24 docs: "aclocal --install -I /abs/dir" actually copies files
26 This change is for automake bug#8407.
28 In the past, there had been some debate and confusion about
29 whether "aclocal --install" should copy third-party .m4 files
30 in the first directory passed to the `-I' option even when
31 such directory was given as an absolute path, or whether it
32 was better to do so only for directories specified with a
35 The rationale for this latter behaviour was that, before the
36 existence of the `ACLOCAL_PATH' variable, the only way (a poor
37 way, I might add) for a common user to extend the search path
38 of a system-wide installation of aclocal was to export something
39 like ACLOCAL="aclocal -I /my/extra/macros" in the environment.
40 Today, the correct way to proceed is undoubtedly through the
41 use of ACLOCAL_PATH, so we can settle the question once and for
42 all, and start verifying the correct behaviour of `-I' with a
45 * tests/aclocal-install-absdir.test: New test.
46 * tests/Makefile.am (TESTS): Add it.
47 * doc/automake.texi (aclocal Options): Be more explicit about
48 this part of `--install' semantics.
50 2011-12-26 Stefano Lattarini <stefano.lattarini@gmail.com>
52 docs: fix node names for automake and aclocal invocations
54 With the older node names, an "info automake" command issued
55 from the command line would have opened the node about the
56 invocation of the automake program, rather than the Top node
57 of the automake documentation. To invoke the Top node, one
58 had to issue the command "info Automake" instead (note the
59 different capitalization). This was suboptimal, and certainly
62 With this change, "info automake" will open the Top node of the
63 automake documentation; to access the nodes about the invocation
64 of the automake and aclocal program, one has now to issue "info
65 automake-invocation" and "info aclocal-invocation" respectively.
67 This change fixes automake bug#8071.
69 See also commits `v2.61a-22-ge9215d1' and `v2.61a-72-g8c07b48' in
70 the autoconf git repository, which tackled a similar issue.
72 * doc/automake.texi (@direntry): Rename nodes `aclocal' and
73 `automake' to `aclocal-invocation' and `automake-invocation'
77 2011-12-26 Stefano Lattarini <stefano.lattarini@gmail.com>
79 tests: tweak tests on silent-rules for makes without nested vars
80 * tests/silent-nested-vars.test: Define $MAKE to `./mymake' in
81 the environment, so that it will be automatically picked up by
82 configure. Related tweaks and simplifications.
83 Remove the checks verifying that silent rules are respected also
84 when the 'subdir-objects' option is set, the checks testing the
85 old syntax for user-defined silent rules, and the tests using
86 the default $MAKE programs: they are redundant w.r.t. other test
87 cases. Related simplifications.
88 Remove the temporary files used in a sanity check as soon as they
89 are not needed anymore.
90 Do not capture also the standard error of configure: we only want
91 to grep its standard output.
92 Consistently use `stdout' for the name of files where to save the
93 standard output captured from make and configure, for consistency
95 Make grepping of configure output and of the generated Makefile
97 Improve and tweak the `mymake' script a little.
98 * tests/silent6.test: Make grepping of make stdout slightly
99 stricter. After having configured with silent rules disabled,
100 try to force the use silent rules with `make V=1'.
102 2011-12-25 Paul Eggert <eggert@cs.ucla.edu>
104 silent-rules: fallback for makes without nested vars
106 This fixes two problems reported for Automake (Bug#9928, Bug#10237)
107 and is in response to a bug report for building coreutils on HP
108 NonStop OS (Bug#10234). The problem is that HP NonStop 'make'
109 treats a line like "AM_V_CC = $(am__v_CC_$(V))" as one that
110 expands a macro with the funny name am__v_CC_$(V instead of the
111 desired name am__v_CC_1 or am__v_CC_0, and since the funny macro
112 is not defined the line is equivalent to "AM_V_CC = )"; this
113 inserts a stray ")" when $(AM_V_CC) is used, which eventually
114 causes 'make' to fail.
116 The basic idea is that instead of generating Makefile.in lines like
117 "AM_V_CC = $(am__v_CC_$(V))", we generate
118 "AM_V_CC = $(am__v_CC_@AM_V@)". We then AC_SUBST $(V) for @AM_V@
119 in the usual case where `make' supports nested variables,
120 and substitute 1 (or 0) otherwise. Similarly for usages like
121 $(am__v_CC_$(AM_DEFAULT_VERBOSITY)).
123 With this change, make implementations that doesn't grasp nested
124 variable expansions will still be able to run Makefiles generated
125 using the silent-rules option. They won't allow the user to
126 override the make verbosity at runtime through redefinition of
127 $(V) (as in "make V=0"); but this is still an improvement over not
128 being able to work at all.
130 * NEWS: Document this.
131 * automake.in (define_verbose_var): When defining the variables,
132 use @AM_V@ rather than $(V), and use @AM_DEFAULT_V@ rather than
133 $(AM_DEFAULT_VERBOSITY).
134 * doc/automake.texi (Automake silent-rules Option): Explain new system.
135 * m4/silent.m4 (AM_SILENT_RULES): Check whether `make' supports
136 nested variables, and substitute AM_V and AM_DEFAULT_V accordingly.
137 * tests/silent-nested-vars.test: New test.
138 * tests/Makefile.am (TESTS): Add it.
140 2011-12-24 Stefano Lattarini <stefano.lattarini@gmail.com>
142 gitignore: use only one .gitignore file, in the top-level directory
143 * doc/.gitignore, doc/amhello/.gitignore, lib/Automake/.gitignore,
144 lib/Automake/tests/.gitignore, tests/.gitignore: Deleted, their
145 contents merged into ...
146 * .gitignore: ... this top-level file. Since we are at it, improve
147 it by anchoring files where it makes sense.
149 2011-12-24 Stefano Lattarini <stefano.lattarini@gmail.com>
151 tests: one more fixlet for gettext macros requirement
152 * tests/gettext-macros.test (configure.in): Add calls to
153 AC_INIT and AC_PROG_CC, to avoid a spurious failure in the
154 later aclocal invocation.
155 Luckily, this wart wasn't causing any spurious SKIP or FAIL,
156 but only the redundant addition to the `-Wno-syntax' option
157 to some aclocal invocations in the gettext tests.
159 2011-12-24 Stefano Lattarini <stefano.lattarini@gmail.com>
161 tests: fix handling of gettext macros requirement
163 The code introduced in the earlier change `v1.11-581-gb7d67d5'
164 and aimed at automatically fetching all the .m4 files provided by
165 gettext has proven inadequate, since it hasn't managed to truly
166 and always get *all* the required .m4 files. For example, it has
167 failed to fetch the file `intldir.m4' (present in gettext 0.18.1,
168 and where the macro `AM_GNU_GETTEXT_INTL_SUBDIR' is defined),
169 which in turn has caused spurious SKIPs of at least the test
172 The reason for this debacle is that autopoint looks at the version
173 specified in AM_GNU_GETTEXT_VERSION to decide which version of the
174 gettext infrastructure to bring in; since we were unconditionally
175 specifying the older 0.10.35 version, the newer `.m4' files weren't
178 * tests/gettext-macros.test: In AM_GNU_GETTEXT_VERSION, instead
179 of unconditionally specifying the older 0.10.35 version, specify
180 the version of the available `gettextize' or `autopoint' program,
181 dynamically extracted with the help of ...
182 (extract_program_version):... this new function, and saved ...
183 ($autopoint_version): ... in this new variable.
185 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
187 tests: fix failure due to debugging code forgotten into a test
188 * tests/missing-tar.test: Don't ever call the `missing' script
189 with `sh -x'; this was used for debugging, but an instance of
190 it slipped into the committed test case. Bug revealed by a
191 failure on a Solaris 10 system with GNU tar installed as `gtar'.
193 2011-12-23 Stefano Lattarini <stefano.lattarini@gmail.com>
195 tests: avoid spurious failure of libtool and gettext tests
197 On Solaris 10 (and presumably earlier), /bin/sh trips up on
198 here-documents that contains a command substitution *and* are
199 fed to a shell function:
209 # An apparently innocuous function ...
211 # ... but hilarity ensues!
215 /tmp/sh137723: cannot open
219 We need to work around this misbehaviour in a couple of our
220 tests (whose failures where causing cascading failures in a
223 * tests/gettext-macros.test: Avoid the use of command substitution
224 in a here-document passed to the `indent' function, by using the
225 `echo' builtin instead.
226 * tests/libtool-macros.test: Likewise.
229 <http://lists.gnu.org/archive/html/bug-autoconf/2011-12/msg00001.html>
231 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
233 hacking: distribute it, and mention it in the ChangeLog
234 Not distributing the HACKING file might make it more difficult,
235 for some random curious user, to get informed about or interested
236 in the Automake development process, or to send us patches.
237 * Makefile.am (EXTRA_DIST): Add HACKING.
238 * HACKING: It's OK to distribute this file, and to mention it in
241 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
243 regex: deprecate the obsolete macro AM_WITH_REGEX
244 This is a backport of commit v1.11-433-g37b0aee.
245 Today, practically nobody uses the GNU rx library, which, according
246 to its own website <http://www.gnu.org/software/rx/rx.html>, has
247 been "decommissioned". Consequently, the automake-provided macro
248 AM_WITH_REGEX is not used nor required anymore. Deprecate it, so
249 that it will be possible to safely remove it in the next major
251 * m4/regex.m4 (AM_WITH_REGEX): Give a warning of the class
252 `obsolete' when this macro is used.
253 * doc/automake.texi (Public Macros): Move description of
254 `AM_WITH_REGEX' from here ...
255 (Obsolete Macros): ... to here, and declare it as obsolete
256 and "to be removed in a future version".
257 * tests/regex-obsolete.test: New test.
258 * tests/Makefile.am (TESTS): Add it.
261 <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00131.html>
263 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
265 maint: distribute .xz tarballs, not .bz2 ones
266 Many GNU packages are moving towards xz-compressed tarballs, so
267 let's follow suit, by dropping the creation and distribution of
268 a bzip2-compressed tarball and switching to xz instead.
269 For compatibility and safeness, we will continue to create and
270 distribute a gzip-compressed tarball as well.
271 * configure.ac (AM_INIT_AUTOMAKE): Drop `dist-bzip2', add
274 Suggested by Jim Meyering.
276 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
278 include: avoid "deleted .am file" problem
279 * automake.in (handle_configure): When processing `configure.am',
280 also expand `HAVE-MAKEFILE-IN-DEPS' to a boolean telling whether
281 `MAKEFILE-IN-DEPS' is empty or not.
282 * lib/am/configure.am [?HAVE-MAKEFILE-IN-DEPS?]
283 (%MAKEFILE-IN-DEPS%): New target without dependencies, to
284 avoid the "deleted .am file" problem. Emit this only when
285 `?HAVE-MAKEFILE-IN-DEPS?' is true, to avoid generating an
286 "empty" dependency declaration.
287 * tests/deleted-am.test: Make grepping of error message stricter.
288 * tests/dist-missing-am.test: Likewise.
289 * tests/remake-deleted-am.test: New test.
290 * tests/remake-deleted-am-2.test: Likewise.
291 * tests/remake-deleted-am-subdir.test: Likewise.
292 * tests/remake-renamed-am.test: Likewise.
293 * tests/makefile-deps.test: Likewise.
294 * tests/Makefile.am (TESTS): Add the new tests.
296 Fixes automake bug#9768.
297 Report by Peter Johansson.
298 See also commit `Release-1-10-40-gd0ebf71', which fixed a similar
299 problem for .m4 files included by configure.ac.
301 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
303 maint: better use of autoconf 2.68 features
304 * configure.ac: Now that Automake requires autoconf 2.68 for its
305 own bootstrapping and build system, we can assume that PACKAGE_URL
306 gets automatically AC_SUBT'd.
308 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
310 cosmetics: use proper m4 quoting in configure.ac
311 * configure.ac (AC_CONFIG_SRCDIR): Use proper m4 quoting
313 (AC_CONFIG_AUX_DIR): Likewise.
314 (AC_PROG_PATH): Likewise.
316 2011-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
318 tests: better handling of gettext and libtool requirements
320 This change fixes automake bug#9807.
322 Before this change, the automake testsuite only looked for the
323 `.m4' files containing libtool and gettext macros definitions in
324 the directory `${prefix}/share/aclocal' (and in the directories
325 specified by the `dirlist' file in there, if any), where ${prefix}
326 was the configure-time automake installation prefix (defaulting
329 This approach had various shortcomings and disadvantages. Let's
330 briefly describe the three major ones.
332 First, on most GNU/Linux systems, a libtool or gettext installed
333 from distro-provided packages (e.g., by dpkg on Debian/Ubuntu, or
334 by rmp on RedHat/Fedora) would have `/usr', not `/usr/local', as
335 its ${prefix}; so, trying to run the automake testsuite with a
336 simple "./configure && make && make check" would have failed to
337 execute the libtool and gettext tests on most GNU/Linux distros.
338 It's true that it was quite easy to work around this issue, by
339 creating a proper `/usr/local/share/aclocal/dirlist' file with
340 an entry pointing to `/usr/share/aclocal' (a workaround in fact
341 used by most automake developers); but the typical user wasn't
342 aware of the necessity of this trick, so the libtool and gettext
343 tests was usually skipped on testsuite runs "in the wild", thus
344 needlessly reducing coverage.
346 Second, the older testsuite behaviour made more difficult for
347 the developers to run the testsuite with non-default libtool or
348 gettext. For example, assume the developer is working on a system
349 that has a default libtool version 1.5 installed in the /usr/local
350 hierarchy; to improve coverage, the developer installs also a more
351 modern libtool version, say 2.4, in its home directory, let's say
352 in ~/libtool-2.4; he then tries to run the automake testsuite with
353 this more modern libtool by doing an (apparently) simple:
354 $ PATH=$HOME/libtool-2.4:$PATH make check
355 But the automake testsuite would still look for libtool macros in
356 /usr/local/share/aclocal, not in ~/libtool-2.4/share/aclocal, so
357 the wrong version of the macros would be picked up, and the tests
358 would either fail spuriously or (which would be worse) pass without
359 truly covering the libtool version the developers was thinking to
361 Worse again, the automake testsuite would *unconditionally* look
362 for libtool macros in /usr/local/share/aclocal, so even something
364 $ export ACLOCAL_PATH=$HOME/libtool-2.4/share/aclocal
365 $ PATH=$HOME/libtool-2.4:$PATH make check
368 Third and last, during a "make distcheck", automake is configured
369 with a ${prefix} pointing to a proper subdirectory of the build
370 directory (usually `pwd`/_inst), which gets created on-the-fly;
371 in this case, with the old approach, the automake testsuite never
372 found the libtool and gettext macro files, ans so the libtool and
373 gettext tests was *always* skipped in a "make distcheck".
375 * tests/libtool-macros.test: New helper test, looking (with the
376 help of the `libtoolize' script) for libtool macro files required
377 by most libtool tests, and making them easily accessible.
378 * tests/gettext-macros.test: New helper test, looking (with the
379 help of the `libtoolize' script) for libtool macro files required
380 by most libtool tests, and making them easily accessible.
381 * tests/defs.in: Update to make it rely on the results and setups
382 of `libtool-macros.test' and `gettext-macros.test'.
383 * tests/Makefile.am: Declare dependency of all the logs of libtool
384 tests from `libtool-macros.log', and all the logs of gettext tests
385 from `gettext-macros.log'.
386 (TESTS): Add the new tests.
388 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
390 fix: typos and grammaros in comments of the new test
391 * tests/get-sysconf.test: Fix few typos, grammaros and botched
392 wording. Reported by Eric Blake.
394 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
396 tests: report useful system information in 'test-suite.log'
397 It has already happened various times that a user has run the
398 automake testsuite, experienced a failure, read the messages
399 telling him "See tests/test-suite.log" and "Please report to
400 bug-automake@gnu.org", and done exactly that -- sending us only
401 the contents of `tests/test-suite.log', which are usually not
402 enough to start debugging the reported failure. So we have to
403 ask him for more details, and usually also for the `config.log'
404 file generated by configure. It's time to fix this recurring
405 feedback inefficiency. We do so by creating a dummy test case
406 that takes care of copying the contents of `config.log', plus
407 other useful system information, in the final `test-suite.log'.
408 * tests/get-sysconf.test: New test, gathering system information
409 and then always terminating with a SKIP, so that its output gets
410 copied in `test-suite.log'.
411 * tests/Makefile.am (TESTS): Add it.
413 2011-12-07 Reuben Thomas <rrt@sc3d.org> (tiny change)
415 python: remove relics for Python 1.5 support
416 * m4/python.m4: The comments in here claim to support only
417 Python >= 2.0, yet this file still has specific support for
418 Python 1.5. Just remove it, python 1.5 is 12 years old now,
419 and practically defunct.
421 See also commit `Release-1-10-205-gd5bec12', "Support for
422 Python 3.0, drop support for pre-2.0."
424 2011-12-21 Stefano Lattarini <stefano.lattarini@gmail.com>
426 configure: remove extraneous 'eval's from AM_RUN_LOG invocations
427 * configure.ac: Remove extra 'eval's from AM_RUN_LOG invocations;
428 for example, instead of "AM_RUN_LOG([eval $PERL --version])",
429 simply use "AM_RUN_LOG([$PERL --version])"
431 2011-12-21 Stefano Lattarini <stefano.lattarini@gmail.com>
433 configure: report TeX version in config.log
434 * configure.ac: If possible, report the version of the selected
435 TeX program; this should render the logs more informative.
437 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
439 maint: snapshots from `maint' are still development snapshots
440 The maintenance-oriented development line in the `maint' branch,
441 while being usually pretty stable and 99% backward-compatible,
442 is not always right off production-quality; but until now, the
443 Automake package version declared in configure.ac hid this fact,
444 since it appeared to be the version of a stable release (e.g.,
446 * configure.ac (AC_INIT): Bump version to "1.11.0a".
448 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
450 configure: print proper message for test releases
451 * configure.ac: If the current release is detected to be a test
452 release or a development snapshot, print a proper warning for
454 * README-alpha: Delete, it's obsolete now (and in fact this file
455 hasn't been touched in eleven years, since release 1.4b or so).
456 * HACKING (Release procedure): Don't say to update README-alpha.
458 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
460 devel: help in comparing Makefile.in from different commits
461 Now that the generated Makefile.in, configure and aclocal.m4 files
462 are no longer committed in Automake's git repository, a simple
463 "git diff" or "git log" no longer shows if and how a change in
464 Automake results in changes to the Makefile.in files and/or
465 configure script of its own build system. Still, the ability to
466 peek so easily at such differences has proved itself quite useful
467 in the past, often revealing inconsistencies and blunders, and
468 sometimes even bugs; so it would be a pity to lose that altogether.
469 With this change, we add a new maintainer recipe that re-introduces
470 much of that capability, by generating and comparing on the fly the
471 Makefile.in, configure and aclocal.m4 derived from two arbitrary
472 commits of the Automake repository.
473 * Makefile.am (autodiffs, compare-autodiffs): New phony targets.
475 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
477 repo: don't commit generated files in the git repository anymore
478 It has been quite some time since autoconf and libtool have stopped
479 committing the generated autotools files in their git repositories,
480 with no significant ill effects we're aware of. It's true that the
481 autoconf bootstrap process has now the minor annoyance that a
482 pre-installed autoconf is required to complete it; but luckily
483 automake will not have a similar annoyance, since our bootstrap
484 script take care, through some hoops, to use the very automake and
485 aclocal versions from the current git checkout to generate the
486 required aclocal.m4 and Makefile.in files. In fact, this has been
487 a necessity also in the past, because automake has been known to
488 use in its own build system new development features that hadn't
489 been present in any previously released automake distribution.
490 * .gitignore: Ignore configure, aclocal.m4, and all the
492 * configure.ac (AC_PREREQ): New macro call, to require the
493 latest autoconf (2.68 for the moment).
495 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
497 missing: don't try to re-run tar with a munged command line
498 * lib/missing: If the default `tar' program fails with the given
499 arguments, and GNU tar is not available, don't try to re-run the
500 default `tar' with a munged command line (e.g., ditching possibly
501 unportable options), as that could be subtly alter the intended
502 semantics (and maybe even create a somewhat corrupted tarball).
503 Also, it's worth noting that the main purpose of the `missing'
504 script is to allow a non-developer to build the package in the
505 face of slightly-skewed timestamps, not to provide wrappers for
506 all the maintainer tools -- so we don't have to try too hard
507 when `missing' is just called to wrap `tar'.
508 * tests/missing-tar.test: New test.
509 * tests/Makefile.am (TESTS): Add it.
511 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
513 missing: inform the user if GNU tar is called
514 * lib/missing: If the code trying to run GNU tar is reached, it
515 means that the previous attempt to run the default tar program
516 has failed, very likely producing some error message. At this
517 point, just running GNU tar without further comments might be
520 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
522 missing: if GNU tar exists but fails when called, give up
523 * lib/missing: If the code trying to run GNU tar is reached,
524 don't continue if the invoked GNU tar program fails, as there
525 is little point in doing so (and can even be confusing and
528 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
530 missing: miscellaneous fixlets
531 * lib/missing: Some shells, such as Solaris or FreeBSD /bin/sh,
532 warn about missing programs before performing redirections.
533 Therefore, where we have to silently check whether a program
534 exists, perform redirections on a subshell.
535 Remove redundant uses of double-quotes in variable definitions.
536 Delete an extra blank line.
538 2011-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
540 maint: remove executable bit from automake.in
541 * automake.in: This file is not meant to be executed, only to
542 be preprocessed to create the `automake' script; so don't leave
545 2011-12-20 Peter Rosin <peda@lysator.liu.se>
547 tests: fix spurious failure on systems lacking unistd.h
548 This is for automake bug#10324.
549 * tests/silent-lex-generic.test (foo.l): Add a dummy #define of
550 YY_NO_UNISTD_H, so that the generated foo.c file won't require
551 unistd.h to be present (it is not present when compiling with,
554 2011-12-16 Stefano Lattarini <stefano.lattarini@gmail.com>
556 test defs: hack to support autoconf-wrapper programs
557 * tests/defs.in ($AUTOCONF): Add a dummy `-B' option to the
558 autoconf invocation, so that, when the Debian autoconf wrapper
559 is involved, it will correctly dispatch an autoconf >= 2.50
560 instead of defaulting to autoconf 2.13.
561 ($AUTOHEADER, $AUTORECONF): Likewise, but for autoheader and
562 autoreconf respectively.
563 Reported by Bruno Haible:
564 <http://lists.gnu.org/archive/html/automake/2011-12/msg00039.html>
566 2011-12-16 Stefano Lattarini <stefano.lattarini@gmail.com>
568 tests: fix a minor spurious failure with FreeBSD make
569 * tests/remake-am-pr10111.test: Avoid using `#' comments in
570 makefile recipes, as these have been confusing FreeBSD make.
571 The failure was masked by the fact that this test is currently
573 Suggested by a report from Bruno Haible.
575 2011-12-16 Stefano Lattarini <stefano.lattarini@gmail.com>
577 tests: make two test scripts executable
578 * tests/remake-am-pr10111.test: Make executable.
579 * tests/remake-m4-pr10111.test: Likewise.
581 2011-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
583 readme: reference webpages for automake mailing lists
584 * README: Rationalize and reorganize the (brief) description of
585 the automake mailing lists. In particular, instead of suggesting
586 the reader to write to the `-request' addresses to subscribe to
587 mailing lists, point him to the relevant webpages, where he can
588 also subscribe via a web form.
590 2011-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
592 readme: update advice about testsuite execution
593 * README: Now that the automake testsuite uses the parallel-tests
594 driver, there is no need for the user to capture the stdout of
595 "make check" to determine which tests have failed: a detailed log
596 is automatically saved into the `tests/test-suite.log' file.
597 Since we are at it, improve the wording by dropping an extra
600 2011-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
602 readme: don't reference the old homepage at sources.redhat.com
603 * README: Don't reference the old homepage at sources.redhat.com,
604 which is no longer active; reference the homepage on www.gnu.org
605 instead. See also automake bug#10157 and bug#10248.
606 * tests/README: Likewise, and remove related extra-pedantic advice
607 about copyright papers for test cases (we'll ask for those papers
608 explicitly when we think they are warranted).
610 2011-12-12 Stefano Lattarini <stefano.lattarini@gmail.com>
612 hacking: some more fixlets
613 * HACKING (Release Procedure): Place the list of pre-release
614 bootstrap-and-test commands on a line of its own, so it's easy to
615 select and then paste it into a terminal window.
616 Fix the explanation of "make git-release", as, since the previous
617 change, "make git-release" would simply run "make dist" rather
618 than "make distcheck".
619 Suggestion from Jim Meyering.
621 2011-12-12 Peter Rosin <peda@lysator.liu.se>
623 * NEWS: Fix typo in 'make dist-bzip2' description.
625 2011-12-10 Stefano Lattarini <stefano.lattarini@gmail.com>
627 release: don't run "make distcheck" automatically
628 * Makefile.am (git-dist): The developers should test extensively
629 before finally creating the release tarball; so don't run "make
630 distcheck" on their behalf here; instead ...
631 * HACKING (Release procedure): ... state here that "make check"
632 and "make distcheck" should be run before calling "make git-dist".
634 2011-12-09 Jim Meyering <meyering@redhat.com>
635 Stefano Lattarini <stefano.lattarini@gmail.com>
637 dist-xz, dist-bzip2: don't hard-code -9, honor envvar settings
638 Before the present change, automake-generated `dist-xz' rule used
639 a hard-coded `xz -9'. That was a problem because on this front,
640 xz differs from gzip and bzip2. While the latter two don't incur
641 any run-time decompression penalty for using a higher compression
642 level, specifying -9 with xz imposes a potentially fatal virtual
643 memory requirement on any client that wants to decompress your
645 People have complained that a tarball compressed with -9 cannot
646 be uncompressed in a low-memory environment (wrt-based embedded).
647 Hence, instead of defaulting to -9, which is useful only for very
648 large tarballs, it defaults to -e (equivalent to -6e). This
649 limits the default memory requirements imposed on decompressors,
650 yet still gives very good compression ratios.
651 * lib/am/distdir.am (dist-xz): Do not hard-code xz's -9: that made
652 it impossible to override. Actually don't default to -9, either,
653 since that induced inordinately large virtual memory usage when
654 merely decompressing. Instead, use its XZ_OPT envvar, defaulting
655 to -e if not defined. Suggested by Lasse Collin.
656 (dist, dist-all) [?XZ?]: Likewise
657 (dist-bzip2): Similarly, do not hard-code -9, but do continue to
658 use -9 by default. Honor the BZIP2 envvar.
659 (dist, dist-all) [?BZIP2?]: Likewise
661 * doc/automake.texi (The Types of Distributions): Describe the
662 newly enabled environment variables.
664 2011-12-09 Stefano Lattarini <stefano.lattarini@gmail.com>
666 * NEWS: Fix typos, grammaros and suboptimal wording.
667 Reported by Jim Meyering.
669 2011-12-07 Stefano Lattarini <stefano.lattarini@gmail.com>
671 maint: sync auxiliary files from upstream
672 * lib/texinfo.tex: Synced from upstream, by "make fetch".
673 * lib/config.guess: Likewise.
674 * lib/config.sub: Likewise.
676 2011-12-04 Stefano Lattarini <stefano.lattarini@gmail.com>
678 tests: fix spurious failures due to missing 'yywrap()' function
680 The AC_PROG_LEX Autoconf macro does not diagnose a failure to find
681 the "lex library" expected to provide a `yywrap' function (function
682 which is required to link most lex-generated programs). On the
683 contrary, when all the link attempts (i.e., with `-ll' and `-lfl')
684 fail, configure declares that no lex library is needed, and simply
685 proceeds with the configuration process -- only for the build to
686 possibly fail later, at make time.
688 This behaviour is intended; the Autoconf manual reads:
689 ``You are encouraged to use Flex in your sources, since it is
690 both more pleasant to use than plain Lex and the C source it
691 produces is portable. In order to ensure portability, however,
692 you must either provide a function `yywrap' or, if you don't use
693 it (e.g., your scanner has no `#include'-like feature), simply
694 include a `%noyywrap' statement in the scanner's source.''
696 This AC_PROG_LEX behaviour is causing some spurious failures of
697 the Automake testsuite in environments which lack a proper library
698 providing `yywrap' (this happens for example on Fedora-based
699 systems). The proper workaround is to simply provide a fall-back
700 implementation of `yywrap' in our lexers.
702 See also partially-overlapping commit `v1.11-871-geb147a1' (from
703 the 'testsuite-work' branch), which was motivated by similar
704 spurious failures experienced when cross-compiling.
706 From a report by Jim Meyering:
707 <http://lists.gnu.org/archive/html/automake-patches/2011-10/msg00092.html>
709 * tests/cond35.test: Provide a dummy `yywrap' function.
710 * tests/lex3.test: Likewise.
711 * tests/silent-lex-generic.test: Likewise.
712 * tests/silent-lex-gcc.test: Likewise.
713 * tests/silent-many-generic.test: Likewise.
714 * tests/silent-many-gcc.test: Likewise.
716 2011-12-04 Paul Eggert <eggert@cs.ucla.edu>
718 depcomp: spelling fix
719 * lib/depcomp (-h): Fix misspelling in usage diagnostic.
721 2011-11-28 Peter Rosin <peda@lysator.liu.se>
723 tests: fix 'distcheck-override-infodir.test' on Cygwin
724 * tests/distcheck-override-infodir.test (Makefile.am): Do not add
725 any `/' between $(DESTDIR) and the following paths. Otherwise,
726 when $(DESTDIR) is empty, the recipes will try to access files
727 with a leading double slash, which have an implementation-defined
728 interpretation (e.g., for Cygwin, they mean UNC paths).
730 2011-11-24 Stefano Lattarini <stefano.lattarini@gmail.com>
732 cosmetics: typofix in comments
733 * tests/remake-am-pr10111.test (Makefile.am): Fix typo in comments.
735 Reported by Krzysztof Żelechowski.
737 2011-11-22 Stefano Lattarini <stefano.lattarini@gmail.com>
739 coverage: undistributed '.am' and '.m4' files are diagnosed
740 The stub rules emitted to work around the "deleted header problem"
741 for `.m4' files (included by autoconf in e.g., configure.ac) and
742 for `.am' files (included by automake in e.g., Makefile.am) should
743 not prevent "make" from correctly complaining when such a required
744 file is missing from a distribution tarball.
745 * tests/dist-missing-am.test: New test.
746 * tests/dist-missing-m4.test: Likewise.
747 * tests/dist-missing-included-m4.test: Likewise.
748 * tests/Makefile.am (TESTS): Add them.
749 Suggestion by Ralf Wildenhues.
751 2011-11-22 Stefano Lattarini <stefano.lattarini@gmail.com>
753 coverage: required but missing '.am' and '.m4' files are diagnosed
754 The stub rules emitted to work around the "deleted header problem"
755 for `.m4' files (included by autoconf in e.g., configure.ac) and
756 for `.am' files (included by automake in e.g., Makefile.am) should
757 not prevent the remake rules from correctly erroring out when a
758 still-required file is missing.
759 * tests/deleted-am.test: New test.
760 * tests/deleted-m4.test: Likewise.
761 * tests/Makefile.am (TESTS): Add them.
763 2011-11-22 Stefano Lattarini <stefano.lattarini@gmail.com>
765 coverage: expose automake bug#10111 in the testsuite
766 * tests/remake-am-pr10111.test: New test, xfailing.
767 * tests/remake-m4-pr10111.test: Likewise.
768 * tests/Makefile.am (TESTS, XFAIL_TESTS): Add them.
770 2011-11-19 Stefano Lattarini <stefano.lattarini@gmail.com>
772 texinfo: work around Solaris 10 xpg4 shell bug in install rules
773 * lib/am/texinfos.am (install-html-am): Use an extra variable
774 indirection to work around a bug in Solaris 10 /usr/xpg4/bin/sh.
775 Bug revealed by a failure of `txinfo21.test'. See also:
776 <http://lists.gnu.org/archive/html/bug-autoconf/2011-11/msg00005.html>
777 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10026#23>
779 2011-11-17 Stefano Lattarini <stefano.lattarini@gmail.com>
781 configure: report perl version in config.log
782 * configure.ac: Report the version of the selected perl interpreter
783 in config.log; this should render the logs more informative.
785 2011-11-13 Stefano Lattarini <stefano.lattarini@gmail.com>
787 tests: fix spurious failure with older install-info
788 * tests/install-info-dir.test (foo.texi): Also add proper
789 `@settitle', `@dircategory' and `@direntry' directive, otherwise
790 older versions of `install-info' (e.g., 4.8) will fail to create
791 the `dir' index file in ${infodir}.
792 Problem revealed by a failure on NetBSD 5.1.
794 2011-11-12 Stefano Lattarini <stefano.lattarini@gmail.com>
796 maintcheck: fix spurious failure in 'color2.test'
797 * tests/color2.test: Avoid creative quoting to avoid a spurious
798 failure of the `sc_tests_Exit_not_exit' maintainer check.
800 2011-11-12 Stefano Lattarini <stefano.lattarini@gmail.com>
802 tests: fix spurious error in 'uninstall-fail.test' on Solaris
803 * tests/uninstall-fail.test: Solaris 10 /usr/xpg4/bin/sh can add
804 a line number before the `:' in the error messages issued by shell
805 builtins. Account for that in our grepping of make output.
807 2011-11-12 Stefano Lattarini <stefano.lattarini@gmail.com>
809 tests: fix typo in 'uninstall-fail.test'
810 * tests/uninstall-fail.test: Always use `$rm_f_is_silent_on_error'
811 instead of the bogus `$rm_f_is_silent_on_failure'.
813 2011-11-10 Stefano Lattarini <stefano.lattarini@gmail.com>
815 tests: avoid a spurious failure of 'ltinit.test' MinGW
816 * tests/ltinit.test: Be laxer in grepping configure output, to
817 avoid spurious failures on systems which lack POSIX dynamic
818 linking (e.g., MinGW), or when cross-compiling for such systems.
819 See also commit `v1.11-855-ge9e5d4a'.
820 Report and suggestion from Peter Rosin.
822 2011-11-08 Stefano Lattarini <stefano.lattarini@gmail.com>
824 tests: testsuite is now safe to run with dmake in parallel mode
825 * tests/defs.in: Unset variables DMAKE_CHILD, DMAKE_DEF_PRINTED
826 and DMAKE_MAX_JOBS, which are exported by Solaris dmake when run
827 in parallel mode, and which might confuse make processes spawned
830 2011-11-08 Stefano Lattarini <stefano.lattarini@gmail.com>
832 tests: fix spurious failures w.r.t. parallel make and colorization
833 * tests/color2.test: Skip the test if the $MAKE program fails to
834 consider the standard output as a tty when spawned by `expect'.
835 This is required for make implementations, like FreeBSD make and
836 Solaris dmake, that redirect the output of recipes to temporary
837 files or pipes when run in parallel mode. Since we are at it,
838 simplify the detection of a working `expect' program, and throw
839 in other minor simplifications.
841 2011-11-07 Stefano Lattarini <stefano.lattarini@gmail.com>
843 tests: fix spurious failure in 'distcheck-override-infodir.test'
844 * tests/distcheck-override-infodir.test ($required): Add
847 2011-11-07 Stefano Lattarini <stefano.lattarini@gmail.com>
849 tests: avoid another failure of 'uninstall-fail.test' on Solaris
850 * tests/uninstall-fail.test: On Solaris 10, if `/bin/rm' is run
851 with the `-f' option, it doesn't print any error message when
852 failing to remove a file (due to e.g., "Permission denied").
853 Yikes. Cater to this incompatibility, by relaxing the test when
854 a faulty `rm' is detected.
856 2011-11-10 Stefano Lattarini <stefano.lattarini@gmail.com>
858 tests: various minor tweakings, mostly related to AM_PROG_AR
859 * tests/alloca2.test: Ensure we don't experience a spurious failure
860 due to a missing `AM_PROG_AR' macro or a missing `ar-lib' auxiliary
862 * tests/libtool4.test: Likewise.
863 * tests/ldadd.test: Likewise. Since we are at it, make grepping of
864 automake stderr stricter.
865 * tests/reqd2.test: Likewise.
866 * tests/pr211.test: Ensure automake fails also with `-Wnone', since
867 the error we are testing for is an hard error, not a mere warning.
868 * tests/syntax.test: Likewise, and ensure we don't fail to other
869 errors by removing use of `lib_LTLIBRARIES' in Makefile.am. Since
870 we are at it, make grepping of automake stderr stricter.
872 2011-11-05 Stefano Lattarini <stefano.lattarini@gmail.com>
874 ar-lib: fix configure output for "unrecognized archiver interface"
875 * m4/ar-lib.m4: Ensure that, even when an error is hit while trying
876 to determine the archiver interface kind, the "checking archiver
877 interface" message from configure is properly terminated before
878 an error message is printed, to avoid slightly garbled output.
879 * tests/ar4.test: Enhance.
880 * tests/ar5.test: Likewise.
882 2011-11-04 Stefano Lattarini <stefano.lattarini@gmail.com>
884 warnings: fix buglets for portability warnings
885 * lib/Automake/ChannelDefs.pm (switch_warning): Ensure the
886 correct implications and inter-dependencies between warnings
887 in the categories `portability', `extra-portability' and
888 `recursive-portability' are respected. Also add detailed
889 explicative comments, and references to the relevant tests.
890 * tests/dollarvar2.test: Update and extend. Also, remove
891 some unnecessary uses of `--force' option in automake calls.
892 * tests/extra-portability3.test: New test.
893 * tests/Makefile.am (TESTS): Add it.
895 2011-11-04 Stefano Lattarini <stefano.lattarini@gmail.com>
897 tests: extend tests on 'extra-portability' warning category
898 * tests/extra-portability.test: Redefine `$AUTOMAKE' to ensure we
899 have complete control over the automake options. Extend by using
900 also a setup where no `portability' warning is present (only an
901 `extra-portability' warning is). Other minor extensions. Remove
902 some redundant, verbose comments about the expected diagnostic.
904 2011-11-03 Stefano Lattarini <stefano.lattarini@gmail.com>
906 tests: various minor tweakings, mostly related to AM_PROG_AR
907 * tests/alloca.test: Adjust to new portability requirements due
908 to the new AM_PROG_AR macro.
909 * tests/discover.test: Likewise.
910 * tests/libobj3.test: Likewise.
911 * tests/pluseq7.test: Likewise. Also, make grepping of automake
912 expected error message stricter.
913 * tests/stdlib.test: Likewise, and extend the test a bit.
914 * tests/parse.test (configure.in): Remove redundant call to
916 * tests/library2.test: Adjust to new portability requirements
917 due to the new AM_PROG_AR macro. Also ...
918 (configure.in): ... add call to AC_PROG_CC, to ensure automake
919 really fails for the expected reason.
921 2011-11-03 Zack Weinberg <zackw@panix.com> (tiny change)
922 Stefano Lattarini <stefano.lattarini@gmail.com>
924 maint-mode: fix botched configure messages
925 This change fixes automake bug#9890.
926 * m4/maintainer.m4 (AM_MAINTAINER_MODE): Fix the "checking ..."
927 configure message related to the enabling/disabling of maintainer
929 * tests/help-maintainer.test: Renamed ...
930 * tests/maintmode-configure-msg.test: ... to this, and extended
931 to cover the fixed bug. Also, since we are at it, make grepping
932 of configure help screens stricter, and throw in some few other
933 changes to reduce code duplication and enhance readability.
934 * tests/Makefile.am (TESTS): Update.
935 * THANKS: Update with Zack's new e-mail address.
936 Report and initial patch by Zack Weinberg, test cases added by
939 2011-10-23 Stefano Lattarini <stefano.lattarini@gmail.com>
941 info: allow user to inhibit creation/update of '${infodir}/dir'
942 With this change, we allow the user to request the install-info
943 rules not to update the `${infodir}/dir' file, by setting the
944 environment variable `AM_UPDATE_INFO_DIR' to the value "no".
945 This is especially useful to distro packagers, and is a definite
946 improvement over our previous hack of looking whether the
947 `install-info' program was the Debian or GNU version -- hack
948 which had been silently broken with recent versions of debian
949 install-info BTW (probably since dpkg 1.15.4, 2009-09-06).
950 This change fixes automake bug#9773. See also Debian Bug#543992.
951 * lib/am/texinfos.am: Don't look anymore at the output of
952 `install-info --version' to decide whether to use it to update
953 the `${infodir}/dir' or not; instead, honour the environment
954 variable `AM_UPDATE_INFO_DIR'.
955 * tests/install-info-dir.test: New test.
956 * tests/Makefile.am (TESTS): Add it.
957 * tests/defs: Also unset `AM_UPDATE_INFO_DIR', to avoid unwanted
958 interferences from the environment.
959 * doc/automake.texi (Texinfo): Update.
962 Report by Jonathan Nieder.
964 2011-10-20 Stefano Lattarini <stefano.lattarini@gmail.com>
966 deps: partially revert commit `v1.11-512-geeee551'
967 This change partly reverts commit "Create subdirs for generated
968 sources even when not dep tracking", of 2011-04-02.
969 That commit had caused the bugs #8485 and #8526. Since we are
970 nearing the bug-fixing automake release 1.11.2, the safest policy
971 at the moment is to just revert the problematic hunks: an older,
972 known bug is better than a regression.
973 * automake.in (handle_single_transform): Don't add a dirstamp
974 dependency, even when $object is derived and lands in a subdir.
975 * tests/Makefile.am (XFAIL_TESTS): Add lex-subobj-nodep.test,
976 remove yacc-dist-nobuild-subdir.test.
978 2011-10-25 Stefano Lattarini <stefano.lattarini@gmail.com>
980 tests: few improvements to some `ar-lib' related tests
982 * tests/ar-lib5a.test (Makefile.am): Also check that the target
983 library has truly been created.
984 (ar-lib): Use the real `ar-lib' script (mildly patched) rather
985 than a dummy one, to ensure better "real-life coverage". Fix
986 botched shebang line.
987 * tests/ar-lib5b.test: Extend the PATH variable to make the dummy
988 `lib' script accessible, instead of explicitly calling it by its
989 relative/absolute path.
990 (ar-lib): Fix botched shebang line.
991 (bin/lib): Likewise. Also, add explicative comments, and make
994 2011-10-24 Peter Rosin <peda@lysator.liu.se>
996 Merge branch 'maint' into msvc
998 * tests/subpkg-yacc.test: Adjust to new portability requirements due
999 to the new AM_PROG_AR macro.
1001 2011-10-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1003 dejagnu: allow the package developer to extend site.exp
1004 Fixes automake bug#7873.
1005 * lib/am/dejagnu.am (site.exp): Depend from the files listed in
1006 $(EXTRA_DEJAGNU_SITE_CONFIG), if any. Append their contents to
1007 the generated site.exp (still preserving user edits).
1008 * doc/automake.texi (Dejagnu Tests): Update.
1009 * tests/dejagnu-siteexp-append.test: New test.
1010 * tests/dejagnu-siteexp-extend.test: Likewise.
1011 * tests/dejagnu-siteexp-useredit.test: Likewise.
1012 * tests/Makefile.am (TESTS): Update.
1014 Suggestion by Rainer Orth.
1016 2011-10-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1018 dejagnu: ensure 'srcdir' is defined as a relative directory
1019 This change fixes automake bug#7833.
1020 * lib/am/dejagnu.am (check-DEJAGNU): Prefer using plain $(srcdir)
1021 over calculating and using the absolute path of $(srcdir).
1022 * tests/dejagnu-relative-srcdir.test: New test.
1023 * tests/dejagnu-absolute-builddir.test: Likewise.
1024 * tests/Makefile.am (TESTS): Update.
1025 Report by Ian Lance Taylor. Suggestions by Ralf Wildenhues.
1027 2010-12-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1029 Fix testsuite failure of check12.test without DejaGNU.
1030 * tests/check12.test: Require runtest.
1032 2010-12-10 Stefano Lattarini <stefano.lattarini@gmail.com>
1034 Extend and improve tests on DejaGnu support.
1035 * tests/dejagnu.test: Do not create useless dummy test script.
1036 Add trailing `:' command. In heading comments, add reference
1038 * tests/check12.test: ... this new "semantic" test, covering
1039 concurrent use of dejagnu tests, simple tests and `check-local'
1041 * tests/dejagnu2.test: Make test more reliable, by avoid weak
1042 grepping of make output. Prefer `cat' over `echo' to append
1043 to configure.in. Quote literal dots in grep regexps. Prefer
1044 `grep -c ...' over `grep ... | wc -l'. Make grepping of
1045 automake stderr slightly stricter. Add trailing `:' command.
1046 * tests/dejagnu3.test: Prefer `cat' over `echo' to append to
1047 configure.in. Check stderr of expected-to-fail "make" call.
1048 Remove extra blank lines from Makefile.am.
1049 * tests/dejagnu4.test: Prefer `cat' over `echo' to append to
1050 configure.in. Prefer `mv -f' over plain `mv' when the target
1051 file already exists. Avoid extra mkdir calls by creating more
1052 directories at once. Better use of blank lines. Check that
1053 the `*.log' and `*.sum' files are created by runtest also when
1055 * tests/dejagnu7.test: Prefer `cat' over `echo' to append to
1056 configure.in. Better use of blank lines. Add a trailing `:'
1058 * tests/dejagnu6.test: Likewise, and give the dejagnu test a
1059 more descriptive name.
1060 * tests/dejagnu5.test: Likewise. Also, simply define package
1061 name to `$me' rather than using a non-obvious sed script to
1062 extract it from `AC_INIT', and write the Makefile.am with only
1064 * tests/Makefile.am (TESTS): Updated.
1066 2011-10-21 Peter Rosin <peda@lysator.liu.se>
1068 * THANKS: Fix whitespace issue.
1070 2011-10-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1072 tests: fix spurious failure with FreeBSD make and Yacc in VPATH
1073 * tests/subpkg.test: Some cosmetic adjustments. Move the tests
1074 checking that $(YLWRAP) is defined and installed properly when
1075 ylwrap is in a default auxdir found in a parent package ...
1076 * tests/subpkg-yacc.test: ... into this new test, which carefully
1077 avoids to trigger the known bug#7884 (combo FreeBSD make plus Yacc
1079 * tests/Makefile.am (TESTS): Update.
1081 2011-10-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1083 tests: avoid spurious failure in 'parallel-tests3.test'
1084 This fixes automake bug#8788.
1085 * tests/parallel-tests3.test: To ensure that the serial run of
1086 the dummy testsuite is still ongoing when the parallel run has
1087 terminated, use `kill -0', not a bare `kill'. This will prevent
1088 a testsuite crash on NetBSD 5.1, and a testsuite hang on FreeBSD
1089 8.2. Also, since we are at it, try harder to avoid possible
1090 hangs of the script in other unusual situations.
1092 2011-10-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1094 tests: fix spurious failures with "chatty" make implementations
1095 * tests/distcheck-missing-m4.test: On failure, some make
1096 implementations (such as Solaris make) print the whole failed
1097 recipe on standard output. This was causing a spurious failure
1098 in the checks grepping the output from make. Work around this.
1099 * tests/distcheck-outdated-m4.test: Likewise.
1101 2011-10-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1103 tests: fix spurious failure on fast machines
1104 * tests/aclocal-path-precedence.test: Also remove the `configure'
1105 script between different test runs, to ensure it is always remade
1106 by autoconf. Add proper explicative comments.
1108 2011-10-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1110 tests: avoid spurious failure of 'uninstall-fail.test' on Solaris
1111 * tests/uninstall-fail.test: All the Solaris 10 shells (/bin/sh,
1112 /bin/ksh, and /usr/xpg4/bin/sh), upon failing to chdir to a
1113 directory with the `cd' builtin, print a message like:
1114 "sh: /root: permission denied"
1115 which doesn't report the `cd' builtin anywhere. Relax the grepping
1116 of the error message accordingly.
1118 2011-10-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1120 tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin
1121 * tests/uninstall-fail.test: Be sure to really skip this test
1122 on systems that allows files to be removed from unwritable
1123 directories. Motivated by a spurious failure on Cygwin 1.5.
1125 2011-10-17 Stefano Lattarini <stefano.lattarini@gmail.com>
1127 tests: fix spurious failure with autoconf 2.62
1128 * tests/aclocal-path-precedence.test: Rewrite configure.in,
1129 rather than appending to it, to avoid spurious failures (at
1130 least with autoconf 2.62) due to repeated calls to AC_INIT.
1131 Also, add package name and version arguments to AC_INIT, to
1132 avoid spurious errors from automake.
1134 2011-10-16 Stefano Lattarini <stefano.lattarini@gmail.com>
1136 docs: avoid using colon character inside arguments of @pxref
1137 Fixes automake bug#9753
1138 * doc/automake.texi (VPATH Builds): Avoid using colon character
1139 `:' inside arguments of @pxref, as this can cause problems in
1140 the generated `.info' files, and such an usage will be explicitly
1141 forbidden by future texinfo documentation.
1143 Reported by Дилян Палаузов.
1145 2011-10-07 Stefano Lattarini <stefano.lattarini@gmail.com>
1147 parallel-tests: warn on conditional TEST_EXTENSIONS definition
1148 Before this change, automake would have still bailed out, but
1149 with a confusing error message (about an invalid redefinition
1150 of TEST_EXTENSIONS).
1151 * automake.in (handle_tests): Warn explicitly if TEST_EXTENSIONS
1152 has conditional contents.
1153 * tests/test-extensions-con.test: New test.
1154 * tests/Makefile.am (TESTS): Add it.
1157 2011-10-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1159 parallel-tests: don't allow @substitutions@ in TEST_EXTENSIONS
1160 Even after the last commit `v1.11-476-g90bea64', the checks
1161 performed by automake on entries in $(TEST_EXTENSIONS) tried to
1162 allow for @substitited@ stuff. This however ends up allowing
1163 quite brittle setups, which, most importantly, are of no real
1164 practical usefulness anyway. So it's better to just disallow
1165 @substitutions@ in TEST_EXTENSIONS altogether, offering a clear
1166 error message, instead of risking weird bugs and unexpected
1167 behaviors in the generated Makefile.in.
1168 * automake.in ($TEST_EXTENSION_PATTERN): Turned from a regular
1170 (is_valid_test_extension): ... into this subroutine. Don't allow
1171 generic @substitutions@ anymore (possibly making an exception for
1172 `@EXEEXT@' under the proper circumstances).
1173 * tests/test-extensions.test: Adjust and extend.
1175 2011-10-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1177 tests: fix spurious failure in 'insthook.test'
1178 * tests/insthook.test (Makefile.am): Add a proper `uninstall-hook'
1179 target to remove the symlink created by the `install-exec-hook'
1180 target; this prevents "make distcheck" from failing spuriously.
1181 Since we are at it, delete an extra blank line, and add a trailing
1184 2011-10-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1186 maintcheck: fix spurious failure
1187 * lib/am/distdir.am: Use `$(infodir)', not `${infodir}', to avoid
1188 complaints from the `sc_no_brace_variable_expansions' maintainer
1191 2011-10-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1193 fix: make a test script executable
1194 * tests/nobase-nodist.test: Make executable.
1196 2011-10-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1198 coverage: expose automake bug#9651
1199 * tests/dist-auxfile.test: New test, xfailing.
1200 * tests/dist-auxfile-2.test: Likewise.
1201 * tests/Makefile.am (TESTS, XFAIL_TESTS): Add them.
1203 2011-10-01 Stefano Lattarini <stefano.lattarini@gmail.com>
1205 parallel-tests: automake error our on invalid TEST_EXTENSIONS
1206 This change fixes automake bug#9400.
1207 * automake.in (handle_tests): Bail out if a suffix specified in
1208 TEST_EXTENSIONS would produce an invalid `xxx_LOG_COMPILER'
1209 variable or an invalid suffix rule. Before this change, automake
1210 would have issued a confusing error messages (about invalid or
1211 non-POSIX variables being defined), and in some situations would
1212 have even produced a broken `Makefile.in' file.
1213 ($TEST_EXTENSION_PATTERN): New helper variable.
1214 * doc/automake.texi (Simple Tests using parallel-tests): Document
1215 the limitations on TEST_EXTENSIONS explicitly.
1217 * tests/test-extensions.test: New test.
1218 * tests/Makefile.am (TESTS): Update.
1220 2011-09-28 Stefano Lattarini <stefano.lattarini@gmail.com>
1222 docs: don't suggest installing `.m4' files in hard-coded location
1223 This change fixes automake bug#7988.
1224 * doc/automake.texi (aclocal Options): State that the use of
1225 the `--print-ac-dir' option to determine the directory where
1226 third-party packages can install their `.m4' files is discouraged
1228 (Extending aclocal): Suggest telling the user about ACLOCAL_PATH.
1230 Report by Peter Johansson.
1232 2011-09-26 Stefano Lattarini <stefano.lattarini@gmail.com>
1234 distuninstallcheck: fail also when only one file is left installed
1235 This change fixes automake bug#9579.
1236 * lib/am/distdir.am (distuninstallcheck): Be stricter in ignoring
1237 a potential `dir' file created by install-info and left installed.
1238 Also, be more careful about "this can't happen" kind of errors.
1239 (am__distuninstallcheck_listfiles): New internal helper macro.
1240 * tests/distcheck-pr9579.test: New test.
1241 * tests/distcheck-override-infodir.test: Likewise.
1242 * tests/Makefile.am (TESTS): Add them.
1243 * NEWS, THANKS: Update.
1244 Report by Nick Bowler.
1246 2011-09-28 Stefano Lattarini <stefano.lattarini@gmail.com>
1248 maintcheck: fix usage of `cd' instead of `$(am__cd)'
1249 * lib/am/inst-vars.am (am__uninstall_files_from_dir): Use
1250 `$(am__cd)', not plain `cd'.
1252 2011-09-24 Stefano Lattarini <stefano.lattarini@gmail.com>
1254 uninstall: "make uninstall" before "make install" works
1255 This change fixes automake bug#9578.
1256 * lib/am/inst-vars.am (am__uninstall_files_from_dir): New internal
1257 macro, that defines a shell code fragment to uninstall files from
1259 * lib/am/data.am (uninstall-%DIR%%PRIMARY%): Use it, to reduce code
1260 duplication and improve consistency and correctness.
1261 * lib/am/libs.am (uninstall-%DIR%LIBRARIES): Likewise.
1262 * lib/am/lisp.am (uninstall-%DIR%LISP): Likewise.
1263 * lib/am/mans.am (uninstall-man%SECTION%): Likewise.
1264 * lib/am/python.am (uninstall-%DIR%LIBRARIES): Likewise.
1265 * lib/am/scripts.am (uninstall-%DIR%SCRIPTS): Likewise.
1266 * tests/uninstall-pr9578.test: New test.
1267 * tests/uninstall-fail.test: New test.
1268 * tests/Makefile.am (TESTS): Add them.
1269 * NEWS, THANKS: Update.
1270 Report by Nick Bowler.
1272 2011-09-22 Stefano Lattarini <stefano.lattarini@gmail.com>
1274 tests: fix tests on aclocal search path precedences
1275 * tests/aclocal-path-precedence.test: Call `$ACLOCAL' with the
1276 proper overridden system acdir.
1278 2011-09-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1282 2011-09-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1284 docs: document planned precedence changes in aclocal search path
1285 * doc/automake.texi (Macro Search Path): Explicitly state that the
1286 lookup order for extra directories of `.m4' files will be changed
1287 in the next major release.
1290 2011-09-19 Paolo Bonzini <bonzini@gnu.org>
1291 Stefano Lattarini <stefano.lattarini@gmail.com>
1293 aclocal: handle ACLOCAL_PATH environment variable
1294 * aclocal.in (parse_ACLOCAL_PATH): New function, parse ACLOCAL_PATH
1295 as a colon-separated list of directories to be included in the
1297 * doc/automake.texi (Macro Search Path): Document new behavior and
1298 the precedence rules for various elements of the search path.
1299 * tests/aclocal-path.test: New test.
1300 * tests/aclocal-path-install.test: Likewise.
1301 * tests/aclocal-path-install-serial.test: Likewise.
1302 * tests/aclocal-path-precedence.test: Likewise.
1303 * tests/aclocal-path-nonexistent.test: Likewise.
1304 * tests/Makefile.am (TESTS): Add them.
1306 * tests/distcheck-missing-m4.test: Extend by also checking
1307 interactions with ACLOCAL_PATH.
1308 * tests/distcheck-outdated-m4.test: Likewise, and fix a couple
1309 of botched comments since we are at it.
1311 2011-09-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1313 tests: fix spurious failure in 'primary-prefix-valid-couples.test'
1314 * tests/primary-prefix-valid-couples.test: After commit
1315 v1.11-464-gc9dfc36, `java_JAVA' is not a valid prefix/primary
1316 combination by default anymore: one has to explicitly define
1317 $(javadir) to make it so. So just drop `java_JAVA' from our
1318 Makefile.am Also, since we are at it, ...
1319 (configure.in): ... remove AM_PROG_GCJ from here, as it's not
1322 2011-09-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1324 docs: deprecate JAVA primary
1325 * doc/automake.texi (Java): Deprecate the JAVA primary, stating
1326 that it will become obsolete in automake 1.12 and probably removed
1327 altogether in automake 1.13. Reflect this in the section title,
1328 by appending the string "(deprecated feature)".
1329 (@menu, @detailmenu): Update.
1330 (Java Support with gcj): The cross-referenced support for bytecode
1331 compilation with the JAVA primary is rudimentary and deprecated.
1332 State that explicitly.
1334 2011-09-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1336 docs: clearer distinction between `.java' with javac and with gcj
1337 * doc/automake.texi (Java support): Rename this node ...
1338 (Java support with gcj): ... to this, and change its title from
1339 "Compiling Java sources" to "Compiling Java sources using gcj".
1340 (@detailmenu, @menu, @cindex): Update and make more precise.
1341 (Java): Change the title of this node from simply "Java" to
1342 "Java bytecode compilation".
1343 (@detailmenu, @menu, @cindex): Update and make more precise.
1345 2011-09-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1347 java: complain if java_JAVA is used but $(javadir) is undefined
1348 Fixes automake bug#8461.
1349 * automake.in (handle_java): Remove inappropriate "java" argument
1350 from the calls to `&am_install_var' and `&am_primary_prefixes'.
1351 * tests/instdir-java.test (Makefile.am): Define `$(javadir)'.
1352 * tests/javadir-undefined.test: New test.
1353 * tests/Makefile.am (TESTS): Add it.
1356 2011-09-12 Stefano Lattarini <stefano.lattarini@gmail.com>
1358 cosmetics: fix various typos and grammaros
1360 * tests/py-compile-basic.test: Likewise.
1361 * tests/py-compile-basedir.test: Fix botched wording in comments.
1362 * tests/py-compile-option-terminate.test: Fix typo and incomplete
1364 Suggestions by Peter Rosin.
1366 2011-09-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1368 coverage: test interactions of `nobase_' and `nodist_'
1369 * tests/nobase-nodist.test: New test.
1370 * tests/Makefile.am (TESTS): Add it.
1372 2011-09-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1374 java: fix various blunders in test 'java-mix.test'
1375 * tests/java-mix.test: Add missing call to `set -e'. Fix inverted
1376 semantics (`.java' files are expected *not* to be distributed by
1377 default, not the other way round). Fix various typos in the name
1378 of the `.java' files. Correct other minor blunders. Improve some
1381 2011-04-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1383 java: allow both JAVA and nobase_JAVA in the same Makefile.am
1384 * automake.in (handle_java): Also strip `nobase_' from the given
1385 prefix, when needed.
1386 * tests/java-clean.test: Update and extend.
1387 * tests/java-compile-install.test: Likewise.
1388 * tests/java-no-duplicate.test: Likewise.
1389 * tests/java-sources.test: Likewise.
1390 * tests/java-noinst.test: Likewise.
1391 * tests/java-mix-dist-nodist.test: Renamed to ...
1392 * tests/java-mix.test: ... this, and extended.
1393 * tests/java-nobase.test: New test, still xfailing due to
1395 * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
1397 2011-04-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1399 java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am
1400 Fixes automake bug#8434.
1401 * automake.in (handle_java): Strip `dist_' and `nodist_' from
1402 the given prefix. Define a new internal Makefile variable
1403 `am__java_sources'. Related adjustments.
1404 * lib/am/java.am (JAVAC, JAVAROOT, CLASSPATH_ENV): Define only the
1405 first time this am file is processed.
1406 (class%DIR%.stamp): Stamp file renamed ...
1407 (class%NDIR%.stamp): ... to this, so that the `dist_' and `nodist_'
1408 prefixes are stripped from the name of the stampfile. Adjust
1409 declaration of dependencies by using the new automake-generated
1410 internal variable `$(am__java_sources)'. In the rule, use `$@'
1411 as the name of the target, rather than hard-coding it.
1412 * tests/java.test: Update and extend.
1413 * tests/java-no-duplicate.test: New test.
1414 * tests/java-mix-dist-nodist.test: Likewise.
1415 * tests/java-compile-and-install.test: Likewise.
1416 * tests/java-clean.test: Likewise.
1417 * tests/java-sources.test: Likewise.
1418 * tests/Makefile.am (TESTS): Update.
1420 2011-09-11 Stefano Lattarini <stefano.lattarini@gmail.com>
1422 tests: fix spurious failure on fast machines
1423 * tests/aclocal-acdir.test: Avoid spurious failures due to caching
1424 issues, by cleaning the autom4te cache between all the aclocal
1425 invocations, and by always calling autoconf with the `--force'
1428 2011-09-09 Stefano Lattarini <stefano.lattarini@gmail.com>
1430 aclocal: better URL reference in error message
1431 * aclocal.in (scan_file): In the error message about underquoted
1432 definitions, reference the automake page at `www.gnu.org', not
1433 at `sources.redhat.com'.
1435 2011-09-09 Stefano Lattarini <stefano.lattarini@gmail.com>
1437 coverage: distcheck-hook to catch missing/outdated *.m4 files
1438 Related to automake bug#9037.
1439 * tests/distcheck-missing-m4.test: New test.
1440 * tests/distcheck-outdated-m4.test: Likewise.
1441 * tests/distcheck-hook-m4.am: New data file, used by the new
1443 * tests/Makefile.am (distcheck-m4-missing.log,
1444 distcheck-m4-outdated.log): Depend on it.
1445 (EXTRA_DIST): Distribute it.
1446 (TESTS): Add the new tests.
1448 2011-09-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1450 aclocal: more granularity in acdir overriding
1451 Before this change, using the `--acdir' option caused aclocal to
1452 redefine both the directory of automake-provided m4 macros and the
1453 directory of third-party system-wide m4 macros. With this change,
1454 we deprecate the `--acdir' aclocal option, and introduce two new
1455 options `--automake-acdir' and `--system-acdir', to allow for more
1457 * aclocal.in (@automake_includes, @system_includes,
1458 @user_includes): Fix and extend comments.
1460 (handle_acdir_option): New function.
1461 (parse_arguments): Recognize new options `--system-acdir' and
1462 `automake-acdir', and handle `--acdir' using the new function
1463 above. Simplify logic by assuming that the directory of
1464 third-party system-wide m4 files always exists.
1465 * tests/aclocal.in: Update to use the new options, instead of
1466 the deprecated. `--acdir'.
1467 * m4/dirlist: Move ...
1468 * m4/acdir/dirlist: ... here.
1469 * m4/Makefile.am (EXTRA_DIST): Update.
1470 (m4datadir): Rename ...
1471 (automake_acdir): ... to this. Accordingly, ...
1472 (dist_m4data_DATA): ... rename this ...
1473 (dist_automake_ac_DATA): ... to this.
1474 (system_acdir): New, directory.
1475 (dist_system_ac_DATA): New, defined to an empty value; this will
1476 ensure that the $(system_acdir) directory will be created by
1478 * tests/aclocal.test: Remove check about the `--print-ac-dir'
1479 option of aclocal, it has been moved into ...
1480 * tests/aclocal-print-acdir.test: ... this new test, and quite
1482 * tests/aclocal-acdir.test: New test.
1483 * tests/Makefile.am (TESTS): Add the new tests.
1484 * NEWS, bootstrap: Update.
1485 * doc/automake.texi (aclocal Options, Macro Search Path): Update.
1487 2011-10-21 Peter Rosin <peda@lysator.liu.se>
1489 warnings: new 'extra-portability' category, for AM_PROG_AR
1490 * lib/Automake/ChannelDefs.pm: Register new extra-portability
1492 (switch_warning): Turn off extra-portability if portability is
1493 turned off, and turn on portability if extra-portability is
1495 (set_strictness): Silence extra-portability for --gnits, --gnu
1497 * tests/extra-portability2.test: New test, checking that the
1498 extra-portability channel is silenced by --gnits, --gnu and
1500 * doc/automake.texi (Invoking Automake): Document the new warning
1501 category and its interaction with the portability category.
1502 * tests/extra-portability.test: New test, checking the interaction
1503 between the portability and extra-portability warning categories.
1504 * automake.in (handle_libraries, handle_ltlibraries): Move the
1505 AM_PROG_AR warnings to the new extra-portability channel.
1506 * tests/ar2.test: Adjust to the new warning channel.
1507 * tests/pr300-lib.test: Likewise.
1508 * tests/pr300-ltlib.test: Likewise.
1509 * tests/pr307.test: Likewise.
1510 * tests/pr401.test: Likewise.
1511 * tests/pr401b.test: Likewise.
1512 * tests/pr401c.test: Likewise.
1513 * tests/pr72.test: Likewise.
1515 * tests/Makefile.am (TESTS): Update.
1517 2011-10-21 Peter Rosin <peda@lysator.liu.se>
1518 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1519 Stefano Lattarini <stefano.lattarini@gmail.com>
1521 Add new 'AM_PROG_AR' macro, triggering the 'ar-lib' script.
1522 * m4/ar-lib.m4: New macro AM_PROG_AR, which locates an
1523 archiver and triggers the auxiliary 'ar-lib' script if needed.
1524 * m4/Makefile.am (dist_m4data_DATA): Update.
1525 * automake.in ($seen_ar): New variable.
1526 (scan_autoconf_traces): Set it.
1527 (handle_libraries, handle_ltlibraries): Require AM_PROG_AR for
1529 * doc/automake.texi (Public Macros): Mention the new
1531 (Subpackages): Add AM_PROG_AR to the example.
1532 (A Library): Adjust recommendations for AR given the new
1534 * All relevant tests: Adjust to new portability requirements due
1535 to the new AM_PROG_AR macro.
1536 * tests/ar-lib2.test: New test, checking that AM_PROG_AR triggers
1538 * tests/ar-lib3.test: New test, checking that lib_LIBRARIES
1539 requires AM_PROG_AR.
1540 * tests/ar-lib4.test: New test, checking that lib_LTLIBRARIES
1541 requires AM_PROG_AR.
1542 * tests/ar-lib5a.test: New test, checking that AM_PROG_AR triggers
1543 use of ar-lib when the archiver is Microsoft lib.
1544 * tests/ar-lib5b.test: New test, checking that AM_PROG_AR triggers
1545 use of ar-lib when the archiver is a faked lib.
1546 * tests/ar-lib6a.test: New test, checking the ordering of
1547 AM_PROG_AR and LT_INIT.
1548 * tests/ar-lib6b.test: New test, checking the ordering of
1549 AM_PROG_AR and AC_PROG_LIBTOOL.
1550 * tests/ar-lib7.test: New test, checking that automake warns
1551 if ar-lib is missing.
1552 * tests/ar3.test: New test, checking that AR and ARFLAGS may
1553 be overridden by the user even if AM_PROG_AR is used.
1554 * tests/ar4.test: New test, checking that AM_PROG_AR bails out
1555 if it cannot determine the archiver interface.
1556 * tests/ar5.test: New test, checking that AM_PROG_AR runs its
1557 optional argument if it cannot determine the archiver interface.
1558 * tests/defs.in: New required entry 'lib'.
1559 * tests/Makefile.am (TESTS): Update.
1562 2011-09-05 Peter Rosin <peda@lysator.liu.se>
1564 * tests/amhello-binpkg.test: Add missing $EXEEXT usage.
1566 2011-09-04 Stefano Lattarini <stefano.lattarini@gmail.com>
1568 fix: list test 'vala-vpath.test' in XFAIL_TESTS
1569 * tests/Makefile.am (XFAIL_TESTS): Update.
1571 2011-09-02 Stefano Lattarini <stefano.lattarini@gmail.com>
1573 tests: simplify wrapper for aclocal
1574 * tests/aclocal.in: Remove use of $ACLOCAL_TESTSUITE_FLAGS and
1575 extra `-I' flags; they are not really required, since the file
1576 `m4/amversion.m4' is generated in the srcdir anyway.
1577 * tests/acloca10.test: Remove use of $ACLOCAL_TESTSUITE_FLAGS.
1578 * tests/acloca18.test: Likewise.
1579 * tests/defs.in: Don't nullify $ACLOCAL_TESTSUITE_FLAGS, and do
1582 2011-09-02 Stefano Lattarini <stefano.lattarini@gmail.com>
1584 coverage: vala support failing for VPATH from-scratch builds
1585 * tests/vala-vpath.test: New test, xfailing.
1586 * tests/Makefile.am (TESTS): Update.
1588 From a report by Zbigniew Jędrzejewski-Szmek.
1589 Related to automake bug#8753.
1591 2011-09-01 Stefano Lattarini <stefano.lattarini@gmail.com>
1593 docs: report few more automake parsing limitations
1594 Partly motivated by automake bug#8360.
1595 * doc/automake.texi (General Operation): Report few more automake
1596 limitations w.r.t. parsing of unusual makefile constructs. Related
1598 * tests/doc-parsing-buglets-colneq-subst.test: New test.
1599 * tests/doc-parsing-buglets-tabs.test: Likewise.
1600 * tests/Makefile.am (TESTS): Update.
1602 2011-08-25 Stefano Lattarini <stefano.lattarini@gmail.com>
1604 tests: list "forgotten" test script in TESTS
1605 * tests/Makefile.am (TESTS): Also list ...
1606 * tests/java-empty-classpath.test: ... this test. Since we are
1607 at it, remove trailing whitespace from a couple of lines.
1609 2011-08-25 Eric Blake <eblake@redhat.com>
1611 ylwrap: fix unusual indentation whitespace
1612 * lib/ylwrap: Convert tabs to spaces.
1613 Reported by Karl Berry.
1615 2011-08-17 Stefano Lattarini <stefano.lattarini@gmail.com>
1617 * THANKS (Daniel Richard G.): Update e-mail address.
1619 2011-08-16 Daniel Richard G. <skunk@iskunk.org> (tiny change)
1620 Stefano Lattarini <stefano.lattarini@gmail.com>
1622 java: avoid compilation errors when CLASSPATH is empty
1623 * lib/am/java.am (CLASSPATH_ENV): When redefining `$CLASSPATH',
1624 do not append an empty component in case the previous value of
1625 CLASSPATH is empty or unset.
1626 * tests/java-empty-classpath.test: New test.
1627 * tests/Makefile.am (TESTS): Update.
1628 Fixes automake bug#9306.
1630 2011-08-16 Stefano Lattarini <stefano.lattarini@gmail.com>
1632 parallel-tests: no more spurious successes for FreeBSD make
1633 Work around a bug of FreeBSD make bug that was causing the
1634 automake-generated "check" target to complete with success
1635 even if some tests failed; this happened only when FreeBSD
1636 make was run in concurrent mode (as in, e.g., "make -j2
1637 check"). The bug is not present in NetBSD make.
1638 This change fixes automake bug#9245:
1639 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9245>
1640 See also FreeBSD PR bin/159730:
1641 <http://www.freebsd.org/cgi/query-pr.cgi?pr=159730>
1642 * lib/am/check.am [%?PARALLEL_TESTS%] $(TEST_SUITE_LOG): Use a
1643 more "safe" (and apparently redundant) idiom to exit with error,
1644 so that the non-zero exit status is picked up also by FreeBSD
1645 make when it's running in concurrent mode.
1647 * tests/check-concurrency-bug9245.test: New test.
1648 * tests/Makefile.am (TESTS): Update.
1650 2011-08-11 Stefano Lattarini <stefano.lattarini@gmail.com>
1652 hacking: we now require autoconf 2.68
1653 * HACKING ("Working in git"): Use autoconf and autom4te 2.68,
1654 not 2.67, in the examples.
1656 2011-08-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1658 test defs: more environment cleanup
1659 * tests/defs.in: Also unset variables AM_COLOR_TESTS and
1660 AM_TESTS_ENVIRONMENT.
1662 2011-08-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1664 tests: fix spurious failure with Solaris make
1665 * tests/distcheck-configure-flags-am.test: Avoid using `+=' too
1666 liberally with AM_DISTCHECK_CONFIGURE_FLAGS, since the line breaks
1667 so introduced, in conjunction with single quotes, might confuse
1670 2011-08-03 Stefano Lattarini <stefano.lattarini@gmail.com>
1672 maintcheck: fix maintainer-check failures, both real and spurious
1673 * tests/amhello-binpkg.test: Use "$MAKE", not bare "make".
1674 * Makefile.am (sc_perl_local): Also allow perl special variable
1675 `$~' to be localized. And be slightly laxer in the regexp, to
1676 allow for usages like "local $_ = $foo;".
1677 (sc_tests_overriding_macros_on_cmdline): Also allow for command
1678 line overriding of the `DISABLE_HARD_ERRORS' make variable. Try
1679 to avoid false positives for usages like "$MAKE || st=$?".
1681 2011-08-03 Bruno Haible <bruno@clisp.org>
1683 docs: how to use '-I' option in AM_CPPFLAGS for best VPATH support
1684 * doc/automake.texi (Program Variables): Recommend -I options to
1685 both the build directory and the source directory when needed.
1687 2011-07-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1689 tests: relax a test on amhello examples to cater to Solaris tar
1690 * tests/amhello-binpkg.test: When the tar implementation in use
1691 is not GNU tar, relax the tests on tar output, to avoid spurious
1692 failures. For example, "tar cvf ..." with GNU tar can output
1693 lines like "./usr/bin/hello" on the standard output, while with
1694 Solaris tar it can output lines like "a ./usr/bin/hello 8K" on
1695 standard output, and with Heirloom tar it can output lines like
1696 "a ./usr/bin/hello 15 tape blocks" on standard error.
1698 2011-07-15 Benoit Sigoure <tsunanet@gmail.com>
1700 docs: add references between the 2 sections on java support
1701 * doc/automake.texi (Java Support, Java): Add cross-references.
1703 2011-07-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1705 Sync auxiliary files from upstream.
1706 * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub,
1707 lib/texinfo.tex: Sync from upstream.
1709 2011-07-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1711 tests: fix weakness in 'tests-environment-backcompat.test'
1712 * tests/tests-environment-backcompat.test: Do not override the
1713 content of xfailing test `baz.test' with a "weaker" version that
1714 fails unconditionally: the test must fail only when the 'strict'
1715 pragma is in use, in order not to reduce coverage.
1717 2011-07-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1719 docs, tests: synchronize examples on silent-rules from config.site
1720 * doc/automake.texi (Automake silent-rules Option): Reference test
1721 'silent-configsite.test' in comments.
1723 2011-07-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1725 tests: portability fixes in tests on amhello examples
1726 * tests/amhello-binpkg.test: Don't use "tar xzf too.tag.gz" to
1727 extract a gzip-compressed tarball, that's unportable to some
1728 tar implementations; use the "gzip -dc fo.tar.gz | tar xf -"
1730 * tests/amhello-cflags.test: Likewise.
1731 * tests/amhello-cross-compile.test: Likewise.
1732 Suggestion from Ralf Wildenhues.
1734 2011-07-04 Stefano Lattarini <stefano.lattarini@gmail.com>
1736 remake: add test ensuring that slower remakes don't hang
1737 * tests/remake-subdir-long-time.test: New test.
1738 * tests/Makefile.am (TESTS): Update.
1739 Suggestion by Ralf Wildenhues.
1741 2011-07-04 Stefano Lattarini <stefano.lattarini@gmail.com>
1743 remake: fix outdated comment in configure.am
1744 * lib/am/configure.am: Fix comment falsified by changes in
1745 commit `v1.11-366-gbee9871'.
1746 Suggestion by Ralf Wildenhues.
1748 2011-07-01 Stefano Lattarini <stefano.lattarini@gmail.com>
1750 docs, tests: synchronize examples from docs to tests
1751 * tests/README (Writing test cases): Give suggestions on how to
1752 keep test cases and examples in the documentation synchronized.
1753 * doc/automake.texi: Improve or fix existing testcase-referencing
1754 comments, and add many new ones.
1755 * HACKING (Administrivia): Suggest to test complex examples and
1756 idioms from the manual.
1757 * tests/specflg8.test: Improve synchronization with the example
1759 * tests/output11.test:Likewise.
1760 * tests/txinfo21.test:Likewise.
1761 * tests/interp.test: Likewise. Since we are at it, and enable
1762 the `errexit' shell flag, do related changes, and add trailing
1764 * tests/amhello-cflags.test: New test.
1765 * tests/amhello-cross-compile.test: Likewise.
1766 * tests/amhello-binpkg.test: Likewise.
1767 * tests/tests-environment-backcompat.test: Likewise.
1768 * tests/parallel-tests-log-compiler-example.test: Likewise.
1769 * tests/Makefile.am (TESTS): Update.
1771 2011-06-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1773 docs: avoid a footnote, some related rewordings and improvements
1774 * doc/automake.texi (Dist): Reword the part about automatically
1775 distributed files to avoid a footnote. Since we are at it, extend
1776 a bit, and add an example and a reference to a relevant test case.
1778 2011-06-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1780 docs: minor cosmetic fixes
1781 * doc/automake.texi: Break few overly long lines, throughout the
1783 ("Simple Tests"): Move @vindex for XFAIL_TESTS to the correct
1784 position, i.e., before and not after the paragraph where it is
1786 ("Options" @item ansi2knr): Use @pxref instead of @xref. This
1787 fixes a texinfo warning.
1788 ("Other things Automake recognizes" @item AM_C_PROTOTYPES): Use
1789 @pxref instead of @ref.
1791 2011-06-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1793 help: improve text about automatically-distributed files
1794 This change fixes automake bug#7819.
1795 * automake.in (usage): Distinguish between files that are always
1796 automatically distributed when found, and those which are only
1797 "under certain conditions".
1798 * doc/automake.texi (Basics of Distribution): Update accordingly.
1799 * tests/autodist-subdir.test: Update.
1800 * tests/autodist-no-duplicate.test: Likewise.
1801 * tests/autodist.test: Likewise.
1802 (configure.in): Remove useless call to AM_MAINTAINER_MODE.
1804 2011-06-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1806 refactor: split 'usage' subroutine in automake
1807 This change is related to automake bug#7819.
1808 * automake.in (print_autodist_files): New subroutine,
1810 (usage): ... this, which now uses it.
1811 * tests/autodist-no-duplicate.test: New test.
1812 * tests/Makefile.am (TESTS): Update.
1814 2011-06-23 Stefano Lattarini <stefano.lattarini@gmail.com>
1816 tests: fix bug in 'autodist.test'
1817 * tests/autodist.test: Avoid spurious failure due to no
1818 `defs-static' file being found in the parent directory.
1820 2011-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
1822 maintcheck: extend 'sc_tests_plain_*' checks
1823 * Makefile.am (sc_tests_plain_autom4te): New check.
1824 (sc_tests_plain_autoreconf): Likewise.
1825 (sc_tests_plain_autoheader): Likewise.
1826 (syntax_check_rules): Update.
1828 2011-06-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1830 maintcheck: avoid few spurious failures
1831 * Makefile.am (sc_tests_plain_aclocal, sc_tests_plain_perl,
1832 sc_tests_plain_autoconf, sc_tests_plain_automake,
1833 sc_tests_plain_autoupate): Be stricter in matching an erroneous
1834 literal command, i.e., `aclocal', `automake', `perl', etc.
1836 2011-06-20 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
1838 check: don't use multi-line coloring for the report
1839 "less -R" can't handle multi-line coloring as it is done for the
1840 check reports of the serial and parallel testsuite, because of
1841 performance reasons. Thus, color each line of the check report
1843 * lib/am/check.am (am__text_box): Accept colors for lines, and
1844 color each line by its own.
1845 [%?PARALLEL_TESTS%] $(TEST_SUITE_LOG): Let am__text_box handle
1847 [!%?PARALLEL_TESTS%] $(check-TESTS): Color each report line by
1851 2011-06-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1853 docs: AM_DISTCHECK_CONFIGURE_FLAGS is for corner cases
1854 * doc/automake.texi (Checking the Distribution): Explain that the
1855 developers should take care of making their code buildable without
1856 requiring any special configure options, so that in general
1857 AM_DISTCHECK_CONFIGURE_FLAGS shouldn't be used. Give an example
1858 of where its use is legitimate.
1859 Suggestions from Ralf Wildenhues and Eric Blake.
1861 2011-06-14 Stefano Lattarini <stefano.lattarini@gmail.com>
1863 ansi2knr: deprecate, it will go away in the next major release
1864 * doc/automake.texi: Loudly and repeatedly state that the old
1865 de-ANSI-fication features are now deprecated and will be removed
1866 in the next major Automake release. Other related adjustments.
1867 * lib/Automake/Options.pm (_process_option_list ): Give a warning
1868 in the `obsolete' category when the `ansi2knr' option is used.
1869 * m4/protos.m4 (AM_C_PROTOTYPES): Deprecate this macro: a warning
1870 in the `obsolete' category will be emitted it if is used.
1871 * tests/ansi2knr-deprecation.test: New test.
1872 * tests/Makefile.am (TESTS): Update.
1873 * tests/ansi.test: Adjust, by calling autoconf and/or automake
1874 with the `-Wno-obsolete' flag.
1875 * tests/ansi10.test: Likewise.
1876 * tests/ansi2.test: Likewise.
1877 * tests/ansi3.test: Likewise.
1878 * tests/ansi3b.test: Likewise.
1879 * tests/ansi4.test: Likewise.
1880 * tests/ansi5.test: Likewise.
1881 * tests/ansi6.test: Likewise.
1882 * tests/ansi7.test: Likewise.
1883 * tests/ansi8.test: Likewise.
1884 * tests/ansi9.test: Likewise.
1885 * tests/cxxansi.test: Likewise.
1886 * tests/libobj8.test: Likewise.
1887 * NEWS: Update about the future planned backward-incompatibility
1888 due to the removal of de-ANSI-fication feature.
1890 2011-06-19 Stefano Lattarini <stefano.lattarini@gmail.com>
1892 docs: primary/prefix combination "pkglib_PROGRAMS" is now invalid
1893 * doc/automake.texi (Program Sources): pkglib_PROGRAMS is not a
1894 valid combination anymore, so don't document it. Inconsistency
1895 introduced in commit `v1.11-373-g9ca6326'.
1897 2011-06-19 Jim Meyering <meyering@redhat.com>
1899 docs: replace obsolete @vindex entry with a useful one
1900 * doc/automake.texi (Program Sources): Do not index obsolete
1901 pkglib_PROGRAMS here. Do index pkglibexec_PROGRAMS.
1903 2011-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
1905 tests: optimize tests on primary/prefix mismatch for speed
1906 * tests/primary-prefix-invalid-couples.test: Partial rewrite, in
1907 order to use just a single automake invocation rather than one
1908 invocation for each invalid primary/prefix couple. This improves
1909 the test script execution time by an order of magnitude.
1910 Since we are at it, throw in some other improvements to avoid
1911 unrelated automake warnings and failures that could potentially
1912 cause false positives w.r.t. the automake exit status.
1914 2011-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
1916 news: update w.r.t. introduction of AM_DISTCHECK_CONFIGURE_FLAGS
1917 * NEWS (Miscellaneous changes): Update.
1919 2011-06-10 Stefano Lattarini <stefano.lattarini@gmail.com>
1921 maintcheck: DISTCHECK_CONFIGURE_FLAGS can be defined on make cmdline
1922 * Makefile.am (sc_tests_overriding_macros_on_cmdline): It's now
1923 acceptable that the test scripts override DISTCHECK_CONFIGURE_FLAGS
1924 on the make command line. Update comments accordingly. Since we
1925 are at it, make the relevant grepping rules slightly tighter.
1927 2011-06-10 Stefano Lattarini <stefano.lattarini@gmail.com>
1929 distcheck: add support for AM_DISTCHECK_CONFIGURE_FLAGS
1930 * doc/automake.texi (Checking the Distribution): Suggest to use
1931 AM_DISTCHECK_CONFIGURE_FLAGS, not DISTCHECK_CONFIGURE_FLAGS, to
1932 define (in the top-level Makefile.am) extra flags to be passed
1933 to configure at "make distcheck" time; DISTCHECK_CONFIGURE_FLAGS
1934 should be reserved for the user. Add proper `@vindex' directive.
1935 Document that AM_DISTCHECK_CONFIGURE_FLAGS is not honoured in a
1936 subpackage Makefile.am, but the flags in it are passed down to
1937 the configure script of the subpackage.
1938 * lib/am/distdir.am (distcheck): Also pass the flags in
1939 $(AM_DISTCHECK_CONFIGURE_FLAGS) to the configure invocation.
1941 * tests/defs.in.test (AM_DISTCHECK_CONFIGURE_FLAGS,
1942 DISTCHECK_CONFIGURE_FLAGS): Unset in case they are exported in
1943 the environment, they might improperly influence our testsuite.
1944 * tests/distcheck-configure-flags.test: New test.
1945 * tests/distcheck-configure-flags-am.test: Likewise.
1946 * tests/distcheck-configure-flags-subpkg.test: Likewise.
1947 * distcheck-hook.test: Likewise.
1948 * distcheck-hook2.test: Likewise.
1949 * tests/Makefile.am (TESTS): Update.
1950 Closes automake bug#8784.
1952 2010-06-09 Stefano Lattarini <stefano.lattarini@gmail.com>
1954 docs: better documentation for silent make rules
1955 * doc/automake.texi (Options): Detailed description of the
1956 automake option `silent-rules' moved from here ...
1957 (Silent Make): ... into this new chapter, expanded, improved,
1958 and subdivided into ...
1959 (Make verbosity, Tricks For Silencing Make,
1960 Automake silent-rules Option): ... these new sections.
1961 (@menu, @detailmenu): Update.
1962 * tests/silent-configsite.test: New test, checking that the
1963 user can control default mode of silent-rules from config.site,
1964 as is documented in the manual.
1965 * tests/Makefile.am (TESTS): Updated.
1967 2011-06-11 Stefano Lattarini <stefano.lattarini@gmail.com>
1969 Warnings about primary/prefix mismatch fixed and extended.
1970 * automake.in (%standard_prefix): Add `doc' and `locale'.
1971 Rename `pkgdatadir' to `pkgdata'. Similarly for`pkglibdir',
1972 `pkgincludedir' and `pkglibexecdir'.
1973 (handle_programs): List `pkglibexec', not `pkglib', among the
1974 prefixes valid for the `PROGRAMS' primary.
1975 (handle_data): List also `doc' among the prefixes valid for
1976 the `DATA' primary. This is required by automake's own build
1978 * tests/dirforbid.test: Test removed, superseded by ...
1979 * tests/primary-prefix-invalid-couples.test: ... this new test.
1980 * tests/primary-prefix-valid-couples.test: New test.
1981 * tests/primary-prefix-couples-documented-valid.test: Likewise.
1982 * tests/primary-prefix-couples-force-valid.test: Likewise.
1983 * tests/java3.test: Adjusted, and extended a bit.
1984 * tests/Makefile.am (TESTS): Updated.
1986 From a report by Eric Blake.
1988 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1990 test defs: new function 'fatal_', for hard errors
1991 Before this patch, the only way offered by tests/defs to
1992 properly signal a hard error was the `framework_failure_'
1993 function. But the error message issued by that function,
1994 as its name would suggest, refers to a set-up failure in the
1995 testsuite, while hard errors can obviously also be due to
1996 other reasons. The best way to fix this inconsistency is to
1997 introduce a new function with a more general error message.
1998 Inspired by a recent similar change to Gnulib's tests/init.sh.
1999 * tests/defs.in (fatal_): New function.
2000 * tests/README (Section "Writing test cases" subsection "Do"):
2001 Suggest the use of `fatal_', not of `framework_failure_', for
2002 generic hard errors. The latter should be reserved for "real"
2005 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2007 py-compile: '--' and non-option arguments terminate the option list
2008 * lib/py-compile: Any non-option argument, or the special `--'
2009 argument, now explicitly terminates the list of options.
2010 * tests/py-compile-option-terminate.test: New test.
2011 * tests/Makefile.am (TESTS): Update.
2014 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2016 py-compile: complain on unrecognized options
2017 * lib/py-compile: Complain on unrecognized options. Don't be too
2018 lax in matching `--help' and `--version' options.
2019 * tests/py-compile-usage.test: Extend accordingly.
2022 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2024 py-compile: normalize error and help messages
2025 * lib/py-compile: Now error messages do not begin with a capital
2026 letter, nor end with a period, as per GNU standards. Prepend the
2027 error messages with the name of the script, not with its path.
2028 When an invalid usage is recognized, always display the customary
2029 message "Try `py-compile --help' ..." on a line of its own.
2030 ($me): New variable, containing the name of the
2031 program, i.e., `py-compile'. Use it throughout.
2032 (usage_error): New function, used to display error messages about
2034 * tests/py-compile-usage.test: Extend and tighten accordingly.
2036 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2038 python tests: add "unit tests" on py-compile
2039 * tests/py-compile-basic.test: New test.
2040 * tests/py-compile-basic2.test: New test.
2041 * tests/py-compile-basedir.test: Likewise.
2042 * tests/py-compile-destdir.test: Likewise.
2043 * tests/py-compile-env.test: Likewise.
2044 * tests/py-compile-usage.test: Likewise.
2045 * tests/Makefile.am (TESTS): Update.
2046 Tested with python 2.0.1, 2.4.6, 2.6.6, 2.7.1, and 3.1.3.
2048 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2050 py-compile: the '--destdir' option now accepts a blank argument
2051 * lib/py-compile (Option parsing): Do not count an empty argument
2052 to `--destdir' or `--basedir' as a missing argument.
2053 * lib/python.am: Simplify accordingly, passing the `--destdir'
2054 option to py-compile unconditionally, even if `$(DESTDIR)' is
2058 2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2060 python: run the 'py-compile' script with $(SHELL)
2061 * lib/python.am (install-%DIR%PYTHON): Run each instance of
2062 py-compile using $(SHELL). Since we are at it, break overly
2064 (am__py_compile): New variable, to reduce code duplication.
2066 2011-06-02 Stefano Lattarini <stefano.lattarini@gmail.com>
2068 maintcheck: fix some failures, extend some checks
2069 * Makefile.am (sc_diff_automake_in_automake): Update, as we
2070 now expect 9 lines, not 8, to be changed from `automake.in'
2072 (sc_diff_aclocal_in_aclocal): New maintainer check, similar to
2073 the above, and checking that only 10 lines are changed from
2074 `aclocal.in' to `aclocal'.
2075 (syntax_check_rules): Update.
2076 (sc_tests_Exit_not_exit): Exempt self tests `self-check-*.test'
2077 from this check, as they can legitimately use the bare `exit'
2078 builtin in various places.
2079 * doc/automake.texi (Python): Remove stray `@' from the end of
2080 a line. Typo introduced in commit `v1.11-312-g5bf7af6'.
2081 * tests/depcomp8a.test: Pass DISTCHECK_CONFIGURE_FLAGS to make
2082 from the environment rather than from the command line, to
2083 pacify the `sc_tests_overriding_macros_on_cmdline' maintainer
2085 * tests/depcomp8b.test: Likewise.
2087 2011-05-29 Stefano Lattarini <stefano.lattarini@gmail.com>
2089 remake: behave better with non-GNU make in subdirectories
2090 Currently, with every decent make program, it is possible to
2091 rebuild out-of-date autotools-generated files with a simple
2092 "make Makefile" -- but for this to work reliably with non-GNU
2093 make implementations, the command must be issued from the
2094 top-level directory. This patch removes such limitation.
2095 * lib/am/configure.am (am--refresh): Depend on `%MAKEFILE%'.
2096 * tests/defs.in (using_gmake): New function, backported from the
2097 `master' branch (and simplified).
2098 * tests/remake-subdir.test: New test.
2099 * tests/remake-subdir2.test: Likewise.
2100 * tests/remake-subdir-gnu.test: Likewise.
2101 * tests/remake-subdir-from-subdir.test: Likewise.
2102 * tests/Makefile.am (TESTS): Update.
2104 2011-05-29 Stefano Lattarini <stefano.lattarini@gmail.com>
2106 automake, aclocal: honour configure-time AUTOCONF and AUTOM4TE
2107 Currently, the Automake's own configure script allow definition
2108 of AUTOCONF and AUTOM4TE, expected to point respectively to an
2109 autoconf and autom4te programs. But while these definitions are
2110 honoured in the Automake's build systems and test suite, they
2111 were *not* honoured in the generated `automake' and `aclocal'
2112 scripts. This behaviour, apart from being wrong in that it does
2113 not allow the user enough freedom in choosing his tools, also
2114 caused inconsistencies in the test suite, brining to spurious
2116 Problem reported by Graham Reitz on the automake list; see thread:
2117 <http://lists.gnu.org/archive/html/automake/2011-05/msg00022.html>
2118 * automake.in ($traces): Use `@am_AUTOCONF', not simply `autoconf'.
2119 * aclocal.in ($traces): Use `@am_AUTOM4TE', not simply `autom4te'.
2120 * Makefile.am (do_subst): Substitute also `@am_AUTOCONF' and
2125 2011-05-29 Stefano Lattarini <stefano.lattarini@gmail.com>
2127 build: the user can override AUTOM4TE, AUTORECONF and AUTOUPDATE too
2128 Our build system allows the user to override AUTOCONF and AUTOHEADER
2129 at configure time, and honours these overrides in our testsuite.
2130 But it didn't do the same with AUTOM4TE, AUTORECONF and AUTOUPDATE.
2131 This change fixes that inconsistency.
2132 * configure.ac (am_AUTOM4TE, am_AUTOUPDATE, am_AUTORECONF): New
2133 AC_SUBSTitutions. Update comments.
2134 * tests/defs.in ($AUTOUPDATE): Default to `@am_AUTOUPDATE@' now.
2135 ($AUTOM4TE): New variable, defaulting to `@am_AUTOM4TE@'.
2136 ($AUTORECONF): New variable, defaulting to `@am_AUTORECONF@'.
2137 * doc/Makefile.am ($(srcdir)/amhello-1.0.tar.gz): Update.
2139 2011-05-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2140 Stefano Lattarini <stefano.lattarini@gmail.com>
2142 tests/README: fix example about `make -e' usage
2143 * tests/README (Section "Writing test cases" subsection "Do"): When
2144 some variable is never initialized in the Makefile, `-e' is not
2145 necessary in order to override it. DESTDIR is such a variable: we
2146 ensure that we do not ever initialize it. And as such, it is quite
2148 $ make DESTDIR=/foo/bar install
2149 and in fact, quite widely used.
2150 So our example about when `make -e' is required, which references
2151 the `DESTDIR' variable, is poorly chosen, if not downright wrong.
2152 Rewrite it to use `prefix' as the overridden variable instead.
2154 2011-05-22 Stefano Lattarini <stefano.lattarini@gmail.com>
2156 parallel-tests: stricter checks on DISABLE_HARD_ERRORS support
2157 * tests/parallel-tests-harderror.test: New test, doing more
2158 in-depth checks on DISABLE_HARD_ERRORS.
2159 * tests/parallel-tests.test: Remove tests on DISABLE_HARD_ERRORS,
2161 * tests/Makefile.am (TESTS): Update.
2163 2011-05-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2165 testsuite: avoid re-running few tests with 'parallel-tests' option
2166 Some tests in our testsuite use the 'simple-tests' driver only
2167 marginally, or simply as a mean to conveniently check unrelated
2168 invariants. It makes little sense to force these tests to also
2169 run with the 'parallel-tests' Automake option active, as doing so
2170 offers no real gain in coverage, while often causing a measurable
2171 overhead in execution time (for an already too-slow testsuite).
2172 * tests/pr401.test (parallel_tests): Define to "no", to prevent
2173 the generation of a sibling test script using the 'parallel-tests'
2175 * tests/pr401b.test: Likewise.
2176 * tests/pr401c.test: Likewise.
2178 2011-05-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2180 testsuite: allow tests to avoid the use of 'parallel-tests' option
2181 * tests/gen-parallel-tests: Do not generate "siblings" for tests
2182 that explicitly define the `parallel_tests', whether to "yes" or
2183 to any other value. Extend heading comments to give a rationale
2185 * tests/README: Update.
2187 2011-05-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2189 tests/README: update obsoleted advice
2190 * tests/README (Section "Writing test cases" subsection "Do"):
2191 Do not suggest to use the `*-p.test' pattern for the names of
2192 hand-written tests which use the `parallel-tests' Automake option.
2193 Not only is this not respected by the existing tests, but it is
2194 more likely to cause conflicts with auto-generated tests.
2195 So, suggest to *avoid* using the `*-p.test' pattern in names
2196 of hand-written tests instead.
2197 (Section "Writing test cases" subsection "Do not"): When
2198 suggesting not to override Makefile variables using command
2199 line arguments, do not use the badly outdated variables `U'
2200 and 'ANSI2KNR' in the example; instead, use the more common
2201 and typical `DESTDIR'.
2203 2011-05-19 Stefano Lattarini <stefano.lattarini@gmail.com>
2205 test defs: rename requirement 'non-cross' -> 'native'
2206 * tests/defs.in (non-cross): Rename requirement ...
2207 (native): ... to this, which is clearer and fits the
2208 existing lingo better.
2209 Suggestion by Ralf Wildenhues.
2211 2011-05-15 Stefano Lattarini <stefano.lattarini@gmail.com>
2213 testsuite: be more cross-compile friendly
2214 * tests/defs.in (cross_compiling): New subroutine.
2215 (am__tool_prefix): New internal variable.
2216 (gcc, g++, gcj): Force the use of the correct "tool prefix"
2217 when cross compiling.
2218 (gfortran, g77, non-cross): New requirements.
2220 2011-05-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2222 check: document and test $(TEST_SUITE_LOG) overriding
2223 * doc/automake.texi (Simple Tests using parallel-tests): Explain
2224 how and why TEST_SUITE_LOG can be overridden at runtime.
2225 * tests/parallel-tests-log-override-1.test: New test, check that
2226 the newly documented idiom and similar usages are truly supported.
2227 * tests/parallel-tests-log-override-2.test: Likewise.
2228 * tests/parallel-tests-log-override-recheck.test: Likewise.
2229 * tests/Makefile.am (TESTS): Update.
2231 2011-05-07 Stefano Lattarini <stefano.lattarini@gmail.com>
2233 tests: fix spurious failure of txinfo21.test on FreeBSD
2234 * tests/txinfo21.test: Use the `is_newest' subroutine instead of
2235 the `ls -t' hack to to determine whether a file has been updated.
2236 This is required because at least FreeBSD `ls' do not sort files
2237 with the same timestamp in alphabetical order when using the `-t'
2240 2011-05-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2242 tests defs: allow requirements for compilers (mostly dummy)
2243 Most of the new requirements that are now accepted in `$required'
2244 as consequence of this patch are still dummy. They are planned
2245 to be implemented only in master (or in some derived branch), but
2246 having them here (even just as no-op) will allow for an easier
2247 integration/backporting of potential new testcases.
2248 * tests/defs.in (cc, c++, fortran, fortran77): New requirements,
2250 (flex): New requirement, picking LEX for configure.
2251 (lex): New requirement, alias for `flex'. A more appropriate
2252 implementation, looking for a generic `lex' program, will follow
2254 (yacc): New requirement, alias for `bison'. A more appropriate
2255 implementation, looking for a generic `yacc' program, will follow
2258 2011-04-24 Stefano Lattarini <stefano.lattarini@gmail.com>
2260 tests: fix spurious failure in a test on TESTS (VPATH-related)
2261 * tests/check-tests-in-builddir.test: When not using the
2262 parallel-tests option, do not check that VPATH components are
2263 not present in the displayed test name, since the simple-tests
2264 driver do not try to strip them.
2266 2011-04-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2268 test: self check subroutines for skipping/failing of tests
2269 * tests/self-check-report.test: New test.
2270 * tests/Makefile.am (TESTS): Update.
2272 2011-04-23 Jim Meyering <meyering@redhat.com>
2273 Stefano Lattarini <stefano.lattarini@gmail.com>
2275 test defs: new subroutines for test skipping/failing
2276 * tests/defs.in (Exit): Move definition of this function earlier.
2277 (warn_, skip_, fail_, framework_failure_): New functions, inspired
2278 to the homonyms in gnulib's tests/init.sh.
2279 ($stderr_fileno_): New global variable, used by the new functions
2281 * tests/README: Updated.
2282 From a suggestion by Ralf Wildenhues.
2284 2011-04-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2286 tests: fix typo (copy & paste blunder) in heading comment
2287 * tests/maintclean-vpath.test: Correctly refer to the sister test
2288 as `maintclean.test', not as `maintclean-vpath.test'.
2290 2011-04-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2292 tests: remove redundant test `mclean.test'
2293 * tests/mclean.test: Remove, it's a weak grepping test completely
2294 superseded by the much more complete `maintclean.test'.
2295 * tests/Makefile.am (TESTS): Update.
2297 2011-04-22 Stefano Lattarini <stefano.lattarini@gmail.com>
2299 testsuite: more environment sanitization
2300 * tests/defs.in: Sanity check: abort if any of `parallel_tests'
2301 or `required' is in the environment.
2302 ($sed_unindent_prog): Initialize to empty, to avoid interferences
2303 from the environment.
2304 * tests/self-check-me-in-env.test: Renamed to ...
2305 * tests/self-check-env-sanitize.test: ... this, and extended.
2306 * tests/Makefile.am (TESTS): Update.
2307 (TESTS_ENVIRONMENT): Unset variables `parallel_tests' and
2308 `required'. Adjust comments.
2310 2011-04-18 Stefano Lattarini <stefano.lattarini@gmail.com>
2312 tests: don't allow `$me' to be overridden from the environment
2313 * tests/defs.in: Sanity check: abort if $me is in the environment.
2314 * tests/self-check-me-in-env.test: New test.
2315 * tests/Makefile.am (TESTS_ENVIRONMENT): Unset variable `me'.
2317 Suggestion by Ralf Wildenhues.
2319 2011-04-17 Stefano Lattarini <stefano.lattarini@gmail.com>
2321 test defs: allow overriding of `$me'
2322 * tests/defs.in ($me): Allow overriding by the including test
2323 script. Add some explicative comments.
2325 2011-04-17 Stefano Lattarini <stefano.lattarini@gmail.com>
2327 depcomp tests: don't reject slower dependency extractors
2328 * tests/depcomp8b.test: Add the `--enable-dependency-tracking'
2329 option to `configure' invocations, so that slower dependency
2330 extractors are not rejected.
2331 * tests/depcomp8a.test: Likewise. Also ...
2332 (foo.c): ... since we are at it, fix spacing to be consistent
2333 with GNU coding standards.
2335 2011-04-17 Stefano Lattarini <stefano.lattarini@gmail.com>
2337 m4: add missing serial numbers to a few files
2338 Related to automake bug#8483.
2339 * m4/amversion.in: Add serial number.
2340 * m4/auxdir.m4: Likewise.
2341 * m4/gcj.m4: Likewise.
2342 * m4/install-sh.m4: Likewise.
2343 * m4/mkdirp.m4: Likewise.
2344 * m4/python.m4: Likewise.
2345 * m4/runlog.m4: Likewise.
2346 * m4/strip.m4: Likewise.
2347 * m4/upc.m4: Likewise.
2349 2011-04-16 Jim Meyering <meyering@redhat.com>
2351 depcomp: correct invalid sed invocation
2352 * lib/depcomp: Insert missing -e before '/:$/d'.
2353 Otherwise, that use of sed would treat '/:$/d' as a file name.
2355 2011-04-14 Stefano Lattarini <stefano.lattarini@gmail.com>
2357 maintainer check: quote literal `$' in Makefile rule
2358 * Makefile.am (sc_tests_PATH_SEPARATOR): Escape literal `$'
2359 character in double-quoted string. Fix a bug in which the rule
2360 emitted an erroneously empty substring in its error message.
2362 2011-04-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2364 coverage: test for automake bug#8485 (known regression)
2365 * tests/yacc-dist-nobuild-subdir.test: New test.
2366 * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
2368 2011-04-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2370 test defs: define default $distdir (help reducing duplication)
2371 * tests/defs.in ($distdir): New variable, might be used in
2372 testcases checking distribution-related features.
2373 * tests/pr9.test: Use it.
2374 * tests/subdir9.test: Likewise.
2375 * tests/vtexi3.test: Add comment explaining why we redefine
2376 $distdir in this test.
2378 2011-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2380 depcomp: fix bugs in tests and in the depcomp script
2381 * lib/depcomp (gcc): Remove duplicated `-e' from sed invocation.
2382 * tests/depcomp10.test: Make it executable. Fix a blunder that
2383 has left part of an intended comment not prefixed by `#', thus
2384 causing shell syntax errors. In this same comment, break a
2385 too-long reported error message on multiple lines, for clarity.
2386 Add reference to the relevant bug report. Add a comment which
2387 explains why the test result 'skipped' if the first "make" call
2388 fails. Add other useful comments.
2389 * tests/depcomp9.test: Slightly improve comments.
2391 2011-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2393 Fix hp depmode for VPATH builds with GNU make.
2394 * lib/depcomp: Be sure to remove VPATH-prefixed object from
2395 dependency output when creating stub rule.
2396 * tests/depcomp10.test: New test.
2397 * tests/Makefile.am (TESTS): Update.
2399 Report by Bruno Haible.
2401 2011-04-10 Stefano Lattarini <stefano.lattarini@gmail.com>
2403 test defs: fix 'javac' requirement for older JDK versions
2404 The Java compiler from JDK 1.5 (and presumably earlier versions)
2405 cannot handle the `-version' option by itself; and while it does
2406 print the version number, it then errors out with an usage error:
2409 javac: no source files
2410 Usage: javac <options> <source files>
2412 Luckily, adding the `-help' option to the `javac' invocation
2413 seems to fix this problem.
2414 * tests/defs.in (javac): Pass also the `-help' option to the
2415 `javac' program. Add a comment explaining why it is needed.
2416 Report from Ralf Wildenhues.
2418 2011-04-10 Stefano Lattarini <stefano.lattarini@gmail.com>
2420 test defs: new requirement for the default java compiler
2421 * tests/defs.in (for tool in $required): New requirement 'javac'.
2422 * tests/java.test: Use it instead of ad-hoc configure check.
2423 * tests/java-check.test: Likewise.
2424 * tests/instfail-java.test: Likewise.
2425 * tests/instdir-java.test: Likewise.
2427 2011-04-09 Stefano Lattarini <stefano.lattarini@gmail.com>
2429 java: check_JAVA does not cause compilation by "make all" anymore
2430 Fixes automake bug#8234.
2431 * automake.in (handle_java): Make stamp of class files built from
2432 java sources in $(check_JAVA) a dependency of `check' target, not
2434 * tests/java-check.test: New test.
2435 * tests/Makefile.am (TESTS): Update.
2438 Report from Petteri Räty.
2440 2011-04-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2442 Clarify regex code in depcomp.
2443 * lib/depcomp: Add comment why we don't need regex-escaping here.
2444 Suggested by Stefano Lattarini.
2446 2011-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2448 Fix makedepend depmode for VPATH builds.
2449 * lib/depcomp [makedepend]: Remove any VPATH prefix from the
2450 object file name, so a rebuild doesn't attempt to update the
2451 .Po files in the source tree.
2452 * tests/depcomp9.test: New test.
2453 * tests/Makefile.am (TESTS): Update.
2456 2011-04-02 Stefano Lattarini <stefano.lattarini@gmail.com>
2458 tests: fix timestamp-related failures
2459 Fixes automake bug#8365.
2460 * tests/aclocal6.test: Sleep before modifying m4 files that should
2461 trigger remake rules. Remove incorrect/obsoleted comments.
2462 * tests/subdir5.test: Likewise, and extend a bit.
2463 * tests/subdir8.test: Likewise.
2464 * tests/pr8365-remake-timing.test: New xfailing test.
2465 * tests/Makefile.am (TESTS): Update.
2466 Report from Sam Steingold.
2468 2011-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2470 Create subdirs for generated sources even when not dep tracking.
2471 * automake.in (handle_single_transform): If $object is derived
2472 and lands in subdir, be sure to output a dirstamp dependency.
2473 * tests/yacc5.test: Avoid falsely matching the dirstamp
2474 dependency when grepping for a rule.
2475 * tests/lex-subobj-nodep.test: New test.
2476 * tests/Makefile.am (TESTS): Update.
2478 Report by Ignacy Gawedzki.
2480 Fix locale issue in check-exported-srcdir.test.
2481 * tests/check-exported-srcdir.test: Reformulate glob to not fail
2482 in a locale that ignores or interleaves character case.
2484 2011-04-01 Stefano Lattarini <stefano.lattarini@gmail.com>
2486 docs: better visibility for aclocal in the index
2487 * doc/automake.texi (@menu): Rename title for entry 'configure'
2488 from "Scanning configure.ac or configure.in" to the more precise
2489 "Scanning configure.ac, using aclocal".
2490 (@detailmenu): Adjust.
2491 (@node configure): Adjust, and extend @cindex calls accordingly.
2493 From a report by Maynard Johnson.
2495 2011-03-30 Stefano Lattarini <stefano.lattarini@gmail.com>
2497 tests: improve tests on "maintainer-clean" target
2498 * tests/aclocal6.test: Move checks related to "maintainer-clean"
2499 functionalities into ...
2500 * tests/maintclean-vpath.test: ... this new test.
2501 * tests/maintclean.test: Update heading comments. Extend to also
2502 test subdirs. Remove useless disabling of YACC. Fix m4 quoting
2503 in configure.in. Add a trailing `:' command. Remove extra blank
2505 * tests/Makefile.am (TESTS): Update.
2507 2011-03-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2509 tests: fix unindent to use printf not echo for script.
2510 * tests/defs.in: Use printf rather than echo, as the latter may
2511 interpret the backslashes in the sed script. Fixes test
2512 failures with dash as /bin/sh.
2514 2011-03-17 Stefano Lattarini <stefano.lattarini@gmail.com>
2515 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2517 maintcheck: look for problematic names of testcases
2518 The configure.in stub created by default by `tests/defs' obtains
2519 the first argument of AC_INIT from the test name, and this can
2520 cause some supported autoconf versions to fail with a spurious
2521 error if that test name contains the name of an m4 or m4sugar
2522 builtin or macro (e.g., `defn' or `m4_undefine').
2523 See for example the bug fixed by commit v1.11-287-g1325a8a.
2524 This change add a maintainer check that warns about test names
2525 which are possibly problematic in this regard.
2526 * Makefile.am (sc_test_names): New maintainer-check target.
2527 (syntax_check_rules): Add it.
2528 (m4_builtins): New helper variable.
2529 (TESTS): Updated according to the following renamings.
2530 * tests/include.test: Renamed ...
2531 * tests/hdr-vars-defined-once.test: ... to this.
2532 * tests/sinclude.test: Renamed ...
2533 * tests/m4-inclusion.test: ... to this, and simplified
2535 * tests/include2.test: Renamed ...
2536 * tests/dist-included-parent-dir.test: ... to this, for
2539 2011-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2541 tests: fix bug in alloca*.test
2542 * tests/alloca.test: Make grepping of automake stderr stricter,
2543 add a trailing `:' command; also, add AC_PROG_CC to configure.in,
2544 and create a dummy alloca.c file, to ensure that we fail for the
2546 * tests/alloca2.test: Likewise. Also, look for LT_INIT, not
2547 AC_PROG_LIBTOOL, in the error message (bug introduced with commit
2548 v1.11-315-gd51e7b7 "libtool: suggest LT_INIT if LTLIBRARIES
2550 From a report by Patrick Welche.
2552 2011-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2554 tests: fix bug (comments-in-var-defn.test + autoconf 2.62)
2555 * tests/comments-in-var-defn.test: The configure.in stub created
2556 by default, which has the AC_INIT first argument obtained by the
2557 test name, causes autoconf 2.62 to fail with a spurious error
2558 message like: "configure.in:1: error: defn: undefined macro:".
2559 Thus, to prevent this, the test is renamed to ...
2560 * tests/comments-in-var-def.test: ... this.
2561 * tests/Makefile.am (TESTS): Updated.
2563 2011-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2565 cosmetics: convert encoding from ISO-8859 to UTF-8
2566 * ChangeLog.03: Convert encoding to UTF-8.
2567 * ChangeLog.96: Likewise.
2568 * ChangeLog.98: Likewise.
2572 2011-03-01 Peter Rosin <peda@lysator.liu.se>
2574 test defs: unindent without temporary file
2575 * tests/defs.in (commented_sed_unindent_prog): Commented Sed program
2576 that strips the "proper" amount of leading whitespace.
2577 (unindent): Lazily strip comments from the above program and use it
2578 to unindent without using a temporary file.
2580 2011-02-26 Stefano Lattarini <stefano.lattarini@gmail.com>
2582 libtool: suggest LT_INIT if LTLIBRARIES primary is used
2583 When the LTLIBRARIES primary was used, but $(LIBTOOL) wasn't
2584 defined, automake suggested to add a call to AC_PROG_LIBTOOL
2585 in configure.ac. But that macro is deprecated since Libtool
2586 version 1.9b (2004-08-29), in favor of the newer LT_INIT. So
2587 suggest the use of this latter macro instead.
2588 * lib/Automake/Variable.pm (%_am_macro_for_var): Pair 'LIBTOOL'
2589 with 'LT_INIT', not with 'AC_PROG_LIBTOOL'.
2590 * tests/libtool4.test: Adjust and extend. Also, add a call to
2591 macro AC_PROG_CC in configure.in, to help ensuring that automake
2592 does not fail for the wrong reasons.
2593 * tests/ltinit.test: New test, ensure that automake's libtool
2594 support works with LT_INIT-based interface.
2595 Thanks to Jack Kelly for the suggestion.
2597 2011-02-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2599 tests: tempdirs with restrictive permissions are cleaned correctly
2600 Before this change, the removal of a temporary test directory
2601 containing subdirectories with restrictive permissions (such as
2602 'r--r--r--') could fail.
2603 * tests/defs: Ensure that all the subdirectories of a temporary
2604 test directory have the 'read', 'write' and 'execute' bits set,
2605 before trying to remove it with `rm -rf'.
2606 * tests/Makefile.am (clean-local-check): Likewise.
2608 2011-02-16 Stefano Lattarini <stefano.lattarini@gmail.com>
2609 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2611 test defs: add subroutine for input unindenting
2612 * tests/defs.in (unindent): New subroutine.
2614 2011-02-15 Stefano Lattarini <stefano.lattarini@gmail.com>
2616 python: report the 'PYTHON' influential environment variable
2617 * m4/python.m4 (AM_PATH_PYTHON): Call AC_ARG_VAR on PYTHON.
2618 * doc/automake.texi (Python): Update and extend.
2619 * tests/help-python.test: New test.
2620 * tests/Makefile.am (TESTS): Update.
2621 * THANKS (Jack Kelly): Update e-mail address.
2622 Suggestion by Jack Kelly.
2624 2011-02-10 Stefano Lattarini <stefano.lattarini@gmail.com>
2626 tests defs: clear TESTS_ENVIRONMENT variable
2627 * tests/defs.in (TESTS_ENVIRONMENT): Unset it, so that values
2628 from environment won't interfere with the testcases.
2629 Suggestion by Ralf Wildenhues.
2631 2011-02-06 Stefano Lattarini <stefano.lattarini@gmail.com>
2633 tests: tweak few tests on simple and parallel test drivers
2634 * tests/check-exported-srcdir.test: Improve heading comments.
2635 * tests/check-tests-in-builddir.test: Likewise. Also, unset the
2636 `FOO_EXIT_STATUS' variable, so that any pre-existing value in the
2637 environment won't risk to interfere with the test.
2638 Suggestions by Ralf Wildenhues.
2640 2011-02-01 Stefano Lattarini <stefano.lattarini@gmail.com>
2642 coverage: more tests on simple and parallel test drivers
2643 * tests/parallel-tests-subdir.test: New test.
2644 * tests/check-exported-srcdir.test: Likewise.
2645 * tests/check-tests-in-builddir.test: Likewise.
2646 * tests/check-tests_environment.test: Likewise.
2647 * tests/Makefile.am (TESTS): Update.
2649 2011-01-29 Stefano Lattarini <stefano.lattarini@gmail.com>
2651 tests: fix spurious failures in lflags*.test
2652 * tests/lflags.test: Remove 'LEX' from the environment, so
2653 that it won't be erroneously picked up by `make -e'.
2654 * tests/lflags2.test: Likewise.
2656 2011-01-24 Stefano Lattarini <stefano.lattarini@gmail.com>
2658 docs: color-tests issues with parallel make
2659 * doc/automake.texi (Simple Tests): Document that automatic
2660 recognition of a capable terminal attached to stdout can fail
2661 with some make implementation when running in parallel mode,
2662 thus causing colored test output not to be automatically
2663 activated when it should.
2665 2011-01-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2667 tests: avoid instspc.test failures due to make's whitespace trimming
2668 * tests/instspc.test: Prepend './' when passing the test
2669 characters, to avoid leading whitespace characters to be trimmed
2670 from macros set from environment variables. Fixes testsuite
2671 failures with HP-UX, IRIX, and Tru64/OSF make.
2673 2011-01-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2675 coverage: test semantics of "dummy" per-target flags
2676 * tests/specflg-dummy.test: New test, ensuring that even "dummy"
2677 per-target flags triggers the use of renamed objects.
2678 * tests/Makefile.am (TESTS): Update.
2679 Suggestion by Ralf Wildenhues.
2681 2011-01-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2683 tests defs: sanitize IFS
2684 * tests/defs.in ($IFS): Define to <space>, <tab>, <newline>.
2685 ($sp): New variable, holding a single whitespace character.
2686 ($tab): New variable, holding a tabulation character.
2687 ($nl): New variable, holding a newline character.
2689 2011-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2691 tests: fix VPATH auto-expansion workarounds.
2692 * tests/parallel-tests8.test, tests/suffix13.test:
2693 Ensure $< is not surrounded by white space, to prevent Solaris
2694 make from applying automatic VPATH text expansion.
2696 2011-01-22 Stefano Lattarini <stefano.lattarini@gmail.com>
2698 tests: fix spurious failures in yflags*.test
2699 * tests/yflags.test: Remove 'YACC' from the environment, so
2700 that it won't be erroneously picked up by `make -e'.
2701 * tests/yflags2.test: Likewise.
2703 2011-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2705 tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R.
2706 * tests/fn99.test, tests/fn99subdir.test: Skip if an initial
2707 `cp -R' of the subdir tree already fails; AIX 5.3 cp messes
2708 up its internal memory when copying this tree.
2710 2011-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2711 Stefano Lattarini <stefano.lattarini@gmail.com>
2713 Add comment to check-TESTS rule working around make 3.80 bug.
2714 * lib/am/check.am (check-TESTS): Update comment.
2716 2011-01-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2718 tests: less strict double-colon spy.test again.
2719 * tests/spy.test: We know BSD make doesn't invoke more than one
2720 double-colon rule, so no need to expose that failure.
2722 2011-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2724 install-sh: avoid Tru64 sh `test' operator precedence issues.
2725 * lib/install-sh: Protect file names and directory components
2726 that consist of `=', `(', `)', or `!'. Move protection as early
2727 as possible, to avoid errors such as with Tru64 sh `test -z ='.
2728 * tests/instsh2.test: Extend test to cover more possibilities.
2729 Fixes 1.12 instspc-equal-install.test failure on Tru64/OSF 5.1.
2731 2011-01-19 Stefano Lattarini <stefano.lattarini@gmail.com>
2732 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2734 docs: automake testsuite doesn't use TESTS_ENVIRONMENT anymore
2735 * doc/automake.texi (Simple Tests): Do not claim Automake uses
2736 TESTS_ENVIRONMENT for the perl driver. Instead, point to the
2737 parallel-tests driver.
2739 2011-01-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2741 Allow _AM_DEPENDENCIES to be used later in configure.
2742 * m4/depend.m4 (_AM_DEPENDENCIES): Remove a previously existing
2743 conftest.dir before recreating it.
2745 Report by Eric Blake, from report by Scott McCreary against M4.
2747 2011-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2749 tests: avoid failure on w32 file systems.
2750 * tests/parallel-tests-unreadable-log.test: SKIP if file cannot
2751 be turned unreadable.
2753 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2755 tests: allow double-colon spy.test to work with HP-UX make.
2756 * tests/spy.test: Fix comment typos. Ensure prerequisites we
2757 do not want to depend on are strictly older than the target.
2758 Also test with a target out of date wrt. more than one rule.
2760 2011-01-16 Stefano Lattarini <stefano.lattarini@gmail.com>
2762 tests: remove useless requirements from cond36.test
2763 * tests/cond36.test ($required): Remove.
2764 Since we are at it, add a trailing `:' command.
2766 2011-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2767 Stefano Lattarini <stefano.lattarini@gmail.com>
2769 parallel-tests: work around Tru64/OSF 5.1 sh read bugs.
2770 * lib/am/check.am ($(TEST_SUITE_LOG), recheck, recheck-html):
2771 Test file readability before redirecting input from it, to avoid
2772 exiting Tru64/OSF 5.1 sh which treats read as special builtin.
2773 * tests/parallel-tests-unreadable-log.test: New test.
2774 * tests/Makefile.am (TESTS): Update.
2777 2011-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2779 * NEWS, README: Update copyright years.
2781 Fix parallel-tests.test failure with HP-UX make.
2782 * tests/parallel-tests.test: Sleep inside inner tests, so logs
2783 are newer than logs of tests they depend on, for HP-UX make.
2785 2011-01-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2787 docs: ensure example are separated with empty lines in the input
2788 * doc/automake.texi (Extending aclocal, Emacs Lisp, Rebuilding)
2789 (API Versioning, Renamed Objects, Multiple Outputs): Add empty
2790 lines before `@example' and after `@end example' lines, so info
2791 output is rendered correctly, and a following @noindent honored.
2792 Report by Stefano Lattarini.
2794 2011-01-15 Jim Meyering <meyering@redhat.com>
2796 tests: fix comment typo
2797 * tests/substref.test: Fix grammar in a comment.
2799 2011-01-13 Stefano Lattarini <stefano.lattarini@gmail.com>
2801 tests: fix spurious failures in two texinfo tests
2802 * tests/txinfo.test ($required): Add 'makeinfo'.
2803 * tests/txinfo8.test: Create a dummy 'textutils.info' file, so
2804 that make won't try to run makeinfo (which could be unavailable)
2806 Found by NixOS Hydra, reported by Ralf Wildenhues.
2808 2011-01-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2810 Avoid testsuite failures due to Autoconf Fortran change.
2811 Autoconf v2.68-21-g727ce95 causes AC_F77_LIBRARY_LDFLAGS to
2812 require computing the canonical host name. Ensure config.guess
2813 and config.sub files are present for respective checks.
2814 * tests/compile_f_c_cxx.test: Add stub files.
2815 * tests/flibs.test: Likewise.
2816 * tests/fort4.test: Use $AUTOMAKE -a for installing files.
2818 2011-01-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2820 docs: clustered '-d' not recognized in YFLAGS
2821 This change fixes automake bug#7828.
2822 * doc/automake.texi (Yacc and Lex): Document that automake
2823 recognizes '-d' in AM_YFLAGS only if it's not clustered with
2825 From a report by Юрий Пухальский.
2827 2011-01-10 Stefano Lattarini <stefano.lattarini@gmail.com>
2829 tests: add checks on automatically-distributed files
2830 Related to automake bug#7819.
2831 * tests/autodist.test: New test.
2832 * tests/autodist-subdir.test: Likewise.
2833 * tests/autodist-acconfig.test: Likewise.
2834 * tests/autodist-acconfig-no-subdir.test: Likewise.
2835 * tests/autodist-aclocal-m4.test: Likewise.
2836 * tests/autodist-config-headers.test: Likewise.
2837 * tests/autodist-configure-no-subdir.test: Likewise.
2838 * tests/autodist-stamp-vti.test: Likewise.
2839 * tests/Makefile.am (TESTS): Update.
2841 2011-01-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2843 tests: work around a texi+cygnus bug causing a spurious XFAIL
2844 * tests/txinfo5b.test: New test, like txinfo5.test but calling
2845 automake with the `-Wno-override' option to work around a bug
2846 in the texinfo + cygnus interaction.
2847 * tests/txinfo5.test: Update heading comments.
2848 * tests/Makefile.am (TEST): Updated.
2850 2011-01-09 Dave Hart <davehart@gmail.com> (tiny change)
2852 Fix another typo in Rule.pm comment.
2853 * lib/Automake/Rule.pm: Fix typo.
2855 2011-01-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2857 Improve, extend and tweak tests on Texinfo support.
2858 * tests/instdir-texi.test: Add a call to `ls -l' after that to
2859 `make', for debugging. When looking for required tools, do not
2860 redirect the output of "$tool --help" to /dev/null, and do not
2861 uselessly run it in a subshell.
2862 * tests/txinfo.test: Rewritten to run autoconf, ./configure and
2863 make. All checks moved into Makefile.am.
2864 * tests/txinfo8.test: Likewise, and modernize the generated
2866 * tests/txinfo2.test: Moved checks into Makefile.am, and other
2868 * tests/txinfo5.test: Enable `errexit' shell flag, and related
2869 changes. Add trailing `:' command.
2870 * tests/txinfo6.test: Likewise, and make grepping of generated
2871 Makefile.in stricter.
2872 * tests/txinfo7.test: Enable `errexit' shell flag, and related
2873 changes. Add trailing `:' command. Do not add unnecessary stuff
2875 * tests/txinfo9.test: Verify that more targets which are expected
2876 to be generated only once really are. Make grepping less strict,
2877 to avoid exposing too much internal details. More minor changes.
2878 * tests/txinfo16.test: Add trailing `:'. Prefer cat over echo
2879 for appending to configure.in. Updated/fixed heading comments.
2880 * tests/txinfo23.test: Likewise, and extended a little by making
2881 it check that no info file is created in the $(srcdir).
2882 * tests/txinfo24.test: Likewise.
2883 * tests/txinfo25.test: Likewise.
2884 * tests/txinfo18.test: Add trailing `:'. Prefer cat over echo
2885 for appending to configure.in. Also, check that index files are
2886 cleaned also by "make clean", not only by "make distclean".
2887 * tests/txinfo22.test: Prefer `$me' over hard-coded test name,
2888 and added trailing `:' command. This testcase also used to check
2889 that automake ignores in-line comments when using variables, but
2890 preserves them in the output; these checks (added in commit
2891 "Release-1-7f-4-g9177ef8") do not really pertain to this test,
2892 so they have been moved ...
2893 * tests/comments-in-var-defn.test: ... into this new test.
2894 * tests/txinfo4.test: Escape literal dots in grep regexps. Add
2895 trailing `:' command.
2896 * tests/txinfo29.test: Likewise. Relax grepping of generated
2897 Makefile.in w.r.t. whitespaces. Prefer `cat' over `echo' to
2898 append to configure.in.
2899 * tests/txinfo3.test: Likewise.
2900 * tests/vtexi.test: Improve grepping of Makefile.in (sometimes
2901 make it stricter, sometimes laxer). Move `set -e' setting just
2902 after the inclusion of ./defs. De-uglify a sed command. Other
2903 minor cosmetic improvements.
2904 * tests/vtexi2.test: Make grepping of Makefile.in stricter. Add
2905 trailing `:' command.
2906 * tests/vtexi3.test: New test on version.texi support.
2907 * tests/vtexi4.test: Likewise.
2908 * tests/Makefile.am (TESTS): Updated.
2910 2011-01-09 Peter Rosin <peda@lysator.liu.se>
2912 Fix another typo in Rule.pm comment.
2913 * lib/Automake/Rule.pm: Fix typo.
2915 2011-01-09 Stefano Lattarini <stefano.lattarini@gmail.com>
2917 cosmetics: remove trailing whitespaces
2918 * doc/automake.texi: Remove trailing whitespaces.
2919 * tests/cond13.test: Likewise.
2920 * tests/cond14.test: Likewise.
2921 * tests/fort4.test: Likewise.
2922 * tests/fort5.test: Likewise.
2923 * tests/suffix7.test: Likewise.
2924 * tests/vtexi2.test: Likewise.
2926 automake: minor fixes in comments
2927 * automake.in: Some minor fixes and enhancements in comments.
2929 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2931 Add test coverage for deleted header files.
2932 * tests/depcomp6.test, tests/depcomp7.test: Update tests to
2933 also check for the deleted header bug. If no dependency
2934 tracking mechanism could be found, SKIP rather than exit
2935 successfully. Use GNU style spacing and ANSI C prototypes.
2937 Fix typos in Rule.pm comments.
2938 * lib/Automake/Rule.pm: Fix typos in comments.
2940 docs: split 'amhello Explained' node.
2941 * doc/automake.texi (amhello Explained): Split node ...
2942 (amhello's configure.ac Setup Explained)
2943 (amhello's Makefile.am Setup Explained) : ... into these two.
2944 (Top, Hello World): Adjust, and add @anchor for stable URL links.
2945 Suggestion by Karl Berry in automake bug#7766.
2947 2011-01-08 Karl Berry <karl@freefriends.org>
2948 Eric Blake <eblake@redhat.com>
2950 docs: reference defining directories in amhello node.
2951 * doc/automake.texi (amhello Explained): Point to Autoconf
2952 manual for how to convert directory values into macros.
2953 (Optional): Fix grammar nit.
2955 2011-01-02 Stefano Lattarini <stefano.lattarini@gmail.com>
2957 * NEWS: Fix typo (forgotten word).
2959 2011-01-02 Stefano Lattarini <stefano.lattarini@gmail.com>
2960 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2962 docs: how to work around checks on invalid primary/directory couples
2963 * doc/automake.texi (Uniform): Document the blessed idiom which can
2964 be used to work around automake checks on invalid primary/directory
2965 couples (such as `lib_PROGRAMS' or `doc_LIBRARIES').
2967 2011-01-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2969 Sync auxiliary files from upstream.
2970 * lib/config.guess, lib/config.sub, lib/texinfo.tex:
2973 Fix maintainer-check regression.
2974 * tests/subobj11a.test: Pass DISTCHECK_CONFIGURE_FLAGS in the
2977 Bump copyright years.
2978 * aclocal.in (write_aclocal, version): Bump copyright years.
2979 * automake.in (gen_copyright, version): Likewise.
2980 * doc/automake.texi: Likewise.
2982 2010-12-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2983 Stefano Lattarini <stefano.lattarini@gmail.com>
2985 Work around a bug in file-inclusion mechanism of Solaris make.
2986 * automake.in (handle_single_transform): In the name of the
2987 dependency file: collapse multiple slash characters into a single
2989 * tests/subobj11a.test: New test.
2990 * tests/subobj11b.test: Likewise.
2991 * tests/subobj11c.test: Likewise.
2992 * tests/depcomp8a.test: Likewise.
2993 * tests/depcomp8b.test: Likewise.
2994 * tests/Makefile.am (TESTS): Updated.
2996 Report by Stefano Lattarini, quick fix by Ralf Wildenhues, final
2997 patch and tests by Stefano Lattarini.
2999 2010-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
3001 Fix two spurious testsuite failures on IRIX 6.5.
3002 * tests/suffix13.test (Makefile.am): Account for VPATH issues on
3003 weaker make implementations (e.g. IRIX 6.5).
3004 * tests/parallel-tests8.test: Likewise, plus a required related
3006 Reported by Ralf Wildenhues. The bugs have been there from the
3007 first versions of the affected test scripts.
3009 2010-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
3011 docs: cygnus mode doesn't require AM_CYGWIN32 macro.
3012 * doc/automake.texi (Cygnus): Mode 'cygnus' does not require
3013 the AM_CYGWIN32 macro (and indeed hasn't required it since at
3014 least commit Release-1-2-31-g3038064 "merged changes from
3015 Cygnus" of 1997-08-25).
3017 2010-12-22 Stefano Lattarini <stefano.lattarini@gmail.com>
3019 distlinksbrk.test: Work around botched "make -k".
3020 * tests/distlinksbrk.test: Run "make" multiple times and grep
3021 its output each time for a single error message, rather than
3022 running "make -k" one single time and grepping its output for
3023 all the expected error messages. This should work around make
3024 implementations with limited (broken?) `-k' support; for more
3025 information, see these subthreads on the automake-patches list:
3026 - 2010-11-15, "Testsuite failures on HP-UX 11.23",
3027 <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00162.html>
3028 - 2010-11-15, "Testsuite failures on IRIX 6.5",
3029 <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00166.html>
3031 2010-12-21 Stefano Lattarini <stefano.lattarini@gmail.com>
3033 Fix sed-related buglet in test "subdir5.test"
3034 * tests/subdir5.test: Always terminate text passed to the
3035 `i' sed command with a newline, to work around limitations
3036 in e.g. older OpenBSD sed.
3038 2010-12-18 Stefano Lattarini <stefano.lattarini@gmail.com>
3040 docs: fix blunder in example about python extension modules
3041 * doc/automake.texi (Python): Use `quaternion_la_SOURCES',
3042 not `quaternion_SOURCES', to declare the sources of python
3043 extension module `quaternion.la'.
3045 2010-12-16 Stefano Lattarini <stefano.lattarini@gmail.com>
3047 docs: list LTLIBRARIES among Automake primaries
3048 * doc/automake.texi (Uniform): List `LTLIBRARIES' among
3049 the Automake primaries.
3051 2010-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
3053 Improve tests on generated portions of configure help screen.
3054 * tests/help-depend.test: Grepping of configure help screen
3055 relaxed to cater for possible line wrapping, and tightened in
3057 * tests/help-depend2.test: Likewise.
3058 * tests/help-dmalloc.test: Likewise.
3059 * tests/help-lispdir.test: Likewise.
3060 * tests/help-maintainer.test: Likewise.
3061 * tests/help-multilib.test: Likewise.
3062 * tests/help-silent.test: Likewise.
3063 * tests/help-upc.test: Likewise.
3064 * tests/help-init.test: Grepping of configure help screen
3067 2010-12-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3069 Avoid running installed automake from 'libtool --help'.
3070 * tests/subobj9.test: Export AUTOCONF and AUTOMAKE.
3071 Together with fixed Libtool, this fixes check-coverage to not
3072 invoke installed automake.
3074 2010-11-25 Stefano Lattarini <stefano.lattarini@gmail.com>
3076 Fix spurious failures in `silent*.test' for $CC != gcc
3077 In some tests on automake-produced silent rules, we forced the
3078 use of gcc depmode to improve testsuite coverage; but this has
3079 unsurprisingly led to spurious failures when some non-GNU C
3080 compilers were used. So we are now careful to require GCC in
3081 tests that force gcc depmode.
3082 From reports by Ralf Wildenhues.
3083 * tests/silent5.test: Test removed, its content split into ...
3084 * tests/silent-many-generic.test, tests/silent-many-gcc.test: ...
3085 these new sister tests, the latter of which forces gcc depmode
3086 and lists "gcc" in $required.
3087 * tests/silentlex.test: Test removed, its content split into ...
3088 * tests/silent-lex-generic.test, tests/silent-lex-gcc.test: ...
3089 these new sister tests, the latter of which forces gcc depmode
3090 and lists "gcc" in $required.
3091 * tests/silentyacc.test: Test removed, its content split into ...
3092 * tests/silent-yacc-generic.test, tests/silent-yacc-gcc.test: ...
3093 these new sister tests, the latter of which forces gcc depmode and
3094 lists "gcc" in $required.
3095 * tests/Makefile.am (TESTS): Updated.
3097 2010-11-21 Stefano Lattarini <stefano.lattarini@gmail.com>
3099 Tests: consistently use "|| Exit 1" after ". ./defs".
3100 * tests/autohdr.test: Use `. ./defs || Exit 1', not bare
3101 `. ./defs', for consistency with other tests.
3102 * tests/autohdr2.test: Likewise.
3103 * tests/autohdr3.test: Likewise.
3104 * tests/autohdr4.test: Likewise.
3105 * tests/cond23.test: Likewise.
3106 * tests/cond24.test: Likewise.
3107 * tests/cond25.test: Likewise.
3108 * tests/cond26.test: Likewise.
3109 * tests/cond27.test: Likewise.
3110 * tests/cond28.test: Likewise.
3111 * tests/cond29.test: Likewise.
3112 * tests/cond30.test: Likewise.
3113 * tests/cond31.test: Likewise.
3114 * tests/cond32.test: Likewise.
3115 * tests/cond33.test: Likewise.
3116 * tests/cond34.test: Likewise.
3117 * tests/cond35.test: Likewise.
3118 * tests/cond36.test: Likewise.
3119 * tests/cond37.test: Likewise.
3120 * tests/cond38.test: Likewise.
3121 * tests/cond39.test: Likewise.
3122 * tests/cond40.test: Likewise.
3123 * tests/cond41.test: Likewise.
3124 * tests/cond42.test: Likewise.
3125 * tests/cond43.test: Likewise.
3126 * tests/cond44.test: Likewise.
3127 * tests/cond45.test: Likewise.
3128 * tests/dollarvar.test: Likewise.
3129 * tests/dollarvar2.test: Likewise.
3130 * tests/hfs.test: Likewise.
3131 * tests/libobj14.test: Likewise.
3132 * tests/percent.test: Likewise.
3133 * tests/percent2.test: Likewise.
3134 * tests/phony.test: Likewise.
3135 * tests/silent.test: Likewise.
3136 * tests/silent2.test: Likewise.
3137 * tests/silent3.test: Likewise.
3138 * tests/silent4.test: Likewise.
3139 * tests/silent5.test: Likewise.
3140 * tests/silent6.test: Likewise.
3141 * tests/silent7.test: Likewise.
3142 * tests/silent9.test: Likewise.
3143 * tests/silentcxx.test: Likewise.
3144 * tests/silentf77.test: Likewise.
3145 * tests/silentf90.test: Likewise.
3146 * tests/silentlex.test: Likewise.
3147 * tests/silentyacc.test: Likewise.
3149 Avoid useless cleaning in some `silent*.test' tests.
3150 * tests/silentf77.test: Removed useless calls to "make clean"
3151 and "make maintainer-clean".
3152 * tests/silentf90.test: Likewise.
3153 * tests/silent3.test: Removed useless call to "make distclean".
3154 * tests/silent4.test: Likewise.
3155 * tests/silent9.test: Likewise.
3157 2010-11-19 Ian Lance Taylor <iant@google.com>
3159 Sync config-ml.in from GCC.
3160 * config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
3161 compiler/flag environment variables.
3163 2010-11-19 Stefano Lattarini <stefano.lattarini@gmail.com>
3165 Automake::Config: remove extra trailing semicolon.
3166 * lib/Automake/Config.in: Remove extra trailing semicolon.
3168 help4.test: fix botched heading comment.
3169 * tests/help4.test: Fixed the heading comment, since it
3170 didn't correctly describe what checks the testcase was
3171 supposed to perform.
3173 help2.test: add checks on aclocal too.
3174 * tests/help2.test: Check that also `aclocal --version' and
3175 `aclocal --help' work with configure.in and acinclude.m4 both
3178 2010-11-17 Stefano Lattarini <stefano.lattarini@gmail.com>
3180 Fix spurious failures of silent-rules tests with Sun Fortran.
3181 * tests/silentf77.test: Strip from the make output some verbose
3182 messages possibly printed by the SunStudio fortran compilers, to
3183 avoid spurious failures. Add a trailing `:' command.
3184 * tests/silentf90.test: Likewise.
3186 2010-11-17 Stefano Lattarini <stefano.lattarini@gmail.com>
3188 Fix spurious failures of silent5.test with Sun Fortran.
3189 * tests/silent5.test: Strip from the make output some verbose
3190 messages possibly printed by the SunStudio fortran compilers,
3191 to avoid spurious failures. This bug has been there from the
3192 very first version of this test script.
3194 2010-11-16 Stefano Lattarini <stefano.lattarini@gmail.com>
3196 Fix regression in colon{5,6}.test (failures on AIX 5.3).
3197 * tests/colon5.test: Also substitute `@SHELL@' with `$SHELL' when
3198 post-processing the generated Makefile.in, to work around a bug
3199 of AIX 5.3 make which doesn't allow setting the `$(SHELL)' macro
3200 on the commend line. Calls to `$MAKE' adjusted accordingly.
3201 * tests/colon6.test: Likewise.
3202 Regression introduced in commit v1.11-175-gf9fe878 "Modernize,
3203 improve and/or extend tests `colon*.test", and reported by Ralf
3206 2010-11-16 Stefano Lattarini <stefano.lattarini@gmail.com>
3208 Fix regression in ansi.test (failure on AIX 5.3).
3209 * tests/ansi.test: Remove redundant hackish check done using a
3210 hand-postprocessed Makefile.in. This check worked by setting
3211 the `$(SHELL)' macro on the command line of make, but this is
3212 not supported by the AIX 5.3 make implementation.
3213 This bug has been lurking for a long time, and was activated by
3214 commit v1.11-125-gc1f6cdb "Enable `errexit' shell flag in various
3215 tests". Report by Ralf Wildenhues.
3217 2010-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3219 tests: avoid '##'-style comments inside recipe commands.
3220 * tests/confh.test, tests/confh8.test: Remove
3221 double-hash comments from makefile rule commands, they
3222 are not part of the Automake API.
3224 2010-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3226 tests: work around dash quoting issue in case statements.
3227 * tests/color.test, tests/color2.test: Quote variable in case
3228 pattern, to avoid skipping tests with dash 0.5.5.1.
3230 2010-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3232 Rebuild menus in the manual.
3233 * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
3234 Thanks to Ian Lance Taylor for the suggestion.
3236 Fix install-strip when $(STRIP) contains several words.
3237 * lib/am/install.am (install-strip): Update comment. Use
3238 separate sub-make invocations for empty and nonempty $(STRIP),
3239 to fix quoting issues.
3240 * tests/strip2.test, tests/strip3.test: New tests.
3241 * tests/Makefile.am (TESTS): Adjust.
3243 2010-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3245 Fix yaccdry.test failure: require bison.
3246 * tests/yaccdry.test: Require bison.
3247 Found by NixOS Hydra.
3249 2010-11-07 Stefano Lattarini <stefano.lattarini@gmail.com>
3251 Fix a bug in variable concatenation with `+='.
3252 * lib/Automake/VarDef.pm (append): Since the content of the
3253 "appended-to" variable is going to be unconditionally normalized
3254 later, simply separate the appended value with a single whitespace
3255 character, instead of trying to be uselessly smarter by using
3256 escaped newlines. This fixes a bug in which extra backslashes
3257 where erroneously inserted in the variable's final value.
3258 * tests/pluseq11.test: New test, exposing the bug.
3259 * tests/Makefile.am (TESTS): Update.
3260 Reported by Andy Wingo.
3262 2010-11-06 Stefano Lattarini <stefano.lattarini@gmail.com>
3264 Fix bug in rules for creating vala vapi/header files.
3265 * automake.in (lang_vala_finish_target): Add forgotten "fi" in an
3266 if control structure in a generated make rules. Bug introduced
3267 by previous commit `v1.11-221-gd7c1679', and revealed by failure
3268 of test `vala2.test'.
3270 2010-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3272 Fix and document rules to not touch the tree with `make -n'.
3273 * doc/automake.texi (Multiple Outputs): Document the problem of
3274 modifications during dry-run execution, propose solution.
3276 * automake.in (lang_vala_finish_target): Split recipe so the
3277 stamp file is not removed with GNU `make -n'.
3278 (lang_yacc_target_hook): Separate removal of parser output file
3279 and header remaking.
3280 * lib/am/lisp.am ($(am__ELCFILES)): Determine whether -n was
3281 passed to make, take care not to remove any files in that case.
3282 * lib/am/remake-hdr.am (%CONFIG_H%): Separate removal of
3283 %STAMP% file from induced remaking of config header.
3284 * tests/autohdrdry.test, tests/lispdry.test, tests/yaccdry.test:
3286 * tests/Makefile.am (TESTS): Update.
3288 2010-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3290 Add FAQ entry for bug reporting instructions.
3291 * doc/automake.texi (Reporting Bugs): New section.
3292 (Introduction): Refer to it.
3294 2010-10-04 Stefano Lattarini <stefano.lattarini@gmail.com>
3296 Add support for newer python versions.
3297 * m4/python.m4 (AM_PATH_PYTHON): Add python2.7 and python3.2 to
3298 _AM_PYTHON_INTERPRETER_LIST. Since we are at it, break a long
3299 line and fix indentation.
3301 From a report by Thomas Klausner.
3303 Add test for `AM_WITH_DMALLOC' macro.
3304 * tests/dmalloc.test: New test.
3305 * tests/Makefile.am (TESTS): Update.
3307 Fix nits and bugs in tests `help*.test'.
3308 * tests/help4.test: Fix broken sed commands used to strip `-W...'
3309 flags away from "$AUTOMAKE" and "$ACLOCAL".
3310 * tests/help3.test: Likewise, and fix a botched comment.
3311 * tests/help.test: Likewise. Also, use "AUTOMAKE_fails ..."
3312 instead of "$AUTOMAKE ... && Exit 1", for consistency and to
3313 please maintainer-check.
3314 * tests/help2.test: Likewise.
3316 2010-10-03 Stefano Lattarini <stefano.lattarini@gmail.com>
3317 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3319 Improve tests `help*.test' (also fixes maintcheck failures).
3320 * tests/help.test: To run automake, use `$AUTOMAKE' with all `-W'
3321 flags stripped away rather than hard-coded `automake-$APIVERSION',
3322 to better honour user-overrides. Similarly for aclocal.
3323 * tests/help2.test: Likewise.
3324 * tests/help3.test: Likewise.
3325 * tests/help4.test: Likewise.
3327 2010-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3329 Document and fix expansion of variables before rules.
3330 * doc/automake.texi (General Operation): Document that variables
3331 are expanded before rules.
3332 * lib/am/check.am (am__check_post): Reword a bit so it does not
3333 get matched as a rule.
3334 Suggestion by Ben Pfaff.
3336 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3338 Revert "parallel-tests: avoid command-line length limit issue."
3339 This reverts commit 24e3b4ee2f8cb9f72dd94a05a893f3d4e88b7835,
3340 because it re-opened the bug fixed by v1.11-10-g218e678.
3342 2010-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3344 parallel-tests: avoid command-line length limit issue.
3345 * automake.in (handle_tests): New argument $makefile, new
3346 substitution %MAKEFILE%.
3347 (generate_makefile): Adjust.
3348 * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
3349 sanitized TEST_LOGS value as makefile snippet on standard
3350 input to $(MAKE), to avoid exceeding the command line limit on
3353 Report by Bob Friesenhahn.
3355 2010-09-26 Stefano Lattarini <stefano.lattarini@gmail.com>
3357 Extend tests on `--help' and `--version' options.
3358 * tests/help.test: Create a new empty directory and chdir into
3359 it, rather than removing already present files. Run the aclocal
3360 and automake wrapper scripts directly, instead of relying on
3361 $AUTOMAKE and $ACLOCAL. Be sure to correctly match literal dots
3362 in aclocal's and automake's stderr. Add a trailing `:' command.
3363 * tests/help2.test: New test, checking that options `--help' and
3364 `--version' works in directories with broken `configure.in'.
3365 * tests/help3.test: New test, checking that options `--help' and
3366 `--version' take precedence on the other options.
3367 * tests/help4.test: New test, checking that the first among the
3368 `--help' and `--version' options to be specified on the command
3370 * tests/Makefile.am (TESTS): Updated.
3372 2010-09-25 Stefano Lattarini <stefano.lattarini@gmail.com>
3374 Testsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.
3375 * tests/compile2.test: Do no uselessly (implicitly) repeat the
3376 computation of PATH_SEPARATOR again.
3377 * tests/instmany-mans.test: Use `$PATH_SEPARATOR', not `:', when
3378 extending/redefining PATH.
3379 * tests/instmany-python.test: Likewise.
3380 * tests/instmany.test: Likewise.
3381 * tests/man4.test: Likewise.
3382 * tests/mkinst3.test: Likewise.
3383 * tests/mmodely.test: Likewise.
3384 * tests/multlib.test: Likewise.
3385 * tests/txinfo30.test: Likewise.
3386 * tests/README (Section "Writing test cases" subsection "Do"):
3388 * Makefile.am (sc_tests_PATH_SEPARATOR): New maintainer check.
3389 (syntax_check_rules): Updated.
3391 Testsuite: new variables `$PATH_SEPARATOR' and `$APIVERSION'.
3392 * tests/defs.in ($APIVERSION): New AC_SUBST'd variable.
3393 ($ACLOCAL, $AUTOMAKE): Use it.
3394 ($PATH_SEPARATOR): New AC_SUBST'd variables.
3397 2010-09-22 Stefano Lattarini <stefano.lattarini@gmail.com>
3399 Manual: be more agnostic w.r.t. version control system used.
3400 * doc/automake.texi (Basics of Distribution): Also refer to `.svn'
3401 directories as a type of probably-unwanted files that are copied
3402 regardless when adding directories to EXTRA_DIST.
3403 (The dist Hook): Show a dist-hook example which removes Subversion
3404 `.svn' private directories from distdir, rather than CVS private
3406 (missing and AM_MAINTAINER_MODE): Try to be more agnostic w.r.t.
3407 the version control system used.
3409 Manual: index refer to target "git-dist", not "cvs-dist".
3410 * doc/automake.texi (General Operation): Index the non-standard
3411 example about "git-dist" under the "git-dist" label, not under
3414 Perl modules: remove references to "Automake CVS repository".
3415 * lib/Automake/Channels.pm: Update comments to refer to "Automke's
3416 git repository" rather than to "Automake's CVS repository".
3417 * lib/Automake/Configure_ac.pm: Likewise.
3418 * lib/Automake/FileUtils.pm: Likewise.
3419 * lib/Automake/Struct.pm: Likewise.
3420 * lib/Automake/XFile.pm: Likewise.
3421 * lib/Automake/Version.pm (=head1 DESCRIPTION): Refer to "git
3422 branches" rather than "CVS branches".
3424 Remove obsolete .cvsignore files.
3425 * .cvsignore, doc/.cvsignore, lib/.cvsignore, lib/am/.cvsignore,
3426 lib/Automake/.cvsignore, lib/Automake/tests/.cvsignore,
3427 m4/.cvsignore, tests/.cvsignore: Files deleted. Even when using
3428 savannah's CVS readonly mirror there's no way to commit back to
3429 the real repository, so this files are not worth maintaining or
3432 2010-09-21 Stefano Lattarini <stefano.lattarini@gmail.com>
3434 * m4/dmalloc.m4: Bump serial number and copyright years.
3436 2010-09-20 Stefano Lattarini <stefano.lattarini@gmail.com>
3438 Fix broken link in `AM_WITH_DMALLOC' help screen.
3439 * m4/dmalloc.m4 (AM_WITH_DMALLOC): Refer only to the dmalloc site
3440 `http://www.dmalloc.com', not to the dmalloc tarball there (which
3441 seems to have been removed, substituted by multiple release
3444 2010-09-17 Eric Blake <eblake@redhat.com>
3446 Avoid triple-space after period.
3447 * automake.in (handle_single_transform): Avoid 3 spaces at
3449 * ChangeLog.03: Likewise.
3450 * lib/Automake/ChannelDefs.pm: Likewise.
3451 * lib/Automake/Channels.pm (_print_message): Likewise.
3452 * lib/Automake/Rule.pm (rule): Likewise.
3453 * lib/Automake/Variable.pm (var): Likewise.
3454 * lib/am/distdir.am: Likewise.
3455 * tests/insthook.test: Likewise.
3457 2010-09-15 Stefano Lattarini <stefano.lattarini@gmail.com>
3459 Test automake-generated portions of configure help screen.
3460 * tests/help-depend.test: New test.
3461 * tests/help-depend2.test: Likewise.
3462 * tests/help-dmalloc.test: Likewise.
3463 * tests/help-init.test: Likewise.
3464 * tests/help-lispdir.test: Likewise.
3465 * tests/help-maintainer.test: Likewise.
3466 * tests/help-multilib.test: Likewise.
3467 * tests/help-regex.test: Likewise.
3468 * tests/help-silent.test: Likewise.
3469 * tests/help-upc.test: Likewise.
3470 * tests/mmode.test: Remove tests on `configure --help' output,
3471 they are superseded by tests in `help-maintainer.test'.
3472 * tests/Makefile.am (TESTS): Update.
3474 2010-09-14 Stefano Lattarini <stefano.lattarini@gmail.com>
3476 * tests/README: Don't put GCS mandated tools in $required.
3478 2010-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3480 * HACKING: Hint at old commits with `git describe' output.
3482 2010-09-12 Stefano Lattarini <stefano.lattarini@gmail.com>
3484 Fix regression in test `colon4.test'.
3485 * tests/colon4.test: Fix botched editing to `configure.in'
3486 that made the test useless. Since we are at it, improve
3487 comments and make grepping of generated Makefile.in slightly
3489 Regression introduced by change "Modernize, improve and/or
3490 extend tests `colon*.test" (Stefano Lattarini, 2010-08-08).
3492 2010-09-08 Stefano Lattarini <stefano.lattarini@gmail.com>
3494 Do not require "gzip" explicitly in tests.
3495 The gzip utility is simply expected to be present on any decent
3496 target system for Automake. So it's pointless to put it in
3498 * tests/install2.test ($required): Do not require "gzip".
3499 * tests/lex3.test: Likewise.
3500 * tests/pr9.test: Likewise.
3501 From a suggestion by Ralf Wildenhues.
3503 Make some `confh*.test' tests more "semantic" (plus tweakings).
3504 * tests/confh.test: Run "autoconf", "configure" and "make check",
3505 instead of munging/grepping the generated `Makefile.in'.
3506 * tests/confh4.test: Relax the grepping of Makefile.in w.r.t.
3507 white spaces. Do not create useless dummy source file `foo.c'
3508 and useless dummy header file `acconfig.h'.
3509 (configure.in): Remove superfluous call to `AC_OUTPUT'.
3510 * tests/confh6.test: Add trailing `:' command.
3511 * tests/confh7.test: In comments, add reference to ...
3512 * tests/confh8.test: ... this new test, "semantic" sister
3514 * tests/Makefile.am (TESTS): Updated.
3515 Prompted by a report from Ralf Wildenhues.
3517 Remove useless whitespace padding in XFAIL_TESTS definition.
3518 * tests/Makefile.am (XFAIL_TESTS): Remove whitespace padding.
3520 2010-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3522 parallel-tests: avoid command-line length limit issue.
3523 * automake.in (handle_tests): New argument $makefile, new
3524 substitution %MAKEFILE%.
3525 (generate_makefile): Adjust.
3526 * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
3527 sanitized TEST_LOGS value as makefile snippet on standard
3528 input to $(MAKE), to avoid exceeding the command line limit on
3531 Report by Bob Friesenhahn.
3533 Posix 2008 requires make to set errexit.
3534 * lib/am/check.am: Update comment.
3536 2010-08-27 Stefano Lattarini <stefano.lattarini@gmail.com>
3538 Fix bug in test missing6.test.
3539 * tests/missing6.test: Fix the hack used to edit `configure.in',
3540 to avoid producing a configure script that breaks with shells
3541 that do not support $LINENO. Also throw in a couple of cosmetic
3544 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3546 Improve robustness of mdate-sh script.
3547 * lib/mdate-sh: Sanitize zsh behavior on startup, to ensure
3548 $ls_command is word-split properly upon invocation.
3549 (error): New function.
3550 (main): Use it. Improve error checking to avoid endless loop
3551 in case $ls_command gave bogus output. Fix eval quotation.
3552 * tests/mdate6.test: New test, to expose eval quotation error.
3553 * tests/Makefile.am: Update.
3555 2010-08-18 Stefano Lattarini <stefano.lattarini@gmail.com>
3557 Fix potential regressions in depcomp{3,5}.test.
3558 * tests/depcomp3.test: Do not uselessly escape the character `$'
3559 in makefile rules, when it's used to expand a make macro.
3560 * tests/depcomp5.test: Likewise.
3562 2010-08-17 Stefano Lattarini <stefano.lattarini@gmail.com>
3563 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3565 Docs: clarify how to avoid automatic dependencies tracking.
3566 * doc/automake.texi (Automatic dependency tracking): Mention that
3567 automatic dependencies tracking is enabled by default, but that
3568 the package developer can disable it altogether. Add a reference
3569 to the proper section for a more in-depth explanation.
3571 Fix typo in manual (`Makefile.in' instead of `Makefile.am').
3572 * doc/automake.texi (Automatic dependency tracking): Fix typo.
3574 2010-08-16 Bruno Haible <bruno@clisp.org>
3576 Don't hide the table of contents.
3577 * doc/automake.texi: Move the table of contents to the beginning.
3579 2010-08-10 Stefano Lattarini <stefano.lattarini@gmail.com>
3581 Tweak and/or extend some `acloca*.test' tests.
3582 * tests/aclocal8.test: Ensure verbose printing of captured
3584 * tests/aclocal.test: Likewise. Also, add trailing `:'
3586 * tests/acloca19.test: Likewise.
3587 * tests/aclocal5.test: Add trailing `:' command, and prefer
3588 `$me' over hard-coded test name.
3589 * tests/aclocal6.test: Likewise.
3590 * tests/aclocal18.test: Add trailing `:' command, and make
3591 some grepping slightly stricter.
3592 * tests/acloca14.test: Likewise. Also, prefer `diff' over
3593 `cmp', and add some "cosmetic" blank lines.
3595 2010-08-09 Stefano Lattarini <stefano.lattarini@gmail.com>
3597 Tweak and extend tests `pr[!0-9]*.test'.
3598 * tests/primary3.test: Add trailing `:' command.
3599 * tests/primary.test: Make grepping of Automake's stderr stricter.
3600 Also, add trailing `:' command, and cosmetic changes in spacing.
3601 * tests/primary2.test: Likewise.
3602 * tests/prefix.test: Enable `errexit' shell flags, and related
3603 changes. Add a trailing `:' command.
3604 * tests/proginst.test: Likewise.
3606 Modernize, improve and extend tests for PR (`pr[0-9]*.test').
3607 * tests/pr2.test: Add trailing `:' command.
3608 * tests/pr229.test: Likewise.
3609 * tests/pr401.test: Likewise.
3610 * tests/pr401b.test: Likewise.
3611 * tests/pr401c.test: Likewise.
3612 * tests/pr300-prog.test: Likewise, plus cosmetic changes in
3614 * tests/pr300-lib.test: Likewise.
3615 * tests/pr300-ltlib.test: Likewise, and ensure verbose printing
3616 of captured make stdout.
3617 * tests/pr211.test: Add trailing `:' command. Also, use the
3618 `configure.in' stub created by ./defs, rather than writing it
3620 * tests/pr204.test: Likewise, plus cosmetic spacing changes.
3621 * tests/pr287.test: Likewise, and move setting of `errexit' shell
3622 flag earlier in the script (just after inclusion of ./defs).
3623 * tests/pr220.test: Make grepping of Automake's stderr stricter.
3624 Also, add trailing `:' command, and cosmetic changes in spacing.
3625 * tests/pr224.test: Move setting of `errexit' shell flag earlier
3626 in the script (just after inclusion of ./defs). Do not export
3627 `CC=gcc' to configure explicitly (it's already exported globally
3628 in ./defs, since we have "gcc" in $required). Use the stub for
3629 `configure.in' created by ./defs, rather than writing it from
3630 scratch. Do not create dummy files required by "gnu" mode (e.g.
3631 README, NEWS), since we run automake in foreign mode anyway.
3632 * tests/pr72.test: Enable `errexit' shell flags, and related
3633 changes. Extend existing checks a bit.
3634 * tests/pr9.test: Likewise. Also, avoid obsolescent constructs in
3635 the generated `configure.in', and extend existing checks over the
3636 generated tarball a bit.
3637 * tests/pr87.test: Enable `errexit' shell flags, and related
3638 changes. Add a trailing `:' command. Also, do not create dummy
3639 files required by "gnu" mode (e.g. README, NEWS), since we run
3640 automake in foreign mode anyway.
3641 * tests/pr243.test: Avoid obsolescent constructs in the generated
3642 `configure.in'. Enable the `errexit' shell flag, and related
3643 changes. Cosmetic changes to spacing, add trailing `:' command,
3644 and add a "FIXME" comment.
3645 * tests/pr266.test: Likewise, and add explicit command line switch
3646 `--enable-dependecy-tracking' to the ./configure call.
3647 * tests/pr279.test: Avoid obsolescent constructs in the generated
3648 `configure.in'; also, use the `configure.in' stub created by
3649 ./defs, rather than writing it from scratch. Enable `errexit'
3650 shell flag, and related changes. Add trailing `:' command.
3651 * tests/pr279-2.test: Likewise, and make grepping of Makefile.in
3653 * tests/pr307.test: Move setting of `errexit' shell flag earlier
3654 in the script (just after inclusion of ./defs). Escape literal
3655 dots in grep regular expressions. Also, add a trailing `:'
3656 command, and cosmetic changes to spacing.
3658 Tests for PR: add excerpts from original bug report, for clarity.
3659 * tests/pr2.test: Ditto.
3660 * tests/pr9.test: Likewise.
3661 * tests/pr72.test: Likewise.
3662 * tests/pr87.test: Likewise.
3663 * tests/pr211.test: Likewise.
3664 * tests/pr220.test: Likewise.
3665 * tests/pr224.test: Likewise.
3666 * tests/pr229.test: Likewise.
3667 * tests/pr243.test: Likewise.
3668 * tests/pr266.test: Likewise.
3669 * tests/pr279.test: Likewise, and tell to keep it in sync
3670 with its sister test.
3671 * tests/pr279-2.test: Likewise.
3673 2010-08-08 Stefano Lattarini <stefano.lattarini@gmail.com>
3675 Tweak, extend and improve tests `cond[a-z]*.test'.
3676 * tests/condd.test: Add trailing `:' command. Typofix in
3678 * tests/condhook.test: Make sure target `install-data-hook' is
3679 not called by `make install', but that data files are installed.
3680 Use proper m4 quoting in configure.in. Add trailing `:' command.
3681 * tests/condhook2.test: New test, sister test of condhook, with
3683 * tests/condinc2.test: Use proper m4 quoting in configure.in.
3684 Prefer trailing `:' command over trailing `Exit 0'.
3685 * tests/condman2.test: Enable errexit shell flag, and related
3686 changes. Add trailing `:' command.
3687 * tests/condman.test: Likewise. Also, do not create useless
3688 dummy manpages, and use proper m4 quoting in configure.in.
3689 * tests/condman3.test: New test, similar to condman.test, but
3690 it also runs ./configure and "make install", and check the
3692 * tests/Makefile.am (TESTS): Updated.
3694 Modernize, improve and/or extend tests `colon*.test.
3695 * tests/colon.test: Rely on the `configure.in' stub created by
3696 `./defs', rather than writing one from scratch. Do not create
3697 a useless dummy file. Add trailing `:' command.
3698 * tests/colon4.test: Enable the `errexit' shell flag, and
3699 related changes. Rely on the `configure.in' stub created by
3700 `./defs', rather than writing one from scratch.
3701 * tests/colon7.test: Enable `errexit' shell flag, and related
3702 changes. Improve the generated `configure.in' file. Add
3703 trailing `:' command.
3704 * tests/colon2.test: Likewise. Also, add some new checks.
3705 * tests/colon5.test: Improve the generated `configure.in' file.
3706 Add new, much deeper checks. Add trailing `:' command.
3707 * tests/colon6.test: Likewise.
3708 * tests/colon3.test: Add trailing `:' command. Remove useless
3709 comments and echos. Improve the generated `configure.in' file.
3710 make some grepping tests stricter. Add a "FIXME" comments about
3711 planned improvements.
3713 Improve and extend tests `asm*.test'.
3714 * tests/asm.test: Use configure.in stub generated by ./defs,
3715 and avoid obsoleted autoconf constructs. Make grepping of
3716 Automake stderr stricter. Do not create useless source file.
3717 Improve verbose messages. Minor cosmetic changes. Tell to
3718 keep it in sync with other sister tests asm*.test.
3719 * tests/asm2.test: Likewise.
3720 * tests/asm3.test: Likewise.
3722 Modernize, improve and/or extend test scripts `conf*.test'.
3723 * tests/confh5.test: Cosmetic changes.
3724 * tests/conff.test: Likewise.
3725 * tests/confdeps.test: Likewise.
3726 * tests/conflnk.test: Likewise.
3727 * tests/conflnk2.test: Likewise.
3728 * tests/confsub.test: Likewise.
3729 * tests/confvar.test: Likewise, and make grepping of Makefile.in
3731 * tests/confvar2.test: Likewise.
3732 * tests/conflnk3.test: Cosmetic changes. Re-enable a temporarily
3733 disabled test (which didn't work with autoconf <= 2.59, but now we
3734 are requiring autoconf 2.62, so...)
3735 * tests/conflnk4.test: Cosmetic changes, and extend existing tests
3736 accordingly to "TODO" comments.
3737 * tests/conff2.test: Make grepping of Automake's stderr stricter.
3738 Add some comments explaining why we don't use the `configure.in'
3739 stub preset be ./defs.
3740 * tests/confh.test: Use the `configure.in' stub created by ./defs,
3741 rather than writing one from scratch, and do not call AC_OUTPUT.
3742 Enable `errexit' shell flag, and related changes. Prefer diff over
3743 cmp to compare text files. Prefer perl over sed to fetch the value
3744 of $(DIST_COMMON) from Makefile.in. Make grepping of the contents
3745 of $(DIST_COMMON) stricter.
3746 * tests/confh4.test: Use the `configure.in' stub created by ./defs,
3747 rather than writing one from scratch. Make grepping of Makefile.in
3749 * tests/confh5.test: Make grepping of `config.h' stricter. Add a
3751 * tests/configure.test: Avoid obsolescent constructs in generated
3752 `configure.ac'. Do not write `configure.in' two times. Escape
3753 literal dots in grep regular expressions.
3754 * tests/confincl.test: Enable `errexit' shell flag, and related
3755 changes. Prefer fgrep over grep. Other cosmetic changes.
3756 * tests/config.test: Renamed to ...
3757 * tests/confh6.test: ... this. Fix m4 quoting in `configure.in',
3758 and make grepping of `config.h' and `config.h.in' stricter.
3759 * tests/conf2.test: Renamed ...
3760 * tests/confh7.test: ... to this. Use the `configure.in' stub
3761 created by ./defs, rather than writing one from scratch. Try to
3762 run the checks both with and without AC_PROG_CC and AC_OUTPUT in
3764 * tests/Makefile.am (TESTS): Updated.
3766 Minor improvements and fixes in tests `depcomp*.test'.
3767 * tests/depcomp.test: Do not create useless dummy source files.
3768 Add a trailing `:' command.
3769 * tests/depcomp2.test: Use `unset' on the CFLAG variable to ensure
3770 it's not in in the environment, rather than exporting it with an
3771 empty value. Do not pass CC=gcc to configure, as that's already
3772 done in ./defs since we have gcc in $required. Ensure verbose
3773 printing of captured stderr, and normalize its checking. Add a
3774 trailing `:' command.
3775 * tests/depcomp3.test: Quote literal dots and dollar characters in
3776 grep regexps. Always use `: >' rather than `touch' to create empty
3777 files. Explicitly declare phony targets as such in the created
3778 Makefile.am. Add a trailing `:' command.
3779 * tests/depcomp4.test: Quote literal dots and dollar characters in
3780 grep regexp. Explicitly declare phony targets as such in the
3781 created Makefile.am. Ensure verbose printing of captured makes'
3782 stoud/stderr. Add a trailing `:' command.
3783 * tests/depcomp5.test: Move setting of `errexit' shell flag earlier
3784 in the script (just after inclusion of ./defs). Quote literal dots
3785 and dollar characters in grep regexps. Explicitly declare phony
3786 targets as such in the created Makefile.am. Add a trailing `:'
3788 * tests/depcomp6.test: Consistently use m4 quoting in the generated
3789 configure.in. Cosmetic fixes to spacing. Make the "dummy" `if'
3790 statement required by OpenBSD's sh `set -e' more robust, and add
3791 explanatory comments to it.
3792 * tests/depcomp7.test: Likewise, and add a trailing `:' command.
3794 Separate failing part of test `all.test'.
3795 * tests/all.test: Keep only (x)failing part of the test. Working
3796 checks moved out to ...
3797 * tests/all2.test: ... this new test.
3798 * tests/Makefile.am (TESTS): Updated.
3800 Modernize, improve and extend tests `subobj*.test'.
3801 * tests/subobjname.test: Add trailing `:' command.
3802 * tests/subobj.test: Make grepping of `Makefile.in' stricter.
3803 Escape literal dots in grep regexps.
3804 * tests/subobj2.test: Add trailing `:' command. Do not use the
3805 unportable fgrep option `-e'.
3806 * tests/subobj3.test: Add trailing `:' command.
3807 (configure.in): Use proper m4 quoting, and avoid obsolescent
3809 * tests/subobj8.test: Likewise. Also, enable `errexit' shell
3810 flag, with related changes
3811 * tests/subobj4.test: Likewise. Also, make grepping of
3812 `Makefile.in' stricter.
3813 * tests/subobj5.test: Add trailing `:' command. Move setting of
3814 `errexit' shell flag earlier in the script (just after inclusion
3816 (configure.in): Use the stub created by `./defs', rather than
3817 writing it from scratch, and avoid obsolescent constructs.
3818 * tests/subobj6.test: Add trailing `:' command. Move setting of
3819 `errexit' shell flag earlier in the script (just after inclusion
3820 of ./defs). Do not create useless dummy ac-init file `f'.
3821 * tests/subobj7.test: Do not create useless dummy ac-init file
3823 (configure.in): Use the stub created by `./defs', rather than
3824 writing it from scratch, and avoid obsolescent constructs.
3825 * tests/subobj9.test: Move setting of `errexit' shell flag earlier
3826 in the script (just after inclusion of ./defs). Fail the test if
3827 `make distcheck' fails. Ensure verbose printing of captured make
3828 stdout. Avoid useless fork by doing simple grep instead of using
3829 test -n "`COMMAND | grep ...`".
3830 (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
3831 (Makefile.am): Explicitly mark target "print" as phony.
3832 * tests/subobj10.test: Removed duplicated call to `set -e'. Add
3833 trailing `:' command.
3834 (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
3836 Remove a couple of obsoleted tests.
3837 * tests/fpinstall.test: Removed.
3838 * tests/fpinst2.test: Likewise.
3839 * tests/Makefile.am (TESTS): Updated.
3841 Bootstrap: updated HACKING entry.
3842 * HACKING ("Working with git"): Explain how to override the
3843 autoconf and autom4te programs used by the bootstrap process.
3846 * bootstrap: Do not remove `lib/Automake/Config.pm' anymore,
3847 since we don't generate it. Correctly quote arguments of
3848 `eval' builtin. Fixed a botched error message. Removed an
3851 Bootstrap: don't search perl in $PATH.
3852 * bootstrap: Do not explicitly search perl in $PATH anymore.
3853 ($PATH_SEPARATOR): Removed, it's no more needed.
3855 Bootstrap: let the user choose which autoconf to use.
3856 * bootstrap ($AUTOCONF): New variable, from the environment.
3857 ($AUTOM4TE): Likewise, for clarity.
3858 Use "$AUTOCONF" instead of calling "autoconf" directly.
3860 Minor improvements to tests ar*.test.
3861 * tests/ar.test: Add trailing `:' command.
3862 * tests/ar2.test: Likewise, and make grepping of generated
3863 Makefile.in stricter.
3865 2010-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3867 Fix maintainer-check failure.
3868 * tests/cond5.test: Quote sleep argument, this isn't about
3869 time stamp differences.
3871 Sync auxiliary files from upstream.
3872 * lib/config.guess, lib/config.sub, lib/texinfo.tex:
3875 2010-08-06 Stefano Lattarini <stefano.lattarini@gmail.com>
3877 Work around a nasty bug (segfault) of Solaris make.
3878 * lib/am/check.am (recheck, recheck-html): Trim trailing spaces
3879 from $list, to avoid triggering a nasty bug (potential segfault)
3882 2010-08-06 Peter Rosin <peda@lysator.liu.se>
3884 Make cond5.test more robust on MSYS.
3885 * tests/cond5.test: Add delay before the first kill attempt to
3886 cater for problems with MSYS bash.
3888 2010-11-16 Peter Rosin <peda@lysator.liu.se>
3890 Skip MSVC oriented tests if the shell is not capable.
3891 * tests/defs: New required entry 'xsi-shell'.
3892 * tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
3893 Require a XSI capable shell.
3894 Reported by Ralf Wildenhues.
3896 2010-11-15 Peter Rosin <peda@lysator.liu.se>
3898 compile: clear the `eat' variable earlier.
3899 * lib/compile: Clear the `eat' variable earlier.
3900 ($scriptversion): Update.
3901 * tests/compile3.test: Prevent regressions.
3903 2010-10-07 Peter Rosin <peda@lysator.liu.se>
3905 depcomp: add new one-pass depmode for MSVC 7 and later.
3906 * lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
3907 make use of the -showIncludes option added in MSVC 7.
3908 * m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
3909 similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
3910 support the -o option.
3912 2010-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3914 tests: fix ar-lib.test for echo that interprets backslashes.
3915 * tests/ar-lib.test: Use printf instead of echo. Avoid test -a.
3916 More robust quoting.
3918 2010-09-21 Peter Rosin <peda@lysator.liu.se>
3920 compile: implement library search to support MSVC static linking
3921 * lib/compile (func_cl_wrapper): Implement library search and
3922 -static option so that the user can select whether to prefer
3923 dll import libraries or static libraries. This enables MSVC to
3924 link against dlls generated by libtool without requiring libtool
3925 or workarounds such as -lfoo.dll etc. Makes the tests/static.at
3926 test case in libtool pass.
3927 * tests/compile3.test: Don't trip up if there happens to exist
3928 a "foo" library in the library search path.
3929 * tests/compile6.test: New test, verifying the library search.
3930 * tests/Makefile.am (TESTS): Update.
3932 2010-09-02 Peter Rosin <peda@lysator.liu.se>
3934 Make ar-lib support backslashed files in archives.
3935 * lib/ar-lib: If an archive member contains a backslash, make sure
3936 it is escaped when the archive member is extracted.
3937 * tests/ar-lib.test: Test the above.
3939 2010-08-31 Peter Rosin <peda@lysator.liu.se>
3941 Do file name conversion for object files in the compile wrapper.
3942 * lib/compile (func_cl_wrapper): Do file name conversion for object
3943 files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
3944 * tests/compile4.test: Test the above.
3946 2010-08-16 Peter Rosin <peda@lysator.liu.se>
3948 Optimize compile script on MSYS.
3949 * lib/compile (func_file_conv): Add new argument 'lazy' which
3950 takes an optional list of conversion types where the requested
3951 conversion isn't needed.
3952 (func_cl_wrapper): Take advantage of the above for cases where
3953 MSYS is doing the conversion for us.
3954 Suggested by Ralf Wildenhues.
3956 2010-08-16 Peter Rosin <peda@lysator.liu.se>
3958 Support more C++ file extensions for MSVC in the compile script.
3959 * lib/compile (func_cl_wrapper): MSVC only recognizes the .cpp
3960 file extension as C++, unless it's given a hint. So hint about
3961 .cc, .CC, .cxx, .CXX, c++ and C++. Also do path conversion on
3962 .c, .cpp, .CPP, .lib, .LIB and .Lib files.
3963 * tests/compile3.test: Test the C++ hinting.
3965 2010-08-12 Peter Rosin <peda@lysator.liu.se>
3967 Enable the use of "link -lib" as the wrapped archiver.
3968 * lib/ar-lib: Enable the use of "link -lib" as the wrapped
3969 archiver, as well as allowing some other options to be passed
3970 through to the wrapped archiver.
3971 * tests/ar-lib.test: Test the above.
3973 2010-08-06 Peter Rosin <peda@lysator.liu.se>
3975 Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
3976 * lib/ar-lib: New auxiliary script.
3977 * lib/Makefile.am: Add above.
3978 * tests/ar-lib.test: New test.
3979 * tests/Makefile.am: Add above.
3980 * automake.in (@common_files): Distribute the 'ar-lib' script.
3981 * doc/automake.texi (Auxiliary Programs): Mention the new
3983 (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
3986 2010-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3988 Fix shell pattern negation in compile script.
3989 * lib/compile (func_file_conv): Use `!' not `^' for pattern
3992 2010-08-01 Peter Rosin <peda@lysator.liu.se>
3994 Wrap some MSVC options in the compile script.
3995 * lib/compile: MSVC supports naming the output file, the option
3996 is just not called -o, so transform -o into the appropriate form
3997 for MSVC. Also wrap some other options while at it (-L, -l, -Wl,
3998 -Xlinker and -I) and convert file names to windows form where
3999 needed for those options to make MSVC more usable in an
4000 autotooled environment.
4001 * doc/automake.texi (Auxiliary Programs): Document the above
4002 extension of the compile script.
4004 * tests/defs.in: New required entry 'cl'.
4005 * tests/compile3.test: New test.
4006 * tests/compile4.test: New test.
4007 * tests/compile5.test: New test.
4008 * tests/Makefile.am: Update.
4010 2010-07-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4012 Add example git work flow; discuss merge --log in HACKING.
4014 Suggestion by Stefano Lattarini.
4016 Add more hints for debugging make rules.
4017 * doc/automake.texi (Debugging Make Rules): Show command to find
4018 out expanded values of variables; point to makefile debugger.
4020 Prompted by suggestion from Ludovic Courtès and Andy Wingo.
4022 2010-07-27 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
4024 Fix typo in the manual.
4025 * doc/automake.texi (Scripts): Fix typo.
4027 2010-07-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4029 Document current policy for development with git.
4030 * HACKING (Working with git): Overhaul.
4031 Prompted by suggestion from Stefano Lattarini.
4033 Fix AM_COND_IF for gone-invalid condition shell expression.
4034 * m4/cond-if.m4 (AM_COND_IF): test contents of $COND_TRUE
4035 variable, rather than re-evaluating the shell expression for
4037 * tests/cond40.test: Extend test.
4040 Avoid syntax error if IF-TRUE part of AM_COND_IF expands empty.
4041 * m4/cond-if.m4 (AM_COND_IF): Ensure IF-TRUE part is never empty
4042 to avoid shell syntax error if the m4 expansion is empty.
4043 * tests/cond40.test: Enhance test.
4045 Coverage: bogus option to AM_INIT_AUTOMAKE.
4046 * tests/init2.test: New test.
4047 * tests/Makefile.am: Update.
4049 2010-07-21 Stefano Lattarini <stefano.lattarini@gmail.com>
4051 Modernize and improve test scripts `subdir*.test'.
4052 * tests/subdir.test: Enable `errexit' shell flag, and related
4053 changes. Use the `configure.in' stub created by `./defs',
4054 rather than writing one from scratch.
4055 * tests/subdir2.test: Likewise.
4056 * tests/subdir4.test: Likewise.
4057 * tests/subdir3.test: Enable `errexit' shell flag, and related
4058 changes. Do not create useless dummy source files.
4059 * tests/subdir5.test: Make grepping of Makefile.in (in topdir
4060 and in subdirs) stricter. Some minor changes to keep it more
4061 in sync with the related test `subdir8.test'.
4062 * tests/subdir8.test: Likewise (but with the related test being
4063 `subdir5.test' here).
4064 * tests/subdir6.test: Cosmetic change in spacing.
4065 * tests/subdir9.test: Define and use new variable `$distdir'. Add
4066 trailing `:' command.
4067 * tests/subdir10.test: Cosmetic consistency-related change.
4068 * tests/subdirbuiltsources.test: Cosmetic changes in spacings.
4069 (configure.in): Use stub created by `./defs', rather than writing
4070 it from scratch. Do not use obsoleted and/or deprecated forms of
4071 autoconf/automake macros.
4073 Modernize and improve test scripts `dist*.test'.
4074 * tests/distcleancheck.test: Do not add useless `-e' option to
4075 a $MAKE call. Extend test by grepping stderr of make.
4076 * tests/distcom2.test: Do not run the same test script on the
4077 Makefile.in twice, but save its output in an intermediate file
4078 instead. Make grepping of DIST_COMMON definition stricter.
4079 Display the content of more files, to ease debugging. Add a
4080 trailing `:' command. Improved heading comments w.r.t. sister
4082 * tests/distcom6.test: Likewise, and avoid to uselessly run
4084 * tests/distcom3.test: Ensure verbose printing of captured stdout
4085 and stderr. Make grepping of captured stderr stricter. Also,
4086 add trailing `:' command.
4087 * tests/distcom4.test: Declare the target `test' in the generated
4088 Makefile.am as `.PHONY'. Display content of more files, to ease
4089 debugging. Add trailing `:' command.
4090 * tests/distcom5.test: Likewise. Also, factor out common sed
4091 script in subroutine `extract_distcommon'.
4092 * tests/distcom7.test: Prefer cat + here-doc over echo to write
4093 test Makefile.am files. Add a trailing `:' command.
4094 * tests/distname.test: Prefer `gzip -d' over `gunzip'. Move the
4095 call to `set -e' earlier. Be stricter and more verbose in the
4096 checking of the generated tarball.
4097 (configure.in): Use the stub provided by ./defs, instead of
4098 writing it from scratch. Avoid obsoleted constructs. Remove
4099 useless call to `AM_PROG_CC_C_O'.
4100 * tests/distdir.test: Various minor improvements/normalizations.
4101 * tests/distlinks.test: Likewise.
4103 2010-07-18 Stefano Lattarini <stefano.lattarini@gmail.com>
4105 Improve and extend test cond5.test.
4106 * tests/cond5.test: Do not blindly sleep 60 seconds before polling
4107 the background automake process, but poll it every 10 seconds for
4108 at most 30 times (this makes the test both faster on good machines,
4109 and more resilient to spurious timeout-due failures when in low
4110 priority or on heavily-loaded systems).
4111 Check also that automake writes the expected error messages on the
4113 Enable `errexit' flag, and related changes.
4114 Rely on the `configure.in' stub created by `./defs', rather than
4115 writing one from scratch.
4117 2010-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4119 Update program --help output to match current GCS.
4120 * configure.ac: Set and substitute PACKAGE_URL if AC_PACKAGE_URL
4121 is not defined, for compatibility to Autoconf < 2.64.
4122 * Makefile.am (do_subst): Substitute PACKAGE_BUGREPORT and
4124 (sc_diff_automake_in_automake): Update number of diff lines for
4125 additional substitutions.
4126 * aclocal.in (usage): Use PACKAGE_BUGREPORT. Point to Automake
4127 home page and GNU general help page.
4128 * automake.in (usage): Likewise.
4129 * doc/automake.texi: New flag PACKAGE_BUGREPORT, to factor email
4131 (Introduction, Creating amhello, amhello Explained, Options):
4133 * lib/Automake/Makefile.am (do_subst): Substitute
4135 * lib/Automake/Config.in ($PACKAGE_BUGREPORT): New global.
4136 * lib/Automake/ChannelDefs.pm: Use it for footer of fatal
4139 Clean up @var handling in the manual.
4140 * doc/automake.texi: Throughout the manual, lower-case @var
4141 names, replace a few one-character names.
4143 2010-06-26 Stefano Lattarini <stefano.lattarini@gmail.com>
4145 Fix typo-related bug in test script silent5.test.
4146 * tests/silent5.test: Use $EGREP, not $GREP (which is not even
4149 Tests: remove useless repetitions of `foreign' automake option.
4150 * tests/multlib.test (configure.in): Remove useless use of
4151 `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is
4152 already in $AUTOMAKE by default, so no point in repeating it).
4153 * tests/subobj10.test: Likewise.
4154 * tests/subobj9.test: Likewise.
4155 * tests/lex3.test (Makefile.am): Similarly, remove useless use
4156 of `foreign' option in AUTOMAKE_OPTIONS.
4157 * tests/lex5.test: Likewise.
4158 * tests/pr279.test: Likewise.
4159 * tests/pr279-2.test: Likewise.
4160 * tests/specflg3.test: Likewise.
4161 * tests/target-cflags.test: Likewise.
4163 Drop useless requirement "gzip" in lex5.test.
4164 * tests/lex5.test ($required): Do not list "gzip", as it's
4167 2010-06-24 Stefano Lattarini <stefano.lattarini@gmail.com>
4169 Fix bugs in test script silent5.test.
4170 * tests/silent5.test: Fixed a nasty bug (due to the use of grep
4171 instead of egrep) that could have led to false negatives.
4173 2010-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
4175 Add a test checking that distributed broken symlinks cause
4176 `make dist' to fail.
4177 * tests/distlinksbrk.test: New test.
4178 * tests/Makefile.am (TESTS): Updated.
4180 2010-06-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4182 Fix minor testsuite issues, update docs, for Yacc/Lex changes.
4183 * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
4184 and AM_LFLAGS, LFLAGS in the order in which they now appear in
4187 * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
4188 tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
4189 please maintainer-check. Ensure generated C files contain a
4190 declaration, to please compilers.
4192 2010-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
4194 Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
4195 $(FLAGS) precedence.
4196 * automake.in: Fix registration of languages "Lex", "Lex (C++)",
4197 "Yacc" and "Yacc (C++)", so that $(LFLAGS) has precedence over
4198 $(AM_LFLAGS) and $(YFLAGS) has precedence over $(AM_YFLAGS).
4199 * tests/Makefile.am (XFAIL_TESTS): Updated accordingly.
4202 New tests, exposing bugs in Automake Yacc/Lex support w.r.t.
4203 $(AM_FLAGS) and $(FLAGS) precedence.
4204 * tests/lflags.test: New test, check that user $(LFLAGS) takes
4205 precedence over automake (AM_LFLAGS) and (foo_LFLAGS). Still
4207 * tests/lflags2.test: Likewise.
4208 * tests/yflags.test: New test, check that user $(YFLAGS) takes
4209 precedence over automake (AM_YFLAGS) and (foo_YFLAGS). Still
4211 * tests/yflags2.test: Likewise.
4212 * tests/Makefile.am (TESTS, XFAIL_TESTS): Extended accordingly.
4214 2010-06-20 Stefano Lattarini <stefano.lattarini@gmail.com>
4216 Modernize, improve and extend tests `suffix*.test'.
4217 * tests/suffix3.test: Enable `errexit' shell flag, and related
4219 * tests/suffix4.test: Likewise.
4220 * tests/suffix6.test: Likewise, and do not create a useless dummy
4222 * tests/suffix7.test: Likewise.
4223 * tests/suffix5.test: Enable `errexit' shell flag, and related
4224 changes. Make grepping of Makefile.in slightly stricter.
4225 * tests/suffix.test: Enable `errexit' shell flag, and related
4226 changes. Also, do not redirect grep output to /dev/null, as this
4227 might unmotivatedly hide useful information.
4228 * tests/suffix2.test: Move setting of `errexit' shell flag earlier
4229 in the script (just after inclusion of ./defs). Use a more
4230 idiomatic way to count text occurrences in Makefile.in with
4231 grep. Do not create useless dummy source files.
4232 * tests/suffix10.test: Ensure verbose printing of captured make
4233 stdout. Minor cosmetic changes.
4234 * tests/suffix8.test: Likewise. Also, drop useless call to the
4235 env(1) utility, and make grepping of make output stricter by using
4236 $FGREP rather than plain grep.
4237 * tests/suffix11.test: Likewise.
4238 * tests/suffix12.test: Likewise.
4239 * tests/suffix9.test: Prefer cat + here-doc over echo to append to
4240 the `configure.in' stub. Cosmetic changes.
4241 * tests/suffix13.test: Cosmetic spacing change.
4243 2010-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
4245 Add useful comment in test script ext.test.
4246 * tests/ext.test: Add a comment explaining why an apparently
4247 useless `if' statement is indeed required.
4249 Add useful comment in test script obsolete.test.
4250 * tests/obsolete.test: Add a comment explaining why we need
4251 an indirection in adding $AUTOUPDATE to $required.
4253 Normalize whitespaces in 'tests/Makefile.am'.
4254 * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
4255 definition of this variable.
4257 2010-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4259 Remove a couple of unneeded conditionals from tests.
4260 * tests/pr243.test, tests/pr266.test, tests/strip.test: No need
4261 for the FOOTEST conditional.
4263 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
4265 Modernize, improve and/or fix various test scripts.
4266 * tests/symlink3.test: Deleted, separated into two new, more
4268 * tests/forcemiss.test: ... this one ...
4269 * tests/forcemiss2.test: ... and this one.
4270 * tests/symlink2.test: Enable `errexit' shell flag, make test
4271 stricter, and skip it if symlink creation is not supported.
4272 * tests/postproc.test: Enable `errexit' shell flag, related
4273 changes, and a couple of unrelated cosmetic changes.
4274 * tests/recurs.test: Use the `configure.in' stub created by
4275 `./defs', rather than writing one from scratch. Make grepping
4276 of Automake stderr slightly stricter.
4277 * tests/substtarg.test: Likewise.
4278 * tests/strip.test: Likewise, and move the call to `set -e'
4279 earlier (just after the inclusion of `./defs'). Also, make sure
4280 that the script installed by `make install-script' is equal to
4282 * tests/substref.test: Use the `configure.in' stub created by
4283 `./defs', rather than writing one from scratch. Move the call
4284 to `set -e' earlier (just after the inclusion of `./defs').
4285 Avoid to explicitly export CC for configure (that's already done
4286 in ./defs). Avoid potential problems with unpredictable make
4287 output. Finally, make grepping of Makefile.in stricter.
4288 * tests/substre2.test: Ensure verbose printing of the captured
4289 make's output, and make its grepping slightly stricter.
4290 * tests/cygwin32.test: Enable `errexit' shell flag, and related
4291 changes. Also, do not create useless dummy source/data files.
4292 * tests/scripts.test: Likewise.
4293 * tests/recurs2.test: Likewise. Also, use the `configure.in'
4294 stub created by `./defs'.
4295 * tests/Makefile.am (TESTS): Updated.
4297 Modernize, improve and/or fix tests `pluseq*.test.
4298 * tests/pluseq5.test: Append to configure.in using cat with an
4299 here-doc, not using echo.
4300 * tests/pluseq10.test: Make sure that the captured output of
4301 `make' command is always displayed. Where possible, use $FGREP
4302 instead of grep (this change makes some checks slightly stricter).
4303 * tests/pluseq8.test: Enable `errexit' shell flag, with related
4305 * tests/pluseq.test: Likewise. Also, do not create useless dummy
4306 data files, and use better m4 quoting in generated configure.in.
4307 * tests/pluseq2.test: Likewise. Also, append to configure.in
4308 using cat with an here-doc, not using echo.
4309 * tests/pluseq3.test: Likewise.
4310 * tests/pluseq4.test: Likewise.
4311 * tests/pluseq6.test: Likewise.
4312 * tests/pluseq7.test: Do not create useless dummy source file.
4313 * tests/pluseq9.test: Slightly extended w.r.t. the grepping of
4314 Automake stderr. Some unrelated cosmetic changes.
4316 Testsuite: ensure verbose printing of captured stderr.
4317 * tests/acloca18.test: Print captured stderr before either failing
4318 or grepping it. Be sure to send captured stderr to stderr, not to
4320 * tests/ansi3b.test: Likewise.
4321 * tests/cond39.test: Likewise.
4322 * tests/configure.test: Likewise.
4323 * tests/missing3.test: Likewise.
4324 * tests/missing6.test: Likewise.
4325 * tests/output-order.test: Likewise.
4326 * tests/pr300-ltlib.test: Likewise.
4327 * tests/python6.test: Likewise.
4328 * tests/python7.test: Likewise.
4329 * tests/python8.test: Likewise.
4330 * tests/python9.test: Likewise.
4331 * tests/subobj.test: Likewise.
4332 * tests/vars3.test: Likewise.
4333 * tests/missing4.test: Likewise, and fix a call to grep not to use
4335 * tests/ansi3.test: Likewise, and rely on the `configure.in' stub
4336 created by `./defs', rather than writing one from scratch.
4338 Enable `errexit' shell flag in various tests.
4339 * tests/backsl.test: Enable the `errexit' shell flag, and
4341 * tests/backsl2.test: Likewise.
4342 * tests/block.test: Likewise.
4343 * tests/canon2.test: Likewise.
4344 * tests/canon4.test: Likewise.
4345 * tests/comment2.test: Likewise.
4346 * tests/condlib.test: Likewise.
4347 * tests/cond15.test: Likewise, and prefer $FGREP over grep.
4348 * tests/canon3.test: Likewise. Also, avoid to create an useless
4350 * tests/acoutpt2.test: Enable the `errexit' shell flag, and some
4351 related changes. Do some cosmetic improvements in the generated
4352 `configure.in' file.
4353 * tests/cond4.test: Likewise.
4354 * tests/cond14.test: Likewise.
4355 * tests/condinc.test: Likewise.
4356 * tests/cond7.test: Likewise. Also, remove useless setting of
4357 AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am.
4358 * tests/ansi.test: Enable the `errexit' shell flag, and related
4359 changes. Extended, esp. by running autoconf, ./configure and
4360 make, and by looking into the distdir.
4362 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
4363 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4365 Extend tests/README w.r.t. trailing `:' in test scripts.
4366 * tests/README (section "Writing test cases" subsection "Do"):
4367 Explain why apparently redundant trailing `:' and `Exit 0' in
4368 test scripts can indeed be useful.
4370 2010-06-11 Stefano Lattarini <stefano.lattarini@gmail.com>
4372 Improve determination of PATH separator in bootstrap script.
4373 * bootstrap: Determine what the PATH separator is the same way
4376 Minor improvements in bootstrap script.
4377 * bootstrap: Consistently use two-spaces indentation. Cosmetic
4378 improvement to comments.
4379 ($me): New variable, containing program basename.
4380 Prepend it to all error messages.
4382 Testsuite now works with BSD make in parallel mode.
4383 * tests/defs.in: Unset variables __MKLVL__ and MAKE_JOBS_FIFO,
4384 which are exported by BSD make when run in parallel mode, and
4385 which can confuse make processes spawned by our testsuite.
4386 This change fixes a lot of spurious failure when the testsuite
4387 is run with BSD make in parallel mode.
4389 2010-06-09 Stefano Lattarini <stefano.lattarini@gmail.com>
4391 Modernize, improve and/or fix various test scripts.
4392 * tests/sanity.test: Rely on the `configure.in' stub created by
4393 `./defs', rather than writing one from scratch.
4394 * tests/depend2.test: Likewise. Also, call `set -e' just after
4395 the inclusion of `./defs', instead that later in the script.
4396 * tests/canon5.test: Avoid a useless `|| Exit 1' after a call to
4397 $AUTOMAKE, and improve the positioning of an $ACLOCAL call.
4398 * tests/exeext4.test: Use $FGREP instead of grep, where possible.
4399 Make auxiliary rules in the generated Makefile more silent.
4400 These changes make some checks slightly stricter.
4401 * tests/ext2.test: Call `Exit 1' if inclusion of `./defs' fails.
4402 * tests/gettext2.test: Place final `:' at the end of the script,
4403 rather than in the middle.
4404 * tests/exeext.test: Call `set -e' just after the inclusion of
4405 `./defs', instead that later in the script.
4406 * tests/extra5.test: Likewise.
4407 * tests/confdeps.test: Likewise. Also, prefer `mv -f' over
4408 plain `mv', just to be sure.
4409 * tests/depcomp.test: Enable `errexit' shell flag, with related
4410 changes. Also, modernize the generated configure.in.
4411 * tests/cond9.test: Likewise. Also, rely on the `configure.in'
4412 stub created by `./defs', rather than writing one from scratch.
4413 * tests/cond10.test: Likewise.
4414 * tests/depcomp2.test: Likewise.
4415 * tests/depend3.test: Likewise.
4416 * tests/distcom7.test: Likewise.
4417 * tests/fortdep.test: Likewise. Also, remove definition of
4418 AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am,
4419 since that flag is already provided by $AUTOMAKE.
4420 * tests/mdate.test: Made stricter, by checking that Automake
4421 actually failed, and by making a stricter grep on the error
4422 message. Also, set shell `errexit flag'.
4423 * tests/python2.test: Improved verbose messages.
4425 Make test `ammissing.test' stricter.
4426 * tests/ammissing.test: Fail if $ACLOCAL succeeds unexpectedly.
4427 Enable `errexit' shell flag.
4429 2010-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
4431 Enable `errexit' shell flag in some test scripts.
4432 * tests/subcond.test: Enabled `errexit' shell flag, and related
4434 * tests/subst.test: Likewise.
4435 * tests/vars.test: Likewise.
4436 * tests/version4.test: Likewise.
4437 * tests/vpath.test: Likewise.
4438 * tests/vtexi2.test: Likewise.
4439 * tests/werror.test: Likewise.
4440 * tests/whoami.test: Likewise.
4441 * tests/tags.test: Likewise, and avoid to crate an useless dummy
4443 * tests/acsilent.test: Likewise, and don't use an easily-avoided
4444 command substitution.
4445 * tests/unused.test: Likewise, and don't use an easily-avoided
4446 command substitution.
4447 * tests/version.test: Likewise, and avoid deprecated constructs
4448 in the generated `configure.in'.
4449 * tests/version2.test: Likewise, and avoid deprecated constructs
4450 in the generated `configure.in'.
4452 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4454 Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
4455 * tests/ldadd.test: Enable errexit. Use AUTOMAKE_fails so
4456 the verbose log contains all output.
4457 * tests/mdate.test: Likewise.
4458 Prompted by Stefano Lattarini's change to discover.test.
4460 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
4462 Improve tests link*.test (enable `errexit' shell flag).
4463 * tests/link_c_cxx.test: Enable `errexit shell flag, and related
4464 changes. Also, do not create useless source files.
4465 * tests/link_dist.test: Likewise.
4466 * tests/link_f90_only.test: Likewise.
4467 * tests/link_f_only.test: Likewise.
4468 * tests/link_fc.test: Likewise.
4469 * tests/link_fccxx.test: Likewise.
4470 * tests/link_fcxx.test: Likewise.
4472 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4474 Improve ext.test semantics, avoid OpenBSD sh errexit issue.
4475 * tests/ext.test: Inside shell compound command, use
4476 `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to
4477 fix failure with OpenBSD sh introduced with last patch.
4478 Actually ensure that a rule for .EXT.o is created for each
4479 known extension EXT.
4481 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
4483 Enable `errexit' shell flag in some test scripts.
4484 * tests/dash.test: Enable `errexit' shell flag, and related
4486 * tests/defun.test: Likewise.
4487 * tests/defun2.test: Likewise.
4488 * tests/dejagnu.test: Likewise.
4489 * tests/double.test: Likewise.
4490 * tests/distcom2.test: Likewise.
4491 * tests/empty2.test: Likewise.
4492 * tests/empty3.test: Likewise.
4493 * tests/empty4.test: Likewise.
4494 * tests/exdir.test: Likewise.
4495 * tests/ext.test: Likewise.
4496 * tests/extra.test: Likewise.
4497 * tests/extra2.test: Likewise.
4498 * tests/extra3.test: Likewise.
4499 * tests/extra4.test: Likewise.
4500 * tests/flibs.test: Likewise.
4501 * tests/fnoc.test: Likewise.
4502 * tests/fo.test: Likewise.
4503 * tests/instexec.test: Likewise.
4504 * tests/ltdeps.test: Likewise.
4505 * tests/nodep.test: Likewise.
4506 * tests/nodepcomp.test: Likewise.
4507 * tests/f90only.test: Likewise, and remove botched/obsoleted
4508 comments and unnecessary commands.
4509 * tests/fonly.test: Likewise, and remove botched/obsoleted
4510 comments and unnecessary commands.
4511 * tests/discover.test: Likewise, and made stricter.
4513 Enable `errexit' shell flag in all tests cxx*.test.
4514 * tests/cxx.test: Enabled `errexit' shell flag, and related
4516 * tests/cxxansi.test: Likewise.
4517 * tests/cxxcpp.test: Likewise.
4518 * tests/cxxlibobj.test: Likewise.
4519 * tests/cxxlink.test: Likewise.
4520 * tests/cxxo.test: Likewise.
4522 Enable `errexit' shell flag in various tests.
4523 * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
4525 * tests/acoutpt.test: Likewise.
4526 * tests/acoutqnl.test: Likewise.
4527 * tests/amassign.test: Likewise.
4528 * tests/ansi2.test: Likewise.
4529 * tests/ansi4.test: Likewise.
4530 * tests/badprog.test: Likewise.
4531 * tests/checkall.test: Likewise.
4532 * tests/clean.test: Likewise.
4533 * tests/colneq2.test: Likewise.
4534 * tests/colon.test: Likewise.
4535 * tests/colon5.test: Likewise.
4536 * tests/colon6.test: Likewise.
4537 * tests/comment.test: Likewise.
4538 * tests/compile_f90_c_cxx.test: Likewise.
4539 * tests/compile_f_c_cxx.test: Likewise.
4540 * tests/cond3.test: Likewise.
4541 * tests/cond6.test: Likewise.
4542 * tests/cond13.test: Likewise.
4543 * tests/conf2.test: Likewise.
4544 * tests/confvar.test: Likewise.
4545 * tests/confvar2.test: Likewise.
4546 * tests/cond8.test: Likewise, plus a cosmetic change.
4547 * tests/confh4.test: Likewise. Also, add in the heading comments
4548 an excerpt from the original bug report which motivated the
4549 creation of this test, to make its purpose clearer.
4551 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4553 Rewrite manual to be gender-neutral.
4554 * doc/automake.texi (GNU Build System)
4555 (Standard Directory Variables, General Operation, CVS)
4556 (Hard-Coded Install Paths, Dependencies As Side Effects):
4557 Rewrite text to not contain gender-specific pronouns when
4558 speaking about developers or users, either by avoiding pronouns
4559 or by addressing them as `you' instead.
4561 Report by Christina Gratorp.
4565 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
4567 Make tests on user extensibility of silent-rules mode stricter.
4568 * tests/silent6.test: Made stricter w.r.t. the grepping of the
4569 output produced by `make'.
4570 * tests/silent7.test: Likewise.
4572 Tests on silent-mode for C/Libtool made stricter.
4573 * tests/silent.test: Made stricter w.r.t. the grepping of the
4574 output produced by `make'.
4575 * tests/silent2.test: Likewise.
4576 * tests/silent4.test: Likewise.
4577 * tests/silent9.test: Likewise.
4578 * tests/silent3.test: Likewise, and add a final `make distclean'
4579 command to keep it better in sync with tests/silent{4,9}.test.
4581 Improved test silent5.test.
4582 * tests/silent5.test: Remove by hand all generated C files after
4583 non-verbose builds, to ensure the following builds are clean.
4584 Try to clean and rebuild with the same verbosity and without
4585 removing generated sources in between, to check that this does
4586 not trigger a different set of rules. Make grepping of make's
4587 output stricter. Improved/added some comments.
4589 New tests for Automake silent-mode with Fortran.
4590 * tests/silentf77.test: New test.
4591 * tests/silentf90.test: Likewise.
4592 * tests/Makefile.am (TESTS): Updated accordingly.
4594 New test `silentcxx.test' (Automake silent-mode with C++).
4595 * tests/silentcxx.test: New test.
4596 * tests/Makefile.am (TESTS): Updated accordingly.
4598 New test `silentyacc.test' (Automake silent-mode with Yacc).
4599 * tests/silentyacc.test: New test.
4600 * tests/Makefile.am (TESTS): Updated accordingly.
4602 New test `silentlex.test' (Automake silent-mode with Lex).
4603 * tests/silentlex.test: New test.
4604 * tests/Makefile.am (TESTS): Updated accordingly.
4606 Relax tests on silent-rules to cater to overly verbose makes.
4607 * tests/silent.test: When testing silent builds, don't fail if
4608 make's output simply contains the `mv' substring, but only if
4609 it contains the `mv ' substring (note the trailing space).
4610 * tests/silent2.test: Likewise.
4611 * tests/silent3.test: Likewise.
4612 * tests/silent4.test: Likewise.
4613 * tests/silent5.test: Likewise.
4614 * tests/silent9.test: Likewise.
4616 2010-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4618 Fix silent-rules output for disabled dependency tracking.
4619 * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
4620 expansion code to also work in the case where %AMDEP% expands
4621 to FALSE at config.status time, using new substitution string
4623 * automake.in (verbose_nodep_flag): New function, appending
4624 `@am__nodep@' to the verbose-variable name.
4625 (handle_languages): If dependencies are not disabled, use it to
4626 set %VERBOSE-NODEP%.
4627 * m4/depend.m4: Substitute am__nodep as '_no', so the second
4628 verbose-variable will always expand to an empty string, if
4629 dependencies are enabled.
4630 * tests/silent5.test: Also test --disable-dependency-tracking;
4631 also test per-target flags for non-C language files.
4632 * tests/silent9.test: New test, like silent4.test but disable
4633 dependency tracking.
4634 * tests/Makefile.am: Adjust.
4635 * NEWS, THANKS: Update.
4636 Report by Dmitry V. Levin <ldv@altlinux.org>.
4638 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
4640 Extend test on `nostdinc' automake option.
4641 * tests/nostdinc.test: Enable `errexit' shell flag. Related and
4642 unrelated minor changes. Make the grepping of the generated
4643 Makefile.in slightly stricter. Generate and run configure, so that
4644 the generated Makefile can be grepped too.
4646 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4648 Make gnupload portable to EBCDIC hosts.
4649 * lib/gnupload: Use literal newline as argument for 'tr' rather
4650 than \015, for EBCDIC hosts. Also, avoid unportable nested
4651 double-quotes and backquotes.
4653 Report from Eric Blake and Steve Goetze via gnulib.
4655 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
4657 Fix Autoconf version required by Automake's configure.
4658 Automake configure script used to tell that automake required
4659 autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
4660 and if that was not found, it gave an error saying that Automake
4661 required configure 2.61a-341 or later. This change should
4662 eliminate such inconsistencies.
4663 * configure.ac ($required_autoconf_version): New variable.
4666 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4668 Fix unportable sed script in maintainer-check test.
4669 * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
4670 not contain semicolon after 'b' or brace commands, for NetBSD.
4672 Wildcards are not portable to NetBSD make.
4673 * doc/automake.texi (Wildcards): Document portability issue.
4674 * tests/extra10.test, tests/extra11.test, tests/extra12.test:
4677 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
4679 Make test for configure.in vs. configure.ac stricter.
4680 * tests/configure.test: Use a configure.in file that provokes
4681 an automake error, to ensure configure.ac is preferred.
4683 Avoid possible false negatives in dejagnu7.test.
4684 * tests/dejagnu7.test: Enable shell `errexit' flag. Also, avoid
4685 unportable use of fgrep option `-e'.
4687 Fix conflnk3.test to work with Solaris/Heirloom Sh.
4688 * tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
4689 instead of respectively `test -e FILE' and `test ! -e FILE',
4690 since Solaris Sh doesn't grok the latter. Do not SKIP the test
4691 if the shell doesn't support `test -e'.
4693 2010-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4696 * doc/automake.texi (Simple Tests using parallel-tests): Add
4697 missing closing parenthesis.
4699 Fix leftover call to removed function macros_dump.
4700 * automake.in (read_main_am_file): Call variables_dump, not
4701 macros_dump. Print actual error before list of variables.
4703 2010-04-25 Stefano Lattarini <stefano.lattarini@gmail.com>
4705 Minor improvements in comments of test `silent3.test'.
4706 * tests/silent3.test: Tell to keep it in sync with `silent9.test'
4709 2010-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4711 testsuite: ensure verbose printing of captured output.
4712 * tests/acloca14.test, tests/acloca18.test, tests/aclocal.test,
4713 tests/fort2.test, tests/help.test, tests/missing3.test,
4714 tests/missing6.test: Print captured stdout or stderr before
4717 2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
4719 Make test badopt.test stricter (by enabling `set -e').
4720 * tests/badopt.test: Add call to `set -e'. Due to this change,
4721 an unexpected failure in the call to `$ACLOCAL' (whose outcome
4722 was previously unchecked) would cause the whole test to fail.
4723 Also, bumped the copyright years.
4725 Make test for configure.in vs. configure.ac stricter.
4726 * tests/configure.test: Use a configure.in file that provokes
4727 an automake error, to ensure configure.ac is preferred.
4729 Use `set -e' in confsub.test (avoids possible false negatives).
4730 * tests/confsub.test: Enable shell `errexit' flag, and related
4731 changes (this helps avoiding some possible minor false negatives).
4732 Also, bumped copyright years.
4734 2010-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4736 Fix -Werror handling for presence of configure.in and configure.ac.
4737 * lib/Automake/Variable.pm (Automake::Variable): Do not initialize
4738 $configure_ac at the global level, before command-line arguments
4740 (require_variables): Initialize it here.
4741 * tests/configure.test: New test.
4742 * tests/Makefile.am: Update.
4743 Report by Stefano Lattarini.
4745 2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
4747 Avoid possible false negatives in confh5.test.
4748 * tests/confh5.test: Enable shell `errexit' flag, and bumped
4749 copyright years. Due to this change, any unexpected failure
4750 in calls to $ACLOCAL, $AUTOMAKE, $AUTOCONF or $AUTOHEADER, or
4751 a failure in grepping expected text in output files should now
4752 cause the whole test to fail.
4754 2010-04-17 Stefano Lattarini <stefano.lattarini@gmail.com>
4756 Fixed typo in POD documentation of Automake::Channels.
4757 * lib/Automake/Channels.pm: Fixed typo in POD documentation:
4758 @<...> was used instead of C<...>.
4760 2010-04-14 Stefano Lattarini <stefano.lattarini@gmail.com>
4762 Refactor tests on Automake TESTS color output.
4763 * tests/color.test: Tests using the expect program moved out to...
4764 * tests/color2.test: ... this new file.
4765 * tests/Makefile.am (TESTS): Extended accordingly.
4767 2010-04-12 Stefano Lattarini <stefano.lattarini@gmail.com>
4769 Fix typos in comments in test confh5.test
4770 * tests/confh5.test: Fix a couple of typos in comments.
4772 Avoid possible false negatives in canon-name.test.
4773 * tests/canon-name.test: Enable shell `errexit' flag. Improve
4776 2010-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4778 Fix per-Makefile.am setting of -Werror.
4779 Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
4780 Makefile.am would carry over to other Makefile.am files
4781 treated afterwards by the same thread, causing inconsistent
4782 and unstable exit status values.
4783 * lib/Automake/Channels.pm (dup_channel_setup)
4784 (drop_channel_setup): Save and restore the setting of
4785 $warnings_are_errors.
4786 * tests/werror3.test: New test.
4787 * tests/Makefile.am: Adjust.
4790 2010-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
4792 Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
4793 * tests/confh5.test: In the generated Makefile.am: do not use
4794 `test ! -e FILE' to check for the non-existence of a file, since
4795 that is not supported by Solaris/Heirloom Sh.
4797 Make test `aclocal3.test' stricter.
4798 * tests/aclocal3.test: Add call to `set -e'. Fail if $ACLOCAL
4799 succeds unexpectedly.
4801 Add tests checking that symlinks are resolved by `make dist'.
4802 * tests/distlinks.test: New test.
4803 * tests/Makefile.am (TESTS): Updated accordingly.
4804 Suggested by observations from Ralf Wildenhues.
4806 2010-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4808 Use -9 for maximum xz compression with dist-xz.
4809 * lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
4810 * NEWS, THANKS: Update.
4811 Report by Pavel Sanda.
4813 2010-03-30 Stefano Lattarini <stefano.lattarini@gmail.com>
4815 Avoid an unportable use of `$status' shell variable.
4816 * Makefile.am (path-check): Don't use the `$status' shell variable
4817 in the target's rules, as it's special in Zsh (equivalent to `$?',
4820 Avoid another use of `chmod -R'.
4821 * Makefile.am (path-check): To be safe, do not use `chmod -R' on
4822 $(distdir) before removing it (as Solaris `chmod -R' touches
4823 symlink targets). Instead, use the cleanup strategy used in
4826 2010-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4828 Remove uses of @acronym and @sc.
4829 * doc/automake.texi (Public Macros, Limitations on File Names):
4830 Remove all usage of @acronym and @sc in the manual.
4831 Suggested by Karl Berry.
4833 2010-03-13 Karl Berry <karl@freefriends.org>
4835 GNU hello uses fdl.texi, not gpl.texi.
4836 * doc/automake.texi (Texinfo): Adjust example to upstream
4839 2010-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4841 Formatting cleanups in macro comments.
4842 * automake.in, lib/Automake/Channels.pm,
4843 lib/Automake/FileUtils.pm, lib/Automake/Options.pm,
4844 lib/Automake/Variable.pm, lib/Automake/XFile.pm,
4845 m4/options.m4, m4/substnot.m4: Fix macro comment format.
4847 2010-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
4848 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4850 Avoid generation of `tests/defs-p' file.
4851 * tests/defs.in: In the generated `configure.in' snippet: call
4852 `AM_INIT_AUTOMAKE' with the `parallel-tests' option if the shell
4853 variable `parallel_tests' is set to `yes'.
4854 * tests/Makefile.am (defs-p): Target removed.
4855 (check_SCRIPTS): Removed `defs-p'.
4856 (clean-local-check): Do not unlink `defs-p' anymore.
4857 ($(parallel_tests)): Transformation rules for the test scripts
4859 * tests/gen-parallel-tests: Selection rules for the test
4861 * tests/parallel-tests.test: Set `$parallel_tests' to `yes'
4862 then include `./defs' (rather than simply including `./defs-p').
4863 * tests/parallel-tests2.test: Likewise.
4864 * tests/parallel-tests3.test: Likewise.
4865 * tests/parallel-tests4.test: Likewise.
4866 * tests/parallel-tests5.test: Likewise.
4867 * tests/parallel-tests6.test: Likewise.
4868 * tests/parallel-tests7.test: Likewise.
4869 * tests/parallel-tests8.test: Likewise.
4870 * tests/parallel-tests9.test: Likewise.
4871 * tests/parallel-tests10.test: Likewise.
4872 * tests/README (Section "Writing Test Cases" subsection "Do"):
4873 Adjusted the parts referring to tests checking `parallel-tests'
4874 behaviour. Some other minor related improvements.
4875 * tests/.gitignore (defs-p): Removed.
4877 2010-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
4879 Remove redundant unset of variable TESTS from some test scripts.
4880 * tests/color.test: Do not unset the `TESTS' variable, as it's
4881 already unset in the `defs' file.
4882 * tests/check5.test: Likewise.
4883 * tests/check8.test: Likewise.
4884 * tests/check9.test: Likewise.
4885 * tests/check10.test: Likewise.
4886 * tests/check11.test: Likewise.
4887 * tests/parallel-tests.test: Likewise.
4888 * tests/parallel-tests3.test: Likewise.
4889 * tests/parallel-tests4.test: Likewise.
4890 * tests/parallel-tests5.test: Likewise.
4891 * tests/parallel-tests6.test: Likewise.
4892 * tests/parallel-tests7.test: Likewise.
4894 2010-02-22 Karl Berry <karl@gnu.org>
4896 Improve help message of mdate-sh.
4897 * mdate-sh: mention actual output format in help message.
4899 2010-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4901 Deprecate dist-lzma in favor of dist-xz.
4902 * doc/automake.texi (The Types of Distributions, Options):
4903 Adjust text to reflect renaming of lzma to xz.
4905 Missing deprecation noted by Antonio Diaz Diaz.
4907 2010-02-20 Stefano Lattarini <stefano.lattarini@gmail.com>
4909 Add tests about support of wildcards in EXTRA_DIST.
4910 * tests/extra10.test: New test, check basic support of wildcards
4912 * tests/extra11.test: New test, check more complex usage of
4913 wildcards in EXTRA_DIST.
4914 * tests/extra12.test: New test, check usage of wildcards in
4915 EXTRA_DIST when $builddir != $srcdir.
4916 * tests/Makefile.am (TESTS): Updated accordingly.
4917 Necessity of these new tests suggested by Braden McDaniel
4918 and Ralf Wildenhues.
4920 2010-02-08 Simon Josefsson <simon@josefsson.org>
4922 Fix copyright statement in gnupload script.
4923 * lib/gnupload: Fix copyright statement.
4925 2010-02-06 Dmitry V. Levin <ldv@altlinux.org> (tiny change)
4926 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4928 Fix exit status of signal handlers in shell scripts.
4929 The value of `$?' on entrance to signal handlers in shell scripts
4930 cannot be relied upon, so set the exit code explicitly to
4932 * lib/am/check.am (am__check_pre): Use `exit 143' in signal handler.
4933 * lib/elisp-comp: Likewise.
4934 * lib/install-sh: Likewise.
4935 * lib/ylwrap: Likewise. Also, fix script to trap signal 13, not 3.
4936 * NEWS, THANKS: Update.
4937 Bug report, analysis, and initial patch by Dmitry V. Levin.
4939 2010-02-06 Karl Berry <karl@gnu.org>
4941 Improve gnupload usage text.
4942 * gnupload (usage): Shorten to make more likely to fit on a tty
4943 line. Mention CMD in the synopsis. With ..., plural is implied.
4945 2010-01-28 Christos Kontas <xakon@yahoo.com> (tiny change)
4947 Fix some typos in the manual
4948 * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
4950 2010-01-17 Stefano Lattarini <stefano.lattarini@gmail.com>
4952 Slighty improve tests acoutbs.test and acoutbs2.test.
4953 * tests/acoutbs2.test: Enable `errexit' shell flag. Check that
4954 autoconf and configure work, that the file `zot' is created by
4955 configure, and that no file containing a backslash in its name is
4957 * tests/acoutbs.test: Likewise, plus updated copyright years.
4959 Fix test acoutbs2.test.
4960 * tests/acoutbs2: In the generated configure.in: add proper calls
4961 to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
4962 PACKAGE and VERSION. Add a call to aclocal before calling automake.
4963 Updated copyright years.
4964 * tests/Makefile.am (XFAIL_TESTS): Removed acoutbs2.test.
4966 Add forgotten test scripts to $(TESTS).
4967 * tests/Makefile.am (TESTS): Added test scripts present on the
4968 filesystem, which were erroneously left out from $(TESTS):
4969 acoutbs2.test, badopt.test, extra2.test.
4970 (XFAIL_TESTS): Added acoutbs2.test.
4972 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4974 Sync auxiliary files from upstream.
4975 * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub:
4978 Bump copyright years.
4979 * aclocal.in (write_aclocal, version): Bump copyright years.
4980 * automake.in (gen_copyright, version): Likewise.
4981 * doc/automake.texi: Likewise.
4984 * ChangeLog.09: New file, rotated from ...
4985 * ChangeLog: ... here.
4986 * Makefile.am (EXTRA_DIST): Distribute ChangeLog.09.
4990 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
4992 Copying and distribution of this file, with or without modification, are
4993 permitted provided the copyright notice and this notice are preserved.