1 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
3 * automake.in (check_user_variables): New function, extracted
5 (handle_languages): ... here.
6 (handle_languages, define_compiler_variable, define_link_variable):
8 (handle_single_transform): Check _LIBTOOLFLAGS in
9 addition to other per-target flags for Libtool objects.
10 (handle_libtool): Warn if LIBTOOLFLAGS is defined.
11 * doc/automake.texi (Libtool Flags, Program and Library Variables,
12 Flag Variables Ordering): Document LIBTOOLFLAGS.
13 * tests/libtool7.test: Check basic support for LIBTOOLFLAGS.
14 * tests/libtool8.test: Make sure Automake warns about LIBTOOLFLAGS
16 * tests/subobj9.test: Adjust.
18 2004-12-11 Alexandre Duret-Lutz <adl@gnu.org>
20 * doc/automake.texi (Per-Object Flags): New node.
22 2004-12-09 Alexandre Duret-Lutz <adl@gnu.org>
25 * lib/am/java.am (install-%DIR%JAVA, uninstall-%DIR%JAVA): Do
26 not install *.class if "$(%DIR%_JAVA)" is empty.
27 * tests/java3.test: New file.
28 * tests/Makefile.am (TESTS): Add it.
29 Report from Johannes Nicolai.
31 * doc/automake.texi (Java): Mention dist_ and add an example.
32 * tests/java.test: Do actually compile java files and run distcheck.
34 2004-12-08 Peter O'Gorman <peter@pogma.com>
35 Alexandre Duret-Lutz <adl@gnu.org>
37 * lib/Automake/FileUtils.pm (dir_has_case_matching_file,
38 reset_dir_cache): New functions.
39 * automake.in (handle_dist, require_file_internal): Use them, so
40 that CHANGELOG is not confused with ChangeLog on case-insensitive
41 case-preserving file systems.
42 * tests/hfs.test: New file.
43 * tests/Makefile.am (TESTS): Add hfs.test.
45 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
48 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
49 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
50 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
52 2004-12-05 Toshio Kuratomi <toshio@tiki-lounge.com>
54 * lib/py-compile: Add --destdir switch to py-compile that takes a
55 path argument that is not compiled into the file when byte compiling.
56 * lib/am/python.am: Use the new py-compile arguments to not include
57 DESTDIR in the byte compiled files.
58 * tests/python12.test: Test that DESTDIR won't be byte compiled into
61 2004-12-05 Alexandre Duret-Lutz <adl@gnu.org>
63 * doc/automake.texi (Clean): Typo.
65 * doc/automake.texi: Use @acindex for Autoconf macros, and @vindex
66 for variables (@cvindex was previously used for both). Separate
67 these two indices in the output. Use @code, @file, and @command
68 in @cindex lines wherever appropriate so they render nicely.
70 2004-12-05 Stepan Kasal <kasal@ucw.cz>
72 * doc/automake.texi (renamed objects, CVS): Typos.
74 2004-12-05 Alexandre Duret-Lutz <adl@gnu.org>
76 * doc/automake.texi (Flag Variables Ordering): New section.
77 (User Variables, Program and Library Variables): @xref it.
79 2004-11-24 Alexandre Duret-Lutz <adl@gnu.org>
81 * doc/automake.texi (Conditional Subdirectories): More comments
82 about non-distributed subdirectories.
84 * Makefile.am (maintainer-clean): Check for unescaped @ in manual.
86 2004-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88 * doc/automake.texi (Built sources example): Fix typo.
90 2004-11-22 Alexandre Duret-Lutz <adl@gnu.org>
92 * aclocal.in (parse_arguments): Diagnose abbreviation ambiguous with
94 * automake.in (parse_arguments): Likewise.
95 * tests/aclocal.test, tests/automake.test: Check this.
96 Report from Eric Blake.
98 2004-11-21 Alexandre Duret-Lutz <adl@gnu.org>
100 * automake.in (parse_arguments): Diagnose empty arguments, options
101 with missing argument, and support `--'.
102 * aclocal.in (parse_arguments): Diagnose options with missing
104 * tests/aclocal.test: More checks.
105 * tests/automake.test: New file.
106 * tests/postprog.test: Use `--' for fun.
107 * tests/Makefile.am (TESTS): Add automake.test.
108 Report from Eric Blake.
110 * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Run programs with
111 /dev/null as input, so we do not hang on programs that read their
112 input without supporting --help and --version.
113 * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise for scripts.
114 * tests/gnits2.test: Change scriptnok.sh to cat its input.
115 Report and fix from James Youngman.
117 2004-11-17 Alexandre Duret-Lutz <adl@gnu.org>
119 * aclocal.in (%file_seen): Rename as ...
120 (%file_added): ... this, and move it close to add_file(), the only
121 function that uses it.
123 * aclocal.in (version): Remove initial blank line and reproduce
124 the layout of automake --version. From Art Haas.
126 * aclocal.in (%file_type, FT_USER, FT_AUTOMAKE_SYSTEM): New variables.
127 (scan_m4_dirs): New function, extracted from ...
128 (scan_m4_files): ... here. Call scan_m4_files three times, for each
130 (scan_file): Take a file type argument to update %file_type.
131 (write_aclocal): Do not m4_include files that are not of type FT_USER.
132 * tests/dirlist.test: Make sure m4_include is not used for --acdir
135 * tests/defs.in (testaclocaldir): New variable.
136 * tests/aclocal.test: Use it to fix the test. Report from
139 2004-11-10 Alexandre Duret-Lutz <adl@gnu.org>
141 * m4/python.m4 (AM_PATH_PYTHON): Fix the invocation of
142 AC_PATH_PROGS to correctly define PYTHON as `:' when no interpreter
143 is found (this worked correctly only when a minimal version was
144 passed to AM_PATH_PYTHON). Report from Stepan Kasal.
145 (_AM_PYTHON_INTERPRETER_LIST): Define using m4_define_default,
146 so we can easily override the list from the test suite.
147 * tests/python11.test: New file.
148 * tests/Makefile.am (TESTS): Add python11.test.
150 * doc/automake.texi (Libtool Modules): Make clearer that -module
151 should appear explicitly in _LDFLAGS.
153 2004-11-09 Alexandre Duret-Lutz <adl@gnu.org>
155 * aclocal.in (parse_arguments): Correctly recognize --print-ac-dir.
156 * tests/aclocal.test: Check --print-ac-dir and a unknown option.
158 * aclocal.in (parse_arguments): Fix detection of unexisting default
159 $(datadir)/aclocal. Report from Akim.
161 2004-11-07 Alexandre Duret-Lutz <adl@gnu.org>
163 * aclocal.in ($acdir): Rename as ...
164 (@system_includes): ... this.
165 (@user_includes, @automake_includes): New variables.
166 ($default_acdir, $default_dirlist): Remove.
167 (parse_arguments): Populate @user_includes, @automake_includes, and
168 @system_includes instead of filling a unique @dirlist array.
169 ("MAIN"): Adjust to scan m4 files in @user_includes,
170 @automake_includes, and @system_includes.
172 2004-11-06 Alexandre Duret-Lutz <adl@gnu.org>
174 * aclocal.in (parse_arguments): Correct comment. From Akim.
176 2004-11-04 Alexandre Duret-Lutz <adl@gnu.org>
178 * aclocal.in: Use Automake::ChannelDefs, and adjust all output
179 to be done via `fatal', `msg', `verb', or `prog_error'.
180 (version): New function.
181 (parse_arguments): Rewrite using Getopt::Long, call &version, and
182 honor -W and --warning.
184 (trace_used_macros): Do not trace the first arguments of macros
185 for which we do not need it. This caused failures because of
186 unexpected newlines in the output.
187 * doc/automake.texi (aclocal options): Document -W and --warning.
188 * tests/defs.in (ACLOCAL): Always use -Werror, to catch Perl
189 warnings about uninitialized variables.
191 2004-11-03 Alexandre Duret-Lutz <adl@gnu.org>
193 * tests/defs.in: Do not distinguish VERBOSE=x from
194 VERBOSE=anything_but_x, always turn on shell traces.
196 * aclocal.in (write_aclocal): Make sure $map_traced_defs{$m} exists
197 before using it. Suppress a warning observable in test/acloca16.test.
198 Report from Ralf Wildenhues.
200 2004-11-01 Alexandre Duret-Lutz <adl@gnu.org>
202 * lib/Automake/XFile.pm (lock): Make sure $ENV{'MAKEFLAGS'} exists
203 before inspecting it; this fixes "uninitialized value in
204 concatenation" diagnostics when flock fails.
205 Report from Gary V. Vaughan.
207 * aclocal.in: Use strict and -w. Declare local variables with `my',
208 and get rid of `local'.
209 (scan_m4_files, add_macro): Reindent these functions while we are
212 * lib/config.guess, lib/texinfo.tex: New upstream versions.
214 * doc/automake.texi (LIBOBJS): Spelling and grammar corrections
215 from Ralf Wildenhues.
217 2004-10-31 Alexandre Duret-Lutz <adl@gnu.org>
219 * doc/automake.texi (LIBOBJS): Augment with an example setup.
220 (LTLIBOBJ): Rename as ...
221 (LTLIBOBJS): ... this. Link to LIBOBJS, and mention LTALLOCA.
223 2004-10-25 Alexandre Duret-Lutz <adl@gnu.org>
225 * doc/automake.texi: Untabify, tabs in the examples are poorly
227 * Makefile.am (maintainer-check): Grep tabs in the manual.
229 * tests/comment8.test: Use $MAKE, not make.
231 2004-10-24 Alexandre Duret-Lutz <adl@gnu.org>
233 * tests/distcom3.test: Typo.
235 2004-10-22 Alexandre Duret-Lutz <adl@gnu.org>
237 * doc/automake.texi (Libtool Convenience Libraries): Explain how
238 to force the linker selection.
240 * lib/install-sh: Fix the dirname emulation to ignore trailing
241 slashes, i.e., the direname of `a/b/' is `a', not `a/b/'. This
242 caused `install-sh a/b/' to fail.
243 * tests/instsh2.test: Augment.
244 Report from Пухальский Юрий Андреевич.
246 2004-10-21 Alexandre Duret-Lutz <adl@gnu.org>
248 * automake.in (get_object_extension): The extension to use is know
249 by the caller, and cannot be selected by looking only at the
250 target name. Simplify this function to simply conditionally
251 prepend $U to the given extension.
252 (handle_programs, handle_libraries, handle_ltlibraries): Hard-code
253 the extension to use. This way Automake won't mistake a program
254 named `foo.la' as a libtool library.
255 * tests/primary3.test: New file.
256 * tests/Makefile.am (TESTS): Add primary3.test.
258 2004-10-12 Alexandre Duret-Lutz <adl@gnu.org>
260 * doc/automake.texi (Install): Link to node Extending for examples.
261 (Extending): More comments about install-data-hook vs
262 install-exec-hook, and link to Install.
264 * configure.ac: Export @am_AUTOCONF@.
265 * tests/defs.in (AUTOCONF): Define as @am_AUTOCONF@, not @AUTOCONF@,
266 so the test suite runs `autoconf' and not `missing --run autoconf'.
267 * tests/missing.test, tests/missing2.test: Arrange for missing
268 to be used in front of autoconf even if the user has exported
269 AUTOCONF. This fixes two spurious failures reported by
272 * lib/compile: Handle output.obj in addition to output.o.
273 * tests/compile.test: Check for this.
275 2004-10-11 Alexandre Duret-Lutz <adl@gnu.org>
277 * doc/automake.texi (Sources): Typo, reported by Karl Berry.
279 2004-10-10 Kelley Cook <kcook@gcc.gnu.org> (tiny change)
280 Alexandre Duret-Lutz <adl@gnu.org>
282 * aclocal.in ($ac_defun_rx): Match AC_DEFUN_ONCE.
283 (trace_used_macros): Trace AC_DEFUN_ONCE.
284 * tests/aclocal5.test: Use AC_DEFUN_ONCE.
286 2004-10-10 Stepan Kasal <kasal@ucw.cz> (tiny change)
288 * doc/automake.texi (Extending): Typo.
290 2004-10-10 Martin Waitz <tali@admingilde.org> (tiny change)
292 * m4/as.m4 (AM_PROG_AS): Check dependency tracking mode for CCAS.
293 * automake.in (cppasm): Use the dependency tracking more for CCAS.
294 * doc/automake.texi (Assembly Support): Note that *.S are
295 preprocessed with CPPFLAGS.
297 2004-10-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
299 * automake.in (Languages): Split .s (asm) and .S (cppasm) into
300 separate languages. Make cppasm (Preprocessed Assembler) aware
301 of CPPFLAGS, AM_CPPFLAGS.
302 (handle_languages): Fix typo.
303 (lang_cppasm_rewrite): New function.
305 2004-09-29 Alexandre Duret-Lutz <adl@gnu.org>
307 * tests/subobj9.test: Adjust regexes after previous patch.
309 2004-09-28 Alexandre Duret-Lutz <adl@gnu.org>
311 * automake.in (handle_languages, define_compiler_variable): Output
312 Libtool's --tag= option before --mode=compile, because depcomp use
313 --mode=compile as end marker for libtool arguments.
314 (define_linker_variable): Likewise before --mode=link, for
316 * tests/pr307.test: Make sure dependency files are updated. That
317 was not the case because depcomp thought `--tag=CC' was the
318 compiler to get dependencies from.
319 Report from Пухальский Юрий Андреевич.
321 2004-09-26 Alexandre Duret-Lutz <adl@gnu.org>
323 * configure.ac: Require Perl 5.6.
324 * lib/Automake/Config.in: Require Perl 5.6 (not done in
325 lib/Automake/General.pm because it is shared with Autoconf),
326 and use `our' instead of `use vars'.
327 * aclocal.in (rel2abs): Remove.
328 (scan_configure_dep): Use File::Spec->rel2abs instead.
330 * tests/compile.test, tests/instsh2.test, tests/instspc.test: Use
331 two consecutive spaces in filename instead of one, to catch mistake
332 like `echo $val | ...`.
333 * tests/README: Suggest this.
334 Suggested by Ralf Wildenhues.
336 2004-09-25 Alexandre Duret-Lutz <adl@gnu.org>
338 * doc/automake.texi (Clean): Document -local targets.
340 2004-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
342 * doc/automake.texi: Typos.
344 2004-09-21 Alexandre Duret-Lutz <adl@gnu.org>
346 * doc/automake.texi (Timeline): Typos and other English mistakes
347 reported by Jim and Gary.
349 * lib/Automake/VarDef.pm (append): Strip comments from augmented
351 * tests/comment8.test: New file.
352 * tests/Makefile.am (TESTS): Add comment8.test.
353 Report from Stepan Kasal.
355 2004-09-19 Alexandre Duret-Lutz <adl@gnu.org>
357 * tests/compile.test: Fix rm usage.
359 * INSTALL, lib/INSTALL, lib/config.sub, lib/config.guess,
360 lib/texinfo.tex: New upstream versions.
362 * doc/automake.texi (Timeline): New node. Thanks to Karl and Tom
363 for their comments on a preliminary version of this, Akim for
364 digging out some old mails, and Jason Molenda for sending the note
365 about Automake in Alias to Tom.
366 (Releases): Rename `ac' to `acl', suggested by Akim.
368 2004-09-19 Akim Demaille <akim@epita.fr>
370 * AUTHORS, automake.in, aclocal.in: Add Alexandre Duret-Lutz as
373 2004-09-15 Alexandre Duret-Lutz <adl@gnu.org>
375 * doc/automake.texi (Releases): New node.
377 * doc/automake.texi (Dependencies): Link to Dependency Tracking
379 (Dependency Tracking Evolution): Link to GNU make, Sources (for
380 BUILT_SOURCES), and update the paragraph about the "plan" to
381 inline dependency tracking with gcc3.
383 * doc/automake.texi (History): New node.
384 (Dependency Tracking Evolution): New node, filled with a Texinfo
385 version of Tom Tromey's ``Dependency Tracking in Automake''
386 document, initially published on the Automake homepage on
389 2004-09-10 Alexandre Duret-Lutz <adl@gnu.org>
391 * m4/minuso.m4 (AM_PROG_CC_C_O): Make sure AC_PROG_CC is never
392 called after this macro.
393 * tests/distname.test, tests/subdir5.test, tests/subdir8.test,
394 tests/subobj.test, tests/subobj4.test, tests/subobj5.test,
395 tests/subobj6.test: Adjust.
396 Report from Ralf Wildenhues.
398 * lib/Automake/Channels.pm (_print_message): Handle uniq_part with
400 * automake.in (lang_c_rewrite): Set uniq_part so that the
401 AM_PROG_CC_C_O diagnostic is output only once for subdir objects
402 and only once for objects with per-target flags.
404 * automake.in (lang_c_rewrite): Print files and locations
405 for AM_PROG_CC_C_O errors.
406 (handle_single_transform): Pass $var to &$subr so it can
409 * lib/compile, lib/elisp-comp, lib/install-sh, lib/ylwrap: Use $ret
410 instead of $status which is read-only in Zsh.
412 2004-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
413 Alexandre Duret-Lutz <adl@gnu.org>
415 * lib/compile: Preserve spaces in arguments (for example
416 -DPACKAGE_STRING="foo 0.1").
417 * tests/compile.test: New file.
418 * tests/Makefile.am (TESTS): Add compile.test.
420 2004-09-07 Alexandre Duret-Lutz <adl@gnu.org>
422 * automake.in (handle_clean): Sort rm commands output for
423 mostlyclean-generic, clean-generic, distclean-generic, and
424 maintainer-clean-generic.
425 Report from Bob Friesenhahn.
427 * automake.in (lang_c_rewrite): Do not require AM_PROG_CC_C_O for
429 (handle_single_transform): Pass nonansi_obj to &$subr so
430 lang_c_rewrite can distinguish libtool objects.
431 * tests/libtool7.test: Use subdir-objects without using AM_PROG_CC_C_O.
432 Report from Gary V. Vaughan and Patrick Welche.
434 2004-09-07 Andreas Schwab <schwab@suse.de>
436 * automake.in ($PATH_PATTERN): Add `+'.
438 2004-09-07 Alexandre Duret-Lutz <adl@gnu.org>
440 * tests/missing3.test: New file (check for Paolo's change below).
441 * tests/Makefile.am (TESTS): Add missing3.test.
443 2004-09-07 Paolo Bonzini <bonzini@gnu.org>
445 * missing: Handle all command line options together. Add a
446 separate case statement to detect failed runs, and fail
447 silently there if --help or --version is passed to the program.
449 2004-08-11 Alexandre Duret-Lutz <adl@gnu.org>
451 * lib/config.guess, lib/texinfo.tex: New upstream versions.
454 * configure.ac (pkgvdatadir): Define using "$PACKAGE", not "automake".
457 * lib/am/yacc.am [!%?MORE-THAN-ONE%]: Replace `#line's in y.tab.h too.
458 * tests/yacc7.test: Check this.
460 2004-08-08 Alexandre Duret-Lutz <adl@gnu.org>
462 * lib/Automake/DisjConditions.pm (new): Precompute 'string' and 'conds'
463 in place instead of as a side-effect of calling ->string and ->conds.
464 This saves method-lookup time, simplify ->string and ->conds, and
465 allows to create the object only when necessary.
466 (string, conds): Simplify, now that the result is precomputed.
468 * automake.in (%am_file_cache): New hash.
469 (make_paragraphs): Cache .am files with comments stripped to save
470 some useless input and substitutions.
472 * lib/Automake/Variable.pm (%_primary_dict): New hash.
473 (_new, variable_delete): Update %_primary_dict.
474 (variables): Accept an optional $suffix argument.
475 * automake.in (check_typos, am_primary_prefixes): Use that
476 optional argument to restrict the loops over the variables we are
479 2004-08-06 Alexandre Duret-Lutz <adl@gnu.org>
481 * lib/Automake/Item.pm (def): Rewrite more concisely, it's faster
484 2004-08-05 Alexandre Duret-Lutz <adl@gnu.org>
486 Speed up make_paragraphs.
487 * automake.in (handle_languages): Always define SUBDIROBJ,
488 DERIVED-EXT, and DIST_SOURCE, because the new transform() will
489 abort on unknown tokens.
490 (transform): Rewrite with different semantics.
491 (make_paragraphs): Make a single pass over the paragraph to
492 transform all template tokens instead of doing as much passes as
495 * automake.in ($libtool_new_api): New variable.
496 (handle_libtool): Do not libtool's aux files if $libtool_new_api.
497 (scan_autoconf_traces) <LT_SUPPORTED_TAG>: Set $libtool_new_api.
498 (scan_autoconf_traces) <AC_REQUIRE_AUX_FILE>: Remember only the
499 first location for required files.
501 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
503 Support AC_REQUIRE_AUX_FILE, and fix requirement of AM_PROG_CC_C_O.
504 * automake.in (%required_aux_file): New hash.
505 (handle_single_transform, lang_c_rewrite): Do not explicitly
506 require 'compile', this is now an internal detail of
508 (scan_autoconf_traces): Trace AC_REQUIRE_AUX_FILE and fill
510 (scan_autoconf_files): Require all %required_aux_file instead
511 of explicitly requiring install-sh and missing.
512 (generate_makefile): Do not require config.sub and config.guess.
513 (handle_single_transform): Pass $have_per_exec_flags to
515 * configure.ac, m4/init.m4: Require Autoconf 2.59a.
516 * doc/automake.texi (Optional): Document AC_REQUIRE_AUX_FILE.
517 (Program and Library Variables, Options, Public macros):
518 AM_PROG_CC_C_O is required when per-target flags or subdir-objects
519 are used with C sources.
520 * m4/minuso.m4: Require `compile' using AC_REQUIRE_AUX_FILE.
521 * m4/missing.m4: Require `missing' similarly.
522 * tests/acsubst2.test, tests/distcom2.test, tests/distcom6.test,
523 tests/specflg.test, tests/specflg2.test, tests/specflg3.test,
524 tests/specflg6.test, tests/specflg7.test, tests/specflg8.test,
525 tests/specflg9.test, tests/subobj7.test, tests/target-cflags.test,
526 tests/yacc6.test: Fix to use AM_PROG_CC_C_O.
528 2004-08-03 Alexandre Duret-Lutz <adl@gnu.org>
530 * automake.in (yacc_lex_finish_helper): Fix definition of YLWRAP
531 when ylwrap is installed in a default aux dir found in a parent
533 * tests/subpkg.test: Augment to check that YLWRAP is installed
535 * doc/automake.texi (Yacc and Lex): ylwrap is not sought is the
537 Report from Norman Gray.
539 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
541 * doc/automake.texi (Optional): Update documentation for
542 AC_CANONICAL_BUILD, AC_CANONICAL_HOST, and AC_CANONICAL_TARGET.
544 * automake.in (AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): Replace by ...
545 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET): ... these.
546 (scan_autoconf_traces): Scan for the latter three macros instead of
548 (make_paragraphs): Adjust definitions of %BUILD%, %HOST%, and %TARGET%.
549 * tests/hosts.test: New file.
550 * tests/Makefile.am (TESTS): Add hosts.test.
551 Report and test case from Norman Gray.
553 2004-08-01 Alexandre Duret-Lutz <adl@gnu.org>
555 * aclocal.in (scan_file): Update "#Extending%20aclocal" URL, makeinfo
556 4.7 now outputs "#Extending-aclocal".
558 2004-08-01 Alexandre Duret-Lutz <adl@gnu.org>
559 Derek R. Price <derek@ximbiot.com>
561 Disable Lex and Yacc rules whenever possible if AM_MAINTAINER_MODE
562 is used and maintainer-mode disabled.
563 * automake.in (Automake::struct): Define nodist_specific.
564 Set it in languages yacc, yaccxx, lex, and lexxx.
565 (register_language): Default nodist_specific to 0.
566 (handle_single_transform): Honor nodist_specific.
567 * lib/am/yacc.am (am__skipyacc): Define this in maintainer mode.
568 (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skipyacc) to disable these
570 * lib/am/lex.am (am__skiplex): Define this in maintainer mode.
571 (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skiplex) to disable these
573 * tests/mmodely.test: New file.
574 * tests/pr204.test: Augment to check AM_MAINTAINER_MODE and nodist_
576 * tests/Makefile.am (TESTS): ADd mmodely.test.
577 * doc/automake.texi (Yacc and Lex): Note dependence on maintainer mode.
579 2004-07-28 Alexandre Duret-Lutz <adl@gnu.org>
581 * configure.ac, NEWS: Bump version to 1.9a.
583 * configure.ac, NEWS: Bump version to 1.9.
585 * automake.in (generate_makefile): Update misleading comment about
588 * lib/texinfo.tex: New upstream version.
590 2004-07-25 Alexandre Duret-Lutz <adl@gnu.org>
592 * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Remove `.' from the mkdir_p
593 definition, it causes `make install' to fails for user with no
594 right to write in the source-tree.
595 * automake.in (handle_configure): Do not use mkdir_p in the
596 definition for $(mkdir_p).
597 Report from Harlan Stenn.
599 * lib/am/texi-vers.am (%STAMPVTI%): Typo in comment.
601 2004-07-22 Alexandre Duret-Lutz <adl@gnu.org>
603 * doc/automake.texi (Libtool Modules): Typo in example.
604 Report from Ulrich Eckhardt.
606 2004-07-21 Andreas Schwab <schwab@suse.de> (tiny change)
608 * automake.in (check_directory): Quote $dir in regexp.
610 2004-07-17 Alexandre Duret-Lutz <adl@gnu.org>
612 * configure.ac, NEWS: Bump version to 1.8e.
614 * configure.ac, NEWS: Bump version to 1.8d.
616 * lib/config-ml.in, lib/config.sub, lib/config.guess, lib/texinfo.tex:
617 New upstream versions.
619 * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
620 ?!GENERIC?%DEST_PREFIX%.html): Use $(X), not ${X}.
622 * tests/installdir.test: installdirs-local should appear three times,
623 since the change from 2004-07-11 will make it PHONY.
625 * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now
626 that it is always defined. This is less confusing for users
627 reading the generated Makefiles.
628 * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
630 * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
631 ?!GENERIC?%DEST_PREFIX%.html): Output .htp, and then rename to .html
632 on success. In case the target is a directory, this ensures its
633 time stamp is updated and the no files are left over inside.
634 * tests/txinfo21.test: Augment to test missing timestamp update
635 reported by Akim Demaille.
637 * doc/automake.texi (Top level): Rename as ...
638 (Directories): ... this, and split into ...
639 (Subdirectories, Conditional Subdirectories): ... these.
640 (Subdirectories): Illustrate the use of `.'.
641 (Conditional Subdirectories): Describe SUBDIRS and DIST_SUBDIRS
642 before the example. Append a discussion about non-configured
643 conditional directories.
644 (Alternative): Move as a child of Directories.
645 (Subpackages): New section.
646 (Dist): Adjust links to Subdirectories, a Subpackages.
647 (Third-Party Makefiles): Link to Conditional Subdirectories.
649 2004-07-14 Alexandre Duret-Lutz <adl@gnu.org>
651 * automake.in (target_hook): Accept %transform as last argument.
652 (handle_single_transform): Pass %transform to target_hook.
653 (handle_source_transform): Define DIST_SOURCE to tell whether
654 a the source of a file is distributed or not.
655 (lang_yacc_target_hook): Check DIST_SOURCE, and do not distribute
656 the generated header if the .y source is not distributed.
657 * tests/pr204.test: Use AM_YFLAGS = -d and make sure generated
658 headers are not distributed.
660 2004-07-12 Simon Josefsson <jas@extundo.com> (tiny change)
662 * doc/automake.texi (Options): Improve ustar file name length
663 discussion. Reference tar manual.
665 2004-07-12 Ray Simard <rhs.techlists@sylvan-glade.com> (tiny change)
667 * lib/Automake/Variable.pm (define): Fix precondition check.
669 2004-07-11 Alexandre Duret-Lutz <adl@gnu.org>
672 Support for conditionally defined -hook and -local rules.
673 * automake.in (user_phony_rule): New function.
674 (handle_dist, handle_install, handle_all, do_check_merge_target,
675 handle_factored_dependencies): Use user_phony_rule before
676 adding a user -hook or -local rule as a dependency to ensure
677 it is always defined an phony.
678 * tests/cond37.test, tests/condhook.test: New files.
679 * tests/Makefile.am (TESTS): Add them.
680 Report from Simon Josefsson and Nik A. Melchior.
682 2004-07-05 Paul Eggert <eggert@cs.ucla.edu>
684 * doc/automake.texi (Install): Warn that you should create
685 /tmp/staging before installing into it, to avoid security problems.
686 * lib/install-sh: Remove support for -b= and -t= options; this
687 has been moribund for a decade.
688 Add support for -t and -T options (new in coreutils install).
689 -c option now does nothing (the default is to copy), for
690 compatibility with BSD and coreutils 'install'.
691 Fix usage message; it referred to nonexistent variables.
692 Don't assume 'lasterr' is unset in environment.
693 * tests/instsh2.test: Don't assume that install-sh without -c
694 moves (it now copies). Add tests for new -t and -T options.
696 2004-06-16 Alexandre Duret-Lutz <adl@gnu.org>
698 For Debian Bug#254372:
699 * doc/automake.texi (Invoking aclocal): Rewrite the paragraph
700 explaining m4_include is used for relative files.
702 2004-06-10 Alexandre Duret-Lutz <adl@gnu.org>
704 For Debian Bug #251820:
705 * aclocal.in (scan_file): Keep track of the location where each
706 file is included, and display it when reporting a missing file.
707 Pass this location to scan_file as a second argument.
708 (scan_m4_files): Adjust calls to scan_file.
709 * tests/acloca14.test: Add a test for this diagnostic.
711 2004-06-07 Alexandre Duret-Lutz <adl@gnu.org>
713 * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools
714 so it works with Solaris and Tru64 /bin/sh.
715 Report from Nicolas Joly.
717 2004-06-06 Alexandre Duret-Lutz <adl@gnu.org>
719 * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a
720 bug in NetBSD /bin/sh.
721 Report from Nicolas Joly.
723 2004-06-03 Alexandre Duret-Lutz <adl@gnu.org>
725 * tests/defs.in (required=icc): Use `-V -help' instead of
726 `-V -dryrun'. icc 8.0 fails on the latter.
727 * tests/depcomp5.test: Require depmode=icc for icc 7.x, and
728 depmod=gcc otherwise.
729 Report from Ralf Wildenhues.
731 * lib/am/clean.am (distclean-generic): Do no
732 `rm -f $(CONFIG_CLEAN_FILES)' if `$(CONFIG_CLEAN_FILES)' is empty.
733 Report from Nicolas Joly.
735 2004-05-31 Alexandre Duret-Lutz <adl@gnu.org>
737 * NEWS: Make clearer that we do not output partial Makefile.ins on
739 Suggested by Akim Demaille.
741 * lib/depcomp (tru64) [libtool]: Use $dir$base.o.d instead
742 of $dir.libs/$base.o.d. Libtool 1.5 causes both to be output,
743 and we will clean the second automatically during distclean.
744 Using the latter and leaving the former as we did before cause
745 "files left in build directory" failures during distcheck.
746 Suggested by Nicolas Joly.
748 * doc/automake.texi (Built sources example): Explain what
749 nodist_foo_SOURCES is (not) useful to, and use it in all the
751 (Tags): Mention nodist_noinst_HEADERS and nodist_prog_SOURCES.
752 Suggested by Akim Demaille.
754 2004-05-23 Alexandre Duret-Lutz <adl@gnu.org>
756 * configure.ac, NEWS: Bump version to 1.8c.
758 * configure.ac, NEWS: Bump version to 1.8b.
760 * m4/tar.m4 (_AM_PROG_TAR) <cpio>: Specify -o and -i option first,
761 by POSIX; and use option -d in am_untar.
763 * tests/defs.in (PATH): Export it.
765 * lib/am/multilib.am: Add $(MAKE) comments to multido and
766 multiclean lines, to enable parallel make. Based on a patch
767 by Alexandre Oliva applied to newlib on 2003-10-15.
769 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
771 * automake.in (scan_autoconf_traces): Trace for LT_SUPPORTED_TAG
772 instead of AC_LIBTOOL_TAGS, since that how CVS Libtool has been
774 * tests/libtool3.test: Do not grep for --tag=CC, since CVS
775 Libtool (unlike Libtool 1.5) does not has any CC tag.
777 * tests/tar2.test: Skip the test if no pax archiver were found.
779 * NEWS: Sync with branch-1-8, and reorganize current entry.
781 * automake.in (handle_libraries): Make the diagnostic about
782 non standard libraries a warning in foreign packages. This
783 is already the case in handle_ltlibraries.
784 (handle_libraries, handle_ltlibraries): Suggest a standard
785 library name in the diagnostic, to help newcomers.
786 * tests/stdlib.test, tests/stdlib2.test: Check for these
789 Check directory names for unportable names. Shaking the code
790 to check this also led to the removal of the no-"/"-in-SUBDIRS
791 restriction, and a fix to _do_recursive_traversal.
793 * automake.in (check_directory): New function extracted from
794 handle_subdirs, and augmented to check for reserved W32/DOS name.
795 (check_directories_in_var): New function.
796 (handle_subdirs): Call check_directories_in_var. Doing so also
797 suppress the restriction that SUBDIRS should not contain slashes.
798 (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory
799 to ensure the argument exists and is safe.
800 * doc/automake.texi (Top level): Do not say that src/subdir
801 cannot be put in SUBDIRS.
802 (Dist): Mention that distdir and top_distdir can be absolute.
803 * lib/Automake/Variable.pm (_do_recursive_traversal) Support
804 undefined $fun_collect, and fix two bugs introduced with
805 skip_ac_subst on 2004-03-07.
806 * lib/am/distdir.am (distdir): Use absolute distdir and
807 top_distdir when recursing, because we can no longer prepend only
808 `..' in case of SUBDIRS with `/'.
809 * tests/auxdir4.test, tests/subdir9.test: New files.
810 * tests/Makefile.am (TESTS): Add auxdir4.test.
811 * tests/cond2.test, tests/subdir7.test: Augment to check location
814 2004-05-21 Eric Blake <ebb9@byu.net> (tiny changes)
816 * tests/txinfo22.test (AC_CONFIG_AUX_DIR): Use aux1, not aux, for
817 cygwin compatibility.
818 * tests/yacc6.test (AC_CONFIG_AUX_DIR): Likewise.
820 * tests/conflnk3.test: Isolate checking for working `test -e' into
821 a subshell, to skip this test on broken /bin/sh of solaris.
823 2004-05-17 Alexandre Duret-Lutz <adl@gnu.org>
825 * m4/cond.m4 (AM_CONDITIONAL): Double-quote diagnostic.
826 * tests/condd.test: Define a macro with the same name as a
828 * tests/pr220.test: Modernize, and make sure the diagnostics
829 contains the macro name.
830 Report from Volker Boerchers.
832 2004-05-16 Alexandre Duret-Lutz <adl@gnu.org>
834 * lib/texinfo.tex: New upstream version.
836 2004-05-15 Alexandre Duret-Lutz <adl@gnu.org>
838 * automake.in (handle_dist): Always define DIST_SUBDIRS, even when
839 the no-dist or cygnus options are used.
840 * tests/clean2.test: New file.
841 * tests/Makefile.am (TESTS): Add clean2.test.
842 Report from Daniel Jacobowitz.
844 * aclocal.in (add_macro): Do not error out on undefined required
845 macros. We are not sure they are really used, and Autoconf
846 already diagnoses them.
847 (scan_configure_dep): Diagnose missing AM_ macros as warnings rather
849 * tests/aclocal3.test, tests/ammissing.test: Adjust to expect a
850 warning instead of an error.
851 * tests/aclocal8.test: AC_REQUIRE an undefined macro in an unused
852 macro, and ensure aclocal works anyway.
853 * tests/acloca17.test: New file.
854 * tests/error.test: Delete, superseded by tests/acloca17.test.
855 * tests/Makefile.am (TESTS): Add acloca17.test and remove error.test.
856 Report from Jim Meyering.
858 * lib/am/texibuild.am (?!GENERIC_INFO?%DEST_INFO_PREFIX%%DEST_SUFFIX%):
859 Fold a few lines to reduce the output by 5 lines.
860 Suggested by Karl Berry.
862 * automake.in (parse_arguments, MAIN): Give more precise
863 diagnostics when no input file is found.
864 * tests/output5.test: Adjust.
865 Suggested by Jens Petersen.
867 2004-05-14 Alexandre Duret-Lutz <adl@gnu.org>
869 * lib/am/libs.am (AR, ARFLAGS): Move these definition ...
870 * automake.in (handle_libraries): ... here, so that they are
871 output even for EXTRA_LIBRARIES.
872 * tests/ar2.test: New file.
873 * tests/Makefile.am (TESTS): Add it.
874 Report from Kevin Ryde.
876 2004-05-13 Alexandre Duret-Lutz <adl@gnu.org>
878 * automake.in (generate_makefile): Do not output Makefile.in on
880 * tests/werror2.test: New file.
881 * tests/Makefile.am (TESTS): Add werror2.test.
882 * tests/substtarg.test, tests/cond36.test, tests/backsl4.test:
883 Adjust to run automake with -Wno-error when the output is expected
884 in spite of the error.
885 Report from Harlan Stenn.
887 * doc/automake.texi (Program and Library Variables): Remove
888 doubled word in footnote.
890 * automake.in (handle_source_transform): Also check for a
891 $(srcdir)/old_source rule when computing the default source name.
892 Propagate this $(srcdir) prefix in Automake variables.
893 * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to
894 $(srcdir)/zoo_d_old2_la.c. This fixes another failure with BSD Make.
896 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
898 * Makefile.am (fetch): Work even with FreeBSD "make", which
899 uses sh -e and thus errors-out if a simple-command fails.
900 * lib/am/check.am (check-TESTS): Likewise.
901 * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Likewise.
902 * lib/am/tags.am (TAGS): Likewise.
904 2004-05-13 Alexandre Duret-Lutz <adl@gnu.org>
906 * tests/lex3.test, tests/yacc6.test: Require GNU Make.
907 Fixing these for BSD Make requires invasive changes (lexers and
908 parsers must be built into $srcdir, and--most annoyingly--all
909 references to parse.h must be changed to $(srcdir)/parse.h).
910 Report from Mark D. Baushke.
912 2004-05-10 Alexandre Duret-Lutz <adl@gnu.org>
914 * tests/defs.in (GNUmake): Grep for GNU to parry FreeBSD make.
915 Report from Mark D. Baushke.
917 2004-04-25 Alexandre Duret-Lutz <adl@gnu.org>
919 * lib/texinfo.tex: New upstream version.
921 * lib/depcomp (tru64): Clarify comments. Thanks to Nicolas Joly.
923 * doc/automake.texi (Headers): Revamp.
925 2004-04-24 Alexandre Duret-Lutz <adl@gnu.org>
927 * automake.in (check_typos): Clarify the diagnostic.
928 * tests/warnopts.test: Adjust.
930 * lib/Automake/VarDef.pm (append): Turn VAR_ASIS variables into
931 VAR_PRETTY variables to work around make implementation with
932 limited line length, such as OSF1/Tru64 make.
933 * tests/longline.test: New file.
934 * tests/Makefile.am (TESTS): Add it.
935 * tests/pluseq3.test, tests/pluseq8.test: Adjust.
936 Report from Simon Josefsson.
938 * lib/am/tags.am (TAGS): Pass `.' to Exuberant Ctags if
939 --etags-include is used but no other files are supplied, so it
940 creates the TAGS file anyway.
941 Report from Akim Demaille.
943 * lib/depcomp (tru64) [libtool]: Nicolas Joly reported on
944 2002-06-12 that dependencies were output in $dir.libs/$base.lo.d.
945 Teun Burgers reported on 2004-03-30 they were in
946 $dir.libs/$base.o.d. Try both.
948 2004-04-23 Alexandre Duret-Lutz <adl@gnu.org>
951 Introduce option filename-length-max=99.
952 * doc/automake.texi (Options): Document it.
953 * configure.ac (AM_INIT_AUTOMAKE): Use it.
954 * lib/Automake/Options.pm (_process_option_list): Recognize it.
955 * automake.in (handle_dist): Set FILENAME_FILTER.
956 * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long
958 * tests/fn99.test: New file.
959 * tests/Makefile.am (TESTS): Add fn99.test.
961 2004-04-20 Alexandre Duret-Lutz <adl@gnu.org>
964 Introduce options tar-v7, tar-ustar, and tar-pax to select
966 * doc/automake.texi (Options): Document them.
967 * lib/Automake/Options.pm (_process_option_list): Process
969 * lib/am/distdir.am (dist-gzip, dist-bzip2, dist-tarZ, dist,
970 distcheck): Adjust to use am__tar and am__untar.
971 * m4/tar.m4: New file.
972 * m4/Makefile.am (dist_m4data_DATA): Add tar.m4.
973 * m4/init.m4 (AM_INIT_AUTOMAKE): Support the new options
974 and call _AM_PROG_TAR.
975 * tests/tar.test, tests/tar2.test, tests/tar3.test: New files.
976 * tests/Makefile.am (TESTS): Add them.
978 2004-04-18 Alexandre Duret-Lutz <adl@gnu.org>
980 * lib/am/distdir.am (distcheck): Typo in shar decompression.
982 * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
985 2004-04-17 Alexandre Duret-Lutz <adl@gnu.org>
988 * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose
989 calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE.
990 * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test,
991 tests/mdate3.test, tests/multlib.test, tests/reqd2.test,
992 tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test,
993 tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR
994 before AM_INIT_AUTOMAKE.
995 * tests/auxdir3.test: New file (exercise this diagnostic).
996 * tests/Makefile.am (TESTS): Add auxdir3.test.
998 2004-04-15 Alexandre Duret-Lutz <adl@gnu.org>
1000 * aclocal.in (%map_traced_defs): New variable.
1001 (scan_m4_files): Normalize filenames.
1002 (trace_used_macros): Trace for AC_DEFUN and AU_DEFUN, also
1003 ask for the filename and the first argument. Populate
1005 (write_aclocal): Use $map_traced_defs to filter out unused
1007 * tests/acloca16.test: New file.
1008 * tests/Makefile.am (TESTS): Add acloca16.test.
1010 2004-04-12 Alexandre Duret-Lutz <adl@gnu.org>
1012 * automake.in ($automake_needs_to_reprocess_all_files): Remove.
1013 ($automake_will_process_aux_dir): New variable.
1014 (scan_autoconf_traces): Reorder @input_files so that the Makefile
1015 that distributes aux files is processed last. This way we do not
1016 have to process all files twice using
1017 $automake_will_process_aux_dir.
1018 (require_file_internal): Suggest a full run of automake when
1020 (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files.
1021 * tests/distcom7.test: New file.
1022 * tests/reqd2.test: Do not check for the "running more than two"
1024 * tests/Makefile.am (TESTS): Add distcom7.test.
1026 * automake.in (@config_aux_path, $config_aux_dir): Rename as ...
1027 ($config_aux_dir, $am_config_aux_dir): ... these.
1028 ($config_aux_dir_set_in_configure_in): Rename as ...
1029 ($config_aux_dir_set_in_configure_ac): ... this.
1030 (%require_file_found): Rename as ...
1031 (%required_file_not_found): ... this.
1032 (handle_languages, handle_texinfo_helper, handle_dist,
1033 handle_configure, handle_emacs_lisp, handle_python,
1034 scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names.
1035 (scan_autoconf_traces): Call locate_aux_dir.
1036 (locate_aux_dir): New function.
1037 (@require_file_paths): Remove, not used anymore.
1038 (require_file_internal): Look files in only one directory (instead
1039 of @require_file_internal) passed in argument.
1040 (require_file, require_conf_file): Pass the destination directory
1041 to require_file_internal.
1043 Fix for PR automake/416:
1044 * m4/depend.m4 (_AM_DEPENDENCIES): Catch `not supported' ICC 8.0
1046 From Peter Seiderer.
1048 2004-04-10 Andreas Buening <andreas.buening@nexgo.de>
1050 * aclocal.in, automake.in, configure.ac, Makefile.am,
1051 tests/aclocal.in, tests/automake.in, tests/defs.in:
1052 Use PATH_SEPARATOR from autoconf instead of ':'.
1054 2004-04-09 Alexandre Duret-Lutz <adl@gnu.org>
1056 * automake.in (handle_lib_objects): Pass the condition of
1057 the variable definition to handle_LIBOBJS and handle_ALLOCA,
1058 not the aggregated conditions.
1059 * tests/Makefile.am (TESTS): Add libobj14.test.
1060 * tests/libobj14.test: New file.
1061 Report from Bill Davidson.
1063 2004-04-02 Mike Nolta <mike@nolta.net>
1065 Better support for Fortran 9x.
1066 * automake.in: Add "fc" and "ppfc" languages for Fortran 9x.
1067 * doc/automake.texi (Fortran 9x Support): New section.
1068 * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC.
1069 * tests/compile_f90_c_cxx.test: New file.
1070 * tests/ext.test: Add AC_PROG_FC.
1071 * tests/f90only.test: New file.
1072 * tests/link_f90_only.test: New file.
1073 * tests/Makefile.am (TESTS): Add new tests.
1075 2004-04-01 Paul Eggert <eggert@twinsun.com>
1077 * lib/install-sh: If "mv -f" works, use it, and fall back to
1078 the old "test -f" + "rm -f" + "mv" method only if "mv -f" does
1079 not work. This improves performance in the usual case where
1080 "mv -f" works. It also lets us install the "mv" command
1081 without worrying about a small window where "mv" does not
1082 exist (this problem was reported by Raul Nunez de Arenas
1085 2004-03-26 Alexandre Duret-Lutz <adl@gnu.org>
1087 * m4/python.m4 (AM_PATH_PYTHON): Make sure am_display_PYTHON is
1088 set when $PYTHON has been set by the user.
1089 From Esben Haabendal Soerensen.
1091 2004-03-22 Alexandre Duret-Lutz <adl@gnu.org>
1093 * doc/automake.texi (Default _SOURCES): Typo.
1094 (true): Correct _'s placement in example.
1095 Report from Stepan Kasal.
1097 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
1099 Overriding JAVAROOT is legitimate, do not warn about it.
1100 * lib/Automake/Variable.pm (%_silent_variable_override): Add JAVAROOT.
1101 * tests/java2.test: Run automake without -Wno-override.
1102 Report from Simon Josefsson.
1104 2004-03-14 Alexandre Duret-Lutz <adl@gnu.org>
1106 * automake.in (handle_texinfo_helper): Typos in comment.
1108 2004-03-07 Alexandre Duret-Lutz <adl@gnu.org>
1110 * lib/config.guess: New upstream version.
1112 Fix for PR automake/285:
1113 * automake.in (handle_ltlibraries): Keep track of installation
1114 directories for each condition, then define a $(am_TARGET_rpath)
1115 variable to hold the -rpath flags of Libtool libraries conditionally
1116 installed in different directories.
1117 * lib/Automake/DisjConditions.pm (merge): New function.
1118 * tests/libtool6.test: Adjust.
1119 * tests/libtool8.test: New file.
1120 * tests/Makefile.am (TEST): Add libtool8.test.
1122 * lib/Automake/Variable.pm (traverse_recursively,
1123 _do_recursive_traversal): Honor the skip_ac_subst option.
1124 * automake.in (handle_dist): Use skip_ac_subst.
1126 2004-02-29 Alexandre Duret-Lutz <adl@gnu.org>
1128 * Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
1130 * lib/gnupload (Example): Update example.
1132 * lib/config-ml.in, lib/config.guess, lib/config.sub,
1133 lib/texinfo.tex: New upstream versions.
1135 * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
1136 to create numbered dependencies. This fixes a portability issue
1137 when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
1138 Reported by Mark Phillips.
1140 * automake.in (lang_yacc_target_hook): Use Automake::Rule::define
1141 so that rules for the same headers are not output twice.
1142 * lib/Automake/Variable.pm (value_as_list_recursive): Do not
1143 call `return' inside `map'.
1144 * tests/cond30.test: Make sure `a.c' and `b.c' both appear
1146 * tests/cond35.test, tests/cond36.test: New files.
1147 * tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
1148 Report from Roman Fietze.
1151 * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
1152 077 && mkdir' instead of `$(mkdir_p)'. This prevents possible
1153 symlink attacks reported by Stefan Nordhausen.
1155 2004-02-16 Alexandre Duret-Lutz <adl@gnu.org>
1157 * doc/automake.texi (Multiple Outputs): More text, based on
1158 comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.
1160 2004-02-15 Alexandre Duret-Lutz <adl@gnu.org>
1162 * m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
1163 Solaris 8's mkdir is not thread-safe.
1164 * lib/mkinstalldirs: Likewise.
1165 * lib/install-sh: Abort when mkdir fails to create a directory.
1166 Report from Nathanael Nerode.
1168 2004-02-07 Alexandre Duret-Lutz <adl@gnu.org>
1170 * aclocal.in (rel2abs): New function.
1171 (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
1172 the later does was introduced in Perl 5.6 so using it breaks with
1174 Report from Werner John.
1176 2004-02-03 Alexandre Duret-Lutz <adl@gnu.org>
1178 * doc/automake.texi (Future of aclocal): Make clearer that
1179 it's ok to install macros into /usr/share/aclocal/.
1181 2004-02-01 Alexandre Duret-Lutz <adl@gnu.org>
1183 * tests/lisp.test: Delete (pointless).
1184 * tests/Makefile.am (TESTS): Remove lisp.test.
1186 * lib/Automake/Variable.pm (transform_variable_recursively):
1187 Define rewritten variables in all conditions not *covered* by user
1188 definitions, not simply in conditions without a previous
1190 * tests/cond34.test: New file.
1191 * tests/Makefile.am (TESTS): Add cond34.test.
1192 Report from Elena A. Vengerova
1194 * doc/automake.texi (Multiple Outputs): Typo.
1196 * doc/automake.texi (Emacs Lisp): Typos.
1198 Support for conditional _LISP.
1199 * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
1200 from $(am__ELCFILES).
1201 * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
1202 * tests/lisp6.test: New file.
1203 * tests/Makefile.am (TESTS): Add it.
1205 * automake.in (handle_emacs_lisp): Define $(ELCFILES) as
1206 $(am__ELCFILES), and always push it on @all. Do not mention
1208 * lib/am/lisp.am (.el.elc): Rewrite as ...
1209 ($(am__ELCFILES)): ... this, and depend on elc-stamp.
1210 (elc-stamp): Make sure elc-stamp is older that all .elc files, as
1211 explained in the manual entry below.
1213 * doc/automake.texi (Multiple Outputs): New node.
1215 2004-01-31 Alexandre Duret-Lutz <adl@gnu.org>
1217 * m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
1218 * tests/regex.test: New file.
1219 * tests/Makefile.am (TESTS): Add regex.test.
1221 2004-01-28 Alexandre Duret-Lutz <adl@gnu.org>
1223 * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
1224 * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
1225 lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
1226 lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
1227 installation paths in install, uninstall, and installcheck rules,
1228 as well as in am__installdirs variables. This is for the sake
1229 of paths containing spaces.
1230 * lib/am/install.am (installdirs-am, installdirs): Do not try
1231 to create "" directories.
1232 * test/instspc.test: New file.
1233 * test/Makefile.am (TESTS): Add instspc.test.
1234 Report from James Amundson.
1236 * doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
1237 (Extending): Make it a subsection of Not Enough.
1239 * lib/gnupload (GPG): Use an absolute path. Suggestion from Gary
1241 (passphrase): Unset it this variable before using it, in case it
1242 was exported. Report from Scott James Remnant.
1244 2004-01-25 Alexandre Duret-Lutz <adl@gnu.org>
1246 * lib/gnupload (usage): Fix example.
1247 * Makefile.am (cvs-release): Fix call to gnupload.
1250 2004-01-24 Alexandre Duret-Lutz <adl@gnu.org>
1252 * lib/gnupload: New script.
1253 * lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
1254 * Makefile.am (cvs-release): New target.
1256 2004-01-23 Alexandre Duret-Lutz <adl@gnu.org>
1258 * lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
1261 * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
1262 instead of `/xx/ s///p'; the latter fails when GNU sed is run with
1263 POSIXLY_CORRECT. Also strip superfluous -e.
1264 Report from Miloslav Trmac.
1266 2004-01-22 Alexandre Duret-Lutz <adl@gnu.org>
1268 * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
1269 this fixes a spurious failure reported by Andreas Schwab. Also
1270 make sure ylwrap is not installed unless needed, and exercise
1273 2004-01-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
1275 * doc/automake.texi (Dist): Document limitations of distcheck-hook
1276 and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
1279 2004-01-20 Alexandre Duret-Lutz <adl@gnu.org>
1281 * doc/automake.texi (Upgrading): New node.
1283 2004-01-20 Gary V. Vaughan <gary@gnu.org>
1285 * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
1286 correctly called without arguments as evidenced by the libtool
1289 2004-01-13 Alexandre Duret-Lutz <adl@gnu.org>
1291 * tests/conflnk3.test: Skip if `test -e' does not work.
1292 Report from Lars Hecking.
1294 2004-01-13 Jim Meyering <jim@meyering.net>
1296 * lib/install-sh: Change `\n \t' to `\n\t ' in `defaultIFS'
1297 assignment. Remove spurious SPACEs before TABs.
1299 2004-01-12 Alexandre Duret-Lutz <adl@gnu.org>
1301 * lib/py-compile: Check input files after option processing.
1302 Ensure --basedir has an argument.
1303 * lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
1304 if nothing was installed.
1305 * tests/python10.test: New file.
1306 * tests/Makefile.am (TESTS): Add python10.test.
1307 Suggested by Sander Niemeijer.
1309 * tests/txinfo29.test: Remove autom4te.cache.
1310 Report from Greg Schafer.
1312 * lib/install-sh: Do not use "$@" in a context where it may be empty,
1313 for the sake of OSF1/Tru64's shell.
1316 2004-01-11 Alexandre Duret-Lutz <adl@gnu.org>
1318 * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
1321 * m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
1322 copyright years and serial.
1324 * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
1326 2004-01-10 Peter Eisentraut <peter_e@gmx.net> (tiny change)
1328 * m4/as.m4 (AM_PROG_AS): Format and align help string more
1330 * m4/depend.m4 (AM_DEP_TRACK): Likewise.
1331 * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
1332 * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
1333 * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
1335 2004-01-10 Paul Eggert <eggert@twinsun.com>
1337 * m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use \? in sed regular
1338 expressions; it doesn't conform to POSIX.
1340 2004-01-10 Alexandre Duret-Lutz <adl@gnu.org>
1342 * automake.in (shadow_unconditionally): New function...
1343 (handle_source_transform): ... extracted from here.
1344 (am_install_var): Use shadow_unconditionally to define %DISTVAR%.
1345 * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
1346 lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
1347 * tests/cond33.test: Make sure all conditional files are distributed.
1348 Report from Ralf Corsepius.
1350 2004-01-08 Alexandre Duret-Lutz <adl@gnu.org>
1352 * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
1353 * lib/install-sh: Accept `install-sh -d' with 0..n arguments,
1354 as well as `install-sh sources... dest' with multiple sources.
1355 * tests/cond33.test: New file.
1356 * tests/instsh2.test: Add more checks for install-sh.
1357 * tests/transform.test: Test for installdirs.
1358 * tests/Makefile.am (TESTS): Add cond33.test
1359 Report from Ralf Corsepius.
1361 * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
1362 do not look like DEST:SRC.
1363 * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
1365 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
1367 Fix for PR automake/289:
1368 * automake.in (Automake::Struct::libtool_tag): New attribute. Define
1369 it for the language that have a Libtool tag.
1370 (%libtool_tags): New variable.
1371 (handle_languages, define_compiler_variable)
1372 (define_linker_variable): Pass --tag=XXX to libtool if supported.
1373 (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
1374 * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
1377 2003-01-07 Eric Sunshine <sunshine@sunshineco.com> (tiny change)
1379 * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
1380 config.status.lineno.
1382 2004-01-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
1384 * doc/automake.texi (Rebuilding): Typo.
1386 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
1388 * lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
1390 2004-01-06 Alexandre Duret-Lutz <adl@gnu.org>
1392 * THANKS: Add Bruce Korb.
1394 2004-01-05 Alexandre Duret-Lutz <adl@gnu.org>
1396 Mimic Paul Eggert's changes to Autoconf.
1397 * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
1398 * lib/Automake/Makefile.am (Config.pm): Likewise.
1399 * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
1401 * lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
1402 am__vpath_adj, and am__strip_dir.
1403 * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
1404 * lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
1405 lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
1406 $(am__vpath_adj_setup), and $(am__strip_dir) in install and
1407 uninstall rules. This fixes installation of nobase_ files in
1408 VPATH setups with Sun and OSF1/Tru64 Make.
1409 * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
1410 $(am__strip_dir) to simplify install and uninstall rules.
1411 * tests/nobase.test: Augment to check installation from VPATH builds.
1413 * automake.in (%transformed_files): New variable.
1414 (initialize_per_input): Reset it.
1415 (make_paragraphs): Fill %transformed_files, and define %FIRST%
1416 each time a file is transformed for the first time.
1417 (handle_configure): Do not define %FIRST_CONFIG_HIN%.
1418 (am_install_var): Do not define %FIRST%.
1419 * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
1421 2004-01-04 Alexandre Duret-Lutz <adl@gnu.org>
1423 * lib/texinfo.tex: New upstream version.
1425 * m4/mkdirp.m4: Do not use `-m 0755'. This overrides special bits
1426 and break setups where 775 directories are expected. Just obey
1427 umask as we did in the past.
1428 Report from Harlan Stenn.
1430 2004-01-03 Alexandre Duret-Lutz <adl@gnu.org>
1432 * automake.in (scan_texinfo_file): Do not compare $outfile to ''
1433 as $outfile might not be defined at all.
1435 * lib/Automake/Variable.pm (define): Rework the way we check
1436 Automake variable definition. Ensure consistent :=/+=/=
1437 definitions only for variables that have been and are defined by
1438 Automake, and make it an internal error. Ignore Automake
1439 attempts to touch a user variable, even with += assignments.
1440 * tests/txinfo29.test: New file.
1441 * tests/Makefile.am (TESTS): Add txinfo29.test.
1442 Reported by Bruce Korb.
1444 2004-01-02 Tom Tromey <tromey@redhat.com>
1446 * automake.in (handle_source_transform): Don't generate dist
1447 variables when no-dist is set.
1448 (generate_makefile): Likewise.
1449 * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
1450 and that dist target does not exist.
1451 Reported by Tom Fitzsimmons.
1453 2004-01-02 Alexandre Duret-Lutz <adl@gnu.org>
1455 * tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
1456 * tests/ltconv.test: Run automake with --add-missing, because
1457 the CVS version of libtoolize no longer install config.sub and
1458 config.guess by default.
1460 Fix for PR automake/319:
1461 * aclocal.in (scan_m4_files): Scan configure.ac.
1462 (trace_used_macros, write_aclocal): Remove configure.ac from the
1463 list of files to include.
1464 * tests/Makefile.am (TESTS): Add acloca15.test.
1465 * tests/acloca15.test: New file.
1467 * aclocal.in (%file_includes): New variable.
1468 (scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
1469 (scan_file): Scan for included files, and process these files
1470 recursively. Fill %file_includes and %file_contents. Return the
1471 list of included files, not the contents.
1472 (scan_m4_files): Adjust calls to scan_files.
1473 (strip_redundant_includes): New function.
1474 (trace_used_macros): Call it.
1475 (write_aclocal): Likewise. Also check the mtime of included files.
1476 * tests/Makefile.am (TESTS): Add acloca14.test.
1477 * tests/acloca14.test: New file.
1478 Report from Phil Edwards.
1480 2004-01-01 Alexandre Duret-Lutz <adl@gnu.org>
1482 * automake.in (handle_languages): Do not define DEP_FILES.
1483 * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
1484 files with $(DEPDIR) in their name instead of DEP_FILES.
1485 * tests/depend.test, tests/depend4.test, tests/exsource.test:
1487 Suggested by Tom Tromey.
1489 Do not output .lo rules for programs and static libraries objects,
1490 and do not output .o/.obj rules for libtool libraries. This is
1491 about explicit rules only, not inference rules.
1492 * automake.in (handle_single_transform_list): Rename as ...
1493 (handle_single_transform): ... this. Take a single file
1494 to transform (it was only called this way) and accept a new
1495 %transform argument. Fill %lang_specific_files with list
1496 references instead of strings, and append %transform to each
1498 (define_objects_from_sources, handle_source_transform):
1499 Take a %transform argument, and forward it to &handle_single_transform.
1500 (handle_languages): Adjust to the new format of
1501 %lang_specific_files, and honor its %transform part.
1502 (handle_programs, handle_libraries, handle_ltlibraries): Override
1503 %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
1504 (make_paragraphs): Define %NONLIBTOOL% by default. Make sure
1505 %transform settings override global settings.
1506 * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
1507 * tests/libtool3.test: Augment to check Makefile.ins for unneeded
1509 Suggested by Thomas Fitzsimmons.
1511 * automake.in, aclocal.in: Bump copyright years.
1513 2003-12-31 Alexandre Duret-Lutz <adl@gnu.org>
1515 * automake.in (generate_makefile): Update misleading comment.
1517 * automake.in (handle_languages): Define %DEPBASE% conditionally
1518 on subdir-objects. Define SUBDIROBJ. Do not clean *_.c files
1520 (lang_c_finish): ... do it here.
1521 (handle_single_transform_list): Do not output specific rules for
1522 subdir-objects files which are not renamed. This should reduce
1523 the size of Makefiles with lots of subdirectory sources.
1524 * lib/depcomp: Simplify computation of dependency output, and use
1526 * lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call
1527 to depcomp. Compute depbase on-the-fly in generic fastdep rules
1529 * tests/ansi9.test: Do not grep for an explicit rule that
1530 we no longer expect. Really run $MAKE to make sure the chain
1532 * tests/yacc5.test: Do not grep for an explicit rule that
1533 we no longer expect. Adjust to use set -e.
1535 2003-12-27 Alexandre Duret-Lutz <adl@gnu.org>
1537 * automake.in (@common_files): Move configure, configure.ac, and
1539 (@common_sometimes): ... here so that these files do not appear
1540 twice in DIST_COMMON.
1542 * automake.in (maybe_push_required_file): Add $(srcdir) in front
1543 a required files outside the current directory or its subdirectories.
1544 * lib/am/distdir.am (distdir): Update comment.
1545 Report from Nicolas Joly.
1547 2003-12-26 Alexandre Duret-Lutz <adl@gnu.org>
1549 * doc/automake.texi (@copying): Do not repeat the version.
1550 (Top): Use @insertcopying. Add a @detailmenu, this works around
1551 Emacs 21's inability to lookup indices in sub-nodes (reported
1553 (C++ Support, Assembly Support, Fortran 77 Support, Java Support,
1554 Support for Other Languages, Preprocessing Fortran 77, Compiling
1555 Fortran 77 Files, Mixing Fortran 77 With C and C++, How the Linker
1556 is Chosen): Add missing descriptions in menus.
1557 (Fortran 77 and Autoconf): Remove, this node was just saying "use
1558 Autoconf 2.53 or greater".
1560 2003-12-26 Santiago Vila <sanvila@unex.es> (tiny change)
1562 * NEWS: s/Gettext 1.12.1/Gettext 0.12.1/
1564 2003-12-25 Nicolas Joly <njoly@pasteur.fr> (tiny change)
1566 * doc/automake.texi (Conditional Sources): Typo.
1568 2003-12-25 Alexandre Duret-Lutz <adl@gnu.org>
1570 * lib/Automake/Config.in: Require Exporter.
1571 Report from Kevin Ryde (failure with Perl 5.005_03).
1573 2003-12-15 Alexandre Duret-Lutz <adl@gnu.org>
1575 * tests/aclocal6.test: Check for autom4te.cache only if it has
1577 * tests/maintclean.test: Update comment.
1578 Report from Bruno Haible.
1580 * tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
1582 Report from Václav Haisman.
1584 2003-12-10 Alexandre Duret-Lutz <adl@gnu.org>
1586 * configure.ac, NEWS: Bump version to 1.8a.
1588 * configure.ac, NEWS: Bump version to 1.8.
1590 * lib/texinfo.tex: New upstream version.
1592 * Makefile.am (INSTALL): Copy the source from $(srcdir).
1594 2003-12-09 Alexandre Duret-Lutz <adl@gnu.org>
1596 * lib/Automake/Rule.pm (define): Remove debugging traces.
1597 Report from Akim Demaille.
1599 2003-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
1600 Alexandre Duret-Lutz <adl@gnu.org>
1602 * Makefile.am (do_subst): Fix the substitution of @configure_input@.
1603 (automake, aclocal): Create the output atomically and make it
1604 read-only, as done in the Autoconf package.
1605 * lib/Automake/Makefile.am (do_subst): Fix the substitution of
1607 (Config.pm): Create the output atomically and make it read-only.
1608 * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute
1609 @configure_input@ and make the output read-only.
1610 * lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in,
1611 tests/automake.in, tests/defs.in: Add a @configure_input@ line.
1613 2003-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
1615 * doc/automake.texi (Local Macros, CVS): Typos.
1617 2003-12-08 Alexandre Duret-Lutz <adl@gnu.org>
1619 * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $\&.
1620 Perl 5.6.0 will not accept a reference sub reference for the
1622 * automake.in (var_SUFFIXES_trigger): Adjust registration via
1623 Automake::Variable::hook.
1624 (handle_texinfo_helper): Make sure `inner_expand => 1' appears
1625 on one line, so that Perl 5.6.0 does not complain about
1626 inner_expand being a bare identifier.
1628 2003-12-05 Alexandre Duret-Lutz <adl@gnu.org>
1630 * aclocal.in (check_acinclude, scan_file): Output `warning:' in
1632 Report from Pavel Roskin.
1634 2003-12-04 Alexandre Duret-Lutz <adl@gnu.org>
1636 * TODO: Remove some old entries.
1638 * doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
1639 and CONFIG_STATUS_DEPENDENCIES. Move this sections later
1640 in the manual since it's pretty advanced material.
1642 * automake.in ($config_header_location): Remove. Use
1643 %ac_config_files_location instead.
1644 (rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/
1646 (handle_configure): Use rewrite_inputs_into_dependencies to
1647 distribute and compute AC_CONFIG_HEADERS dependencies.
1648 (scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill
1649 %ac_config_files_location.
1650 * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ...
1651 (%CONFIG_HIN%): ... this. $(srcdir) is already added in
1652 scan_autoconf_traces.
1653 * tests/Makefile.am (TESTS): Add confh5.test.
1654 * tests/confh5.test: New file.
1656 * tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
1657 $< is not portable and the source is in $(srcdir).
1659 2003-12-03 Paolo Bonzini <bonzini@gnu.org>
1660 Alexandre Duret-Lutz <adl@gnu.org>
1662 * automake.in (handle_configure): Do not require link sources if
1663 they contain a dollar, or if they were built. Likewise, do not
1664 clean link destination if they contain a dollar.
1665 (scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate
1666 %ac_config_files_location with link destinations. Do not
1667 store locations in @config_links, now that %ac_config_files_location
1669 * tests/conflnk3.test: New file.
1670 * tests/Makefile.am (TESTS): Add conflnk3.test.
1672 2003-12-02 Alexandre Duret-Lutz <adl@gnu.org>
1674 * configure.ac, NEWS: Bump version to 1.7i.
1676 * configure.ac, NEWS: Bump version to 1.7h.
1678 * doc/automake.texi (Default _SOURCES): Fix reference to true.
1680 * lib/texinfo.tex: New upstream version.
1682 2003-11-30 Alexandre Duret-Lutz <adl@gnu.org>
1684 * automake.in (handle_source_transform): If it's present, use
1685 libfoo_la.c instead of libfoo.c as the default source of
1686 libfoo.la, and issue an -Wobsolete diagnostic. Do not be
1687 greedy in the suffix replacement regex.
1688 * doc/automake.texi (Default _SOURCES): New node.
1689 (Program Sources, Libtool Modules): Refer to it.
1690 * tests/ltlibsrc.test: Update to check for old default source files.
1692 2003-11-30 Gary V. Vaughan <gary@gnu.org>
1694 * automake.in (&handle_source_transform): Calculate a default file
1695 for use in the absence of an appropriate _SOURCES declaration by
1696 first stripping any suffix from the unxformed target name, and
1698 * doc/automake.texi (Program Sources, Libtool Modules): Document this.
1699 * tests/ltlibsrc.test: New file.
1700 * tests/Makefile.am (TESTS): Add ltlibsrc.test.
1702 2003-11-29 Alexandre Duret-Lutz <adl@gnu.org>
1704 * lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
1705 _value_as_list_recursive_worker): Merge into ...
1706 (value_as_list_recursive): ... this function. Pass options
1707 as a hash argument, and use the `location' option to trigger
1708 the behavior of loc_and_value_as_list_recursive.
1709 (traverse_recursively, transform_variable_recursively): Take
1710 options as a %options argument.
1711 (_do_recursive_traversal): Perform expansion of inner variables
1712 (as in `$(FILE).ext') on request.
1713 * automake.in (handle_options, check_libobjs_sources)
1714 (handle_source_transform, handle_LIBOBJS, handle_ltlibraries)
1715 (handle_ltlibraries, handle_man_pages, handle_dist)
1716 (handle_gettext, am_install_var): Adjust usage of
1717 value_as_list_recursive.
1718 (handle_texinfo_helper): Pass inner_expand to
1719 value_as_list_recursive.
1720 * tests/txinfo28.test: New file.
1721 * tests/Makefile.am (TESTS): Add txinfo28.test.
1722 Report from Ralf Corsepius.
1724 * lib/Automake/Variable.pm (_do_recursive_traversal): Do not
1725 update @_substfroms and @_substfroms for undefined variables.
1726 * tests/substre2.test: New file.
1727 * tests/Makefile.am (TESTS): Add substre2.test.
1729 * lib/Automake/VarDef.pm (value): Rename as ...
1730 (raw_value): ... this.
1731 (value): New method, strip # and \\\n.
1732 (dump): Use raw_value.
1733 * lib/Automake/Variable.pm (output): Use raw_value.
1734 (value_as_list): Simplify, now that backslash and comments
1735 are already removed.
1736 * tests/txinfo22.test: Make sure Automake isn't confused
1737 by comments in variables.
1739 2003-11-27 Alexandre Duret-Lutz <adl@gnu.org>
1741 * doc/automake.texi: More target vs. rule editing. Back out some
1742 of the previous changes. It's OK to talk about targets as "entry
1743 points", or as thing to build, but targets cannot be run: rules
1746 * doc/automake.texi: s/target/rule/ where appropriate. A target
1747 is the destination of a target rule, not the rule itself.
1748 Suggested by Bruno Haible.
1750 2003-11-25 Alexandre Duret-Lutz <adl@gnu.org>
1752 * configure.ac, NEWS: Bump version to 1.7g.
1754 * configure.ac, NEWS: Bump version to 1.7f.
1756 * automake.in (prepend_srcdir): Parenthesize @inputs to remove
1757 a maintainer-check warning.
1758 * tests/subst2.test: Rewrite the $MAKE invocation to please
1761 * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
1764 * doc/automake.texi (Program variables): Mention per-target
1765 _CPPFLAGS in the documentation of INCLUDES.
1766 * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic.
1767 Report from Bob Friesenhahn.
1769 * doc/automake.texi (Extending): Elaborate on overriding.
1771 Suggested by Bruno Haible.
1773 2003-11-24 Alexandre Duret-Lutz <adl@gnu.org>
1775 * lib/Automake/Variable.pm (output): Add $(am__empty) to variable
1776 definitions that end with a line full of @substitutions@ that
1777 would confuse HP-UX Make if it were blank.
1778 (transform_variable_recursively): Make sure not to erase empty
1780 * tests/Makefile.am (TESTS): Add subst2.test.
1781 * tests/subst2.test: New file.
1782 Report from Harlan Stenn.
1784 * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Work around a
1786 Report from Dalibor Topic.
1788 2003-11-22 Alexandre Duret-Lutz <adl@gnu.org>
1790 Fix for PR automake/411:
1791 * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename
1793 (prepend_srcdir): ... this.
1794 (rewrite_inputs_into_dependencies): New function, extracted from ...
1795 (handle_configure): ... here. Adjust to use prepend_srcdir
1796 or rewrite_inputs_into_dependencies where needed. Especially,
1797 using (the new) rewrite_inputs_into_dependencies to compute
1798 Makefile dependencies will fix PR/411.
1799 * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's
1800 already distributed by rewrite_inputs_into_dependencies.
1801 * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test.
1802 * tests/colon3.test: Use set -e. Don't allow any AUTOMAKE
1803 invocation refer to zardoz. Make sure two.in and three.in
1804 appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies.
1805 * tests/distcom.test: Delete. This is covered by tests/output9.test.
1806 * tests/output10.test: New file, for PR/411.
1808 2003-11-21 Alexandre Duret-Lutz <adl@gnu.org>
1810 * automake.in (append_exeext): Do not append $(EXEEXT) to
1812 * tests/exeext4.test: New file.
1813 * tests/Makefile.am (TESTS): Add exeext4.test.
1815 2003-11-19 Alexandre Duret-Lutz <adl@gnu.org>
1817 * lib/am/configure.am (%MAKEFILE%): Remove %MAINTAINER-MODE%,
1818 mistakenly added on 2001-03-05.
1819 * tests/remake5.test: New file.
1820 * tests/Makefile.am (TESTS): Add remake5.test.
1821 Report from Ralf Corsepius.
1823 2003-11-18 Alexandre Duret-Lutz <adl@gnu.org>
1825 * configure.ac, NEWS: Bump version to 1.7e.
1827 * configure.ac, NEWS: Bump version to 1.7d.
1829 * lib/config.sub, lib/config.guess, lib/texinfo.tex: New
1832 2003-11-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl> (tiny change)
1833 Alexandre Duret-Lutz <adl@gnu.org>
1835 * lib/am/texinfos.am (install-info): Depend on
1836 install-info-recursive or install-info-am even if no-installinfo.
1837 * tests/txinfo27.test: New file.
1838 * tests/Makefile.am (TESTS): Add txinfo26.test.
1840 2003-11-18 Paolo Bonzini <bonzini@gnu.org>
1841 Alexandre Duret-Lutz <adl@gnu.org>
1843 * lib/ylwrap: Do not overwrite headers if they haven't changed.
1844 Fix the include guard substitution.
1845 * tests/yacc6.test: Augment to run ylwrap, and make sure it
1846 does not needlessly update headers.
1847 * tests/yacc8.test: Make sure headers are not needlessly updated
1848 with ylwrap is not used. Move `test -f foo.o' into the
1849 Makefile as `test -f foo.$(OBJEXT)' for portability.
1851 2003-11-17 Alexandre Duret-Lutz <adl@gnu.org>
1853 * automake.in (generate_makefile): Define SUBDIRS if it is
1854 not defined and DIST_SUBDIRS is.
1855 * tests/subpkg2.test: New file.
1856 * tests/Makefile.am (TESTS): Add subpkg2.test.
1857 Report from Gary V. Vaughan.
1859 * tests/suffix11.test: Check for suffixes containing `-'.
1860 * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
1863 * lib/Automake/Rule.pm (define): Suggest using target-local instead
1864 of target-am, not target-am-local.
1865 * tests/overrid.test: Check the diagnostic for clean-am.
1866 Report from Bruno Haible.
1868 2003-11-17 Jim Meyering <jim@meyering.net>
1870 * bootstrap: Require not only that `perl' have the executable
1871 bit set, but also that it is not a directory.
1873 * lib/am/configure.am: Mark %MAKEFILE% as `.PRECIOUS'.
1875 2003-11-17 Alexandre Duret-Lutz <adl@gnu.org>
1877 * automake.in (ac_config_files_location): Declare as a hash.
1878 (handle_configure): Rewrite the computation of AC_CONFIG_FILES
1879 dependencies; make sure we don't use $(srcdir) or $(top_srcdir)
1880 for inputs which are also outputs, and do not check inputs
1881 relatively to the current directory.
1882 (scan_autoconf_config_files): Take $where as argument, and
1883 fill $ac_config_files_location.
1884 * tests/output8.test, tests/output9.test: New files.
1885 * tests/Makefile.am (TESTS): Add output8.test and output9.test.
1886 Report from Bruno Haible.
1888 2003-11-14 Alexandre Duret-Lutz <adl@gnu.org>
1890 * tests/aclibobj.test, tests/aclocal.test, tests/aclocal3.test,
1891 tests/acoutbs.test, tests/acoutbs2.test, tests/acoutnoq.test,
1892 tests/acoutpt.test, tests/acoutpt2.test, tests/acoutqnl.test,
1893 tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
1894 tests/all.test, tests/alpha.test, tests/amassign.test,
1895 tests/ammissing.test, tests/ansi.test, tests/ansi10.test,
1896 tests/ansi2.test, tests/ansi3.test, tests/ansi3b.test,
1897 tests/ansi4.test, tests/ansi5.test, tests/ansi6.test,
1898 tests/ansi7.test, tests/ansi9.test, tests/ar.test,
1899 tests/autohdr.test, tests/autohdr2.test, tests/auxdir.test,
1900 tests/auxdir2.test, tests/backsl.test, tests/backsl2.test,
1901 tests/badprog.test, tests/block.test, tests/canon2.test,
1902 tests/canon3.test, tests/canon4.test, tests/canon5.test,
1903 tests/ccnoco.test, tests/check.test, tests/check2.test,
1904 tests/check3.test, tests/checkall.test, tests/clean.test,
1905 tests/colneq2.test, tests/colon.test, tests/colon2.test,
1906 tests/colon3.test, tests/colon4.test, tests/colon5.test,
1907 tests/colon6.test, tests/colon7.test, tests/comment.test,
1908 tests/comment2.test, tests/comment4.test, tests/comment6.test,
1909 tests/comment7.test, tests/compile_f_c_cxx.test, tests/cond.test,
1910 tests/cond10.test, tests/cond11.test, tests/cond13.test,
1911 tests/cond14.test, tests/cond15.test, tests/cond16.test,
1912 tests/cond17.test, tests/cond18.test, tests/cond19.test,
1913 tests/cond21.test, tests/cond22.test, tests/cond25.test,
1914 tests/cond26.test, tests/cond28.test, tests/cond3.test,
1915 tests/cond4.test, tests/cond5.test, tests/cond6.test,
1916 tests/cond7.test, tests/cond8.test, tests/cond9.test,
1917 tests/condd.test, tests/condinc.test, tests/condlib.test,
1918 tests/condman.test, tests/condman2.test, tests/conf2.test,
1919 tests/confdeps.test, tests/confh.test, tests/confh4.test,
1920 tests/config.test, tests/confincl.test, tests/conflnk.test,
1921 tests/conflnk2.test, tests/confsub.test, tests/confvar.test,
1922 tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
1923 tests/cxx.test, tests/cxxansi.test, tests/cxxcpp.test,
1924 tests/cxxlibobj.test, tests/cxxlink.test, tests/cxxnoc.test,
1925 tests/cxxo.test, tests/cygwin32.test, tests/dash.test,
1926 tests/defun.test, tests/defun2.test, tests/dejagnu.test,
1927 tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test,
1928 tests/dejagnu6.test, tests/dejagnu7.test, tests/depacl2.test,
1929 tests/depcomp.test, tests/depcomp2.test, tests/depcomp4.test,
1930 tests/depdist.test, tests/depend.test, tests/depend2.test,
1931 tests/depend3.test, tests/depend4.test, tests/destdir.test,
1932 tests/dirlist.test, tests/discover.test, tests/distcom.test,
1933 tests/distcom2.test, tests/distdir.test, tests/distname.test,
1934 tests/dollar.test, tests/double.test, tests/dup2.test,
1935 tests/empty.test, tests/empty2.test, tests/empty3.test,
1936 tests/empty4.test, tests/error.test, tests/exdir.test,
1937 tests/exeext.test, tests/exeext3.test, tests/exsource.test,
1938 tests/ext.test, tests/ext2.test, tests/extra.test,
1939 tests/extra2.test, tests/extra3.test, tests/extra4.test,
1940 tests/extra5.test, tests/extra6.test, tests/extra7.test,
1941 tests/flibs.test, tests/fnoc.test, tests/fo.test,
1942 tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
1943 tests/fpinstall.test, tests/gcj.test, tests/gcj3.test,
1944 tests/gcj4.test, tests/gnits2.test, tests/gnits3.test,
1945 tests/header.test, tests/implicit.test, tests/include.test,
1946 tests/include2.test, tests/info.test, tests/insh2.test,
1947 tests/install2.test, tests/installdir.test, tests/instdat.test,
1948 tests/instdat2.test, tests/instexec.test, tests/insthook.test,
1949 tests/instman.test, tests/instman2.test, tests/instsh.test,
1950 tests/instsh2.test, tests/interp.test, tests/interp2.test,
1951 tests/java.test, tests/java2.test, tests/javaprim.test,
1952 tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
1953 tests/lex.test, tests/lex3.test, tests/lex4.test, tests/lex5.test,
1954 tests/libobj11.test, tests/libobj2.test, tests/libobj4.test,
1955 tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
1956 tests/library.test, tests/libtool.test, tests/libtool2.test,
1957 tests/libtool3.test, tests/libtool5.test, tests/link_c_cxx.test,
1958 tests/link_dist.test, tests/link_f_only.test, tests/link_fc.test,
1959 tests/link_fccxx.test, tests/link_fcxx.test, tests/lisp.test,
1960 tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
1961 tests/maintclean.test, tests/make.test, tests/makej.test,
1962 tests/makevars.test, tests/man.test, tests/man2.test,
1963 tests/mclean.test, tests/mdate.test, tests/mdate2.test,
1964 tests/mdate3.test, tests/mdate4.test, tests/mkinst2.test,
1965 tests/mkinstall.test, tests/nobase.test, tests/nodef.test,
1966 tests/nodef2.test, tests/nodep.test, tests/nodepcomp.test,
1967 tests/nodist.test, tests/nodist2.test, tests/nodist3.test,
1968 tests/noinst.test, tests/noinstdir.test, tests/nolink.test,
1969 tests/nostdinc.test, tests/number.test, tests/obsolete.test,
1970 tests/order.test, tests/outdir.test, tests/output.test,
1971 tests/output2.test, tests/output3.test, tests/output4.test,
1972 tests/parse.test, tests/phony.test, tests/pluseq.test,
1973 tests/pluseq10.test, tests/pluseq2.test, tests/pluseq3.test,
1974 tests/pluseq4.test, tests/pluseq6.test, tests/pluseq8.test,
1975 tests/postproc.test, tests/ppf77.test, tests/pr2.test,
1976 tests/pr204.test, tests/pr220.test, tests/pr224.test,
1977 tests/pr229.test, tests/pr243.test, tests/pr266.test,
1978 tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
1979 tests/pr300-lib.test, tests/pr300-ltlib.test,
1980 tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
1981 tests/pr87.test, tests/pr9.test, tests/prefix.test,
1982 tests/proginst.test, tests/python.test, tests/python3.test,
1983 tests/python4.test, tests/python5.test, tests/python6.test,
1984 tests/python7.test, tests/python8.test, tests/python9.test,
1985 tests/recurs2.test, tests/remake.test, tests/remake2.test,
1986 tests/remake3.test, tests/req.test, tests/reqd.test,
1987 tests/rulepat.test, tests/scripts.test, tests/sinclude.test,
1988 tests/space.test, tests/specflg3.test, tests/specflg6.test,
1989 tests/specflg7.test, tests/specflg8.test, tests/specflg9.test,
1990 tests/spell3.test, tests/spelling.test, tests/spy.test,
1991 tests/stamph2.test, tests/stdlib2.test, tests/strip.test,
1992 tests/subcond.test, tests/subcond2.test, tests/subcond3.test,
1993 tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
1994 tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
1995 tests/subdirbuiltsources.test, tests/subobj.test,
1996 tests/subobj2.test, tests/subobj3.test, tests/subobj4.test,
1997 tests/subobj5.test, tests/subobj6.test, tests/subobj7.test,
1998 tests/subobj8.test, tests/subobj9.test, tests/subobjname.test,
1999 tests/subpkg.test, tests/subst.test, tests/substref.test,
2000 tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
2001 tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
2002 tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
2003 tests/suffix9.test, tests/symlink2.test, tests/symlink3.test,
2004 tests/tags.test, tests/tagsub.test, tests/target-cflags.test,
2005 tests/transform.test, tests/txinfo.test, tests/txinfo10.test,
2006 tests/txinfo13.test, tests/txinfo16.test, tests/txinfo17.test,
2007 tests/txinfo18.test, tests/txinfo2.test, tests/txinfo23.test,
2008 tests/txinfo24.test, tests/txinfo25.test, tests/txinfo26.test,
2009 tests/txinfo3.test, tests/txinfo5.test, tests/txinfo6.test,
2010 tests/txinfo7.test, tests/txinfo8.test, tests/txinfo9.test,
2011 tests/unused.test, tests/vars.test, tests/vars3.test,
2012 tests/vartar.test, tests/version.test, tests/version2.test,
2013 tests/version4.test, tests/version6.test, tests/version7.test,
2014 tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
2015 tests/werror.test, tests/whoami.test, tests/yacc.test,
2016 tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
2017 tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
2018 tests/yaccpp.test, tests/yaccvpath.test: Fix license to refer
2019 to Automake, not autoconf.
2021 Fix for PR automake/408:
2022 * lib/am/texinfos.am (install-info-am): Strip any $(srcdir)/ prefix
2023 from $file, as already done for dist-info.
2024 * tests/Makefile.am (TESTS): Add txinfo26.test.
2025 * tests/txinfo26.test: New file.
2026 Report from Nicholas Wourms.
2028 2003-11-13 Alexandre Duret-Lutz <adl@gnu.org>
2030 * m4/lispdir.m4 (AM_PATH_LISPDIR): If EMACS=t, empty it before
2031 running AC_CHECK_PROGS(EMACS).
2032 * lib/am/lisp.am (elc-stamp): Quote $(EMACS).
2033 Report from Jens Petersen.
2035 * tests/mkinst2.test: Rewrite.
2037 * m4/mkdirp.m4: Do not require AM_AUX_DIR_EXPAND.
2039 2003-11-12 Alexandre Duret-Lutz <adl@gnu.org>
2041 * automake.in (scan_autoconf_traces): Honor sinclude.
2042 * tests/sinclude.test: Check for sinclude.
2043 Report from Roberto Bagnara.
2045 2003-11-11 Alexandre Duret-Lutz <adl@gnu.org>
2047 * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck'
2048 already build the tarballs. Commit files right before tagging.
2049 Check NEWS before running distcheck.
2051 * m4/amversion.in (AM_AUTOMAKE_VERSION): Missing cosmetic space.
2053 * configure.ac, NEWS: Bump version to 1.7c.
2055 * configure.ac, NEWS: Bump version to 1.7b.
2056 * Makefile.am (maintainer-check): Ignore comments while
2057 scanning for rm without -f.
2059 * Makefile.am (fetch): Get all files from savannah. Do not
2060 postprocess Struct.pm and XFiles.pm, since we now are the master
2062 * lib/config.sub, lib/config.guess, lib/config-ml.in,
2063 lib/texinfo.tex: New upstream versions.
2065 * configure.ac: Check that autoconf is installed, that it works,
2066 and that it is recent enough in three steps, not one.
2068 * NEWS: Minor edits.
2070 * lib/Makefile.am (dist_script_DATA): Move config-ml.in ...
2071 (dist_pkgvdata_DATA): ... here.
2073 * tests/spy.test: Document overlapping ::-rules incompatibilities,
2074 and check only non-overlapping ::-rules.
2076 * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
2077 MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
2078 TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
2079 (Uniform): Do not speak of missing HTML support, this is
2081 * lib/Automake/Variable.pm (_silent_variable_override): Add
2082 AM_MAKEINFOHTMLFLAGS.
2083 * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
2084 AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
2085 * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
2086 * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
2088 2003-11-10 Alexandre Duret-Lutz <adl@gnu.org>
2090 * tests/spy.test: New file.
2091 * tests/Makefile.am (TESTS): Add spy.test.
2093 * automake.in (handle_configure): Distribute and define mkinstalldirs
2094 only if it is already present in the package.
2095 (scan_autoconf_files): Do not require mkinstalldirs.
2096 (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs).
2097 * lib/am/data.am, lib/am/distdir.am, lib/am/install.am,
2098 lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am,
2099 lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
2100 lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs).
2101 * m4/mkdirp.m4: New file.
2102 * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4.
2103 * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P.
2104 * tests/Makefile.am (TESTS): Remove insh.test.
2105 * tests/insh.test: Delete.
2106 * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs.
2107 * tests/auxdir.test: Install mkinstalldirs.
2108 * tests/distdir.test, tests/instman.test, tests/pr2.test: Use
2109 $(mkdir_p), not $(mkinstalldirs).
2110 * tests/empty.test: Run configure, do not substitute things by hand.
2111 * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh
2112 as an example, not mkinstalldirs.
2113 (Auxiliary Programs) <mkinstalldirs>: Update.
2115 * tests/defs.in: Handle required=bzip2.
2117 * tests/defs.in: Export SHELL.
2118 * tests/cond11.test: Missing quotes.
2119 * tests/nogzip2.test: Require bzip2.
2121 2003-11-09 Alexandre Duret-Lutz <adl@gnu.org>
2123 * NEWS: Add news entries from 1.6.x and 1.7.x.
2125 * automake.texi (Optional) <AC_SUBST>: Grammar fixes.
2127 * automake.in (check_gnu_standards): Install COPYING only if
2128 none of COPYING, COPYING.LIB, or COPYING.LESSER exist. Do not
2129 overwrite the license otherwise.
2130 * tests/Makefile.am (TESTS): Add license.test.
2131 * tests/license.test: New file.
2133 * lib/mkinstalldirs: Mention automake-patches@gnu.org and
2134 bug-automake@gnu.org.
2135 * lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
2136 Likewise. Also add support for --help and --version.
2137 * lib/py-compile, lib/ylwrap: Likewise, and reindent.
2139 2003-11-08 Alexandre Duret-Lutz <adl@gnu.org>
2141 * lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
2142 * lib/am/dejagnu.am (RUNTESTFLAGS): Remove.
2143 * lib/am/java.am (JAVACFLAGS): Remove.
2144 * tests/dejagnu3.test: Check that the environment value
2145 of RUNTESTFLAGS get passed down to runtest.
2146 Suggested by Mark Mitchell.
2148 * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
2149 (?GENERIC?%EXT%.lo): Do not echo compile command manually, this
2150 breaks `make -s'. Instead, fold the compile command on two lines,
2151 so that it take less space on the display.
2152 Suggested by Karl Berry and William Fulton.
2154 * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
2155 (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
2156 to select $(srcdir) or `.' builds.
2157 (INFO_DEPS): Define here.
2158 * lib/am/texinfos.am (dist-info): Strip filename starting with
2160 * automake.in (output_texinfo_build_rules): Take a new argument
2161 $insrc, and adjust substitutions in 'texibuild'.
2162 (handle_texinfo_helper): Compute a regex of all user-cleaned
2163 files, and use this to select whether to build .info files in `.'
2164 or $(srcdir). Give an account of the $(srcdir) vs `.' debacle.
2165 Alway build the version.texi and stamp files in $(srcdir). Do not
2167 * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
2169 * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
2171 * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
2172 tests/vtexi.test: Adjust to new rules.
2174 2003-11-05 Alexandre Duret-Lutz <adl@gnu.org>
2176 * m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
2177 * configure.ac: Require Autoconf 2.58a, and check for 2.58.
2179 2003-10-27 Alexandre Duret-Lutz <adl@gnu.org>
2181 * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
2182 * tests/Makefile.am (TESTS): Add autohdr3.test
2183 * tests/autohdr3.test: New file.
2185 * automake.in (handle_configure): Rename am__configure_deps
2186 as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and
2187 $configure_ac. Define am__configure_deps as am__aclocal_m4_deps
2188 + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4). Do not define
2189 ACLOCAL_M4_DEPS while processing configure.am.
2190 (make_paragraphs): Do not define %CONFIGURE_AC%, now unused.
2191 (scan_aclocal_m4): Do not distribute aclocal.m4, this
2192 is done from lib/am/configure.am.
2193 * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON,
2194 $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using
2195 $(am__configure_deps) or $(am__aclocal_m4_deps).
2196 * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
2198 2003-10-26 Alexandre Duret-Lutz <adl@gnu.org>
2200 * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
2201 $(am__configure_deps).
2203 * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
2204 sources, and without using require_file. Define %CONFIG_H_DEPS%
2205 and %FIRST_CONFIG_HIN% while processing remake-hdr.am.
2206 * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead
2207 of (srcdir)/%CONFIG_HIN%. Output the $(srcdir)/%CONFIG_HIN%
2208 rule only for the first header (i.e., if %FIRST_CONFIG_HIN%).
2209 * tests/autohdr4.test: New file.
2210 * tests/Makefile.am (TESTS): Add autohdr4.test.
2211 * tests/config.test: Do not grep, run things to see if they work.
2213 2003-10-25 Alexandre Duret-Lutz <adl@gnu.org>
2215 * tests/output7.test: Populate sub/ with a dummy file, so that it
2216 is not empty. This fixes a failure reported by Patrick Welche.
2217 * lib/am/distdir.am: Add note about tar's `-o' option and empty
2220 2003-10-24 Didier Cassirame <faded@free.fr> (tiny change)
2222 * lib/ylwrap: Typo in regex.
2224 2003-10-23 Paul Eggert <eggert@twinsun.com>
2226 * lib/Automake/XFile.pm: Don't assume -j is solo.
2227 Issue a more-informative diagnostic.
2228 Problems reported by Eric Sunshine.
2230 2003-10-21 Alexandre Duret-Lutz <adl@gnu.org>
2232 * m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
2233 Always define lispdir.
2234 * lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Check
2235 $(EMACS) to decide whether _LISP files must be installed,
2237 * doc/automake.texi (Emacs Lisp): Mention the two ways to install
2238 non byte-compiled Emacs lisp files.
2239 * tests/lisp4.test, tests/lisp5.test: Check "make install"
2241 Suggested by Simon Josefsson.
2243 * NEWS: Clarify the entry about multiple conditional definitions
2244 of _PROGRAMS, _LDADD, and _LIBADD.
2245 Report from Simon Josefsson.
2247 * lib/am/install.am (install-strip): Override install_sh_PROGRAM
2249 Report from Elmar Hoffmann.
2251 2003-10-07 Alexandre Duret-Lutz <adl@gnu.org>
2253 * aclocal.in ("MAIN", usage, parse_arguments): Move near
2254 the end, so "MAIN" can use prototypes.
2255 (scan_configure): Move later too, for the sake of prototypes.
2256 (scan_configure_dep): Fix setting of $scanned_configure_dep.
2257 (trace_used_macros): Do not take any argument.
2259 2003-10-06 Alexandre Duret-Lutz <adl@gnu.org>
2261 * tests/stdlib2.test: Check AM_LDFLAGS alone.
2263 * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
2266 * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
2267 * tests/stdlib2.test: New file.
2268 * tests/Makefile.am (TESTS): Add stdlib2.test.
2269 Report from Kevin P. Fleming.
2271 2003-10-03 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
2273 * tests/defs.in: For required=runtest, check that we are using
2274 a DejaGnu that supports specifying the program on the command-line.
2276 2003-10-03 Alexandre Duret-Lutz <adl@gnu.org>
2278 For Debian Bug #213524:
2279 * lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
2280 stderr and stdout, and grep only the first line while testing
2281 install-info --version's output. This revert part of the change
2284 2003-10-01 Akim Demaille <akim@epita.fr>
2286 * m4/amversion.in: Add (C) to the Copyright notice.
2288 2003-10-01 Paul Eggert <eggert@twinsun.com>
2290 * lib/Automake/XFile.pm: Use Errno.
2291 (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in
2292 <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
2294 2003-09-30 Tom Tromey <tromey@redhat.com>
2296 * lib/Automake/Options.pm (_process_option_list): Recognize
2299 * doc/automake.texi (Options): Document no-dist.
2300 * automake.in (check_cygnus): Set no-dist option.
2301 (handle_dist): Recognize no-dist.
2302 * tests/nodist3.test: New file.
2303 * tests/Makefile.am (TESTS): Added nodist3.test.
2305 2003-09-29 Alexandre Duret-Lutz <adl@gnu.org>
2307 * automake.in (handle_clean): Take $makefile as argument, and
2308 define %MAKEFILE% while processing clean.am.
2309 (generate_makefile): Pass $makefile to handle_clean.
2310 * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%,
2312 * tests/gnumake.test: New file.
2313 * tests/Makefile.am (TESTS): Add gnumake.test.
2314 Report from Braden N. McDaniel.
2316 2003-09-26 Alexandre Duret-Lutz <adl@gnu.org>
2318 * doc/automake.texi (Scripts): Update the example about automake.
2319 Mention `dist_' for distributed scripts.
2321 * lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
2322 Suggested by Eric Sunshine.
2324 2003-09-25 Alexandre Duret-Lutz <adl@gnu.org>
2326 * README: More mailing lists.
2328 * NEWS: Mention the switch to GNU FDL for the manual.
2330 2003-09-24 Alexandre Duret-Lutz <adl@gnu.org>
2332 * lib/install-sh (src, dst): Protect names starting with `-',
2333 as in mkinstalldirs.
2335 * configure.in: Rename as ...
2336 * configure.ac: ... this.
2337 * README: s/configure.in/configure.ac/.
2339 * doc/fdl.texi: New file.
2340 * doc/Makefile.am (automake_TEXINFOS): New variable.
2341 * doc/automake.texi (Copying This Manual): New appendix, include
2343 (Macro and Variable Index, General Index): Move as subsections of ...
2344 (Indices): This new appendix.
2346 * doc/automake.texi: Refer to configure.ac instead of configure.in.
2348 * automake.texi: Move ...
2349 * doc/automake.texi: ... here.
2350 * doc/Makefile.am: New file.
2351 * configure.in: Output doc/Makefile.
2352 * Makefile.am (SUBDIRS): Add doc.
2353 (ETAGS_ARGS, TAGS_DEPENDENCIES): Move to doc/Makefile.am.
2355 2003-09-23 Alexandre Duret-Lutz <adl@gnu.org>
2357 * aclocal.in (write_aclocal): Consider files with relative
2358 paths as local to the project, i.e., subject to m4_include.
2359 * tests/subpkg.test (ACLOCAL_AMFLAGS): Make sure m4_include
2360 is also used for .m4 files in the outer project.
2362 Support for multiple inputs in AC_CONFIG_FILES.
2363 Requested long ago by Harlan Stenn.
2364 * automake.in (handle_dist): Remove unused argument $makefile.
2365 (handle_subdirs): Expect SUBDIRS elements in $relative_dir,
2366 not $am_relative_dir.
2367 (rewrite_inputs_into_dependencies): Allow $add_srcdir to
2368 be a filename that must always be prefixed by $(srcdir) or
2370 (handle_configure, generate_makefile): Revamp to make the
2371 Makefile.am, Makefile.in, Makefile more independent.
2372 (locate_am): New function.
2373 (scan_configure_dep, parse_arguments): Use locate_am.
2374 (MAIN): Adjust call to generate_makefile.
2375 * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies
2376 of %MAKEFILE%. %MAKEFILE-IN% is already in %MAKEFILE-DEPS%.
2377 * tests/output6.test, tests/output7.test: New files.
2378 * tests/Makefile.am (TESTS): Add them.
2379 * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how
2380 multiple inputs are scanned.
2382 2003-09-13 Alexandre Duret-Lutz <adl@gnu.org>
2384 * Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
2385 and lib/Automake/Struct.pm from Autoconf.
2386 * lib/Automake/XFile.pm: Update comment, Automake is now
2387 the master for this file. Cosmetic changes.
2389 2003-09-09 Akim Demaille <akim@epita.fr>
2391 * lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
2392 Reported by Gary Vaughan.
2393 (&find_file): Walk the @include in forward order.
2395 2003-09-09 Akim Demaille <akim@epita.fr>
2397 * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
2400 2003-09-07 Alexandre Duret-Lutz <adl@gnu.org>
2402 Changes to m4_included files should also cause aclocal.m4 to change.
2403 * aclocal.in (m4_include_rx): New variable.
2404 (scan_configure_dep): New function.
2405 (scan_configure, add_file): Simplify using scan_configure_dep.
2406 * tests/Makefile.am (TESTS): Add acloca13.test.
2407 * tests/aclocal13.test: New file.
2409 * tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
2410 that we have fake version in the $PATH.
2412 * aclocal.in (add_file): Remove useless filling of $output, probably
2413 left a after CVS conflict. This code is now in write_aclocal.
2415 * aclocal.in (configure_ac): Do not call require_configure_ac
2416 before parsing the options.
2417 * automake.in (configure_ac): Likewise.
2418 * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac,
2420 * lib/Automake/Configure_ac.pm (require_configure_ac):
2421 find_configure_ac never return an undefined value, so test
2422 the file's existence instead.
2423 * tests/Makefile.am (TESTS): Add help.test.
2424 * tests/help.test: New file.
2426 2003-09-06 Alexandre Duret-Lutz <adl@gnu.org>
2428 * lib/Automake/XFile.pm: Update to use ChannelDefs.
2429 (close): Call Automake::FileUtils::handle_exec_errors on errors.
2430 * automake.in (scan_autoconf_files): Exit with $?=63 on version
2432 (scan_autoconf_traces): Likewise. Close the autoconf pipe to
2433 capture abnormal exits.
2434 * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code
2436 (trace_used_macros): Close the autom4te pipe to capture abnormal exits.
2437 * lib/missing: When a tool has run and exited with $?=63, emulate
2438 it. Adjust the diagnostic and pretend the tool is tool old in this
2439 case. Use an emacs-updated "scriptversion" variable.
2440 * configure.in: Output tests/aclocal-${APIVERSION} and
2441 tests/automake-${APIVERSION}.
2442 * tests/aclocal.in, tests/automake.in,
2443 tests/missing.test, tests/missing2.test: New files.
2444 * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define
2445 to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION.
2446 * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are
2447 already testing for this.
2448 * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix
2449 configure.in so that aclocal works.
2450 * tests/defun.test: Quote the AC_DEFUN body.
2451 * tests/Makefile.am (TESTS): Add missing.test and missing2.test,
2452 and remove dup3.test.
2453 (check_SCRIPTS): Add aclocal and automake.
2455 * tests/unused.test: Quote AC_DEFUN arguments.
2457 2003-09-05 Paul Eggert <eggert@twinsun.com>
2459 * NEWS, aclocal.in, automake.in, automake.texi, lib/ansi2knr.c,
2460 lib/depcomp, lib/missing, lib/py-compile,
2461 lib/Automake/Channels.pm, lib/Automake/Rule.pm,
2462 lib/Automake/Variable.pm, lib/Automake/tests/Condition.pl,
2463 lib/am/dejagnu.am, lib/am/depend.am, lib/am/lisp.am,
2464 lib/am/remake-hdr.am, lib/am/texi-vers.am, m4/obsolete.m4,
2465 m4/python.m4, tests/backsl4.test, tests/defs.in,
2466 tests/dejagnu7.test, tests/depacl2.test, tests/dirlist.test,
2467 tests/error.test, tests/getopt.test, tests/gnuwarn.test,
2468 tests/include2.test, tests/libobj10.test, tests/libtool5.test,
2469 tests/libtool6.test, tests/lisp3.test, tests/phony.test,
2470 tests/pr220.test, tests/subcond2.test, tests/subcond3.test,
2472 Spelling and minor grammar fixes.
2474 2003-09-01 Alexandre Duret-Lutz <adl@gnu.org>
2476 * lib/config.sub, lib/config.guess, lib/texinfo.tex,
2477 lib/config-ml.in, lib/symlink-tree: New upstream versions.
2479 2003-08-31 Thien-Thi Nguyen <ttn@gnu.org> (tiny change)
2481 * tests/yacc7.test: Require bison.
2483 2003-08-31 Alexandre Duret-Lutz <adl@gnu.org>
2485 * aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
2486 ($underquoted_manual_once): New variable.
2487 * automake.texi (Extending aclocal): Document this.
2489 2003-08-29 Alexandre Duret-Lutz <adl@gnu.org>
2491 * aclocal.in (@file_order): New variable, to make sure
2492 files are output in the opposite order of the -I arguments.
2493 (scan_file): Fill it.
2494 (trace_used_macros, write_aclocal): Use it.
2495 (scan_m4_files): Reverse the directory contents, so that
2496 macros from the lexicographically greatest files are preferred.
2497 * tests/aclocal9.test, tests/acloca10.test, tests/acloca11.test:
2499 * tests/Makefile.am (TESTS): Add them.
2501 2003-08-24 Alexandre Duret-Lutz <adl@gnu.org>
2503 For Debian Bug #206299:
2504 * automake.in ($configure_deps_greatest_timestamp,
2505 $output_deps_greatest_timestamp): New variables.
2506 (initialize_per_input): Reset $output_deps_greatest_timestamp.
2507 (scan_autoconf_traces, scan_autoconf_files, read_am_file):
2508 Update $configure_deps_greatest_timestamp and
2509 $output_deps_greatest_timestamp
2510 (generate_makefile): Rewrite the logic to decide whether
2511 to rewrite the output. Move the leading dup_channel_setup
2512 and trailing drop_channel_setup to MAIN, so that
2513 drop_channel_setup is executed for all exit paths.
2514 * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force
2515 * tests/distcom6.test: New file. Report from Scott James Remnant.
2516 * tests/Makefile.am (TESTS): Add distcom6.test.
2518 * configure.in: Require Autoconf 2.57b to be sure
2519 aclocal can use autom4te --language Autoconf-without-aclocal-m4.
2520 * m4/init.m4: Likewise. Move the AC_PREREQ and m4_pattern_allow
2521 calls inside the AM_INIT_AUTOMAKE macro.
2522 * m4/auxdir.m4, m4/cond.m4, m4/lex.m4, m4/regex.m4: Move
2523 AC_PREREQ calls inside the macros.
2524 * m4/header.m4: Remove AC_PREREQ.
2526 * automake.in (file_contents_internal): Do not add newlines before
2529 * aclocal.in (write_aclocal): Take an output file and list of
2530 used macros in arguments and make up the file contents here.
2531 (trace_used_macros): New function.
2532 (add_file): Do not update $output.
2534 (MAIN): Call trace_used_macros. Then rewrite aclocal.m4 only
2535 for these traced macros. This should shorten aclocal.m4 by
2536 stripping out unused macros.
2537 * automake.texi (Invoking aclocal): Document ${AUTOM4TE}.
2538 * tests/aclibobj.test: Make sure configure.in exists by the time
2540 * tests/aclocal8.test: New file.
2541 * tests/Makefile.am (TESTS): Add aclocal8.test.
2542 Suggested by Bruno Haible and Akim Demaille.
2544 2003-08-21 Akim Demaille <akim@epita.fr>
2546 * lib/Automake/Configure_ac.pm (&find_configure_ac)
2547 (&require_configure_ac): Accept an optional directory argument.
2548 ($configure_ac): Remove.
2549 * aclocal.in, automake.in ($configure_ac): New.
2550 * lib/Automake/Variable.pm: Don't use $configure_ac, just
2553 2003-08-20 Akim Demaille <akim@epita.fr>
2555 * lib/Automake/FileUtils.pm: More perldoc.
2556 (&up_to_date_p): New.
2558 2003-08-17 Alexandre Duret-Lutz <adl@gnu.org>
2560 Fix for PR automake/398:
2561 * m4/python.m4: Do not call AC_PATH_PROGS if $PYTHON is already
2562 set. Display `none' instead of `:' and $PYTHON is set to `:'
2563 when no suitable interpreter is found. Honor ACTION-IF-FOUND and
2564 ACTION-IF-NOT-FOUND.
2565 * automake.texi (Python): Document ACTION-IF-FOUND and
2566 ACTION-IF-NOT-FOUND.
2567 * tests/python4.test, tests/python5.test, tests/python6.test,
2568 tests/python7.test, tests/python8.test, tests/python9.test: New
2570 * tests/Makefile.am (TESTS): Add them.
2571 Report from Per Cederqvist.
2573 2003-08-13 Alexandre Duret-Lutz <adl@gnu.org>
2575 Fix for PR automake/399:
2576 * m4/python.m4: Use AC_PATH_PROGS, not AC_PATH_PROG.
2577 Report from Per Cederqvist.
2579 2003-08-12 Raja R Harinath <harinath@acm.org>
2581 * lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
2582 (not): Replace loop with 'map'.
2583 * lib/Automake/DisjConditions.pm (sub_conditions): Likewise.
2584 * lib/Automake/Item.pm (not_alwasy_defined_in_cond):
2585 Don't 'simplify' result of 'invert', since it's already in
2587 * lib/Automake/Rule.pm (define): Replace loop with
2588 'not_always_defined_in_cond'.
2590 * lib/Automake/DisjConditions.pm (ambiguous_p): Typo in comment.
2591 * lib/Automake/Rule.pm (accept_extensions, msg_cond_rule): Likewise.
2592 (define): Reword comment slightly.
2593 * Variable.pm (_var_order, msg_cond_var): Typo in comment.
2594 * tests/cond20.test (var2): Use foo.c instead of foo.cc to avoid
2595 spurious automake error exit.
2597 2003-08-12 Alexandre Duret-Lutz <adl@gnu.org>
2599 * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
2600 * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files.
2601 * lib/Automake/Makefile.am (dist_perllib_DATA): Add them.
2602 * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef.
2603 (new): Adjust to call Automake::ItemDef::new.
2604 (comment, location, owner): Delete. Now inherited from ItemDef.
2605 * lib/Automake/Variable.pm: Make this a subclass of Automake::Item.
2606 (_new): Adjust to call Automake::Item::new.
2607 (name, def, rdef, _set, conditions, not_always_defined_in_cond):
2608 Delete. How inherited from Item, where `_set' is called `set'.
2609 * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule.
2610 (suffix_rules_default): Delete. Now
2611 Automake::Rule::_suffix_rules_default
2612 (suffixes): Delete. Now Automake::Rule::suffixes.
2613 (TARGET_AUTOMAKE, TARGET_USER): Delete. Now
2614 Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER.
2615 (%targets, %target_source, %target_name, %target_owner): Delete,
2616 replaced by the Rule and RuleDef classes.
2617 (dependencies, depend, actions): Delete. Now in Automake::Rule.
2618 (suffix_rules, register_suffix_rule): Likewise.
2619 (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise.
2620 (known_extensions_list): Delete. Now
2621 Automake::Rule::_known_extensions_list.
2622 (target_conditions): Delete. Now inherited by Automake::Rule
2623 from Automake::Item::conditions.
2624 (rule_define): Delete. Now Automake::Rule::define. Adjust all
2626 (target_defined): Delete. Now Automake::Rule::rule. Adjust all
2628 (initialize_per_input): Adjust to call Automake::Rule::reset.
2629 (err_target, err_cond_target, msg_cond_target, msg_target,
2630 reject_target): Delete. Now defined in Automake::Rule as
2631 err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target.
2633 (handle_languages): Call suffix_rules_count.
2634 * tests/location.test: Adjust expected diagnostics. We now display
2635 $(EXEEXT) accurately.
2637 2003-08-10 Alexandre Duret-Lutz <adl@gnu.org>
2639 Revert the fix for PR automake/291:
2640 * lib/Automake/Variable.pm (define): Do not warn about variables
2641 starting with `_' which are an issue on NEWS-OS 4.2R. According
2642 to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version
2643 was released on 1996 and is not in wide use. On the other hand,
2644 variables starting with `_' are mandatory in several situations,
2645 so diagnosing them is more annoying than useful.
2646 * tests/canon5.test: Do not use -Wno-portability.
2647 * tests/vars2.test: Delete.
2648 * tests/Makefile.am (TESTS): Remove vars2.test.
2649 Suggested by Jim Meyering.
2651 2003-08-09 Raja R Harinath <harinath@acm.org>
2653 * lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
2654 * lib/Automake/tests/DisjConditions.pl (test_ambig): Test
2655 Automake::Disjunctions::ambiguous_p.
2657 2003-08-07 Alexandre Duret-Lutz <adl@gnu.org>
2659 * lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
2660 * lib/Automake/DisjConditions.pm (ambiguous_p): ... here.
2661 * automake.in (rule_define): Adjust usage.
2662 * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
2664 * lib/Automake/Options.pm: New file.
2665 * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm.
2666 * automake.in (FOREIGN, GNU, GNITS, $default_strictness)
2667 ($default_strictness_name, $strictness, $strictness_name)
2668 (%options, %global_options, process_option_list)
2669 (set_strictness): Remove, now in Options.pm.
2670 (initialize_per_input): Call Automake::Options::reset.
2671 (handle_options, get_object_extension, get_object_extension)
2672 (handle_languages, handle_single_transform_list, handle_compile)
2673 (handle_texinfo_helper, handle_man_pages, handle_dist)
2674 (handle_configure, do_check_merge_target)
2675 (handle_factored_dependencies, handle_tests)
2676 (handle_minor_options, scan_autoconf_traces, check_cygnus)
2677 (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define)
2678 (make_paragraphs, am_install_var, parse_arguments): Adjust
2679 to set and read options via the new interface.
2681 2003-08-07 Raja R Harinath <harinath@acm.org>
2683 * Makefile.am (maintainer-check): Update perllibdir.
2684 * lib/Automake/Makefile.am (Config.pm): Depend on Makefile too.
2685 (EXTRA_DIST): Add Config.in.
2686 * Makefile.in, lib/Automake/Makefile.in: Regenerate.
2687 * tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in
2690 2003-08-06 Raja R Harinath <harinath@acm.org>
2692 * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
2693 from the builddir too, to pick up Automake::Config.
2694 * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
2695 * configure: Regenerate.
2696 * automake.in (BEGIN): Handle multiple directories in $perllibdir.
2697 * aclocal.in (BEGIN): Likewise.
2699 2003-08-07 Alexandre Duret-Lutz <adl@gnu.org>
2701 * tests/ltcond.test: Thinko.
2703 2003-08-06 Alexandre Duret-Lutz <adl@gnu.org>
2705 * lib/Automake/Config.in: New file.
2706 * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
2707 CLEANFILES): New variables.
2708 (Config.pm): New rule.
2709 * Makefile.am (maintainer-check): Adjust expected differences
2710 between automake.in and automake.
2711 * aclocal.in, automake.in: Use Automake::Config.
2713 2003-08-05 Alexandre Duret-Lutz <adl@gnu.org>
2715 * tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.
2717 * automake.in (handle_texinfo_helper): Use the user definition
2718 of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR.
2719 * tests/txinfo22.test: New file.
2720 * tests/Makefile.am (TESTS): Add txinfo22.test.
2721 Report from Tom Tromey.
2723 2003-08-03 Raja R Harinath <harinath@acm.org>
2725 * lib/Automake/Variable.pm (@EXPORT): Remove
2726 traverse_variable_recursively and
2727 require_variables_for_variable.
2728 (require_variables_for_variable, traverse_variable_recursively)
2729 (_traverse_variable_recursively_worker): Convert to
2730 Automake::Variable methods, remove support for being
2731 invoked with variable names, and rename to ...
2732 (requires_variables, traverse_recursively)
2733 (_do_recursive_traversal): ... these.
2734 (_value_as_list_recursive_worker, transform_variable_recursively):
2735 Update to reflect changes.
2736 * automake.in (handle_LIBOBJS, handle_ALLOCA)
2737 (handle_libraries, handle_ltlibraries, am_primary_prefixes):
2739 (define_objects_from_sources): Fix typo in comment.
2741 2003-08-02 Raja R Harinath <harinath@acm.org>
2743 * automake.in (handle_source_transform): Replace 'grep' with 'map'.
2744 (register_language): Replace 'grep' with 'foreach' modifier.
2746 2003-08-01 Raja R Harinath <harinath@acm.org>
2748 * lib/Automake/Variables.pm (variables): Return a list of
2749 Automake::Variable instances, not a list of strings.
2750 (dump): Remove support for being invoked with a string.
2751 (variables_dump): Adapt to these changes.
2752 * automake.in (check_typos): Likewise.
2753 (am_primary_prefixes): Likewise.
2755 2003-07-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
2757 * lib/depcomp (aix): Support AIX Compiler version 6.
2759 2003-07-31 Alexandre Duret-Lutz <adl@gnu.org>
2761 * automake.texi (A Shared Library): Rewrite and split into
2762 subsections. Valuable comments from Norman Gray, Harlan Stenn,
2763 Tim Van Holder, and Guido Draheim.
2764 * tests/ltcond.test, tests/ltcond2.test, tests/ltconv.test: New files.
2765 * tests/Makefile.am (TESTS): Add them.
2767 2003-07-30 Alexandre Duret-Lutz <adl@gnu.org>
2769 * automake.in (handle_single_transform_list): Complain about
2770 foo.$(OBJEXT) being created both with libtool and without, not
2772 Report from Tim Van Holder.
2774 2003-07-29 Alexandre Duret-Lutz <adl@gnu.org>
2776 * Makefile.am (FETCHFILES, fetch): Add config-ml.in and
2778 * lib/config.sub, lib/config-ml.in, lib/texinfo.tex: New
2781 2003-07-28 Alexandre Duret-Lutz <adl@gnu.org>
2783 * automake.in (handle_configure): Cosmetic change to avoid
2784 a maintainer-check complaint.
2786 2003-07-27 Alexandre Duret-Lutz <adl@gnu.org>
2788 * lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
2789 (variable_dump): Replace by ...
2790 (dump): ... this method.
2791 (rdef, _check_ambiguous_condition): Adjust to use ->dump.
2792 (define, variables_dump): Adjust to use Automake::Variable::dump
2794 * lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
2795 * automake.texi (Built sources example): Adjust example.
2797 2003-07-26 Alexandre Duret-Lutz <adl@gnu.org>
2799 * automake.in (get_object_extension, handle_languages)
2800 (handle_single_transform_list, handle_compile, handle_compile)
2801 (handle_texinfo_helper, handle_texinfo_helper, handle_man_pages)
2802 (handle_tests, handle_minor_options, check_gnu_standards)
2803 (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define):
2804 Simplify "if (defined $options{'X'})" into "if ($options{'X'})".
2806 Complete changes from 2003-07-08.
2807 * automake.in ($cmdline_use_dependencies, $use_dependencies): Remove,
2808 replaced by $options{'no-dependencies'}.
2809 ($global_options): Remove.
2810 (%global_options): New variable.
2811 (initialize_per_input): Empty %options.
2812 (process_option_list): Take a location and %options ref argument,
2813 process no-dependencies as other options.
2814 (handle_options): Do not reparse the global options, just initialize
2815 %options from %global_options and fill it with local options.
2816 (handle_languages, handle_single_transform_list)
2817 (handle_configure, check_cygnus): Adjust usage of
2818 $options{'no-dependencies'}.
2819 (make_paragraphs): Adjust usage of $options{'cygnus'}.
2820 (parse_arguments): Set cygnus and no-dependencies in %global_options.
2821 (scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list
2822 to fill %global_options.
2824 2003-07-25 Alexandre Duret-Lutz <adl@gnu.org>
2826 * tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
2827 avoid the use of tar.
2829 2003-07-24 Alexandre Duret-Lutz <adl@gnu.org>
2831 * tests/gnuwarn2.test: Typo.
2833 * tests/insthook.test: Use $MAKE, not make.
2835 Fix missing rebuilds during `make dist' with BSD make.
2836 * automake.in (generate_makefile): Do not push Makefile.in, and
2837 Makefile.am into DIST_COMMON here.
2838 * lib/am/configure.am (DIST_COMMON): Do it here, and use
2839 %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON
2840 actually match the targets. Prefix `configure' with `$(srcdir)/'
2841 to match the target.
2842 * tests/remake4.test: New file.
2843 * tests/Makefile.am (TESTS): Add remake4.test.
2844 Report from Akim Demaille.
2846 2003-07-23 Alexandre Duret-Lutz <adl@gnu.org>
2848 * automake.in (handle_multilib): Register all-multi.
2849 (file_contents_internal): Insert \n when concatenating actions
2850 from "factored" rules.
2851 * lib/config-ml.in: New file, from GCC, including a patch
2852 from Ralf Corsepius (see GCC's PR 11526).
2853 * lib/symlink-tree.in: New file, from GCC.
2854 * lib/Makefile.am (dist_script_DATA): Add config-ml.in and
2856 * lib/am/clean.am (distclean-generic): Do not delete Makefile here...
2857 (distclean, maintainer-clean): ... do it here.
2858 * lib/am/depend.am (distclean-depend): Likewise, replace by
2859 (distclean, maintainer-clean): ... these.
2860 * lib/am/multilib.am (all-recursive, install-recursive,
2861 mostlyclean-recursive, clean-recursive, distclean-recursive,
2862 maintainer-clean-recursive): Remove these rules.
2863 (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace
2865 (mostlyclean, clean, distclean, maintainer-clean): ... these.
2866 (all-am): Remove, done in handle_multilib.
2867 (install-am): Replace by ...
2868 (install-exec-am): ... this.
2869 * tests/Makefile.am (TESTS): Add multlib.test.
2870 * tests/multlib.test: New file, based on a test case by
2873 2003-07-23 Tom Tromey <tromey@redhat.com>
2875 * lib/missing (autom4te): Typo.
2877 2003-07-16 Derek Price <derek@ximbiot.com>
2879 * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
2880 (handle_configure): Handle adding AC_CONFIG_LINKS arguments to
2881 distclean targets (CONFIG_CLEAN_FILES makefile var).
2882 * NEWS: Note new handling of AC_CONFIG_LINKS.
2883 * automake.texi (Other things Automake recognizes): Ditto.
2884 * tests/Makefile.am (TESTS): Add new tests.
2885 * tests/conflnk.test: New test that links are cleaned on distclean.
2886 * tests/conflnk2.test: New test that source files for links are
2889 2003-07-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (tiny change)
2891 * automake.in (scan_autoconf_traces): Trace AM_ENABLE_MULTILIB to
2892 render $seen_multilib functional again.
2894 2003-07-10 Raja R Harinath <harinath@cs.umn.edu>
2896 Avoid using refs as hash keys.
2897 * lib/Automake/Variable.pm ($_traversal): New.
2898 (reset): Reset $_traversal.
2899 (_new): New attribute 'scanned'.
2900 (%_vars_scanned): Remove.
2901 (traverse_variable_recursively)
2902 (traverse_variable_recursively_worker):
2903 Use $_traversal instead of %_vars_scanned to detect recursively
2906 * lib/am/configure.am (am--refresh): Silence.
2908 2003-07-10 Alexandre Duret-Lutz <adl@gnu.org>
2910 * lib/Automake/Variable.pm (define): Make clear the diagnostic
2911 about variable names starting with `_' is about *Make* variables.
2913 For Debian Bug #193907:
2914 * automake.texi (Clean): make maintainer-clean should still
2915 allow ./configure && make to run.
2917 * automake.texi (CVS): Typo.
2919 2003-07-09 Alexandre Duret-Lutz <adl@gnu.org>
2921 * aclocal.in: Use Automake::FileUtils.
2922 (parse_arguments, scan_configure, scan_m4_files): Never call
2923 "die" to print an error message. Use print and exit.
2924 * automake.in: Use Automake::FileUtils.
2925 * lib/Automake/General.pm ($debug, $help, $tmp, $verbose,
2926 $version, &debug, &getopt, &mktmpdir, &verbose): Remove.
2927 (END): Do not massage Perl's exit code. Do not clean any temporary
2929 (find_file, mtime, update_file, xsystem, contents): Move to ...
2930 * lib/Automake/FileUtils.pm: ... this new file. Adjust to
2931 report errors using Channels.
2932 (handle_exec_errors, xqx): New functions, from Autoconf.
2933 * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
2935 * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
2936 Return the empty list on recursively defined variable. This
2937 supersedes my change of 2003-07-02.
2939 2003-07-08 Akim Demaille <akim@epita.fr>
2941 * automake.in ($cygnus_mode): Replace with $options{'cygnus'}.
2942 Adjust all dependencies.
2943 (&depend): Move next to %dependencies and prototype.
2944 (&initialize_per_input): Initialize the 'cygnus' field of
2945 '%options' to spare the code from 'exists' or 'defined' when
2947 (&handle_configure, &do_check_merge_target, &check_cygnus): Prototype.
2948 (&parse_arguments): Rename '%options' and '%options_1st_pass' as
2949 '%cli_options' and '%cli_options_1st_pass' to avoid clashes and
2952 2003-07-07 Alexandre Duret-Lutz <adl@gnu.org>
2954 * automake.in (generate_makefile): Move near the end of the
2955 file, after the definition of all called functions, so that
2956 prototypes can be enforced.
2958 2003-07-06 Akim Demaille <akim@epita.fr>
2960 * lib/am/subdirs.am (RECURSIVE_TARGETS): Move install-recursive,
2961 install-exec-recursive, install-data-recursive and
2962 uninstall-recursive addition to...
2963 * lib/am/texinfos.am: here.
2964 * lib/am/texinfos.am, lib/am/subdirs.am: Remove the .PHONY
2965 declaration of RECURSIVE_TARGETS.
2967 2003-07-06 Akim Demaille <akim@epita.fr>
2969 * lib/Automake/Variable.pm, lib/Automake/VarDef.pm (VAR_SORTED):
2972 * automake.in (&handle_subdirs): Prototype.
2974 Make RECURSIVE_TARGETS a VAR_SORTED.
2976 2003-07-06 Akim Demaille <akim@epita.fr>
2978 * automake.in (&define_files_variable): New.
2979 (&handle_texinfo_helper): Move the handling of user variables from
2981 (&handle_texinfo): here.
2982 This is to balance the size of these functions, and to match the
2983 convention of other _helper functions.
2984 (&handle_texinfo_helper): Use &define_files_variable.
2985 Move some code to use less variables.
2986 Rename $info_cursor as $texi.
2987 (&handle_texinfo): Do not call handle_texinfo_helper if there are
2989 * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps
2991 Remove *-recursive targets from .PHONY, they are part of
2992 $(RECURSIVE_TARGETS) anyway.
2993 (install-info, mostlyclean-aminfo): Are .PHONY.
2995 2003-07-05 Akim Demaille <akim@epita.fr>
2997 * lib/am/distdir.am: Use ';' as a terminator, not a separator, for
2998 sed complex commands, as required by NetBSD sed.
2999 Reported by Patrick Welche.
3001 2003-07-05 Alexandre Duret-Lutz <adl@gnu.org>
3003 * lib/config.guess, lib/config.sub: New upstream version.
3005 2003-07-04 Alexandre Duret-Lutz <adl@gnu.org>
3007 * automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
3008 are automatically distributed.
3010 * lib/depcomp (icc): Update to grok ICC 7.1's output.
3011 * m4/depend.m4 (_AM_DEPENDENCIES): Check dependency generation
3012 in a subdirectory, and with many dependencies. This
3013 catches more failures of depcomp.
3014 Reports from Ralf Wildenhues and Akim Demaille.
3016 2003-07-04 Akim Demaille <akim@epita.fr>
3018 * automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
3019 (&handle_texinfo_helper, &handle_texinfo): Formatting changes.
3021 Don't use & when calling functions.
3023 2003-07-03 Alexandre Duret-Lutz <adl@gnu.org>
3025 * NEWS: Categorize entries.
3026 Suggested by Jim Meyering.
3028 * Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
3029 Ignore @...@ substitutions in comments.
3030 * tests/defs.in: Try to make the shell more POSIX compliant.
3031 (AUTOMAKE_run, AUTOMAKE_fails): New functions.
3032 * tests/README: Mention AUTOMAKE_fails.
3033 * tests/alloca.test, tests/alloca2.test, tests/ansi8.test,
3034 * tests/asm.test, tests/backsl3.test, tests/backsl4.test,
3035 * tests/badline.test, tests/badopt.test, tests/canon.test,
3036 * tests/canon5.test, tests/colneq.test, tests/comment3.test,
3037 * tests/comment5.test, tests/cond2.test, tests/cond20.test,
3038 * tests/cond23.test, tests/cond24.test, tests/cond27.test,
3039 * tests/condinc2.test, tests/conff2.test, tests/cxx2.test,
3040 * tests/dejagnu2.test, tests/dirforbid.test,
3041 * tests/distcom3.test, tests/else.test, tests/exdir2.test,
3042 * tests/exeext2.test, tests/gcj2.test, tests/gcj5.test,
3043 * tests/getopt.test, tests/gettext.test, tests/gettext2.test,
3044 * tests/gnits.test, tests/gnuwarn.test, tests/gnuwarn2.test,
3045 * tests/insh.test, tests/lex2.test, tests/libobj10.test,
3046 * tests/libobj12.test, tests/libobj13.test,
3047 * tests/libobj3.test, tests/library2.test,
3048 * tests/library3.test, tests/libtool4.test,
3049 * tests/libtool6.test, tests/lisp2.test, tests/location.test,
3050 * tests/nogzip2.test, tests/output5.test, tests/overrid.test,
3051 * tests/percent.test, tests/percent2.test,
3052 * tests/pluseq5.test, tests/pluseq7.test, tests/pluseq9.test,
3053 * tests/pr211.test, tests/primary.test, tests/primary2.test,
3054 * tests/python2.test, tests/recurs.test, tests/reqd2.test,
3055 * tests/seenc.test, tests/specflg.test, tests/specflg2.test,
3056 * tests/spell.test, tests/spell2.test, tests/srcsub.test,
3057 * tests/srcsub2.test, tests/stdlib.test, tests/subdir7.test,
3058 * tests/substtarg.test, tests/suffix11.test,
3059 * tests/symlink.test, tests/syntax.test,
3060 * tests/targetclash.test, tests/txinfo4.test,
3061 * tests/version3.test, tests/warnopts.test,
3062 * tests/xsource.test, tests/yacc2.test: Use set -e,
3063 AUTOMAKE_fails, and always grep error message.
3065 * automake.in (handle_ltlibraries): Fix call to msg.
3067 * tests/stamph.test: Delete.
3068 * tests/Makefile.am (TESTS): Remove stamph.test.
3070 * automake.in (handle_single_transform_list): Use $var->name
3071 to print variable in the configure-substitution diagnostic.
3072 Do not mention the parent when it is the variable itself.
3074 * tests/package.test: Delete.
3075 * tests/Makefile.am (TESTS): Remove package.test.
3077 * automake.in (cond_stack_else): Return FALSE if `if' was not
3079 (cond_stack_endif): Return TRUE if `if' was not used. Do not
3080 display $negate and $cond, they are irrelevant and maybe undefined.
3082 2003-07-02 Alexandre Duret-Lutz <adl@gnu.org>
3084 * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
3085 Do not return undef when a variable is recursively defined, this
3086 causes warnings all over the place. Return the empty string instead.
3088 * lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
3089 from empty DIST_ARCHIVES.
3091 2003-07-01 Alexandre Duret-Lutz <adl@gnu.org>
3093 * automake.in (scan_autoconf_traces): Check the expected
3094 number of arguments of each traced macro.
3095 * tests/overrid.test: Fix call to AM_CONDITIONAL.
3096 * tests/conff2.test: New files.
3097 * tests/Makefile.am (TESTS): Add conff2.test.
3098 Report from Paolo Bonzini.
3100 2003-06-30 Alexandre Duret-Lutz <adl@gnu.org>
3102 * automake.in ($SUBST_REF_PATTERN): Do not define.
3103 (%gen_varname): Move to Variable.pm, as %_gen_varname.
3104 (initialize_per_input): Do not clean %gen_varname.
3105 (handle_options, check_libobjs_sources, handle_source_transform,
3106 handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper,
3107 handle_man_pages, handle_dist, handle_subdirs, handle_gettext,
3108 am_install_var): Adjust to use value_as_list_recursive,
3109 loc_and_value_as_list_recursive, and has_conditional_contents.
3110 (require_file_with_macro): Accept an Automake::Variable as argument.
3111 (traverse_variable_recursively,
3112 traverse_variable_recursively_worker, gen_varname,
3113 transform_variable_recursively): Move ...
3114 * lib/Automake/Variable.pm (traverse_variable_recursively,
3115 _traverse_variable_recursively_worker,
3116 _gen_varname, transform_variable_recursively): ... here.
3117 * automake.in (variable_conditionally_defined,
3118 variable_value_as_list_recursive_worker,
3119 variable_value_as_list_recursive
3120 variable_loc_and_value_as_list_recursive): Move ...
3121 * lib/Automake/Variable.pm (has_conditional_contents,
3122 _value_as_list_recursive_worker,
3123 value_as_list_recursive, loc_and_value_as_list_recursive): ... here.
3124 (reset): Reset %_gen_varname.
3125 (require_variables_for_variable): Accept an Automake::Variable
3128 2003-06-27 Alexandre Duret-Lutz <adl@gnu.org>
3130 * tests/aclocal6.test: Test maintainer-clean in VPATH
3131 builds. (For Ralf's fix.)
3133 2003-06-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (tiny change)
3135 * lib/am/configure.am (maintainer-clean): Remove
3136 $(top_srcdir)/autom4te.cache, not autom4te.cache.
3138 2003-06-27 Akim Demaille <akim@epita.fr>
3140 * automake.texi: Use @node with a single argument.
3142 2003-06-27 Alexandre Duret-Lutz <adl@gnu.org>
3144 * m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.
3146 * lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
3147 at the end of distcheck. This was mistakenly removed on
3149 * tests/subpkg.test: Make sure distcheck cleans up after itself.
3151 * m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
3152 ($(top_srcdir)/m4/amversion.m4): ... this.
3153 (DISTCLEANFILES): Remove.
3154 (nodist_m4data_DATA): Remove. amversion.m4 is automatically
3156 (EXTRA_DIST): Add amversion.in.
3158 2003-06-25 Akim Demaille <akim@epita.fr>
3160 * automake.texi (Top): Use @copying and @insertcopying.
3161 Make Alexandre an author.
3162 * automake.in ($gen_copyright): Add the "(C)" to Copyright.
3163 * lib/depcomp: Likewise.
3165 2003-06-23 Alexandre Duret-Lutz <adl@gnu.org>
3167 * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
3168 (variable_defined, examine_variable): Remove.
3169 (%_ac_macro_for_var): Add an entry for ALLOCA.
3170 (require_variables): Use vardef instead of variable_defined.
3172 * automake.in (generate_makefile): Do not push $(SOURCE) into
3173 @sources. Use define_pretty_variable to define SOURCES.
3174 (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable
3175 to require LIBOBJS, LTLIBOBJS and ALLOCA.
3176 (handle_programs, handle_ltlibraries): Do not define an empty
3177 _DEPENDENCIES or _LDFLAGS variable when none is defined.
3178 (define_configure_variable): Do not check whether the variable
3179 already exists (it's Automake::Variable::define's job).
3180 (require_build_directory): Likewise, do not check
3181 the existence of am__dirstamp.
3182 (generate_makefile, handle_options, handle_languages)
3183 (check_libobjs_sources, handle_single_transform_list)
3184 (traverse_variable_recursively_worker, handle_source_transform)
3185 (handle_lib_objects, handle_LIBOBJS, handle_compile)
3186 (handle_libtool, handle_programs, handle_libraries)
3187 (handle_ltlibraries, check_typos, handle_texinfo_helper)
3188 (handle_man_pages, handle_tags, handle_dist, handle_subdirs)
3189 (scan_aclocal_m4, handle_gettext, handle_footer, handle_install)
3190 (handle_all, do_check_merge_target, handle_clean, lang_c_finish)
3191 (handle_tests, lang_yacc_target_hook, define_pretty_variable)
3192 (define_compiler_variable, define_linker_variable)
3193 (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to
3194 call var, vardef, or set_seen, instead of variable_defined. Use
3195 set_seen only for variables which are actually checked by
3197 * tests/target.test: Delete.
3198 * tests/alloca.test, tests/alloca2.test: New files.
3199 * tests/libobj3.test: Check error message.
3200 * tests/distcom4.test: Make sure configure is in DIST_COMMON.
3201 This replace confdist.test.
3202 * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test.
3203 (TESTS): Add alloca.test and alloca2.test. Remove confdist.test.
3205 2003-06-20 Alexandre Duret-Lutz <adl@gnu.org>
3207 * automake.in (handle_dist): Delete DIST_COMMON before redefining
3208 it. Bug report from Akim Demaille.
3209 (rewrite_inputs_into_dependencies): Make sure we always return
3210 something, even when $add_srcdir is 0.
3211 * tests/distcom4.test, tests/distcom5.test: New files.
3212 * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
3214 * tests/cond29.test: Also check for _SOURCES.
3215 Report from Paolo Bonzini.
3217 2003-06-20 Akim Demaille <akim@epita.fr>
3219 * lib/am/configure.am: Replace leading spaces with a real tab.
3221 2003-06-15 Alexandre Duret-Lutz <adl@gnu.org>
3223 * tests/nogzip.test, tests/nogzip2.test: New files.
3224 * tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test
3226 2003-06-15 Akim Demaille <akim@epita.fr>
3228 * automake.in (&make_paragraphs): Define %GZIP%.
3229 (&process_option_list): Accept no-dist-gzip2.
3230 (&handle_dist): Complain when no archive format is enabled.
3231 * lib/am/distdir.am (DIST_ARCHIVES): New variable.
3232 (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
3234 (dist): Build $(distdir).tar.gz conditionally.
3235 (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
3236 to list built archives. Run $(MAKE) dist instead of dist-gzip.
3237 * automake.texi (Options, The types of distributions): Adjust.
3239 2003-06-15 Jens Elkner <elkner@imsgroup.de> (tiny change)
3241 * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
3244 2003-06-14 Karl Berry <karl@gnu.org>
3245 Alexandre Duret-Lutz <adl@gnu.org>
3247 * mkinstalldirs (scriptversion): New variable. Setup emacs hooks
3248 to update it each time the file is written, as in install-sh.
3249 (usage): Improve message.
3250 (--version): New option.
3251 (--help): Output to stdout, not stderr.
3253 2003-06-13 Paul Eggert <eggert@twinsun.com>
3255 * lib/install-sh (dsttmp, rmtmp): Do not use '#' in file names;
3256 it's not guaranteed by POSIX and it doesn't work on OpenVMS.
3257 Bug reported by Bernard Giroud in:
3258 http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html
3260 2003-06-05 Alexandre Duret-Lutz <adl@gnu.org>
3262 * automake.in (check_gnu_standards): Use no-installman and
3263 no-installinfo's locations.
3264 (process_option_list): Fill %options with locations.
3265 (check_cygnus) Fill $options{'no-installinfo'} and
3266 $options{'no-dependencies'} with $cygnus_mode, so that it
3268 * tests/gnuwarn2.test: New file.
3269 * tests/Makefile.am (TESTS): Add gnuwarn2.test.
3271 2003-06-04 Alexandre Duret-Lutz <adl@gnu.org>
3273 * automake.in (process_option_list): Record the location
3274 of ansi2knr's definition.
3275 (handle_compile): Use it.
3276 * tests/ansi3.test: Make sure the location appears correctly.
3277 Update to use set -e.
3278 * tests/ansi3b.test: New file.
3279 * tests/Makefile.am (TESTS): Add ansi3b.test.
3281 * tests/alpha.test: Really run $MAKE. Augment to test
3282 subdirectories, and check-news report.
3283 * tests/alpha2.test: New file. Bug report from Akim Demaille.
3284 * tests/gnits2.test: Make sure README-alpha is not distributed.
3285 * tests/Makefile.am (TESTS): Add alpha2.test.
3286 * automake.in (handle_minor_options): Distribute README-alpha
3287 using push_dist_common, not require_file_with_macro.
3289 2003-06-03 Alexandre Duret-Lutz <adl@gnu.org>
3291 * lib/Automake/Configure_ac.pm
3292 (search_configure_ac, find_configure_ac): Rename as ...
3293 (find_configure_ac, require_configure_ac): ... these.
3294 * aclocal.in (scan_configure): Adjust call to require_configure_ac.
3295 * automake.in (scan_autoconf_files): Likewise.
3296 Suggested by Tim Van Holder.
3298 * alocal.in: Use Automake::Configure_ac.
3299 ($configure_ac): Delete.
3300 (scan_configure): Adjust use of find_configure_ac;
3301 * automake.in: Use Automake::Configure_ac.
3302 ($configure_ac): Delete.
3303 (scan_autoconf_files): Adjust use of find_configure_ac;
3304 * lib/Automake/Configure_ac.pm: New file.
3305 * lib/Automake/General.pm (find_configure_ac): Delete. Now
3306 replaced by Automake::Configure_ac::search_configure_ac.
3307 * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
3308 * lib/Automake/Variable.pm: Use Automake::Configure_ac.
3309 (require_variables): Adjust use of $configure_ac.
3311 2003-06-02 Akim Demaille <akim@epita.fr>
3313 * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
3314 * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
3315 * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
3316 * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
3317 * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
3318 * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
3319 * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
3320 * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
3321 * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
3322 * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
3323 * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
3324 * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
3325 * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
3326 * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
3327 * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
3328 * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
3329 * m4/Makefile.am: White space changes and Copyright updates.
3331 2003-05-29 Alexandre Duret-Lutz <adl@gnu.org>
3333 * lib/Automake/Variable.pm (check_defined_unconditionally): Add
3334 the $parent_cond argument.
3335 (output): Use $self->name in diagnostic not $self.
3336 (variable_value_as_list): Rename as ...
3337 (value_as_list): ... this. Declare as a method. Take a $parent_cond
3338 argument and pass it to check_defined_unconditionally. Do not call
3339 variable_assert, now that this is a method.
3340 (variable_assert): Delete (unused).
3341 * automake.in (traverse_variable_recursively_worker): Adjust to
3342 use check_defined_unconditionally and value_as_list as a methods.
3344 * lib/Automake/Variable.pm (output): Declare as a method, since it
3345 is only used this way.
3346 (define): Fix documentation of $cond.
3347 Suggested by Raja R. Harinath.
3349 2003-05-25 Alexandre Duret-Lutz <adl@gnu.org>
3351 * lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
3352 * lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
3354 * automake.in: Use Automake::Variable and Automake::VarDef.
3355 (MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
3356 (am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
3357 (ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
3358 (silent_variable_override): Delete. Now
3359 Automake::Variable::_silent_variable_override.
3360 (var_value, var_location, var_comment, var_type, var_owner,
3361 var_pretty, content_seen): Delete. This functionality is now
3362 offered by Automake::Variable and Automake::VarDef.
3363 (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
3364 Delete. Now defined in Automake::VarDef.
3365 (var_order): Delete. Now Automake::Variable::_var_order.
3366 (appendvar): Delete. Now Automake::Variable::_appendvar.
3367 (var_SUFFIX_trigger): Register using Automake::Variable::hook.
3368 (initialize_per_input): Call Automake::Variable::reset.
3369 (err_var, msg_cond_var, msg_var, reject_var): Delete. Now
3370 defined in Automake::Variable.
3371 (generate_makefile, process_option_list, handle_languages)
3372 (traverse_variable_recursively_worker)
3373 (transform_variable_recursively, handle_compile)
3374 (handle_libraries, handle_ltlibraries)
3375 (check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
3376 Adjust to use Automake::Variable functions.
3377 (check_ambiguous_condition): Delete. Now
3378 Automake::Variable::_check_ambiguous_condition.
3379 (condition_ambiguous_p): Delete. Now
3380 Automake::Variable::condition_ambiguous_p.
3381 (variable_not_always_defined_in_cond): Delete. Now
3382 Automake::Variable::not_always_defined_in_cond.
3383 (macro_define): Delete. Now Automake::Variable::define.
3384 (macro_delete): Delete. Now Automake::Variable::variable_delete.
3385 (macro_dump): Delete. Now Automake::Variable::variable_dump.
3386 (macros_dump): Delete. Now Automake::Variable::variables_dump.
3387 (variable_defined): Delete. Now
3388 Automake::Variable::variable_defined, with the target check
3389 temporarily disabled.
3390 (variable_assert): Delete. Now Automake::Variable::variable_assert.
3391 (examine_variable): Delete. Now
3392 Automake::Variable::examine_variable.
3393 (variable_conditions): Delete. Now Automake::Variable::conditions.
3394 (scan_variable_expansions): Delete. Now
3395 Automake::Variable::scan_variable_expansions.
3396 (check_variable_expansions): Delete. Now
3397 Automake::Variable::check_variable_expansions.
3398 (check_variable_defined_unconditionally): Delete. Now
3399 Automake::Variable::check_defined_unconditionally.
3400 (variable_value): Delete. Now Automake::Variable::variable_value.
3401 (variable_value_as_list): Delete. Now
3402 Automake::Variable::variable_value_as_list.
3403 (variable_value_as_list_recursive_worker): Adjust to use
3404 Automake::Variable functions.
3405 (variable_output): Delete. Now Automake::Variable::output.
3406 (define_pretty_variable, define_configure_variable, read_am_file)
3407 (define_standard_variables, read_main_am_file): Adjust to use
3408 Automake::Variable functions.
3409 (handle_variables): Delete. Now Automake::Variable::output_variables.
3410 (file_contents_internal, am_primary_prefixes, am_install_var)
3411 (require_file_with_macro, require_conf_file_with_macro)
3412 (push_dist_common): : Adjust to use
3413 Automake::Variable functions.
3414 (require_variables): Delete. Now
3415 Automake::Variable::require_variables.
3416 (require_variables_for_macro): Delete. Now
3417 Automake::Variable::require_variables_for_variable.
3418 * tests/Makefile.am (XFAIL_TESTS): Add target.test.
3420 2003-05-25 Christian Cornelssen <ccorn@cs.tu-berlin.de> (tiny change)
3422 * tests/dejagnu7.test: Check if runtest supports --status.
3424 2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
3426 * lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
3429 * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
3430 $self contains only one Condition.
3432 * automake.in: Use plain strict, including refs.
3433 (macro_define, handle_single_transform_list): Use \&{'name'} to
3434 build references to named subroutines.
3436 2003-05-22 Karl Berry <karl@gnu.org>
3438 * automake.texi: Update @dircategory to match the Free Software
3439 Directory. End directory entries with dots.
3441 2003-05-22 Alexandre Duret-Lutz <adl@gnu.org>
3443 * automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
3445 * lib/elisp-comp: s/François/Franc,ois/.
3446 Suggested by Paul Eggert.
3448 * automake.in: Move the "main" code at the end.
3449 (parse_arguments): Move near the end.
3450 ($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
3451 accept_extensions, var_SUFFIXES_trigger): Move these definitions
3452 before any call to register_language.
3453 (am_file): Move the definition with all other global variables,
3454 do not use local to define it.
3455 * Makefile.am (maintainer-check): Expect no `local' in Automake.
3457 2003-05-21 Alexandre Duret-Lutz <adl@gnu.org>
3459 * lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
3460 * lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
3461 * lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
3462 * automake.in (handle_texinfo_helper, pretty_print_rule)
3463 (variable_output): Adjust to use makefile_wrap instead of
3464 pretty_print_internal.
3465 (pretty_print_internal): Remove. Renamed as Automake::Wrap::wrap
3466 and augmented to accept the $eol and $max_len arguments.
3468 2003-05-18 Alexandre Duret-Lutz <adl@gnu.org>
3470 * lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
3471 lib/texinfo.tex: New upstream versions.
3473 2003-05-17 Alexandre Duret-Lutz <adl@gnu.org>
3475 * lib/am/install.am (install, install-exec, install-data, uninstall):
3476 Declare conditionally using a if/else/endif block instead of
3477 using ?SUBDIRS?-style conditions. The latter fail when
3478 %maybe_BUILT_SOURCES% is replaced by several lines.
3479 This fixes a bug introduced on 2003-04-06.
3480 * tests/bsource.test: New file.
3481 * tests/Makefile.am (TESTS): Add bsource.test.
3482 Reported by Bruno Haible.
3484 2003-05-11 Alexandre Duret-Lutz <adl@gnu.org>
3486 * automake.texi (renamed objects): New node.
3487 (Program and Library Variables): Move maude_DEPENDENCIES closer
3488 to maude_LDADD. Define and use `per-target compilation flags' in the
3489 explanation for maude_CFLAGS et al. Link to the `renamed objects'
3490 node. Illustrate maude_SHORTNAME.
3492 2003-05-09 Alexandre Duret-Lutz <adl@gnu.org>
3494 * lib/install-sh: Update copyright notice and license to that of
3495 X11R6. This removes an advertising clause reported as Debian bug
3498 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
3500 * configure.in (ACLOCAL): Do not use -I, --acdir is enough.
3502 * m4/make.m4: Rename the doit target as am__doit,
3504 Reported by Philip S Tellis.
3506 2003-05-07 Alexandre Duret-Lutz <adl@gnu.org>
3508 * lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
3510 * tests/makej.test: New file (test Autom4te's cache locking,
3511 new in CVS Autoconf).
3512 * tests/Makefile.am (TESTS): Add makej.test.
3514 2003-05-06 Alexandre Duret-Lutz <adl@gnu.org>
3516 * lib/Automake/General.pm (contents): New function.
3517 * aclocal.in (greatest_mtime, force_output): New globals.
3518 (scan_configure, add_file): Update $greatest_mtime.
3519 (parse_arguments): Parse --force.
3520 (write_aclocal): Do not overwrite $output_file unless needed.
3521 * automake.texi (aclocal options): Document --force.
3522 * tests/aclocal7.test: New file.
3523 * tests/Makefile.am (TESTS): Add aclocal7.test.
3525 2003-05-05 Alexandre Duret-Lutz <adl@gnu.org>
3527 * automake.texi (Optional): Document m4_include.
3528 (Invoking aclocal): Shake a bit to introduce the various uses
3529 of aclocal and explain that aclocal will use m4_include for
3531 (Extending aclocal): Show how to install installable macros
3532 in $(datadir)/aclocal, and make it clearer that writing installable
3533 macros is not the only way to extend aclocal.
3534 (Local Macros, Future of aclocal): New sections.
3536 2003-04-27 Alexandre Duret-Lutz <adl@gnu.org>
3538 * automake.in (@common_files): Remove acinclude.m4 since
3539 it will be m4_included by aclocal.m4 and files are always
3541 (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
3542 We will get this dependency when tracing m4_includes.
3543 * tests/aclocal6.test: Make sure acinclude.m4 is distributed
3545 * tests/acinclude.test: Delete.
3546 * tests/Makefile.am (TESTS): Remove acinclude.test.
3548 2003-04-25 Alexandre Duret-Lutz <adl@gnu.org>
3550 * automake.in (handle_configure): Don't add @configure_deps to
3551 DIST_COMMON, we do this from lib/am/configure.am now.
3552 Define the am__configure_deps variable instead of substituing
3554 * lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
3555 $(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
3556 (DIST_COMMON): Add $(am__configure_deps).
3558 * tests/aclocal6.test: New file.
3559 * lib/am/configure.am (am--refresh): New rule.
3560 (%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
3561 $(top_srcdir)/configure): Call the top-level am--refresh from
3563 ($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%. Call the
3564 top-level am--refresh when not in the top-level directory.
3565 Fix jump directories for VPATH builds.
3566 Suggested by Raja R. Harinath.
3568 2003-04-24 Alexandre Duret-Lutz <adl@gnu.org>
3570 * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
3571 and glob for m4_files (We've got all local m4 files while
3572 tracing m4_include's). Diagnose ACLOCAL_M4_SOURCES as obsolete.
3573 Distribute aclocal.m4 only at the top-level.
3574 (my_glob): Remove. This fixes PR automake/11.
3575 (handle_dist): Strip leading `./' from directories.
3576 * aclocal.in (add_file): Output 'm4_include([file.m4])' instead
3577 of copying local files.
3578 (write_aclocal, parse_arguments): Bump copyright date.
3579 * configure.in: De not build m4/amversion.m4 from here ...
3580 * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
3581 (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
3583 * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
3584 (TESTS): Remove aclocal2.test. Do not test aclocal.test twice.
3585 * tests/aclocal2.test: Delete (pointless).
3586 * tests/aclocal5.test: Make sure configure's dependencies are
3588 * tests/acinclude.test: Adjust to search for m4_include.
3589 * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
3590 configure instead of aclocal.m4.
3593 * automake.in (scan_aclocal_m4): Work in all directories, not only
3594 the top-level. Prepend $(top_srcdir) in front of each aclocal.m4
3596 * lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
3597 Define rebuild rules in each directory.
3598 * tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
3599 from the top-level directory.
3600 * tests/aclocal5.test: New file. Exercise aclocal.m4's dependencies
3601 from a subdirectory.
3602 * tests/Makefile.am (TESTS): Add aclocal5.test.
3603 (XFAIL_TESTS): Replace subdir8.test by aclocal5.test.
3605 2003-04-24 Akim Demaille <akim@epita.fr>
3606 Alexandre Duret-Lutz <adl@gnu.org>
3609 * lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
3610 because of one of configure's dependencies, run automake without
3611 argument to update the whole tree at once. Depend upon
3613 (%MAKEFILE%): If Makefile is rebuilt because config.status has
3614 been updated, run config.status without arguments.
3615 * automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
3616 before all files in @configure_deps.
3617 * tests/subdir5.test: Modernize configure.in, make sure
3618 maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
3619 * tests/subdir8.test: New file.
3620 * tests/Makefile.am (TESTS): Add subdir8.test.
3621 (XFAIL_TESTS): Replace subdir5.test by subdir8.test.
3623 2003-04-23 Alexandre Duret-Lutz <adl@gnu.org>
3625 * automake.texi (Requirements): Typo in index
3626 s/AC_CONFIG_FILE/AC_CONFIG_FILES/.
3628 * lib/texinfo.tex: New upstream version.
3630 2003-04-21 Jim Meyering <jim@meyering.net>
3632 * lib/mkinstalldirs: Remove each sequence of spaces before a
3634 * lib/depcomp: Search for TAB-SPC, not SPC-TAB.
3636 2003-04-19 Alexandre Duret-Lutz <adl@gnu.org>
3638 Fix for PR automake/389:
3639 * automake.in (handle_configure): Don't put $colon_infile in
3641 * tests/conff.test: New file.
3642 * tests/Makefile.am (TESTS): Add conff.test.
3643 Reported by Alexander Turbov.
3645 2003-04-18 Alexandre Duret-Lutz <adl@gnu.org>
3647 * tests/defs.in: Handle required=etags to work around
3650 * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
3653 * tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
3654 Distribute dejagnu test cases, so that distcheck actually runs them.
3656 2003-04-18 Richard Dawe <rich@phekda.freeserve.co.uk>
3658 * lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
3659 because we set that by invoking runtest with --tool.
3660 * tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
3661 dejagnu6.test, dejagnu7.test.
3662 * tests/dejagnu4.test: New test.
3663 * tests/dejagnu5.test: New test.
3664 * tests/dejagnu6.test: New test.
3665 * tests/dejagnu7.test: New test.
3667 * tests/dejagnu3.test: Make sure the DejaGnu test is actually run.
3669 2003-04-18 Jim Meyering <jim@meyering.net>
3671 * automake.in (variable_output): Fix typo in comment s/is/if/.
3673 * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
3674 directly to $@. Instead, redirect to $@t and rename upon success.
3675 Also, move the commands that update $@ so they are last. Otherwise,
3676 this rule could leave the user with an up to date target (.c file)
3677 but with a missing or corrupted corresponding .h file.
3679 2003-04-17 Richard Dawe <rich@phekda.freeserve.co.uk>
3681 * tests/defs.in: Handle required=runtest, to detect runtest
3683 * tests/Makefile.am (TESTS): Add dejagnu3.test.
3684 * tests/dejagnu3.test: New test.
3686 2003-04-16 Alexandre Duret-Lutz <adl@gnu.org>
3688 * automake.in (rule_define): If the user tries to override
3689 an Automake which has a -local variant, suggest using the
3690 -local variant in the -Woverride diagnostic.
3691 (handle_factored_dependencies): Register factored
3692 rules with rule_define, and define them only in undefined
3694 * tests/Makefile.am (TESTS): Add override.test.
3695 * tests/overrid.test: New file.
3696 * tests/phony.test: Count the number of .PHONY targets.
3698 2003-04-15 Alexandre Duret-Lutz <adl@gnu.org>
3700 * lib/am/distdir.am (distuninstallcheck, distcleancheck): Silence
3701 these rules, so that we don't confuse users by echoing
3702 "echo ERROR:" commands which are not run.
3704 2003-03-14 Richard Dawe <rich@phekda.freeserve.co.uk>
3705 Alexandre Duret-Lutz <adl@gnu.org>
3707 * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
3708 initialize_per_input): Add infrastructure for generating HTML
3709 documentation from texinfo source.
3710 * lib/am/texinfos.am: Add rules for building HTML documentation
3711 from texinfo source.
3712 * lib/am/texibuild.am: Likewise.
3713 * automake.texi (Texinfo): Document rules for building
3714 HTML documentation from texinfo source.
3715 * tests/txinfo21.test: New file.
3716 * tests/Makefile.am (TESTS): Add txinfo21.test.
3717 * tests/defs.in: Handle required=makeinfo-html.
3719 2003-04-14 Alexandre Duret-Lutz <adl@gnu.org>
3721 * automake.in (%silent_variable_override): New variable.
3722 (macro_define): Warn about variable definitions overriding
3724 (rule_define): Warn about target definitions overriding
3725 Automake variables. Fix $condmsg definition.
3726 * automake.texi (Invoking Automake): Document the `override'
3728 * lib/Automake/ChannelDefs.pm (usage): Likewise.
3729 * lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
3730 this is already done in m4/init.m4.
3731 * tests/dejagnu2.test: Run $MAKE, don't only grep. Use
3732 -Wno-override, and make sure we get a warning without.
3733 * tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
3734 and make sure we get a warning without.
3735 * tests/exeext3.test, tests/java2.test, tests/nolink.test,
3736 tests/subpkg.test, tests/vartest.test: Use -Wno-override.
3737 * tests/txinfo13.test: Use installcheck-local instead of overriding
3739 * tests/txinfo2.test: Run $MAKE on the real Makefile (this test
3740 used to succeed thanks to a failure...)
3741 * tests/location.test: Adjust expected messages.
3742 * tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.
3744 2003-04-12 Raja R Harinath <harinath@acm.org>
3746 * lib/Automake/DisjConditions.pm (true): Don't cache answer.
3747 (invert): Update comment.
3748 (_simplify): Remove.
3749 (simplify): Implement using invert().
3750 * lib/Automake/tests/DisjConditions.pl (test_simplify):
3751 Update to reflect changes.
3753 2003-04-12 Alexandre Duret-Lutz <adl@gnu.org>
3755 * automake.in (scan_autoconf_files): Augment the error message
3756 about AM_INIT_AUTOMAKE not found.
3757 Suggested by Bruno Haible.
3759 * lib/Automake/Version.pm: New file.
3760 * lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
3761 * lib/Automake/tests/Version.pl: New file.
3762 * lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
3763 * tests/Makefile.am (TESTS): Remove version5.test.
3764 * tests/version5.test: Delete. Move the tests to Version.pl.
3765 * automake.in (version_split, version_compare, version_check): Move ...
3766 * lib/Automake/Version.pm (split, compare, check): ... here.
3768 2003-04-11 Alexandre Duret-Lutz <adl@gnu.org>
3770 * lib/Automake/tests/Condition.pl (test_reduce_and)
3771 (test_reduce_or): Cosmetics.
3772 * lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
3774 * lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
3776 * tests/yacc8.test, configure.in: Update copyright year.
3778 2003-04-10 Richard Dawe <rich@phekda.freeserve.co.uk>
3780 * configure.in: Get the build platform name. Define
3781 MODIFICATION_DELAY as the time to wait after modifying a file,
3782 to cope with timestamp granularity issues, depending
3784 * tests/defs.in: Define `sleep' using MODIFICATION_DELAY.
3786 2003-04-10 Eric Siegerman <eric_97@pobox.com> (tiny change)
3788 * automake.texi (Public macros): Clarify that the new
3789 AM_INIT_AUTOMAKE variant is preferred, and the old one
3790 deprecated. Copy-edit the rest of the AM_INIT_AUTOMAKE item.
3791 (Hello): Caution that the example uses the deprecated
3792 AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.
3794 2003-04-10 Alexandre Duret-Lutz <adl@gnu.org>
3796 Retain all variable definitions until the whole Makefile.am has
3797 been processed, then output all variables in one step, at the top
3798 of Makefile.in. (Older revisions used to output user variables
3799 before generating Automake targets, and to mix Automake variables
3800 with Automake targets, preventing redefinitions of previously
3803 * automake.in (%var_pretty): New variable.
3804 (VAR_ASIS, VAR_PRETTY): New constants.
3805 (@var_list): Rename as ...
3806 (@var_order): ... this.
3807 (initialize_per_input): Clear %var_pretty.
3808 (handle_variables): New function, extracted from ...
3809 (read_main_am_file): ... here.
3810 (generate_makefile): Call handle_variable after everything else.
3811 (handle_dist): Use define_pretty_variable, not pretty_print.
3812 (pretty_print): Delete.
3813 (macro_define): Augment with $COMMENT and $PRETTY parameters.
3814 Update %var_comment, %var_pretty, and @var_order. Adjust callers.
3815 (variable_pretty_output): Merge with ...
3816 (variable_output): ... this, and choose the prettiness on a
3817 per-condition basis.
3818 (append_comments): Delete. This work is now done by macro_define.
3819 (read_am_file, file_contents_internal): Don't call append_comments
3820 nor update @var_list, adjust calls to macro_define.
3821 (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
3822 just mark it as VAR_PRETTY.
3823 * tests/exeext.test: Make sure bin_PROGRAMS is output only once.
3824 Report from Jim Meyering.
3826 2003-04-06 Alexandre Duret-Lutz <adl@gnu.org>
3828 * automake.in (handle_installdirs): Rename as ...
3829 (handle_install): ... this. Define maybe_BUILT_SOURCES.
3830 (generate_makefile): Adjust call to handle_install.
3831 * lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
3832 * automake.texi (Sources, Built sources example): BUILT_SOURCES
3833 is honored by `make install' too.
3834 * tests/check3.test: Make sure that `make install' also depends
3836 Report from Alexander Turbov.
3838 * lib/am/libs.am (ARFLAGS): Define.
3839 * automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
3841 * automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
3842 are used, and how they can be overridden.
3843 (Program and Library Variables): Adjust to show `$(ARFLAGS)'
3845 * tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
3846 * tests/ranlib.test: Delete, obsoleted by ar.test.
3847 * tests/Makefile.am (TESTS): Remove ranlib.test.
3848 Report from Paul Thomas.
3850 2003-04-03 Alexandre Duret-Lutz <adl@gnu.org>
3852 * automake.in (check_trailing_slash): New function (variation on
3853 a patch by Peter Muir). Diagnose whitespaces following trailing
3855 (read_am_file): Use it.
3856 * tests/backsl4.test: New file.
3857 * tests/Makefile.am (TESTS): Add backsl4.test.
3858 Reported by Peter Muir.
3860 2003-03-29 Raja R Harinath <harinath@acm.org>
3862 Speedup Automake::DisjConditions::invert().
3863 * lib/Automake/Condition.pm (multiply): New.
3864 * lib/Automake/DisjConditions.pm (_multiply): Use it.
3865 (sub_conditions): Likewise.
3867 * lib/Automake/Condition.pm (reduce): Rename to ...
3868 (reduce_and): ... this.
3870 * lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
3871 * lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
3872 (test_reduce_and): ... this.
3873 (test_reduce_or): New.
3874 * lib/Automake/tests/DisjConditions.pl
3875 (test_invert): Update to reflect effect of reduce_or().
3876 (test_simplify): Don't skip invert() on larger inputs.
3878 2003-03-29 Raja R Harinath <harinath@cs.umn.edu>
3880 * tests/yacc8.test: Add a $sleep before modifying Makefile.am so
3881 that timestamp will change.
3883 2003-03-23 Akim Demaille <akim@epita.fr>
3884 Alexandre Duret-Lutz <adl@gnu.org>
3886 * lib/am/tags.am (TAGS): Use --etags-include instead of --include,
3887 when supported by etags (Exuberant Ctags).
3888 * tests/tagsub.test: Rewrite to _run_ the `tags' rule.
3890 2003-03-20 Alexandre Duret-Lutz <adl@gnu.org>
3892 For Debian Bug #185388:
3893 * automake.texi (Extending): Augment the install-exec-hook
3894 discussion with an example how to symlink a versioned binary.
3895 * tests/insthook.test: Rewrite to test the above example.
3896 Report from James R. Van Zandt.
3898 2003-03-19 Alexandre Duret-Lutz <adl@gnu.org>
3900 * Makefile.am (maintainer-check): Allow `automake:' tokens,
3901 occuring in location.test. Automake now has 5 legitimate
3902 unsubstituted @strings@.
3904 * tests/aclocal4.test: Require GNU make.
3906 2003-03-14 Alexandre Duret-Lutz <adl@gnu.org>
3908 * tests/aclocal4.test: New file. Test for the ACLOCAL_M4 bug below.
3909 * tests/Makefile.am (TESTS): Add aclocal4.test.
3911 2003-03-14 Jim Meyering <jim@meyering.net>
3913 * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
3914 subdirectories. Makefile.in depends on that variable.
3916 2003-03-13 Alexandre Duret-Lutz <adl@gnu.org>
3918 * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
3920 Fix for PR automake/386:
3921 * m4/init.m4: Require Autoconf 2.55.
3922 Reported by Owen Taylor.
3924 * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3925 (?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
3926 Suggested by Matthias Andree.
3928 * tests/README: Typo.
3930 2003-03-08 Alexandre Duret-Lutz <adl@gnu.org>
3932 * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3933 (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
3934 Just echo the gcc command.
3935 Suggested by Karl Berry.
3937 2003-03-06 Alexandre Duret-Lutz <adl@gnu.org>
3939 * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
3940 `test -f foo || echo $(srcdir)/` to emulate a VPATH search when
3941 outputing suffix rules. This follows 2003-02-25's change.
3942 * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3943 * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3945 2003-03-05 Alexandre Duret-Lutz <adl@gnu.org>
3947 * automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
3948 with AC_CONFIG_FILES are cleaned by `make distclean'. Don't
3950 Reported by Rafael Laboissiere.
3952 2003-03-04 Andreas Buening <andreas.buening@nexgo.de>
3954 * lib/mdate-sh: Find out which column of the ls -l output contains
3955 the month. Do not assume it is at least the fifth column.
3957 2003-02-26 Alexandre Duret-Lutz <adl@gnu.org>
3959 * automake.texi (Emacs Lisp): Mention that `dist_' can be used.
3961 * automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
3962 instead of lisp_LISP when they don't want byte-compilation.
3963 Don't mention ELCFILES anymore.
3964 * automake.in (handle_data): Allow lisp_DATA.
3965 * tests/lisp5.test: New file.
3966 * tests/Makefile.am (TESTS): Add lisp5.test.
3968 * automake.in (handle_emacs_lisp): Don't build *.elc files
3969 if ELCFILES was set empty.
3970 * tests/lisp4.test: New file.
3971 * tests/Makefile.am (TESTS): Add lisp4.test.
3972 Reported by Simon Josefsson.
3974 * tests/lex3.test, tests/lex5.test: Require flex.
3975 Reported by Leo Davis.
3977 2003-02-25 Alexandre Duret-Lutz <adl@gnu.org>
3979 * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
3980 use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
3981 when outputing suffix rules.
3982 * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
3983 (?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
3984 Suggested by Bruno Haible.
3986 * automake.in (read_am_file): Catch trailing backslashes on last line.
3987 * tests/backsl3.test: New file.
3988 * tests/Makefile.am (TESTS): Add backsl3.test.
3989 Reported by Akim Demaille.
3991 2003-02-24 Alexandre Duret-Lutz <adl@gnu.org>
3993 * ChangeLog: Move 2002's entries to ...
3994 * ChangeLog.02: ... this new file.
3995 * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
3997 2003-02-24 Richard Dawe <rich@phekda.freeserve.co.uk>
3999 * tests/version7.test: Use $sleep to sleep before updating
4000 the version, to work around timestamp inconsistencies in Windows.
4002 2003-02-24 Bruno Haible <bruno@clisp.org>
4003 Alexandre Duret-Lutz <adl@gnu.org>
4005 * lib/am/texibuild.am: Don't remove the target info files. Instead,
4006 back up and restore them if makeinfo fails.
4007 * tests/txinfo20.test: New file.
4008 * tests/Makefile.am (TESTS): Add txinfo20.test.
4010 2003-02-23 Alexandre Duret-Lutz <adl@gnu.org>
4012 * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
4013 (distcleancheck): Fix typos and other errors reported by Karl
4016 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
4018 * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
4021 * tests/defs.in: Handle required=ro-dir.
4022 * tests/destdir.test: Use this.
4024 2003-02-19 Richard Dawe <rich@phekda.freeserve.co.uk>
4026 * lib/am/distdir.am (distcheck): Strip any leading DOS drive
4027 from dc_install_base.
4029 2003-02-19 Alexandre Duret-Lutz <adl@gnu.org>
4031 * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
4032 DJGPP-style *.iNN info files.
4033 (maintainer-clean-aminfo): Rewrite using the same pattern
4034 as in uninstall-info-am.
4035 * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
4036 DJGPP-style *.iNN info files before running $(MAKEINFO).
4037 * tests/txinfo19.test: New file.
4038 * tests/Makefile.am (TESTS): Add txinfo19.test.
4040 2003-02-18 Richard Dawe <rich@phekda.freeserve.co.uk>
4042 * lib/depcomp (dashmstdout): Cope with DOS filenames in
4045 2003-02-17 Alexandre Duret-Lutz <adl@gnu.org>
4047 * lib/depcomp (makedepend): Don't pass $object to makedepend.
4048 Reported by Stepan Kasal.
4050 2003-02-12 Alexandre Duret-Lutz <adl@gnu.org>
4052 * tests/defs.in: Handle required=makedepend.
4054 * Makefile.am (maintainer-check): Update the diff check
4055 to account for the recent @SHELL@ substitution.
4057 2003-02-11 Alexandre Duret-Lutz <adl@gnu.org>
4059 * lib/depcomp: Do not put comments on the `icc)' line.
4061 * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
4064 Fix for PR automake/381:
4065 * automake.in (handle_gettext): Do not print diagnostics
4066 about po/ and intl/ missing from SUBDIRS if po/ does not
4067 exist. Warn if `SUBDIRS = intl' is used although libintl
4069 * tests/gettext.test: Make sure diagnostics are not output
4070 when po/ does not exist.
4071 * tests/gettext2.test: Test for unwanted intl/.
4072 PR from Alexander Turbov, fix suggested by Bruno Haible.
4074 * m4/depend.m4: Grep depcomp's stderr for icc warnings about
4076 * lib/depcomp (icc): New mode.
4077 * tests/depcomp5.test: New file.
4078 * tests/defs.in: Handle required=icc.
4079 * tests/Makefile.am (TESTS): Add it.
4081 Temporary hack for PR automake/381:
4082 * automake.in (handle_gettext): Turn missing po/ and intl/ errors
4083 into -Wsyntax warnings.
4085 2003-02-10 Richard Dawe <rich@phekda.freeserve.co.uk>
4087 * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
4088 This makes the setting of SHELL work for DJGPP.
4090 2003-02-10 Alexandre Duret-Lutz <adl@gnu.org>
4092 For PR automake/385:
4093 * lib/depcomp (makedepend): Strip any libtool call, before
4094 running makedepends.
4095 * tests/depcomp4.test: New file.
4096 * tests/Makefile.am (TESTS): Add it.
4097 Reported by Jeff Squyres.
4099 Related to PR automake/385:
4100 * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
4101 write dependencies to /dev/null. `-o /dev/null' was added
4102 on 2002-06-13 just because I tried to replace `-o foo.o' by something
4103 else and didn't thought about removing it entirely.
4104 * tests/depcomp3.test: New file.
4105 * tests/Makefile.am (TESTS): Add it.
4107 * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
4109 Suggested by Richard Dawe.
4111 2003-02-09 Alexandre Duret-Lutz <adl@gnu.org>
4113 * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
4114 (distcleancheck): New nodes.
4116 2003-02-06 Alexandre Duret-Lutz <adl@gnu.org>
4118 * automake.in (scan_autoconf_files): Don't complain that
4119 AM_INIT_AUTOMAKE comes from an old version if it was not found.
4121 2003-02-05 Alexandre Duret-Lutz <adl@gnu.org>
4123 * automake.in (am_install_var): Simplify filtering of
4124 variable_loc_and_value_as_list_recursive's output.
4126 2003-02-04 Alexandre Duret-Lutz <adl@gnu.org>
4128 * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
4129 indexes of header files so we create stamp files with
4130 the right numbers when config.status is run on some headers.
4131 * tests/stamph2.test: Check for this.
4132 Reported by Sander Niemeijer.
4134 2003-02-02 Alexandre Duret-Lutz <adl@gnu.org>
4136 * automake.in (vars_scanned): Move near traverse_variable_recursively.
4137 (traverse_variable_recursively,
4138 traverse_variable_recursively_worker): Accept a $COND_FILTER argument
4139 to filter out conditions during recursion. Don't recurse into
4140 undefined variables. Don't pass empty results to &FUN_COLLECT.
4141 (value_to_list): Remove, was used by
4142 variable_value_as_list_recursive_worker only.
4143 (variable_value_as_list_recursive_worker): Rewrite using
4144 traverse_variable_recursively. Remove the $parent argument.
4145 (variable_value_as_list_recursive,
4146 variable_loc_and_value_as_list_recursive): Adjust calls
4147 to variable_value_as_list_recursive_worker. Don't reset
4149 * tests/cond3.test: Don't expect empty helper variables,
4150 we don't output them anymore.
4151 * tests/cond30.test: Use an undefined variable.
4153 * automake.in (handle_programs): Strip $(EXEEXT) before
4154 calling &check_canonical_spelling.
4155 * tests/exeext.test: Make sure we don't use a
4156 maude3__EXEEXT__OBJECTS variable.
4158 2003-02-02 Jeremy Nimmer <jwnimmer@alum.mit.edu> (tiny change)
4160 For Debian Bug #39542:
4161 * automake.texi (Invoking Automake, Optional): Document how
4162 AC_CONFIG_AUX_DIR interacts with missing files.
4164 2003-02-02 Alexandre Duret-Lutz <adl@gnu.org>
4166 * lib/Automake/DisjConditions.pm (_permutations_worker)
4167 (permutations): Remove, so that people aren't tempted to use it.
4168 * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
4170 * automake.in (variable_conditions_recursive): Remove.
4171 (variable_conditionally_defined): Rewrite using
4172 traverse_variable_recursively.
4174 * automake.in (traverse_variable_recursively,
4175 traverse_variable_recursively_worker): Pass one merged Condition
4176 instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
4177 (transform_variable_recursively, define_objects_from_sources)
4178 (handle_lib_objects, variable_conditions_recursive): Adjust usage.
4180 2003-02-01 Alexandre Duret-Lutz <adl@gnu.org>
4182 * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
4183 using transform_variable_recursively instead of
4184 variable_conditions_recursive and variable_value_as_list_recursive
4185 to avoid combinatorial explosion.
4186 (handle_lib_objects_cond): Merge into handle_lib_objects.
4187 * tests/cond11.test: Don't grep internal details in Makefile.in,
4188 run $MAKE to make sure the resulting Makefile runs as expected.
4189 * tests/cond29.test: Also exercise conditional _LDADD.
4190 * tests/cond31.test, tests/cond32.test: New files.
4191 * tests/Makefile.am (TESTS): Add tests/cond31.test and
4194 2003-01-31 Alexandre Duret-Lutz <adl@gnu.org>
4196 * automake.in (handle_lib_objects_cond): Ignore -dlopen and
4197 -dlpreopen in _LIBADD variables too.
4198 (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
4199 handle_lib_objects_cond.
4200 * tests/libtool7.test: New file.
4201 * tests/Makefile.am (TESTS): Add libtool7.test.
4203 * automake.texi (Program and Library Variables): Clarify that
4204 _LIBADD is for libraries and _LDADD for programs.
4206 * automake.in (handle_source_transform): Correct typo from 2003-01-23.
4208 2003-01-28 Alexandre Duret-Lutz <adl@gnu.org>
4210 Fix for PR automake/352:
4211 * automake.in (transform_variable_recursively): If the destination
4212 and the source variables are the same, delete the source variable
4213 before defining the destination variable.
4214 (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
4215 or this will confuse handle_source_transform.
4216 (append_exeext): Rewrite using transform_variable_recursively.
4217 * tests/cond29.test, tests/cond30.test: New files.
4218 * tests/exeext.test: Run ./configure and make, this uncovered
4219 the above handle_programs issue.
4220 * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
4222 * automake.in (%subobjvar): Replace by ...
4223 (%gen_varname): ... this.
4224 (subobjname): Replace by ...
4225 (gen_varname): ... this.
4226 (initialize_per_input): Clean gen_varname instead of subobjname.
4227 (transform_variable_recursively): New function, extracted
4228 from define_objects_from_sources.
4229 (define_objects_from_sources): Use transform_variable_recursively.
4230 Remove the unused $parent argument.
4231 (handle_source_transform): Adjust call to define_objects_from_sources.
4233 2003-01-23 Alexandre Duret-Lutz <adl@gnu.org>
4235 * automake.in (@substfroms, @substtos): Move near
4236 traverse_variable_recursively.
4237 (traverse_variable_recursively, traverse_variable_recursively_worker):
4238 New functions, extracted from define_objects_from_sources.
4239 (define_objects_from_sources): Rewrite using
4240 traverse_variable_recursively.
4241 (handle_source_transform): Use variables_conditionally_defined
4242 instead of calling variable_conditions_recursive directly.
4243 Adjust the call to define_objects_from_sources; there is no need
4244 to reset @substtos, @substfroms, and %vars_scanned now.
4245 (variable_conditions_recursive): Rewrite using
4246 traverse_variable_recursively.
4247 (variable_conditions_recursive_sub): Remove.
4248 (variable_conditionally_defined): Fix condition comparison (the
4249 consequence was that DIST_SUBDIRS was always output).
4250 * lib/Automake/Condition.pm (merge): Allow merging several
4253 2003-01-22 Alexandre Duret-Lutz <adl@gnu.org>
4255 * automake.texi (Python): Explain that directory variables start
4256 with either ${prefix} or ${exec_prefix}, and point to the
4257 `Installation Directory Variables' section of the Autoconf manual.
4259 2003-01-21 Alexandre Duret-Lutz <adl@gnu.org>
4261 * lib/am/distdir.am (top_distdir, distdir): Define these
4262 variables only in top level Makefile. Redefine $(top_distdir)
4264 (distdir): Fix passing of $(top_distdir) to sub-makes.
4265 * automake.in (handle_dist): Do not define the DISTDIR and
4266 TOP_DISTDIR transformations. We don't need them anymore.
4267 * automake.texi (Dist): Reorder the dist-hook section, and move
4268 the DIST_SUBDIRS paragraph earlier. Document distdir and
4270 * tests/subpkg.test: Update to check for $(distdir) and
4273 2003-01-19 Alexandre Duret-Lutz <adl@gnu.org>
4275 Rename more files to accomodate 8+3 file systems, and adjust the
4276 vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
4277 and we call "condition" a conjunction of "conditionals".
4278 * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
4279 * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
4280 * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
4281 * lib/am/tests/ConditionalSet.pl: Rename to
4282 lib/am/tests/DisjConditions.pl
4283 * lib/am/Conditional.pm (condition_negate): Rename to ...
4284 * lib/am/Condition.pm (conditional_negate): ... this.
4285 * automake.in: Adjust references to Condition and DisjConditions.
4286 (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
4287 (check_ambiguous_condition, condition_ambiguous_p): ... these.
4289 * tests/README: New file.
4291 * automake.texi (Conditional Programs): Show a sample Makefile.am.
4292 Remind $(EXEEXT) must be appended to configure substitutions.
4293 Show how Automake conditionals can be used instead.
4294 * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
4295 appended to conditionally defined programs.
4297 2003-01-16 Jim Meyering <jim@meyering.net>
4299 Accept --help and --version, and lots of syntactic clean-up.
4300 * lib/install-sh: Use consistent indentation, two spaces per level.
4301 (scriptversion): New variable.
4302 Change initializations like `variable=""' to `variable='.
4303 (usage): New variable.
4304 Use `test', not `['.
4305 Use `test -z "$var"', not `[ x"$var" = x ]'.
4306 Use `test -n "$var"', not `[ x"$var" != x ]'.
4307 Alphabetize case entries.
4308 Accept --help and --version options.
4309 Remove unnecessary `else :' clauses.
4310 Add a `Local variables' eval block to help emacs users update
4311 the time-stamp variable added above.
4312 Mostly from Karl Berry.
4314 2003-01-16 Alexandre Duret-Lutz <adl@gnu.org>
4316 * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
4319 * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
4320 or `pyexecdir', for the sake of 64-bit distributions that usually
4321 use lib64/ instead of lib/. Fall back to the default directory
4323 Suggested by Gwenole Beauchesne.
4325 2003-01-14 Alexandre Duret-Lutz <adl@gnu.org>
4327 For PR automake/382:
4328 * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
4329 Explain BUILT_SOURCES is usually needed in this case.
4330 Reported by William S Fulton.
4332 2003-01-13 Alexandre Duret-Lutz <adl@gnu.org>
4334 Rename some files for the sake of 8+3 file systems.
4335 * tests/aclocali.test: Rename to tests/aclocal.test.
4336 * tests/aclocali1.test: Rename to tests/aclocal2.test.
4337 * tests/aclocalii.test: Rename to tests/aclocal3.test.
4338 * tests/acoutput.test: Rename to tests/acoutpt.test.
4339 * tests/acoutput2.test: Rename to tests/acoutpt2.test.
4340 * tests/acouttbs.test: Rename to tests/acoutbs.test.
4341 * tests/acouttbs2.test: Rename to tests/acoutbs2.test.
4342 * tests/autoheader.test: Rename to tests/autohdr.test.
4343 * tests/autoheader2.test: Rename to tests/autohdr2.test.
4344 * tests/condincl.test: Rename to tests/condinc.test.
4345 * tests/condincl2.test: Rename to tests/condinc2.test.
4346 * tests/distcommon.test: Rename to tests/distcom.test.
4347 * tests/distcommon2.test: Rename to tests/distcom2.test.
4348 * tests/distcommon3.test: Rename to tests/distcom3.test.
4349 * tests/installsh.test: Rename to tests/instsh.test.
4350 * tests/installsh2.test: Rename to tests/instsh2.test.
4351 * tests/instdata.test: Rename to tests/instdat.test.
4352 * tests/instdata2.test: Rename to tests/instdat2.test.
4353 * tests/libobj12b.test: Rename to tests/libobj13.test.
4354 * tests/link_f_c.test: Rename to tests/link_fc.test.
4355 * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
4356 * tests/link_f_cxx.test: Rename to tests/link_fcxx.test.
4357 * tests/nodefine.test: Rename to tests/nodef.test.
4358 * tests/nodefine2.test: Rename to tests/nodef2.test.
4359 * tests/required.test: Rename to tests/reqd.test.
4360 * tests/required2.test: Rename to tests/reqd2.test.
4361 * tests/sourcesub.test: Rename to tests/srcsub.test.
4362 * tests/sourcesub2.test: Rename to tests/srcsub2.test.
4363 * tests/specflags.test: Rename to tests/specflg.test.
4364 * tests/specflags2.test: Rename to tests/specflg2.test.
4365 * tests/specflags3.test: Rename to tests/specflg3.test.
4366 * tests/specflags6.test: Rename to tests/specflg6.test.
4367 * tests/specflags7.test: Rename to tests/specflg7.test.
4368 * tests/specflags8.test: Rename to tests/specflg8.test.
4369 * tests/specflags9.test: Rename to tests/specflg9.test.
4370 * tests/subdircond.test: Rename to tests/subcond.test.
4371 * tests/subdircond2.test: Rename to tests/subcond2.test.
4372 * tests/subdircond3.test: Rename to tests/subcond3.test.
4373 * tests/texinfo.test: Rename to tests/txinfo.test.
4374 * tests/texinfo2.test: Rename to tests/txinfo2.test.
4375 * tests/texinfo3.test: Rename to tests/txinfo3.test.
4376 * tests/texinfo4.test: Rename to tests/txinfo4.test.
4377 * tests/texinfo5.test: Rename to tests/txinfo5.test.
4378 * tests/texinfo6.test: Rename to tests/txinfo6.test.
4379 * tests/texinfo7.test: Rename to tests/txinfo7.test.
4380 * tests/texinfo8.test: Rename to tests/txinfo8.test.
4381 * tests/texinfo9.test: Rename to tests/txinfo9.test.
4382 * tests/texinfo10.test: Rename to tests/txinfo10.test.
4383 * tests/texinfo13.test: Rename to tests/txinfo13.test.
4384 * tests/texinfo16.test: Rename to tests/txinfo16.test.
4385 * tests/texinfo17.test: Rename to tests/txinfo17.test.
4386 * tests/texinfo18.test: Rename to tests/txinfo18.test.
4387 * tests/Makefile.am (TESTS): Adjust.
4388 * ChangeLog.1996: Rename to ChangeLog.96.
4389 * ChangeLog.1998: Rename to ChangeLog.98.
4390 * ChangeLog.2000: Rename to ChangeLog.00.
4391 * ChangeLog.2001: Rename to ChangeLog.01.
4392 * Makefile.am (EXTRA_DIST): Adjust.
4393 Reported by Richard Dawe.
4395 2003-01-13 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
4397 * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
4398 Use '_build' and '_inst' instead of '=build' and '=inst'.
4399 * tests/man2.test: Reflect change automake: check for files in
4400 '_build' and '_inst' directories instead of '=build' and '=inst'.
4402 2003-01-13 Alexandre Duret-Lutz <adl@gnu.org>
4404 Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
4405 * m4/lead-dot.m4: New file.
4406 * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
4407 * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
4408 * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
4409 DEPDIR using am__leading_dot.
4410 * automake.in (require_build_directory): Define am__dirstamp, a new
4411 variable for the dirstamp basename, based on am__leading_dot.
4412 * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
4413 use $(am__dirstamp).
4414 Reported by Richard Dawe.
4416 * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
4417 Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
4418 testing for programs.
4419 Reported by Richard Dawe.
4421 2003-01-10 Alexandre Duret-Lutz <adl@gnu.org>
4423 * Makefile.am (maintainer-check): Suggest using $sleep instead of
4425 * tests/defs.in (sleep): New variable.
4426 * tests/asm.test, tests/confsub.test, tests/lisp3.test,
4427 tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
4428 Use $sleep instead of sleep 2, to work around timestamp
4429 inconsistencies in Windows.
4430 Reported by Richard Dawe.
4432 * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
4434 * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
4435 tests/man2.test, tests/subobj3.test, tests/suffix8.test,
4436 tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
4437 $SHELL is overridden by tests/defs, so it won't hurt even
4438 if $MAKE -e uses the $SHELL envvar.
4439 * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
4440 tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
4441 Reported by Richard Dawe.
4443 Build elisp files all at once instead of one by one.
4444 * automake.in (handle_emacs_lisp): Define am__ELFILES. Add
4445 elc-stamp to all's dependencies.
4446 * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
4447 (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
4448 (clean-lisp): Clean elc-stamp.
4449 * lib/elisp-comp: Reindent. Erase the temporatry directory
4450 from a trap. Propagate Emacs's exit status.
4451 * tests/lisp3.test: New file.
4452 * tests/Makefile.am (TESTS): Add lisp3.test.
4453 Reported by Ryan T. Sammartino.
4455 2003-01-09 Akim Demaille <akim@epita.fr>
4457 * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
4459 2003-01-08 Alexandre Duret-Lutz <adl@gnu.org>
4461 * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
4462 variables. Suggested by Ryan T. Sammartino.
4464 2003-01-05 Alexandre Duret-Lutz <adl@gnu.org>
4466 * automake.in (macro_define): Add missing `{$cond}' (typo from
4468 ($gen_copyright): Append year 2003.
4469 (version): Increase year.
4471 * tests/defs.in: Substitute aclocaldir instead of running
4472 the installed aclocal. Otherwise Libtool and Gettext
4473 tests get skipped when aclocal doesn't preexist.
4475 * tests/listval.test, tests/suffix2.test: Remove pointless -I
4476 argument to aclocal.
4480 Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4482 This file is part of GNU Automake.
4484 GNU Automake is free software; you can redistribute it and/or modify
4485 it under the terms of the GNU General Public License as published by
4486 the Free Software Foundation; either version 2, or (at your option)
4489 GNU Automake is distributed in the hope that it will be useful,
4490 but WITHOUT ANY WARRANTY; without even the implied warranty of
4491 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4492 GNU General Public License for more details.
4494 You should have received a copy of the GNU General Public License
4495 along with autoconf; see the file COPYING. If not, write to
4496 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4497 Boston, MA 02111-1307, USA.